:root{--ink:#f3eee3;--muted:#a8a7a2;--line:#303831;--deep:#0b0e0c;--gold:#c8a86b;--panel:#141a15}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 65% -30%,#263729,transparent 36%),var(--deep);color:var(--ink);font-family:Inter,system-ui,sans-serif}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{padding:30px 22px;background:#101510e8;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;margin-bottom:34px}.brand b{border:1px solid var(--gold);border-radius:99px;color:var(--gold);font:21px Georgia;padding:5px 10px}small{color:var(--muted);font-size:10px;letter-spacing:.13em}h1,h2,h3{font-family:Georgia,serif;font-weight:500}h1{font-size:19px;margin:3px 0}h2{font-size:28px;margin:5px 0}h3{font-size:20px}.primary-nav{display:grid;gap:5px}.nav,.nav-link{margin:0;padding:11px;color:var(--muted);background:transparent;border:0;text-align:left;border-radius:7px;text-decoration:none;font:inherit}.nav.active,.nav-link.active{color:var(--ink);background:#c8a86b20}.menu-toggle{display:none}footer{margin-top:auto;color:var(--muted);font-size:12px}.view{display:none;min-width:0}.view.active{display:flex}.bridge,.place{flex-direction:column;max-width:1000px;width:100%;justify-self:center}header{padding:30px 38px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:end}header p{font-size:12px;color:var(--muted)}.conversation{padding:32px 38px;flex:1;min-height:220px}article{border-left:2px solid #72979a;padding-left:17px;margin-bottom:25px;max-width:720px}article p{line-height:1.6;margin:7px 0}em{color:var(--muted);font-size:11px;font-style:normal;margin-left:7px}.captain{margin-left:auto;border-color:var(--gold);padding:14px 17px;background:#c8a86b0d;border-radius:0 7px 7px 0}.vale{border-color:#c8b2d1}.juniper{border-color:#d59a7a}form{padding:20px 38px 26px;border-top:1px solid var(--line)}label{display:block;margin-bottom:8px;font-size:13px;font-weight:bold}textarea{width:100%;min-height:80px;padding:14px;color:var(--ink);background:#151b16;border:1px solid #3a453a;border-radius:8px;font:inherit}form div{display:flex;justify-content:space-between;margin-top:10px;color:var(--muted);font-size:11px}button{margin-top:8px;border:1px solid #3a453a;background:#202820;color:var(--ink);padding:10px;border-radius:6px;text-align:left;cursor:pointer}.content{padding:40px}.lede{color:var(--muted);line-height:1.6;max-width:720px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:30px}.card{min-height:185px;padding:23px;background:var(--panel);border:1px solid var(--line);border-radius:9px}.card.primary{border-color:#826e48;background:#1a1d16}.card h3{margin:10px 0 7px}.card p{color:var(--muted);line-height:1.5;font-size:13px}.archive-actions{margin:24px 0}.conversation-list{display:grid;gap:10px;margin-top:20px;max-width:720px}.conversation-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;text-align:left;background:var(--panel)}.conversation-item span{color:var(--muted);font-size:12px}.crew-cards{display:grid;gap:12px;max-width:760px;margin-top:28px}.crew-card{display:grid;grid-template-columns:72px 1fr auto;gap:18px;align-items:center;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:10px}.crew-card img{width:72px;height:72px;object-fit:cover;border-radius:50%;border:1px solid #806e4c}.crew-card h3{margin:4px 0}.crew-card p{color:var(--muted);margin:0;font-size:13px}.profile-button{margin:0}.direct-log{min-height:120px}.direct-conversation{margin-top:28px}dialog{max-width:410px;background:#141a15;color:var(--ink);border:1px solid #806e4c;border-radius:12px;padding:28px;box-shadow:0 20px 80px #000b}dialog::backdrop{background:#0009}dialog img{width:110px;height:110px;object-fit:cover;border-radius:50%;display:block;margin-bottom:18px}dialog h2{margin:8px 0}dialog p{color:var(--muted);line-height:1.6}.dialog-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:24px}.dialog-close+img{margin-top:4px}@media(max-width:650px){.shell{display:block}.sidebar{position:relative;z-index:50;min-height:0;padding:15px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin-bottom:12px}.menu-toggle{display:block;position:absolute;z-index:60;right:15px;top:18px;background:transparent;border:0;color:var(--ink);font-size:18px}.menu-toggle span{font-size:12px}.primary-nav{display:none}.sidebar.open .primary-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:absolute;top:100%;left:0;right:0;margin:0;padding:12px 15px;background:#101510f5;border-bottom:1px solid var(--line);box-shadow:0 12px 28px #0008;z-index:30}.sidebar.open .menu-toggle{color:var(--gold)}footer{display:none}header,.conversation,form,.content{padding-left:20px;padding-right:20px}.cards{grid-template-columns:1fr}.crew-card{grid-template-columns:56px 1fr}.crew-card img{width:56px;height:56px}.profile-button{grid-column:2;justify-self:start}}
.bridge-banner small{color:#d7b56d;letter-spacing:.18em;text-transform:uppercase}.bridge-banner p{max-width:680px}
.section-tabs{display:flex;gap:8px;margin:18px 0 30px;overflow-x:auto}.section-tab{padding:8px 13px;border:1px solid #405044;border-radius:999px;color:var(--muted);text-decoration:none;font-size:13px;white-space:nowrap}.section-tab.active,.section-tab:hover{color:#17130b;background:var(--gold);border-color:var(--gold)}
@media(max-width:650px){.section-tabs{gap:6px;margin:14px 0 24px}.section-tab{padding:8px 11px;font-size:12px}}
.section-tabs,.story-tabs,.character-tabs{font-family:Inter,system-ui,sans-serif}.story-tabs,.character-tabs{display:flex;gap:8px;margin:18px 0 30px;overflow-x:auto}.story-tab,.character-tab{font-family:Inter,system-ui,sans-serif;white-space:nowrap}.page-banner{background:linear-gradient(135deg,#1a2119,#111915);border:1px solid #826e48;border-radius:14px;padding:24px 28px;margin:22px 38px 0}.page-banner h1,.page-banner h2{font:clamp(32px,4vw,48px) Georgia,serif;margin:0 0 10px;color:var(--ink)}.page-banner p{color:var(--muted);font-size:16px;line-height:1.6;margin:0;max-width:760px}.page-banner .story-kicker,.page-banner .kicker,.page-banner .voyage-kicker{color:var(--gold);letter-spacing:.18em;text-transform:uppercase;font-size:11px}.page-banner .story-tabs,.page-banner .character-tabs{margin-bottom:0}@media(max-width:650px){.page-banner{margin:16px 20px 0;padding:20px}.page-banner h1,.page-banner h2{font-size:34px}}
.story-tab,.character-tab{display:inline-block;padding:8px 13px;border:1px solid #405044;border-radius:999px;color:var(--muted);text-decoration:none;font-size:13px;white-space:nowrap}.story-tab.active,.story-tab:hover,.character-tab.active,.character-tab:hover{color:#17130b;background:var(--gold);border-color:var(--gold)}
.story-intro.page-banner,.characters-intro.page-banner,.voyage-intro.page-banner,.gallery-intro.page-banner{max-width:none;margin-bottom:0}
.bridge{max-width:none;padding-left:28px;padding-right:28px}.observatory-page{padding-top:0!important;padding-left:28px!important;padding-right:28px!important}.crew-wrap{width:100%;box-sizing:border-box;padding-top:0!important;padding-left:28px!important;padding-right:28px!important}.crew-wrap>a.muted{display:none}@media(max-width:650px){.bridge{padding-left:20px;padding-right:20px}.observatory-page,.crew-wrap{padding-left:20px!important;padding-right:20px!important}}
.story-page,.characters-page,.voyage-page,.gallery-page{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}.story-intro.page-banner,.characters-intro.page-banner,.voyage-intro.page-banner,.gallery-intro.page-banner{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end}.story-intro.page-banner h2,.characters-intro.page-banner h2,.voyage-intro.page-banner h2{font-size:28px;margin:8px 0}.story-intro.page-banner p,.characters-intro.page-banner p,.voyage-intro.page-banner p{font-size:14px;line-height:1.45}.story-intro.page-banner .story-tabs,.characters-intro.page-banner .character-tabs{margin-bottom:0}@media(max-width:650px){.story-page,.characters-page,.voyage-page,.gallery-page{padding:0 20px 56px!important}.story-intro.page-banner,.characters-intro.page-banner,.voyage-intro.page-banner,.gallery-intro.page-banner{height:152px;min-height:152px;padding:18px}.story-intro.page-banner h2,.characters-intro.page-banner h2,.voyage-intro.page-banner h2{font-size:21px}}
.view.place:has(.story-page),.view.place:has(.characters-page),.view.place:has(.voyage-page),.view.place:has(.gallery-page){max-width:1180px}
.story-intro.page-banner{background:linear-gradient(110deg,rgba(10,18,20,.60),rgba(13,23,25,.48)),url("/static/anaphora-dawn.jpg") center/cover}
.characters-intro.page-banner{background:linear-gradient(110deg,rgba(8,16,24,.62),rgba(11,22,31,.48)),url("/static/anaphora-space.jpg") center/cover}
.voyage-intro.page-banner{background:linear-gradient(110deg,rgba(8,15,23,.66),rgba(14,22,28,.52)),url("/static/anaphora-night.jpg") center/cover}
.bridge .bridge-banner.page-banner{background:linear-gradient(110deg,rgba(11,20,30,.72),rgba(24,42,57,.56)),url("/static/anaphora-night.jpg") center/cover}
.crew-wrap .page-banner{background:linear-gradient(110deg,rgba(11,20,30,.68),rgba(18,34,48,.56)),url("/static/anaphora-space.jpg") center/cover}
.view.place:has(.wrap),.view.place:has(.work-page),.view.place:has(.files-page),.view.place:has(.archive-wrap){max-width:1180px}
.wrap,.work-page,.files-page,.archive-wrap{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}
.wrap>.top.page-banner,.work-page .page-banner,.files-page .page-banner,.archive-wrap .page-banner{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end}
.wrap>.top.page-banner{background:linear-gradient(110deg,rgba(10,20,24,.62),rgba(16,31,34,.48)),url("/static/anaphora-dawn.jpg") center/cover}
.wrap>.top{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(110deg,rgba(10,20,24,.62),rgba(16,31,34,.48)),url("/static/anaphora-dawn.jpg") center/cover;border:1px solid #826e48;border-radius:14px}
.wrap>.page-banner{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(110deg,rgba(8,18,24,.64),rgba(14,27,31,.50)),url("/static/anaphora-space.jpg") center/cover}
.wrap>.top h1,.wrap>.page-banner h1{font-size:28px;margin:8px 0}.wrap>.top p,.wrap>.page-banner p{font-size:14px;line-height:1.45}
.work-page .page-banner{background:linear-gradient(110deg,rgba(8,18,24,.64),rgba(14,27,31,.50)),url("/static/anaphora-space.jpg") center/cover}
.files-page .page-banner{background:linear-gradient(110deg,rgba(9,19,22,.62),rgba(18,31,29,.48)),url("/static/anaphora-dawn.jpg") center/cover}
.archive-wrap .page-banner{background:linear-gradient(110deg,rgba(8,15,23,.66),rgba(15,24,30,.52)),url("/static/anaphora-night.jpg") center/cover}
.wrap>.top.page-banner h1,.work-page .page-banner h1,.work-page .page-banner h2,.files-page .page-banner h1,.files-page .page-banner h2,.archive-wrap .page-banner h1,.archive-wrap .page-banner h2{font-size:28px;margin:8px 0}
.wrap>.top.page-banner p,.work-page .page-banner p,.files-page .page-banner p,.archive-wrap .page-banner p{font-size:14px;line-height:1.45}
.wrap>.top a,.wrap>.top.page-banner a{display:none}
.archive-wrap>a.muted{display:none}
.view.place:has(.account-page){max-width:1180px}.account-page{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}.account-page .page-banner{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(110deg,rgba(8,18,24,.64),rgba(14,27,31,.50)),url("/static/anaphora-space.jpg") center/cover}.account-page .page-banner .eyebrow{color:var(--gold);letter-spacing:.18em;text-transform:uppercase;font-size:11px;margin:0}.account-page .page-banner h2{font-size:28px;margin:8px 0}.account-page .page-banner .lede{font-size:14px;line-height:1.45;margin:0;color:var(--muted)}@media(max-width:650px){.account-page{padding:0 20px 56px!important}.account-page .page-banner{height:152px;min-height:152px;padding:18px}.account-page .page-banner h2{font-size:21px}}
@media(max-width:650px){.wrap,.work-page,.files-page,.archive-wrap{padding:0 20px 56px!important}.wrap>.top,.wrap>.top.page-banner,.wrap>.page-banner,.work-page .page-banner,.files-page .page-banner,.archive-wrap .page-banner{height:152px;min-height:152px;padding:18px}.wrap>.top h1,.wrap>.top.page-banner h1,.wrap>.page-banner h1,.work-page .page-banner h1,.work-page .page-banner h2,.files-page .page-banner h1,.files-page .page-banner h2,.archive-wrap .page-banner h1,.archive-wrap .page-banner h2{font-size:21px}}
.view.place:has(.archive-wrap),.view.place:has(.search-page){max-width:1180px}.archive-wrap,.search-page{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}.archive-wrap .page-banner,.search-page .page-banner{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid #826e48;border-radius:14px}.archive-wrap .page-banner{background:linear-gradient(110deg,rgba(8,15,23,.66),rgba(15,24,30,.52)),url("/static/anaphora-night.jpg") center/cover}.search-page .page-banner{background:linear-gradient(110deg,rgba(8,18,24,.64),rgba(14,27,31,.50)),url("/static/anaphora-space.jpg") center/cover}.archive-wrap .page-banner h1,.archive-wrap .page-banner h2,.search-page .page-banner h1,.search-page .page-banner h2{font-size:28px;margin:8px 0}.archive-wrap .page-banner p,.search-page .page-banner p{font-size:14px;line-height:1.45;margin:0;color:var(--muted)}.universal-search{display:flex;gap:10px;margin:24px 0 18px;padding:0;border:0}.universal-search input{flex:1;min-width:0;padding:13px 15px;border:1px solid #405044;border-radius:8px;background:#151b16;color:var(--ink);font:inherit}.universal-search button{margin:0;white-space:nowrap;background:var(--gold);color:#17130b;border-color:var(--gold);font-weight:700}.search-results{display:grid;gap:10px;max-width:900px}.search-result{display:block;padding:16px 18px;background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none}.search-result:hover{border-color:var(--gold);background:#1a211b}.search-result-type{display:inline-block;margin-right:10px;color:var(--gold);font-size:11px;letter-spacing:.12em;text-transform:uppercase}.search-result strong{font-family:Georgia,serif;font-size:20px;font-weight:500}.search-result-meta{float:right;color:var(--muted);font-size:12px}.search-result p{margin:8px 0 0;color:var(--muted);line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:650px){.archive-wrap,.search-page{padding:0 20px 56px!important}.archive-wrap .page-banner,.search-page .page-banner{height:152px;min-height:152px;padding:18px}.archive-wrap .page-banner h1,.archive-wrap .page-banner h2,.search-page .page-banner h1,.search-page .page-banner h2{font-size:21px}.universal-search{gap:7px}.universal-search input{font-size:14px}.search-result strong{font-size:18px}.search-result-meta{float:none;display:block;margin-top:5px}}
.view.place:has(.files-page){max-width:1180px}.files-page{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}.files-page h2{font-size:28px;margin:0 0 10px}.files-lede{max-width:760px;color:var(--muted);line-height:1.6;margin:0}.files-toolbar{display:flex;align-items:center;gap:10px;margin:24px 0 18px}.files-toolbar input{flex:1;min-width:0;padding:12px 14px;border:1px solid #405044;border-radius:8px;background:#151b16;color:var(--ink);font:inherit}.files-toolbar button{margin:0;background:var(--gold);border-color:var(--gold);color:#17130b;font-weight:700}.files-count{color:var(--muted);font-size:13px;white-space:nowrap}.files-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.files-panel{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:12px;min-width:0}.files-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:8px}.files-panel h3{margin:2px 0 0;font-size:23px}.files-kicker{color:var(--gold);font-size:11px;letter-spacing:.14em}.files-panel-note{color:var(--muted);font-size:12px;text-align:right}.files-library{border-color:#806e4c}.files-library-copy{color:var(--muted);font-size:14px;line-height:1.5;margin:12px 0 16px}.file-list{display:grid;gap:6px}.file-row{display:block;width:100%;margin:0;padding:10px 11px;text-align:left;background:#182019;border:1px solid transparent;border-radius:7px;color:var(--ink);cursor:pointer}.file-row:hover{border-color:#806e4c;background:#1d291f}.file-name,.file-path{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name{font-size:14px}.file-path{margin-top:4px;color:var(--muted);font-size:11px}.files-page dialog{width:min(760px,calc(100vw - 32px));max-width:none}.files-page dialog pre{max-height:60vh;overflow:auto;white-space:pre-wrap;color:#d9e2d7;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;background:#0d130f;border:1px solid var(--line);padding:14px;border-radius:8px}.files-page dialog h3{padding-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:650px){.files-page{padding:0 20px 56px!important}.files-toolbar{flex-wrap:wrap}.files-toolbar input{flex-basis:100%}.files-count{margin-left:auto}.files-grid{grid-template-columns:1fr}.files-panel{padding:17px}}
/* File rows contain a reader control and an explicit download action. */
.file-row{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:8px 10px;background:#182019;border:1px solid transparent;border-radius:7px;color:var(--ink)}
.file-open{flex:1;min-width:0;display:block;padding:2px 0;text-align:left;background:transparent;border:0;color:var(--ink);cursor:pointer}
.file-download{flex:0 0 auto;padding:6px 9px;background:transparent;border:1px solid #526354;border-radius:5px;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.file-download:hover{border-color:var(--gold);color:var(--ink);background:#263328}

/* Keep Inbox's Ship's Log banner aligned with Conversations and Search. */
.view.place:has(.inbox-page){max-width:1180px}
.inbox-page{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}
.inbox-page .page-banner{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid #826e48;border-radius:14px;background:linear-gradient(110deg,rgba(8,15,23,.66),rgba(15,24,30,.52)),url('/static/anaphora-night.jpg') center/cover}
.inbox-page .page-banner h2{font-size:28px;color:var(--ink);margin:8px 0}
.inbox-page .page-banner p{font-size:14px;line-height:1.45;margin:0;color:var(--muted)}
@media(max-width:650px){.inbox-page{padding:0 20px 56px!important}.inbox-page .page-banner{height:152px;min-height:152px;padding:18px}.inbox-page .page-banner h2{font-size:21px}}
/* Shared conversation typography and viewport containment */
.rich-text{max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.6;text-align:left}
.rich-text p{margin:.45em 0}.rich-text p:first-child{margin-top:0}.rich-text p:last-child{margin-bottom:0}
.rich-text ul,.rich-text ol{margin:.55em 0 .7em 1.25em;padding:0}.rich-text li{margin:.25em 0;padding-left:.15em}
.rich-text strong{font-weight:700}.rich-text em{font-style:italic}.rich-text code{font:.92em ui-monospace,SFMono-Regular,Menlo,monospace;background:#0a1422aa;border:1px solid #39506a;border-radius:4px;padding:.08em .3em}.rich-text blockquote{margin:.65em 0;padding:.35em .8em;border-left:3px solid #c8a86a;color:#c8d6e7;background:#15243766}.rich-text a{color:#a9d0ff;text-decoration:underline;text-underline-offset:2px}
.conversation,.log,#chat-log,.chat-log{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.conversation article,.log .msg,.chat-line{max-width:100%;box-sizing:border-box}
.chat-line{white-space:normal;line-height:1.55}.chat-line .chat-speaker{display:block;margin-bottom:4px}
@media(max-width:640px){.conversation,.log,#chat-log,.chat-log{max-height:calc(100dvh - 220px);overflow:auto}.rich-text{line-height:1.55}}
/* Canonical shell for the four primary reader pages. Keep banner geometry in one place. */
.primary-page{width:100%;max-width:1180px!important;margin:0 auto;padding:0 28px 72px!important}
.primary-page .page-banner,.primary-page>.story-intro,.primary-page>.characters-intro,.primary-page>.voyage-intro,.primary-page>.gallery-intro{width:100%;height:192px;min-height:192px;margin:0!important;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end}
@media(max-width:650px){.primary-page{padding:0 20px 56px!important}.primary-page .page-banner,.primary-page>.story-intro,.primary-page>.characters-intro,.primary-page>.voyage-intro,.primary-page>.gallery-intro{height:152px;min-height:152px;padding:18px}}
.view.place:has(.engineering-page){max-width:1000px}
.engineering-page{width:100%;max-width:1000px;margin:0 auto;padding:0 38px 72px}
.engineering-page>.page-banner{background:linear-gradient(110deg,rgba(8,18,24,.72),rgba(14,27,31,.58)),url('/static/banners/engineering-banner-v2.png') center/cover}
@media(max-width:650px){.engineering-page{padding:0 20px 56px}}
.engineering-conversation{background:rgba(12,21,28,.78);border:1px solid #304964;border-radius:12px;margin-bottom:24px;overflow:hidden}
.engineering-conversation header{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:end}
.engineering-conversation header h2{font-size:28px;margin:6px 0 0}.engineering-conversation header p{color:var(--muted);font-size:12px}
.engineering-log{padding:24px;min-height:220px;max-height:480px;overflow:auto}.engineering-message{border-left:2px solid #72979a;padding-left:16px;margin-bottom:20px;line-height:1.6;max-width:760px}.engineering-message.captain{margin-left:auto;border-color:var(--gold);padding:14px 16px;background:#c8a86b0d;border-radius:0 7px 7px 0}.engineering-message.reply{border-color:#9bb8c8}.engineering-message.error{border-color:#d59a7a}.engineering-message strong{display:block;margin-bottom:6px}
.engineering-form{display:grid;grid-template-columns:190px 1fr auto;gap:10px;padding:20px 24px 24px;border-top:1px solid var(--line);align-items:end}.engineering-form label{display:grid;gap:6px;color:var(--muted);font-size:12px}.engineering-form select,.engineering-form textarea,.engineering-form button{font:inherit;color:var(--text);background:#111812;border:1px solid #405044;border-radius:8px;padding:10px}.engineering-form textarea{resize:vertical;min-height:72px}.engineering-form button{color:#17130b;background:var(--gold);border-color:var(--gold);cursor:pointer;font-weight:600}.engineering-form button:disabled{opacity:.55;cursor:wait}
@media(max-width:650px){.engineering-conversation header{padding:18px 20px}.engineering-log{padding:20px}.engineering-form{grid-template-columns:1fr;padding:16px 20px 20px}.engineering-form button{width:100%}}
.engineering-overview{margin:18px 0 24px;padding:22px 24px;background:rgba(12,21,28,.66);border:1px solid #304964;border-radius:12px}.engineering-overview-head{display:flex;justify-content:space-between;align-items:end;gap:14px}.engineering-overview-head h2{font-size:28px;margin:6px 0}.engineering-overview-head>span{color:var(--muted);font-size:12px}.engineering-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.engineering-health-grid article{padding:15px;background:#141a15;border:1px solid var(--line);border-radius:9px}.engineering-health-grid strong{display:block;margin-top:7px;font:20px Georgia,serif;color:var(--ink)}.engineering-record-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.engineering-record-grid section{min-width:0}.engineering-record-grid ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:7px}.engineering-record-grid li{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;background:#141a15;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:12px}.engineering-record-grid li strong{color:var(--ink);text-transform:capitalize}.engineering-record-grid li span{white-space:nowrap}@media(max-width:750px){.engineering-health-grid{grid-template-columns:1fr 1fr}.engineering-record-grid{grid-template-columns:1fr}}@media(max-width:650px){.engineering-overview{padding:18px 20px}.engineering-overview-head{align-items:flex-start;flex-direction:column}.engineering-health-grid{grid-template-columns:1fr 1fr}.engineering-record-grid li{display:grid;gap:3px}.engineering-record-grid li span{white-space:normal}}
.operator-capabilities{margin-top:28px;padding:22px 24px;background:rgba(12,21,28,.52);border:1px solid #304964;border-radius:12px}.operator-capabilities-head{display:flex;justify-content:space-between;align-items:end;gap:14px}.operator-capabilities-head h2{font-size:26px;margin:6px 0}.operator-capabilities-head p{color:var(--muted);font-size:12px;margin:0}.operator-layers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.operator-layers section{padding:15px;background:#141a15;border:1px solid var(--line);border-radius:9px}.operator-layers h3{font:18px Georgia,serif;margin:0 0 9px}.operator-layers ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}.operator-layers li{color:var(--muted);font-size:13px;padding-left:22px;position:relative;line-height:1.4}.operator-layers li::before{position:absolute;left:0;top:0;font-size:15px}.operator-layers li.enabled::before{content:'✓';color:#78c69b}.operator-layers li.pending::before{content:'□';color:#c8a86b}@media(max-width:650px){.operator-capabilities{padding:18px 20px}.operator-capabilities-head{align-items:flex-start;flex-direction:column}.operator-layers{grid-template-columns:1fr}}
.engineering-form>*{min-width:0}.engineering-form textarea,.engineering-form select{width:100%;max-width:100%;box-sizing:border-box}
.engineering-secondary-grid{margin-top:18px}.engineering-secondary-grid section{padding:15px;background:#141a15;border:1px solid var(--line);border-radius:9px}.engineering-secondary-grid strong{display:block;margin-top:8px;font:18px Georgia,serif;color:var(--ink)}

/* Inbox briefing headings are section labels, not page titles. */
.inbox-body.rich-text h1{font-size:22px;line-height:1.25;margin:0 0 10px}
.inbox-body.rich-text h2{font-size:19px;line-height:1.3;margin:16px 0 6px}
.inbox-body.rich-text h3{font-size:16px;line-height:1.35;margin:12px 0 5px}

/* Bridge roster: compact by default, with explicit per-exchange participation. */
.bridge-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.bridge-participants{position:relative;min-width:0}
.bridge-participants summary{cursor:pointer;list-style:none;border:1px solid #3a453a;border-radius:7px;background:#151b16;color:var(--ink);padding:10px 12px;font-size:12px;white-space:nowrap}
.bridge-participants summary::-webkit-details-marker{display:none}
.bridge-participants summary:after{content:'⌄';margin-left:9px;color:var(--gold)}
.bridge-participant-menu{position:absolute;z-index:80;right:0;top:calc(100% + 8px);width:min(340px,calc(100vw - 40px));padding:14px;background:#101510;border:1px solid #3a453a;border-radius:9px;box-shadow:0 14px 34px #000b}
.bridge-participant-menu fieldset{border:0;padding:0;margin:0;min-width:0}
.bridge-participant-menu legend{font-size:12px;color:var(--muted);margin-bottom:10px}
.bridge-participant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.bridge-participant-option{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:8px;border:1px solid #303831;border-radius:6px;font-size:13px;font-weight:400;overflow-wrap:anywhere}
.bridge-participant-option input{flex:none;accent-color:var(--gold)}
.bridge-participant-presets{display:flex;gap:8px;margin-top:10px}
.bridge-participant-presets button{margin:0;flex:1;font-size:12px;text-align:center}
@media(max-width:650px){.bridge header{align-items:flex-start;flex-wrap:wrap;gap:10px}.bridge-controls{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;gap:6px}.bridge-participants summary{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bridge-controls>#new-bridge{margin:0;padding:8px;font-size:12px;white-space:nowrap}.bridge-participant-menu{left:0;right:auto}}

/* Give the Observatory catalog and crew-quarter conversation the full desktop
   workspace; the generic .place shell was limiting both to 1000px. */
@media(min-width:1101px){
  .view.place:has(.observatory-page),
  .view.place:has(.crew-wrap){max-width:none;width:100%;justify-self:stretch}
  .view.place:has(.observatory-page) .observatory-page,
  .view.place:has(.crew-wrap) .crew-wrap{width:100%;max-width:none;box-sizing:border-box}
  .view.place:has(.crew-wrap) .profile{grid-template-columns:minmax(180px,240px) minmax(0,1fr) minmax(190px,250px);width:100%}
  .view.place:has(.crew-wrap) .profile .chat{width:100%;min-width:0}
}

/* One header layout for all Ship pages; artwork stays page-specific. */
.ship-page-header{width:100%;height:192px;min-height:192px;margin:0 0 18px;padding:28px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;border:1px solid #826e48;border-radius:14px}
.ship-page-header h1,.ship-page-header h2{font-size:28px;margin:8px 0;color:var(--ink)}
.ship-page-header p{font-size:14px;line-height:1.45;margin:0;color:var(--muted)}
@media(max-width:650px){.ship-page-header{height:152px;min-height:152px;padding:18px}.ship-page-header h1,.ship-page-header h2{font-size:21px}}
