/* Beyond Prompting OS — complementary typologies.
   Screening Room, case file, form family, Insights journal and reader, and the system layers
   (alert, Quick Look). Loaded after os.css and built only from its tokens. */

/* ───────────── Shared: fields, validation, sending ───────────── */
.f { display: grid; gap: 5px; font-size: 13.5px; font-weight: 650; color: var(--navy); }
.f-l { font-size: 13.5px; font-weight: 650; color: var(--navy); }
.f-l i { font-style: normal; font-weight: 450; color: var(--muted); margin-left: 4px; }
.f .field { height: 38px; font-size: 15px; font-weight: 400; }
.f textarea.field { height: 104px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.field[aria-invalid="true"] { border-color: var(--coral); background: #FDF1EC; box-shadow: 0 0 0 3px rgba(211, 90, 58, .14); }
.err { font-size: 12.5px; font-weight: 600; color: #A8391A; }
.err:empty { display: none; }
.consent, .compose .consent { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: start; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.consent input { margin-top: 2px; accent-color: var(--sea); width: 16px; height: 16px; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--coral); outline-offset: 1px; }
.consent .err { grid-column: 2; }
.lnk { color: var(--sea); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.lnk:hover { color: var(--navy); }
.btn .spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn .lbl-busy { display: none; }
.is-sending .btn[type="submit"] .spin, .is-sending .btn[type="submit"] .lbl-busy { display: inline-block; }
.is-sending .btn[type="submit"] .lbl-idle { display: none; }
.is-sending .field, .is-sending .chip, .is-sending .consent { opacity: .55; pointer-events: none; }
.btn:disabled { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.re { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 5px 11px; border-radius: 8px; background: var(--amber-tint); font-size: 13.5px; color: #5A3A00; }
.re span { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .75; }
.compose aside .lnk { color: var(--amber-2); margin-top: auto; font-size: 13.5px; }
.sent .next { list-style: none; margin: 20px auto 0; padding: 0; display: grid; gap: 8px; max-width: 420px; text-align: left; }
.sent .next li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink); }
.sent .next b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-tint); color: var(--sea); font-size: 13px; }

/* prototype-only state switch in a form window's title bar */
.proto { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.proto select { font: inherit; height: 24px; padding: 0 4px; border-radius: 6px; border: 1px dashed rgba(0, 49, 73, .4); background: rgba(255, 255, 255, .6); color: var(--navy); }

/* ───────────── System alert ───────────── */
.modal { position: absolute; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(0, 30, 45, .3); }
.modal[hidden], .ql[hidden] { display: none; }
.alert { width: min(336px, 100%); padding: 20px 18px 16px; border-radius: 18px; text-align: center;
  background: rgba(250, 247, 241, .9); backdrop-filter: blur(34px) saturate(1.6); -webkit-backdrop-filter: blur(34px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 0 0 .5px rgba(0, 32, 47, .4), 0 30px 90px rgba(0, 20, 30, .5); animation: winIn .2s cubic-bezier(.2, .9, .3, 1.1); }
.alert > svg { width: 78px; height: 78px; margin: 0 auto 4px; display: block; filter: var(--obj-shadow); overflow: visible; }
.alert h2 { font-size: 17px; font-weight: 650; line-height: 1.25; color: var(--navy); text-wrap: balance; }
.alert p { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; text-wrap: pretty; overflow-wrap: anywhere; }
.alert-b { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 16px; }
.alert-b .btn { min-height: 36px; padding: 0 8px; font-size: 14px; }

/* ───────────── Quick Look ───────────── */
.ql { position: absolute; inset: 0; z-index: 1050; display: grid; place-items: center; padding: calc(var(--bar-h) + 18px) 24px 24px; background: rgba(0, 24, 36, .52); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ql-box { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #082636; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25), 0 40px 110px rgba(0, 10, 16, .6); animation: winIn .2s cubic-bezier(.2, .9, .3, 1.1); }
.ql-box header { flex: none; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; color: #DCEBEF; font-size: 13.5px; }
.ql-box header b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-box header span { color: #8FB2BE; font-variant-numeric: tabular-nums; }
.ql-box button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #DCEBEF; }
.ql-box button:hover { background: rgba(255, 255, 255, .14); }
.ql-img { min-height: 0; display: grid; place-items: center; background: #041A25; }
.ql-img img { max-width: min(1080px, 100%); max-height: calc(100vh - var(--bar-h) - 120px); object-fit: contain; }
.ql-box .ql-nav { position: absolute; top: 50%; margin-top: -4px; width: 38px; height: 38px; border-radius: 50%; background: rgba(4, 26, 37, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.ql-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ql-prev { left: 10px; } .ql-next { right: 10px; }

/* ───────────── Dark windows: Screening Room and the slate ───────────── */
.win--player, .win--slate { background: rgba(5, 30, 43, .93); }
.win--player .win-bar, .win--slate .win-bar { background: linear-gradient(180deg, rgba(34, 80, 100, .62), rgba(9, 44, 60, .62)); border-bottom-color: rgba(255, 255, 255, .09); }
.win--player .win-title, .win--slate .win-title { color: #fff; }
.win--player .win-title small, .win--slate .win-title small { color: #9FC0CB; }
.win--player .win-nav button, .win--slate .win-nav button { color: #9FC0CB; }
.win--player .win-nav button:hover:not(:disabled), .win--slate .win-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); color: #fff; }
.win--player .win-body, .win--slate .win-body { background: none; color: #DCEBEF; }
.win--player .win-grip::after, .win--slate .win-grip::after { border-color: rgba(255, 255, 255, .3); }
.win--slate .proto { color: #9FC0CB; }
.win--slate .proto select { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; color-scheme: dark; }
.btn-chalk { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn-chalk:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.theater { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.th-main { min-width: 0; overflow-y: auto; padding: 16px 18px 24px; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 18px 44px rgba(0, 0, 0, .5); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; background: #021820 center / cover no-repeat; }
.stage-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(0, 16, 24, .08), rgba(0, 16, 24, .62)); transition: opacity .2s; }
.stage-poster:hover::after { opacity: .75; }
.bigplay { position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--amber-2), var(--amber)); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 3px 0 #A66B14, 0 14px 34px rgba(0, 0, 0, .5); transition: transform .18s cubic-bezier(.2, .9, .3, 1.4); }
.stage-poster:hover .bigplay { transform: scale(1.08); }
.bigplay svg { width: 28px; height: 28px; fill: #2A1B00; margin-left: 4px; }
.stage-tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 7px; background: rgba(2, 24, 32, .72); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pip-ctl { display: none; }
.transport { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.transport button, .transport a { height: 32px; min-width: 32px; padding: 0 7px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #DCEBEF; font-size: 13px; font-weight: 600; text-decoration: none; }
.transport button:hover, .transport a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.transport .ico { width: 17px; height: 17px; }
.transport a .ico { width: 13px; height: 13px; }
.transport .tp-play { background: linear-gradient(180deg, var(--amber-2), var(--amber)); width: 38px; }
.transport .tp-play:hover { background: linear-gradient(180deg, var(--amber-2), var(--amber)); filter: brightness(1.07); }
.tp-play svg { width: 15px; height: 15px; fill: #2A1B00; }
.tp-count { margin: 0 4px 0 8px; font-size: 13px; font-variant-numeric: tabular-nums; color: #9FC0CB; white-space: nowrap; }
.tp-reel { flex: 1; min-width: 20px; height: 4px; margin: 0 8px; border-radius: 2px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.tp-reel i { display: block; height: 100%; border-radius: 2px; background: var(--amber); }
.now { margin-top: 18px; }
.now .eyebrow { color: var(--amber-2); }
.now h1 { font-size: 27px; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: #fff; margin-top: 4px; }
.now .lead { color: #B5CCD5; font-size: 15.5px; }
.queue { overflow-y: auto; padding: 0 8px 12px; border-left: 1px solid rgba(255, 255, 255, .09); background: rgba(0, 0, 0, .2); position: relative; }
.queue h4 { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; margin: 0 -8px 4px; padding: 12px 16px 8px; background: #06202D; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.queue h4 span { font-weight: 500; letter-spacing: 0; text-transform: none; color: #8FB2BE; }
.queue button { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; border-radius: 10px; text-align: left; }
.queue button:hover { background: rgba(255, 255, 255, .07); }
.queue button[aria-current="true"] { background: rgba(255, 255, 255, .13); }
.q-th { aspect-ratio: 16 / 9; border-radius: 6px; background: #021820 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.queue b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: #fff; }
.queue small { font-size: 12px; color: #8FB2BE; font-variant-numeric: tabular-nums; }
.queue button[aria-current="true"] small { color: var(--amber-2); font-weight: 600; }

/* mini player: the window folds down to its stage and floats over the water */
.win--player.is-pip { left: auto !important; top: auto !important; right: 20px; bottom: 104px; width: clamp(230px, calc(var(--sea-w) * .86 - 36px), 320px) !important; height: auto !important; min-width: 0; min-height: 0; border-radius: 14px; cursor: pointer; z-index: 950 !important; }
.is-pip .win-bar, .is-pip .queue, .is-pip .transport, .is-pip .now, .is-pip .win-grip, .is-pip .stage-tag { display: none; }
.is-pip .theater { display: block; }
.is-pip .th-main { padding: 0; overflow: hidden; }
.is-pip .stage { border-radius: 0; box-shadow: none; }
.is-pip .bigplay { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.is-pip .bigplay svg { width: 17px; height: 17px; margin-left: 3px; }
.is-pip .pip-ctl { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 6px 6px 18px 12px; background: linear-gradient(180deg, rgba(0, 16, 24, .8), rgba(0, 16, 24, 0)); color: #fff; pointer-events: none; }
.pip-ctl b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pip-ctl button { pointer-events: auto; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.pip-ctl button:hover { background: rgba(255, 255, 255, .2); }
.pip-ctl .ico { width: 14px; height: 14px; }

/* ───────────── The slate: demo request ───────────── */
.slate { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 22px 24px; }
.clapper { position: relative; height: 70px; }
.clapper .arm { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; border-radius: 6px 6px 0 0; transform-origin: 13px 100%; transform: rotate(-3.6deg);
  background: repeating-linear-gradient(115deg, #FBF8F1 0 30px, #041B26 30px 60px); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55) inset, 0 8px 16px rgba(0, 0, 0, .35); transition: transform .22s cubic-bezier(.6, 2.2, .5, .9); }
.clapper .hinge { position: absolute; left: 5px; bottom: -8px; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FBFCFC, #8B969E); box-shadow: 0 0 0 1px #4A565E; }
.is-sending .clapper .arm, .is-sent .clapper .arm { transform: rotate(0deg); }
.board { display: grid; gap: 13px; padding: 0 18px 18px; border-radius: 0 0 12px 12px; color: #E7F0F3; background: linear-gradient(180deg, #0D3445, #082635); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .13) inset, 0 20px 40px rgba(0, 0, 0, .3); }
.board::before { content: ""; height: 20px; margin: 0 -18px 4px; background: repeating-linear-gradient(65deg, #FBF8F1 0 30px, #041B26 30px 60px); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55) inset; }
.board header { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding-bottom: 12px; border-bottom: 1.5px solid rgba(255, 255, 255, .16); }
.chalk { font-size: 23px; font-weight: 600; line-height: 1.15; color: #fff; letter-spacing: -.005em; }
.board .sub { font-size: 13.5px; line-height: 1.4; color: #A9C6D0; margin-top: 4px; max-width: 44ch; }
.b-date { padding: 6px 10px; border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .2) inset; text-align: center; }
.b-date span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FB2BE; }
.b-date b { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.board .f, .board .f-l { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.board .f-l { display: block; margin-bottom: 0; }
.board p.f-l { margin-bottom: 6px; }
.board .f-l i { letter-spacing: 0; text-transform: none; font-size: 13px; color: #8FB2BE; }
.board .field { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: #fff; color-scheme: dark; letter-spacing: 0; text-transform: none; }
.board .field::placeholder { color: #7FA2AE; }
.board .field:focus { outline-color: var(--amber-2); }
.board .field[aria-invalid="true"] { border-color: #FF9C7F; background: rgba(211, 90, 58, .2); box-shadow: 0 0 0 3px rgba(255, 140, 110, .16); }
.board .err { color: #FFB8A1; letter-spacing: 0; text-transform: none; }
.board .chip { background: rgba(255, 255, 255, .1); color: #fff; }
.board button.chip:hover { background: rgba(255, 255, 255, .18); }
.board .chip[aria-pressed="true"] { background: var(--amber-2); color: #2A1B00; }
.board footer { display: grid; gap: 12px; padding-top: 13px; border-top: 1.5px dashed rgba(255, 255, 255, .18); }
.board .consent { color: #A9C6D0; }
.board .consent input { accent-color: var(--amber); }
.board .lnk { color: var(--amber-2); }
.board .actions { margin-top: 0; align-items: center; }
.board .note { color: #FFB8A1; }
.board.done { padding-bottom: 26px; gap: 8px; }
.board.done .chalk { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-2); margin-top: 10px; }
.board.done h1 { font-size: 30px; font-weight: 600; line-height: 1.1; color: #fff; }
.board.done p:not(.chalk) { font-size: 15px; line-height: 1.5; color: #B5CCD5; max-width: 52ch; }
.board.done .actions { margin-top: 12px; }

/* ───────────── The postcard: newsletter ───────────── */
.pc { flex: 1; min-width: 0; display: grid; place-items: center; padding: 22px; overflow: auto; background: linear-gradient(120deg, rgba(239, 221, 186, .7), rgba(222, 199, 155, .7)); }
.pc-card { width: 100%; max-width: 640px; min-height: 300px; display: grid; grid-template-columns: 1fr 1fr; background: #FFFDF8; border-radius: 5px; transform: rotate(-.7deg); box-shadow: 0 0 0 1px #E2D7C2, 0 1px 0 2px #F3EBDB, 0 16px 34px rgba(60, 40, 10, .26); }
.pc-msg { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px; border-right: 1.5px solid #E2D7C2; }
.pc-t { font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--navy); text-wrap: pretty; }
.pc-s { font-size: 14px; color: var(--muted); }
.pc-sign { margin-top: auto; display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; align-items: center; font-weight: 650; font-size: 14.5px; color: var(--navy); }
.pc-sign img { width: 30px; height: 30px; grid-row: span 2; }
.pc-sign small { font-weight: 450; color: var(--muted); font-size: 13px; }
.pc-addr { position: relative; display: grid; gap: 12px; align-content: end; padding: 104px 22px 20px; }
.pc-stamp { position: absolute; top: 16px; right: 18px; width: 64px; padding: 4px; background: #fff; border: 2.5px dotted #CDBF9F; border-radius: 2px; transform: rotate(3deg); box-shadow: 0 2px 5px rgba(60, 40, 10, .22); }
.pc-stamp > svg:first-child { display: block; width: 100%; }
.pc-mark { position: absolute; top: 14px; right: 40px; width: 132px; color: rgba(0, 49, 73, .62); opacity: 0; transform: rotate(-13deg) scale(1.5); transition: opacity .18s, transform .28s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.pc-mark text { font: 700 8.5px var(--ui); letter-spacing: .08em; fill: currentColor; stroke: none; }
.is-sent .pc-mark { opacity: 1; transform: rotate(-13deg) scale(1); }
.pc-addr .f .field { height: 34px; padding: 0 2px; border: 0; border-bottom: 1.5px solid #CDBF9F; border-radius: 0; background: none; font-size: 16px; }
.pc-addr .f .field:focus { outline: 0; border-bottom-color: var(--sea); box-shadow: 0 1.5px 0 var(--sea); }
.pc-addr .f .field[aria-invalid="true"] { border-bottom-color: var(--coral); box-shadow: 0 1.5px 0 var(--coral); background: none; }
.pc-lang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-addr .actions { margin-top: 2px; }
.pc-done h2 { font-size: 22px; font-weight: 600; color: var(--navy); }
.pc-done p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 6px 0 14px; }

/* ───────────── The case file ───────────── */
.casefile { flex: 1; min-width: 0; overflow-y: auto; }
.cf-cover { position: relative; overflow: hidden; padding: 16px 30px 26px; color: #fff; background: linear-gradient(158deg, #0B7286 0%, #06506A 34%, #003149 68%, #00202F 100%); }
.cf-caustic { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .13; pointer-events: none; }
.cf-cover > :not(.cf-caustic) { position: relative; }
.cf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cf-cover .crumb, .cf-next { color: #A9DDE0; margin: 0; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cf-cover .crumb:hover, .cf-next:hover { color: #fff; }
.cf-next .ico { width: 13px; height: 13px; }
.cf-id { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.cf-id img, .cf-mono { flex: none; width: 60px; height: 60px; border-radius: 15px; background: #fff; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 20px rgba(0, 16, 24, .4); }
.cf-id img { width: auto; height: auto; max-width: 180px; max-height: 60px; object-fit: contain; padding: 6px 9px; }
.cf-mono { display: grid; place-items: center; color: var(--navy); font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.cf-cover .eyebrow { color: var(--amber-2); }
.cf-cover h1 { font-size: 40px; font-weight: 600; line-height: 1.04; letter-spacing: -.018em; margin-top: 3px; }
.cf-line { font-size: 18px; line-height: 1.45; color: #D3E6EC; max-width: 56ch; margin-top: 14px; text-wrap: pretty; }
.cf-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0 18px; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); }
.cf-metrics div { padding-top: 14px; }
.cf-metrics b { display: block; font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--amber-2); }
.cf-metrics span { display: block; font-size: 13.5px; line-height: 1.3; color: #D3E6EC; margin-top: 6px; }
.cf-body { display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 30px; align-items: start; padding: 24px 30px 36px; }
.cf-steps { list-style: none; margin: 0; padding: 0; }
.cf-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding-bottom: 20px; }
.cf-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 1px; background: linear-gradient(180deg, var(--sea-2), rgba(31, 147, 160, .15)); }
.cf-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--sea); background: #fff; box-shadow: 0 0 0 1.5px var(--sea-2); }
.cf-steps li:last-child .n { background: var(--amber); color: #2A1B00; box-shadow: 0 0 0 1.5px #B4761C; }
.cf-steps h3 { font-size: 17.5px; font-weight: 650; color: var(--navy); padding-top: 5px; }
.cf-steps p { font-size: 15.5px; line-height: 1.58; color: var(--ink); margin-top: 4px; max-width: 62ch; text-wrap: pretty; }
.cf-sec { margin-top: 26px; }
.cf-sec > .h2 { margin-bottom: 12px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.flow span { padding: 9px 13px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 0 rgba(0, 49, 73, .08); font-size: 14px; font-weight: 600; color: var(--navy); }
.flow span.is-in { background: var(--sea-tint); }
.flow span.is-out { background: var(--amber-tint); }
.flow i { position: relative; flex: none; width: 24px; height: 2px; margin: 0 3px; background: var(--sea-2); }
.flow i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 2px solid var(--sea-2); border-right: 2px solid var(--sea-2); transform: rotate(45deg); }
.cf-quote { margin: 26px 0 0; padding: 18px 22px; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; background: rgba(251, 235, 203, .55); }
.cf-quote p { font-size: 20px; font-weight: 500; line-height: 1.4; color: var(--navy); text-wrap: pretty; }
.cf-quote footer { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; padding: 4px 2px; }
.prints.n1 { grid-template-columns: minmax(0, 330px); }
.print { padding: 8px 8px 10px; border-radius: 3px; background: #FFFEFB; text-align: left; box-shadow: 0 0 0 1px #E2D9C8, 0 8px 18px rgba(60, 40, 10, .2); transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), box-shadow .2s; }
.print:nth-child(odd) { transform: rotate(-1.3deg); } .print:nth-child(even) { transform: rotate(1.1deg); }
.print:hover, .print:focus-visible { transform: rotate(0) scale(1.035); box-shadow: 0 0 0 1px #E2D9C8, 0 16px 30px rgba(60, 40, 10, .28); }
.print-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #06202D; }
.print-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.print-cap { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.cf-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cf-points .card { padding: 13px 15px; }
.cf-points h4 { font-size: 15px; font-weight: 650; color: var(--navy); }
.cf-points p { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.cf-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin-top: 28px; padding: 18px 20px; border-radius: 14px; color: #D3E6EC; background: linear-gradient(160deg, #06405C, #003149); }
.cf-cta h3 { font-size: 19px; font-weight: 600; color: #fff; }
.cf-cta p { font-size: 14px; margin-top: 2px; max-width: 46ch; }
.cf-info { position: sticky; top: 20px; padding: 16px 16px 18px; border-radius: 12px; background: rgba(233, 226, 212, .55); box-shadow: 0 0 0 1px var(--line-2); }
.cf-info h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 7px; }
.cf-info h4:first-child { margin-top: 0; }
.cf-info dl { margin: 0; display: grid; gap: 9px; }
.cf-info dt { font-size: 12.5px; color: var(--muted); }
.cf-info dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.cf-info .chip { white-space: normal; height: auto; min-height: 26px; padding: 3px 11px; text-align: left; line-height: 1.25; }
.cf-demo { display: grid; gap: 7px; width: 100%; text-align: left; }
.cf-demo .poster { display: block; border-radius: 8px; overflow: hidden; }
.cf-demo b { font-size: 13.5px; font-weight: 650; color: var(--navy); }
.cf-demo:hover b { color: var(--sea); }

/* ───────────── Insights: the journal ───────────── */
.journal { flex: 1; min-width: 0; overflow-y: auto; padding: 26px 34px 40px; }
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding-bottom: 18px; border-bottom: 2px solid var(--navy); }
.masthead h1 { font-size: 58px; font-weight: 600; line-height: .98; letter-spacing: -.03em; color: var(--navy); margin-top: 4px; }
.masthead .lead { font-size: 16px; max-width: 52ch; }
.mast-tools { display: flex; align-items: center; gap: 8px; }
.mast-tools .field { width: 200px; }
.cats { margin: 14px 0 20px; }
.cats .chip i { font-style: normal; font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }
button.card.lead-post { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); width: 100%; overflow: hidden; }
.lead-post img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.lead-post div { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.lead-post h2 { font-size: 29px; font-weight: 600; line-height: 1.1; letter-spacing: -.012em; color: var(--navy); text-wrap: balance; }
.lead-post p { font-size: 15px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lead-post small, .post small { font-size: 13px; color: var(--muted); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 16px; margin-top: 16px; }
button.card.post { display: flex; flex-direction: column; width: 100%; overflow: hidden; }
.post img, .post .noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sea-tint); }
.post div { display: grid; gap: 5px; padding: 12px 14px 14px; }
.post h3 { font-size: 16px; font-weight: 650; line-height: 1.25; color: var(--navy); }
.journal [hidden] { display: none !important; }
.journal .none { padding: 30px 0; text-align: center; font-size: 15px; }

/* ───────────── Insights: the reader ───────────── */
.reading { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.progress { position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sea-2), var(--amber)); transform-origin: left center; transform: scaleX(0); }
.rail { overflow-y: auto; padding: 18px 10px 22px 12px; border-right: 1px solid var(--line); background: rgba(240, 234, 222, .45); }
.rail .crumb { margin: 0 0 4px 8px; }
.rail h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px 8px; }
.toc button, .more button { display: block; width: 100%; padding: 5px 8px; border-radius: 7px; text-align: left; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.toc button:hover, .more button:hover { background: rgba(0, 49, 73, .07); }
.toc.mixed button.h3 { padding-left: 18px; color: var(--muted); }
.toc button[aria-current="true"] { background: var(--navy); color: #fff; }
.more button { font-weight: 550; color: var(--navy); }
.reading .story-in { max-width: 708px; padding: 30px 40px 48px; }
.reading .story h1 { font-size: 38px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); margin-top: 12px; text-wrap: balance; }
.standfirst { font-size: 19px; line-height: 1.5; color: var(--muted); margin-top: 12px; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 18px 0 22px; padding: 8px 0; border-block: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.byline .tools { display: flex; gap: 2px; }
.byline button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.byline button:hover { background: rgba(0, 49, 73, .08); }
.byline button.is-on { background: var(--navy); color: #fff; }
.reading .story img.cover { margin-bottom: 26px; }
.prose { font-size: 17.5px; line-height: 1.68; color: var(--ink); overflow-wrap: break-word; }
.reading[data-size="s"] .prose { font-size: 16px; } .reading[data-size="l"] .prose { font-size: 20px; }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose > p:first-child::first-letter { float: left; font-size: 3.35em; line-height: .84; font-weight: 600; color: var(--sea); padding: .07em .1em 0 0; }
.prose h2 { font-size: 1.42em; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: 1.7em 0 .5em; text-wrap: balance; }
.prose h3 { font-size: 1.2em; font-weight: 650; line-height: 1.25; color: var(--navy); margin: 1.6em 0 .45em; }
.prose h4 { font-size: 1em; font-weight: 700; color: var(--navy); margin: 1.3em 0 .25em; }
.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--amber); font-weight: 700; }
.prose strong { color: var(--navy); font-weight: 650; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--amber); color: var(--navy); }
.prose hr, .wave { border: 0; width: 132px; height: 10px; margin: 2em auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='10'%3E%3Cpath d='M0 5q5.5-6 11 0t11 0 11 0 11 0' fill='none' stroke='%231F93A0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 44px 10px repeat-x; }
.after { margin-top: 28px; }
.after > .h2 { margin-bottom: 10px; }
button.card.pc-teaser { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; width: 100%; margin-top: 26px; padding: 10px 16px 10px 12px; }
.pc-teaser > svg:first-child { width: 62px; height: 62px; filter: drop-shadow(2px 4px 4px rgba(64, 40, 8, .3)); overflow: visible; }
.pc-teaser b { display: block; font-size: 16px; font-weight: 650; color: var(--navy); }
.pc-teaser small { font-size: 13.5px; color: var(--muted); }
.pc-teaser .ico { color: var(--sea); }
.notes .empty { padding: 16px; border-radius: 12px; border: 1.5px dashed rgba(0, 49, 73, .28); font-size: 14.5px; color: var(--muted); }
.notes form { display: grid; gap: 12px; margin-top: 14px; }
.notes .f textarea.field { height: 84px; }
.notes .actions { margin-top: 0; }
.stickies { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 4px 2px; }
.sticky { padding: 12px 14px 14px; border-radius: 2px 2px 14px 2px; background: linear-gradient(170deg, #FDEFC6, #F8DE9C); box-shadow: 0 10px 18px rgba(120, 80, 0, .2), 0 1px 0 rgba(255, 255, 255, .6) inset; transform: rotate(-1.2deg); }
.sticky:nth-child(even) { transform: rotate(1deg); }
.sticky .tag-exp { background: rgba(255, 255, 255, .6); }
.sticky p { font-size: 14.5px; line-height: 1.45; color: #3A2A05; overflow-wrap: anywhere; }
.sticky b { display: block; margin-top: 8px; font-size: 13px; color: #5A3A00; }
.nears { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
button.card.near { width: 100%; padding: 12px 14px; }
.near small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.near b { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 650; line-height: 1.3; color: var(--navy); }
.near:last-child { text-align: right; }
.m-only { display: none; }
.legal .spec { grid-template-columns: 150px 1fr; }
.legal .spec dd { font-weight: 450; }

/* ───────────── Narrow windows ───────────── */
@media (max-width: 1080px) {
  .theater { grid-template-columns: minmax(0, 1fr) 232px; }
  .queue button { grid-template-columns: 70px 1fr; }
  .cf-body { grid-template-columns: minmax(0, 1fr) 200px; gap: 22px; }
  .reading { grid-template-columns: 200px minmax(0, 1fr); }
}

/* ───────────── Phone ───────────── */
@media (max-width: 760px) {
  .proto { display: none; }
  .f2 { grid-template-columns: 1fr; }
  .win--player .lights .l-close, .win--slate .lights .l-close { background: rgba(255, 255, 255, .14); }
  .win--player .lights .l-close svg, .win--slate .lights .l-close svg { stroke: #fff; }
  .m-only { display: inline-flex; }
  .ql { padding: calc(var(--bar-h) + 10px) 8px 12px; }

  .theater { display: block; overflow-y: auto; }
  .th-main { overflow: visible; padding: 0 0 18px; }
  .stage { border-radius: 0; }
  .transport, .now { margin-inline: 14px; }
  .now h1 { font-size: 23px; }
  .queue { overflow: visible; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .09); padding: 0 10px 96px; }
  .queue h4 { position: static; margin: 0 -10px 4px; }
  .queue button { grid-template-columns: 104px 1fr; }

  .slate { padding: 12px 12px 96px; }
  .board { padding: 0 14px 16px; }
  .board::before { margin: 0 -14px 4px; }
  .board header { grid-template-columns: 1fr; }
  .b-date { justify-self: start; display: flex; gap: 8px; align-items: baseline; }
  .chalk { font-size: 21px; }

  .pc { padding: 14px 12px 96px; place-items: start center; }
  .pc-card { grid-template-columns: 1fr; transform: none; }
  .pc-msg { border-right: 0; border-bottom: 1.5px solid #E2D7C2; padding: 20px 18px 16px; }
  .pc-sign { margin-top: 6px; }
  .pc-addr { padding: 96px 18px 18px; }

  .cf-cover { padding: 12px 18px 20px; }
  .cf-id img, .cf-mono { width: 48px; height: 48px; border-radius: 12px; }
  .cf-cover h1 { font-size: 29px; }
  .cf-line { font-size: 16px; }
  .cf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-metrics b { font-size: 34px; }
  .cf-body { grid-template-columns: 1fr; gap: 22px; padding: 20px 18px 96px; }
  .cf-info { position: static; }
  .cf-points { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; gap: 0; }
  .flow i { width: 2px; height: 16px; margin: 3px 0 3px 22px; }
  .flow i::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .cf-cta { padding: 16px; }

  .journal { padding: 18px 16px 96px; }
  .masthead { grid-template-columns: 1fr; gap: 14px; }
  .masthead h1 { font-size: 42px; }
  .mast-tools .field { flex: 1; width: auto; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  button.card.lead-post { grid-template-columns: 1fr; }
  .lead-post img { min-height: 0; aspect-ratio: 16 / 9; }
  .lead-post div { padding: 16px; }
  .lead-post h2 { font-size: 23px; }
  .posts { grid-template-columns: 1fr; gap: 12px; }
  button.card.post { flex-direction: row; }
  .post img, .post .noimg { width: 104px; flex: none; aspect-ratio: 1; }

  .reading { display: block; }
  .rail { display: none; }
  .reading .story { height: 100%; }
  .reading .story-in { padding: 16px 18px 96px; }
  .reading .story h1 { font-size: 28px; }
  .standfirst { font-size: 17px; }
  .prose { font-size: 17px; }
  .byline button span { display: none; }
  .nears { grid-template-columns: 1fr; }
  .near:last-child { text-align: left; }
  .legal .spec { grid-template-columns: 112px 1fr; }
}

/* ───────────── Human check (Turnstile mounts here) ───────────── */
.human { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 0; width: fit-content; max-width: 100%; }
.human .turnstile { min-height: 65px; max-width: 100%; display: flex; align-items: center; }
.human .turnstile > div { max-width: 100%; }
.human .err { flex-basis: 100%; }
.board .human .err { color: #FFB59C; }
.is-sending .human { opacity: .55; pointer-events: none; }

/* the slate keeps its action bar in view while the board itself scrolls */
.win--slate footer { position: sticky; bottom: 0; z-index: 3; margin: 0 -4px -6px; padding: 10px 4px 6px;
  background: linear-gradient(180deg, rgba(8, 38, 53, 0), rgba(8, 38, 53, .92) 26%, #082635);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.win--slate .board { gap: 12px; }
.win--slate .board .field[rows], .win--slate .board textarea.field { height: 88px; }

/* the slate reads as two columns: scene info on the left, the take on the right */
.board .b-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.board .b-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.board .b-col .f textarea.field { height: 156px; }
@media (max-width: 760px) {
  .board .b-cols { grid-template-columns: 1fr; gap: 12px; }
  .board .b-col .f textarea.field { height: 104px; }
}

/* on phones the dock floats over the bottom of the window, so the slate footer scrolls with the form */
@media (max-width: 760px) {
  .win--slate footer { position: static; margin: 4px 0 0; padding: 10px 0 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .win--slate .slate { padding-bottom: 96px; }
}

/* a window this tall is capped by the desktop, so the contact form tightens rather than scrolls */
.compose form { gap: 11px; }
.compose textarea.field { height: 92px; }

/* one control column: the consent tick and the human check share an indent, a box size and a gap */
:root { --check: 20px; --check-indent: 10px; --check-gap: 10px; }
.consent, .compose .consent { padding-left: var(--check-indent); column-gap: var(--check-gap); align-items: center; }
.consent input, .compose .consent input { width: var(--check); height: var(--check); margin: 0; }

/* ───────────── Shell window ───────────── */
.term-app { flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr auto; background: #04202E; }
.t-screen { overflow-y: auto; padding: 15px 17px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; color: #DCEBEF; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-cmd { color: var(--amber-2, #FFD27A); margin-top: 2px; }
.t-cmd span { color: #55C4BD; }
.t-out { margin: 4px 0 12px; }
.t-line { display: flex; align-items: center; gap: 8px; padding: 10px 17px 12px; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(2, 24, 34, .5); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.t-prompt { color: #55C4BD; }
.t-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #DCEBEF; font: inherit; caret-color: var(--amber, #F0B44E); }
.t-go { border: 0; background: none; color: #8FB2BE; font: inherit; cursor: pointer; padding: 0 2px; }
.t-go:hover { color: var(--amber-2, #FFD27A); }

.form-static { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(221, 153, 51, .12); color: var(--navy); font-size: 12.5px; line-height: 1.4; font-weight: 500; }

