/* Council inherits the prologue's ink, muted gold, sage and serif typography. */
.in-council .app-shell { max-width: none; }
.in-council .site-header { height: 84px; margin: 0; padding: 0 5%; }
.in-council .header-center { font-size: 10px; }
.in-council .site-footer { display: none; }
.in-council #story { display: block; }
.in-council .toast { bottom: 110px; }
.council { width: min(1320px, 90%); margin: 0 auto; padding: 30px 0 125px; --panel: #191e1a; --c-border: #353e32; }
.council h1, .council h2, .council h3 { font-weight: 400; }
.council-topline { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.small-code { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; }
.council-topline h1 { font-family: var(--serif); font-size: 29px; letter-spacing: 3px; margin: 9px 0 0; }
.council-topline h1 span { color: var(--muted); font-family: var(--sans); font-size: 12px; letter-spacing: 2px; margin-left: 12px; }
.council-clock { display: flex; gap: 22px; align-items: center; }
.day-label { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.day-label strong { color: var(--ink); font-family: var(--mono); font-size: 23px; font-weight: 400; padding: 0 5px; }
.c-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid #667057; padding: 10px 16px; font-size: 12px; color: var(--sage); background: #c3cfb008; transition: border-color 180ms, background 180ms; }
.c-button svg { height: 18px; width: 18px; }
.c-button:hover:not(:disabled) { background: #b9c79e13; border-color: var(--sage); }
.c-button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-button.primary:hover:not(:disabled) { background: #f0b48a; }
.c-button.quiet { border-color: transparent; color: var(--muted); background: transparent; }
.c-button:disabled { opacity: .45; }
.chair-strip { border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 19px; padding-bottom: 13px; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.chair-strip > span { display: inline-flex; align-items: center; gap: 8px; }
.chair-strip button { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--muted); font-size: 11px; }
.chair-strip button strong { color: var(--ink); font-weight: 400; }
.chair-strip button svg { height: 16px; width: 16px; }
.council-page { padding-top: 25px; }
.earth-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 22px; }
.earth-hero { position: relative; min-height: 300px; padding: 30px 34px; border: 1px solid #5b6550; isolation: isolate; overflow: hidden; }
.earth-hero-art { position: absolute; z-index: -2; inset: 0; background: url('assets/images/earth.webp') center 40% / cover; }
.earth-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #11180fed, #10180e73 70%, #10180e2a), linear-gradient(0deg, #10170ff2, transparent 70%); }
.earth-hero .small-code { color: #d1d0b5; font-size: 9px; }
.earth-hero h2 { font-family: var(--serif); font-size: clamp(23px, 2.3vw, 33px); line-height: 1.65; letter-spacing: 3px; margin: 19px 0 10px; }
.earth-hero p { font-size: 11px; color: #d5d6c8; letter-spacing: 1px; }
.earth-vitals { display: flex; gap: 38px; margin-top: 25px; }
.earth-vitals > div { display: flex; flex-direction: column; gap: 7px; }
.earth-vitals span { color: #c4c7b6; font-size: 10px; }
.earth-vitals strong { font-family: var(--mono); font-size: 24px; font-weight: 400; }
.earth-vitals small { font-family: var(--sans); font-size: 11px; color: #c5c9b3; }
.earth-vitals .phase-text { font-size: 15px; font-family: var(--serif); letter-spacing: 2px; margin-top: 5px; }
.hero-register { position: absolute; bottom: 15px; right: 18px; font-family: var(--mono); font-size: 8px; color: #bec9b082; letter-spacing: 1px; }
.briefing-panel { border: 1px solid var(--c-border); background: var(--panel); padding: 27px; display: flex; flex-direction: column; align-items: flex-start; }
.briefing-panel .eyebrow { font-size: 9px; letter-spacing: 2px; }
.briefing-panel h2 { font-family: var(--serif); font-size: 22px; letter-spacing: 2px; line-height: 1.5; margin: 19px 0 10px; }
.briefing-panel > p { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0; }
.briefing-numbers { display: flex; gap: 20px; width: 100%; padding: 18px 0; font-size: 10px; color: var(--muted); }
.briefing-numbers b { color: var(--ink); font-family: var(--mono); font-size: 15px; margin-left: 7px; font-weight: 400; }
.briefing-panel .c-button { margin-top: auto; width: 100%; justify-content: space-between; }
.resource-section { margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.section-heading h2 { font-family: var(--serif); font-size: 16px; letter-spacing: 2px; margin: 0; }
.section-heading > span { font-size: 10px; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--c-border); background: var(--panel); }
.resource-card { padding: 22px; border-right: 1px solid var(--c-border); }
.resource-card:last-child { border-right: 0; }
.resource-card > span { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.resource-card > strong { display: block; font-family: var(--mono); font-weight: 400; font-size: 32px; letter-spacing: 1px; margin: 15px 0 12px; }
.resource-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; }
.resource-card small { font-family: var(--sans); font-size: 9px; color: var(--muted); }
.resource-unit { font-family: var(--sans); font-size: 8px; color: var(--muted); }
.declining { color: #e2a382; }
.growing { color: #c5d5a8; }
.depleted > strong { color: #f1a18c; }
.overview-columns { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-top: 22px; }
.console-panel { border: 1px solid var(--c-border); background: var(--panel); padding: 23px; min-width: 0; }
.resource-chart { width: 100%; height: 120px; overflow: visible; display: block; stroke: none; }
.resource-chart polyline { stroke: var(--sage); stroke-width: 2; fill: none; }
.chart-grid { stroke: #444d3b; stroke-width: .5; }
.chart-axis { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); }
.panel-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 17px 0 0; }
.event-log { margin: 6px 0 0; padding: 0; list-style: none; }
.event-log li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid #363f303d; }
.event-log li:last-child { border: 0; }
.event-log time { font-family: var(--mono); font-size: 9px; color: var(--accent); white-space: nowrap; padding-top: 3px; }
.event-log p { font-size: 11px; line-height: 1.7; margin: 0; color: #c7cbbd; overflow-wrap: anywhere; }
.status-tag { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #657052; color: #c0c6b3; font-size: 9px; line-height: 1.5; white-space: nowrap; }
.status-tag.active { color: #f0b58a; border-color: #9b714d; background: #df9e5e08; }
.status-tag.completed { color: #c1d9a0; border-color: #637a49; background: #98c56e08; }
.status-tag.closed { color: #a9aea3; border-color: #4d5849; }
.global-summary { margin-top: 22px; }
.global-stats { display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 0; gap: 20px; }
.global-stats > div { display: flex; flex-direction: column; gap: 12px; }
.global-stats span { font-size: 11px; color: var(--muted); }
.global-stats strong { font-size: 24px; font-family: var(--mono); font-weight: 400; }
.global-stats small { font-size: 10px; font-family: var(--sans); color: var(--muted); }
.council-footnote { display: flex; gap: 22px; align-items: center; font-size: 9px; color: var(--muted); margin-top: 25px; }
.council-footnote button { font-size: 10px; color: var(--muted); margin-left: auto; min-height: 36px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(83px + env(safe-area-inset-bottom, 0px)); padding: 0 max(5%, calc((100vw - 850px) / 2)) env(safe-area-inset-bottom, 0px); z-index: 10; border-top: 1px solid #566348; background: #151b15f7; backdrop-filter: blur(14px); display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; color: #a1ab96; font-size: 11px; letter-spacing: 2px; }
.bottom-nav svg { height: 23px; width: 23px; }
.bottom-nav button[aria-current="page"] { color: #f1c396; background: linear-gradient(180deg, #deb08014, transparent); }
.bottom-nav button[aria-current="page"]::before { content: ''; width: 26px; height: 2px; background: #e6b17d; top: -1px; position: absolute; }
.nav-notice { position: absolute; top: 14px; left: calc(50% + 14px); background: var(--accent); width: 4px; height: 4px; border-radius: 50%; }
.page-intro { margin: 2px 0 26px; }
.page-intro h2 { font-family: var(--serif); font-size: 28px; line-height: 1.6; letter-spacing: 3px; margin: 15px 0 10px; }
.page-intro h2 span { color: var(--sage); }
.page-intro p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.page-intro.with-action { display: flex; justify-content: space-between; gap: 22px; align-items: center; }
.subnav { display: flex; gap: 10px; border-bottom: 1px solid var(--c-border); margin-bottom: 25px; }
.subnav button { position: relative; padding: 13px 18px; min-height: 46px; color: var(--muted); font-size: 12px; }
.subnav button[aria-pressed="true"] { color: var(--sage); }
.subnav button[aria-pressed="true"]::after { content: ''; position: absolute; bottom: -1px; left: 16px; right: 16px; height: 2px; background: var(--sage); }
.subnav button span { margin-left: 7px; font-family: var(--mono); }
.talent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.talent-card { border: 1px solid var(--c-border); background: var(--panel); padding: 25px; }
.person-header { display: flex; align-items: center; gap: 17px; }
.person-header .status-tag { margin-left: auto; }
.person-monogram { width: 63px; height: 72px; background: #3a4937; border: 1px solid #71835c; color: #d5dfb8; font-family: var(--serif); font-size: 33px; display: grid; place-items: center; }
.tone-1 { background: #35454b; border-color: #617f8b; color: #cbdee1; }
.tone-2 { background: #4c402b; border-color: #9d8453; color: #e7d3a6; }
.tone-3 { background: #4a352c; border-color: #9f7358; color: #e1b69c; }
.person-header h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 2px; margin: 7px 0; }
.person-header p { font-size: 11px; color: var(--muted); margin: 0; }
.person-header .small-code { font-size: 8px; }
.talent-card blockquote { margin: 24px 0 14px; font-family: var(--serif); color: #d2d6be; font-size: 15px; line-height: 1.8; }
.talent-detail { color: var(--muted); font-size: 11px; line-height: 1.8; }
.person-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--c-border); padding-top: 16px; margin-top: 20px; gap: 15px; font-size: 10px; color: var(--sage); }
.subtle { color: var(--muted); }
.person-footer .c-button { font-size: 10px; padding: 8px 12px; }
.chair-panel { border: 1px solid #707b58; background: #22291d; padding: 30px; display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
.chair-symbol { font-family: var(--serif); font-size: 40px; color: var(--sage); border: 1px solid #75835b; width: 75px; height: 75px; display: grid; place-items: center; flex-shrink: 0; }
.chair-panel h3 { font-family: var(--serif); font-size: 26px; letter-spacing: 3px; margin: 12px 0; overflow-wrap: anywhere; }
.chair-panel p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.chair-panel .c-button { margin-left: auto; flex-shrink: 0; }
.seat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seat-card h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 2px; margin: 15px 0 8px; }
.seat-card p { font-size: 11px; color: var(--muted); line-height: 1.8; }
.seat-card > strong { font-family: var(--serif); font-size: 20px; font-weight: 400; display: block; color: var(--sage); margin: 22px 0; }
.seat-form { display: flex; gap: 10px; }
.seat-form select { flex: 1; width: 100%; min-width: 0; }
.seat-form .c-button { flex-shrink: 0; padding: 8px 12px; }
.directive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.directive-card { border: 1px solid var(--c-border); padding: 24px; background: var(--panel); }
.directive-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.directive-heading .small-code { font-size: 9px; }
.directive-card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.5; letter-spacing: 1.5px; margin: 19px 0 10px; overflow-wrap: anywhere; }
.directive-card > .subtle { font-size: 11px; }
.directive-outcome { font-size: 12px; color: #c9d2b9; line-height: 1.8; margin: 18px 0 10px; }
.cost-line { color: var(--muted); font-size: 10px; line-height: 1.9; }
.directive-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.directive-actions:empty { display: none; }
.completion-note { font-size: 11px; color: #b5ce98; }
.progress-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin: 20px 0 10px; }
progress { display: block; width: 100%; height: 3px; border: 0; background: #394331; color: var(--sage); appearance: none; }
progress::-webkit-progress-bar { background: #394331; }
progress::-webkit-progress-value { background: var(--sage); }
progress::-moz-progress-bar { background: var(--sage); }
.blocked-reason { color: #d4ad85; font-size: 10px; line-height: 1.8; margin: 14px 0 0; }
.empty-state { border: 1px dashed #505c43; text-align: center; padding: 60px 25px; }
.empty-state > svg { width: 36px; height: 36px; color: var(--sage); }
.empty-state h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 2px; margin: 24px 0 13px; line-height: 1.6; }
.empty-state p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.empty-state .c-button { margin-top: 20px; }
.fleet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ship-card { border: 1px solid var(--c-border); background: var(--panel); overflow: hidden; }
.ship-illustration { min-height: 170px; background: linear-gradient(0deg, #141c12dc, #15211a2b), url('assets/images/search.webp') center 43% / cover; display: flex; align-items: flex-end; justify-content: space-between; padding: 22px; }
.ship-illustration svg { display: none; }
.ship-illustration span { font-family: var(--mono); font-size: 10px; letter-spacing: 5px; color: #d6d7bf; }
.ship-probe { background-image: linear-gradient(0deg, #192017d9, #1f271720), url('assets/images/mars.webp'); background-position: center 42%; }
.ship-information { padding: 25px; }
.ship-information h3 { font-family: var(--serif); font-size: 24px; letter-spacing: 2px; margin: 13px 0 8px; }
.ship-information p { font-size: 11px; color: var(--muted); }
.ship-information dl { margin: 20px 0; }
.ship-information dl > div { display: flex; gap: 18px; margin: 12px 0; font-size: 11px; line-height: 1.8; }
.ship-information dt { color: var(--muted); white-space: nowrap; }
.ship-information dd { margin: 0; }
.ship-totals { display: flex; align-items: center; gap: 30px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.ship-totals > div { display: flex; flex-direction: column; gap: 8px; }
.ship-totals > div > span { color: var(--muted); font-size: 10px; }
.ship-totals strong { font-family: var(--mono); font-size: 25px; font-weight: 400; }
.ship-totals small { font-size: 10px; color: var(--muted); }
.ship-totals > .c-button, .ship-totals > .status-tag { margin-left: auto; }
.build-section { margin-top: 30px; }
.inline-empty { color: var(--muted); font-size: 12px; padding: 28px 22px; border: 1px dashed var(--c-border); }
.evidence-strip { display: flex; gap: 22px; align-items: center; padding: 18px 22px; border: 1px solid var(--c-border); margin-bottom: 22px; font-size: 11px; }
.evidence-strip > span { color: var(--sage); flex-shrink: 0; }
.evidence-strip > div { display: flex; gap: 8px; flex-wrap: wrap; }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.research-card { padding: 26px; background: var(--panel); border: 1px solid #60734b; }
.research-card.undiscovered { background: #171c17; border: 1px dashed #48553d; }
.research-card h3 { font-family: var(--serif); font-size: 24px; letter-spacing: 2px; margin: 20px 0 13px; }
.research-card > p:not(.cost-line):not(.blocked-reason) { font-size: 12px; line-height: 1.9; color: var(--muted); }
.research-source { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 0; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--c-border); }
.research-source > span:first-child { flex-basis: 100%; color: var(--sage); }
.research-source .met { color: #c3d9a6; }
.research-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; }
.research-bottom > span { font-size: 11px; color: #c8d6b5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.council select, .council-dialog select, .council-dialog input { font-family: var(--sans); color: var(--ink); background: #11170f; border: 1px solid #566447; border-radius: 0; padding: 12px; min-height: 44px; font-size: 12px; }
.council select:focus-visible, .council-dialog select:focus-visible, .council-dialog input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.council-dialog { width: 520px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading .icon-button { font-size: 28px; }
.council-dialog h2 { margin-top: 12px; }
.council-dialog label { display: block; font-size: 12px; color: #c6cfb5; margin: 20px 0 10px; }
.council-dialog select, .council-dialog input { width: 100%; }
.council-dialog p { font-size: 12px; }
.plan-preview { border: 1px solid #4c5c3c; background: #151d12; padding: 18px; margin-top: 22px; font-size: 11px; color: var(--sage); line-height: 1.8; }
.plan-preview p { font-size: 11px; margin: 8px 0; }
.plan-preview small { font-size: 10px; color: var(--muted); }
.form-error { color: #ffb599 !important; }
.form-error:empty { display: none; }
/* The letter is typeset, so all player-provided text remains selectable and editable. */
dialog.appointment { background: #e8e0cb; color: #343b2f; color-scheme: light; border: 1px solid #b6ae96; padding: 0; width: 650px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 25px 100px #0008; }
.appointment form { padding: 30px 48px 33px; position: relative; border: 1px solid #7e816652; margin: 9px; }
.document-top { border-bottom: 1px solid #7d816358; padding-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 10px; letter-spacing: 1px; color: #636a50; }
.document-emblem { text-align: center; margin-top: 22px; }
.document-emblem svg { width: 42px; height: 42px; color: #6a7750; stroke-width: 1; overflow: visible; }
.document-en { display: block; text-align: center; font-family: var(--mono); color: #737854; font-size: 8px; letter-spacing: 3px; margin-top: 13px; }
.appointment h2 { text-align: center; font-size: 37px; letter-spacing: 6px; color: #39412c; margin: 16px 0 27px; padding-bottom: 23px; border-bottom: 2px solid #6a74534f; }
.appointment .document-body p { font-family: var(--serif); color: #3e4536; font-size: 15px; line-height: 2; text-indent: 2em; margin: 15px 0; letter-spacing: .5px; }
.appointment .document-body .appointment-office { font-weight: 700; }
.document-signoff { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--serif); font-size: 12px; color: #646c52; margin: 25px 0; }
.signature-area { border-top: 1px solid #7c826347; padding-top: 22px; }
.signature-area label { display: block; font-size: 11px; letter-spacing: 2px; color: #5f684b; }
.signature-area input { font-family: var(--serif); font-size: 26px; letter-spacing: 4px; line-height: 1.6; min-height: 59px; padding: 10px 0 4px; width: 100%; color: #3a4430; border: 0; border-bottom: 1px solid #89916b; background: transparent; border-radius: 0; }
.signature-area input::placeholder { color: #858b70; font-size: 19px; }
.signature-area input:focus-visible { outline: 2px solid #617342; outline-offset: 5px; }
.signature-area input[aria-invalid="true"] { border-color: #9c392c; }
.signature-area > span { display: block; margin-top: 10px; font-size: 9px; color: #6e7658; line-height: 1.7; }
.signature-area #name-error { color: #942f20; font-size: 11px; line-height: 1.8; text-indent: 0; }
.signature-area #name-error:empty { display: none; }
.signature-area #signed-record { font-size: 11px; color: #5c6942; }
.document-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; }
.paper-back { color: #606a4c; font-size: 11px; min-height: 44px; padding: 8px 0; }
.paper-submit { background: #4a5939; color: #f4edda; min-height: 46px; padding: 13px 23px; font-size: 12px; letter-spacing: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; }
.paper-submit:hover { background: #3c4b2b; }
.appointment button:focus-visible { outline-color: #4b5a37; }
.awaiting-signature { padding: 80px 10%; }
.awaiting-signature h1 { font-family: var(--serif); font-size: 48px; letter-spacing: 5px; line-height: 1.7; }

@media (max-width: 1050px) {
  .council { width: 92%; }
  .in-council .site-header { padding: 0 4%; }
  .earth-layout { grid-template-columns: 1.5fr 1fr; gap: 16px; }
  .earth-hero { padding: 25px; }
  .earth-vitals { gap: 23px; }
  .briefing-panel { padding: 24px; }
  .briefing-panel h2 { font-size: 20px; }
  .briefing-numbers { gap: 13px; }
  .resource-card { padding: 18px; }
  .resource-unit { display: none; }
  .ship-totals { gap: 18px; flex-wrap: wrap; }
  .seat-grid { gap: 14px; }
  .seat-form { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .in-council .site-header { padding: env(safe-area-inset-top, 0px) 20px 0; height: calc(76px + env(safe-area-inset-top, 0px)); }
  .in-council .header-actions { margin-left: auto; }
  .in-council .brand strong { font-size: 13px; }
  .council { width: auto; margin: 0 20px; padding-top: 22px; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .council-topline { gap: 10px; align-items: flex-start; }
  .council-topline .small-code { font-size: 7px; letter-spacing: 1px; }
  .council-topline h1 { font-size: 25px; letter-spacing: 2px; margin-top: 9px; }
  .council-topline h1 span { font-size: 10px; margin-left: 7px; letter-spacing: 1px; display: block; margin: 7px 0 0; }
  .council-clock { flex-direction: column; align-items: flex-end; gap: 7px; }
  .day-label { font-size: 9px; }
  .day-label strong { font-size: 19px; }
  .council-clock .c-button { min-height: 38px; padding: 8px 10px; gap: 8px; font-size: 10px; }
  .council-clock .c-button svg { width: 14px; height: 14px; }
  .council-clock .c-button svg:first-child { display: none; }
  .chair-strip { margin-top: 10px; padding-bottom: 10px; font-size: 8px; letter-spacing: 0; gap: 8px; }
  .chair-strip button { font-size: 9px; gap: 6px; max-width: 48%; }
  .chair-strip button strong { max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chair-strip .live-dot { width: 4px; height: 4px; }
  .council-page { padding-top: 18px; }
  .earth-layout { display: block; }
  .earth-hero { padding: 25px 23px; min-height: 300px; }
  .earth-hero h2 { font-size: 24px; letter-spacing: 2px; margin-top: 21px; }
  .earth-hero p { font-size: 10px; }
  .earth-vitals { gap: 21px; margin-top: 26px; }
  .earth-vitals strong { font-size: 21px; }
  .earth-vitals .phase-text { font-size: 13px; letter-spacing: 1px; }
  .earth-vitals span { font-size: 9px; }
  .earth-vitals small { font-size: 9px; }
  .briefing-panel { margin-top: 14px; padding: 22px; }
  .briefing-panel h2 { font-size: 21px; }
  .briefing-panel > p { font-size: 12px; }
  .briefing-numbers { padding: 19px 0; gap: 25px; }
  .resource-section { margin-top: 23px; }
  .section-heading h2 { font-size: 15px; letter-spacing: 1px; }
  .section-heading > span { font-size: 9px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-card { border-bottom: 1px solid var(--c-border); padding: 19px; }
  .resource-card:nth-child(2n) { border-right: none; }
  .resource-card:last-child { grid-column: 1 / -1; border-bottom: none; }
  .resource-card > strong { font-size: 29px; margin: 13px 0 10px; }
  .resource-unit { display: inline; }
  .overview-columns { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .console-panel { padding: 21px; }
  .global-summary { margin-top: 14px; }
  .global-stats { grid-template-columns: repeat(3, 1fr); gap: 23px 12px; }
  .global-stats span { font-size: 9px; }
  .global-stats strong { font-size: 22px; }
  .bottom-nav { height: calc(74px + env(safe-area-inset-bottom, 0px)); padding-left: 8px; padding-right: 8px; }
  .bottom-nav button { font-size: 10px; letter-spacing: 1px; gap: 5px; padding: 10px 5px; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .nav-notice { top: 11px; }
  .council-footnote { font-size: 8px; gap: 11px; }
  .council-footnote button { font-size: 9px; }
  .page-intro { margin-bottom: 23px; }
  .page-intro > .eyebrow, .page-intro > div > .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .page-intro h2 { font-size: 25px; letter-spacing: 1px; margin: 14px 0 12px; }
  .page-intro p { font-size: 11px; }
  .page-intro.with-action { display: block; }
  .page-intro.with-action > .c-button { margin-top: 20px; }
  .talent-grid, .directive-grid, .research-grid, .fleet-grid, .seat-grid { grid-template-columns: 1fr; gap: 16px; }
  .talent-card { padding: 21px; }
  .person-header { gap: 12px; }
  .person-monogram { width: 52px; height: 63px; font-size: 28px; }
  .person-header h3 { font-size: 20px; }
  .person-header .small-code { font-size: 7px; letter-spacing: 1px; }
  .person-header .status-tag { font-size: 8px; padding: 4px 6px; }
  .person-header p { font-size: 10px; }
  .talent-card blockquote { font-size: 14px; }
  .talent-detail { font-size: 11px; }
  .subnav { gap: 3px; margin-bottom: 20px; }
  .subnav button { font-size: 11px; padding: 12px 14px; }
  .filter-nav { gap: 0; justify-content: space-between; }
  .filter-nav button { font-size: 10px; padding: 12px 6px; }
  .filter-nav button[aria-pressed="true"]::after { left: 6px; right: 6px; }
  .chair-panel { padding: 22px; flex-wrap: wrap; gap: 17px; }
  .chair-symbol { width: 53px; height: 60px; font-size: 30px; }
  .chair-panel > div:nth-child(2) { flex: 1; min-width: 0; }
  .chair-panel .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .chair-panel p { font-size: 10px; }
  .chair-panel .c-button { margin-left: 0; width: 100%; }
  .chair-panel h3 { font-size: 23px; }
  .seat-form { flex-wrap: nowrap; }
  .directive-card { padding: 21px; }
  .directive-card h3 { font-size: 20px; }
  .empty-state { padding: 43px 23px; }
  .empty-state h3 { font-size: 20px; }
  .empty-state p { font-size: 11px; }
  .evidence-strip { flex-direction: column; align-items: flex-start; gap: 12px; padding: 19px; }
  .evidence-strip .subtle { font-size: 10px; line-height: 1.9; }
  .research-card { padding: 22px; }
  .research-card h3 { font-size: 22px; }
  .research-bottom { align-items: flex-start; flex-direction: column; }
  .ship-information { padding: 22px; }
  .ship-information h3 { font-size: 22px; }
  .ship-information dl > div { font-size: 10px; gap: 13px; }
  .ship-totals { gap: 23px; }
  .ship-totals .c-button { font-size: 11px; }
  .council-dialog { padding: 24px; }
  .council-dialog h2 { font-size: 22px; }
  .council-dialog .eyebrow { font-size: 8px; letter-spacing: 1px; }
  dialog.appointment { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .appointment form { padding: 22px 22px 25px; margin: 6px; }
  .document-top { font-size: 8px; letter-spacing: 0; gap: 6px; padding-bottom: 12px; }
  .document-emblem { margin-top: 20px; }
  .document-emblem svg { width: 34px; height: 34px; }
  .document-en { font-size: 7px; letter-spacing: 2px; }
  .appointment h2 { font-size: 29px; margin: 16px 0 20px; padding-bottom: 19px; }
  .appointment .document-body p { font-size: 14px; line-height: 1.95; margin: 13px 0; letter-spacing: 0; }
  .document-signoff { font-size: 10px; margin: 20px 0; }
  .signature-area { padding-top: 19px; }
  .signature-area input { font-size: 24px; min-height: 55px; }
  .signature-area input::placeholder { font-size: 17px; letter-spacing: 3px; }
  .document-actions { gap: 12px; margin-top: 23px; }
  .paper-submit { padding: 12px 15px; font-size: 11px; letter-spacing: 1px; gap: 12px; }
  .paper-back { font-size: 10px; }
}
@media (max-width: 360px) {
  .council { margin-left: 14px; margin-right: 14px; }
  .in-council .site-header { padding-left: 14px; padding-right: 14px; }
  .earth-hero { padding: 22px 19px; }
  .earth-hero h2 { font-size: 22px; }
  .earth-vitals { gap: 17px; }
  .earth-vitals strong { font-size: 19px; }
  .earth-vitals .phase-text { font-size: 12px; }
  .chair-strip > span { font-size: 7px; }
  .briefing-numbers { gap: 17px; }
  .council-footnote { flex-wrap: wrap; }
  .appointment form { padding-left: 17px; padding-right: 17px; }
  .appointment .document-body p { font-size: 13px; }
}
/* Shared-world management interface. */
.council input { font: inherit; color: var(--ink); background: #11170f; border: 1px solid #566447; border-radius: 0; padding: 12px; min-height: 44px; min-width: 0; width: 100%; }
.council input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.council label { display: block; color: #c6cfb5; font-size: 14px; line-height: 1.7; }
.council label input, .council label select { display: block; margin-top: 6px; }
.council p { line-height: 1.85; }
.council .c-button { font-size: 13px; }
.council .section-heading h2 { font-size: 18px; }
.council .section-heading > span { font-size: 12px; line-height: 1.7; }
.council .subtle, .council .cost-line, .council .talent-detail { font-size: 13px; line-height: 1.85; }
.council .page-intro p { font-size: 14px; }
.council .directive-card > .subtle { font-size: 13px; }
.enlist-layout { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 600px; border: 1px solid var(--c-border); }
.enlist-art { padding: 65px 9%; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(0deg,#0d180eeb,#0d180e40),url('assets/images/arrival.webp') center / cover; }
.enlist-art h1 { font-family: var(--serif); font-size: clamp(28px,3vw,44px); line-height: 1.7; letter-spacing: 3px; }
.enlist-art p { color: #d6d9c5; font-size: 15px; }
.enlist-art .eyebrow { color: #dedfc4; }
.auth-panel { border: 0; padding: 48px 12%; }
.auth-panel h2 { font-family: var(--serif); font-size: 30px; }
.auth-panel form { display: grid; gap: 18px; }
.auth-panel small { color: var(--muted); font-size: 12px; margin-top: -14px; }
.auth-panel input { font-size: 16px; }
.landing-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(290px,1fr); gap: 24px; align-items: start; }
.mars-map { position: relative; aspect-ratio: 2; border: 1px solid #60634c; background: #292d24; overflow: hidden; }
.mars-map img { width: 100%; height: 100%; display: block; object-fit: fill; }
.mars-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 12px; line-height: 1.8; padding: 12px 0; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { display: inline-block; height: 8px; width: 8px; }
.legend-covered { background: #b7cd91; }.legend-eligible { background: #7e8276; }
.site-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.site-list button { min-height: 54px; border: 1px solid var(--c-border); padding: 10px; text-align: left; font-size: 13px; background: #1b211a; display: flex; align-items: center; gap: 8px; }
.site-list button span { color: #a6ac91; font: 12px var(--mono); }
.site-list button[aria-pressed=true] { color: #f2c391; border-color: #ce9f71; background: #302c20; }
.site-detail h2 { font: 26px var(--serif); margin: 16px 0 9px; }
.site-detail p { font-size: 14px; line-height: 1.85; }
.site-detail .c-button { width: 100%; margin-top: 10px; }
.site-metrics { margin: 23px 0; }
.site-metrics div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #404635; font-size: 13px; }
.site-metrics dt { color: var(--muted); }.site-metrics dd { margin: 0; font-family: var(--mono); text-align: right; }
.science-notes { color: var(--muted); font-size: 13px; line-height: 1.9; border-top: 1px solid var(--c-border); margin-top: 24px; padding: 15px 0; }
.science-notes summary { color: var(--sage); cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; }
.science-notes a { color: #e5bd8a; text-decoration: underline; text-underline-offset: 3px; }
.world-site-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.world-site-stats > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border: 1px solid var(--c-border); font-size: 13px; }
.world-site-stats strong { color: var(--sage); font: 13px var(--mono); }.world-site-stats small { color: var(--muted); grid-column: 1/-1; font-size: 12px; }
.live-resources { grid-template-columns: repeat(6,minmax(0,1fr)); }
.live-resources .resource-card { padding: 20px 16px; }.live-resources .resource-card > strong { font-size: 28px; }
.live-resources .resource-card > span { font-size: 13px; }.live-resources .resource-card small { font-size: 11px; }
.live-resources .resource-card:last-child { border-right: 0; }.live-resources .resource-card:nth-child(7) { border-top: 1px solid var(--c-border); }
.event-list { list-style: none; margin: 0; padding: 0; }.event-list li { font-size: 13px; line-height: 1.8; border-bottom: 1px solid #38402e; padding: 10px 0; }.event-list li span { color: #c9c89c; font: 11px var(--mono); margin-right: 10px; }
.sync-clock { color: var(--muted); font: 12px var(--mono); min-width: 95px; }
.chair-strip .c-button { display: inline-flex; min-height: 44px; margin-left: 10px; }.chair-strip > span { font-size: 12px; line-height: 1.7; }
.expansion-copy { max-width: 1000px; }
.supply-alert { margin-top: 20px; border: 1px solid #b48a59; background: #30251b; color: #f5c59d; padding: 17px 20px; font-size: 14px; line-height: 1.8; }
.market-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: end; }.market-form select { width: 100%; }.market-form .form-error { grid-column: 1/-1; margin: 0; }
.market-offers { margin-top: 15px; }.offer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--c-border); margin-top: 8px; }.offer-row h3 { font-size: 17px; margin: 0; }.offer-row p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }.offer-row form { display: flex; gap: 10px; flex-wrap: wrap; }.offer-row input { width: 90px; }.offer-row .form-error { flex-basis: 100%; }
.inline-form { display: flex; align-items: end; gap: 12px; margin: 15px 0; }.inline-form input { max-width: 100px; }.inline-form label { flex: 1; }
.cargo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0; }.cargo-grid input { font-size: 16px; }.check-label { display: flex!important; gap: 10px; align-items: center; }.check-label input { width: 20px; height: 20px; min-height: 20px; margin: 0!important; accent-color: #b7cd91; }
.council-dialog input, .council-dialog select { font-size: 16px; margin-top: 6px; }.council-dialog label { font-size: 14px; }.council-dialog .c-button { margin-top: 20px; }
.council-dialog hr { border: 0; border-top: 1px solid #48533f; margin-top: 24px; }
@media(max-width:1050px) { .live-resources { grid-template-columns: repeat(3,minmax(0,1fr)); }.live-resources .resource-card { border-bottom: 1px solid var(--c-border); }.world-site-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }.landing-layout { grid-template-columns: 1fr; }.site-detail { max-width: none; }.site-list { grid-template-columns: repeat(4,minmax(0,1fr)); }.enlist-layout { grid-template-columns: 1fr 1fr; }.market-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .enlist-layout { grid-template-columns: 1fr; }.enlist-art { min-height: 300px; padding: 32px 26px; }.enlist-art h1 { font-size: 29px; }.auth-panel { padding: 30px 25px; }.site-list { grid-template-columns: repeat(2,minmax(0,1fr)); }.world-site-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.world-site-stats > div { padding: 11px; font-size: 12px; }.live-resources { grid-template-columns: repeat(2,minmax(0,1fr)); }.live-resources .resource-card:last-child { grid-column: auto; }.live-resources .resource-card { padding: 17px; }.live-resources .resource-card > strong { font-size: 26px; }.council-clock { flex-direction: column; gap: 7px; align-items: flex-end; }.sync-clock { font-size: 11px; min-width: 80px; }.council-topline { gap: 10px; }.council-topline h1 { font-size: 21px; }.council-topline h1 span { display: none; }.chair-strip { flex-wrap: wrap; }.chair-strip .c-button { margin: 0 10px 0 0; }.section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }.council .section-heading > span { font-size: 12px; }.market-form { grid-template-columns: 1fr 1fr; padding: 17px; }.market-form label:first-child { grid-column: 1/-1; }.market-form button { grid-column: 1/-1; }.offer-row { padding: 17px; flex-wrap: wrap; }.offer-row form { width: 100%; }.cargo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.council input, .council select { font-size: 16px; }.map-legend { font-size: 11px; gap: 8px 14px; }.science-notes { font-size: 13px; }.bottom-nav button { font-size: 12px; }.council-footnote { flex-wrap: wrap; font-size: 11px; } }
