/* What a real page needs that the draft's prototype frame does not. The
   draft's stylesheet (desk.css) is used whole; nothing here restyles a
   screen. The draft draws one 1280 by 820 frame inside a page; here the
   same frame is the page. */
body.desk-live { padding: 0; margin: 0; background: var(--bc, var(--out)); height: 100vh; overflow: hidden; }
body.desk-live .app { width: 100%; height: 100vh; }
body.desk-live .scr { height: calc(100vh - 16px); }
body.desk-live .app a { cursor: pointer; }
body.desk-live .app button { cursor: pointer; }
body.desk-live .app button:disabled { cursor: default; opacity: .5; }

/* Before the account has loaded, and when it cannot be. */
.live-skel { height: 100vh; display: grid; place-items: center; }
.live-boot { color: var(--mu); font: 400 12px/1 var(--mono); }
.live-gate { height: 100vh; display: grid; place-items: center; padding: 24px; }
.live-gate-card { max-width: 420px; display: grid; gap: 12px; padding: 24px; background: var(--b1); border: 1px solid var(--ln); border-radius: 12px; }
.live-gate-card h1 { margin: 0; font-size: 20px; font-weight: 500; }
.live-gate-card p { margin: 0; color: var(--di); }
.live-btn { justify-self: start; border-radius: 8px; padding: 8px 16px; font-weight: 500; font-size: 13px; background: var(--tx); color: var(--b0); text-decoration: none; }
.live-alt { font-size: 12px; color: var(--mu); } .live-alt a { color: var(--di); }

/* The draft's panels are fixed in height and clip; real lists scroll. */
.dk .th { overflow-y: auto; padding-bottom: 12px; }
.ls #rows, .tk #trows, .dt, .rl .body, .dgs .t { overflow-y: auto; }
.ls #rows, .tk #trows { flex: 1; min-height: 0; }
.rl .body { overflow-y: auto; }

.sb .ws svg.mk { margin-left: 0; } .sb .ws span { margin-left: auto; }
/* Things the draft shows as plain text that here can be pressed or typed in. */
.sb .find, .sb .cred u, .seg span, .cp .q span { cursor: pointer; }
.sb .find { width: 100%; font: inherit; text-align: left; }
.cp form { display: flex; align-items: center; gap: 8px; }
.cp input { flex: 1; min-width: 0; border: 0; background: none; color: var(--tx); font: inherit; outline: none; padding: 4px 0; }
.cp input::placeholder { color: var(--mu); }
.cp button.go { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--tx); color: var(--b0); display: grid; place-items: center; }
.th .dg.err p { color: var(--am); }
.r.unread .ring .tr { stroke: var(--ln2); }
.r .n.none { color: var(--mu); }
.pk .why .wait { color: var(--mu); }
.let .bd[contenteditable]:focus { outline: 1px solid var(--ln2); outline-offset: -1px; }
.let .m input { border: 0; background: none; color: var(--di); font: inherit; font-size: 12px; outline: none; padding: 0; width: 100%; }
.let .m input::placeholder { color: var(--mu); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 10px 14px; border-radius: 10px; background: var(--b3); border: 1px solid var(--ln2); color: var(--tx); font-size: 13px; box-shadow: 0 8px 24px var(--sh); }
.toast button { border: 0; background: none; color: var(--tx); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 24px 28px; color: var(--mu); font-size: 13px; }
.empty a { color: var(--di); }
.q6 .more { grid-template-columns: 1fr; color: var(--mu); font-size: 12px; }
.rl .about { font-size: 13px; color: var(--di); line-height: 1.6; white-space: pre-line; }
.rl .about h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--tx); }
.dgs .acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 16px 0 48px; }
.sb .me a.out { height: auto; padding: 0; font-size: 12px; color: var(--mu); font-weight: 400; }

/* Narrow screens: one column at a time, the list under Digby's pick. */
@media (max-width: 1099px) {
  body.desk-live { overflow: auto; height: auto; }
  body.desk-live .app { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  body.desk-live .scr { height: auto; margin: 8px; }
  .sb { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px; }
  .sb .sec, .sb .sp, .sb .cred, .sb .find, .sb a.sbt, .sb .me div { display: none; }
  .sb .me { border: 0; margin-left: auto; padding: 0 8px; }
  .dk, .rl, .tk { grid-template-columns: 1fr; height: auto; }
  .ls, .dt, .dgs { border-left: 0; border-top: 1px solid var(--ln); }
  .hero { height: 132px; }
  .th { padding: 16px 16px 0; overflow: visible; }
  .pk, .th .work { margin-left: 0; }
  .cp { margin: 12px 16px 16px; }
  .rl .cols { grid-template-columns: 1fr; }
  .rl .body { padding: 16px; overflow: visible; }
  .tr { grid-template-columns: 16px 1fr 28px; padding: 0 16px; height: auto; min-height: 56px; }
  .tr .nx { grid-column: 2; padding-bottom: 8px; }
  .tk .grp, .tk .sum { padding-left: 16px; padding-right: 16px; }
  .pk .f { flex-wrap: wrap; }
}

a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.dgs .acts a.btn, .ans a.btn { font-size: 13px; }
.bar a:not(.btn) { color: inherit; text-decoration: none; } .bar a:not(.btn):hover { color: var(--tx); }
.bar { min-width: 0; } .bar .btn, .bar .seg, .bar .docsw { flex: none; } .bar > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.toast { bottom: 72px; }
.rl .facts a, .empty a, .pk .why a { color: var(--di); }

/* The draft slides a screen in when its tab is pressed. Here the page is
   redrawn whenever Digby finishes a reading, so that slide replayed every
   time and the whole screen jittered (owner, 2026-11-19). It plays only
   when the screen actually changes. */
.scr > div { animation: none !important; }
@media (prefers-reduced-motion: no-preference) { .scr.enter > div { animation: in .3s var(--ease) !important; } }

/* A CV written by the CV Builder, on the draft's page: its own class names, in the page's type. */
.cw .desk { overflow-y: auto; } .cw .pg { min-height: 100%; height: max-content; padding-bottom: 48px; } .cs { overflow-y: auto; }
.pg .cvdoc .cv-name { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pg .cvdoc .cv-name-empty, .pg .cvdoc .cv-add, .pg .cvdoc .cv-adds, .pg .cvdoc .cv-headline-ai, .pg .cvdoc .pg-break, .pg .cvdoc .pg-sheets, .pg .cvdoc svg { display: none; }
.pg .cvdoc .cv-role { margin: 2px 0 0; font-weight: 600; }
.pg .cvdoc .cv-contact { color: #66635b; margin: 2px 0 12px; } .pg .cvdoc .cv-contact .cv-cval + .cv-cval::before { content: " · "; } .pg .cvdoc .cv-contact a { color: inherit; text-decoration: none; }
.pg .cvdoc .cv-divider { border-top: 1px solid #dcd9d0; margin: 8px 0; }
.pg .cvdoc .cv-sec-h { margin: 16px 0 8px; font-size: 12px; font-weight: 600; color: #66635b; border-bottom: 1px solid #dcd9d0; padding-bottom: 4px; text-transform: none; }
.pg .cvdoc .exp-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin: 8px 0 4px; } .pg .cvdoc .exp-meta { font-weight: 400; color: #66635b; flex: none; }
.pg .cvdoc ul { margin: 0 0 12px; padding-left: 16px; display: grid; gap: 4px; }
.pg .cvdoc .cv-sk-lbl { font-weight: 600; }
.pg .cvdoc[contenteditable]:focus, .pg.letter[contenteditable]:focus { outline: none; }
.pg .cvdoc mark { box-shadow: 0 0 0 1px #b5dcbf; background: #d8efdd; }
.cs .ch p, .cs .gd span { overflow-wrap: anywhere; }
.cs a { color: var(--di); }
.bar .docsw { margin-left: 8px; }

/* Interview practice: lists scroll, and the answer box is a real field. */
.ix .body, .sl, .fd2 { overflow-y: auto; }
.ix .start { position: sticky; bottom: 0; background: var(--b0); }
.ix .live textarea.tx { min-height: 160px; }
.ix .ar { width: 100%; background: none; text-align: left; color: inherit; font: inherit; }
.ix a { color: var(--di); }

/* Applying: the form and Digby's column scroll, and his buttons sit in a row. */
.apx .desk { overflow-y: auto; } .win { height: auto; min-height: 100%; } .win .fm { overflow: visible; }
.aps .t { overflow-y: auto; } .aps .qq { justify-items: start; } .aps .qq .btn { cursor: pointer; }
.aps .go { padding: 16px; border-top: 1px solid var(--ln); display: grid; gap: 8px; } .aps .go .btn { width: 100%; justify-content: center; } .aps .go small { font-size: 12px; color: var(--mu); }
.fd[data-act]:hover .v { border-color: #8f8b7f; }

/* The conversation with Digby: your lines to the right, his beside his mark, as the draft has them. */
.th .you, .dgs .t .you { align-self: flex-end; max-width: 80%; }
.th .dg a, .dgs .dg a { color: var(--tx); }
.dgs .t { display: flex; flex-direction: column; gap: 12px; }

/* The board, the calendar and the microphone. */
.trk { overflow: hidden; } .board { overflow-y: auto; } .col { align-self: start; min-height: 120px; } .tc { cursor: grab; }
.cp form .mic { background: none; color: var(--mu); } .cp form .mic:hover { color: var(--tx); background: var(--b2); }
.ix .ctl .mic { background: var(--b2); color: var(--tx); border: 1px solid var(--ln2) !important; width: 36px !important; height: 36px !important; }
.sx .pane { overflow-y: auto; }

/* ---------- on a phone (step: polish, 2026-11-19) ----------
   As the draft's phone frames: a bar at the top with where you are, the
   screen in one column, the main action within the thumb's reach, and four
   tabs at the foot. */
.ptop, .ptabs { display: none; }
@media (max-width: 760px) {
  body.desk-live { background: var(--b0); }
  body.desk-live .app { display: flex; flex-direction: column; min-height: 100vh; background: var(--b0); }
  body.desk-live .sb { display: none; }
  .ptop { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; flex: none; position: sticky; top: 0; z-index: 20; background: var(--b0); border-bottom: 1px solid var(--ln); font-weight: 500; font-size: 15px; }
  .ptop .sp { flex: 1; } .ptop b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .ptop .pback { width: 32px; height: 32px; margin-left: -8px; display: grid; place-items: center; font-size: 22px; color: var(--di); text-decoration: none; }
  .ptop .av { margin: 0; width: 28px; height: 28px; text-decoration: none; color: var(--tx); }
  .ptop .mode { margin: 0; flex: none; }
  .ptabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--b0); border-top: 1px solid var(--ln); }
  .ptabs a { display: grid; place-items: center; align-content: center; gap: 2px; font-size: 12px; color: var(--mu); text-decoration: none; min-height: 44px; }
  .ptabs a.on { color: var(--tx); font-weight: 500; }
  .ptabs a i { font: 400 10px/1 var(--mono); font-style: normal; color: var(--mu); }
  body.desk-live .scr { margin: 0; border: 0; border-radius: 0; box-shadow: none; height: auto; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .toast { left: 16px; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); max-width: none; }

  /* Every screen is one column, and its own bar is under the phone's. */
  .dk, .rl, .tk, .cw, .ix, .apx, .sx { display: block; height: auto; }
  .ls, .dt, .dgs, .cs, .sl, .fd2, .aps { border-left: 0; border-top: 1px solid var(--ln); }
  .bar { height: auto; min-height: 48px; padding: 8px 16px; flex-wrap: wrap; row-gap: 8px; }
  .bar > a:first-child, .bar > a:first-child + span, .bar .pos, .kc { display: none; }
  .tk .sum, .ix .pad, .ix .fbh { padding: 20px 16px 16px; }
  .tk .grp, .ix .grp, .ls .grp, .ix .optr, .ix .qr, .ix .start, .ix .ar { padding-left: 16px; padding-right: 16px; }
  .hero { height: 124px; } .hero .hi { left: 16px; bottom: 16px; right: 16px; max-width: none; } .hero h2, .tk .sum h2, .ix h2, .rl .head h2 { font-size: 20px; }
  .th { padding: 16px 16px 0; overflow: visible; gap: 12px; } .th .you { max-width: 92%; }
  .pk, .th .work { margin-left: 0; } .pk .h { padding: 12px; } .pk .why, .pk .f { padding: 12px; }
  .pk .f { flex-wrap: wrap; } .pk .f .btn.w { flex: 1 1 100%; justify-content: center; min-height: 44px; } .pk .f .btn.d { flex: 1; justify-content: center; min-height: 44px; } .pk .f small { flex: 1 1 100%; text-align: right; }
  .cp { margin: 12px 16px 16px; } .cp input { min-height: 36px; font-size: 16px; }
  .r { height: auto; min-height: 56px; padding: 8px 16px; } .ls .hd { padding: 12px 16px; flex-wrap: wrap; row-gap: 8px; }
  .tr { grid-template-columns: 16px 1fr 32px; height: auto; min-height: 60px; padding: 8px 16px; row-gap: 0; } .tr .nx { grid-column: 2 / -1; grid-row: 2; padding-bottom: 4px; } .tr .n { grid-row: 1; grid-column: 3; }
  .rl .body { padding: 16px; overflow: visible; gap: 16px; } .rl .head { grid-template-columns: auto 1fr; } .rl .head > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; } .rl .head > div:last-child:empty { display: none; } .rl .cols { grid-template-columns: 1fr; }
  .dial.l, .dial.l svg { width: 64px; height: 64px; } .dial.l strong { font-size: 18px; } .dialc { margin: 0; }
  /* The main action of a role stays within reach, above the tabs. */
  .rl .bar .btn.w, .ix .start, .aps .go { position: fixed; left: 16px; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 15; }
  .rl .bar .btn.w { justify-content: center; min-height: 48px; box-shadow: 0 8px 24px var(--sh); }
  .ix .start { background: none; border: 0; padding: 0; display: grid; gap: 6px; } .ix .start .btn { min-height: 48px; justify-content: center; box-shadow: 0 8px 24px var(--sh); } .ix .start small { display: none; }
  .aps .go { padding: 0; border: 0; } .aps .go .btn { min-height: 48px; box-shadow: 0 8px 24px var(--sh); } .aps .go small { display: none; }
  .rl .main, .ix .main, .apx .main { padding-bottom: 64px; }
  .cw .desk, .apx .desk { padding: 16px 12px 0; overflow: visible; } .pg { width: 100%; padding: 28px 20px 32px; border-radius: 4px; } .pg.letter { padding: 32px 24px; } .pg mark::before, .pg del.lead::before { display: none; }
  .win .fm { padding: 20px 16px; } .fg { grid-template-columns: 1fr; }
  .ix .body { overflow: visible; } .ix .optr { height: auto; min-height: 48px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; } .ix .optr b { width: 100%; } .ix .optr input { max-width: none !important; font-size: 16px; }
  .ix .docsw { flex-wrap: wrap; } .ix .stats { grid-template-columns: 1fr 1fr; } .ix .stats div { padding: 12px 16px; border-top: 1px solid var(--ln); }
  .ix .live { padding: 24px 16px; gap: 16px; } .ix .live h3 { font-size: 20px; } .ix .ctl { flex-wrap: wrap; padding: 0 16px 16px; } .ix .ctl .btn.w { flex: 1 1 100%; justify-content: center; min-height: 48px; order: -1; }
  .ix .ar { grid-template-columns: 20px 1fr 28px; height: auto; min-height: 60px; } .ix .ar .star { display: none; }
  .board { grid-template-columns: 1fr; } .trk { height: auto; padding: 16px; overflow: visible; }
  .sx .steps { border-right: 0; border-bottom: 1px solid var(--ln); padding: 16px; } .sx .pane { padding: 24px 16px; }
  textarea, select, input { font-size: 16px !important; }
  /* A slide-in moves the screen, and a moved screen carries its fixed
     buttons away with it: no slide on a phone, and nothing clipped. */
  .scr.enter > div { animation: none !important; }
  body.desk-live .scr { overflow: visible; }
  /* A role on a phone, as the draft has it: the evidence, line by line. The rest is one press away. */
  .rl:not(.more) .cols > .card + .card, .rl:not(.more) .about, .rl:not(.more) .body > .facts { display: none; }
  .rl .pmore { display: block !important; }
  /* A screen's own bar repeats the phone's when it holds only a title. */
  .bar:not(:has(.btn, .seg, .docsw)) { display: none; }
  .rl .bar > b, .rl .bar > .sp { display: none; } .rl .bar:not(:has(.btn.d)) { min-height: 0; padding: 0; border: 0; }
  .pf > div { grid-template-columns: 64px minmax(0, 1fr) auto !important; } .pf em { overflow: hidden; text-overflow: ellipsis; }
}

/* Answering out loud: the waveform and what was written down. */
.ix .live canvas#iv-cv { display: block; }
.ix .live .tx#iv-said { min-height: 96px; }
.ix .ctl [data-act="iv-rec"][aria-pressed="true"] { background: var(--g); color: var(--b0); border-color: var(--g); }
@media (max-width: 760px) { .ix .ctl .btn.w { position: static; } .ix .live canvas#iv-cv { height: 56px; } }

.rl .pmore { display: none; align-self: start; }
.q6 q i { margin-left: 8px; font: 400 11px/1.6 var(--mono); font-style: normal; color: var(--mu); }

/* Search or ask sits over the whole page; a changed line's own wording is struck through beside it. */
.pal { z-index: 60; } .cs .ch p s { color: var(--mu); }

/* The voice screen and the first visit. */
.vx .cap { overflow: hidden; } .vl #vo-lg { overflow-y: auto; flex: 1; min-height: 0; } .vx .talk:disabled { opacity: .4; }
.sx .drop { cursor: pointer; } .sx .pane .bq form input::placeholder { color: var(--mu); }
@media (max-width: 760px) { .vx { display: block; } .vx .call { padding: 24px 16px; min-height: 52vh; } .vx .cap p { font-size: 17px; } }

/* Who a follow-up goes to, and the closing date. */
.ctw { margin: 12px 16px 0; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--mu); border: 1px solid var(--ln); border-radius: 10px; }
.ctw p { margin: 0; flex: 1; min-width: 160px; } .ctw p b { color: var(--tx); font-weight: 500; } .ctw small { flex: 1; min-width: 160px; font-size: 12px; }
.let .f { flex-wrap: wrap; } .let .f small { white-space: nowrap; }

/* Top up, beside a note that the credits ran short. */
.btn.topup { margin-left: 6px; vertical-align: baseline; } .toast .btn.topup { height: 28px; }
/* The side panel on Tracked jobs scrolls; nothing in it is squeezed out of view. */
.dt { overflow-y: auto; min-height: 0; } .dt > * { flex-shrink: 0; } .dt > :last-child { margin-bottom: 16px; }
/* A short window: each screen keeps to the frame's height and its columns
   scroll, so nothing (the box you type in, a Begin or Save button) is left
   below the edge where it cannot be reached. */
body.desk-live .scr > * { min-height: 0; grid-template-rows: minmax(0, 1fr); }
body.desk-live .scr > * > * { min-height: 0; }
.dk .th > *, .rl .body > *, .dgs .t > * { flex-shrink: 0; }
/* Between a phone and a laptop the menu is a bar across the top: it keeps its
   own height, and the screen takes the rest, however short the screen is. */
@media (min-width: 761px) and (max-width: 1099px) { body.desk-live .app { grid-template-rows: auto 1fr; } .sb { align-self: start; } }

/* A visible ring on whatever the keyboard is on. */
.app [role="button"]:focus-visible, .app .btn:focus-visible, .app a:focus-visible, .app button:focus-visible, .app input:focus-visible, .app select:focus-visible, .app textarea:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.cp .in input:focus-visible, .let .m input:focus-visible { outline: none; }

/* The Desk's list ends with the way to everything else on the board. */
.ls .allb { flex: none; padding: 12px 16px; border-top: 1px solid var(--ln); font-size: 12px; color: var(--di); text-decoration: none; } .ls .allb:hover { color: var(--tx); }
@media (max-width: 760px) { #s-progress .optr small { display: none; } #s-progress .optr b { width: 76px !important; } }
