/* Node Review: base, controls and the shell. Colours, sizes and curves come from tokens.css only.
   Calm and spacious (REPORTS_UI_PLAN.md): space and soft surfaces group things, lines stay faint,
   floating layers are translucent with soft shadows, one font carries the hierarchy. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 var(--fs)/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  min-height: 100vh;
}
::selection { background: var(--accent-wash); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .18); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--text-strong); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--fs-l); line-height: 1.25; }
h2 { font-size: var(--fs-m); }
h3 { font-size: var(--fs-s); font-weight: 500; color: var(--text-3); letter-spacing: 0; margin: var(--s5) 0 var(--s2); }
.dim { color: var(--text-2); }
.faint { color: var(--text-3); }
.num, .tbl, .metric .v { font-variant-numeric: tabular-nums; }
.err { color: var(--neg); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.loading { padding: var(--s6); text-align: center; color: var(--text-3); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-wash), 0 0 0 1px var(--accent-line); border-radius: var(--r-s); }

/* ---------- controls ---------- */
button, select, input, textarea { font: inherit; color: inherit; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control); padding: 0 var(--s3); border-radius: var(--r-s);
  background: var(--fill-2); border: 1px solid var(--line); color: var(--text);
  font-size: var(--fs-s); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 80ms var(--ease);
}
button:hover:not(:disabled), .btn:hover { background: var(--fill-3); text-decoration: none; }
button:active:not(:disabled), .btn:active { transform: scale(.98); }
button:disabled { opacity: .4; cursor: default; }
button.primary, .btn.primary { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); }
button.primary:hover:not(:disabled) { background: rgba(0, 190, 255, .2); }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
button.ghost:hover:not(:disabled) { background: var(--fill-2); color: var(--text); }
button.icon { width: var(--control); padding: 0; }
button svg, .btn svg { width: 16px; height: 16px; }

input[type=text], input[type=search], input[type=date], input[type=number], select, textarea {
  height: var(--control); padding: 0 10px; border-radius: var(--r-s);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { height: auto; padding: 8px 10px; }
input::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
select {
  appearance: none; padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
select option { background: var(--bg-raised); color: var(--text); }
input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; }
label.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }

/* segmented control: View | Edit and other two-to-four-way switches */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 9px; background: var(--fill-2); border: 1px solid var(--line); }
.seg button { height: 24px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-weight: 500; }
.seg button:hover:not(:disabled) { background: transparent; color: var(--text); }
.seg button.on { background: rgba(255, 255, 255, .13); color: var(--text-strong); box-shadow: var(--shadow-1); }

/* switch */
.switch { position: relative; display: inline-block; width: 32px; height: 18px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 9px; background: var(--fill-3); transition: background var(--dur) var(--ease); cursor: pointer; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(14px); }

/* tabs: underlined text, the mockups' main and report tabs */
.tabs { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: auto; padding: 10px 12px 9px; border: 0; border-radius: 0; background: transparent;
  color: var(--text-3); font-size: var(--fs); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover:not(:disabled) { background: transparent; color: var(--text-2); }
.tab.on { color: var(--text-strong); border-bottom-color: rgba(255, 255, 255, .8); }
.tabs.sub .tab { font-size: var(--fs-s); padding: 8px 12px 7px; }
.tabs.sub .tab.on { border-bottom-color: var(--accent); }
.tab.add { color: var(--text-3); font-size: 17px; padding: 4px 10px 6px; }

/* chips and pills */
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 11px;
  border-radius: var(--r-pill); background: var(--accent-soft); border: 1px solid rgba(0, 190, 255, .3);
  color: var(--accent); font-size: var(--fs-s); font-weight: 500; white-space: nowrap;
}
.chip .x { all: unset; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; opacity: .6; font-size: 14px; line-height: 1; }
.chip .x:hover { opacity: 1; background: rgba(0, 190, 255, .18); }
.chip.add { background: transparent; border-color: var(--line-3); color: var(--text-2); padding: 0 12px; cursor: pointer; height: 28px; }
.chip.add:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); background: transparent; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500; background: var(--fill-2); color: var(--text-2); white-space: nowrap; }
.pill.ok { color: var(--pos); background: rgba(92, 184, 104, .12); }
.pill.preview { color: var(--warn); background: var(--warn-wash); }
.nb {
  display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: var(--r-xs);
  background: var(--warn-wash); color: var(--warn); font-size: 10px; font-weight: 600; letter-spacing: .05em; cursor: help;
}
.warn { color: var(--warn); cursor: help; }
.gap-good { color: var(--pos); } .gap-ok { color: var(--warn); } .gap-bad { color: var(--neg); }

/* action chips (reports-dashboard.html) */
.act { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.act.r { background: var(--act-raise-bg); color: var(--act-raise); }
.act.c { background: var(--act-call-bg); color: var(--act-call); }
.act.b { background: var(--act-bet-bg); color: var(--act-bet); }
.act.f { background: var(--act-fold-bg); color: var(--act-fold); }
.act.x { background: var(--act-check-bg); color: var(--act-check); }

/* cards: the four-colour deck, rank and suit as text on a coloured face */
.cards { display: inline-flex; gap: 2px; white-space: nowrap; vertical-align: middle; }
.c {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  min-width: 20px; height: 22px; padding: 0 3px; border-radius: 4px;
  color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.c i { font-style: normal; font-size: .82em; opacity: .85; font-weight: 400; }
.c.s { background: var(--suit-s); } .c.h { background: var(--suit-h); }
.c.c { background: var(--suit-c); } .c.d { background: var(--suit-d); }
.c.back { background: var(--card-back); color: transparent; }
.cards.big { gap: 4px; }
.cards.big .c { min-width: 38px; height: 52px; font-size: 22px; border-radius: 6px; flex-direction: column; gap: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 10px rgba(0, 0, 0, .35); }
.cards.big .c i { font-size: 15px; }

/* surfaces */
.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s5); min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.group { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.banner { display: flex; align-items: center; gap: var(--s2); padding: 10px 14px; border-radius: var(--r); background: var(--warn-wash); color: var(--warn); font-size: var(--fs-s); }

/* metric cells: one rounded group, hairlines between cells (the board's ribbon) */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.metric { background: var(--bg-1); padding: 12px 16px 11px; min-width: 0; }
.metric .v { display: block; font-size: 19px; font-weight: 600; color: var(--text-strong); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .v.big { font-size: 24px; }
.metric .k { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric a.v, .metric .v a { cursor: pointer; color: inherit; }
.metric .v a:hover { color: var(--accent); text-decoration: none; }
.metric a.v:hover { text-decoration: none; color: var(--accent); }
.metric .v.pos { color: var(--pos); } .metric .v.neg { color: var(--neg); }

/* tables */
.tblwrap { overflow-x: auto; }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; }
.tbl th {
  position: sticky; top: 0; z-index: 2; background: var(--bg-1);
  text-align: left; font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
  padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl tbody tr { transition: background var(--dur) var(--ease); }
.tbl tbody tr:hover td { background: var(--fill-1); }
.tbl tr.sel td { background: var(--accent-soft); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.sum td { background: var(--fill-1); color: var(--text-strong); font-weight: 600; border-top: 1px solid var(--line-2); }
.tbl td.lead { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.tbl .name { color: var(--text); cursor: pointer; }
.tbl .name:hover { color: var(--accent); }
.tbl a { color: inherit; }
.tbl a:hover { color: var(--accent); text-decoration: none; }
.tbl.pad-l th:first-child, .tbl.pad-l td:first-child { padding-left: 20px; }

/* popover: floating, translucent, soft shadow */
.pop {
  position: fixed; z-index: 60; min-width: 220px; max-width: calc(100vw - 24px);
  background: rgba(26, 32, 29, .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-pop);
  padding: var(--s2); animation: pop-in var(--dur) var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.pop .item { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--text); font-weight: 400; font-size: var(--fs); justify-content: flex-start; }
.pop .item:hover:not(:disabled) { background: var(--accent-wash); }
.pop .item .faint { margin-left: auto; font-size: var(--fs-s); }
.pop .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.pop .cap { font-size: var(--fs-xs); color: var(--text-3); padding: 6px 10px 4px; }

/* ---------- the shell: menu | stage, with the hand browser over the right edge ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns var(--dur-slow) var(--ease); }
:is(.app.collapsed, .app.editing) { grid-template-columns: var(--rail-w-min) minmax(0, 1fr); }

.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 1px; padding: 14px 10px 12px;
  background: var(--bg-deep); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px; margin-bottom: 10px; }
.brand .mark {
  display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(145deg, #2fd0ff, #0089c2); color: #fff; box-shadow: 0 2px 8px rgba(0, 150, 210, .35);
}
.brand .mark svg { width: 16px; height: 16px; }
.brand .name { font-size: 14px; font-weight: 600; color: var(--text-strong); letter-spacing: -.01em; white-space: nowrap; }
.brand .collapse { margin-left: auto; }
.nav-cap { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); padding: 14px 10px 6px; white-space: nowrap; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--fill-2); color: var(--text); text-decoration: none; }
.nav-item.on { background: var(--accent-wash); color: var(--text-strong); }
.nav-item.on svg { color: var(--accent); }
.nav-item .tag { margin-left: auto; font-size: 10px; color: var(--text-3); font-weight: 500; }
.nav-item.soon { cursor: default; opacity: .5; }
.nav-item.soon:hover { background: transparent; color: var(--text-2); }
.nav-sub { height: 28px; padding-left: 38px; font-weight: 400; font-size: 12.5px; }
.nav-sub.add { color: var(--text-3); }
.rail .spacer { flex: 1; min-height: 16px; }
.rail .datainfo { font-size: var(--fs-xs); color: var(--text-3); padding: 8px 10px 0; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.app.collapsed, .app.editing) .rail { padding-left: 10px; padding-right: 10px; }
:is(.app.collapsed, .app.editing) .rail .t, :is(.app.collapsed, .app.editing) .nav-cap, :is(.app.collapsed, .app.editing) .nav-sub, :is(.app.collapsed, .app.editing) .brand .name,
:is(.app.collapsed, .app.editing) .nav-item .tag, :is(.app.collapsed, .app.editing) .datainfo { display: none; }
:is(.app.collapsed, .app.editing) .nav-item { justify-content: center; padding: 0; }
:is(.app.collapsed, .app.editing) .brand { flex-direction: column; height: auto; gap: 10px; padding: 0; }
:is(.app.collapsed, .app.editing) .brand .collapse { margin: 0; }

.stage { min-width: 0; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
  min-height: 60px; padding: 12px 28px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.bar .menu { display: none; }
.bar .title { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-right: 6px; }
.bar .title h1 { font-size: 17px; white-space: nowrap; }
.who { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 4px; border-radius: var(--r-pill); background: var(--fill-2); color: var(--text); font-weight: 500; font-size: var(--fs-s); cursor: pointer; border: 0; }
.who:hover:not(:disabled) { background: var(--fill-3); }
.who .av { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--text-strong); font-size: 10.5px; font-weight: 600; }
.who .site { color: var(--text-3); font-weight: 400; }
.bar .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
main { flex: 1; min-width: 0; padding: 24px 28px 48px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s4); }
.page-head .dim { font-size: var(--fs-s); }

/* the filter editor (a popover under "+ Filter") */
.filters { width: 380px; padding: 14px; }
.filters .row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 10px; }
.filters .row > span { color: var(--text-2); font-size: var(--fs-s); }
.filters .row select, .filters .row input { width: 100%; }
.filters .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggles { display: flex; flex-wrap: wrap; gap: 4px; }
.toggles button { height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-s); background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; }
.toggles button:hover:not(:disabled) { background: var(--fill-2); color: var(--text); }
.toggles button.on { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); }
.filters .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters .words { font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; }

/* the hand browser: a translucent panel over the right edge */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(var(--drawer-w), 100vw);
  display: flex; flex-direction: column;
  background: rgba(22, 27, 25, .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-left: 1px solid var(--line-2); box-shadow: var(--shadow-panel);
  transform: translateX(104%); transition: transform var(--dur-slow) var(--ease);
}
.drawer.open { transform: none; }
.drawer .dh { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.drawer .dh h2 { font-size: var(--fs-m); }
.drawer .dh .dim { font-size: var(--fs-s); margin-top: 2px; }
.drawer .dh .close { margin-left: auto; }
.drawer .dt { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-s); color: var(--text-2); }
.drawer .db { flex: 1; overflow-y: auto; padding: 8px 10px 24px; }
.hand-sum { display: block; padding: 12px 10px; border-radius: var(--r); cursor: pointer; color: var(--text); transition: background var(--dur) var(--ease); }
.hand-sum + .hand-sum { border-top: 1px solid var(--line); }
.hand-sum:hover { background: var(--fill-2); text-decoration: none; }
.hand-sum .top { display: flex; align-items: center; gap: 8px; }
.hand-sum .top .meta { color: var(--text-3); font-size: var(--fs-xs); }
.hand-sum .top .res { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hand-sum .top .meta { min-width: 0; }
.hand-sum .streets { margin-top: 10px; }
.drawer .dt .count { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer .dt select { height: 26px; font-size: var(--fs-s); padding-left: 8px; }
.drawer .dt .seg button { height: 20px; padding: 0 9px; font-size: var(--fs-xs); }
.drawer .more-row { display: flex; justify-content: center; padding: 14px 0 4px; }

/* a hand street by street (handline.js): the hand browser's summaries and the loader's line */
.streets { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 6px 10px; font-size: var(--fs-s); align-items: start; }
.streets .st { color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; line-height: 22px; white-space: nowrap; }
.streets .line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--text-2); min-height: 22px; }
.streets .line > .cards { margin-right: -2px; }
.streets .pot { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.streets .pa { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 6px; transition: opacity var(--dur) var(--ease); }
.streets .pa b { color: var(--text-2); font-weight: 500; font-size: var(--fs-xs); }
.streets .pa.me b { color: var(--text-strong); font-weight: 600; }
.streets .pa.at .act { box-shadow: 0 0 0 1.5px currentColor; }
.streets .pa.later { opacity: .32; }
.streets .pa.now b { color: var(--text-strong); }
.streets .pa.now .act { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.streets [data-seq], .streets [data-street] { cursor: pointer; }
.streets [data-seq]:hover .act { filter: brightness(1.25); }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity var(--dur-slow) var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }

/* sign-in (online only) */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin .card { width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 36px 28px 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-pop); }
.signin .mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff;
  background: linear-gradient(145deg, #2fd0ff, #0089c2); box-shadow: 0 2px 8px rgba(0, 150, 210, .35); }
.signin .mark svg { width: 26px; height: 26px; }
.signin p { margin: 0; font-size: var(--fs-s); }
.signin button { height: 36px; padding: 0 18px; margin-top: 8px; }
.signin .err:empty { display: none; }
.rail .signout { margin-top: 6px; border: 0; background: transparent; width: 100%; font-size: var(--fs); }

/* phone: the menu becomes a drawer from the left */
@media (max-width: 860px) {
  .app, :is(.app.collapsed, .app.editing) { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 55; width: 260px; transform: translateX(-104%); transition: transform var(--dur-slow) var(--ease); box-shadow: 24px 0 64px rgba(0, 0, 0, .5); }
  .app.menu-open .rail { transform: none; }
  :is(.app.collapsed, .app.editing) .rail .t, :is(.app.collapsed, .app.editing) .nav-cap, :is(.app.collapsed, .app.editing) .nav-sub, :is(.app.collapsed, .app.editing) .brand .name, :is(.app.collapsed, .app.editing) .datainfo { display: revert; }
  :is(.app.collapsed, .app.editing) .nav-item { justify-content: flex-start; padding: 0 10px; }
  :is(.app.collapsed, .app.editing) .brand { flex-direction: row; }
  .brand .collapse { display: none; }
  .bar { padding: 10px 16px; }
  .bar .menu { display: inline-flex; }
  main { padding: 16px 16px 40px; }
  .filters { width: calc(100vw - 24px); }
}
