/* pfin: monochrome, space-age. The interface is only black, white, greys and transparency;
   the only colour on screen comes from the NASA photographs. Problems are marked with white hazard stripes. */
:root {
  --bg: #000;
  --glass: rgba(6, 6, 6, .5);
  --glass-2: rgba(14, 14, 14, .62);
  --panel: #0a0a0a;
  --panel-2: #111112;
  --panel-3: #19191a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f2f2f2;
  --ink-2: #c4c4c4;
  --muted: #7c7c7c;
  --accent: #ffffff;
  --accent-2: #a8a8a8;
  --accent-soft: rgba(255, 255, 255, .07);
  --pos: #ffffff;
  --pos-soft: rgba(255, 255, 255, .09);
  --neg: #8f8f8f;            /* money out: dimmer, with its minus sign */
  --neg-soft: rgba(255, 255, 255, .05);
  --warn: #d0d0d0;
  --warn-soft: rgba(255, 255, 255, .07);
  --alert: #ffffff;          /* something is wrong: bright white + hazard stripes, no colour */
  --alert-soft: rgba(255, 255, 255, .1);
  --hazard: repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 6px, transparent 6px 12px);
  --c1: #ffffff; --c2: #9e9e9e; --c3: #d6d6d6; --c4: #6b6b6b; --c5: #bdbdbd; --c6: #808080; --c7: #e8e8e8; --c8: #4a4a4a;
  --radius: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); display: flex; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
/* full-window backdrop: the current page's photo, crossfading between pages, drifting slowly */
#scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #000; }
#scene i { position: absolute; inset: -6%; z-index: 0; background: var(--img) var(--pos, center) / var(--size, cover) no-repeat;
  filter: saturate(.9) contrast(1.02); opacity: 0; transition: opacity 1.4s var(--ease);
  translate: 0 var(--py, 0px); animation: drift 90s ease-in-out infinite alternate; }
#scene i.on { opacity: .38; animation: drift 90s ease-in-out infinite alternate, sceneIn 3s var(--ease) both; }
/* fixed shading: vignette + darker toward the bottom where the data sits */
#scene::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(140% 100% at 60% 0%, transparent 35%, rgba(0, 0, 0, .5) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, transparent 15%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .8) 100%); }
/* deepens as you scroll into the numbers */
#scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: var(--sd, 0); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.06); } }
@keyframes sceneIn { from { scale: 1.14; } to { scale: 1; } }
body::before { content: none; }
/* faint instrument grid */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
::selection { background: rgba(255, 255, 255, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- sidebar */
.nav {
  width: 228px; flex: none; position: sticky; top: 0; height: 100vh; z-index: 3;
  background: rgba(4, 4, 4, .55); backdrop-filter: blur(22px) saturate(0); -webkit-backdrop-filter: blur(22px) saturate(0);
  border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; font: 600 18px var(--display); padding: 0 10px 8px; letter-spacing: .02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, #8a8a8a 45%, #1a1a1a 75%); box-shadow: 0 0 22px rgba(255, 255, 255, .25); }
.brand .logo svg { display: none; }
.brand .logo::after { /* orbit ring */
  content: ""; position: absolute; inset: -5px -9px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  transform: rotate(-22deg); clip-path: inset(0 0 45% 0); }
.brand-sub { font: 500 9.5px var(--mono); color: var(--muted); letter-spacing: .22em; padding: 0 10px 22px 51px; margin-top: -10px; }
.nav nav { position: relative; display: flex; flex-direction: column; gap: 1px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 4px;
  color: var(--muted); cursor: pointer; text-decoration: none; transition: color .2s, background .2s;
  font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.nav a svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); }
.nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 2px;
  background: #fff; box-shadow: 0 0 12px #fff, 0 0 2px #fff;
}
.nav a kbd { margin-left: auto; font: 500 10px/1 var(--mono); color: #555; border: 1px solid var(--line-2);
  border-radius: 3px; padding: 2px 4px; opacity: 0; transition: opacity .2s; }
.nav:hover a kbd { opacity: 1; }
.nav-foot { margin-top: auto; padding: 12px; color: var(--muted); font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line); }
.nav-foot input, .nav-foot select { width: 74px; margin-left: 6px; }
.fx-sub { font-size: 11px; font-weight: 400; }
.nav-foot .sys { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #5d5d5d; }
.nav-foot .sys i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; box-shadow: none; } }

/* ---------------------------------------------------------------- layout */
main { position: relative; z-index: 1; flex: 1; padding: 28px 40px 80px; min-width: 0; max-width: 1480px; }
.page { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
h1 { font: 500 34px/1.1 var(--display); margin: 0 0 6px; letter-spacing: -.025em; color: #fff; }
h2 { font: 500 11px var(--mono); margin: 0 0 16px; color: var(--ink-2); letter-spacing: .16em; text-transform: uppercase; }
h2::before { content: "▸ "; color: var(--muted); }
h3 { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.sub { color: var(--ink-2); margin: 0 0 26px; max-width: 760px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.g3 > *, .g2 > * { min-width: 0; }

/* ---------------------------------------------------------------- page banner (real NASA photos) */
.banner {
  position: relative; margin: -28px -40px 30px; padding: 78px 40px 26px; min-height: clamp(190px, 26vh, 270px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
/* the banner is a clear window onto the full-window photo (#scene); just a soft shade behind the title */
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 75% at 0% 88%, rgba(0, 0, 0, .55), transparent 100%); }
.banner h1, .banner .sub { animation: titleIn 1s var(--ease) .25s both; }
.banner .sub { animation-delay: .4s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(14px); letter-spacing: .02em; } }
.banner .scan { position: absolute; left: 0; right: 0; height: 1px; top: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); box-shadow: 0 0 14px rgba(255, 255, 255, .5);
  animation: scan 2.4s var(--ease) .2s both; }
@keyframes scan { from { top: 0; opacity: 1; } to { top: 100%; opacity: 0; } }
.banner h1 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.035em; text-shadow: 0 2px 40px rgba(0, 0, 0, .7); }
.banner .sub { margin-bottom: 0; color: #d4d4d4; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.hud { position: absolute; top: 22px; left: 40px; right: 40px; display: flex; gap: 18px; justify-content: space-between;
  font: 500 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 10px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
.hud span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px #fff; margin-right: 10px; vertical-align: 1px; animation: blink 2.6s ease-in-out infinite; }
.banner .credit { position: absolute; right: 40px; bottom: 10px; font: 9.5px var(--mono); letter-spacing: .12em; color: rgba(255, 255, 255, .5); text-shadow: 0 1px 6px #000; text-transform: uppercase; }
main.calm .banner .scan, main.calm .banner h1, main.calm .banner .sub { animation: none; }
main.calm .banner .scan { display: none; }

/* ---------------------------------------------------------------- surfaces */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.tile, .card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0;
  backdrop-filter: blur(20px) brightness(.62); -webkit-backdrop-filter: blur(20px) brightness(.62);
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s, background .25s;
}
/* HUD corner brackets */
.tile::before, .card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: var(--radius);
  background:
    linear-gradient(#fff, #fff) top left / 12px 1px, linear-gradient(#fff, #fff) top left / 1px 12px,
    linear-gradient(#fff, #fff) bottom right / 12px 1px, linear-gradient(#fff, #fff) bottom right / 1px 12px;
  background-repeat: no-repeat; opacity: .35; transition: opacity .25s;
}
.tile:hover::before, .card:hover::before { opacity: .9; }
main.calm .tile, main.calm .card, main.calm .note, main.calm .bar > i { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.tile { overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--glass-2); box-shadow: 0 24px 50px -24px #000, 0 0 30px -10px rgba(255, 255, 255, .12); }
.tile::after { /* hover light that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .08), transparent 40%);
}
.tile:hover::after { opacity: 1; }
.tile .k { color: var(--muted); font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.tile .v { font: 500 28px var(--display); margin-top: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile .d { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile.hero {
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .1), transparent 55%), var(--glass); border-color: var(--line-2); }
.tile.hero .v { font-size: clamp(24px, 2.3vw, 34px); text-shadow: 0 0 24px rgba(255, 255, 255, .25); }
.tile:has(.spark) { padding-bottom: 50px; }
.tile .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; opacity: .9; pointer-events: none; }
.card { margin-bottom: 16px; }
.card:hover { border-color: var(--line-2); }
.chart { position: relative; height: 290px; }
.chart.sm { height: 230px; }

/* ---------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font: 500 10px var(--mono); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .14em; }
td:first-child { white-space: nowrap; }
td.n, th.n { text-align: right; white-space: nowrap; }
td.n { font-family: var(--display); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .035); }
tbody tr:last-child td { border-bottom: 0; }
tr.leaving { animation: leave .3s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(24px); filter: blur(3px); } }
.scroll { overflow-x: auto; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .muted { color: var(--muted); } .warn { color: var(--warn); }
.ok { color: #fff; font-weight: 600; }
code { font: 12px var(--mono); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 3px; color: var(--ink-2); }

/* ---------------------------------------------------------------- controls */
input, select, button, textarea { font: inherit; color: inherit; }
input, select {
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); border-radius: 4px; padding: 7px 10px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #555; }
input:hover, select:hover { border-color: rgba(255, 255, 255, .3); }
input:focus, select:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 0 18px -4px rgba(255, 255, 255, .35); background: #050505; }
input[type=checkbox] { accent-color: #fff; width: 15px; height: 15px; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
select option { background: #0d0d0d; }
button {
  position: relative; background: #f2f2f2; color: #000; border: 1px solid #fff; overflow: hidden;
  border-radius: 4px; padding: 8px 16px; cursor: pointer; font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0); transition: transform .15s var(--ease), box-shadow .25s, background .2s, opacity .2s, color .2s;
}
button::after { /* light sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); opacity: 0;
}
button:hover { background: #fff; box-shadow: 0 0 24px -4px rgba(255, 255, 255, .55); }
button:hover::after { animation: sweep .7s var(--ease); }
@keyframes sweep { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
button:active { transform: scale(.97); }
button.ghost { background: rgba(255, 255, 255, .03); color: var(--ink); border: 1px solid var(--line-2); }
button.ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 18px -6px rgba(255, 255, 255, .35); }
button.ghost::after, button.link::after, button.danger::after, .seg button::after { display: none; }
button.link { background: none; border: 0; color: #fff; padding: 0; font: 500 inherit; font-family: inherit; letter-spacing: 0; text-transform: none;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; box-shadow: none; overflow: visible; }
button.link:hover { text-decoration-color: #fff; box-shadow: none; background: none; }
button.danger { background: transparent; color: var(--muted); border: 1px solid transparent; padding: 3px 9px; box-shadow: none; }
button.danger:hover { color: #fff; background: var(--hazard), rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); box-shadow: none; }
button:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
button:disabled::after { display: none; }
button.tick { width: 34px; height: 30px; padding: 0; letter-spacing: 0; }
button.tick:hover { background: #fff; color: #000; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row + .row { margin-top: 10px; }
.form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; }
.form label, .map-grid label { display: flex; flex-direction: column; gap: 6px; font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.form label input, .form label select, .map-grid select { font: 13.5px "Inter", sans-serif; letter-spacing: 0; text-transform: none; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 3px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  font: 500 10px/1.7 var(--mono); color: var(--ink-2); white-space: nowrap; letter-spacing: .1em; text-transform: uppercase; }
.pill.buy { color: #000; background: #fff; border-color: #fff; }
.pill.sell { color: var(--ink); background: transparent; border-color: rgba(255, 255, 255, .5); }
.pill.dividend { color: var(--ink); background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .5); }
.seg { position: relative; display: inline-flex; background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px; gap: 2px; }
.seg button { background: transparent; color: var(--muted); border: 0; border-radius: 3px; padding: 6px 12px; box-shadow: none; }
.seg button:hover { color: var(--ink); box-shadow: none; background: rgba(255, 255, 255, .05); }
.seg button.on { background: #fff; color: #000; box-shadow: 0 0 18px -4px rgba(255, 255, 255, .5); }
.cat-input { width: 175px; padding: 5px 8px; }
.bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 0; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #6b6b6b, #fff);
  transform-origin: left; animation: grow 1s var(--ease) both; animation-delay: .15s; }
.bar > i.done { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .7); }
@keyframes grow { from { transform: scaleX(0); } }
.prog { display: flex; align-items: center; gap: 10px; }
.prog .bar { flex: 1; height: 5px; min-width: 30px; }
.empty { padding: 48px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); font: 500 18px var(--display); }
.note { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-left: 2px solid #fff; border-radius: 4px; padding: 12px 14px;
  margin-bottom: 16px; font-size: 13px; animation: rise .4s var(--ease) both; backdrop-filter: blur(10px); }
.note.warn { border-left-color: #fff; background: var(--hazard), rgba(255, 255, 255, .05); }
.badge:not(:empty) { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 3px; text-align: center;
  background: #fff; color: #000; font: 700 10px/1.6 var(--mono); letter-spacing: 0;
  box-shadow: 0 0 14px rgba(255, 255, 255, .5); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 3px rgba(255, 255, 255, .15); } }
.badge.warn:not(:empty) { background: transparent; color: #fff; border: 1px solid #fff; box-shadow: none; animation: none; }
tr.sel { background: rgba(255, 255, 255, .06) !important; }
tr.flag td:first-child { box-shadow: inset 2px 0 0 #fff; }
.big-in { font: 500 24px var(--display); padding: 9px 12px; width: 100%; letter-spacing: -.02em; }
.desc { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- import */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sample { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: rgba(0, 0, 0, .4); }
.sample table { font-size: 12px; }
.sample th { position: sticky; top: 0; background: #0d0d0d; }
.sample th.mapped { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .6); }
input[type=file] { padding: 6px; }
input[type=file]::file-selector-button { background: var(--panel-3); color: var(--ink); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 5px 10px; margin-right: 10px; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------- skeleton & toast */
.skel { border-radius: var(--radius); background: linear-gradient(90deg, rgba(255, 255, 255, .02) 0%, rgba(255, 255, 255, .07) 40%, rgba(255, 255, 255, .02) 80%);
  background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 50; display: flex; align-items: center; gap: 10px;
  background: rgba(10, 10, 10, .9); backdrop-filter: blur(14px); color: var(--ink); border: 1px solid var(--line-2);
  padding: 12px 16px; border-radius: 4px; max-width: 440px; box-shadow: 0 20px 50px -10px #000;
  font: 12px var(--mono); letter-spacing: .03em;
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none;
}
#toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; flex: none; }
#toast.err { border-color: #fff; background: var(--hazard), rgba(10, 10, 10, .92); }
#toast.err::before { content: "!"; width: 16px; height: 16px; display: grid; place-items: center; background: #fff; color: #000; font-weight: 700; box-shadow: none; }
#toast.show { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- statements */
.pill.okp { color: #000; background: #fff; border-color: #fff; }
.pill.warnp { color: var(--ink); background: transparent; border-color: rgba(255, 255, 255, .45); border-style: dashed; }
.pill.badp { color: #fff; background: var(--hazard), rgba(255, 255, 255, .08); border-color: #fff; }
#kindSeg { margin-bottom: 12px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden;
  padding: 54px 16px; margin-bottom: 16px; border: 1px dashed rgba(255, 255, 255, .3); border-radius: var(--radius); cursor: pointer;
  background: #000; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; text-align: center; isolation: isolate; }
.drop::before { /* Apollo 11 bootprint: the first step */
  content: ""; position: absolute; inset: 0; z-index: -2; background: url(/static/img/bootprint.jpg) center 62% / cover;
  filter: brightness(.6); transition: transform 1.2s var(--ease), filter .4s; }
.drop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .85)); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px;
  transition: transform .3s var(--ease); filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6)); }
.drop b { font: 500 20px var(--display); letter-spacing: -.01em; }
.drop .muted { color: #bbb; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.drop:hover, .drop.over { border-color: #fff; box-shadow: 0 0 40px -12px rgba(255, 255, 255, .4); }
.drop:hover::before, .drop.over::before { transform: scale(1.06); filter: brightness(.85); }
.drop.over { transform: scale(1.01); }
.drop:hover svg, .drop.over svg { transform: translateY(-4px); }

#queue .card { animation: none; }
.stmt { border-left: 2px solid var(--line-2); transition: border-color .3s, opacity .3s; }
.stmt.ok { border-left-color: #fff; }
.stmt.warn { border-left-color: #8a8a8a; }
.stmt.bad, .stmt.done.bad { border-left: 4px solid #fff; background: var(--hazard), var(--glass); }
.stmt.done { border-left-color: #fff; padding-top: 14px; padding-bottom: 14px; }
.stmt.busy { opacity: .7; }
.stmt.busy .stmt-logo { animation: busyPulse 1.2s ease-in-out infinite; }
@keyframes busyPulse { 50% { opacity: .35; } }
.stmt-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stmt-head h2 { margin: 0; font: 500 16px var(--display); letter-spacing: -.01em; text-transform: none; color: #fff; }
.stmt-head h2::before { content: none; }
.stmt-head .muted { font-size: 12.5px; }
.stmt-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono);
  background: radial-gradient(circle at 35% 30%, #fff, #9a9a9a 55%, #2a2a2a); color: #000; box-shadow: 0 0 16px rgba(255, 255, 255, .2); }
.stmt-logo.ok { background: transparent; color: #fff; font-size: 18px; border: 1px solid #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .3); }
.stmt-logo.bad { background: #fff; color: #000; font-size: 18px; border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.facts > div { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; }
.facts span { color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.facts b { font: 500 19px var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.facts b span { font: inherit; letter-spacing: inherit; text-transform: none; }
.facts em { color: var(--muted); font-style: normal; font-size: 12px; }
.acct-pick { margin: 12px 0 4px; }
.checks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 4px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.checks li i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); margin-top: 1px; }
.checks li div { display: flex; flex-direction: column; min-width: 0; }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li span { color: var(--muted); font-size: 12.5px; }
.checks .ok i { background: #fff; color: #000; box-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.checks .bad { background: var(--hazard), rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .55); }
.checks .bad i { background: #fff; color: #000; border-radius: 2px; }
.checks .bad b { color: #fff; }
.checks .warn i { border: 1px dashed #bbb; color: #ddd; }
.checks .info i { border: 1px solid #666; color: #bbb; }
details summary { cursor: pointer; color: var(--ink-2); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; user-select: none; }
details summary .muted { letter-spacing: .04em; text-transform: none; font-family: "Inter", sans-serif; }
details summary:hover { color: #fff; }
details[open] summary { margin-bottom: 4px; }

.cov-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.cov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cov-legend i, .cov-cells i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.cov-row { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 6px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cov-name { display: flex; flex-direction: column; min-width: 0; }
.cov-name .muted { font-size: 12px; }
.cov-cells, .cov-years { display: grid; grid-template-columns: repeat(var(--n), minmax(8px, 26px)); gap: 4px; }
.cov-cells i { width: auto; height: 22px; border-radius: 2px; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 18ms); transition: transform .15s; }
main.calm .cov-cells i { animation: none; }
.cov-years { font: 10px var(--mono); color: var(--muted); margin-top: 4px; letter-spacing: .08em; }
.cov-years span { white-space: nowrap; }
i.covered { background: #f2f2f2; box-shadow: 0 0 8px rgba(255, 255, 255, .25); }
i.partial { background: linear-gradient(135deg, #f2f2f2 50%, transparent 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
i.loose { background: #7a7a7a; }
i.missing { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
i.pending { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cov-cells i:hover { transform: scaleY(1.25); }
.cov-cells i.none { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cov-group { border-top: 1px solid var(--line); padding: 8px 0 0; }
.cov-group > summary { padding: 8px 0; }
.cov-group .cov-row:first-of-type { border-top: 0; }
.cov-sub { border-top: 1px solid var(--line); padding: 14px 0 2px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.issues { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.issues li { padding-left: 18px; position: relative; color: var(--ink-2); }
.issues li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; }
.issues li.gap::before, .issues li.jump::before, .issues li.breaks::before { background: #fff; box-shadow: 0 0 8px #fff; border-radius: 1px; transform: rotate(45deg); }

/* ---------------------------------------------------------------- self improvement: vocabulary */
.nav-group { font: 500 9.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #4d4d4d; padding: 14px 12px 6px; }
.nav-group:first-child { padding-top: 0; }
.tile .v .unit { font: 500 12px var(--mono); color: var(--muted); margin-left: 8px; letter-spacing: .1em; text-transform: uppercase; }
.vtabbar { justify-content: space-between; margin: 4px 0 16px; }
.fine { font-size: 12px; }
.form.one { grid-template-columns: 1fr; }
button.talk { width: 100%; text-align: left; text-transform: none; letter-spacing: 0; font: 500 13px "Inter", sans-serif; }
textarea { width: 100%; background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); border-radius: 4px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.g3.side-wide { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: start; }
.g3.side-wide > div > .card + .card { margin-top: 16px; }

/* flashcard */
.flash { max-width: 760px; margin: 0 auto; padding: 26px 34px 20px; text-align: center; }
.fc-top { display: flex; justify-content: space-between; font: 500 10.5px var(--mono); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.fc-progress { height: 2px; background: rgba(255, 255, 255, .08); margin: 12px 0 0; border-radius: 2px; overflow: hidden; }
.fc-progress i { display: block; height: 100%; background: #fff; box-shadow: 0 0 10px #fff; transition: width .5s var(--ease); }
.fc-term { font: 500 clamp(40px, 6vw, 68px)/1.05 var(--display); letter-spacing: -.03em; margin: 46px 0 14px; color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, .25); animation: rise .5s var(--ease) both; }
.fc-hint { color: var(--muted); margin: 0 0 30px; }
.fc-ans { animation: rise .45s var(--ease) both; text-align: left; margin-top: 8px; }
.fc-pos { text-align: center; font: 500 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fc-meaning { font: 400 19px/1.45 var(--display); text-align: center; margin: 10px auto 18px; max-width: 600px; color: #fff; border-radius: 4px; padding: 4px 8px; outline: none; }
.fc-meaning:hover { background: rgba(255, 255, 255, .04); }
.fc-meaning:focus { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line-2); }
.fc-ex { margin: 0 0 18px; padding: 12px 16px; border-left: 2px solid #fff; background: rgba(255, 255, 255, .04); color: var(--ink-2); font-style: italic; border-radius: 0 4px 4px 0; }
.fc-ex cite { display: block; margin-top: 6px; font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.fc-mine { display: block; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.fc-mine .muted { text-transform: none; letter-spacing: 0; font-family: "Inter", sans-serif; }
.fc-mine textarea { margin-top: 6px; font: 14px "Inter", sans-serif; letter-spacing: 0; text-transform: none; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.grades.one { grid-template-columns: minmax(0, 320px); justify-content: center; margin-top: 0; }
.grades button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 10px; }
.grades button small { font: 500 9.5px var(--mono); letter-spacing: .14em; opacity: .6; }
.fc-foot { margin-top: 16px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* his words */
.his-head h2 { text-transform: none; letter-spacing: -.01em; font: 500 20px var(--display); color: #fff; }
.his-head h2::before { content: none; }
.his-row { justify-content: space-between; flex-wrap: nowrap; gap: 20px; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: rgba(0, 0, 0, .25); transition: border-color .2s, background .2s; }
.frame:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.frame.have { border-color: rgba(255, 255, 255, .35); }
.fr-top, .hw-top { display: flex; align-items: center; gap: 10px; }
.fr-name { font: 500 19px/1.3 var(--display); color: #fff; flex: 1; letter-spacing: -.01em; }
.fr-use { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.fr-use b { color: #fff; font-weight: 500; }
.frame blockquote, .hw blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .03);
  color: var(--ink-2); font-size: 13.5px; line-height: 1.55; border-radius: 0 4px 4px 0; }
.frame blockquote b, .hw blockquote b { color: #fff; font-weight: 600; }
.frame blockquote cite, .hw blockquote cite { display: block; margin-top: 5px; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #5f5f5f; font-style: normal; }
.frame blockquote.more { display: none; }
.frame.open blockquote.more { display: block; }
.fr-more { margin-top: 8px; font-size: 12px; color: var(--muted); }
.frame.have .tick, .hw.have .tick { background: #fff; color: #000; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 6px; }
.hw { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: rgba(0, 0, 0, .25); transition: border-color .2s; }
.hw:hover { border-color: var(--line-2); }
.hw.have { border-color: rgba(255, 255, 255, .35); }
.hw-term { font: 500 21px var(--display); color: #fff; letter-spacing: -.015em; flex: 1; }
.hw-m { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.hw-m i { font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-right: 4px; }
.busy { width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#vtabs button small { opacity: .6; margin-left: 4px; }

/* before & after */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 14px; }
.ba { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; background: rgba(0, 0, 0, .3); transition: border-color .2s; }
.ba:hover { border-color: var(--line-2); }
.ba.have { border-color: rgba(255, 255, 255, .35); }
.ba.have .tick { background: #fff; color: #000; }
.ba-cat { display: flex; align-items: center; justify-content: flex-end; float: right; margin: 0 0 4px 10px; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ba-before, .ba-after, .ba-up { display: flex; align-items: baseline; gap: 10px; line-height: 1.4; }
.ba-before span, .ba-after span, .ba-up span { flex: none; width: 54px; font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6a6a6a; }
.ba-before { color: #8d8d8d; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); font-size: 14px; }
.ba-before span { text-decoration: none; }
.ba-after { color: #fff; font: 500 17px/1.35 var(--display); margin-top: 4px; letter-spacing: -.005em; }
.ba-up { color: var(--ink); font-size: 14px; margin-top: 6px; font-style: italic; }
.ba-up span { font-style: normal; }
.say { margin-left: auto; flex: none; padding: 2px 7px; font-size: 9px; background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 3px; }
.say:hover { color: #fff; border-color: #fff; }
.ba-why { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
#etext { width: 100%; font: 15px/1.5 "Inter", sans-serif; }
.ec-text { margin-top: 12px; padding: 12px 14px; border-radius: 4px; background: rgba(255, 255, 255, .04); font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.ec-text mark { background: transparent; color: #fff; border-bottom: 2px solid #fff; font-weight: 600; }
.ec-n { margin-top: 12px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ec-ok { margin-top: 12px; color: var(--ink-2); }
.fc-term.long { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
.fc-term.before { margin-top: 10px; color: #bdbdbd; }
.fc-why { text-align: center; color: var(--ink-2); max-width: 560px; margin: 0 auto 18px; font-size: 14px; line-height: 1.55; }
#ecats { flex-wrap: wrap; }

/* my dictionary */
.dict-add input { flex: 1; font: 16px "Inter", sans-serif; padding: 11px 14px; }
.dict { padding: 6px 22px 14px; }
.de-letter { font: 500 12px var(--mono); letter-spacing: .2em; color: var(--muted); padding: 18px 0 4px; border-bottom: 1px solid var(--line); }
.de { padding: 16px 0; border-bottom: 1px solid var(--line); }
.de:last-child { border-bottom: 0; }
.de-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.de-word { font: 500 24px var(--display); color: #fff; letter-spacing: -.015em; }
.de-ph { color: var(--muted); font-size: 13px; }
.de-pos { font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.de-used { padding: 5px 10px; font-size: 11px; }
.de-used b { color: #fff; margin-left: 4px; }
.de-mean { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.de-senses { margin: 4px 0 2px; font-size: 12.5px; }
.de-senses summary { cursor: pointer; color: var(--muted); }
.de-senses button { display: block; text-align: left; margin: 6px 0 0 14px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.de-senses button:hover { color: #fff; }
.de-senses i { font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-right: 4px; }
.de-row { display: flex; gap: 14px; margin-top: 6px; font-size: 13.5px; line-height: 1.5; }
.de-row > span { flex: none; width: 92px; padding-top: 2px; font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6a6a6a; }
.de-row > div { flex: 1; min-width: 0; }
.de .edit { outline: none; border-radius: 3px; padding: 2px 4px; margin: -2px -4px; min-height: 1.5em; }
.de .edit:hover { background: rgba(255, 255, 255, .04); }
.de .edit:focus { background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px var(--line-2); }
.de .edit:empty::before { content: attr(data-ph); color: #4f4f4f; }
.dfix { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dfix s { color: #8d8d8d; } .dfix b { color: #fff; font-weight: 500; flex: 1; }
@media (max-width: 900px) { .de-row { flex-direction: column; gap: 2px; } .dict { padding: 4px 14px 10px; } }

/* deck */
.deck td { vertical-align: top; }
.deck .term { font: 500 16px var(--display); color: #fff; }
.deck .edit { outline: none; border-radius: 3px; padding: 2px 4px; margin: -2px -4px; }
.deck .edit:hover { background: rgba(255, 255, 255, .04); }
.deck .edit:focus { background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px var(--line-2); }
.deck .edit.mine { color: var(--ink-2); margin-top: 4px; }
.deck .edit.mine:empty::before { content: attr(data-ph); color: #4f4f4f; }
.deck .ex { margin-top: 4px; font-style: italic; }
.pill.st-mastered { background: #fff; color: #000; border-color: #fff; }
.pill.st-new { border-style: dashed; }
@media (max-width: 900px) {
  .g3.side-wide { grid-template-columns: 1fr; }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .flash { padding: 20px 18px; }
  .frames, .hw-grid, .ba-grid { grid-template-columns: 1fr; }
  .his-row { flex-wrap: wrap; }
  .nav-group { display: none; }
}

/* ---------------------------------------------------------------- responsive & motion */
.g3.side { grid-template-columns: minmax(0, 1fr) 240px; }
.g3.side .desc { max-width: 260px; }
.g3.side .cat-input { width: 150px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  body { flex-direction: column; }
  .nav { width: auto; height: auto; position: sticky; flex-direction: row; align-items: center; padding: 10px 16px; overflow-x: auto; }
  .nav nav { flex-direction: row; } .nav a kbd, .nav a.active::before, .brand-sub { display: none; }
  .brand { padding: 0 12px 0 0; } .nav-foot { display: none; }
  main { padding: 20px 16px 48px; }
  .banner { margin: -20px -16px 20px; padding: 64px 16px 20px; min-height: 170px; }
  .hud { left: 16px; right: 16px; } .hud span:last-child { display: none; }
  .banner .credit { display: none; }
  .banner h1 { font-size: 30px; }
  .g2, .g3, .g3.side { grid-template-columns: 1fr; }
  .cov-row { grid-template-columns: 1fr; }
}

/* quick sort (Spending) */
.qs-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qs-what { min-width: 0; flex: 1 1 220px; }
.qs-what b { margin-right: 8px; }
.qs-ex { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.qs-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qs-chips button, .qs-chips select { padding: 5px 10px; font-size: 13px; }
.qs-chips .cat-input { width: 240px; }
.qs-row.done { opacity: .55; }
.qs-row.qs-open { background: rgba(255, 255, 255, .03); padding: 10px 8px; }
.qs-row.qs-open .cat-input { width: 160px; }
.qs-row.qs-open table { max-height: 360px; }

/* receipts (static/receipts.js) */
.rc-grid { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 16px; align-items: start; }
.rc-img img { width: 100%; border-radius: 4px; display: block; background: #fff; }
.rc-ocr { white-space: pre-wrap; font: 11px var(--mono); color: var(--muted); max-height: 320px; overflow: auto; }
.rc-items input, .rc-items select { width: 100%; min-width: 0; }
.rc-items td:first-child { min-width: 180px; }
.rc-mark { margin-right: 6px; text-decoration: none; font-size: 12px; opacity: .35; }
.rc-mark.has, .rc-mark:hover { opacity: 1; }
@media (max-width: 820px) { .rc-grid { grid-template-columns: 1fr; } }
