/* A town to build, one next move to make. Loaded after the original UI. */
:root {
  --play-navy: #17383d;
  --play-emerald: #248365;
  --play-cream: #fcf8e9;
  --play-yellow: #efc563;
  --play-line: #dce4d9;
}
.presentation-mode { background: #f2f3ec; }
.presentation-mode #app { max-width: 1240px; margin-top: 18px; }
.presentation-mode .hud { position: sticky; top: 0; z-index: 9; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(500px, 1.7fr); align-items: center; gap: 20px; padding: 14px 20px; background: var(--play-navy); border: 1px solid #2d4d4c; border-radius: 13px 13px 0 0; box-shadow: 0 4px 18px #183c3612; }
.presentation-mode .hud-top { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; }
.presentation-mode .brand { font-size: 22px; }
.presentation-mode .brand small { display: none; }
.presentation-mode .hud .who { gap: 6px; font-size: 10px; }
.presentation-mode .party-chip, .presentation-mode .rank { padding: 2px 7px; border-radius: 4px; }
.presentation-mode .who .quit { min-height: 44px; min-width: 44px; padding: 2px 7px; font-size: 10px; border-color: #59706a; }
.presentation-mode .pills { grid-template-columns: 1.15fr 1.15fr 1fr .8fr; width: 100%; gap: 0; }
.presentation-mode .pill { min-height: 43px; padding: 0 15px; gap: 9px; }
.presentation-mode .pill:first-child { padding-left: 0; }
.presentation-mode .pill i { width: 25px; height: 25px; flex-basis: 25px; }
.presentation-mode .pill b { font-size: 23px; line-height: 1.25; font-weight: 800; }
.presentation-mode .pill small { font-size: 10px; line-height: 1.5; }
.presentation-mode .pill.day b { font-size: 18px; }
.presentation-mode .pill.day i { width: 20px; height: 20px; flex-basis: 20px; }
.presentation-mode .gauge { height: 6px; }
.presentation-mode #controlBar { min-height: 49px; padding: 4px 13px 4px 20px; background: #fdfefb; }
.presentation-mode #controlBar button { min-height: 44px; min-width: 44px; padding: 5px 11px; border-color: transparent; background: transparent; border-radius: 6px; }
.presentation-mode #controlBar button.on, .presentation-mode #controlBar button[aria-pressed="true"] { background: #e8f1e2; border-color: #d2e2c9; color: #367044; }
.presentation-mode #controlBar button:hover { background: #edf3e7; }
.presentation-mode #controlBar .control-state { font-size: 10px; }
.presentation-mode #controlBar #quitBtn { min-width: 44px; min-height: 44px; color: #a06c4e; border-color: #e6d8c5; background: #faf4e9; }
#mobileToolsBtn { display: none; }
.presentation-mode .campaign-overview { display: none; }
.presentation-mode[data-tutorial-step="field"] .campaign-overview, .presentation-mode[data-tutorial-step="cash-recovery"] .campaign-overview, .presentation-mode.tutorial-field-step .campaign-overview { display: grid; grid-template-columns: 1fr; max-width: 620px; margin: 14px auto; }
.presentation-mode[data-tutorial-step="field"] .campaign-overview .campaign-intel, .presentation-mode[data-tutorial-step="cash-recovery"] .campaign-overview .campaign-intel, .presentation-mode.tutorial-field-step .campaign-overview .campaign-intel { display: none; }
.presentation-mode[data-tutorial-step="field"] .stage, .presentation-mode[data-tutorial-step="cash-recovery"] .stage, .presentation-mode.tutorial-field-step .stage { height: 245px; min-height: 245px; }
.presentation-mode .tabs { display: grid; grid-template-columns: repeat(var(--main-tab-count, 7), minmax(0, 1fr)) !important; margin: 9px 0 14px; border-color: #d8e1d2; }
.presentation-mode .tabs button { min-height: 44px; padding: 10px 9px !important; font-size: 12px !important; }
.presentation-mode .tabs button.on { border-color: #2c8a65; color: #2e7550; }
.presentation-mode .panel { scroll-margin-top: 128px; }
.progression-board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 13px 18px; min-width: 0; }
.progression-overview > .progression-heading { order: 0; }
.progression-overview > .progression-stage { order: 1; }
.progression-overview > .progression-receipt { order: 2; }
.progression-overview > .progression-resources { order: 3; }
.progression-overview > .progression-details { order: 4; }
.progression-heading { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin: 2px 0 1px; }
.progression-heading > small { flex-basis: 100%; }
.progression-heading h1, .progression-heading h2 { margin: 0; color: #1b3f39; font-size: 27px; line-height: 1.35; font-weight: 850; letter-spacing: -1px; }
.progression-heading small { display: block; color: #82927a; font-size: 10px; font-weight: 650; margin-bottom: 4px; letter-spacing: .5px; }
.progression-heading p { color: #6e846c; font-size: 12px; margin: 4px 0 0; line-height: 1.6; }
.progression-heading > b, .progression-heading > span { flex-shrink: 0; align-self: center; border: 1px solid #d7e3c8; border-radius: 6px; padding: 6px 9px; color: #607d4d; background: #edf4e3; font-size: 10px; font-weight: 750; }
.progression-stage { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch; }
.progression-world { position: relative; min-width: 0; min-height: 440px; overflow: hidden; background: #e9f1dc; border: 1px solid #d2dfc4; border-radius: 13px; box-shadow: 0 5px 24px #35522a08, inset 0 0 0 3px #ffffff60; isolation: isolate; scroll-margin-top: 128px; }
.progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { display: block; width: 100%; height: 100%; min-height: 440px; max-height: none; }
.progression-world > .tycoon-map { border: 0; border-radius: 0; background: transparent; }
.progression-world svg { display: block; width: 100%; height: 100% !important; max-height: none; object-fit: contain; }
.progression-world text { font-family: inherit; }
.progression-map { height: 440px; }
.progression-map > svg.hq-scene { height: 100%; min-height: 0; }
.progression-map-heading { position: absolute; top: 15px; left: 16px; right: 16px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.progression-map-heading h3 { margin: 0; color: #355931; font-size: 17px; letter-spacing: -.5px; line-height: 1.4; font-weight: 850; }
.progression-map-heading p { margin: 3px 0 0; color: #82956b; font-size: 10px; line-height: 1.6; }
.progression-map-heading > div:first-child { max-width: 43%; }
.progression-growth { max-width: 44%; border: 1px solid #e2e4c7; border-radius: 6px; padding: 6px 8px; color: #7b8754; background: #fffdf0ed; font-size: 9px; font-weight: 700; line-height: 1.55; text-align: right; }
.progression-map-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; max-width: 45%; pointer-events: auto; }
.progression-map-actions .progression-growth { max-width: 180px; }
.world-greet { flex: 0 0 auto; min-height: 44px; min-width: 80px; padding: 8px 11px; border: 1px solid #c4d5b3; border-radius: 7px; background: #fffdf0ed; color: #50783c; box-shadow: 0 2px 5px #354c2408; font-size: 11px; font-weight: 800; line-height: 1.4; pointer-events: auto; }
.world-greet:hover { border-color: #8fb27a; background: #f6fbe9; }
.world-greet:active { box-shadow: none; }
.world-greet:disabled { color: #a3af91; background: #eef1e1; border-color: #d7dfc9; box-shadow: none; }
.progression-world [data-building], .progression-world [data-district] { cursor: pointer; transition: filter .2s; }
.progression-world [data-building]:hover, .progression-world [data-district]:hover { filter: brightness(1.06); }
.world-float { position: absolute; z-index: 6; padding: 4px 8px; border: 1px solid #b4d59b; border-radius: 15px; background: #fffef0ed; box-shadow: 0 3px 9px #3f582412; color: #447f35; font-size: 14px; font-weight: 850; line-height: 1.4; white-space: nowrap; pointer-events: none; animation: world-gain 1.35s ease-out both; }
@keyframes world-gain { from { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; } 70% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -34px); } }
.presentation-mode .compact-mail { min-width: 44px; min-height: 44px; padding: 5px 7px; border: 1px solid #69816a; border-radius: 5px; background: #355549; color: #e9f0cc; font-size: 10px; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.presentation-mode .compact-mail:hover { background: #49684f; }
.progression-world-label { position: absolute; left: 15px; top: 15px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #ffffffa6; border-radius: 6px; background: #fffdf1ed; box-shadow: 0 2px 8px #36532708; font-size: 10px; color: #526d44; font-weight: 750; }
.progression-world-label::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #5e9c54; }
.progression-world-status { position: absolute; bottom: 13px; left: 13px; right: 13px; z-index: 1; display: flex; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid #ffffff91; border-radius: 7px; background: #fffdf3e8; font-size: 10px; color: #677d57; backdrop-filter: blur(7px); }
.progression-world-status b { color: #345b34; font-weight: 800; }
.progression-goal { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 21px; border: 1px solid #dddcbc; border-radius: 11px; background: var(--play-cream); box-shadow: 0 4px 18px #3e522406; overflow: hidden; }
.progression-goal::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: #e5bd5f; }
.progression-goal > small, .progression-goal .eyebrow, .progression-task > small { display: block; color: #9c8449; font-size: 10px; font-weight: 800; letter-spacing: .8px; margin-bottom: 10px; }
.progression-goal h2, .progression-goal h3, .progression-task h3 { color: #2c4938; font-size: 23px; line-height: 1.4; margin: 0 0 10px; font-weight: 850; letter-spacing: -.7px; word-break: keep-all; }
.progression-goal p, .progression-task p { font-size: 12px; line-height: 1.8; margin: 0 0 15px; color: #7d8269; word-break: keep-all; }
.progression-goal .tycoon-meter { height: 7px; margin: 12px 0 7px; background: #e7e5cd; }
.progression-goal .tycoon-meter i { background: #6c9a53; }
.progression-goal button, .progression-goal .primary, .progression-task button, .progression-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: auto; padding: 11px 13px; color: #fffdf1; border: 1px solid #1e7153; border-radius: 7px; background: #247d5c; font-size: 12px; line-height: 1.5; font-weight: 800; box-shadow: 0 3px 0 #17563b; cursor: pointer; word-break: keep-all; }
.progression-goal button:hover:not(:disabled), .progression-task button:hover:not(:disabled), .progression-primary:hover:not(:disabled) { background: #1c6a4c; border-color: #195b40; }
.progression-goal button:active:not(:disabled), .progression-task button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #17563b; }
.progression-goal button:disabled, .progression-task button:disabled { background: #e9e8d2; border-color: #dfdfc4; color: #a4a78d; box-shadow: none; }
.progression-goal .cost { color: #61723f; font-size: 12px; font-weight: 750; margin: 10px 0; }
.progression-goal-count { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; color: #9aa079; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.progression-goal-count strong { color: #456c36; font-size: 35px; font-weight: 850; letter-spacing: -1px; }
.progression-goal-foot { display: block; color: #929778; font-size: 10px; line-height: 1.6; margin-top: 12px; }
.progression-goal .reward { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 15px; }
.progression-goal .reward span { padding: 4px 7px; background: #eef1d7; border: 1px solid #dfe5bf; border-radius: 4px; color: #6a7d3f; font-size: 10px; font-weight: 650; }
.progression-resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.progression-resources > div, .progression-resource { min-width: 0; padding: 12px 14px; border: 1px solid #dbe4d0; border-radius: 8px; background: #fffef6; }
.progression-stat { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; align-items: center; min-width: 0; padding: 13px 15px; border: 1px solid #dbe4d0; border-radius: 8px; background: #fffef6; }
.progression-stat .progression-stat-icon { display: flex; align-items: center; justify-content: center; grid-row: 1 / 4; width: 34px; height: 34px; border: 1px solid #e2e9ce; border-radius: 9px; background: #f0f5e1; }
.progression-stat-icon svg { display: block; width: 25px; height: 25px; }
.progression-stat > strong { grid-column: 2; display: block; color: #315833; font-size: 23px; font-weight: 850; line-height: 1.35; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.progression-stat > small { display: block; color: #7d8c6f; font-size: 10px; margin: 0; }
.progression-stat > span:last-child { grid-column: 2; color: #7a9265; font-size: 10px; line-height: 1.5; }
.progression-stat[data-stat="money"] .progression-stat-icon { background: #faf0ce; border-color: #eee1b2; }
.progression-stat[data-stat="territory"] .progression-stat-icon { background: #e6f1df; border-color: #d4e5c9; }
.progression-resources small { display: block; color: #7b8b6c; font-size: 10px; margin-bottom: 3px; }
.progression-resources b { display: block; color: #315833; font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -.5px; }
.progression-resources em { color: #729163; font-size: 10px; font-style: normal; }
.progression-resources .bad { color: #b26943; }
.progression-impact { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 11px 13px; border: 1px solid #d5e2c8; border-radius: 7px; background: #f4f8ec; color: #65824f; font-size: 11px; line-height: 1.65; }
.progression-impact > b { color: #3b6c36; font-weight: 800; }
.progression-impact > span { color: #7d9070; }
.progression-milestones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.progression-milestones > div, .progression-milestones > li { position: relative; min-width: 0; border: 1px solid #dfe5d3; border-radius: 7px; padding: 11px 12px 10px; background: #edf1e4; color: #89967b; font-size: 10px; line-height: 1.6; }
.progression-milestones b, .progression-milestones strong { display: block; font-size: 12px; font-weight: 800; color: #687f56; margin-bottom: 2px; }
.progression-milestones small { display: block; color: #8a997d; font-size: 9px; line-height: 1.5; }
.progression-milestones .done { background: #eef7e5; border-color: #c8dcb7; color: #628647; }
.progression-milestones .done b { color: #4f7a36; }
.progression-milestones .current, .progression-milestones .active { background: #fff8dc; border-color: #dec47f; color: #9d7e32; box-shadow: inset 0 3px 0 #e6be60; }
.progression-milestones .current b, .progression-milestones .active b { color: #92702d; }
.progression-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 11px 14px; border: 1px solid #dbe3ce; border-radius: 7px; background: #fafbf3; color: #75866b; font-size: 11px; line-height: 1.7; }
.progression-summary b { color: #496b39; font-weight: 800; }
.progression-details { display: block; padding: 0; }
.progression-details > summary { padding: 12px 15px; color: #71885c; font-size: 11px; cursor: pointer; list-style-position: inside; min-height: 44px; }
.progression-details[open] > summary { border-bottom: 1px solid #e1e9d4; }
.progression-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 15px; }
.progression-detail-grid > div { display: flex; justify-content: space-between; gap: 9px; color: #7c8e6c; font-size: 11px; }
.progression-detail-grid b, .progression-detail-grid strong { color: #567848; font-size: 12px; font-weight: 750; }
.progression-details > p, .progression-details > ul { margin: 0; padding: 0 15px 13px; color: #92a07f; font-size: 10px; line-height: 1.8; }
.progression-details .progression-log { margin: 0; padding: 0 15px 13px 29px; color: #92a07f; font-size: 10px; line-height: 1.8; }
.presentation-navigation { margin-bottom: 13px; }
.presentation-navigation:has(.tycoon-tabs > button:only-child) { display: none; }
.progression-secondary { margin-top: 12px; padding: 0 13px; border: 1px solid #dfe6d2; border-radius: 7px; background: #f9fbf1; color: #82966b; font-size: 11px; }
.progression-secondary summary { min-height: 44px; padding: 12px 0; cursor: pointer; list-style-position: inside; }
.progression-secondary > .tycoon-actions { margin: 0 0 13px; }
#orgImpact:not(:empty) { margin: 0 0 16px; }
.presentation-mode #tab-org:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 14px; }
.presentation-mode #tab-org > .plan, .presentation-mode #tab-org > .buyqty, .presentation-mode #tab-org > .gens { grid-column: 1 / -1; }
.presentation-mode #tab-org > .plan, .presentation-mode #tab-org > .buyqty { margin: 0; }
.presentation-mode #tab-org > #orgWorld { grid-column: 1; }
.presentation-mode #tab-org > #orgImpact { grid-column: 2; margin: 0; min-width: 0; }
.presentation-mode #tab-org > #orgImpact:empty { display: none; }
.presentation-mode #tab-org:has(#orgImpact:empty) > #orgWorld { grid-column: 1 / -1; }
.org-preview { min-width: 0; border: 1px solid #d4e1c7; border-radius: 10px; background: #edf3e1; overflow: hidden; }
.org-preview-world { height: 150px; min-width: 0; overflow: hidden; background: #eaf1de; }
.org-preview-world > svg { display: block; width: 100%; height: 100% !important; min-height: 0; object-fit: contain; }
.org-preview-status { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; min-height: 52px; padding: 5px 12px; border-top: 1px solid #d9e3ca; background: #fbfcf2; }
.org-preview-status > strong { color: #52753e; font-size: 13px; font-weight: 800; line-height: 1.5; }
.org-preview-status > span { color: #84986e; font-size: 10px; line-height: 1.5; }
.progression-map-return { min-height: 44px; padding: 6px 9px; border: 1px solid #cfdcbd; border-radius: 5px; background: #f1f6e5; color: #6b8652; font-size: 10px; font-weight: 750; }
#orgImpact > .progression-receipt { min-height: 100%; }
#tab-ops > .progression-receipt { margin-top: 13px; }
.progression-task { display: flex; flex-direction: column; padding: 16px; border: 1px solid #dae4ce; border-radius: 8px; background: #fffef7; }
.progression-task h3 { font-size: 17px; }
.progression-task button { min-height: 44px; font-size: 11px; margin-top: 12px; }
.progression-future { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px dashed #d2ddc4; border-radius: 7px; background: #f4f6ea; color: #829471; font-size: 11px; line-height: 1.7; }
.progression-future svg { flex: 0 0 32px; width: 32px; height: 32px; }
.progression-future b { display: block; color: #64804c; font-size: 12px; }
.progression-board > .progression-resources, .progression-board > .progression-impact, .progression-board > .progression-future { grid-column: 1 / -1; }
.progression-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.progression-side .progression-goal { flex: 1; }
.progression-side .progression-resources { grid-template-columns: 1fr; }
.progression-side .progression-resources > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; }
.progression-side .progression-resources b { font-size: 17px; }
.progression-side .progression-resources small { margin: 0; }
.progression-detail { color: #849475; font-size: 10px; line-height: 1.7; }
.progression-progress { height: 7px; overflow: hidden; border-radius: 4px; background: #e4e9d7; margin: 10px 0; }
.progression-progress > i, .progression-progress > span { display: block; height: 100%; border-radius: 4px; background: #70a45a; transition: width .3s; }
.progression-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.progression-actions button { min-height: 44px; border: 1px solid #d3e0c8; border-radius: 6px; background: #f3f7e9; color: #64804f; padding: 9px 12px; font-size: 11px; font-weight: 750; }
.progression-actions .primary { color: #fffef4; background: #237c59; border-color: #237c59; }
.presentation-mode .gen { background: #fffef8; border-color: #d5e0ca; border-radius: 10px; box-shadow: 0 3px 12px #37532b05; }
.presentation-mode .gen .ic { width: 54px; height: 54px; }
.presentation-mode .gen .ic svg { width: 54px; height: 54px; }
.presentation-mode .gen .t { font-size: 15px; }
.presentation-mode .gen .p { font-size: 11px; }
.presentation-mode .gen .buy { min-height: 52px; color: #fffdf0; border-color: #277b4f; background: #2f8b5c; box-shadow: 0 2px 0 #205e3e; font-size: 13px; }
.presentation-mode .gen .buy:hover:not(:disabled) { color: #fffdf0; background: #24774d; }
.presentation-mode .gen .buy:disabled { color: #a1ad93; background: #edf0e2; border-color: #dee5d0; box-shadow: none; }
.org-upgrade { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 8px; margin: 5px 0 2px; border: 1px solid #d5e5bf; border-radius: 4px; background: #eff7e5; color: #658346; font-size: 10px; line-height: 1.65; font-weight: 650; }
.org-upgrade b, .org-upgrade strong { color: #3c763b; font-size: 11px; font-weight: 800; }
.org-upgrade .arrow { color: #a0b67d; }
#impactCard { position: fixed; top: 108px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(470px, calc(100% - 30px)); pointer-events: none; }
.growth-receipt { position: relative; padding: 16px 18px; border: 1px solid #b8d0a6; border-radius: 11px; background: #fffff4; box-shadow: 0 10px 36px #24452526, inset 0 4px 0 #8cb766; color: #365a31; animation: growth-receipt-in .28s ease-out; overflow: hidden; }
.growth-receipt > small { display: block; color: #829b6b; font-size: 9px; font-weight: 750; letter-spacing: 1px; margin-bottom: 5px; }
.growth-receipt h2, .growth-receipt h3, .growth-receipt > b { display: block; margin: 0 0 9px; color: #355f30; font-size: 17px; line-height: 1.5; font-weight: 850; letter-spacing: -.5px; }
.growth-receipt p { margin: 6px 0 0; color: #7e936d; font-size: 11px; line-height: 1.7; }
.growth-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #e5ecd9; font-size: 11px; color: #7c9069; }
.growth-receipt-values { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-variant-numeric: tabular-nums; }
.growth-receipt-before { color: #98a88a; font-size: 13px; font-weight: 650; }
.growth-receipt-after { color: #3b7f3c; font-size: 19px; font-weight: 850; }
.growth-receipt-change { padding: 3px 6px; border-radius: 4px; background: #e9f4d9; color: #65973f; font-size: 10px; font-weight: 800; }
.growth-receipt .arrow { color: #b4bd9b; }
.progression-receipt { display: block; padding: 16px 18px; background: #fffef2; border-color: #bdd1a6; border-radius: 10px; box-shadow: 0 8px 30px #29442220, inset 0 4px 0 #9abd73; color: #6c8554; animation: growth-receipt-in .28s ease-out; }
.progression-receipt-title { display: flex; align-items: center; gap: 10px; color: #426d36; font-size: 17px; font-weight: 850; margin-bottom: 8px; line-height: 1.4; letter-spacing: -.4px; }
.progression-receipt-title > span { flex: 0 0 35px; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid #dae7c5; border-radius: 9px; background: #eef5df; color: #73994e; }
.progression-receipt-title svg { width: 23px; height: 23px; }
.progression-receipt-title small { display: block; color: #8a9d75; font-size: 9px; letter-spacing: .4px; line-height: 1.5; font-weight: 650; }
.progression-receipt-title h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.45; font-weight: 850; letter-spacing: -.5px; }
.progression-receipt > p { margin: 5px 0 10px; color: #859572; font-size: 11px; line-height: 1.7; }
.progression-change-list { display: flex; flex-direction: column; gap: 6px; }
.progression-change-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid #e2e9d5; font-size: 11px; color: #8b9c78; }
.progression-change-row > span:first-child { margin-right: auto; }
.progression-change-row > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; font-variant-numeric: tabular-nums; }
.progression-before { color: #a0ac8e; font-size: 12px; font-weight: 650; }
.progression-after { color: #487c39; font-size: 17px; font-weight: 850; }
.progression-after small { margin-left: 2px; font-size: 9px; color: #8a9e75; font-weight: 550; }
.progression-delta { padding: 2px 5px; border-radius: 4px; background: #ecf5dd; color: #76a04f; font-size: 10px; font-weight: 750; white-space: nowrap; }
.progression-change-row .arrow { color: #b6c39e; font-size: 13px; }
.progression-change-arrow { color: #b6c39e; font-size: 13px; }
.progression-delta.is-negative { background: #f7ecda; color: #b18a4f; }
.growth-receipt.negative { border-color: #dec8a0; box-shadow: 0 10px 36px #24452526, inset 0 4px 0 #cda36d; }
.growth-receipt.negative h3, .growth-receipt.negative .growth-receipt-after { color: #aa7444; }
@keyframes growth-receipt-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 1023px) {
  .presentation-mode .hud { grid-template-columns: minmax(190px, .65fr) minmax(420px, 1.6fr); gap: 12px; padding-left: 16px; padding-right: 16px; }
  .presentation-mode .pill { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .presentation-mode .pill b { font-size: 20px; }
  .presentation-mode .pill i { width: 21px; height: 21px; flex-basis: 21px; }
  .progression-board, .progression-stage { grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; }
  .progression-world { min-height: 400px; }
  .progression-map { height: 400px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 400px; }
  .progression-goal { padding: 18px; }
  .progression-milestones { gap: 6px; }
  .progression-milestones > div, .progression-milestones > li { padding: 9px; }
}
@media (max-width: 760px) {
  .presentation-mode { padding-bottom: calc(125px + env(safe-area-inset-bottom, 0px)); }
  .presentation-mode #app { width: calc(100% - 20px); margin-top: 8px; padding-bottom: 20px; }
  .presentation-mode .hud { display: block; padding: 6px 12px 8px; border-radius: 10px; }
  .presentation-mode.mobile-controls-open .hud { border-radius: 10px 10px 0 0; }
  .presentation-mode .hud-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .presentation-mode .brand { font-size: 19px; }
  .presentation-mode .brand::before { height: 16px; width: 6px; margin-right: 5px; }
  .presentation-mode .hud .who { font-size: 9px; gap: 4px; }
  .presentation-mode .party-chip { max-width: 70px; padding: 2px 5px; }
  .presentation-mode .rank { padding: 2px 5px; }
  .presentation-mode .who .quit { min-height: 44px; min-width: 44px; font-size: 9px; padding: 2px 5px; }
  .presentation-mode #mobileToolsBtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 5px 7px; border: 1px solid #547066; border-radius: 6px; background: #264b43; color: #dce7cb; font-size: 10px; font-weight: 750; }
  .presentation-mode #mobileToolsBtn[aria-expanded="true"] { color: #fff8d5; border-color: #99aa78; background: #426443; }
  .presentation-mode .pills { grid-template-columns: 1.1fr 1.1fr .95fr .82fr; gap: 0; }
  .presentation-mode .pill, .presentation-mode .pill:nth-child(3) { min-height: 32px; padding: 0 7px; border-left: 1px solid #3b5855; gap: 5px; }
  .presentation-mode .pill:first-child { padding-left: 0; border: 0; }
  .presentation-mode .pill i { width: 17px; height: 17px; flex-basis: 17px; }
  .presentation-mode .pill b { font-size: 18px; line-height: 1.25; }
  .presentation-mode .pill small { font-size: 8px; font-weight: 550; line-height: 1.5; }
  .presentation-mode .pill.risk i { display: none; }
  .presentation-mode .pill.day { padding-right: 0; }
  .presentation-mode .pill.day i { display: none; }
  .presentation-mode .pill.day b { font-size: 14px; }
  .presentation-mode .gauge { margin: 3px 0 4px; height: 5px; }
  .presentation-mode #controlBar { display: none; min-height: 47px; padding: 5px 7px; border-radius: 0 0 8px 8px; }
  .presentation-mode.mobile-controls-open #controlBar { display: flex; position: sticky; top: 96px; z-index: 8; box-shadow: 0 5px 16px #28462e14; }
  .presentation-mode #controlBar .control-state { display: none; }
  .presentation-mode #controlBar > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 4px; }
  .presentation-mode #controlBar button { flex: 1; min-height: 44px; min-width: 44px; padding: 5px 4px; font-size: 10px; }
  .presentation-mode #controlBar #helpBtn, .presentation-mode #controlBar #quitBtn { grid-column: span 2; }
  .presentation-mode #pauseBtn, .presentation-mode #helpBtn { margin-left: 0; }
  .presentation-mode .tabs { display: none; margin: 7px 0 12px; gap: 0 !important; }
  .presentation-mode #tab-ops { margin-top: 12px; }
  .presentation-mode .tabs button { min-height: 44px; min-width: 52px; padding: 10px 5px !important; font-size: 11px !important; }
  .presentation-mode .panel, .progression-world { scroll-margin-top: 108px; }
  .presentation-mode[data-tutorial-step="field"] .campaign-overview, .presentation-mode[data-tutorial-step="cash-recovery"] .campaign-overview, .presentation-mode.tutorial-field-step .campaign-overview { margin: 11px 0; }
  .presentation-mode[data-tutorial-step="field"] .stage, .presentation-mode[data-tutorial-step="cash-recovery"] .stage, .presentation-mode.tutorial-field-step .stage { height: 190px; min-height: 190px; }
  .progression-board, .progression-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .progression-heading { gap: 5px; margin: 0 2px 1px; }
  .progression-heading h1, .progression-heading h2 { font-size: 19px; letter-spacing: -.7px; }
  .progression-heading > small { display: none; }
  .progression-heading small { font-size: 9px; margin-bottom: 2px; }
  .progression-heading p { font-size: 10px; margin-top: 2px; }
  .progression-heading > p { display: none; }
  .progression-heading > b, .progression-heading > span { font-size: 9px; padding: 5px 7px; }
  .progression-world { min-height: 250px; height: 250px; border-radius: 10px; }
  .progression-map-heading { top: 10px; left: 11px; right: 11px; gap: 8px; }
  .progression-map-heading h3 { font-size: 14px; }
  .progression-map-heading p { display: none; font-size: 9px; margin-top: 2px; }
  .progression-map-heading > div:first-child { max-width: 112px; }
  .progression-growth { font-size: 8px; padding: 4px 6px; max-width: 43%; }
  .progression-map-actions { flex-direction: column; align-items: flex-end; max-width: 100px; gap: 4px; }
  .progression-map-actions .progression-growth { max-width: 100px; font-size: 8px; }
  .world-greet { min-height: 44px; min-width: 76px; padding: 7px 9px; font-size: 11px; }
  .world-float { font-size: 12px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 250px; max-height: none; height: 100%; }
  .progression-world svg { height: 100%; }
  .progression-world-label { left: 9px; top: 9px; padding: 5px 7px; font-size: 9px; }
  .progression-world-status { bottom: 9px; left: 9px; right: 9px; padding: 6px 8px; font-size: 9px; gap: 6px; }
  .progression-goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; padding: 14px 15px; border-radius: 9px; }
  .progression-goal > small, .progression-goal .eyebrow, .progression-task > small { font-size: 9px; margin-bottom: 0; }
  .progression-goal-kicker { grid-column: 1; grid-row: 1; }
  .progression-goal h2, .progression-goal h3 { grid-column: 1; grid-row: 2; font-size: 17px; margin: 0; }
  .progression-goal p { grid-column: 1 / -1; font-size: 11px; line-height: 1.7; margin: 4px 0 3px; }
  .progression-goal button, .progression-task button, .progression-primary { min-height: 46px; padding: 9px 12px; font-size: 12px; margin-top: 9px; }
  .progression-goal > button { grid-column: 1 / -1; margin-top: 5px; }
  .progression-goal > .progression-progress { grid-column: 1 / -1; margin: 4px 0; height: 6px; }
  .progression-goal .cost { font-size: 11px; margin: 7px 0; }
  .progression-goal-count { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; margin: 0; font-size: 10px; }
  .progression-goal-count strong { font-size: 25px; }
  .progression-goal > .progression-goal-foot { display: none; }
  .progression-goal .reward { margin-bottom: 6px; }
  .progression-goal .reward span { font-size: 9px; }
  .progression-side { gap: 10px; }
  .progression-side .progression-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .progression-side .progression-resources > div { display: block; padding: 9px; }
  .progression-resources { gap: 7px; }
  .progression-overview > .progression-heading { order: 0; }
  .progression-overview > .progression-stage { order: 1; }
  .progression-overview > .progression-receipt { order: 2; }
  .progression-overview > .progression-resources { order: 3; }
  .progression-overview > .progression-details { order: 4; }
  .progression-stat { grid-template-columns: 1fr; padding: 10px; gap: 1px; }
  .progression-stat .progression-stat-icon { grid-row: auto; grid-column: 1; width: 27px; height: 27px; border-radius: 7px; margin-bottom: 4px; }
  .progression-stat-icon svg { width: 19px; height: 19px; }
  .progression-stat > strong, .progression-stat > span:last-child { grid-column: 1; }
  .progression-stat > strong { font-size: 20px; }
  .progression-stat > small, .progression-stat > span:last-child { font-size: 9px; }
  .progression-resources > div, .progression-resource { padding: 9px 10px; border-radius: 6px; }
  .progression-resources b { font-size: 19px; }
  .progression-resources small { font-size: 9px; }
  .progression-resources em { font-size: 9px; }
  .progression-impact { font-size: 10px; padding: 9px 11px; gap: 4px 8px; }
  .progression-milestones { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px; }
  .progression-milestones::-webkit-scrollbar { display: none; }
  .progression-milestones > div, .progression-milestones > li { flex: 1 0 95px; padding: 8px 9px; font-size: 9px; }
  .progression-milestones b, .progression-milestones strong { font-size: 11px; }
  .progression-summary { padding: 9px 11px; font-size: 10px; gap: 3px 12px; }
  .progression-details { padding: 0; }
  .progression-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 9px; }
  .progression-detail-grid > div { font-size: 10px; }
  .progression-future { padding: 10px 12px; font-size: 10px; }
  .progression-future b { font-size: 11px; }
  .progression-task { padding: 14px; }
  .progression-task h3 { font-size: 16px; margin-bottom: 6px; }
  .progression-task p { font-size: 11px; margin-bottom: 8px; }
  .presentation-mode .gen { grid-template-columns: 50px minmax(0, 1fr) 81px; padding: 14px 12px; gap: 4px 10px; }
  .presentation-mode .gen .ic, .presentation-mode .gen .ic svg { width: 50px; height: 50px; }
  .presentation-mode .gen .t { font-size: 14px; }
  .presentation-mode .gen .p { font-size: 10px; }
  .presentation-mode .gen .buy { min-height: 52px; font-size: 12px; }
  .org-upgrade { font-size: 10px; padding: 5px 7px; }
  .org-upgrade b, .org-upgrade strong { font-size: 10px; }
  .presentation-mode .mobile-command { border-color: #c6d7bf; padding-top: 5px; background: #fffff8f5; box-shadow: 0 -3px 20px #2643211c; }
  .presentation-mode .mobile-command-nav { display: flex; }
  .presentation-mode .mobile-command-nav { display: grid; grid-template-columns: repeat(var(--visible-nav, 5), minmax(0, 1fr)) !important; }
  .presentation-mode .mobile-command-nav > button { flex: 1; min-height: 51px; }
  .presentation-mode .mobile-command-nav > button.hidden, .presentation-mode .mobile-command-nav > button[hidden] { display: none; }
  .presentation-mode .mobile-command-summary { min-height: 44px; padding-bottom: 5px; }
  .presentation-mode #mobileSummary { font-size: 11px; }
  .presentation-mode #mobileField, .presentation-mode #mobilePause { min-height: 44px; }
  .presentation-mode .ticker { bottom: calc(113px + env(safe-area-inset-bottom, 0px)); }
  #impactCard { top: auto; bottom: calc(122px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); }
  .growth-receipt { padding: 13px 15px; border-radius: 9px; }
  .growth-receipt h2, .growth-receipt h3, .growth-receipt > b { font-size: 16px; margin-bottom: 7px; }
  .growth-receipt-row { font-size: 10px; gap: 10px; }
  .growth-receipt-after { font-size: 18px; }
  .progression-receipt { padding: 13px 15px; }
  .progression-receipt-title { font-size: 16px; }
  .progression-change-row { font-size: 10px; gap: 7px; }
  .progression-before { font-size: 11px; }
  .progression-after { font-size: 16px; }
  .presentation-mode #tab-org:not(.hidden) { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .presentation-mode #tab-org > #orgWorld, .presentation-mode #tab-org > #orgImpact { grid-column: 1; }
  .org-preview { border-radius: 8px; }
  .org-preview-world { height: 130px; }
  .org-preview-status { min-height: 50px; padding: 4px 9px; gap: 4px 7px; }
  .org-preview-status > strong { font-size: 12px; }
  .org-preview-status > span { font-size: 9px; }
  .progression-map-return { font-size: 9px; padding-left: 7px; padding-right: 7px; }
  #orgImpact .progression-receipt-title h3 { font-size: 14px; }
  #orgImpact .progression-receipt > p { display: none; }
  #orgImpact .progression-receipt { padding: 12px 13px; }
  #orgImpact .progression-change-row { min-height: 27px; }
}
@media (max-width: 380px) {
  .presentation-mode #app { width: calc(100% - 16px); margin-top: 6px; }
  .presentation-mode .hud { padding-left: 10px; padding-right: 10px; }
  .presentation-mode .brand { font-size: 17px; }
  .presentation-mode .hud .who { gap: 3px; }
  .presentation-mode .party-chip { max-width: 58px; }
  .presentation-mode .hud:has(.compact-mail:not(.hidden)) .party-chip { max-width: 33px; }
  .presentation-mode .hud:has(.compact-mail:not(.hidden)) .rank { max-width: 32px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .presentation-mode .compact-mail { padding-left: 5px; padding-right: 5px; font-size: 9px; }
  .presentation-mode .pill { padding-left: 5px; padding-right: 5px; gap: 4px; }
  .presentation-mode .pill b { font-size: 16px; }
  .presentation-mode .pill i { width: 15px; height: 15px; flex-basis: 15px; }
  .presentation-mode .pill small { font-size: 7px; }
  .presentation-mode .pill.day b { font-size: 13px; }
  .progression-world { min-height: 225px; height: 225px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 225px; }
  .progression-heading h1, .progression-heading h2 { font-size: 20px; }
  .progression-goal { padding: 14px; }
  .progression-goal h2, .progression-goal h3 { font-size: 16px; }
  .presentation-mode .gen { grid-template-columns: 44px minmax(0, 1fr) 76px; padding: 12px 10px; gap: 4px 8px; }
  .presentation-mode .gen .ic, .presentation-mode .gen .ic svg { width: 44px; height: 44px; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .progression-world { min-height: 180px; height: 180px; }
  .progression-world > svg, .progression-world > .tycoon-map, .progression-world .hq-map { min-height: 180px; }
  .progression-map-heading p { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .progression-overview > .progression-heading { display: none; }
  .progression-goal > p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-receipt { animation: none; }
  .world-float { animation: none; }
}

/* Field decisions stay beside their actual effect on the campaign. */
.field-command { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; min-width: 0; padding: 19px; border: 1px solid #cbdcc2; border-radius: 11px; background: #fffef5; box-shadow: 0 4px 17px #354b2606; scroll-margin-top: 128px; }
.field-project, .field-quick-buy, .field-choices { scroll-margin-top: 128px; }
.progression-overview > .field-command { order: 2; }
.progression-overview:has(.field-command) > .progression-receipt { order: 3; }
.progression-overview:has(.field-command) > .progression-resources { order: 4; }
.progression-overview:has(.field-command) > .progression-details { order: 5; }
.field-command-head { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; }
.field-command-head small { color: #80976b; font-size: 10px; font-weight: 750; }
.field-command-head h3 { margin: 0; color: #294e35; font-size: 18px; line-height: 1.4; font-weight: 850; letter-spacing: -.6px; }
.field-command-head p { flex: 1; color: #7c8f6c; font-size: 11px; line-height: 1.6; margin: 0; text-align: right; }
.field-districts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.field-districts button { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 3px 7px; min-width: 0; min-height: 44px; padding: 7px 8px; border: 1px solid #dce5d1; border-radius: 6px; background: #f4f7eb; color: #788e65; font-size: 12px; line-height: 1.4; font-weight: 700; }
.field-districts button small { color: #98a788; font-size: 10px; font-weight: 550; }
.field-districts button.on, .field-districts button.active, .field-districts button[aria-pressed="true"] { background: #276e4c; border-color: #276e4c; color: #fffdeb; }
.field-districts button[aria-pressed="true"] small, .field-districts button.on small { color: #cae0b8; }
.field-frontier { grid-column: 1 / -1; min-width: 0; padding: 13px 15px; border: 1px solid #d5e2c6; border-radius: 7px; background: #f4f8e9; }
.field-frontier > strong { display: inline-block; margin-right: 10px; color: #377b43; font-size: 23px; line-height: 1.3; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.field-frontier > span { color: #9b8051; font-size: 12px; line-height: 1.5; font-weight: 650; }
.field-frontier-track, .field-frontier .progression-progress, .field-frontier .tycoon-meter { display: flex; width: 100%; height: 7px; margin: 9px 0 0; border-radius: 4px; background: #e8dec0; overflow: hidden; }
.field-frontier-track > i, .field-frontier .progression-progress > i, .field-frontier .tycoon-meter > i { display: block; height: 100%; border-radius: 4px; background: #7da361; }
.field-policy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border: 1px solid #e2e5cc; border-radius: 7px; background: #faf9ed; }
.field-policy > div:first-child { flex: 1 1 180px; min-width: 0; }
.field-policy b { display: block; color: #6c7953; font-size: 12px; font-weight: 750; }
.field-policy small { display: block; margin-top: 3px; color: #8d9878; font-size: 10px; line-height: 1.7; }
.field-policy-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; flex: 1 1 340px; }
.field-policy-options button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 48px; padding: 8px 10px; border: 1px solid #d9e2ca; border-radius: 5px; background: #fffef5; color: #6d8754; font-size: 11px; font-weight: 750; line-height: 1.5; text-align: left; }
.field-policy-options button:hover { background: #f0f6e3; border-color: #abc395; }
.field-policy-options button small { font-size: 10px; margin: 2px 0 0; font-weight: 550; }
.field-choices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.field-choice { display: flex; flex-direction: column; min-width: 0; padding: 15px; border: 1px solid #d4e3c3; border-radius: 8px; background: #f3f8e9; }
.field-choice:nth-child(2) { background: #fcf6e6; border-color: #e9d9ad; }
.field-choice h4 { margin: 0 0 7px; font-size: 15px; line-height: 1.4; font-weight: 850; color: #486e37; letter-spacing: -.4px; }
.field-choice:nth-child(2) h4 { color: #9b7b35; }
.field-choice p { margin: 0 0 9px; color: #7e936c; font-size: 11px; line-height: 1.75; word-break: keep-all; }
.field-choice strong { color: #397746; font-size: 19px; line-height: 1.4; font-weight: 850; font-variant-numeric: tabular-nums; }
.field-choice:nth-child(2) strong { color: #9e7b37; }
.field-choice small { display: block; color: #91a17c; font-size: 10px; line-height: 1.65; }
.field-choice button, .field-quick-buy button, .field-contract button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; width: 100%; margin-top: auto; padding: 9px 11px; border: 1px solid #2d7b4d; border-radius: 6px; background: #337f51; color: #fffdeb; font-size: 12px; line-height: 1.5; font-weight: 800; }
.field-choice button { margin-top: 11px; }
.field-choice:nth-child(2) button { border-color: #b99b54; background: #ddbc69; color: #6a5424; }
.field-command button:disabled { background: #ecefdf; border-color: #dfe5ce; color: #a3af91; cursor: not-allowed; }
.field-project { grid-column: 1 / -1; padding: 15px; border: 1px solid #cbdcbb; border-radius: 8px; background: #edf6e1; }
.field-project h4 { margin: 0 0 6px; color: #42723a; font-size: 16px; font-weight: 850; line-height: 1.45; }
.field-project p { margin: 3px 0; color: #6d8e55; font-size: 12px; line-height: 1.7; }
.field-project strong { font-size: 20px; font-weight: 850; color: #437e39; font-variant-numeric: tabular-nums; }
.field-project small { color: #8b9f74; font-size: 11px; line-height: 1.6; }
.field-project .progression-progress { height: 8px; margin: 10px 0; }
.field-quick-buy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px; padding: 13px 14px; border: 1px solid #dbe4cb; border-radius: 7px; background: #fafbf1; }
.field-quick-buy > div { flex: 1 1 210px; min-width: 0; }
.field-quick-buy b, .field-quick-buy h4 { margin: 0; color: #5e7c48; font-size: 13px; font-weight: 800; }
.field-quick-buy p, .field-quick-buy small { display: block; color: #8b9e76; font-size: 11px; line-height: 1.7; margin: 3px 0 0; }
.field-quick-buy strong { color: #497f3b; font-size: 18px; font-weight: 850; }
.field-quick-buy button { flex: 0 1 200px; width: auto; min-width: 145px; margin: 0; }
.field-quick-buy > .field-last-hire { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; flex: 1 1 100%; width: 100%; padding: 0 0 11px; border-bottom: 1px solid #dce8ca; }
.field-last-hire > b { color: #749255; font-size: 11px; }
.field-last-hire > strong { color: #397c37; font-size: 24px; font-weight: 850; letter-spacing: -.7px; }
.field-last-hire > span { grid-column: 1 / -1; color: #81996b; font-size: 12px; line-height: 1.7; }
.field-last-hire > span strong { color: #477f37; font-size: 19px; }
.field-result { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 13px; padding: 13px 15px; border: 1px solid #cee0b6; border-radius: 7px; background: #eef7df; }
.field-result > b { grid-column: 1 / -1; color: #567e3e; font-size: 13px; font-weight: 800; }
.field-result > span { color: #859b6b; font-size: 11px; line-height: 1.6; }
.field-result > span strong { display: block; color: #4b8335; font-size: 21px; font-weight: 850; line-height: 1.4; }
.field-contract { grid-column: 1 / -1; padding: 0 13px; border: 1px dashed #d9dfc6; border-radius: 7px; background: #f8f9ee; color: #859570; font-size: 11px; }
.field-contract summary { min-height: 44px; padding: 12px 0; color: #7c8e62; cursor: pointer; line-height: 1.7; }
.field-contract > p { color: #8d9e76; font-size: 11px; line-height: 1.7; margin: 5px 0 12px; }
.field-contract button { margin: 9px 0 13px; }
.tutorial-active .field-command { display: none; }
.field-command-head > div { flex: 1; }
.field-command-head > span { color: #839b69; border: 1px solid #d9e6c7; border-radius: 4px; padding: 4px 7px; background: #f0f6e5; font-size: 10px; font-weight: 700; }
.field-frontier { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 12px; }
.field-frontier > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 11px; min-width: 0; }
.field-frontier > div:first-child strong { color: #397b43; font-size: 23px; font-weight: 850; letter-spacing: -.6px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.field-frontier > div:first-child strong small { margin-left: 2px; color: #89a46f; font-size: 10px; font-weight: 600; }
.field-frontier > div:first-child span { color: #a68b54; font-size: 12px; font-weight: 650; }
.field-frontier > b { color: #a7864d; font-size: 12px; font-weight: 800; white-space: nowrap; }
.field-frontier.is-leading > b { color: #4d8743; }
.field-influence-track { grid-column: 1 / -1; display: block; height: 7px; border-radius: 4px; background: #e7dab8; overflow: hidden; }
.field-influence-track > i { display: block; height: 100%; border-radius: 4px; background: #80a661; transition: width .3s ease; }
.field-frontier > small { grid-column: 1 / -1; color: #a18b66; font-size: 10px; line-height: 1.65; }
.field-project > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-project > header h4 { margin: 0; }
.field-project > header b { color: #44833b; font-size: 22px; font-weight: 850; line-height: 1.3; font-variant-numeric: tabular-nums; }
.field-project > p { margin-top: 5px; }
.field-choice > p { color: #5c7e40; font-size: 13px; font-weight: 750; line-height: 1.7; }
.field-choice:nth-child(2) > p { color: #a17d3c; }
.field-choice > span { color: #8fa176; font-size: 10px; font-weight: 600; }
.field-wait { display: block; width: 100%; font-size: 10px; line-height: 1.7; color: #9ba784; }
.field-contract summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-contract summary b { color: #7e925e; font-size: 11px; font-weight: 750; }
details.field-policy { display: block; padding: 0 13px; }
.field-policy > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 12px 0; color: #75885b; font-size: 11px; line-height: 1.6; font-weight: 650; cursor: pointer; }
.field-policy > summary > span { color: #9aa781; font-size: 10px; font-weight: 550; white-space: nowrap; }
.field-policy > p { color: #94a27f; font-size: 11px; line-height: 1.7; margin: 0 0 11px; }
.field-policy > .field-policy-options { margin-bottom: 12px; }
.hq-map { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; overflow: hidden; }
.progression-world .hq-map, .org-preview-world .hq-map { display: flex; flex-direction: column; }
.hq-town-canvas { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hq-town-canvas > svg { display: block; width: 100%; height: 100% !important; min-height: 0; object-fit: contain; }
.hq-field-strip { display: flex; flex: 0 0 67px; align-items: center; gap: 12px; min-width: 0; padding: 7px 14px; border-top: 1px solid #d0dfbf; background: #fffef1; color: #5c7b46; }
.hq-field-art { display: block; flex: 0 0 62px; width: 62px; height: 50px; }
.hq-field-art svg, .progression-world .hq-field-art svg, .org-preview-world .hq-field-art svg { display: block; width: 100% !important; height: 50px !important; min-height: 0; }
.hq-field-strip strong, .hq-field-strip b { display: block; color: #416f35; font-size: 17px; font-weight: 850; line-height: 1.4; }
.hq-field-strip p, .hq-field-strip small { display: block; margin: 2px 0 0; color: #8b9e71; font-size: 11px; line-height: 1.6; }
.hq-field-strip { position: relative; }
.hq-field-copy { flex: 1; min-width: 0; }
.hq-field-copy .hq-field-kicker { font-size: 9px; line-height: 1.15; margin: 0 0 2px; letter-spacing: .2px; }
.hq-field-copy .hq-field-title { line-height: 1.3; }
.hq-field-copy .hq-field-title b { display: inline; color: #397b35; font: inherit; }
.hq-field-arrow { color: #9ab277; padding: 0 3px; }
.hq-field-copy .hq-field-note { font-size: 10px; line-height: 1.3; margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-field-tag { flex: 0 0 auto; max-width: 60px; border: 1px solid #d7e3be; border-radius: 4px; background: #f1f7e2; color: #7c9b51; font-size: 10px; font-weight: 750; line-height: 1.4; padding: 4px 6px; }
.hq-field-progress { height: 3px; margin-top: 4px; border-radius: 3px; background: #e3ebd2; overflow: hidden; }
.hq-field-progress > i { display: block; height: 100%; border-radius: 3px; background: #93b26a; }
.progression-world svg.hq-field-art, .org-preview-world svg.hq-field-art { width: 62px !important; height: 50px !important; min-height: 0; }
.hq-map.is-active .hq-worker-gesture, .hq-field-strip.is-active .hq-worker-gesture { transform-box: fill-box; transform-origin: 50% 100%; animation: field-worker 2.4s ease-in-out infinite; }
.hq-field-art.is-active .hq-worker-gesture { transform-box: fill-box; transform-origin: 50% 100%; animation: field-worker 2.4s ease-in-out infinite; }
body:has(#pauseBtn[aria-pressed="true"]) .hq-worker-gesture { animation-play-state: paused; }
.hq-field-strip.is-recent .hq-field-arrival { animation: field-arrival .45s ease-out both; }
@keyframes field-worker { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(7deg); } }
@keyframes field-arrival { from { opacity: .3; } to { opacity: 1; } }

@media (max-width: 760px) {
  .field-command { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 13px; border-radius: 9px; }
  .field-command, .field-project, .field-quick-buy, .field-choices { scroll-margin-top: 108px; }
  .field-command-head { gap: 4px 8px; }
  .field-command-head h3 { font-size: 17px; }
  .field-command-head p { flex-basis: 100%; text-align: left; font-size: 10px; }
  .field-districts { gap: 4px; }
  .field-districts button { min-height: 44px; padding: 7px 3px; font-size: 11px; }
  .field-districts button small { font-size: 9px; }
  .field-frontier { padding: 11px 12px; }
  .field-frontier > strong { font-size: 21px; }
  .field-frontier > span { font-size: 11px; }
  .field-frontier > div:first-child strong { font-size: 21px; }
  .field-frontier > div:first-child span { font-size: 11px; }
  .field-frontier > b { font-size: 11px; }
  .field-policy { gap: 8px; padding: 11px 12px; }
  .field-policy > div:first-child { flex-basis: 100%; }
  .field-policy b { font-size: 12px; }
  .field-policy-options { flex-basis: 100%; gap: 5px; }
  .field-policy-options button { min-height: 49px; padding: 7px 8px; font-size: 11px; }
  .field-policy-options button small { font-size: 10px; }
  .field-choices { gap: 8px; }
  .field-choice { padding: 12px 10px; border-radius: 7px; }
  .field-choice h4 { font-size: 14px; margin-bottom: 6px; }
  .field-choice p { font-size: 11px; margin-bottom: 7px; }
  .field-choice > p { font-size: 12px; }
  .field-choice strong { font-size: 18px; }
  .field-choice small { font-size: 10px; }
  .field-choice button, .field-quick-buy button, .field-contract button { min-height: 44px; padding: 8px 7px; font-size: 11px; }
  .field-project { padding: 13px; }
  .field-project h4 { font-size: 15px; }
  .field-project p { font-size: 11px; }
  .field-project strong { font-size: 19px; }
  .field-quick-buy { padding: 12px; gap: 9px; }
  .field-quick-buy button { flex-basis: 100%; width: 100%; }
  .field-quick-buy > div { flex-basis: 100%; }
  .field-last-hire > strong { font-size: 22px; }
  .field-last-hire > span { font-size: 11px; }
  .field-last-hire > span strong { font-size: 18px; }
  .field-result { padding: 12px; gap: 5px 10px; }
  .field-result > span strong { font-size: 19px; }
  .hq-field-strip { flex-basis: 62px; gap: 9px; padding: 6px 10px; }
  .hq-field-art { flex-basis: 56px; width: 56px; height: 46px; }
  .hq-field-art svg, .progression-world .hq-field-art svg, .org-preview-world .hq-field-art svg { height: 46px !important; }
  .progression-world svg.hq-field-art, .org-preview-world svg.hq-field-art { width: 56px !important; height: 46px !important; }
  .hq-field-strip strong, .hq-field-strip b { font-size: 15px; }
  .hq-field-strip p, .hq-field-strip small { font-size: 10px; }
  .hq-field-copy .hq-field-kicker { font-size: 8px; line-height: 1.1; }
  .hq-field-copy .hq-field-title { font-size: 14px; line-height: 1.3; }
  .hq-field-copy .hq-field-note { font-size: 10px; line-height: 1.3; }
  .hq-field-tag { max-width: 49px; font-size: 9px; padding: 3px 5px; }
  .progression-world { height: 220px; min-height: 220px; }
  .progression-world > .hq-map, .progression-world .hq-map { min-height: 0; height: 100%; }
  .progression-map-heading > div:first-child, .progression-map-actions .progression-growth { display: none; }
  .progression-map-heading { justify-content: flex-end; }
  .org-preview-world .hq-field-strip { display: none; }
  .org-preview-world .hq-town-canvas { height: 100%; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-stage { gap: 10px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal { order: 0; grid-template-columns: minmax(0, 1fr) 108px; grid-template-rows: auto auto 5px; gap: 2px 11px; padding: 10px 12px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-world { order: 1; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal-kicker,
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal > p,
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal-foot { display: none; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal h3 { grid-row: 1; grid-column: 1; font-size: 13px; line-height: 1.4; margin: 0; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal-count { grid-column: 1; grid-row: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 4px; font-size: 10px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal-count strong { font-size: 19px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal > .progression-progress { grid-row: 3; grid-column: 1; height: 4px; margin: 0; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal > button { grid-column: 2; grid-row: 1 / 4; align-self: center; min-height: 44px; width: 100%; padding: 7px 8px; margin: 0; font-size: 11px; line-height: 1.4; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal > button svg { display: none; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal > .progression-goal-foot.is-action-wait { display: block; grid-column: 1 / -1; grid-row: 4; color: #a28e58; font-size: 10px; line-height: 1.5; letter-spacing: 0; margin: 4px 0 0; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .progression-world { height: 180px; min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-map .hq-worker-gesture, .hq-map .hq-field-arrival { animation: none !important; }
}

/* Permanent district investments: comparable quotes and one direct action. */
.field-investments { grid-column: 1 / -1; min-width: 0; padding-top: 15px; border-top: 1px solid #d8e2cb; scroll-margin-top: 128px; }
.field-investments > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.investment-heading h4 { margin: 0; color: #315739; font-size: 17px; line-height: 1.4; font-weight: 850; letter-spacing: -.5px; }
.investment-heading p { margin: 3px 0 0; color: #849772; font-size: 11px; line-height: 1.6; }
.investment-slots { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 55%; padding: 5px 8px; border: 1px solid #d9e5c9; border-radius: 5px; background: #f4f8e9; color: #819665; font-size: 10px; text-align: right; }
.investment-heading { flex: 1; min-width: 0; }
.investment-slots strong { color: #63854a; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; }
.investment-slots small { font-size: 10px; }
.investment-list, .investment-owned-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; }
.investment-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; min-width: 0; padding: 13px 15px; border: 1px solid #d5e2c7; border-left: 3px solid #8eae77; border-radius: 8px; background: #fffef6; }
.investment-row[data-investment-type="fundraising"] { border-left-color: #c4a45f; }
.investment-row[data-investment-type="van"] { border-left-color: #719c9b; }
.investment-title { grid-column: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.investment-title h5 { margin: 0; color: #3b6140; font-size: 14px; line-height: 1.45; font-weight: 850; letter-spacing: -.3px; }
.investment-title > span { border-radius: 3px; padding: 2px 5px; background: #edf3e2; color: #829865; font-size: 9px; font-weight: 750; line-height: 1.3; }
.investment-role { grid-column: 1; margin: 0; color: #879a72; font-size: 10px; line-height: 1.6; }
.investment-role p { margin: 0; }
.investment-title { grid-row: 1; }
.investment-role { grid-row: 2; }
.investment-cost { grid-column: 2; grid-row: 1 / 3; align-self: start; max-width: 160px; color: #55764a; font-size: 15px; line-height: 1.4; font-weight: 850; font-variant-numeric: tabular-nums; text-align: right; }
.investment-cost > strong { display: block; font-size: 17px; font-weight: 850; }
.investment-cost > span { display: block; margin-top: 2px; color: #96a180; font-size: 10px; font-weight: 550; line-height: 1.5; }
.investment-cost small { display: block; color: #97a483; font-size: 9px; font-weight: 550; }
.investment-yield { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 17px; min-width: 0; margin: 3px 0; }
.investment-yield { grid-row: 3; }
.investment-yield > div { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.investment-yield dt { color: #8a9d76; font-size: 10px; font-weight: 550; line-height: 1.5; }
.investment-yield dd { margin: 0; color: #3f6544; font-size: 17px; line-height: 1.4; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.investment-yield dd small { margin-left: 2px; color: #92a079; font-size: 9px; font-weight: 550; }
.investment-yield .is-negative, .investment-yield dd.is-negative { color: #a9804c; }
.investment-yield .is-positive { color: #45803d; }
.investment-upkeep { grid-column: 1; grid-row: 4; margin: 0; color: #82926f; font-size: 10px; line-height: 1.65; }
.investment-roi { grid-column: 1 / -1; grid-row: 6; color: #8a9a73; font-size: 10px; line-height: 1.6; }
.investment-weakness { grid-column: 2; grid-row: 4; margin: 0; color: #a28a5e; font-size: 10px; line-height: 1.65; text-align: right; }
.investment-synergy { grid-column: 1 / -1; margin: 0; color: #8c9e77; font-size: 10px; line-height: 1.7; }
.investment-synergy { grid-row: 5; }
.investment-synergy.is-active, .investment-synergy.is-done { color: #6a914d; }
.investment-synergy strong { color: inherit; font-weight: 750; }
.investment-status { grid-column: 1 / -1; color: #7b9565; font-size: 10px; line-height: 1.6; margin: 0; }
.investment-progress { grid-column: 1 / -1; margin: 3px 0; }
.investment-progress { grid-row: 3; }
.investment-progress .progression-progress { height: 5px; margin: 5px 0; border-radius: 4px; background: #e5ebd8; overflow: hidden; }
.investment-progress > small { color: #a18e60; font-size: 10px; line-height: 1.5; }
.investment-progress > i { display: block; height: 100%; border-radius: 4px; background: #9ab573; }
.investment-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin-top: 5px; }
.investment-actions { grid-row: 7; }
.investment-status { grid-row: 8; }
.investment-actions button, .investment-actions > a { flex: 1 1 135px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 0; padding: 8px 11px; border: 1px solid #cadcba; border-radius: 5px; background: #f0f6e4; color: #63844d; font-size: 11px; line-height: 1.5; font-weight: 750; text-decoration: none; }
.investment-actions button.primary { border-color: #337747; background: #387f4f; color: #fffde9; }
.investment-actions button.secondary { flex-grow: 0; border-color: #dce4cf; background: #fafbf3; color: #8c9d78; }
.investment-actions button:hover:not(:disabled) { border-color: #91b179; background: #e7f1d8; color: #4b783c; }
.investment-actions button.primary:hover:not(:disabled) { background: #2c6e43; border-color: #2c6e43; color: #fffde9; }
.investment-actions button:disabled { border-color: #e0e6d4; background: #f0f2e7; color: #a3ae93; cursor: not-allowed; }
.investment-row.is-building { border-color: #ddcfa5; border-left-color: #c1a35f; background: #fffae9; }
.investment-row.is-building .investment-status { color: #a18a52; }
.investment-row.is-building .investment-progress > i { background: #c2a35c; }
.investment-row.is-active { border-left-color: #6a9b58; background: #f9fcf2; }
.investment-row.is-idle { border-color: #dce2d1; border-left-color: #a5b097; background: #f2f4ea; }
.investment-row.is-idle .investment-status { color: #95a286; }
.investment-row.is-locked { border-color: #e0e4d7; border-left-color: #c6cdb8; background: #f1f3e9; }
.investment-row.is-locked .investment-title h5 { color: #8d9c7b; }
.investment-growth { margin-bottom: 10px; padding: 12px 13px; border: 1px solid #dce4cb; border-radius: 7px; background: #f6f8ed; }
.investment-growth h5 { margin: 0; color: #708b53; font-size: 12px; line-height: 1.5; font-weight: 750; }
.investment-growth p { margin: 4px 0 7px; color: #8a9b75; font-size: 10px; line-height: 1.65; }
.investment-growth .progression-progress { height: 4px; margin: 7px 0; }
.investment-requirements { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.investment-requirements > span { padding: 3px 6px; border: 1px solid #e0e6d2; border-radius: 4px; background: #f2f5e8; color: #9aa68a; font-size: 9px; line-height: 1.4; }
.investment-requirements > span.is-done { border-color: #d2e2bd; background: #eaf4db; color: #7d9d57; }
.investment-owned { margin: 0 0 10px; padding: 0 12px; border: 1px solid #dce4ce; border-radius: 7px; background: #f8faf1; scroll-margin-top: 128px; }
.investment-owned > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 11px 0; color: #819569; font-size: 11px; line-height: 1.7; cursor: pointer; }
.investment-owned-list { padding: 1px 0 12px; }
.field-loan-deadline { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid #dce4ce; border-radius: 7px; background: #f6f8ed; color: #879875; font-size: 11px; line-height: 1.6; }
.field-loan-deadline button { flex: 0 0 auto; min-height: 44px; padding: 7px 10px; border: 1px solid #d0dfbe; border-radius: 5px; background: #fbfcf4; color: #7c9360; font-size: 11px; font-weight: 750; }
.field-loan-deadline.is-warning { background: #fdf5e2; border-color: #e6d6ad; color: #a18a54; }
.field-loan-deadline.is-overdue { background: #fbede0; border-color: #e1c5a7; color: #a5764b; }
.field-recruit-options { grid-column: 1 / -1; padding: 0 12px; border: 1px solid #dbe4cb; border-radius: 7px; background: #f8faf0; }
.field-recruit-options > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 11px 0; color: #7c9465; font-size: 11px; line-height: 1.6; cursor: pointer; }
.field-recruit-options > .field-quick-buy { margin-bottom: 12px; }
.field-recruit-options > p { margin: 0 0 11px; color: #96a27f; font-size: 10px; line-height: 1.7; }
.investment-slot-notice { margin: 5px 0 10px; color: #a58c59; font-size: 11px; line-height: 1.7; }
.investment-slot-notice a { color: #758d55; text-decoration-color: #b3c49b; text-underline-offset: 3px; }
.progression-next-growth { padding-top: 9px; margin-top: 10px; border-top: 1px solid #e0e1c2; }
.progression-next-growth > strong { display: block; color: #89965c; font-size: 11px; line-height: 1.5; font-weight: 750; }
.progression-next-growth > .progression-progress { height: 3px; margin: 5px 0 6px; }
.progression-next-growth .investment-requirements > span { padding: 2px 5px; font-size: 9px; background: #f5f6e5; }
.hq-field-strip[data-investment-status="building"] .hq-field-tag, .hq-field-strip[data-investment-status="relocating"] .hq-field-tag { border-color: #e3d5ae; background: #fbf1d9; color: #a18a4f; }
.hq-field-strip[data-investment-status="paused"] .hq-field-tag { border-color: #d9e0ce; background: #eff2e5; color: #96a188; }
@media (min-width: 900px) {
  .investment-row { grid-template-columns: 185px minmax(0, 1fr) 205px; padding: 14px 16px; gap: 4px 18px; }
  .investment-title { grid-column: 1; grid-row: 1; }
  .investment-role { grid-column: 1; grid-row: 2; }
  .investment-cost { grid-column: 1; grid-row: 3 / 6; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; max-width: none; text-align: left; }
  .investment-cost > span { margin-top: 0; }
  .investment-yield { grid-column: 2; grid-row: 1; margin: 0; }
  .investment-upkeep { grid-column: 2; grid-row: 2; }
  .investment-weakness { grid-column: 2; grid-row: 3; text-align: left; }
  .investment-synergy { grid-column: 2; grid-row: 4; }
  .investment-roi { grid-column: 2; grid-row: 5; }
  .investment-status { grid-column: 2; grid-row: 6; }
  .investment-actions { grid-column: 3; grid-row: 1 / 7; align-self: center; flex-direction: column; margin: 0; }
  .investment-actions button, .investment-actions > a { flex-basis: auto; }
  .investment-progress { grid-column: 2; grid-row: 1 / 4; }
}
@media (max-width: 760px) {
  .field-investments { padding-top: 12px; scroll-margin-top: 108px; }
  .investment-heading h4 { font-size: 16px; }
  .investment-heading p { font-size: 10px; }
  .field-investments > header { gap: 8px; }
  .investment-slots { padding: 4px 6px; gap: 3px; }
  .investment-slots strong { font-size: 11px; }
  .investment-slots small { font-size: 9px; }
  .investment-list, .investment-owned-list { gap: 8px; }
  .investment-row { padding: 9px 12px; gap: 2px 9px; border-radius: 7px; }
  .investment-title { gap: 4px; }
  .investment-title h5 { font-size: 13px; }
  .investment-role { font-size: 10px; }
  .investment-cost { max-width: 130px; font-size: 14px; }
  .investment-cost > strong { font-size: 16px; }
  .investment-cost > span { font-size: 9px; }
  .investment-yield { gap: 4px 12px; margin: 3px 0; }
  .investment-yield > div { gap: 4px; }
  .investment-yield dt { font-size: 9px; }
  .investment-yield dd { font-size: 16px; }
  .investment-upkeep, .investment-weakness, .investment-synergy { font-size: 10px; }
  .investment-actions button, .investment-actions > a { min-height: 44px; flex-basis: 110px; font-size: 11px; padding: 8px; }
  .investment-actions button.secondary { flex-grow: 1; }
  .investment-growth { padding: 10px 11px; }
  .investment-growth h5 { font-size: 12px; }
  .investment-owned { padding: 0 9px; }
  .investment-owned { scroll-margin-top: 108px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.field-command) .progression-goal > .progression-next-growth { grid-column: 1 / -1; grid-row: 5; margin-top: 4px; padding-top: 6px; }
  .progression-next-growth > strong { font-size: 10px; }
  .progression-next-growth .investment-requirements { gap: 3px 5px; }
  .progression-next-growth .investment-requirements > span { font-size: 8px; padding: 2px 4px; }
}

/* Icon-led management views. Secondary explanations use native disclosure. */
.ops-board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ops-board-head h2 { margin: 0; color: #22454c; font-size: 24px; font-weight: 850; letter-spacing: -.8px; }
.ops-section > header h2 { display: flex; align-items: center; gap: 8px; color: #294e51; }
.ops-section > header h2 svg, .tycoon-card h3 > svg, .tycoon-district h3 > svg { flex: 0 0 22px; width: 22px; height: 22px; color: #699a8a; }
.ops-mini-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 10px 0; }
.ops-mini-metrics > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 0 8px; min-width: 0; padding: 10px; border: 1px solid #e0e7df; border-radius: 7px; background: #f7faf5; }
.ops-mini-icon { grid-column: 1; grid-row: 1 / 4; display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; color: #699d8b; border-radius: 8px; background: #e9f3eb; }
.ops-mini-icon svg { width: 21px; height: 21px; }
.ops-mini-metrics small { grid-column: 2; display: block; color: #8a9b8d; font-size: 10px; line-height: 1.4; }
.ops-mini-metrics b { grid-column: 2; color: #254e51; font-size: 20px; font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.ops-mini-metrics em { grid-column: 2; color: #93a494; font-size: 9px; font-weight: 550; font-style: normal; line-height: 1.4; }
.ops-mini-metrics .good b { color: #368263; }
.ops-mini-metrics .bad b { color: #b27d51; }
.ops-detail { min-width: 0; border: 1px solid #dfe7db; border-radius: 7px; background: #fafcf7; color: #839781; font-size: 11px; }
.ops-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; cursor: pointer; list-style: none; }
.ops-detail > summary::-webkit-details-marker { display: none; }
.ops-detail > summary::after { content: '+'; color: #9aae94; font-size: 17px; line-height: 1; }
.ops-detail[open] > summary::after { content: '−'; }
.ops-detail > div { padding: 11px 12px; border-top: 1px solid #e5ebdf; color: #7f937c; font-size: 12px; line-height: 1.8; }
.ops-section > header > .ops-detail[open] { flex-basis: 100%; order: 2; }
.ops-detail .tycoon-report { border: 0; padding: 0; background: transparent; }
.ops-detail .presentation-navigation { margin: 0; }
.ops-section-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; border: 1px solid #dce7d9; border-radius: 7px; background: #f3f8ef; color: #8a9e80; font-size: 11px; }
.ops-section-summary > svg { width: 23px; height: 23px; color: #6d9d81; }
.ops-section-summary strong { color: #3e7857; font-size: 18px; font-weight: 800; }
.ops-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 100px; padding: 20px; border: 1px dashed #d5e1cd; border-radius: 8px; color: #9baa90; font-size: 12px; background: #f8faf4; }
.ops-pressure { display: inline-flex; padding: 4px 7px; border-radius: 4px; background: #f8ecda; color: #b18b53; font-size: 10px; font-weight: 700; }
.district-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 7px 10px; margin: 14px 0 10px; }
.district-compare strong { color: #39816b; font-size: 25px; font-weight: 850; font-variant-numeric: tabular-nums; }
.district-compare > span { color: #b59359; font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; }
.district-compare strong small, .district-compare > span small { display: block; color: #97a98e; font-size: 10px; font-weight: 550; line-height: 1.5; }
.district-compare > b { padding: 4px 6px; border-radius: 4px; background: #edf5e7; color: #75a05d; font-size: 12px; font-weight: 750; }
.district-compare > b.bad { background: #fbf1df; color: #b4935d; }
.district-compare-bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: #ebdcba; overflow: hidden; }
.district-compare-bar > i { display: block; height: 100%; border-radius: 4px; background: #7fa98e; }
.district-compare > small { grid-column: 1 / -1; color: #9aa992; font-size: 10px; }
.policy-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.policy-readout > div { min-width: 0; padding: 9px; border: 1px solid #e0e8d9; border-radius: 6px; background: #f9fcf4; }
.policy-readout dt { display: flex; align-items: center; gap: 5px; color: #94a58b; font-size: 10px; line-height: 1.5; }
.policy-readout dt svg { width: 16px; height: 16px; }
.policy-readout dd { margin: 4px 0 0; color: #537f57; font-size: 19px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.policy-readout dd small { color: #9dad91; font-size: 9px; font-weight: 550; }
.gui-advanced { margin-top: 12px; }

/* The three town tools are the visible entry points, with the selected asset in focus. */
.gui-world-tools { grid-column: 1 / -1; order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 730px; margin: 0 auto; }
.gui-world-tools > button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 76px; min-width: 0; padding: 9px 12px; border: 1px solid #d1dfdc; border-radius: 11px; background: #fffef7; color: #385e62; box-shadow: 0 3px 10px #27464507; font-size: 13px; font-weight: 800; line-height: 1.4; }
.gui-world-tools > button:hover { background: #f0f8f4; border-color: #97b8ab; }
.gui-world-tools > button[aria-pressed="true"], .gui-world-tools > button.on { background: #e6f4ed; border-color: #79ad98; box-shadow: inset 0 -3px 0 #6d9e87; }
.gui-world-tools > button > svg, .gui-world-tools .gui-asset-icon { flex: 0 0 48px; width: 48px !important; height: 44px !important; min-height: 0; }
.gui-world-tools small { display: block; color: #93a79a; font-size: 10px; font-weight: 600; }
.gui-command-details { grid-column: 1 / -1; order: 3; min-width: 0; border: 1px solid #d9e5db; border-radius: 9px; background: #fbfdf8; }
details.field-command.gui-command-details { display: block; padding: 0; }
.presentation-mode.tutorial-active .field-command { display: none !important; }
.gui-command-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 12px 15px; color: #7d9688; font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.gui-command-details > summary::-webkit-details-marker { display: none; }
.gui-command-details > summary::after { content: '+'; color: #9eafa0; font-size: 18px; line-height: 1; }
.gui-command-details[open] > summary::after { content: '−'; }
.gui-command-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border-top: 1px solid #e1eadf; }
.gui-command-details > .field-command { margin: 0; border: 0; box-shadow: none; background: transparent; }
.gui-overview-detail { grid-column: 1 / -1; order: 5; }
.progression-overview:has(.gui-world-tools) > .progression-heading { display: none; }
.progression-overview:has(.gui-world-tools) .progression-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.progression-overview:has(.gui-world-tools) .progression-world { order: 1; height: 550px; min-height: 550px; border-radius: 15px; background: #dfecdf; border-color: #d2e0d5; }
.progression-overview:has(.gui-world-tools) .progression-goal { order: 0; min-height: 62px; }
.progression-overview:has(.gui-world-tools) .progression-goal .progression-primary { box-shadow: none; }
.progression-world.has-world-selection { overflow: visible; z-index: 14; }
.gui-world-selection-host { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.gui-world-selection-host:empty { display: none; }
.gui-world-selection { position: fixed; top: 110px; right: max(16px, calc((100vw - 1240px) / 2 + 15px)); width: 330px; max-width: calc(100vw - 30px); max-height: calc(100dvh - 126px); overflow: auto; pointer-events: auto; padding: 14px; border: 1px solid #cadcd4; border-radius: 13px; background: #fffef8f7; box-shadow: 0 10px 35px #1d444d30; color: #345861; scrollbar-width: thin; }
.gui-world-selection-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.gui-world-selection-head .gui-asset-icon, .gui-world-selection-head > svg { flex: 0 0 49px; width: 49px !important; height: 45px !important; min-height: 0; }
.gui-world-selection-head h4 { flex: 1; margin: 0; color: #234e57; font-size: 16px; font-weight: 850; line-height: 1.4; letter-spacing: -.4px; }
.gui-world-selection-head button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #e0e7de; border-radius: 8px; background: #f7faf2; color: #8aa195; font-size: 20px; font-weight: 550; }
.gui-world-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; padding: 3px; border-radius: 7px; background: #ecf3e9; }
.gui-world-tabs button { min-width: 0; min-height: 44px; padding: 6px 4px; border: 0; border-radius: 5px; background: transparent; color: #8a9c81; font-size: 11px; font-weight: 700; }
.gui-world-tabs button[aria-pressed="true"], .gui-world-tabs button.on { background: #fffef7; color: #3e7765; box-shadow: 0 1px 5px #304e2c0c; }
.gui-world-selection .gui-card-actions { position: sticky; bottom: -14px; margin: 8px -2px -2px; padding: 8px 2px 2px; background: #fffef8; }
.gui-world-selection :is(button,summary,a) { touch-action: manipulation; }

@media (max-width: 760px) {
  .ops-board-head h2 { font-size: 21px; }
  .ops-mini-metrics { gap: 6px; }
  .ops-mini-metrics > div { padding: 8px; grid-template-columns: 25px minmax(0, 1fr); gap: 0 6px; }
  .ops-mini-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .ops-mini-icon svg { width: 19px; height: 19px; }
  .ops-mini-metrics b { font-size: 18px; }
  .policy-readout { gap: 5px; }
  .policy-readout > div { padding: 8px 6px; }
  .policy-readout dd { font-size: 17px; }
  .gui-command-body { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .gui-world-tools { gap: 7px; }
  .gui-world-tools > button { flex-direction: column; min-height: 66px; gap: 3px; padding: 7px 4px; font-size: 11px; border-radius: 9px; }
  .gui-world-tools > button > svg, .gui-world-tools .gui-asset-icon { flex-basis: 31px; width: 40px !important; height: 31px !important; }
  .gui-world-tools small { font-size: 9px; }
  .progression-overview:has(.gui-world-tools) { gap: 9px; }
  .progression-overview:has(.gui-world-tools) .progression-stage { gap: 9px; }
  .progression-overview:has(.gui-world-tools) .progression-world { height: 320px; min-height: 320px; border-radius: 12px; }
  .progression-world.has-world-selection { z-index: 14; }
  .gui-world-selection { position: fixed; top: auto; left: 12px; right: 12px; bottom: calc(119px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; max-height: calc(100dvh - 224px - env(safe-area-inset-bottom, 0px)); padding: 13px; border-radius: 14px; box-shadow: 0 -6px 34px #1a3e4c35; }
  .gui-world-selection .gui-card-actions { bottom: -13px; }
  .gui-world-selection-head h4 { font-size: 16px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .progression-overview:has(.gui-world-tools) .progression-world { height: 260px; min-height: 260px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .progression-overview:has(.gui-world-tools) .progression-world { height: 205px; min-height: 205px; }
  .gui-world-tools > button { min-height: 62px; }
}

/* Building illustrations, three comparable numbers, then one action. */
.gui-investment-grid, .gui-owned-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gui-owned-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.investment-row.gui-investment-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; gap: 8px; min-width: 0; padding: 15px; border: 1px solid #d9e5df; border-top: 3px solid #84ad9c; border-radius: 11px; background: #fffef8; box-shadow: 0 3px 12px #24465507; }
.gui-investment-card[data-investment-type="fundraising"] { border-top-color: #d1b471; }
.gui-investment-card[data-investment-type="van"] { border-top-color: #7ca9b7; }
.gui-card-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gui-card-heading > .gui-asset-icon { display: block; flex: 0 0 68px; width: 68px !important; height: 62px !important; min-height: 0; }
.gui-card-title { flex: 1; min-width: 0; }
.gui-card-title h5 { margin: 0; color: #244a54; font-size: 15px; font-weight: 850; line-height: 1.4; letter-spacing: -.3px; }
.gui-card-title > span { display: block; color: #92a398; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.gui-state { flex: 0 0 auto; border: 1px solid #dce8dc; border-radius: 4px; padding: 4px 6px; background: #eff6ea; color: #7fa06d; font-size: 10px; font-weight: 750; line-height: 1.4; }
.gui-investment-card.is-building .gui-state { background: #fbf1d9; border-color: #e9d7a6; color: #b18f4c; }
.gui-investment-card.is-idle .gui-state { background: #f0f2eb; border-color: #e1e5d9; color: #a0ab93; }
.gui-investment-card > .gui-card-caption { grid-column: 1 / -1; grid-row: auto; color: #9aab9b; font-size: 9px; line-height: 1.5; }
.gui-investment-card > .gui-card-metrics, .gui-world-selection .gui-card-metrics { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 0; }
.gui-card-metrics > div { display: block; min-width: 0; padding: 10px 8px; border: 1px solid #e0e9e1; border-radius: 7px; background: #f5f9f3; }
.gui-card-metrics > div:nth-child(2) { background: #fbf7e9; border-color: #ece3c7; }
.gui-card-metrics > div:nth-child(3) { background: #f2f6f6; border-color: #dfe8e7; }
.gui-card-metrics dt { display: block; color: #8c9f96; font-size: 10px; font-weight: 550; line-height: 1.4; }
.gui-card-metrics dt > small { margin-left: 2px; color: #a6b3a6; font-size: 8px; }
.gui-card-metrics dd { display: block; margin: 6px 0 0; color: #2e6370; font-size: 20px; font-weight: 850; letter-spacing: -.6px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gui-card-metrics dd small { color: #8ca49a; font-size: 9px; font-weight: 550; margin: 0 1px; }
.gui-card-metrics .is-negative dd { color: #b58956; }
.gui-investment-card > .gui-card-actions { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; gap: 6px; margin: 1px 0 0; }
.gui-card-actions button, .gui-card-actions > a, .gui-owned-shortcut > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 100px; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #b6cfc1; border-radius: 7px; background: #e8f4ec; color: #367461; font-size: 12px; font-weight: 800; line-height: 1.4; text-decoration: none; }
.gui-card-actions button svg, .gui-owned-shortcut > button svg { width: 17px; height: 17px; }
.gui-card-actions button:hover:not(:disabled), .gui-owned-shortcut > button:hover { background: #d8ebdf; border-color: #86b49c; }
.gui-card-actions button:disabled { background: #f0f3eb; border-color: #e0e6d7; color: #a0ad95; }
.gui-investment-card > .gui-state-note { grid-column: 1 / -1; grid-row: auto; color: #b0986b; font-size: 10px; line-height: 1.5; }
.gui-investment-card > .gui-card-detail { grid-column: 1 / -1; grid-row: auto; }
.gui-card-detail { min-width: 0; border-top: 1px solid #e5ebe0; color: #8b9e8b; font-size: 11px; }
.gui-card-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 9px 0; color: #8da28d; font-size: 11px; line-height: 1.5; cursor: pointer; list-style: none; }
.gui-card-detail > summary::-webkit-details-marker { display: none; }
.gui-card-detail > summary svg { width: 16px; height: 16px; color: #a4b4a0; transform: rotate(90deg); }
.gui-card-detail[open] > summary svg { transform: rotate(-90deg); }
.gui-card-detail > p { margin: 0 0 10px; color: #8a9d81; font-size: 11px; line-height: 1.8; }
.gui-detail-grid { margin: 0; }
.gui-detail-grid > div { margin: 0 0 10px; }
.gui-detail-grid dt { color: #6f937d; font-size: 10px; font-weight: 750; line-height: 1.6; }
.gui-detail-grid dd { margin: 3px 0 0; color: #92a18a; font-size: 11px; line-height: 1.8; }
.gui-condition { display: block; color: #a8b39b; font-size: 9px; margin: 5px 0 10px; }
.gui-investment-card > .investment-progress { grid-column: 1 / -1; grid-row: auto; }
.gui-investments .investment-heading { display: flex; align-items: baseline; gap: 9px; }
.gui-investments .investment-heading > span { color: #9aa991; font-size: 11px; }
.gui-investments .investment-slots { flex-direction: row; align-items: baseline; gap: 5px; padding: 5px 8px; color: #9caa90; font-size: 10px; }
.gui-investments .investment-slots b { color: #638675; font-size: 18px; font-weight: 850; }
.gui-investments .investment-owned > summary svg { width: 21px; height: 21px; color: #8ca68b; }
.gui-investments .investment-owned > summary b { margin-left: auto; font-size: 11px; color: #7d9c75; }
.gui-growth { border: 1px solid #e1e7d9; border-radius: 7px; padding: 10px 12px; background: #f7faf2; }
.gui-growth-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #80966d; font-size: 12px; }
.gui-growth-title strong { font-size: 12px; font-weight: 750; }
.gui-growth-title > span { color: #9eaf8b; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.progression-overview:has(.gui-world-tools) .progression-goal { display: grid; grid-template-columns: minmax(0, 1fr) 130px 180px; grid-template-rows: auto 4px; gap: 5px 16px; padding: 9px 14px; border-radius: 9px; overflow: visible; }
.progression-overview:has(.gui-world-tools) .progression-goal > h3 { grid-column: 1; grid-row: 1; margin: 0; color: #48644b; font-size: 15px; font-weight: 800; line-height: 1.4; }
.progression-overview:has(.gui-world-tools) .progression-goal-count { grid-column: 2; grid-row: 1 / 3; flex-direction: row; align-items: baseline; justify-content: center; gap: 4px; margin: 0; font-size: 11px; }
.progression-overview:has(.gui-world-tools) .progression-goal-count strong { font-size: 22px; }
.progression-overview:has(.gui-world-tools) .progression-goal > .progression-progress { grid-column: 1; grid-row: 2; height: 4px; margin: 0; }
.progression-overview:has(.gui-world-tools) .progression-goal > button { grid-column: 3; grid-row: 1 / 3; min-height: 44px; padding: 9px 11px; margin: 0; box-shadow: none; font-size: 12px; }
.progression-overview:has(.gui-world-tools) .progression-goal > .gui-goal-detail { grid-column: 1 / -1; grid-row: 3; margin: 0; }
.progression-overview:has(.gui-world-tools) .progression-goal > .progression-goal-kicker { display: none; }
.gui-world-selection { touch-action: pan-y; overscroll-behavior: auto; }
.gui-world-selection-head { position: sticky; top: -14px; z-index: 3; margin-top: -2px; padding-top: 2px; padding-bottom: 5px; background: #fffef8; }
@media (max-width: 760px) {
  .gui-investment-grid, .gui-owned-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .investment-row.gui-investment-card { padding: 12px; gap: 7px; }
  .gui-card-heading { gap: 9px; }
  .gui-card-heading > .gui-asset-icon { flex-basis: 56px; width: 56px !important; height: 51px !important; }
  .gui-card-title h5 { font-size: 14px; }
  .gui-card-metrics > div { padding: 9px 6px; }
  .gui-card-metrics dd { font-size: 18px; }
  .gui-card-metrics dt { font-size: 9px; }
  .gui-card-metrics dt > small { font-size: 8px; }
  .gui-card-actions button, .gui-owned-shortcut > button { font-size: 11px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal { grid-template-columns: minmax(0, 1fr) 108px; grid-template-rows: auto auto 4px; gap: 1px 10px; padding: 7px 11px; min-height: 58px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal > h3 { grid-column: 1; grid-row: 1; font-size: 12px; line-height: 1.35; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal-count { grid-column: 1; grid-row: 2; justify-content: flex-start; font-size: 9px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal-count strong { font-size: 17px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal > .progression-progress { grid-column: 1; grid-row: 3; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal > button { grid-column: 2; grid-row: 1 / 4; min-height: 44px; padding: 6px 7px; font-size: 11px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal > .gui-goal-detail { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 760px) and (max-height: 480px) {
  .gui-world-selection { top: 8px; bottom: 8px; max-height: calc(100dvh - 16px); }
  .gui-world-selection-head { top: -13px; }
}

/* Compact map selection: the catalog is a toolbar, the selected asset is the card. */
.gui-world-tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 5px 4px; }
.gui-world-tabs button .gui-asset-icon { display: block; flex: 0 0 31px; width: 31px !important; height: 29px !important; min-height: 0; }
.gui-world-tabs button > span { font-size: 10px; line-height: 1.4; }
.gui-world-selection > .gui-investment-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 6px; }
.gui-world-selection > .gui-investment-card .gui-card-heading > .gui-asset-icon { flex-basis: 50px; width: 50px !important; height: 46px !important; }
.gui-world-selection .gui-card-metrics > div { padding: 8px 6px; }
.gui-world-selection .gui-card-actions svg, .gui-world-selection .gui-card-detail > summary svg { width: 17px !important; height: 17px !important; min-height: 0; }
.gui-world-selection .gui-card-caption { font-size: 8px; line-height: 1.4; }
.gui-world-selection .gui-card-detail > summary { padding: 7px 0; }
.gui-world-selection .gui-card-title h5 { font-size: 14px; }
.gui-world-selection .gui-card-title > span { font-size: 9px; margin-top: 1px; }
.progression-overview:has(.gui-world-tools) .progression-goal { grid-template-columns: minmax(0, 1fr) 125px 44px 180px; }
.progression-overview:has(.gui-world-tools) .progression-goal > button { grid-column: 4; }
.gui-goal-help { grid-column: 3; grid-row: 1 / 3; align-self: center; min-width: 0; }
.gui-goal-help > summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #8c9f74; font-size: 16px; cursor: pointer; list-style: none; }
.gui-goal-help > summary::-webkit-details-marker { display: none; }
.gui-goal-help[open] { position: absolute; right: 208px; top: 7px; z-index: 18; width: 310px; padding: 7px 12px 12px; border: 1px solid #dfdfc2; border-radius: 9px; background: #fffdf0; box-shadow: 0 8px 25px #31443120; }
.gui-goal-help[open] > summary { width: 44px; margin-left: auto; font-size: 0; }
.gui-goal-help[open] > summary::after { content: '×'; font-size: 20px; line-height: 1; }
.gui-goal-help > p { margin: 0; color: #7e9174; font-size: 12px; line-height: 1.8; }
.gui-goal-help > small { display: block; margin-top: 7px; color: #9aa983; font-size: 10px; line-height: 1.7; }
.gui-overview-detail { border: 1px solid #dce7db; border-radius: 9px; background: #fbfdf6; }
.gui-overview-detail > summary { display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 10px 14px; color: #879c85; font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.gui-overview-detail > summary svg, .gui-command-details > summary svg { width: 21px; height: 21px; color: #8ba992; }
.gui-overview-detail > summary span, .gui-command-details > summary span { margin-left: auto; color: #a1b094; font-size: 10px; font-weight: 550; }
.gui-overview-detail > .progression-resources { margin: 0 12px 12px; }
.progression-receipt.gui-receipt { display: block; padding: 0 13px; box-shadow: none; border-color: #d9e6cf; background: #f9fcf1; animation: none; }
.gui-receipt > summary { display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 10px 0; list-style: none; cursor: pointer; }
.gui-receipt > summary svg { flex: 0 0 23px; width: 23px; height: 23px; color: #8daf71; }
.gui-receipt > summary strong { color: #799567; font-size: 12px; font-weight: 750; line-height: 1.5; }
.gui-receipt > summary > span { margin-left: auto; color: #a2b28e; font-size: 10px; white-space: nowrap; }
.gui-receipt > .progression-change-list { margin: 0 0 13px; }
.gui-receipt[open] > summary { border-bottom: 1px solid #e3ecd7; margin-bottom: 8px; }
.gui-receipt > summary::-webkit-details-marker { display: none; }
.ops-section .tycoon-chip svg, .tycoon-metrics small > svg { width: 16px; height: 16px; vertical-align: -3px; }
.tycoon-metrics small { display: flex; align-items: center; gap: 5px; }
@media (max-width: 760px) {
  .presentation-mode .pill small { font-size: 9px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal { grid-template-columns: minmax(0, 1fr) 108px; }
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-goal > button { grid-column: 2; }
  .gui-goal-help { position: absolute; right: 126px; top: 6px; width: 44px; }
  .progression-overview:has(.gui-world-tools) .progression-goal > h3 { padding-right: 40px; }
  .progression-overview:has(.gui-world-tools) .progression-goal-count { padding-right: 35px; }
  .gui-goal-help[open] { position: fixed; left: 12px; right: 12px; top: 108px; width: auto; max-height: calc(100dvh - 230px); overflow: auto; z-index: 18; }
  .gui-world-selection { padding: 12px; }
  .gui-world-selection-head { top: -12px; margin-bottom: 7px; padding-bottom: 3px; }
  .gui-world-tabs { margin-bottom: 7px; }
  .gui-world-selection .gui-card-actions { bottom: -12px; padding-top: 6px; }
  .gui-world-selection .gui-card-metrics dd { font-size: 18px; }
}
@media (max-width: 760px) and (max-height: 480px) {
  .gui-goal-help[open] { top: 8px; max-height: calc(100dvh - 16px); }
}
@media (max-width: 760px) {
  .presentation-mode.tutorial-active .gui-city-board .gui-goal { display: grid; grid-template-columns: minmax(0, 1fr) 108px; grid-template-rows: auto auto 4px; gap: 1px 10px; min-width: 0; max-width: 100%; min-height: 58px; padding: 7px 11px; }
  .presentation-mode.tutorial-active .gui-city-board .gui-goal > h3 { grid-column: 1; grid-row: 1; font-size: 12px; line-height: 1.35; }
  .presentation-mode.tutorial-active .gui-city-board .gui-goal-count { grid-column: 1; grid-row: 2; flex-direction: row; justify-content: flex-start; gap: 4px; padding-right: 35px; font-size: 9px; }
  .presentation-mode.tutorial-active .gui-city-board .gui-goal-count strong { font-size: 17px; }
  .presentation-mode.tutorial-active .gui-city-board .gui-goal > .progression-progress { grid-column: 1; grid-row: 3; height: 4px; margin: 0; }
  .presentation-mode.tutorial-active .gui-city-board .gui-goal > button { grid-column: 2; grid-row: 1 / 4; width: 100%; min-width: 0; min-height: 44px; padding: 6px 7px; margin: 0; font-size: 11px; }
  .presentation-mode.tutorial-active .gui-city-board .gui-goal > button svg { display: none; }
}

.progression-overview:has(.gui-world-tools) .progression-goal { grid-template-columns: minmax(0, 1fr) minmax(160px, 180px) 44px 180px; }
.gui-goal .progression-goal-count { flex-wrap: nowrap; }
.gui-goal .progression-goal-count > strong, .gui-goal .progression-goal-count > span { flex-shrink: 0; white-space: nowrap; word-break: normal; }
.gui-card-metrics dt { white-space: nowrap; word-break: normal; }
.gui-slot-chip { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 4px; min-height: 18px; padding: 2px 6px; border: 1px solid #d4e3d7; border-radius: 12px; background: #fffef6; color: #819b8c; font-size: 9px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 5px #254b3b08; }
.gui-slot-chip b, .gui-slot-chip strong { color: #547f6a; font-size: 10px; font-weight: 850; }
.gui-world-tools { position: relative; }
.gui-world-tools > .gui-slot-chip { position: absolute; right: 8px; top: -8px; z-index: 3; }
.gui-slot-pips { display: flex; gap: 3px; align-items: center; margin-left: 1px; }
.gui-slot-pips > i { display: block; width: 4px; height: 4px; border: 1px solid #c3d7c4; border-radius: 50%; background: #eef4e7; }
.gui-slot-pips > i.is-on { border-color: #74a58b; background: #74a58b; }
.gui-world-selection-head > .gui-slot-chip { margin-left: auto; }
@media (max-width: 760px) {
  .presentation-mode .gui-city-board .gui-goal { grid-template-columns: minmax(0, 1fr) 108px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools),
  .presentation-mode:not(.tutorial-active)[data-tutorial-step=""] .progression-overview:has(.gui-world-tools) .progression-stage { gap: 4px; }
  .presentation-mode:not(.tutorial-active) .gui-world-tools > button { padding: 5px 4px; }
}

/* One quiet inbox for automatic rewards and things that need a decision. */
.attention-trigger { position: relative; display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 4px; border: 1px solid #d56b5f; border-radius: 8px; background: #b83f34; color: #fff9e9; box-shadow: inset 0 -2px 0 #7f2e2540; font-size: 25px; font-weight: 900; line-height: 1; }
.attention-trigger:hover, .attention-trigger[aria-expanded="true"] { border-color: #f4ae8f; background: #cb4c3d; }
.attention-trigger.is-empty, .attention-trigger[data-count="0"] { border-color: #5e7b70; background: #2e5048; color: #a3baa9; box-shadow: none; }
.attention-trigger.is-empty .attention-count, .attention-trigger[data-count="0"] .attention-count { display: none; }
.attention-trigger:focus-visible, .attention-layer button:focus-visible, .attention-layer a:focus-visible { outline: 3px solid #efc563; outline-offset: 3px; }
.attention-count { position: absolute; top: 2px; right: 2px; display: inline-flex; align-items: center; justify-content: center; min-width: 15px; min-height: 15px; padding: 1px 3px; border: 1px solid #e9af8e; border-radius: 8px; background: #fff6da; color: #a23f30; font-size: 9px; font-weight: 850; line-height: 1.1; }
.attention-count:empty { display: none; }
.attention-trigger[hidden], .attention-layer[hidden] { display: none !important; }
.attention-layer { position: fixed; inset: 0; z-index: 40; }
.attention-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #102f342e; cursor: default; touch-action: manipulation; }
.attention-drawer { position: absolute; top: 85px; left: max(16px, calc((100vw - 1240px) / 2 + 20px)); display: flex; flex-direction: column; width: 365px; max-width: calc(100vw - 32px); max-height: min(620px, calc(100dvh - 108px)); padding: 13px; border: 1px solid #d5dfd2; border-radius: 13px; background: #fffdf5; box-shadow: 0 12px 45px #173d3f30; color: #244b50; }
.attention-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 0 9px 3px; border-bottom: 1px solid #e3e8db; }
.attention-head h2 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 17px; font-weight: 850; line-height: 1.4; letter-spacing: -.5px; }
.attention-head h2::before { content: '!'; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; background: #bd493b; color: #fffbed; font-size: 17px; font-weight: 900; line-height: 1; }
.attention-head > button { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 5px; border: 1px solid #dfe6da; border-radius: 8px; background: #f5f8ee; color: #7d978c; font-size: 23px; line-height: 1; }
.attention-head > button:hover { background: #eaf1e2; color: #3e705e; }
.attention-head > h2 { flex: 1 1 auto; white-space: nowrap; }
.attention-head > .attention-read-news { flex: 0 0 auto; width: auto; min-width: 74px; min-height: 44px; margin-left: auto; padding: 6px 8px; border-color: #d2decb; background: #edf4e4; color: #63815d; font-size: 10px; font-weight: 750; line-height: 1.35; white-space: nowrap; }
.attention-head > .attention-read-news[hidden], .attention-head > .attention-read-news.hidden { display: none !important; }
.attention-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-height: 0; overflow: auto; padding: 10px 2px 2px; scrollbar-width: thin; touch-action: pan-y; overscroll-behavior: auto; }
.attention-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 72px; padding: 11px; border: 1px solid #e0e6d9; border-radius: 9px; background: #f9fbf2; text-align: left; }
.attention-item:hover { border-color: #aec8b2; background: #f0f6e8; }
.attention-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #d7e5d5; border-radius: 9px; background: #edf5e7; color: #568869; font-size: 20px; font-weight: 850; line-height: 1; }
.attention-icon svg { display: block; width: 21px; height: 21px; }
.attention-copy { display: block; min-width: 0; }
.attention-copy strong { display: block; color: #2e5c5c; font-size: 13px; font-weight: 800; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.attention-copy small { display: block; margin-top: 3px; color: #839789; font-size: 11px; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.attention-meta { color: #99aa91; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.attention-meta svg { display: block; width: 16px; height: 16px; }
.attention-item.is-reward .attention-icon { border-color: #ead7a8; background: #fff3d3; color: #af8b3e; }
.attention-item.is-unlock .attention-icon { border-color: #cfdfe4; background: #edf5f6; color: #5d8f9b; }
.attention-item.is-warning, .attention-item.is-urgent { border-color: #e5bca9; background: #fff7eb; }
.attention-item.is-warning .attention-icon, .attention-item.is-urgent .attention-icon { border-color: #e7baa4; background: #fbe5d5; color: #bd614a; }
.attention-item.is-urgent .attention-copy strong { color: #a34d3c; }
.attention-empty { margin: 9px 0 0; padding: 27px 12px; border: 1px dashed #dbe5d4; border-radius: 9px; background: #f7faef; color: #81957e; text-align: center; font-size: 12px; line-height: 1.7; }
.has-attention { position: relative; }
.has-attention::after { content: '!'; position: absolute; top: 3px; right: 3px; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid #fff8e8; border-radius: 50%; background: #bf4b3d; color: #fff9e8; font-size: 10px; font-weight: 900; line-height: 1; pointer-events: none; }
.presentation-mode .who:has(.attention-trigger:not(.hidden):not([hidden])) > #mailShort { display: none !important; }
body:not(.presentation-mode) .attention-trigger, body:not(.presentation-mode) .attention-layer,
.tutorial-active .attention-trigger, .tutorial-active .attention-layer,
body:has(.modal:not(.hidden):not([hidden])) .attention-trigger,
body:has(.modal:not(.hidden):not([hidden])) .attention-layer { display: none !important; }
@media (min-width: 761px) {
  .presentation-mode .hud-top:has(.attention-trigger:not(.hidden):not([hidden])) { position: relative; padding-right: 54px; }
  .presentation-mode .who > .attention-trigger { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
}
@media (max-width: 760px) {
  .presentation-mode .hud .who:has(.attention-trigger:not(.hidden):not([hidden])) { display: grid; grid-template-columns: minmax(0, 56px) 44px 44px; grid-template-rows: 22px 22px; gap: 0 4px; flex: 0 1 auto; min-width: 0; }
  .presentation-mode .who:has(.attention-trigger:not(.hidden):not([hidden])) > .party-chip,
  .presentation-mode .who:has(.attention-trigger:not(.hidden):not([hidden])) > .rank { justify-self: end; width: fit-content; max-width: 56px; padding: 2px 5px; overflow: hidden; font-size: 8px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
  .presentation-mode .who:has(.attention-trigger:not(.hidden):not([hidden])) > .party-chip { grid-column: 1; grid-row: 1; align-self: end; }
  .presentation-mode .who:has(.attention-trigger:not(.hidden):not([hidden])) > .rank { grid-column: 1; grid-row: 2; align-self: start; margin-top: 2px; }
  .presentation-mode .who > .attention-trigger { grid-column: 2; grid-row: 1 / 3; }
  .presentation-mode .who:has(.attention-trigger:not(.hidden):not([hidden])) > #mobileToolsBtn { grid-column: 3; grid-row: 1 / 3; }
  .attention-drawer { top: auto; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; max-height: min(72dvh, 580px); padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px)); border-radius: 16px; }
  .attention-head { padding-left: 2px; }
  .attention-head h2 { font-size: 16px; }
  .attention-item { min-height: 68px; padding: 10px; gap: 9px; }
}
@media (max-width: 760px) and (max-height: 480px) {
  .attention-drawer { top: 8px; bottom: 8px; max-height: calc(100dvh - 16px); padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .attention-trigger, .attention-layer, .attention-layer * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Growth has three visible steps; every step opens the action that advances it. */
.presentation-mode .gui-city-board .progression-stage > .progression-goal.gui-goal.is-growth-goal { display: block; min-height: 0; padding: 12px 14px 10px; }
.presentation-mode .gui-city-board .progression-stage > .progression-goal.gui-goal.is-growth-goal > h3 { margin: 0 0 9px; padding: 0; color: #3f593d; font-size: 15px; line-height: 1.3; }
.gui-growth.gui-growth-main { margin: 0; padding: 0; border: 0; background: transparent; }
.gui-growth-main .gui-growth-title { margin-bottom: 8px; }
.gui-growth-main .gui-growth-title strong { color: #405e40; font-size: 13px; }
.gui-growth-main .gui-growth-title > span { color: #6d814c; font-size: 13px; }
.gui-growth-main > .gui-growth-title { position: absolute; top: 12px; right: 14px; margin: 0; }
.gui-growth-main > .gui-growth-title > strong { display: none; }
.gui-growth-main > .progression-progress { display: none; }
.gui-growth-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.progression-goal .gui-growth-step, .gui-growth-step { position: relative; display: grid; grid-template-columns: 27px minmax(0, 1fr); grid-template-rows: auto auto 5px; align-items: center; gap: 5px 7px; width: 100%; min-width: 0; min-height: 75px; margin: 0; padding: 9px 10px; border: 1px solid #d8dfc5; border-radius: 7px; background: #fffcf0; color: #3c6150; text-align: left; box-shadow: none; }
.progression-goal .gui-growth-step:hover, .gui-growth-step:hover { border-color: #84a778; background: #f3f7e7; }
.gui-growth-step.is-done { border-color: #a6c6a0; background: #edf6e3; }
.gui-growth-icon { display: flex; grid-column: 1; grid-row: 1; align-items: center; justify-content: center; width: 27px; height: 25px; color: #6b9276; }
.gui-growth-icon svg { display: block; width: 24px; height: 24px; }
.gui-growth-icon:has(> svg + svg) { gap: 0; }
.gui-growth-icon:has(> svg + svg) > svg { width: 17px; height: 19px; flex: 0 0 17px; }
.gui-growth-label { grid-column: 2; grid-row: 1; color: #587249; font-size: 11px; font-weight: 750; line-height: 1.3; }
.gui-growth-count { display: flex; grid-column: 1 / -1; grid-row: 2; align-items: baseline; justify-content: flex-start; gap: 3px; min-width: 0; color: #74846a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gui-growth-count strong { color: #315a44; font-size: 21px; font-weight: 850; line-height: 1.2; letter-spacing: -.5px; }
.gui-growth-count small { color: #6f8066; font-size: 11px; font-weight: 600; }
.gui-growth-count > i { position: absolute; top: 5px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #d8eacb; color: #4b814a; font-size: 10px; font-style: normal; }
.gui-growth-progress { display: block; grid-column: 1 / -1; grid-row: 3; height: 5px; overflow: hidden; border-radius: 4px; background: #e3e7d6; }
.gui-growth-progress > i { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: #6f9d65; }
.gui-growth-rewards { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.gui-growth-reward { display: inline-flex; align-items: center; gap: 5px; color: #715d2d; font-size: 11px; font-weight: 750; line-height: 1.3; }
.gui-growth-reward > svg { width: 21px; height: 21px; color: #a88b43; }
.gui-reward-pips { display: inline-flex; gap: 3px; }
.gui-reward-pips > i { width: 9px; height: 11px; border: 1px solid #97b091; border-radius: 2px; background: #dae8c9; }
.gui-reward-pips > i:last-child { border-color: #bb974e; background: #f3d88e; }

/* The map and its four contested districts share the same emerald / clay key. */
.gui-district-strip { display: grid; grid-column: 1 / -1; order: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.gui-district-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 7px auto auto; align-items: center; gap: 5px 7px; width: 100%; min-width: 0; min-height: 93px; padding: 10px 11px; border: 1px solid #d2dfd4; border-radius: 8px; background: #fbfdf5; color: #355b54; text-align: left; }
.gui-district-card:hover { border-color: #91b29a; background: #f0f6e8; }
.gui-district-card.is-focused { border-color: #50886c; box-shadow: inset 3px 0 0 #50886c; background: #f0f7e8; }
.gui-district-name { grid-column: 1; grid-row: 1; color: #375a50; font-size: 12px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.gui-district-focus { grid-column: 2; grid-row: 1; color: #58836d; font-size: 9px; font-weight: 750; line-height: 1.35; white-space: nowrap; }
.gui-district-gauge { display: flex; grid-column: 1 / -1; grid-row: 2; height: 7px; overflow: hidden; gap: 2px; border-radius: 4px; background: #e0e4d9; }
.gui-district-gauge > i { display: block; min-width: 0; height: 100%; }
.gui-district-gauge > i.is-us { background: #4a8a6c; }
.gui-district-gauge > i.is-rival { background: #be8a6c; }
.gui-district-scores { display: flex; grid-column: 1 / -1; grid-row: 3; align-items: baseline; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.gui-district-scores .is-us { color: #2e6f51; font-size: 13px; font-weight: 850; }
.gui-district-scores .is-rival { color: #986449; font-size: 12px; font-weight: 700; }
.gui-district-difference { grid-column: 1; grid-row: 4; color: #64856b; font-size: 10px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.gui-district-card.is-trailing .gui-district-difference { color: #a26947; }
.gui-district-assets { display: flex; grid-column: 2; grid-row: 4; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; }
.gui-district-assets svg { display: block; width: 19px; height: 17px; }
.gui-district-assets .is-paused { opacity: .45; }
.gui-world-tools:has(.gui-tool-price) > button { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: center; gap: 4px 9px; min-height: 102px; padding: 13px; border-top: 3px solid #7aa78d; text-align: left; }
.gui-world-tools:has(.gui-tool-price) > button[data-world-offer-type="fundraising"] { border-top-color: #c5a269; }
.gui-world-tools:has(.gui-tool-price) > button[data-world-offer-type="van"] { border-top-color: #7da4ad; }
.gui-world-tools:has(.gui-tool-price) > button > .gui-asset-icon { grid-column: 1; grid-row: 1 / 4; width: 56px !important; height: 51px !important; }
.gui-tool-name { grid-column: 2; grid-row: 1; color: #355d57; font-size: 12px; font-weight: 800; line-height: 1.35; }
.gui-tool-price { grid-column: 3; grid-row: 1; color: #6f663d; font-size: 16px; font-weight: 850; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gui-tool-yield { display: inline-flex; grid-column: 2 / -1; grid-row: 2; align-items: center; gap: 4px; color: #34745b; font-size: 12px; font-weight: 800; line-height: 1.35; }
.gui-tool-yield svg { flex: 0 0 15px; width: 15px !important; height: 15px !important; }
.gui-tool-state { grid-column: 2 / -1; grid-row: 2; color: #788368; font-size: 9px; font-weight: 600; line-height: 1.3; }
.gui-tool-yield { grid-row: 3; }
.gui-tool-yield.is-negative { color: #a96343; }
.gui-tool-synergy { display: inline-flex; grid-column: 2 / -1; grid-row: 4; align-items: center; gap: 3px; color: #75876b; font-size: 10px; font-weight: 600; line-height: 1.4; }
.gui-tool-synergy svg { width: 15px !important; height: 15px !important; flex: 0 0 15px; }
.gui-world-tools > button.is-unaffordable .gui-tool-price { color: #ae6a46; }
.gui-world-tools > button.is-owned { background: #f0f7e8; border-color: #b6cfb6; }
.gui-world-slots.is-full { color: #98683f; border-color: #d9be8d; background: #fff6dd; }

.hq-background-town { opacity: .64; filter: saturate(.68); }
.hq-owned-body { filter: drop-shadow(0 2px 2px #214b3b32); }
.hq-owned-beacon { opacity: .9; }
.hq-district-zone { opacity: .9; }
.hq-district-gauge { opacity: 1; }
.hq-production-link { fill: none; stroke-width: 2.2px; stroke-dasharray: 5 7; stroke-linecap: round; opacity: .72; animation: city-production-route 5s linear infinite; pointer-events: none; }
.hq-production-link.type-contact { stroke: #4c9375; }
.hq-production-link.type-fundraising { stroke: #ba9650; }
.hq-production-link.type-van { stroke: #668f9e; }
.hq-flow-token { offset-path: var(--hq-flow-path); offset-distance: 5%; offset-rotate: 0deg; animation: city-production-token 5.5s linear infinite; animation-delay: var(--hq-flow-delay, 0s); pointer-events: none; }
@keyframes city-production-route { to { stroke-dashoffset: -48; } }
@keyframes city-production-token { 0% { offset-distance: 5%; opacity: 0; } 12%,85% { opacity: .9; } 100% { offset-distance: 95%; opacity: 0; } }
.hq-town-canvas { position: relative; }
.hq-production-pins { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 3; display: flex; align-items: stretch; justify-content: center; gap: 6px; pointer-events: none; }
.hq-production-pin { display: inline-flex; flex: 0 1 155px; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 44px; padding: 6px 9px; border: 1px solid #bdd3bd; border-radius: 7px; background: #fffdf1f5; color: #3d6f54; box-shadow: 0 2px 8px #254a3320; font-size: 12px; font-weight: 800; line-height: 1.25; pointer-events: auto; }
.hq-production-pin > svg { flex: 0 0 24px; width: 24px !important; height: 24px !important; min-height: 0; }
.hq-production-pin strong { color: #2c684b; font-size: 14px; font-weight: 850; white-space: nowrap; }
.hq-pin-value { display: inline-flex; align-items: baseline; gap: 3px; }
.hq-pin-value b { color: #2c684b; font-size: 14px; font-weight: 850; white-space: nowrap; }
.hq-production-pin small { color: #6d8266; font-size: 10px; font-weight: 600; white-space: nowrap; }
.hq-production-pin:hover { background: #f0f7df; border-color: #84aa83; }
.world-greet { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.world-greet svg { flex: 0 0 20px; width: 20px !important; height: 20px !important; min-height: 0; }
.city-simulation-paused .hq-flow-token, .city-simulation-paused .hq-production-link,
.city-simulation-paused .hq-worker-gesture, .city-simulation-paused .hq-field-arrival { animation-play-state: paused !important; }
.city-simulation-paused .hq-flow-token { opacity: .25 !important; }
.city-simulation-paused .hq-production-link { opacity: .35; }

.presentation-mode .ticker { padding: 7px 16px; }
.presentation-mode .toast { padding: 9px 12px; max-width: 510px; border-radius: 7px; font-size: 11px; line-height: 1.45; font-weight: 650; box-shadow: 0 3px 12px #173c3520; }
#mobileField { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
#mobileField > svg { flex: 0 0 19px; width: 19px; height: 19px; }
#mobileField > span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
#mobileField small { color: inherit; font-size: 9px; font-weight: 600; opacity: .8; }
@media (min-width: 1001px) {
  .progression-overview .progression-stage:has(> .is-growth-goal) { grid-template-columns: minmax(0, 1fr) 280px; }
  .progression-overview .progression-stage:has(> .is-growth-goal) > .progression-world { order: 0; height: 500px; min-height: 500px; }
  .presentation-mode .gui-city-board .progression-stage > .progression-goal.gui-goal.is-growth-goal { order: 1; align-self: start; padding: 16px; }
  .gui-growth-main .gui-growth-steps { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .gui-growth-main .gui-growth-step { min-height: 83px; }
  .gui-growth-main .gui-growth-label { font-size: 12px; }
  .gui-growth-main .gui-growth-count strong { font-size: 24px; }
  .gui-growth-main .gui-growth-rewards { margin-top: 14px; justify-content: space-between; }
}
@media (max-width: 1000px) {
  .gui-world-tools:has(.gui-tool-price) > button { grid-template-columns: 43px minmax(0, 1fr); gap: 4px 7px; padding: 11px; }
  .gui-world-tools:has(.gui-tool-price) > button > .gui-asset-icon { grid-column: 1; grid-row: 1 / 4; width: 43px !important; height: 40px !important; }
  .gui-tool-price { grid-column: 2; grid-row: 2; }
  .gui-tool-state { grid-column: 2; grid-row: 3; }
  .gui-tool-yield { grid-column: 1 / -1; grid-row: 4; }
  .gui-tool-synergy { grid-column: 1 / -1; grid-row: 5; }
}
@media (max-width: 760px) {
  .presentation-mode .gui-city-board .progression-stage > .progression-goal.gui-goal.is-growth-goal { padding: 11px 10px 9px; }
  .presentation-mode .gui-city-board .progression-stage > .progression-goal.gui-goal.is-growth-goal > h3 { margin-bottom: 8px; font-size: 14px; }
  .gui-growth-steps { gap: 6px; }
  .progression-goal .gui-growth-step, .gui-growth-step { grid-template-columns: 20px minmax(0, 1fr); gap: 5px 4px; min-height: 77px; padding: 7px 6px; }
  .gui-growth-icon { width: 20px; height: 22px; }
  .gui-growth-icon svg { width: 20px; height: 20px; }
  .gui-growth-label { font-size: 10px; }
  .gui-growth-count { gap: 2px; }
  .gui-growth-count strong { font-size: 17px; }
  .gui-growth-count small { font-size: 9px; }
  .gui-growth-step.is-done .gui-growth-count { gap: 1px; }
  .gui-growth-step.is-done .gui-growth-count strong { font-size: 14px; }
  .gui-growth-step.is-done .gui-growth-count small { font-size: 8px; }
  .gui-growth-reward { font-size: 10px; }
  .gui-growth-reward > svg { width: 18px; height: 18px; }
  .gui-reward-pips > i { width: 7px; height: 9px; }
  .gui-district-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gui-district-card { min-height: 78px; padding: 8px 10px; gap: 3px 6px; }
  .gui-district-name { font-size: 11px; }
  .gui-district-scores { grid-row: 4; justify-content: flex-start; gap: 8px; }
  .gui-district-card:not(.is-focused) .gui-district-scores { display: none; }
  .gui-district-scores .is-us, .gui-district-scores .is-rival { font-size: 9px; font-weight: 600; }
  .gui-district-focus { font-size: 9px; }
  .gui-district-difference { grid-row: 3; font-size: 12px; font-weight: 800; }
  .gui-district-assets { grid-row: 3; }
  .gui-world-tools:has(.gui-tool-price) > button { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto auto; justify-items: center; gap: 3px; min-height: 139px; padding: 8px 5px; text-align: center; }
  .gui-world-tools:has(.gui-tool-price) > button > .gui-asset-icon { grid-column: 1; grid-row: 1; width: 38px !important; height: 32px !important; }
  .gui-tool-name { grid-column: 1; grid-row: 2; font-size: 11px; }
  .gui-tool-price { grid-column: 1; grid-row: 3; font-size: 16px; }
  .gui-tool-state { grid-column: 1; grid-row: 4; font-size: 9px; }
  .gui-tool-yield { grid-column: 1; grid-row: 5; justify-content: center; gap: 2px; font-size: 11px; white-space: nowrap; }
  .gui-tool-yield svg { width: 13px !important; height: 13px !important; flex-basis: 13px; }
  .gui-tool-synergy { grid-column: 1; grid-row: 6; font-size: 9px; line-height: 1.35; }
  .gui-world-tools:has(.gui-tool-price) { margin-top: 4px; }
  .hq-production-pins { left: 7px; right: 7px; bottom: 7px; gap: 5px; }
  .hq-production-pin { flex: 0 1 135px; gap: 5px; padding: 6px; font-size: 11px; }
  .hq-production-pin strong { font-size: 12px; }
  .hq-pin-value b { font-size: 12px; }
  .hq-production-pin > svg { width: 20px !important; height: 20px !important; flex-basis: 20px; }
  .hq-production-pin small { font-size: 9px; }
  .progression-map-heading > div:first-child.progression-map-actions { display: flex; max-width: none; }
  .progression-map-heading { top: 8px; right: 8px; }
  .world-greet { min-width: 58px; padding: 6px 8px; font-size: 10px; }
  .world-greet svg { width: 20px !important; height: 20px !important; }
  .presentation-mode .toast { max-width: 420px; padding: 8px 11px; font-size: 10px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .progression-overview:has(.gui-district-strip) .progression-world { height: 250px; min-height: 250px; }
}
@media (max-width: 850px) and (max-height: 480px) {
  .progression-overview:has(.gui-district-strip) .progression-world { height: 340px; min-height: 340px; }
  .gui-district-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gui-district-card { padding: 8px; }
  .gui-world-selection { position: fixed; top: 8px; right: 8px; bottom: 8px; left: auto; width: min(350px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hq-flow-token, .hq-production-link { animation: none !important; transition: none !important; }
  .hq-flow-token { offset-distance: 50%; opacity: .75; }
}

/* Local ground becomes a permanent place, then opens a distinct operating plan. */
.hq-development-landmark { filter: drop-shadow(0 1px 1px #38563b22); }
.hq-captured-flag { opacity: 1; }
.hq-settlement-ring, .hq-settlement-ring *, .hq-settlement-progress, .hq-support-route { animation: none !important; transition: none !important; }
.hq-settlement-progress { stroke: #bd984c; stroke-linecap: round; }
.progression-map-heading:has(> .progression-map-actions:only-child) { justify-content: flex-end; }
.hq-mail-pin { position: absolute; top: 10px; left: 10px; z-index: 4; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 7px 9px; border: 1px solid #dfb39a; border-radius: 8px; background: #fff9eaf5; box-shadow: 0 2px 8px #4b392b14; color: #a25540; font-size: 12px; font-weight: 800; line-height: 1.2; }
.hq-mail-pin:hover { border-color: #bc8064; background: #fff1d8; }
.hq-mail-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.hq-mail-icon > svg, .progression-world .hq-mail-icon > svg { width: 22px !important; height: 22px !important; min-height: 0; }
.hq-mail-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; min-height: 18px; padding: 1px 4px; border-radius: 9px; background: #b64e3b; color: #fff9e8; font-size: 11px; font-weight: 850; }
.gui-district-card { position: relative; }
.gui-district-development { position: absolute; top: 8px; right: 10px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; min-width: 20px; color: #a1884e; line-height: 1; }
.gui-district-development svg { display: block; width: 20px; height: 20px; }
.gui-district-development i { display: block; width: 4px; height: 4px; border: 1px solid #bda36b; border-radius: 50%; background: #eadbb4; }
.gui-district-development.is-settled, .gui-district-development.is-recruit, .gui-district-development.is-trust { color: #4f8468; }
.gui-district-card:has(.gui-district-development) .gui-district-focus { display: none; }
.gui-district-opportunity { display: grid; grid-column: 1 / -1; order: 2; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 9px 14px; min-width: 0; min-height: 64px; padding: 10px 13px; border: 1px solid #d2dfc9; border-radius: 8px; background: #fafcee; color: #3d624c; scroll-margin-top: 128px; scroll-margin-bottom: 18px; }
.gui-district-opportunity-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gui-district-opportunity-head > div { min-width: 0; }
.gui-district-opportunity-head :is(h3,h4,strong) { display: block; margin: 0; color: #3a5d46; font-size: 13px; font-weight: 800; line-height: 1.35; }
.gui-district-opportunity-head :is(p,small) { display: block; margin: 3px 0 0; color: #758366; font-size: 10px; font-weight: 600; line-height: 1.35; }
.gui-district-opportunity-head > svg, .gui-district-opportunity-head > .gui-opportunity-icon { display: block; flex: 0 0 38px; width: 38px !important; height: 38px !important; min-height: 0; }
.gui-district-opportunity:not(.is-settled) > .gui-district-opportunity-head { flex-direction: column; align-items: flex-start; gap: 3px; }
.gui-opportunity-flag { display: flex; align-items: center; justify-content: center; color: #ab8b47; }
.gui-opportunity-flag > svg { width: 31px !important; height: 31px !important; }
.gui-opportunity-project { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; color: #648064; font-size: 11px; line-height: 1.4; }
.gui-opportunity-project > svg, .gui-opportunity-project > span > svg { width: 14px !important; height: 14px !important; vertical-align: -2px; }
.gui-opportunity-project > b { color: #426848; font-size: 11px; font-weight: 750; }
.gui-opportunity-project > span { white-space: nowrap; }
.gui-opportunity-project > small { margin: 0; color: #819172; font-size: 9px; }
.gui-district-opportunity-head .gui-opportunity-project :is(span,small,b) { display: inline; }
.gui-hold-ring { position: relative; display: block; flex: 0 0 46px; width: 46px !important; height: 46px !important; min-height: 0; }
.gui-hold-ring > svg { width: 100% !important; height: 100% !important; }
.gui-hold-track { stroke: #e4dfc6; stroke-width: 4px; }
.gui-hold-fill { stroke: #9baf66; stroke-width: 4px; stroke-linecap: round; }
.gui-hold-ring > b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #627041; font-size: 13px; font-weight: 850; line-height: 1; }
.gui-hold-ring > b small { margin-top: 4px; color: #9aa27a; font-size: 8px; font-weight: 650; }
.gui-hold-ring, .gui-hold-ring * { animation: none !important; transition: none !important; }
.gui-district-opportunity-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 11px; border: 1px solid #9fbea1; border-radius: 6px; background: #eaf3dc; color: #3d714e; font-size: 11px; font-weight: 800; line-height: 1.35; }
.gui-district-opportunity-action svg { flex: 0 0 18px; width: 18px !important; height: 18px !important; min-height: 0; }
.gui-district-opportunity-action:disabled { border-color: #d7dfcb; background: #f0f3e7; color: #8a957d; }
.gui-district-capacity { display: inline-flex; align-items: center; gap: 5px; color: #4e7869; font-size: 11px; font-weight: 700; white-space: nowrap; }
.gui-district-capacity svg { width: 20px; height: 20px; color: #5b8b78; }
.gui-district-opportunity:has(.gui-district-plan-options) { display: block; }
.gui-district-plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.gui-district-plan { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; gap: 6px; min-width: 0; min-height: 130px; padding: 12px; border: 1px solid #cbdcc4; border-radius: 8px; background: #fffdf0; color: #365f4e; text-align: center; }
.gui-district-plan:hover:not(:disabled) { border-color: #6e9c72; background: #f1f7e3; }
.gui-district-plan.is-selected, .gui-district-plan[aria-pressed="true"] { border-color: #468467; background: #e9f4df; box-shadow: inset 0 3px 0 #66965d; }
.gui-district-plan:disabled { cursor: default; }
.gui-district-plan:disabled:not(.is-selected) { border-color: #d6ddc8; background: #f3f4e8; }
.gui-plan-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 32px; color: #54886e; }
.gui-plan-icon > svg { display: block; width: 32px !important; height: 32px !important; min-height: 0; }
.gui-plan-name { color: #3e654b; font-size: 13px; font-weight: 800; line-height: 1.35; }
.gui-plan-modifiers { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; color: #5e835d; font-size: 11px; font-weight: 750; line-height: 1.3; }
.gui-plan-modifiers > span { display: inline-flex; align-items: center; gap: 3px; }
.gui-plan-modifiers svg { width: 16px !important; height: 16px !important; }
.gui-plan-modifiers .is-negative { color: #a56747; }
.gui-plan-quote { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-content: center; gap: 6px; width: 100%; padding-top: 6px; border-top: 1px solid #e1e7d3; }
.gui-plan-quote > span { display: inline-flex; align-items: baseline; justify-content: center; gap: 3px; }
.gui-plan-quote svg { align-self: center; width: 17px !important; height: 17px !important; }
.gui-plan-quote strong { color: #2f654c; font-size: 19px; font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gui-plan-quote b { color: #2f654c; font-size: 19px; font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gui-plan-quote small { color: #748166; font-size: 9px; }
.gui-plan-quote > .is-support { padding-top: 4px; border-top: 1px dashed #d8dfc8; color: #687b5c; font-size: 10px; line-height: 1.3; }
.gui-plan-quote > .is-support b, .gui-plan-quote > .is-support strong { color: #547346; font-size: 13px; }
.gui-plan-quote > .is-support svg { width: 13px !important; height: 13px !important; }
.gui-opportunity-project .is-support { color: #70825f; font-size: 10px; }
.gui-plan-project { color: #7c866c; font-size: 10px; font-weight: 550; line-height: 1.35; }
.gui-dev-ring-track { stroke: #e2dfcc; stroke-width: 2px; }
.gui-dev-ring-fill { stroke: #b89c58; stroke-width: 2.5px; stroke-linecap: round; }
.gui-dev-flag { stroke: #aeb59d; stroke-width: 1.7px; stroke-linejoin: round; stroke-linecap: round; }
.gui-district-development.is-captured .gui-dev-flag { stroke: #ac8c43; fill: #f0dfad; }
.gui-dev-check { stroke: #497c5d; stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
.gui-dev-plan-mark { position: absolute; right: -3px; bottom: -3px; display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; border: 1px solid #d3dfc4; border-radius: 50%; background: #f5f8e9; color: #49795c; }
.gui-district-development .gui-dev-plan-mark > svg { width: 11px; height: 11px; }
.gui-district-opportunity.is-settled > .gui-district-opportunity-head { flex-wrap: wrap; gap: 7px; }
.gui-district-opportunity.is-settled > .gui-district-opportunity-head > .gui-district-capacity { margin-left: auto; }
.gui-district-opportunity.is-settled > .gui-district-opportunity-head > svg { flex-basis: 26px; width: 26px !important; height: 26px !important; }
.gui-plan-state { min-height: 13px; color: #64815c; font-size: 10px; font-weight: 750; line-height: 1.3; }
.gui-plan-state.is-wait { color: #9b794c; }
.gui-world-tools > button.is-upgrade { border-color: #c4b17c; background: #faf9e9; }
.gui-world-tools > button.is-upgrade .gui-tool-price { color: #8e6f31; }
.gui-world-tools > button.is-upgrade .gui-tool-yield { color: #377852; }
@media (max-width: 760px) {
  .hq-mail-pin { top: 8px; left: 8px; padding: 7px; }
  .gui-district-development svg { width: 18px; height: 18px; }
  .gui-district-assets svg { width: 16px; height: 15px; }
  .gui-district-opportunity { min-height: 64px; gap: 7px 9px; padding: 9px 10px; scroll-margin-top: 108px; scroll-margin-bottom: 126px; }
  .gui-district-opportunity { grid-template-columns: 37px minmax(0, 1fr) auto; }
  .gui-district-opportunity-head { gap: 8px; }
  .gui-district-opportunity-head :is(h3,h4,strong) { font-size: 12px; }
  .gui-district-opportunity-head :is(p,small) { font-size: 10px; }
  .gui-district-opportunity-action { padding: 7px 8px; font-size: 10px; }
  .gui-district-opportunity:not(.is-settled) > .gui-district-opportunity-action { max-width: 80px; }
  .gui-district-plan-options { gap: 7px; margin-top: 9px; }
  .gui-district-plan { min-height: 139px; padding: 10px 6px; gap: 5px; }
  .gui-plan-name { font-size: 12px; }
  .gui-plan-modifiers { gap: 5px; font-size: 10px; }
  .gui-plan-modifiers svg { width: 14px !important; height: 14px !important; }
  .gui-plan-quote { gap: 6px; }
  .gui-plan-quote strong { font-size: 17px; }
  .gui-plan-quote b { font-size: 17px; }
  .gui-plan-quote svg { width: 15px !important; height: 15px !important; }
  .gui-world-tools > button.is-upgrade .gui-tool-price { font-size: 14px; }
}

/* Budget adjustments remain thumb sized beside all ten allocation marks. */
#blist .bc { grid-template-columns: 44px minmax(0, 1fr) 44px; }
#blist .bc > button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; }
#blist .bc > .chunks { min-width: 0; width: 100%; grid-template-columns: repeat(10, minmax(0, 1fr)); }
#bok { position: sticky; bottom: 0; min-height: 44px; }

/* Story outcomes are visible before choosing; each chip remains a single value. */
.event-resource-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; margin-top: 8px; }
.event-resource-preview > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 4px 6px; border: 1px solid #d8e2cd; border-radius: 5px; background: #f0f6e8; color: #55774d; font-size: 10px; font-weight: 650; line-height: 1.35; }
.event-resource-preview svg { display: block; flex: 0 0 20px; width: 20px !important; height: 20px !important; min-height: 0; }
.event-resource-preview b { color: inherit; font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-resource-preview .is-gain { border-color: #cbdcbe; background: #edf6e3; color: #467349; }
.event-resource-preview .is-cost { border-color: #e2c99f; background: #fff2dc; color: #96653c; }
.event-resource-preview .is-loss { border-color: #e3bdab; background: #fbece3; color: #a4513e; }
.choices button:has(.event-resource-preview) { min-height: 44px; }
.gui-advanced .tycoon-tabs button { min-height: 44px; min-width: 44px; }
