/* Straight from docs/mockups/web.html.
 *
 * Light is the default and dark follows the system, with a cookie able to
 * override either way - somebody on a dark phone who chose light must get
 * light. Every colour is a token so the three cases are three blocks and
 * nothing else in the file knows.
 */
:root{
  --ink:#F7F3EC; --slab:#FFFDF9; --edge:#E2D9CB; --page:#FFFCF6;
  --text:#241F1A; --dim:#6B6155; --dimmer:#968B7C;
  --gold:#9A6512; --gold-soft:#7C5210; --ink-on-gold:#FFFDF6; --gold-dim:#FBF2DF;
  --sage:#3F7256; --rust:#A63B2A;
  --s1:#1F6FB8; --s2:#2B3BA8; --s3:#6B3FB0; --s4:#5A1BA6; --s5:#B8407C; --s6:#8C1F5C;
  --shadow:0 18px 44px -28px rgba(60,44,24,.45);
  --hover:#F2ECE1; --chrome:#F0E9DE;
  --book:"Iowan Old Style",Palatino,"Palatino Linotype","Book Antiqua",Georgia,serif;
  --ui:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --ink:#14110F; --slab:#1E1A17; --edge:#332C25; --page:#241F1A;
  --text:#F4EFE7; --dim:#A79A8A; --dimmer:#6F6355;
  --gold:#E5A83C; --gold-soft:#FFCB72; --ink-on-gold:#20170A; --gold-dim:#2A2114;
  --sage:#7FB894; --rust:#D2604F;
  --s1:#6FB8FF; --s2:#3448C8; --s3:#C9AEFC; --s4:#7328D4; --s5:#FF9ECD; --s6:#B32B78;
  --shadow:0 24px 60px -30px #000; --hover:#2B251E; --chrome:#191512;
}}
:root[data-theme="dark"]{
  --ink:#14110F; --slab:#1E1A17; --edge:#332C25; --page:#241F1A;
  --text:#F4EFE7; --dim:#A79A8A; --dimmer:#6F6355;
  --gold:#E5A83C; --gold-soft:#FFCB72; --ink-on-gold:#20170A; --gold-dim:#2A2114;
  --sage:#7FB894; --rust:#D2604F;
  --s1:#6FB8FF; --s2:#3448C8; --s3:#C9AEFC; --s4:#7328D4; --s5:#FF9ECD; --s6:#B32B78;
  --shadow:0 24px 60px -30px #000; --hover:#2B251E; --chrome:#191512;
}

/* Two more tokens the mockup has and this file did not: the popover
   surface. A menu floating over a transcript needs to be distinct from the
   page beneath it, and reusing --page made it invisible. */
:root{--pop:#FFFDF9; --pop-edge:#DCD2C2}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --pop:#2E2720; --pop-edge:#453B31}}
:root[data-theme="dark"]{--pop:#2E2720; --pop-edge:#453B31}
:root[data-theme="light"]{--pop:#FFFDF9; --pop-edge:#DCD2C2}

/* An icon takes its size from the text beside it and its colour from the
   element it sits in. fill/stroke are set here as well as on every symbol:
   those two DO inherit across the shadow boundary from the referencing
   element, so they are the backstop if a symbol ever loses its own. */
.ico{width:1em;height:1em;flex:none;vertical-align:-0.135em;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;
  stroke-linejoin:round}
.btn .ico{margin-right:6px;width:1.05em;height:1.05em}
.btn.iconly .ico{margin-right:0}
.nav a .ico{opacity:.75}
.nav a.on .ico{opacity:1}

*{box-sizing:border-box}
body{margin:0;background:var(--ink);color:var(--text);font-family:var(--ui);
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--gold)}
.wrap{max-width:840px;margin:0 auto;padding:0 20px 80px}
.wide{max-width:1080px}

/* The shell: a sidebar of campaigns, and this campaign's own pages.
 *
 * Two campaigns in the mockup deliberately - a person belongs to several,
 * and a nav that assumes one is a nav that has to be rebuilt the first time
 * somebody joins a second table. It collapses to a strip above the content
 * on a phone rather than becoming a drawer: a drawer hides the one piece of
 * navigation there is, to save space on the axis that is not short. */
.shell{display:grid;grid-template-columns:210px minmax(0,1fr);
  min-height:100vh;align-items:stretch}
.side{border-right:1px solid var(--edge);padding:18px 14px;
  background:var(--chrome);min-height:100vh;position:sticky;top:0;
  display:flex;flex-direction:column}
.side .nav{flex:1}
.side .brand{margin:0 0 22px;padding:0 4px;display:flex;
  align-items:center;gap:.62em;text-decoration:none;font-size:16px}

/* The mark: an illuminated initial, which is the device a chronicle opens
   with. A gold panel, a hairline inset rule, the letter in the book face,
   and along its foot the same row of bars the app already draws for a
   waveform, a speaker timeline and a session chart. The identity and the
   data are one device.
   Sized in `em` throughout, so one definition serves the sidebar, the
   mobile bar and anywhere else it is ever needed. */
.mark{display:inline-grid;place-items:center;position:relative;flex:none;
  width:2.55em;height:2.55em;border-radius:.5em;background:var(--gold);
  color:var(--ink-on-gold)}
.mark::before{content:"";position:absolute;inset:.19em;border-radius:.32em;
  border:.055em solid var(--ink-on-gold);opacity:.42}
.mark b{font-family:var(--book);font-weight:600;font-size:1.62em;line-height:1;
  margin-top:-.12em;letter-spacing:-.02em}
.mark s{position:absolute;left:.5em;right:.5em;bottom:.42em;height:.3em;
  display:flex;align-items:flex-end;gap:.07em;text-decoration:none}
.mark s i{flex:1;background:var(--ink-on-gold);border-radius:.03em;opacity:.85}
.mark s i:nth-child(1){height:38%} .mark s i:nth-child(2){height:100%}
.mark s i:nth-child(3){height:62%} .mark s i:nth-child(4){height:82%}
.mark s i:nth-child(5){height:30%}

/* Bard in ink, Scribe in gold: the performance is the subject, the
   writing-down is what this does. */
.word{font-family:var(--book);font-weight:600;font-size:1.08em;
  letter-spacing:-.015em;color:var(--text);white-space:nowrap}
.word em{font-style:normal;font-weight:400;color:var(--gold)}
.nav a{display:flex;align-items:center;gap:9px;padding:8px 10px;
  border-radius:7px;color:var(--dim);text-decoration:none;font-size:14px;
  margin-bottom:2px}
.nav a .sw{width:9px;height:9px;border-radius:3px;flex:none}
.nav a .pill{margin-left:auto}
.nav a:hover{color:var(--text);background:var(--hover)}
.nav a.on{background:var(--page);color:var(--text)}
.nav .grp{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dimmer);padding:16px 10px 7px}
/* A count beside a nav item, for corrections waiting. */
.nav .pill{background:var(--gold);color:var(--ink-on-gold);
  border-radius:99px;font-size:11px;font-weight:700;padding:1px 7px}
/* Full width. A dashboard capped at 1080px wastes exactly the space that
   makes it one - the reader is the only page with a measure to keep, because
   a four-hour transcript is read rather than scanned. */
.body{padding:24px 28px 80px;max-width:1560px}
.body.read{max-width:880px}

@media (max-width:820px){
  /* minmax(0,1fr), not 1fr. A grid track defaults to min-content, so the
     horizontally-scrolling nav inside it makes the COLUMN as wide as the
     nav rather than scrolling within it - and the whole page then scrolls
     sideways, which is the one thing a phone layout must never do. */
  .shell{grid-template-columns:minmax(0,1fr)}
  .side{min-height:0;position:static;border-right:0;
    border-bottom:1px solid var(--edge);padding:12px 14px}
  .side .brand{margin-bottom:12px}
  /* Horizontal on a phone, for the same reason the recorder's folders are:
     a vertical list pushes the thing you came to read below the fold. */
  .nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
  .nav a{white-space:nowrap;margin-bottom:0;background:var(--page);
    border:1px solid var(--edge)}
  .nav .grp{display:none}
  .body{padding:18px 15px 60px}
}

/* the header of a page inside the shell */
.h{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  margin-bottom:20px;flex-wrap:wrap}
.h h1{margin-bottom:3px}
.session .h{margin-bottom:14px}

/* top bar */
.top{display:flex;align-items:center;gap:14px;padding:16px 20px;
  border-bottom:1px solid var(--edge);background:var(--chrome);margin-bottom:28px}
.top .brand{display:flex;align-items:center;gap:.6em;font-size:15px;
  text-decoration:none}
.top .grow{flex:1}
.top a{color:var(--dim);text-decoration:none;font-size:14px}
.top a:hover{color:var(--text)}
.crumb{color:var(--dimmer);font-size:14px}
.crumb a{color:var(--dim)}

h1{font-family:var(--book);font-size:1.9rem;margin:0 0 4px;font-weight:600;
  text-wrap:balance}
h2{font-family:var(--book);font-size:1.4rem;margin:0 0 4px;font-weight:600}
.sub{color:var(--dimmer);font-size:13.5px;margin-bottom:22px}
.lab{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dimmer);margin:26px 0 10px}

.card{background:var(--page);border:1px solid var(--edge);border-radius:10px;
  padding:15px 17px;margin-bottom:9px;text-decoration:none;color:inherit;
  display:block}
a.card:hover{background:var(--hover)}
.row{display:flex;align-items:center;gap:13px}
.grow{flex:1;min-width:0}
.meta{color:var(--dimmer);font-size:12.5px}
.pip{width:30px;height:30px;border-radius:99px;display:grid;place-items:center;
  font-size:12px;font-weight:700;color:var(--ink-on-gold);flex:none}

.btn{display:inline-block;background:var(--gold);color:var(--ink-on-gold);
  border:0;border-radius:8px;padding:10px 17px;font-size:14px;font-weight:600;
  font-family:var(--ui);cursor:pointer;text-decoration:none;white-space:nowrap}
.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--edge);
  font-weight:500}
.btn.sm{padding:6px 12px;font-size:13px}
.btn:disabled{opacity:.5;cursor:default}

/* Every field, by EXCLUSION rather than by listing types.
 *
 * It listed them - text, email, password, url - and an <input> with no type
 * at all is a text input that matches none of those, so the one on the names
 * page rendered as a bare browser control next to properly styled siblings.
 * Listing what to style means the next field somebody adds is unstyled until
 * a person notices; excluding the handful that are deliberately different
 * means it is styled by default.
 *
 * The exceptions are all controls that draw themselves: the colour swatches
 * (radio, appearance:none), the scrubber (range) and checkboxes. */
input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=hidden]),
select, textarea{
  width:100%;background:var(--page);border:1px solid var(--edge);
  border-radius:9px;padding:13px 15px;font:inherit;color:var(--text);
  margin-bottom:9px}
textarea{line-height:1.55;resize:vertical}
select{
  /* The native arrow is drawn by the OS and ignores everything here, so the
     control is redrawn and the arrow painted as a background image. */
  appearance:none;-webkit-appearance:none;padding-right:36px;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),
                   linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 19px) calc(50% + 1px),
                      calc(100% - 14px) calc(50% + 1px);
  background-size:5px 5px,5px 5px;background-repeat:no-repeat}
input:focus-visible,select:focus-visible,textarea:focus-visible,
.btn:focus-visible,a:focus-visible{outline:2px solid var(--gold);
  outline-offset:2px}
label{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--dimmer);margin-bottom:5px}
form{margin:0}

.tag{display:inline-block;border:1px solid var(--edge);border-radius:99px;
  padding:3px 11px;font-size:12.5px;color:var(--dim);margin:0 5px 5px 0}
.tag.warn,.tag.bad{border-color:var(--gold);color:var(--gold)}
.tag.good,.tag.ok{border-color:var(--sage);color:var(--sage)}
/* Recording is the one state that is happening RIGHT NOW, and it reads as
   live rather than as a warning. */
.tag.live{border-color:var(--rust);color:var(--rust)}
.tag.live::before{content:"";display:inline-block;width:6px;height:6px;
  border-radius:99px;background:var(--rust);margin-right:6px;
  vertical-align:1px}

/* One session's state, said once. `b` is what is true and the rest is what
   happens next - in that order, because the question somebody has when a
   thing fails at midnight is "have I lost it". */
.note{border:1px solid var(--edge);border-left-width:3px;border-radius:9px;
  padding:14px 16px;margin-bottom:18px;font-size:14px;line-height:1.55}
.note b{display:block;font-family:var(--book);font-size:15.5px;
  font-weight:600;margin-bottom:3px}
.note.bad{border-left-color:var(--rust)}
.note.ok{border-left-color:var(--sage)}
.note.live{border-left-color:var(--rust);background:var(--gold-dim)}
.note .btn{margin-top:11px}

.flash{background:var(--gold-dim);border:1px solid var(--gold);border-radius:9px;
  padding:12px 15px;margin-bottom:16px;font-size:14px}
.flash.bad{background:transparent;border-color:var(--rust);color:var(--rust)}

.split{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
/* Out of the way at the top corner, as in the mockup - a preference, not a
   place to go, so it does not belong in the navigation. */
.themer{display:flex;gap:2px;align-items:center;background:var(--ink);
  border:1px solid var(--edge);border-radius:99px;padding:3px;
  width:max-content}

/* You, at the foot of the sidebar. Everything about the ACCOUNT is behind
   it, so none of it takes a line in the navigation - which is for places to
   go, not for preferences. */
.me{position:relative;margin:0 0 8px;padding-bottom:12px;
  border-bottom:1px solid var(--edge)}
.me summary{display:flex;align-items:center;gap:9px;cursor:pointer;
  list-style:none;padding:5px 6px;border-radius:8px;font-size:14px}
.me summary::-webkit-details-marker{display:none}
.me summary:hover{background:var(--hover)}
.me .pip{width:26px;height:26px;font-size:11px}
.me .pop{position:absolute;top:calc(100% + 2px);left:0;width:196px}
.me .opt{display:flex;align-items:center;gap:9px;padding:7px 8px;
  border-radius:7px;font-size:14px;color:var(--text);text-decoration:none}
.me .opt .ico{opacity:.7}
.me .opt:hover{background:var(--hover)}
.me .themer{margin-bottom:8px}
.themer a{border:0;border-radius:99px;padding:3px 10px;font-size:12px;
  color:var(--dim);text-decoration:none;line-height:1.5;display:flex;
  align-items:center;gap:5px}
.themer .ico{width:13px;height:13px}
.themer a:hover{color:var(--text)}
.themer a.on{background:var(--page);color:var(--text)}
@media (max-width:820px){ .themer{margin-top:10px} }

/* Sign out sits apart from the places you can go. */
.nav a.out{margin-top:22px;color:var(--dimmer)}

/* transcript */
.reader{background:var(--page);border:1px solid var(--edge);border-radius:10px;
  padding:6px 0}
.turn{display:grid;grid-template-columns:104px 1fr;gap:16px;padding:9px 20px;
  align-items:baseline}
.who{font-size:12.5px;font-weight:600;text-align:right;padding-top:3px}
.said{font-family:var(--book);font-size:16.5px;line-height:1.66}
.tc{font-family:var(--mono);font-size:11px;color:var(--dimmer);
  font-variant-numeric:tabular-nums}
.qr{background:#fff;padding:10px;border-radius:10px;display:block;width:230px;
  height:230px;margin:0 auto}

@media (max-width:640px){
  .turn{grid-template-columns:74px 1fr;gap:11px;padding:8px 13px}
  .top{padding:12px 14px;gap:10px}
}


/* ------------------------------------------------------- the transport
 *
 * The coloured turns ARE the scrubber's background and the thumb is the
 * playhead, exactly as in the transcription console and for the same
 * reason: a strip above a transport is two controls on one axis, one too
 * many, and it gives them room to disagree.
 *
 * It stays an <input type="range"> rather than a hand-rolled div so arrow
 * keys, Home/End, drag and screen readers work without reimplementing any
 * of them - worth more on a four-hour recording than a bespoke thumb.
 */
.bar{display:flex;align-items:center;gap:12px;background:var(--chrome);
  border:1px solid var(--edge);border-radius:10px;padding:11px 14px}
.play{width:34px;height:34px;border-radius:99px;background:var(--gold);
  color:var(--ink-on-gold);border:0;display:grid;place-items:center;
  cursor:pointer;flex:none;padding:0}
.play:hover{background:var(--gold-soft)}
/* Both icons are in the button; the class says which one shows. The play
   triangle is FILLED and nudged right, because a stroked triangle at 15px
   reads as an outline of nothing and its visual centre is left of its
   bounding box. */
.play .ico{grid-area:1/1;width:15px;height:15px}
.play .go{fill:currentColor;stroke:none;margin-left:2px}
.play .stop{display:none}
.play.playing .go{display:none}
.play.playing .stop{display:block}
.tc{font-family:var(--mono);font-size:11.5px;color:var(--dimmer);
  /* Reserved, so crossing an hour does not shift the track under the
     cursor. 9:59 -> 10:00 is the quieter version of the same bug. */
  min-width:7ch;text-align:center}
.tw{position:relative;flex:1;height:22px}
/* The speaker blocks, positioned by START TIME and never packed in
   sequence: consecutive turns are not contiguous, and flex-packing them
   puts every block left of its true time by a growing amount while the
   playhead - which is positioned by real time - disagrees with all of
   them. */
.turns{position:absolute;inset:0;border-radius:5px;overflow:hidden;
  background:var(--edge)}
.turns i{position:absolute;top:0;bottom:0;display:block}
.scrub{position:absolute;inset:0;width:100%;margin:0;background:transparent;
  -webkit-appearance:none;appearance:none;cursor:pointer}
.scrub:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.scrub::-webkit-slider-runnable-track{height:22px;background:transparent}
.scrub::-moz-range-track{height:22px;background:transparent}
.scrub::-webkit-slider-thumb{-webkit-appearance:none;width:3px;height:22px;
  background:var(--text);border:0;border-radius:1px;
  box-shadow:0 0 0 1px var(--ink)}
.scrub::-moz-range-thumb{width:3px;height:22px;background:var(--text);
  border:0;border-radius:1px;box-shadow:0 0 0 1px var(--ink)}

/* Every speaker, sorted by share, in TIME rather than words - it sits under
   a bar whose widths are time, and a percentage that disagreed with what
   you can see would just look wrong. */
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--dim);
  margin:10px 2px 0}
.legend span{display:flex;align-items:center;gap:6px}
.sw{width:10px;height:10px;border-radius:3px;flex:none}

/* the word being spoken, while it is being spoken */
.said w.on{background:var(--gold-dim);border-radius:3px}
.turn.now{background:var(--hover)}

/* --------------------------------------------------- that was not me
 *
 * It MOVES A BLOCK, it does not rename a speaker. Diarisation sometimes
 * puts two people in one cluster, and renaming labels both of them.
 */
.who button{background:none;border:0;color:inherit;font:inherit;
  cursor:pointer;padding:0;text-align:right}
.who button:hover{text-decoration:underline}
.pop{position:absolute;z-index:20;background:var(--pop);
  border:1px solid var(--pop-edge);border-radius:11px;padding:12px;
  box-shadow:var(--shadow);width:270px}
.pop .lab{margin:0 0 9px}
.pop .opt{display:flex;align-items:center;gap:10px;padding:7px 8px;
  border-radius:7px;font-size:14px;width:100%;background:none;border:0;
  color:var(--text);font-family:inherit;cursor:pointer;text-align:left}
.pop .opt:hover{background:var(--hover)}
.pop .scope{border-top:1px solid var(--pop-edge);margin-top:10px;
  padding-top:10px;font-size:12.5px;color:var(--dim);line-height:1.55}
.pop .scope a{cursor:pointer}

/* a clean-up version, word by word */
.diff ins{background:rgba(63,114,86,.16);color:var(--sage);
  text-decoration:none;border-radius:3px;padding:0 3px}
.diff del{background:rgba(166,59,42,.14);color:var(--rust);
  border-radius:3px;padding:0 3px}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .diff ins{
  background:rgba(127,184,148,.16)}
  :root:not([data-theme="light"]) .diff del{background:rgba(210,96,79,.14)}}


/* A download menu, with no JavaScript. <details> is the whole of it. */
.menu{position:relative;display:inline-block}
.menu summary{list-style:none;cursor:pointer}
.menu summary::-webkit-details-marker{display:none}
.menu .pop{margin-top:6px}
.menu .opt{text-decoration:none;display:block}
.split{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}


/* ------------------------------------------------------------- the stats
 *
 * Counted, never estimated. Everything here comes from recordings that
 * exist - hours actually recorded, words actually transcribed - because a
 * strip of flattering numbers is the fastest way to stop somebody believing
 * the rest of the screen.
 */
.stats{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 6px}
.stat{flex:1 1 150px;max-width:260px}
.stat{background:var(--page);border:1px solid var(--edge);border-radius:10px;
  padding:14px 16px}
.stat b{display:block;font-family:var(--book);font-size:1.65rem;
  font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums}
.stat span{color:var(--dimmer);font-size:12.5px}

/* Something to act on. Gold, because it is attention rather than failure -
   the same meaning the state colours carry everywhere else. */
a.card.needs{border-color:var(--gold);background:var(--gold-dim)}
a.card.needs:hover{background:var(--gold-dim);border-color:var(--gold-soft)}

/* The table, across the top of a campaign: who is in this game. */
.faces{display:flex;gap:16px;flex-wrap:wrap;margin:2px 0 4px}
.face{display:flex;flex-direction:column;align-items:center;gap:6px;
  width:64px;text-align:center}
.face .pip{width:42px;height:42px;font-size:15px}
.face span{font-size:12.5px;color:var(--dim);line-height:1.3;
  overflow-wrap:anywhere}
/* Deliberately no "away" state. `last_seen` is null until somebody opens
   the app, which is everybody before the first session - dimming them made
   a healthy table look absent. */

/* What happened last time, for the five minutes before the next one. */
/* Inside a panel, which already has the border and the ground. A card in a
   card is two borders saying the same thing. */
.recap{padding:0}
.recap p{font-family:var(--book);font-size:16px;line-height:1.7;margin:0 0 12px}
.recap p:last-of-type{margin-bottom:0}
/* A summary is Markdown, parsed server-side into headings, lists and
   emphasis. These are the only tags `markup.to_html` can emit, so this is
   the whole of it - h5 rather than h4 because h4 is already the panel's own
   label and a summary's heading sits UNDER that. */
.recap h5{font-family:var(--book);font-size:15px;font-weight:700;
  margin:18px 0 8px;color:var(--text);letter-spacing:0}
.recap h5:first-child{margin-top:0}
.recap ul,.recap ol{font-family:var(--book);font-size:16px;line-height:1.7;
  margin:0 0 12px;padding-left:22px}
.recap li{margin:0 0 4px}
.recap strong{font-weight:700}
.recap em{font-style:italic}
/* On the DASHBOARD a recap is a reminder, not the document - the session
   page has the whole thing and the heading links to it. Unbounded it is
   whatever the model produced, and a model that produced forty lines makes
   this panel taller than everything beside it, so a summary of one evening
   becomes the tallest thing on a page about every campaign. Bounded here
   and not on `.recap` generally, because the session page DOES want all of
   it. */
/* Two views of one session. Buttons rather than links, because nothing is
   being navigated to - the page has both halves already and the tab only
   says which one is on screen. A rule under the chosen one, and weight, so
   it survives being read at a glance and by somebody who cannot see the
   colour. */
.tabs{display:flex;gap:2px;margin:0 0 12px;border-bottom:1px solid var(--edge)}
.tab{appearance:none;background:none;border:0;cursor:pointer;
  font:inherit;font-size:14px;color:var(--dimmer);
  padding:9px 14px;margin-bottom:-1px;
  border-bottom:2px solid transparent}
.tab:hover{color:var(--text)}
.tab.on{color:var(--text);font-weight:600;border-bottom-color:var(--gold)}
.tab:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}

.recap-brief{max-height:15.5em;overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 72%,transparent);
  mask-image:linear-gradient(#000 72%,transparent)}


/* Picking a colour. The RADIO is the swatch - `appearance:none` and then
   styled - rather than a zero-size input behind a label. Hiding the control
   and painting something next to it means the thing a person clicks is not
   the thing that has the state, and the first casualty is anything driving
   it that is not a mouse. */
.picker{display:flex;gap:6px;align-items:center}
.picker label{display:block;margin:0;padding:0;line-height:0}
.picker input{appearance:none;-webkit-appearance:none;margin:0;
  width:24px;height:24px;border-radius:99px;background:var(--c);
  cursor:pointer;border:2px solid transparent;box-shadow:0 0 0 1px var(--edge)}
.picker input:checked{border-color:var(--page);box-shadow:0 0 0 2px var(--text)}
.picker input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}


/* ---------------------------------------------------------- the dashboard
 *
 * A dashboard is SCANNED, not read. Twelve columns and every panel declares
 * its span, so the eye lands on the widest thing first and the layout has a
 * rhythm - instead of the full-width stack of equal cards this replaces,
 * where nothing was more important than anything else.
 */
/* Panels size to their CONTENT. Stretching is the grid default and it
   turned a three-line recap into a tall mostly-empty box beside a long
   list - which reads as something that failed to load rather than as a
   short summary. */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px;
  align-items:start}
.c12{grid-column:span 12} .c8{grid-column:span 8} .c7{grid-column:span 7}
.c6{grid-column:span 6}  .c5{grid-column:span 5} .c4{grid-column:span 4}
.panel{background:var(--page);border:1px solid var(--edge);border-radius:11px;
  padding:14px 16px;min-width:0}
.panel > h4{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dimmer);margin:0 0 12px;font-weight:600;display:flex;
  justify-content:space-between;align-items:baseline;gap:10px}
.panel > h4 a{color:var(--gold);text-decoration:none;letter-spacing:0;
  text-transform:none;font-size:12px;font-weight:500}
.panel > h4 .soft{text-transform:none;letter-spacing:0;font-weight:400}
@media (max-width:1000px){
  .c8,.c7,.c6,.c5,.c4{grid-column:span 12}
}

/* Something to act on: a BAND across the top carrying its own verbs, so the
   resolution is on the same screen as the problem. As a card in a list it
   was one more card. */
.band-needs{grid-column:span 12;background:var(--gold-dim);
  border:1px solid var(--gold);border-radius:11px;padding:12px 16px;
  display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.band-needs + .band-needs{margin-top:-2px}
.band-needs .what{font-size:14.5px;font-weight:600}
.band-needs .why{color:var(--dim);font-size:12.5px}
.band-needs .mark{color:var(--gold);display:grid;place-items:center}
.band-needs .mark .ico{width:19px;height:19px}

/* Figures, not cards. Five numbers in five bordered boxes reads as five
   things to consider; the same five separated by hairlines reads as one
   summary, which is what it is. */
.band{display:flex;flex-wrap:wrap}
.fig{flex:1 1 130px;padding:2px 18px;border-left:1px solid var(--edge)}
.fig:first-child{border-left:0;padding-left:0}
.fig b{display:block;font-family:var(--book);font-size:1.75rem;font-weight:600;
  line-height:1.1;font-variant-numeric:tabular-nums}
.fig span{color:var(--dimmer);font-size:12px}

/* Closer to a table than to a list of cards. */
.rows{display:flex;flex-direction:column}
.rows > a, .rows > div{display:grid;grid-template-columns:1fr auto auto;
  gap:14px;align-items:center;padding:9px 4px;border-top:1px solid var(--edge);
  text-decoration:none;color:inherit}
.rows > a:first-child, .rows > div:first-child{border-top:0}
.rows > a:hover{background:var(--hover)}
.rows .nm{font-family:var(--book);font-size:15.5px}
.rows .when{color:var(--dimmer);font-size:12px}
.rows.tables > a{grid-template-columns:1fr auto}

/* Who spoke, as a shape, before it is read as words. Same speaker colours
   as the timeline inside the session. */
.mini{display:flex;height:7px;width:120px;border-radius:99px;overflow:hidden;
  background:var(--edge);flex:none}
.mini i{display:block;height:100%}

/* Hours per session. The columns must STRETCH and each bar needs a track
   with a definite height to be a percentage of - and every column reserves
   the same label space, or the ones without a label get a taller track and
   their bars come out both too tall and sitting too low. */
.chart{display:flex;align-items:stretch;gap:7px;height:116px;padding-top:6px}
.chart .col{flex:1;display:flex;flex-direction:column;min-width:0}
.chart .track{flex:1;display:flex;align-items:flex-end;justify-content:center}
.chart .bar{display:block;width:100%;max-width:44px;border-radius:4px 4px 0 0;
  background:var(--s2);min-height:2px}
.chart .col.gap .bar{background:var(--edge)}
.chart .lb{font-size:10px;color:var(--dimmer);white-space:nowrap;
  text-align:center;height:16px;line-height:16px;margin-top:5px}

.keys{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;
  color:var(--dimmer);margin-top:9px;align-items:center}
.keys span{display:flex;align-items:center;gap:6px}

.share{display:flex;flex-direction:column;gap:8px}
.share .who{display:grid;grid-template-columns:74px 1fr 42px;gap:10px;
  align-items:center;font-size:12.5px}
.share .trk{height:9px;border-radius:99px;background:var(--edge);
  overflow:hidden}
.share .trk i{display:block;height:100%}
.share .pc{text-align:right;color:var(--dimmer);
  font-variant-numeric:tabular-nums}


/* ------------------------------------------------------- reading a session
 *
 * Full width, like every other page - but the TEXT keeps a measure, because
 * a transcript is read for an hour and a line that runs the width of a
 * laptop is not read, it is skimmed. The chrome is wide; the words are not.
 */
/* The things you can do to a session, in a bar under its name rather than
   crowded against the title. They are actions on the transcript below, so
   they belong with it. */
.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  background:var(--chrome);border:1px solid var(--edge);border-radius:11px;
  padding:9px 11px;margin:0 0 14px}
.tools form{display:contents}
/* Follow sits apart: everything else DOES something to the session, and it
   only changes how this screen behaves. */
.tools #follow{margin-left:auto}
@media (max-width:820px){ .tools #follow{margin-left:0} }

.session .reader{background:var(--page);border:1px solid var(--edge);
  border-radius:11px;padding:8px 0}
.session .turn{display:grid;grid-template-columns:150px minmax(0,1fr);
  gap:18px;padding:10px 20px;align-items:start}
.session .turn.now{background:var(--hover)}
.session .said{font-family:var(--book);font-size:16.5px;line-height:1.68;
  max-width:66ch}
.session .said p{margin:0 0 10px}
.session .said p:last-child{margin-bottom:0}

/* The head of a block: the swatch carries the same hue as this speaker's
   blocks on the timeline, so a voice can be followed between the two without
   reading either. */
.turn-head{text-align:right;font-size:12.5px;padding-top:3px;
  display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.turn-head .who{display:flex;align-items:center;gap:6px;font-weight:600}
.turn-head .dot{width:9px;height:9px;border-radius:3px;flex:none}
.turn-head .nm{background:none;border:0;font:inherit;font-weight:600;
  color:inherit;padding:1px 3px;border-radius:5px;cursor:text;
  min-width:2ch;text-align:right}
.turn-head .nm:hover{background:var(--hover)}
.turn-head .nm:focus{outline:2px solid var(--gold);outline-offset:1px;
  background:var(--page)}
.turn-head .at{font-family:var(--mono);font-size:11px;color:var(--dimmer);
  background:none;border:0;cursor:pointer;padding:0}
.turn-head .at:hover{color:var(--text)}
.turn-head .fix{background:none;border:0;color:var(--dimmer);font-size:11.5px;
  cursor:pointer;padding:1px 4px;border-radius:5px;opacity:0;
  display:inline-flex;align-items:center;gap:4px}
.turn-head .fix .ico{width:12px;height:12px}
.session .turn:hover .fix, .turn-head .fix:focus{opacity:1}
.turn-head .fix:hover{background:var(--hover);color:var(--text)}

.session w{border-radius:3px;padding:0 1px}
.session w.on{background:var(--gold-dim)}

/* The transport, pinned to the bottom of the window. A four-hour transcript
   is scrolled a long way from wherever the controls were. */
.dock{position:sticky;bottom:0;z-index:5;margin-top:14px;
  background:var(--chrome);border:1px solid var(--edge);border-radius:11px;
  padding:10px 13px;box-shadow:var(--shadow)}
@media (max-width:820px){
  .session .turn{grid-template-columns:1fr;gap:4px;padding:10px 14px}
  .turn-head{flex-direction:row;align-items:center;text-align:left}
}


/* A question that has to be answered before anything else happens. Rare
   here - the only two are "who said this" and going on without somebody. */
.modal{position:fixed;inset:0;background:rgba(20,15,10,.45);z-index:40;
  display:grid;place-items:center;padding:20px}
.modal .sheet{background:var(--slab);border:1px solid var(--edge);
  border-radius:13px;padding:20px 22px;width:min(460px,100%);
  box-shadow:var(--shadow);max-height:90vh;overflow:auto}
.modal h2{font-family:var(--book);font-size:1.3rem;margin:0 0 4px;
  font-weight:600}
.modal .quote{font-family:var(--book);font-size:15px;line-height:1.6;
  background:var(--page);border:1px solid var(--edge);border-radius:9px;
  padding:11px 13px;margin:14px 0}
.modal select{width:100%;background:var(--page);border:1px solid var(--edge);
  border-radius:9px;padding:11px 13px;font:inherit;color:var(--text)}
.btn.on{background:var(--gold);color:var(--ink-on-gold);border-color:var(--gold)}


/* A correction, against the words it is about. */
.session .turn.flagged{background:var(--gold-dim);
  box-shadow:inset 3px 0 0 var(--gold)}
/* Spans the WHOLE turn, not the text column. Inside `.said` it inherited a
   66-character measure and wrapped "Jamie says this was Sam, not Tom" over
   three lines beside two buttons. */
.fixnote{grid-column:1/-1;display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;font-size:12.5px;color:var(--dim);background:var(--slab);
  border:1px solid var(--gold);border-radius:9px;padding:8px 11px;
  margin-bottom:10px;font-family:var(--ui)}
.fixnote .pip{width:22px;height:22px;font-size:10px}
.fixnote form{display:flex;gap:6px;flex-wrap:wrap}


/* Where you just came back to. Arriving in the middle of a wall of text with
   no idea which part changed is its own small confusion. */
.session .turn.landed{animation:landed 1.6s ease-out}
@keyframes landed{
  from{background:var(--gold-dim);box-shadow:inset 3px 0 0 var(--gold)}
  to{background:transparent;box-shadow:none}
}
@media (prefers-reduced-motion:reduce){
  .session .turn.landed{animation:none;background:var(--gold-dim)}
}
.band-needs .ico.down{transform:rotate(-90deg)}


/* The words that exist in somebody's world. */
.terms{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.terms form{display:contents}
.tag.term{cursor:pointer;font-family:inherit;background:none;
  display:inline-flex;align-items:center;gap:5px}
.tag.term .ico{width:11px;height:11px;opacity:0}
.tag.term:hover{border-color:var(--rust);color:var(--rust)}
.tag.term:hover .ico{opacity:1}


/* Who is who. One row per voice the recording separated. */
.card.voice{margin-bottom:9px}
.card.voice.known{border-color:var(--sage)}
.card.voice.scrap{border-style:dashed;opacity:.75}
.card.voice .quote{font-family:var(--book);font-size:15px;line-height:1.55;
  color:var(--dim);margin-top:6px}
.card.voice select{margin-bottom:0}
label.learn{display:flex;align-items:center;gap:7px;font-size:13px;
  color:var(--dim);text-transform:none;letter-spacing:0;margin:0;
  cursor:pointer}
label.learn input{width:auto;margin:0}
label.learn:has(input:disabled){opacity:.5;cursor:default}
