/* Pollen Ledger: design system carried over from the prototypes. */

:root{
  --bg:#EDEFEA; --surface:#F8F9F6; --surface-2:#E2E7DE; --sunk:#E7EAE3;
  --ink:#161F1A; --ink-2:#4B5A51; --ink-3:#7E8C82;
  --line:#CFD6CA; --line-2:#BDC6B8;
  --accent:#C4321C; --accent-soft:#F7E1DB;
  --go:#1B7355; --go-soft:#DDEDE6;
  --caution:#9A6A08; --caution-soft:#F3E8CE;
  --stop:#7B3350; --stop-soft:#F1DDE4;
  --shadow:0 1px 2px rgba(22,31,26,.06), 0 6px 18px -10px rgba(22,31,26,.22);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0F1411; --surface:#171D18; --surface-2:#212A23; --sunk:#131916;
    --ink:#E7ECE5; --ink-2:#A4B1A7; --ink-3:#6E7D73;
    --line:#2A332C; --line-2:#3A4740;
    --accent:#F26044; --accent-soft:#3B1B14;
    --go:#45BC92; --go-soft:#12291F;
    --caution:#DCA62B; --caution-soft:#2C2311;
    --stop:#D0819B; --stop-soft:#2E1620;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 22px -12px rgba(0,0,0,.7);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0F1411; --surface:#171D18; --surface-2:#212A23; --sunk:#131916;
  --ink:#E7ECE5; --ink-2:#A4B1A7; --ink-3:#6E7D73;
  --line:#2A332C; --line-2:#3A4740;
  --accent:#F26044; --accent-soft:#3B1B14;
  --go:#45BC92; --go-soft:#12291F;
  --caution:#DCA62B; --caution-soft:#2C2311;
  --stop:#D0819B; --stop-soft:#2E1620;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 22px -12px rgba(0,0,0,.7);
  color-scheme:dark;
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:Archivo,"Helvetica Neue",Arial,sans-serif; font-size:15px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0; text-wrap:balance; font-weight:600; letter-spacing:-.012em}
h1{font-size:22px} h2{font-size:15px} h3{font-size:13.5px}
p{margin:0}
button,input,select,textarea{font:inherit; color:inherit}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:4px}

.mono{font-family:"IBM Plex Mono",ui-monospace,monospace; font-variant-numeric:tabular-nums}
.eyebrow{font-size:10.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-3)}
.note{font-family:Newsreader,Georgia,serif; font-size:15.5px; line-height:1.5; color:var(--ink-2)}
.note em{color:var(--ink); font-style:italic}
.muted{color:var(--ink-3)}
.small{font-size:12.5px}

/* ---------- shell: rail + main ---------- */
/* `[hidden]` is only `display:none` at the browser default, and any `display`
   rule beats it. Without this the attribute on `.shell` would be decorative and
   the navigation would still paint for someone with no session. */
.shell[hidden]{display:none}
.shell{display:grid; grid-template-columns:210px minmax(0,1fr); min-height:100vh}

.rail{
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; gap:17px; padding:20px 14px;
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.brand{display:flex; align-items:center; gap:9px; padding:0 6px}
.brand-mark{width:26px;height:26px;flex:none;border-radius:6px;background:var(--accent);
  display:grid;place-items:center;color:#fff;font-weight:700;font-size:13px}
.brand-name{font-weight:700;letter-spacing:-.02em;font-size:15px}
.navgroup{display:flex; flex-direction:column; gap:1px}
.navgroup .eyebrow{padding:0 8px 7px}
.nav{display:flex; align-items:center; gap:9px; padding:8px; border-radius:6px;
  color:var(--ink-2); text-decoration:none; font-size:13.5px; font-weight:500}
.nav:hover{background:var(--surface-2); color:var(--ink)}
.nav.on{background:var(--accent-soft); color:var(--accent); font-weight:600}
.nav .dot{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.45;flex:none}
.nav.on .dot{opacity:1}
.nav.soon{color:var(--ink-3); cursor:default; opacity:.55}
.nav.soon:hover{background:none; color:var(--ink-3)}

/* A nav item that explains itself.
   The section names are all discipline jargon -- accession, grow-out, seed lot --
   and the app's whole audience is people who do not have that vocabulary yet.
   One plain line under each costs a little height and removes the guessing. */
.nav.step{align-items:flex-start; padding:7px 8px; position:relative}
.nav.step .dot{margin-top:6px}
.nav .lbl{display:flex; flex-direction:column; gap:1px; line-height:1.25}
.nav .lbl em{font-style:normal; font-size:11px; font-weight:400;
  color:var(--ink-3); letter-spacing:.005em}
.nav:hover .lbl em{color:var(--ink-2)}
.nav.on .lbl em{color:var(--accent); opacity:.72}

/* Stage number, so the order reads as a sequence rather than a menu */
.nav .num{flex:none; width:17px; height:17px; margin-top:2px; border-radius:50%;
  display:grid; place-items:center; font-size:10px; font-weight:700;
  background:var(--surface-2); color:var(--ink-3); border:1px solid var(--line)}
.nav:hover .num{color:var(--ink-2)}
.nav.on .num{background:var(--accent); color:#fff; border-color:var(--accent)}



.rail-foot{margin-top:auto; display:flex; flex-direction:column; gap:6px; padding-top:10px}
.railbtn{background:none;border:1px solid var(--line-2);border-radius:6px;padding:8px 10px;
  font-size:12px;font-weight:600;color:var(--ink-2);cursor:pointer;text-align:left;
  text-decoration:none;display:block}
.railbtn:hover{border-color:var(--ink-3);color:var(--ink)}
#openGlossary{border-color:var(--accent); color:var(--accent)}
#openGlossary:hover{background:var(--accent-soft)}

.page{padding:24px 28px 60px; min-width:0}
.page-head{margin-bottom:18px; display:flex; flex-wrap:wrap; gap:10px 20px;
  align-items:flex-end; justify-content:space-between}
.page-head h1{font-size:24px}
.page-head .sub{color:var(--ink-3); font-size:13px; margin-top:3px; max-width:60ch}
.backlink{font-size:12.5px; font-weight:600; color:var(--ink-3); text-decoration:none}
.backlink:hover{color:var(--ink)}

/* ---------- glossary ---------- */
.term{
  background:none; border:none; padding:0; font:inherit; color:inherit; cursor:help;
  border-bottom:1.5px dotted var(--accent); line-height:inherit;
}
.term:hover{color:var(--accent)}

.scrim{position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:40}
.drawer{
  position:fixed; top:0; right:0; bottom:0; width:min(400px, 92vw); z-index:50;
  background:var(--surface); border-left:1px solid var(--line);
  display:flex; flex-direction:column; box-shadow:-8px 0 30px -12px rgba(0,0,0,.4);
}
.drawer-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:16px; border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:16px; margin-top:2px}
.drawer-search{padding:14px 16px; border-bottom:1px solid var(--line); background:var(--sunk)}
.drawer-search input{width:100%; border:1px solid var(--line-2); background:var(--surface);
  border-radius:7px; padding:9px 11px; font-size:14px}
.drawer-body{overflow-y:auto; padding:6px 16px 28px; flex:1}
.gcat{font-size:10.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-3);margin:18px 0 8px}
.gitem{padding:11px 0; border-bottom:1px solid var(--line)}
.gitem:last-child{border-bottom:none}
.gitem.hit{background:var(--accent-soft); border-radius:8px; padding:11px 12px; margin:0 -12px;
  border-bottom-color:transparent}
.gitem h3{font-size:14px; margin-bottom:3px}
.gitem .d{font-size:13.5px; line-height:1.5; color:var(--ink-2)}
.gitem .w{font-family:Newsreader,Georgia,serif; font-size:14px; line-height:1.5;
  color:var(--ink-3); margin-top:5px; padding-left:10px; border-left:2px solid var(--line-2)}
.gnone{padding:26px 0; text-align:center; color:var(--ink-3); font-size:13.5px}

.iconbtn{background:none;border:1px solid var(--line-2);border-radius:6px;padding:5px 9px;
  font-size:13px;font-weight:600;color:var(--ink-2);cursor:pointer}
.iconbtn:hover{border-color:var(--ink-3);color:var(--ink)}

/* ---------- pedigree graph ---------- */
.segbar{display:flex; flex-wrap:wrap; align-items:center; gap:6px}
.seg{border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2);
  border-radius:7px; padding:6px 14px; font-size:13px; font-weight:600; cursor:pointer}
.seg.on{background:var(--accent-soft); border-color:var(--accent); color:var(--accent)}
.segnote{font-size:12.5px; color:var(--ink-3); margin-left:6px; flex:1; min-width:180px}

.graphwrap{margin-top:12px; border:1px solid var(--line); border-radius:9px;
  background:var(--sunk); overflow:hidden; position:relative}
.pedbg{fill:transparent}
.zoombar{position:absolute; right:10px; bottom:10px; display:flex; gap:4px}

/* The search bar over the graph. Matches take the same treatment as a hover,
   so there is one visual language for "this is the thing you mean". */
.pedsearch{display:flex; align-items:center; gap:10px; margin-top:10px}
.pedsearch input{flex:1; min-width:0; border:1px solid var(--line-2); border-radius:7px;
  background:var(--surface); color:var(--ink); padding:7px 10px; font-size:13.5px;
  font-family:inherit}
.pedsearch input:focus{outline:none; border-color:var(--accent)}
.pedsearch .hint{white-space:nowrap; font-size:12px; color:var(--ink-3)}
.pedspace{display:flex; align-items:center; gap:7px; white-space:nowrap;
  font-size:12px; color:var(--ink-3)}
.pedspace input[type=range]{width:96px; accent-color:var(--accent); cursor:pointer}

/* The panel beside a marker. Deliberately outside the zooming group: anchored
   inside it, it would be scaled by the zoom and shoved about by the simulation. */
.pedpop{position:absolute; z-index:3; width:232px; max-width:calc(100% - 16px);
  background:var(--surface); border:1px solid var(--line-2); border-radius:9px;
  padding:11px 12px; box-shadow:0 6px 22px rgba(0,0,0,.18)}
.pedpop .pk{font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--accent); font-weight:700}
.pedpop .pt{font-size:15px; font-weight:700; color:var(--ink); margin:2px 0 8px;
  overflow-wrap:anywhere}
.pedpop .pr{display:flex; gap:8px; justify-content:space-between; align-items:baseline;
  font-size:12.5px; padding:3px 0; border-top:1px solid var(--line)}
.pedpop .pr span{color:var(--ink-3); white-space:nowrap}
.pedpop .pr b{color:var(--ink-2); font-weight:600; text-align:right; overflow-wrap:anywhere}
.pedpop .btn{margin-top:10px; width:100%; padding:6px 0; font-size:13px}
.zb{border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2);
  border-radius:6px; min-width:30px; height:28px; font-size:14px; font-weight:600; cursor:pointer}
.zb:hover{border-color:var(--ink-3); color:var(--ink)}
/* In a dense graph only accessions stay named; the rest surface on hover. */
.pedigree.dense .gn.t-cross text,
.pedigree.dense .gn.t-seedlot text{opacity:0}
.pedigree.dense .gn.hot text{opacity:1}
.pedigree.dense .gl{stroke-width:1}
.pedigree.dense .gn text{font-size:12px}
.pedigree{width:100%; height:auto; display:block; touch-action:none}
.pedigree.dragging{cursor:grabbing}

.pedigree .gl{fill:none; stroke:var(--line-2); stroke-width:1.4}
.pedigree .gl.r-female{stroke:var(--accent); opacity:.65}
.pedigree .gl.r-male{stroke:var(--ink-3); opacity:.55; stroke-dasharray:5 3}
.pedigree .gl.r-produces{stroke:var(--go); opacity:.6}
.pedigree .gl.r-selected{stroke:var(--caution); opacity:.7; stroke-dasharray:2 3}
/* A self loops back on one plant, so it gets the seed-parent colour and a mark of
   its own rather than the two overlaid edges it used to draw. */
.pedigree .gl.r-self{stroke:var(--accent); opacity:.75; stroke-dasharray:1 4; stroke-linecap:round; stroke-width:2.2}
.pedigree .gl.r-unknown{stroke:var(--ink-3); opacity:.35; stroke-dasharray:2 5}
.pedigree .gn.t-unknown circle{fill:var(--ink-2)}
.pedigree .gn.t-unknown text{opacity:.5; font-style:italic}
/* Knocked out of the fill rather than drawn on top of it, so the glyph reads at
   the size these markers actually get to. */
.pedigree .gn.t-unknown .qm{fill:var(--surface); font-style:normal; opacity:1;
  font-weight:700; font-size:10px; text-anchor:middle; pointer-events:none}
.pedigree.dense .gn.t-unknown .qm{font-size:9px}
.pedigree .gl.hot{stroke-width:2.6; opacity:1}

/* Nothing in the graph is selectable. Dragging a node across labels was leaving a
   trail of highlighted text behind it, which looks like a fault and takes a click
   elsewhere to clear. The panel is exempt: the whole point of it is to be read,
   and a name or a date there is worth copying. */
.pedigree{user-select:none; -webkit-user-select:none}
.pedpop{user-select:text; -webkit-user-select:text}
.pedigree .gn{cursor:pointer}
.pedigree .gn circle,.pedigree .gn rect{stroke:var(--surface); stroke-width:2}
.pedigree .gn.t-accession circle{fill:var(--ink-2)}
.pedigree .gn.t-cross rect{fill:var(--accent)}
.pedigree .gn.t-seedlot rect{fill:var(--go)}
.pedigree .gn text{fill:var(--ink-3); font-size:10.5px; text-anchor:middle;
  font-family:Archivo,sans-serif; pointer-events:none}
.pedigree .gn.hot text{fill:var(--ink); font-weight:700}
/* Zoomed out, labels turn into a smear of overlapping text well before the
   shapes stop being readable. Hovering still names one. */
.pedigree .gn text{transition:opacity .18s ease}
.pedigree.faint-labels .gn text{opacity:0}
.pedigree.faint-labels .gn.hot text{opacity:1}
/* While the simulation is settling, transitions on position would fight it. */
.pedigree .gn{transition:none}
.pedigree .gn.hot circle,.pedigree .gn.hot rect{stroke:var(--accent); stroke-width:2.5}
.pedigree.focusing .gn:not(.hot){opacity:.28}
.pedigree.focusing .gl:not(.hot){opacity:.12}
.pedigree .gn:focus-visible circle,.pedigree .gn:focus-visible rect{stroke:var(--accent); stroke-width:3}

.pedigree .band line{stroke:var(--line); stroke-dasharray:3 5}
.pedigree .band text{fill:var(--ink-3); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; font-weight:700}

.legend i.k-accession{background:var(--ink-2); border-radius:50%}
.legend i.k-cross{background:var(--accent); transform:rotate(45deg); width:9px; height:9px}
.legend i.k-seedlot{background:var(--go)}
.legend i.k-female{background:var(--accent); height:3px}
.legend i.k-male{background:var(--ink-3); height:3px}
.legend i.k-self{background:var(--accent); height:3px; opacity:.75}
.legend i.k-unknown{background:var(--ink-2); border-radius:50%; font-style:normal;
  font-size:8px; font-weight:700; color:var(--surface);
  display:inline-flex; align-items:center; justify-content:center; line-height:1}
.legend{display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; font-size:11.5px; color:var(--ink-3)}
.legend i{display:inline-block; width:14px; height:8px; border-radius:2px; vertical-align:middle;
  margin-right:5px}

/* ---------- list search ---------- */
.searchbar{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.searchbar input{flex:1; min-width:0; border:1px solid var(--line-2); background:var(--surface);
  border-radius:8px; padding:9px 12px; font-size:14.5px}
.searchbar input:focus{border-color:var(--accent)}
.searchcount{font-size:11.5px; font-weight:600; letter-spacing:.06em; color:var(--ink-3);
  white-space:nowrap; font-family:"IBM Plex Mono",monospace}

/* ---------- usage across projects ---------- */
.userow + .userow{margin-top:14px; padding-top:14px; border-top:1px solid var(--line)}
.uhead{display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:7px}
.uproj{font-size:14px; font-weight:600; text-decoration:none; color:var(--ink)}
.uproj:hover{color:var(--accent)}
.uproj.none{color:var(--ink-3); font-style:italic}
.ucount{font-size:11.5px; color:var(--ink-3); margin-left:auto}
a.chip{text-decoration:none}
a.chip:hover{background:var(--accent-soft); color:var(--accent)}

/* ---------- project switcher ---------- */
.projpick{display:flex; flex-direction:column; gap:4px; padding:9px 10px;
  border:1px solid var(--line-2); border-radius:8px; background:var(--sunk)}
.projpick select{border:1px solid var(--line-2); background:var(--surface); border-radius:6px;
  padding:6px 7px; font-size:13.5px; font-weight:600; width:100%; max-width:100%}
.projpick.empty{text-decoration:none; color:var(--accent); border-style:dashed}
.projpick .pname{font-size:13.5px; font-weight:600}
.chip.acc{background:var(--accent-soft); color:var(--accent)}

/* ---------- temperature chart ---------- */
.chartwrap{margin-top:14px}
.tempchart{width:100%; height:auto; display:block; overflow:visible}
.tempchart .band{fill:var(--accent); opacity:.20}
.tempchart .maxline{fill:none; stroke:var(--accent); stroke-width:1.6; stroke-linejoin:round}
.tempchart .grid{stroke:var(--line-2); stroke-width:1}
.tempchart .grid.hot{stroke:var(--stop); stroke-dasharray:4 3}
.tempchart .grid.cold{stroke:var(--caution); stroke-dasharray:4 3}
.tempchart .ylab{fill:var(--ink-3); font-size:10px; text-anchor:end;
  font-family:"IBM Plex Mono",monospace}
.tempchart .xlab{fill:var(--ink-3); font-size:10px; font-family:"IBM Plex Mono",monospace}
.tempchart .xlab.end{text-anchor:end}

/* ---------- progress, batches, bud editing ---------- */
.progress{margin-top:12px}
.ptrack{height:7px; border-radius:4px; background:var(--surface-2); overflow:hidden}
.ptrack i{display:block; height:100%; background:var(--accent); border-radius:4px;
  transition:width .4s cubic-bezier(.3,.8,.3,1)}
.batch + .batch{margin-top:12px}
.batch .eyebrow{margin-bottom:6px}
.bud.editing{position:relative; cursor:default; justify-content:center}
.budx{position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:50%;
  border:1px solid var(--stop); background:var(--surface); color:var(--stop);
  font-size:11px; font-weight:700; cursor:pointer; display:grid; place-items:center; padding:0}
.budx:hover{background:var(--stop); color:var(--surface)}

.addrow{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:14px;
  padding-top:13px; border-top:1px dashed var(--line-2)}
.addrow .al{font-size:12.5px; font-weight:600; color:var(--ink-3)}
.addrow input{border:1px solid var(--line-2); background:var(--sunk); border-radius:6px;
  padding:6px 8px; font-size:14px}
.addrow input[type=number]{width:70px; font-family:"IBM Plex Mono",monospace}
.addrow input[type=date]{font-family:"IBM Plex Mono",monospace; font-size:12.5px}
.addrow .btn{width:auto; padding:6px 14px; font-size:13.5px}

/* ---------- in-place explanation blocks ---------- */
.explain{border-left:3px solid var(--line-2); padding:2px 0 2px 12px; margin-bottom:14px}
.explain p{font-size:13.5px; line-height:1.5; color:var(--ink-2)}
.explain b{color:var(--ink); font-weight:600}
.legendlist{list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:5px}
.legendlist li{display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--ink-2);
  line-height:1.45}
.legendlist .sw{width:12px; height:12px; border-radius:3px; flex:none; margin-top:3px;
  border:1px solid var(--line-2); background:var(--surface)}
.legendlist .sw[data-st="pollinated"]{background:var(--accent-soft); border-color:var(--accent)}
.legendlist .sw[data-st="set"]{background:var(--go-soft); border-color:var(--go)}
.legendlist .sw[data-st="dropped"]{background:var(--stop-soft); border-color:var(--stop)}
.legendlist .sw[data-st="seedless"]{background:var(--caution-soft); border-color:var(--caution)}

/* ---------- cards ---------- */
.card{background:var(--surface); border:1px solid var(--line); border-radius:10px;
  box-shadow:var(--shadow); margin-bottom:14px; overflow:hidden}
.card-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:12px 14px; border-bottom:1px solid var(--line)}
.card-body{padding:14px}
.card-body > * + *{margin-top:12px}

.rows{display:flex; flex-direction:column}
.row{display:flex; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line);
  text-decoration:none; color:inherit; background:none; border-left:none; border-right:none;
  border-top:none; width:100%; text-align:left; cursor:pointer}
.row:last-child{border-bottom:none}
.row:hover{background:var(--sunk)}
.row .main{flex:1; min-width:0}
.row .t{font-weight:600; font-size:14.5px}
.row .s{font-size:12.5px; color:var(--ink-3); margin-top:1px}
.row .chev{color:var(--ink-3); font-size:16px}

/* ---------- forms ---------- */
.field{display:flex; flex-direction:column; gap:5px; margin-bottom:12px}
.field label{font-size:11px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-3)}
.field input,.field select,.field textarea{
  border:1px solid var(--line-2); background:var(--sunk); border-radius:7px;
  padding:9px 10px; font-size:15px; width:100%;
}
.field textarea{min-height:64px; resize:vertical; font-family:inherit}
.field .hint{font-size:12px; color:var(--ink-3)}
.two{display:grid; grid-template-columns:1fr 1fr; gap:10px}

.btn{background:var(--accent); color:#fff; border:none; border-radius:8px; padding:11px 16px;
  font-size:15px; font-weight:600; cursor:pointer; width:100%}
.btn:hover{filter:brightness(1.06)}
.btn.ghost{background:none; color:var(--ink-2); border:1px solid var(--line-2)}
.btn.danger{background:var(--stop)}
.btnrow{display:flex; gap:8px}

/* ---------- chips, flags, stats ---------- */
.chips{display:flex; flex-wrap:wrap; gap:5px}
.chip{font-size:11.5px; font-weight:600; padding:3px 8px; border-radius:4px;
  background:var(--surface-2); color:var(--ink-2); white-space:nowrap}
.chip.hot{background:var(--accent-soft); color:var(--accent)}
.chip.go{background:var(--go-soft); color:var(--go)}
.chip.warn{background:var(--caution-soft); color:var(--caution)}
.chip.stop{background:var(--stop-soft); color:var(--stop)}

.flag{display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start;
  padding:11px 12px; border-radius:8px; border:1px solid var(--line); background:var(--surface)}
.flag + .flag{margin-top:8px}
.flag .mk{width:19px;height:19px;border-radius:5px;display:grid;place-items:center;
  font-size:11px;font-weight:700;flex:none;margin-top:1px;background:var(--surface-2);color:var(--ink-3)}
.flag[data-k="bad"]{background:var(--stop-soft);border-color:var(--stop)}
.flag[data-k="bad"] .mk{background:var(--surface);color:var(--stop)}
.flag[data-k="warn"]{background:var(--caution-soft);border-color:var(--caution)}
.flag[data-k="warn"] .mk{background:var(--surface);color:var(--caution)}
.flag[data-k="ok"],.flag[data-k="tip"]{background:var(--go-soft);border-color:var(--go)}
.flag[data-k="ok"] .mk,.flag[data-k="tip"] .mk{background:var(--surface);color:var(--go)}
.flag .ft{font-size:13.5px;font-weight:600;margin-bottom:2px}
.flag .fb{font-size:13px;line-height:1.45;color:var(--ink-2)}
.flag[data-k="bad"] .fb{color:var(--ink)}

.stats{display:flex; flex-wrap:wrap; gap:18px}
.stat .k{font-size:10.5px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--ink-3)}
.stat .v{font-size:24px;font-weight:700;letter-spacing:-.03em;line-height:1.15}
.stat .v small{font-size:13px;font-weight:500;color:var(--ink-3);letter-spacing:0}
.stat .v.go{color:var(--go)} .stat .v.stop{color:var(--stop)} .stat .v.acc{color:var(--accent)}

/* ---------- interval bar ---------- */
.interval{margin-top:4px}
.interval .track{position:relative; height:22px; background:var(--surface-2); border-radius:5px; overflow:hidden}
.interval .band{position:absolute; top:0; bottom:0; background:var(--accent); opacity:.28}
.interval .mean{position:absolute; top:0; bottom:0; width:2px; background:var(--accent)}
.interval .scale{display:flex; justify-content:space-between; font-size:10.5px; color:var(--ink-3); margin-top:3px}
.interval.go .band{background:var(--go)} .interval.go .mean{background:var(--go)}
.interval.warn .band{background:var(--caution)} .interval.warn .mean{background:var(--caution)}
.interval.stop .band{background:var(--stop)} .interval.stop .mean{background:var(--stop)}

/* ---------- bud grid ---------- */
.buds{display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px}
.bud{border:1px solid var(--line-2); border-radius:9px; background:var(--surface);
  padding:10px 6px; display:flex; flex-direction:column; gap:3px; align-items:center;
  cursor:pointer; text-align:center; min-height:62px; justify-content:center}
.bud .tag{font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--ink-3)}
.bud .st{font-size:12px; font-weight:600}
.bud[data-st="pollinated"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.bud[data-st="set"]{background:var(--go-soft);border-color:var(--go);color:var(--go)}
.bud[data-st="dropped"]{background:var(--stop-soft);border-color:var(--stop);color:var(--stop)}
.bud[data-st="seedless"]{background:var(--caution-soft);border-color:var(--caution);color:var(--caution)}
.bud.ctrl{border-style:dashed; background:transparent}
.bud.ctrl[data-st="set"]{background:var(--stop-soft);border-color:var(--stop);color:var(--stop);border-style:solid}
.bud.flagged::after{content:"*"; position:absolute}
.bud[data-flagged="1"] .tag::after{content:" *"; color:var(--caution); font-weight:700}

.empty{text-align:center; padding:34px 18px; color:var(--ink-3)}
.empty .g{font-size:30px; display:block; margin-bottom:8px}

.srcline{font-size:11.5px; color:var(--ink-3); border-top:1px dashed var(--line-2); padding-top:8px}

@media (max-width:860px){
  .shell{grid-template-columns:1fr}
  .rail{position:static; height:auto; flex-direction:row; align-items:center; gap:12px;
    overflow-x:auto; border-right:none; border-bottom:1px solid var(--line); padding:10px 12px}
  .navgroup{flex-direction:row; gap:2px}
  .navgroup .eyebrow{display:none}
  .projpick{min-width:150px}
  .rail-foot{margin:0 0 0 auto; flex-direction:row; padding-top:0}
  .railbtn{white-space:nowrap; font-size:11.5px; padding:7px 9px}
  .page{padding:16px 14px 46px}
  .page-head h1{font-size:20px}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important}}

/* ------------------------------------------------------------------ *
 * The cycle strip on the overview
 *
 * Four stages that have to read as a sequence rather than four boxes, so the
 * connector between them matters as much as the tiles. `here` marks the first
 * stage with work waiting -- that is the honest answer to "where am I".
 * ------------------------------------------------------------------ */
.cycle{display:grid; grid-template-columns:repeat(4, 1fr); gap:0}

.cyclestep{position:relative; display:flex; flex-direction:column; gap:3px;
  padding:13px 12px 13px 15px; text-decoration:none; color:var(--ink-2);
  border:1px solid var(--line); border-right:none; background:var(--surface)}
.cyclestep:first-child{border-radius:8px 0 0 8px}
.cyclestep:last-child{border-right:1px solid var(--line); border-radius:0 8px 8px 0}
.cyclestep:hover{background:var(--surface-2)}

/* the chevron that turns adjacent tiles into a flow: 1 -> 2 -> 3 -> 4 */
.cyclestep:not(:last-child)::after{content:''; position:absolute; right:-7px; top:50%;
  width:12px; height:12px; margin-top:-6px; z-index:2;
  background:var(--surface); border-top:2px solid var(--ink-3);
  border-right:2px solid var(--ink-3); transform:rotate(45deg)}
.cyclestep:hover:not(:last-child)::after{background:var(--surface-2)}

/* The return: keep a plant at 4 and the next work is another cross, so this
   lands on 2. Drawn faint because it is the same journey again, not a fifth
   stage -- and because the naming step it passes through is bookkeeping, not
   bench work. Columns are equal quarters, so tile centres sit at 12.5%, 37.5%,
   62.5% and 87.5%. */
.cyclewrap{position:relative; padding-bottom:30px}
.cyclereturn{position:absolute; left:0; right:0; bottom:0; height:30px; pointer-events:none}
/* --line-2 is near-invisible against the dark surface, and 1.5px lands on a
   sub-pixel. --ink-3 at reduced opacity reads as clearly secondary to the solid
   forward chevrons while still being a line you can actually see. */
.crline{position:absolute; top:0; bottom:11px; left:37.5%; right:12.5%;
  border-left:1px dashed var(--ink-3); border-right:1px dashed var(--ink-3);
  border-bottom:1px dashed var(--ink-3); border-radius:0 0 10px 10px; opacity:.34}
/* arrowhead at the left end, pointing up into step 2 */
.crline::before{content:''; position:absolute; left:-4px; top:-1px;
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-bottom:6px solid var(--ink-3); opacity:.9}

.cyclestep .cnum{position:absolute; top:11px; left:0; width:15px; text-align:center;
  font-size:9.5px; font-weight:700; color:var(--ink-3); opacity:.7}
.cyclestep .cname{font-size:11px; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; color:var(--ink-3)}
.cyclestep .ccount{font-family:"IBM Plex Mono",ui-monospace,monospace; font-variant-numeric:tabular-nums;
  font-size:19px; font-weight:600; color:var(--ink); line-height:1.1}
.cyclestep .cunit{font-family:inherit; font-size:11px; font-weight:400; color:var(--ink-3)}
.cyclestep .cnote{font-size:11px; line-height:1.3; color:var(--ink-3)}

/* a stage with something waiting */
.cyclestep.todo .cnote{color:var(--caution); font-weight:500}
.cyclestep.here{background:var(--accent-soft); border-color:var(--accent)}
.cyclestep.here:hover{background:var(--accent-soft)}
.cyclestep.here::after{background:var(--accent-soft); border-color:var(--accent)}
.cyclestep.here .cname, .cyclestep.here .cnum{color:var(--accent); opacity:1}
.cyclestep.here .ccount{color:var(--accent)}
.cyclestep.here .cnote{color:var(--accent)}

.cycleloop{font-size:11.5px; line-height:1.45; color:var(--ink-3); margin-top:4px}

@media (max-width: 780px){
  .cyclewrap{padding-bottom:0}
  .cyclereturn{display:none}
  .cycle{grid-template-columns:1fr 1fr}
  .cyclestep{border-right:1px solid var(--line); border-radius:0}
  .cyclestep::after{display:none}
  .cyclestep:not(:last-child)::after{display:none}
  .cyclestep:first-child{border-radius:8px 0 0 0}
  .cyclestep:nth-child(2){border-radius:0 8px 0 0}
  .cyclestep:nth-child(3){border-radius:0 0 0 8px}
  .cyclestep:last-child{border-radius:0 0 8px 0}
  .cyclestep:nth-child(-n+2){border-bottom:none}
}

/* ------------------------------------------------------------------ *
 * The projects filter bar
 * ------------------------------------------------------------------ */
.filterbar{display:flex; flex-direction:column; gap:7px; margin:0 0 12px}
.frow{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.flabel{font-size:10.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase;
  color:var(--ink-3); min-width:52px}

.fchip{display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
  font-size:12px; font-weight:500; font-family:inherit; cursor:pointer}
.fchip:hover{background:var(--surface-2); color:var(--ink)}
.fchip.on{background:var(--accent-soft); border-color:var(--accent); color:var(--accent);
  font-weight:600}
.fchip .fcount{font-family:"IBM Plex Mono",ui-monospace,monospace; font-size:10.5px;
  opacity:.7; font-variant-numeric:tabular-nums}

/* a row that carries actions cannot be an anchor, so the link is the inner block */
.projrow{align-items:flex-start; gap:10px}
.projrow > .main{display:flex; flex-direction:column; gap:2px; text-decoration:none;
  color:inherit; flex:1; min-width:0}
.projrow > .main:hover .t{color:var(--accent)}
.projrow .s.dim{color:var(--ink-3); font-size:11.5px}
.projrow.current{background:var(--accent-soft)}
.projrow .chips{flex-wrap:wrap; justify-content:flex-end; gap:5px}

.btn.tiny{width:auto; padding:4px 10px; font-size:12px}

@media (max-width: 640px){
  .projrow{flex-direction:column}
  .projrow .chips{justify-content:flex-start}
  .flabel{min-width:0; width:100%}
}

.projpick .projmeta{display:block; margin-top:6px; font-size:11px; line-height:1.35;
  color:var(--ink-3)}
.projpick .projgoal{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden}
.projpick .projall{display:inline-block; margin-top:6px; font-size:11px; color:var(--ink-3);
  text-decoration:none}
.projpick .projall:hover{color:var(--accent)}

/* ------------------------------------------------------------------ *
 * The cycle diagram in the rail
 *
 * A picture of the method, not a report on the work: it looks the same whatever
 * state your projects are in. Four equal rows, so the connectors can be placed
 * at fractions -- row centres fall at 12.5%, 37.5%, 62.5% and 87.5% -- instead
 * of pixel offsets that would drift the moment a label wraps.
 * ------------------------------------------------------------------ */
/* Row height and gap are named because the return line is positioned from them.
   The badge sits 17px down inside a row, so: bottom offset is one row minus that
   (independent of the gap), and top offset is a row plus a gap plus it. */
.cyclesteps{position:relative; display:flex; flex-direction:column;
  --cyrow:46px; --cygap:16px; --cybadge:17px;
  /* where the label column starts: nav padding + badge + the flex gap between
     them. Derived rather than written as 34px so it follows if any of the three
     changes. */
  --cytext:calc(8px + 17px + 9px);
  gap:var(--cygap)}

/* 1 -> 2 -> 3 -> 4, drawn in the gaps so the numbered steps read as the nodes
   and the arrows as the moves between them */
/* Centred: the cycle group is a flowchart, not a menu of destinations, so the
   steps read down a middle axis with the arrows on it. The number rides with the
   name rather than sitting in a left gutter. */
/* The stage numbers stay in a column so they read as 1,2,3,4 rather than
   drifting with each label's width; the text centres in the space beside them. */
.cyclesteps .nav.step{text-align:center; padding-right:8px}
.cyclesteps .nav.step .lbl{align-items:center; flex:1; min-width:0}
.cyclesteps .nav.step .num{margin-top:1px}

/* Hung off the label, not the row: `left:50%` of the label is exactly the text
   centre, where computing it from the row's width needs assumptions about
   padding and the flex gap that were quietly five pixels wrong. */
.cyclesteps .nav.step .lbl{position:relative}
.cyclesteps .nav.step:not(:last-of-type) .lbl::after{content:''; position:absolute;
  left:50%; margin-left:-4.5px; top:100%; width:9px; height:var(--cygap);
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) 4px 0 / 1.5px calc(100% - 4px) no-repeat;
  opacity:.6; pointer-events:none}
.cyclesteps .nav.step:not(:last-of-type) .lbl::before{content:''; position:absolute;
  left:50%; margin-left:-4.5px; top:calc(100% + var(--cygap) - 5px); z-index:1;
  border-left:4.5px solid transparent; border-right:4.5px solid transparent;
  border-top:5px solid var(--ink-3); opacity:.6; pointer-events:none}

/* the return, fainter, down the right-hand side and back into step 2 */
.cyclesteps .cyreturn{position:absolute; right:5px;
  top:calc(var(--cyrow) + var(--cygap) + var(--cybadge));
  bottom:calc(var(--cyrow) - var(--cybadge)); width:9px;
  border-top:1px dashed var(--ink-3); border-right:1px dashed var(--ink-3);
  border-bottom:1px dashed var(--ink-3); border-radius:0 8px 8px 0;
  opacity:.32; pointer-events:none}
.cyclesteps .cyreturn::after{content:''; position:absolute; left:-3px; top:-4.5px;
  border-top:4px solid transparent; border-bottom:4px solid transparent;
  border-right:5px solid var(--ink-3)}

/* room for the return line without crowding the labels */
.cyclesteps .nav.step{padding-right:18px}

.cycleback{font-size:10.5px; color:var(--ink-3); padding:8px 10px 2px; text-align:center;
  line-height:1.4; opacity:.9}

/* ------------------------------------------------------------------ *
 * Photographs
 * ------------------------------------------------------------------ */

.photostrip{display:flex; flex-wrap:wrap; gap:10px; margin:2px 0 12px}
.photo{margin:0; width:132px}
.photoview{display:block; width:132px; height:132px; padding:0; cursor:zoom-in;
  border:1px solid var(--line-2); border-radius:8px; overflow:hidden;
  background:var(--sunk)}
.photoview img{width:100%; height:100%; object-fit:cover; display:block}
.photoview:hover{border-color:var(--accent)}
.photo figcaption{display:flex; align-items:center; justify-content:space-between; gap:6px;
  font-size:11px; color:var(--ink-3); padding:4px 2px 0}
.photodel{border:none; background:none; color:var(--ink-3); cursor:pointer;
  font-size:12px; line-height:1; padding:2px 4px; border-radius:4px}
.photodel:hover{color:var(--stop); background:var(--sunk)}
.photoadd{width:auto; display:inline-block; padding:6px 12px; font-size:13px; cursor:pointer}

/* Full size over the whole page, because a 132px thumbnail cannot answer
   "is that seed any good", which is most of why a seed lot has a photo. */
.photolightbox{position:fixed; inset:0; z-index:60; display:flex; align-items:center;
  justify-content:center; padding:24px; cursor:zoom-out;
  background:rgba(0,0,0,.82); backdrop-filter:blur(2px)}
.photolightbox img{max-width:100%; max-height:100%; border-radius:8px;
  box-shadow:0 10px 40px rgba(0,0,0,.5)}
.photofield .photostrip{margin-top:6px}
.photofield .hint{display:block; margin-bottom:2px}

/* Two subjects on one screen. A heading with air above it reads as a division
   without needing a rule drawn across the page. */
.pagesplit{margin:30px 0 14px; padding-top:22px; border-top:1px solid var(--line)}
.pagesplit h2{margin:0 0 4px; font-size:17px; color:var(--ink)}
.pagesplit p{margin:0; font-size:13px; color:var(--ink-3); max-width:64ch}

/* ------------------------------------------------------------------ *
 * The reasoning screen
 * ------------------------------------------------------------------ */

.claim{border:1px solid var(--line); border-radius:8px; margin-bottom:8px;
  background:var(--surface)}
.claim summary{display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:11px 13px; cursor:pointer; list-style:none; font-size:14px}
.claim summary::-webkit-details-marker{display:none}
.claim summary:hover{background:var(--sunk)}
.claim[open] summary{border-bottom:1px solid var(--line)}
.claim .ctitle{font-weight:600; color:var(--ink)}
.cbody{padding:12px 13px 14px}
.cbody > p{margin:0 0 9px; font-size:13.5px; color:var(--ink-2)}
.cdecides{color:var(--ink) !important}
/* The source is the whole point of the screen, so it is given a shape of its
   own rather than reading as another paragraph. */
.csrc{font-size:12.5px; color:var(--ink-2); background:var(--sunk);
  border-left:2px solid var(--accent); border-radius:0 6px 6px 0;
  padding:8px 11px; margin:0 0 10px}
.cbody .two{gap:14px; margin-bottom:4px}
.cbody .two b{font-size:12px; text-transform:uppercase; letter-spacing:.03em;
  color:var(--ink-3)}
.cbody .two p{margin:3px 0 0}
/* The mathematics, shown as mathematics. Pre-wrapped so alignment in the
   formula strings survives, which is what makes a fraction readable. */
.formula{font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px;
  line-height:1.55; white-space:pre; overflow-x:auto; color:var(--ink);
  background:var(--sunk); border:1px solid var(--line); border-radius:7px;
  padding:11px 13px; margin:0 0 11px}
.worked{width:100%; border-collapse:collapse; margin:0 0 11px; font-size:12.5px}
.worked td{padding:5px 8px; border-top:1px solid var(--line); vertical-align:baseline}
.worked tr:first-child td{border-top:none}
.wlabel{color:var(--ink-2)}
.wexpr{color:var(--ink-3); white-space:nowrap}
.wval{color:var(--ink); font-weight:600; text-align:right; white-space:nowrap}
/* Citations. Kept small and inside the source block, so a claim reads as a
   claim with a reference rather than as a bibliography entry with prose. */
.refs{list-style:none; margin:8px 0 0; padding:0}
.refs li{font-size:12px; line-height:1.5; color:var(--ink-3); padding:5px 0 0;
  border-top:1px solid var(--line)}
.refs li:first-child{border-top:none}
.refs i{color:var(--ink-2); font-style:italic}
.refs a{color:var(--accent); text-decoration:none; white-space:nowrap}
.refs a:hover{text-decoration:underline}
/* A declared absence of source. Marked, not blank: the point is that you can
   see the claim is unbacked without having to notice something missing. */
.csrc.nosrc{border-left-color:var(--caution); background:var(--sunk)}
.csrc.nosrc b{color:var(--caution)}
.pedtrace{display:flex; align-items:center; gap:8px; white-space:nowrap;
  font-size:12px; color:var(--ink-3)}
.pedtrace label{display:flex; align-items:center; gap:4px; cursor:pointer}
.pedtrace label:hover{color:var(--ink-2)}
.pedtrace input{accent-color:var(--accent); cursor:pointer; margin:0}
/* Which photograph stands for the record. Only the first is marked, because
   the first is what gets shown whether it was chosen or defaulted to. */
.photo{position:relative}
.photo.isprimary .photoview{border-color:var(--accent); border-width:2px}
.pribadge{position:absolute; top:5px; left:5px; background:var(--accent);
  color:var(--surface); font-size:10px; font-weight:700; letter-spacing:.03em;
  padding:2px 6px; border-radius:4px}
.prisetbtn{position:absolute; top:5px; left:5px; border:none; cursor:pointer;
  background:rgba(0,0,0,.6); color:#fff; font-size:10px; font-weight:600;
  padding:3px 7px; border-radius:4px; opacity:0; transition:opacity .15s}
.photo:hover .prisetbtn, .prisetbtn:focus-visible{opacity:1}
.prisetbtn:hover{background:var(--accent); color:var(--surface)}
.pedpop .popphoto{display:block; width:100%; height:120px; object-fit:cover;
  border-radius:6px; margin:0 0 9px; background:var(--sunk)}

/* The filter drawer. Collapsed by default; opens itself whenever something is
   switched on, so a shortened list always has a visible reason. */
.filterwrap{margin:0 0 12px; border:1px solid var(--line); border-radius:8px;
  background:var(--surface)}
.filterwrap summary{display:flex; align-items:center; gap:9px; padding:8px 12px;
  cursor:pointer; list-style:none; font-size:12.5px}
.filterwrap summary::-webkit-details-marker{display:none}
.filterwrap summary::before{content:'▸'; color:var(--ink-3); font-size:10px;
  transition:transform .15s}
.filterwrap[open] summary::before{transform:rotate(90deg)}
.filterwrap summary:hover{background:var(--sunk)}
.filterwrap[open] summary{border-bottom:1px solid var(--line)}
.fsummary{font-weight:600; color:var(--ink-2)}
.factive{color:var(--accent); font-weight:600}
.fhint{color:var(--ink-3)}
.filterwrap .filterbar{margin:0; padding:11px 12px}

/* ------------------------------------------------------------------ *
 * Expanding list rows
 * ------------------------------------------------------------------ */

.rowgroup{border-bottom:1px solid var(--line)}
.rowgroup:last-child{border-bottom:none}
.rowgroup .row{width:100%; border:none; background:none; text-align:left; font:inherit;
  color:inherit; cursor:pointer; border-bottom:none}
.rowgroup .row .chev{transition:transform .15s}
.rowgroup .row[aria-expanded="true"]{background:var(--sunk)}
.rowgroup .row[aria-expanded="true"] .chev{transform:rotate(90deg)}
.rowdetail{padding:2px 16px 16px; background:var(--sunk)}
.rowdetail .rd{display:flex; gap:9px; justify-content:space-between; align-items:baseline;
  font-size:12.5px; padding:5px 0; border-top:1px solid var(--line)}
.rowdetail .rd:first-of-type{border-top:none}
.rowdetail .rd span{color:var(--ink-3); white-space:nowrap}
.rowdetail .rd b{color:var(--ink-2); font-weight:600; text-align:right}
.rowdetail .btn{margin-top:11px; width:auto; display:inline-block; padding:6px 16px;
  font-size:13px}
.rowphoto{display:block; width:100%; max-width:260px; height:130px; object-fit:cover;
  border-radius:7px; margin:8px 0 4px; background:var(--surface)}

/* ------------------------------------------------------------------ *
 * Sign-in, and what stands in front of the app
 * ------------------------------------------------------------------ */

#gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.signin-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}

.signin-card .brand {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 18px;
}

.signin-card h1 { margin: 0 0 4px; font-size: 24px; }
.signin-card .sub { color: var(--muted); margin: 0 0 20px; }
.signin-card .btn { width: 100%; margin-top: 4px; }
.signin-card .flag { margin: 4px 0 14px; }

/* ------------------------------------------------------------------ *
 * The unsaved-changes bar
 *
 * Fixed to the bottom rather than the top: the top of every screen already
 * carries the page heading, and a bar that pushes the whole app down on every
 * flaky connection is its own kind of annoying. It is only ever visible when
 * something is genuinely unsaved.
 * ------------------------------------------------------------------ */

.syncbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 10px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.syncbar.warn { background: var(--warn-bg, #4a3b1e); }
.syncbar.stop { background: var(--stop-bg, #4a1e2a); }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
