:root {
  color-scheme: dark;
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #d9e9ea;
  background: #07141f;
  --ink: #e4f0f0;
  --muted: #a0b6bd;
  --line: #294752;
  --cyan: #89e1d8;
  --amber: #f2c48b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 0, #153b46 0, #0a1d2a 34%, #07141f 65%); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .07; background-image: linear-gradient(#68abb2 1px, transparent 1px), linear-gradient(90deg, #68abb2 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(black, transparent 85%); }
button, input, select, .button { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid #79d8d0; border-radius: 8px; background: #176768; color: #f1ffff; font-size: 13px; font-weight: 650; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .button:hover { background: #1d7b7b; }
button:disabled { opacity: .5; cursor: default; }
button.quiet { background: #112934; border-color: #41616d; color: #c6dfe1; }
button.quiet:hover:not(:disabled) { background: #1b3a46; }
a { color: var(--cyan); text-underline-offset: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.conversation-section { margin-top: 18px; }
.conversation-heading, .conversation-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.conversation-actions { justify-content: flex-start; margin: 20px 0 12px; }
.conversation-row { width: 100%; text-align: left; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.conversation-row[aria-pressed="true"] { border-color: var(--cyan); }
.conversation-row-main { display: grid; gap: 6px; min-width: 0; }
.conversation-title, .conversation-row .subtle, .conversation-text, .conversation-facts dd { overflow-wrap: anywhere; }
.conversation-detail { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.conversation-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px 20px; }
.conversation-facts div { min-width: 0; }
.conversation-facts dt { color: var(--muted); font-size: 11px; }
.conversation-facts dd { margin: 3px 0 0; font-size: 13px; }
.conversation-evidence h4 { font-size: 13px; margin-bottom: 7px; }
.conversation-text { white-space: pre-wrap; font-size: 13px; }
.conversation-source { margin: 12px 0; font-size: 12px; }
.conversation-source summary { cursor: pointer; color: var(--cyan); overflow-wrap: anywhere; }
.conversation-source pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; padding: 12px; background: #07141f; border-radius: 8px; font-size: 11px; }
@media (max-width: 560px) { .conversation-row { align-items: flex-start; flex-direction: column; } }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #41616d; border-radius: 8px; background: #091b26; color: var(--ink); }
label { display: grid; gap: 6px; color: #c6d8dc; font-size: 12px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: #edf8f7; }
h1 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.12; letter-spacing: -1.7px; font-weight: 600; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.45px; font-weight: 600; margin-bottom: 10px; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; margin-bottom: 5px; }
p { color: var(--muted); }
.eyebrow { margin-bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.65px; color: var(--cyan); }
.subtle { font-size: 12px; color: var(--muted); }
.site-header, main, footer { max-width: 1240px; margin: auto; position: relative; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 40px; border-bottom: 1px solid #23414d; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-content: center; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(140deg, #a4ede3, #39aca7); color: #092b31; font-size: 28px; font-weight: 800; line-height: 1; }
.brand small { display: block; color: #a1c6ca; font-size: 9px; letter-spacing: 2px; }
.brand strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 600; }
.header-context { display: flex; align-items: center; justify-content: flex-end; gap: 15px; flex-wrap: wrap; font-size: 12px; }
.environment { border: 1px solid #365862; border-radius: 30px; padding: 6px 11px; color: #b4cdd0; background: #0b242e; font-size: 10px; letter-spacing: .4px; }
.skip-link { position: absolute; z-index: 5; top: -70px; left: 16px; padding: 10px; background: #153b46; }
.skip-link:focus { top: 10px; }
main { padding: 48px 40px 64px; min-height: calc(100vh - 190px); }
.entry { display: grid; grid-template-columns: minmax(0, 600px); justify-content: center; gap: 75px; padding: 65px 0 90px; align-items: center; }
.entry-intro h1 { margin-bottom: 24px; }
.entry-intro > p:not(.eyebrow) { max-width: 430px; font-size: 16px; line-height: 1.75; }
.entry-points { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 30px; color: #b0c9cc; font-size: 11px; }
.entry-points span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: #80c4bc; }
.panel { min-width: 0; background: linear-gradient(135deg, #102936, #0b1d28); border: 1px solid var(--line); border-radius: 13px; padding: 24px; box-shadow: 0 16px 40px #0002; }
.auth-panel { padding: 30px; border-top-color: #619d9c; }
.auth-panel p:not(.eyebrow) { margin-bottom: 25px; font-size: 14px; line-height: 1.7; }
.auth-panel .button { margin: 0 8px 10px 0; }
.auth-panel button { margin-bottom: 10px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 3px 0 27px; }
.workspace-heading h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; margin-bottom: 9px; }
.workspace-heading p:last-child { margin: 0; font-size: 14px; }
.organisation-control { min-width: 210px; }
.notice { margin: 0 0 20px; padding: 14px 17px; border: 1px solid #75613f; border-radius: 9px; background: #2a2921; color: #f0d4ac; font-size: 13px; overflow-wrap: anywhere; }
.fixture-notice { border-style: dashed; }
.sync-panel { border-color: #3b666b; }
.sync-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sync-heading .eyebrow { margin-bottom: 5px; }
.sync-heading h2 { font-size: 20px; margin-bottom: 12px; }
#sync-message { margin: 0 0 20px; max-width: 76ch; font-size: 13px; }
.status, .evidence-tag { display: inline-block; max-width: 100%; border: 1px solid #4b616b; border-radius: 20px; padding: 4px 10px; color: #c5d5da; background: #122c37; font-size: 11px; overflow-wrap: anywhere; }
.status-success { border-color: #427365; color: #aae0c8; background: #14352f; }
.status-warning { border-color: #826d46; color: #f3d1a5; background: #312a1e; }
.status-progress { border-color: #487d8d; color: #b4e3ef; }
.sync-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
dl { margin: 0; }
.sync-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; }
dt { margin-bottom: 4px; color: #a3b9bf; font-size: 10px; letter-spacing: .35px; }
dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
time { font-variant-numeric: tabular-nums; }
.sync-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.source-details { margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; color: #a5bec3; }
summary { cursor: pointer; width: fit-content; min-height: 25px; }
.source-details dl { display: grid; gap: 12px; padding-top: 10px; }
.section-links { display: flex; flex-wrap: wrap; gap: 30px; margin: 28px 0 22px; border-bottom: 1px solid var(--line); }
.section-links a { padding: 0 0 13px; color: #d0e5e5; font-size: 13px; text-decoration: none; }
.section-links a:hover { color: var(--cyan); }
.section-links span { display: inline-block; min-width: 20px; margin-left: 5px; border-radius: 15px; background: #1a3944; text-align: center; font-size: 10px; color: #b6d5d8; padding: 1px 5px; }
.planning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.section-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow, .work-heading .eyebrow { font-size: 9px; margin-bottom: 6px; }
.section-heading h2 { margin-bottom: 0; }
.record { padding: 19px 0; border-bottom: 1px solid #26434e; overflow-wrap: anywhere; }
.record:last-child { padding-bottom: 0; border: 0; }
.record-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.record p { margin: 8px 0 12px; font-size: 13px; }
.record-meta { display: flex; gap: 5px 12px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; color: #a3bdc2; font-size: 10px; }
.evidence-tag { border-radius: 4px; padding: 1px 5px; font-size: 9px; }
.evidence-synthetic { color: #f2c795; border-color: #99794f; background: #332b20; }
.empty-state { padding: 22px 0 3px; font-size: 13px; color: #aac0c5; }
.empty-state strong { display: block; margin-bottom: 7px; color: #d3e3e4; font-weight: 550; }
.empty-state p { margin-bottom: 0; font-size: 12px; }
.work-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.work-heading h2 { margin: 0; }
.work-heading > p { margin-bottom: 0; text-align: right; }
.work-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 170px) minmax(160px, 230px); gap: 14px; padding: 22px 0; }
.work-facets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work-filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 22px; }
.work-filter-actions p { margin: 0; }
.work-filter-actions button { flex: 0 0 auto; }
.work-filter select { min-width: 0; max-width: 100%; }
.roadmap-section { margin-bottom: 18px; }
.roadmap-content { margin-top: 14px; }
.roadmap-body { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-height: 32rem; overflow: auto; padding: 16px; background: #091b26; border: 1px solid var(--line); border-radius: 8px; font: 12px/1.75 ui-monospace, monospace; }
.roadmap-revision { overflow-wrap: anywhere; font-size: 11px !important; }
.work-selection-state { margin-top: 9px; }
.blocking-issues { color: #f3d1a5; font-size: 11px; margin: 7px 0 0; overflow-wrap: anywhere; }
.work-filter { display: grid; gap: 6px; }
.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 130px) minmax(90px, 140px); gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: 0; padding-bottom: 0; }
.work-identifier { font: 10px/1.6 ui-monospace, monospace; color: #9dbfc5; letter-spacing: .35px; }
.work-title { display: block; font-size: 14px; font-weight: 550; text-decoration: none; color: #e0efee; line-height: 1.5; margin: 3px 0; }
a.work-title:hover { color: var(--cyan); text-decoration: underline; }
.work-owner { font-size: 12px; color: #c2d4d8; }
.work-field-label { display: block; color: #92afb7; font-size: 10px; margin-bottom: 4px; }
.work-observed { margin-top: 5px; font-size: 10px; color: #9ab4bb; }
.workspace-footnote { max-width: 85ch; margin: 22px 0 0; font-size: 11px; line-height: 1.7; }
footer { padding: 22px 40px; border-top: 1px solid #213d49; color: #8eabb3; font-size: 10px; display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 980px) {
  .entry { gap: 35px; }
  .sync-bottom { align-items: flex-start; flex-direction: column; }
  .sync-actions { align-self: stretch; }
  .work-row { grid-template-columns: minmax(0, 1fr) 115px 105px; gap: 12px; }
}
@media (max-width: 700px) {
  .site-header { padding: 20px; min-height: 88px; gap: 12px; align-items: flex-start; }
  .header-context { gap: 8px; max-width: 160px; }
  #human-name { width: 100%; text-align: right; overflow-wrap: anywhere; font-size: 11px; }
  main { padding: 30px 20px 45px; }
  .entry { grid-template-columns: 1fr; padding: 28px 0; gap: 30px; }
  .entry-intro h1 { font-size: 39px; letter-spacing: -1.3px; }
  .entry-intro > p:not(.eyebrow) { font-size: 14px; max-width: 38ch; }
  .entry-points { margin-top: 20px; gap: 9px 18px; }
  .panel { padding: 20px; }
  .auth-panel { padding: 24px; }
  .workspace-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .organisation-control { min-width: 0; }
  .planning-grid { grid-template-columns: 1fr; }
  .sync-heading { flex-direction: column; gap: 0; }
  .sync-heading .status { margin-bottom: 14px; }
  .sync-actions { flex-direction: column-reverse; }
  .sync-actions button { width: 100%; }
  .sync-facts { display: grid; gap: 12px; }
  .section-links { justify-content: space-between; gap: 16px; margin-top: 25px; }
  .work-filters { grid-template-columns: 1fr; gap: 12px; }
  .work-facets { grid-template-columns: 1fr; gap: 12px; }
  .work-filter-actions { align-items: flex-start; flex-direction: column; }
  .work-row { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 0; }
  .work-main { grid-column: 1 / -1; }
  .work-heading { align-items: flex-start; }
  .work-heading > p { max-width: 17ch; }
  .work-title { font-size: 15px; }
  footer { padding: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
