/* TEAM//TOOL - NTR//DNI design language: dark paper, ink lines, Geist 900
   uppercase headings, Geist Mono for data, bloom hover, the team's colours
   (theme.css) as the only accent. */

:root {
  --paper: #0d0d0d;
  --surface: #151515;
  --surface-2: #1d1d1c;
  --surface-3: #272725;
  --ink: #eceae2;
  --muted: #9b9992;
  --faint: #64625c;
  --rule: #2e2e2b;
  --line: .125rem;
  --good: #64eab0;
  --bad: #ff675d;
  --warn: #f2d06b;
  --blue: #5aa8ff;
  --red: #ff6159;
  --lean: 24deg;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --disp: "Geist", "Arial Black", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --side: 15.5rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scrollbar-color: var(--surface-3) var(--paper); scrollbar-width: thin; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 14px/1.45 var(--disp); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.035em; }
h2 { font-size: 15px; letter-spacing: .02em; }
h3 { font-size: 13px; letter-spacing: .04em; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--line) solid var(--accent-ink); outline-offset: 2px; }

.world-grid {
  position: fixed; inset: -3%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 30%, transparent 0 30%, color-mix(in srgb, var(--paper) 92%, transparent) 75%),
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) .0625rem, transparent .0625rem),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) .0625rem, transparent .0625rem);
  background-size: auto, 3.25rem 3.25rem, 3.25rem 3.25rem;
}
#app { position: relative; z-index: 1; }

/* ------------------------------------------------------------ bloom ---- */
.btn, .chip, .seg button, .nav a, .icon-btn, .sel, .tab {
  position: relative; z-index: 0; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
:is(.btn, .chip, .seg button, .nav a, .icon-btn, .sel, .tab)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bloom, var(--ink));
  opacity: 0; transform: scale(.1) rotate(12deg); transition: transform .5s var(--ease), opacity .5s var(--ease); pointer-events: none;
}
:is(.btn, .chip, .seg button, .nav a, .icon-btn, .sel, .tab):is(:hover, :focus-visible):not(:disabled)::before { opacity: 1; transform: scale(1.6) rotate(0deg); }
:is(.btn, .chip, .seg button, .nav a, .icon-btn, .sel, .tab):is(:hover, :focus-visible):not(:disabled) { color: var(--bloom-text, var(--paper)); text-decoration: none; }

/* ---------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  padding: 10px 15px; min-height: 38px; border: var(--line) solid var(--ink); background: var(--surface-2); color: var(--ink);
  cursor: pointer; text-decoration: none; box-shadow: .1875rem .1875rem 0 0 var(--ink);
  transform: translate(0, 0); transition: color .5s var(--ease), background-color .5s var(--ease), transform .08s, box-shadow .08s;
}
.btn:active:not(:disabled) { transform: translate(.1875rem, .1875rem); box-shadow: 0 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.acc { background: var(--accent); color: var(--on-accent); border-color: var(--ink); --bloom: var(--ink); --bloom-text: var(--paper); }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--rule); }
.btn.ghost:active:not(:disabled) { transform: none; }
.btn.danger { --bloom: var(--bad); --bloom-text: var(--paper); color: var(--bad); border-color: var(--bad); box-shadow: .1875rem .1875rem 0 0 var(--bad); }
.btn.sm { min-height: 30px; padding: 6px 10px; font-size: 11px; box-shadow: .125rem .125rem 0 0 var(--ink); }
.btn.sm:active:not(:disabled) { transform: translate(.125rem, .125rem); }
.btn.lg { min-height: 48px; padding: 14px 24px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.discord svg { width: 20px; height: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border: var(--line) solid var(--rule); background: transparent;
  color: var(--muted); cursor: pointer; padding: 0; font: 700 14px/1 var(--mono); flex: none;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row.tight { gap: 6px; }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }

/* ------------------------------------------------------------ shell ---- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 14px;
  border-right: var(--line) solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px);
  padding: 18px 14px 14px; overflow-y: auto; z-index: 30;
}
.team-head { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; padding: 4px 4px 12px; border-bottom: var(--line) solid var(--rule); }
.team-head:hover { text-decoration: none; }
.team-head .logo { width: 46px; height: 46px; flex: none; object-fit: contain; }
.team-head .names { min-width: 0; }
.team-head .tname { font-weight: 900; text-transform: uppercase; font-size: 16px; line-height: 1.02; letter-spacing: -.01em; overflow-wrap: anywhere; }
.team-head .ttag { font: 700 11px/1 var(--mono); color: var(--accent-ink); letter-spacing: .12em; margin-top: 5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .grp { font: 700 10px/1 var(--mono); letter-spacing: .16em; color: var(--faint); text-transform: uppercase; margin: 12px 8px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--muted); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .02em; border-left: var(--line) solid transparent; text-decoration: none;
}
.nav a svg { width: 17px; height: 17px; flex: none; }
.nav a.on { color: var(--ink); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav a .badge { margin-left: auto; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: var(--line) solid var(--rule); padding-top: 12px; }
.me-chip { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 4px; }
.me-chip:hover { text-decoration: none; background: var(--surface-2); }
.me-chip .me-who { min-width: 0; }
.me-chip .nm { font-weight: 800; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip .sub { font: 600 10px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.product { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 0; color: var(--faint); }
.product svg { height: 11px; width: auto; display: block; }
.product svg .dd { fill: var(--accent-ink); }
.main { min-width: 0; padding: 28px clamp(16px, 3.2vw, 44px) 60px; }
.topbar { display: none; }
.scrim { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(19rem, 86vw); transform: translateX(-102%); transition: transform .32s var(--ease); background: var(--paper); }
  .shell.drawer .side { transform: none; }
  .shell.drawer .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .55); }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; padding: 10px 14px;
    background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--line) solid var(--rule);
  }
  .topbar .logo { width: 30px; height: 30px; object-fit: contain; }
  .topbar .tname { font-weight: 900; text-transform: uppercase; font-size: 15px; }
  .main { padding: 18px 14px 70px; }
}

/* ------------------------------------------------------------- page ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sel { width: auto; min-width: 220px; }
.page-head .kicker { font: 700 11px/1 var(--mono); letter-spacing: .16em; color: var(--accent-ink); text-transform: uppercase; margin-bottom: 8px; }
.page-head h1 .slash { color: var(--accent-ink); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr)); align-items: start; }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: var(--line) solid var(--ink); min-width: 0; }
.card.soft { border-color: var(--rule); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: var(--line) solid var(--rule); min-height: 50px; flex-wrap: wrap; }
.card-head h2 { flex: 1 1 auto; }
.card-body { padding: 14px; }
.card-body.flush { padding: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.tiny { font: 600 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.label { font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.acc-text { color: var(--accent-ink); }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.divider { height: 0; border-top: var(--line) solid var(--rule); margin: 4px 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: .0625rem solid var(--rule); min-width: 0; }
.list > .item:last-child { border-bottom: 0; }
.list > a.item { color: inherit; text-decoration: none; }
.list > a.item:hover { background: var(--surface-2); text-decoration: none; }
.item .main-col { flex: 1 1 auto; min-width: 0; }
.item .title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- badges ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border: .0625rem solid var(--rule); color: var(--muted); white-space: nowrap; }
.badge.acc { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.badge.blue { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
.badge.red { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.badge.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dot { width: 8px; height: 8px; display: inline-block; flex: none; background: var(--faint); }
.dot.yes { background: var(--good); }
.dot.maybe { background: var(--warn); }
.dot.no { background: var(--bad); }
.wl { font: 700 12px/1 var(--mono); }
.wl .w { color: var(--good); }
.wl .l { color: var(--bad); }
.form-strip { display: inline-flex; gap: 2px; }
.form-strip i { width: 7px; height: 14px; background: var(--faint); }
.form-strip i.win { background: var(--good); }
.form-strip i.loss { background: var(--bad); }

/* ---------------------------------------------------------- avatars ---- */
.av { width: 30px; height: 30px; flex: none; background: var(--surface-3); object-fit: cover; display: grid; place-items: center; font: 800 12px/1 var(--mono); color: var(--muted); border: .0625rem solid var(--rule); overflow: hidden; }
.av.lg { width: 56px; height: 56px; font-size: 18px; }
.av.sm { width: 22px; height: 22px; font-size: 9px; }
.ci { width: 34px; height: 34px; flex: none; background: var(--surface-3); border: .0625rem solid var(--rule); object-fit: cover; }
.ci.sm { width: 24px; height: 24px; }
.ci.lg { width: 48px; height: 48px; }
.ci.xl { width: 64px; height: 64px; }
.ci.empty { display: grid; place-items: center; color: var(--faint); font: 700 11px/1 var(--mono); }
.ci.gone { filter: grayscale(1) brightness(.45); }
.lane-ic { width: 16px; height: 16px; flex: none; color: var(--muted); }
.champ-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.champ-line .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { font: 800 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.rank .lp { color: var(--muted); font-weight: 600; }
.tier-iron { color: #8b8580; } .tier-bronze { color: #c08a5b; } .tier-silver { color: #b4c0c8; } .tier-gold { color: #e7c25a; }
.tier-platinum { color: #59c8b8; } .tier-emerald { color: #3fd486; } .tier-diamond { color: #7aa7ff; } .tier-master { color: #c77dff; }
.tier-grandmaster { color: #ff6f61; } .tier-challenger { color: #ffd76e; }

/* ----------------------------------------------------------- inputs ---- */
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > .label { display: flex; align-items: center; gap: 6px; min-height: 17px; }
.fld.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 200px)), 1fr)); }
.inp {
  width: 100%; min-height: 38px; padding: 8px 11px; background: var(--paper); border: var(--line) solid var(--rule); color: var(--ink);
  font: 500 14px/1.35 var(--disp); border-radius: 0; transition: border-color .2s;
}
.inp:focus { outline: none; border-color: var(--accent-ink); }
.inp::placeholder { color: var(--faint); }
textarea.inp { min-height: 84px; resize: vertical; }
.inp.mono { font-family: var(--mono); font-size: 13px; }
.inp.sm { min-height: 30px; padding: 4px 8px; font-size: 13px; }

.switch { width: 46px; height: 26px; flex: none; border: var(--line) solid var(--ink); background: var(--paper); padding: 0; cursor: pointer; position: relative; transition: background-color .25s var(--ease); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--muted); transition: transform .25s var(--ease), background-color .25s; }
.switch.on { background: var(--accent); }
.switch.on .knob { transform: translateX(20px); background: var(--on-accent); }
.seg { display: inline-flex; align-self: flex-start; border: var(--line) solid var(--ink); background: var(--paper); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; background: transparent; color: var(--muted); border: 0; border-right: var(--line) solid var(--ink); cursor: pointer; white-space: nowrap; --bloom: var(--accent); --bloom-text: var(--on-accent); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg.sm button { padding: 6px 9px; font-size: 10.5px; }
.slider { display: flex; align-items: center; gap: 12px; min-width: 180px; outline: none; }
.slider .track { position: relative; flex: 1 1 auto; height: 6px; background: var(--surface-3); cursor: pointer; touch-action: none; }
.slider .fill { position: absolute; inset: 0 auto 0 0; width: var(--pct); background: var(--accent); }
.slider .knob { position: absolute; top: 50%; left: var(--pct); width: 16px; height: 16px; background: var(--ink); transform: translate(-50%, -50%); border: var(--line) solid var(--paper); }
.slider:focus-visible .knob { outline: var(--line) solid var(--accent-ink); }
.slider .val { font: 700 12px/1 var(--mono); min-width: 4.5ch; text-align: right; }
.sel {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 8px 11px; width: 100%;
  background: var(--paper); border: var(--line) solid var(--rule); color: var(--ink); cursor: pointer; text-align: left; font: 500 14px/1.2 var(--disp);
  --bloom: var(--surface-3); --bloom-text: var(--ink);
}
.sel > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.sel .sel-l { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel.empty .sel-l { color: var(--faint); }
.sel .sel-c { color: var(--muted); font-size: 11px; }
.sel.sm { min-height: 30px; padding: 4px 8px; font-size: 13px; width: auto; }
.pop {
  position: fixed; z-index: 90; background: var(--surface); border: var(--line) solid var(--ink); box-shadow: .25rem .25rem 0 0 rgba(0, 0, 0, .6);
  max-height: min(60vh, 420px); overflow-y: auto; padding: 4px;
}
.pop .opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; background: transparent; border: 0; color: var(--ink); cursor: pointer; text-align: left; font: 500 14px/1.2 var(--disp); }
.pop .opt:hover, .pop .opt.hl { background: var(--surface-3); }
.pop .opt.on { color: var(--accent-ink); font-weight: 800; }
.pop .search { margin: 2px 2px 6px; width: calc(100% - 4px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 10px; border: var(--line) solid var(--rule); background: var(--paper); color: var(--muted); cursor: pointer; --bloom: var(--accent); --bloom-text: var(--on-accent);
}
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.tabs { display: flex; gap: 0; border-bottom: var(--line) solid var(--rule); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; font: 800 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: var(--line) solid transparent; margin-bottom: calc(-1 * var(--line)); white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; --bloom: var(--surface-3); --bloom-text: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }

.stepper { display: inline-flex; align-items: center; gap: 0; border: var(--line) solid var(--rule); }
.stepper button { width: 32px; height: 34px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font: 700 16px/1 var(--mono); }
.stepper button:hover { background: var(--surface-3); }
.stepper .val { min-width: 3.4ch; text-align: center; font: 700 14px/1 var(--mono); padding: 0 6px; }

/* (i): an explanation on hover or focus, in our own panel */
.info { width: 17px; height: 17px; border-radius: 50%; border: .09rem solid currentColor; color: var(--faint); background: none; cursor: help; font: 800 10px/1 var(--mono); display: inline-grid; place-items: center; padding: 0; text-transform: none; letter-spacing: 0; flex: none; }
.info:hover, .info:focus-visible { color: var(--accent-ink); }
.tip { position: fixed; z-index: 95; max-width: 300px; background: var(--surface); border: var(--line) solid var(--ink); padding: 10px 12px; font: 500 12.5px/1.45 var(--disp); color: var(--ink); text-transform: none; letter-spacing: 0; pointer-events: none; box-shadow: .25rem .25rem 0 0 rgba(0, 0, 0, .55); }

.drop {
  border: var(--line) dashed var(--rule); background: var(--paper); min-height: 120px; display: grid; place-items: center; text-align: center;
  color: var(--faint); padding: 14px; cursor: copy; transition: border-color .2s, background-color .2s; font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em;
}
.drop.over, .drop:focus-visible { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, var(--paper)); outline: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; border: var(--line) solid var(--rule); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 .125rem var(--paper), 0 0 0 .25rem var(--ink); }

/* ---------------------------------------------------------- overlays ---- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(100%, var(--w, 560px)); background: var(--surface); border: var(--line) solid var(--ink); box-shadow: .375rem .375rem 0 0 var(--accent); display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.modal .m-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: var(--line) solid var(--rule); }
.modal .m-head h2 { flex: 1 1 auto; font-size: 16px; }
.modal .m-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal .m-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 16px; border-top: var(--line) solid var(--rule); flex-wrap: wrap; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--surface); border: var(--line) solid var(--ink); padding: 10px 14px; font-weight: 600; font-size: 13px; max-width: min(380px, calc(100vw - 32px)); box-shadow: .25rem .25rem 0 0 var(--accent); animation: toast-in .3s var(--ease); pointer-events: auto; }
.toast.err { box-shadow: .25rem .25rem 0 0 var(--bad); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ------------------------------------------------------------ gate ---- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.gate-card .logo { width: min(220px, 56vw); height: auto; aspect-ratio: 1; object-fit: contain; }
.gate-card .tname { font-size: clamp(30px, 7vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .95; }
.gate-card .ttag { font: 700 13px/1 var(--mono); letter-spacing: .3em; color: var(--accent-ink); }
.gate-card .card { width: 100%; text-align: left; }
.gate-foot { color: var(--faint); font-size: 11px; max-width: 420px; text-align: center; line-height: 1.5; }
.gate-foot svg { display: block; height: 12px; width: auto; margin: 0 auto 10px; color: var(--muted); }
.gate-foot svg .dd { fill: var(--accent-ink); }
.big-id { font: 700 15px/1 var(--mono); letter-spacing: .04em; padding: 10px 12px; background: var(--paper); border: var(--line) solid var(--rule); user-select: all; text-align: center; }

/* -------------------------------------------------------- dashboard ---- */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px; background: var(--surface); border: var(--line) solid var(--ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, color-mix(in srgb, var(--accent) 22%, transparent) 55%, color-mix(in srgb, var(--accent) 22%, transparent) 62%, transparent 62%, transparent 66%, color-mix(in srgb, var(--accent-2) 16%, transparent) 66%, color-mix(in srgb, var(--accent-2) 16%, transparent) 70%, transparent 70%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .logo { width: 92px; height: 92px; object-fit: contain; }
.hero .tname { font-size: clamp(26px, 4vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .92; }
.hero .next { text-align: right; }
.hero .count { font: 800 clamp(20px, 2.6vw, 30px)/1 var(--mono); letter-spacing: -.02em; }
.hero .ttag { font: 700 13px/1 var(--mono); letter-spacing: .24em; }
@media (max-width: 720px) { .hero { grid-template-columns: auto minmax(0, 1fr); } .hero .next { grid-column: 1 / -1; text-align: left; } .hero .logo { width: 64px; height: 64px; } }
.rsvp { display: inline-flex; border: var(--line) solid var(--ink); }
.rsvp button { font: 800 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; background: var(--paper); color: var(--muted); border: 0; border-right: var(--line) solid var(--ink); cursor: pointer; }
.rsvp button:last-child { border-right: 0; }
.rsvp button:hover { color: var(--ink); background: var(--surface-3); }
.rsvp button.on.yes { background: var(--good); color: var(--paper); }
.rsvp button.on.maybe { background: var(--warn); color: var(--paper); }
.rsvp button.on.no { background: var(--bad); color: var(--paper); }
.rsvp.sm button { padding: 6px 8px; font-size: 10px; }
.kind { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border: .0625rem solid currentColor; }
.kind-scrim { color: #8fd3ff; } .kind-official { color: var(--accent-ink); } .kind-tournament { color: #ffd76e; } .kind-training { color: var(--good); }
.kind-review { color: #c9a7ff; } .kind-meeting { color: var(--muted); } .kind-other { color: var(--muted); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; border: var(--line) solid var(--ink); background: var(--surface); }
.stat-tiles .tile { padding: 14px; border-right: var(--line) solid var(--rule); }
.stat-tiles .tile:last-child { border-right: 0; }
.tile .v { font: 800 26px/1 var(--mono); letter-spacing: -.03em; margin-top: 8px; }
.tile .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ----------------------------------------------------------- roster ---- */
.lineup { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .lineup { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.slot { background: var(--surface); border: var(--line) solid var(--ink); padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; min-height: 196px; position: relative; }
.slot.open { border-style: dashed; border-color: var(--rule); color: var(--faint); justify-content: center; }
.slot.drop-on { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.slot .lane { display: flex; align-items: center; gap: 6px; font: 800 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slot > .av { width: 64px; height: 64px; font-size: 20px; }
.slot .nm { font-weight: 900; text-transform: uppercase; font-size: 15px; line-height: 1.05; overflow-wrap: anywhere; }
.slot .rid { font: 600 11px/1.2 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.person { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--surface); border: var(--line) solid var(--rule); min-width: 0; }
.person[draggable="true"] { cursor: grab; }
.person .nm { font-weight: 800; }
.bench { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.bench.drop-on { outline: var(--line) dashed var(--accent-ink); outline-offset: 6px; }

/* --------------------------------------------------------- schedule ---- */
.day-group { margin-bottom: 18px; }
.day-group > .label { margin: 0 0 8px 2px; }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: var(--line) solid var(--rule); margin-bottom: 8px; cursor: pointer; }
.event:hover { border-color: var(--ink); }
.event.past { opacity: .55; }
.event .t { font: 800 15px/1 var(--mono); }
.event .t small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.event .ttl { font-weight: 900; text-transform: uppercase; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.event .ev-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .event { grid-template-columns: auto minmax(0, 1fr); } .event .ev-side { grid-column: 1 / -1; justify-content: flex-start; } }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.who { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: .0625rem solid var(--rule); background: var(--paper); min-width: 0; }
.who .nm { font-weight: 700; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 2px; user-select: none; touch-action: none; }
.week .h, .week .dh { font: 700 10px/1 var(--mono); color: var(--faint); display: grid; place-items: center; height: 22px; text-transform: uppercase; letter-spacing: .05em; }
.week .dh { color: var(--muted); }
.week .c { height: 18px; background: var(--surface-2); cursor: crosshair; }
.week .c.on { background: var(--accent); }
.week .c.hour-start { box-shadow: inset 0 .0625rem 0 var(--rule); }
.heat { display: grid; grid-template-columns: 82px repeat(24, minmax(0, 1fr)); gap: 2px; min-width: 760px; }
.heat .h { font: 700 10px/1 var(--mono); color: var(--faint); display: grid; place-items: center; height: 20px; }
.heat .dl { font: 700 11px/1.1 var(--mono); color: var(--muted); display: flex; align-items: center; padding-right: 6px; text-transform: uppercase; }
.heat .dl.today { color: var(--accent-ink); }
.heat .c { height: 30px; background: var(--surface-2); border: 0; padding: 0; cursor: pointer; font: 700 11px/1 var(--mono); color: var(--paper); }
.heat .c.past { opacity: .25; cursor: default; }
.heat .c.taken { background-image: repeating-linear-gradient(-66deg, transparent 0 4px, rgba(0, 0, 0, .45) 4px 7px); }
.scroll-x { overflow-x: auto; }
.legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend .sw { width: 14px; height: 14px; display: inline-block; vertical-align: -3px; margin-right: 5px; }

/* calendar popover */
.cal { width: 272px; padding: 8px; }
.cal .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal .cal-head .m { font: 800 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .wd { font: 700 10px/1 var(--mono); color: var(--faint); text-align: center; padding: 4px 0; }
.cal .d { height: 32px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 600 13px/1 var(--mono); }
.cal .d:hover { background: var(--surface-3); }
.cal .d.out { color: var(--faint); }
.cal .d.today { box-shadow: inset 0 0 0 .0625rem var(--accent-ink); }
.cal .d.on { background: var(--accent); color: var(--on-accent); }
.cal .time { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: .0625rem solid var(--rule); }
.dt-btn { justify-content: flex-start; }

/* ---------------------------------------------------------- matches ---- */
.game-card { border: var(--line) solid var(--rule); background: var(--paper); }
.game-card .gh { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: .0625rem solid var(--rule); flex-wrap: wrap; }
.game-card .gb { padding: 12px; display: grid; gap: 12px; }
.draft-row { display: grid; grid-template-columns: 70px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center; }
.draft-row .side-l { font: 800 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.pick-slot { display: flex; align-items: center; gap: 6px; padding: 4px; border: .0625rem solid var(--rule); background: var(--surface); min-width: 0; cursor: pointer; min-height: 42px; }
.pick-slot:hover { border-color: var(--ink); }
.pick-slot .nm { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bans-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.result-w { color: var(--good); font: 800 12px/1 var(--mono); }
.result-l { color: var(--bad); font: 800 12px/1 var(--mono); }
.bar { height: 8px; background: var(--surface-3); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.bar.good > i { background: var(--good); }
.bar.bad > i { background: var(--bad); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 9px 12px; border-bottom: var(--line) solid var(--rule); white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: .0625rem solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl .row { flex-wrap: nowrap; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }

/* ------------------------------------------------------------ pools ---- */
.pool-lane { border: var(--line) solid var(--rule); background: var(--surface); }
.pool-lane .ph { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: .0625rem solid var(--rule); }
.tier-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); border-bottom: .0625rem solid var(--rule); min-height: 54px; }
.tier-row:last-child { border-bottom: 0; }
.tier-row .tl { display: grid; place-items: center; font: 900 15px/1 var(--disp); border-right: .0625rem solid var(--rule); text-transform: uppercase; }
.tier-row .tl small { font: 700 9px/1 var(--mono); letter-spacing: .06em; display: block; margin-top: 3px; }
.tier-row .tc { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; align-items: center; }
.tier-row.drop-on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.t-s { color: #ff6b8a; } .t-a { color: #ffb15a; } .t-b { color: #ffe27a; } .t-c { color: #8ce99a; } .t-learn { color: #74c0fc; } .t-idea { color: var(--muted); }
.pchamp { position: relative; cursor: grab; }
.pchamp .ci { width: 44px; height: 44px; }
.pchamp .stat { position: absolute; left: 0; right: 0; bottom: 0; font: 800 9px/1 var(--mono); background: rgba(0, 0, 0, .78); color: var(--ink); text-align: center; padding: 2px 0; }
.pchamp .note-dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; background: var(--accent); }
.matrix td { vertical-align: top; }
.matrix .mc { display: flex; flex-wrap: wrap; gap: 3px; }

/* ----------------------------------------------------- champ picker ---- */
.picker { display: flex; flex-direction: column; gap: 10px; }
.picker .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.picker .pc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: .0625rem solid transparent; background: none; color: var(--ink); cursor: pointer; font: 600 10.5px/1.1 var(--disp); text-align: center; position: relative; }
.picker .pc .ci { width: 48px; height: 48px; }
.picker .pc:hover { border-color: var(--ink); background: var(--surface-2); }
.picker .pc.off { opacity: .28; cursor: not-allowed; }
.picker .pc .mark { position: absolute; top: 2px; right: 4px; font: 800 9px/1 var(--mono); padding: 2px 3px; background: var(--accent); color: var(--on-accent); }

/* ------------------------------------------------------------ draft ---- */
.dboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1150px) { .dboard { grid-template-columns: 1fr 1fr; } .dboard .dpool { grid-column: 1 / -1; order: 3; } }
.dteam { border: var(--line) solid var(--ink); background: var(--surface); }
.dteam.blue { border-color: var(--blue); }
.dteam.red { border-color: var(--red); }
.dteam .th { padding: 10px 12px; font: 900 14px/1 var(--disp); text-transform: uppercase; display: flex; align-items: center; gap: 8px; border-bottom: .0625rem solid var(--rule); }
.dteam.blue .th { color: var(--blue); }
.dteam.red .th { color: var(--red); }
.dbans { display: flex; gap: 4px; padding: 8px 10px; border-bottom: .0625rem solid var(--rule); }
.dban { width: 38px; height: 38px; border: .0625rem dashed var(--rule); background: var(--paper); cursor: pointer; padding: 0; position: relative; flex: none; }
.dban img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) brightness(.7); }
.dban.skip::after { content: "-"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font: 800 14px/1 var(--mono); }
.dpick { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: .0625rem solid var(--rule); min-height: 74px; cursor: pointer; }
.dpick:last-child { border-bottom: 0; }
.dpick .ci { width: 60px; height: 60px; }
.dpick .nm { font-weight: 900; text-transform: uppercase; font-size: 14px; }
.dteam .next, .dban.next { box-shadow: inset 0 0 0 .1875rem var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 .1875rem transparent; } }
@media (max-width: 700px) {
  .dboard { gap: 8px; }
  .dteam .th { font-size: 12px; padding: 8px; }
  .dbans { padding: 6px; gap: 3px; }
  .dban { width: 26px; height: 26px; }
  .dpick { grid-template-columns: 40px minmax(0, 1fr); min-height: 54px; padding: 6px 8px; gap: 8px; }
  .dpick .ci { width: 40px; height: 40px; }
  .dpick .nm { font-size: 11px; }
  .dpick > :last-child { display: none; }
}
.dpool { border: var(--line) solid var(--ink); background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.dpool .pgrid { max-height: 64vh; }
.viewers { display: inline-flex; gap: 0; }
.viewers .av { margin-left: -6px; border: var(--line) solid var(--paper); }
.viewers .av:first-child { margin-left: 0; }

/* ------------------------------------------------------------ board ---- */
.bwrap { display: grid; grid-template-columns: 56px minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .bwrap { grid-template-columns: 52px minmax(0, 1fr); } .bwrap .bside { grid-column: 1 / -1; } }
.tools { display: flex; flex-direction: column; gap: 4px; border: var(--line) solid var(--ink); background: var(--surface); padding: 4px; position: sticky; top: 12px; }
.tools .icon-btn { width: 42px; height: 42px; border-color: transparent; }
.tools .icon-btn svg { width: 20px; height: 20px; }
.tools .sep { height: 0; border-top: .0625rem solid var(--rule); margin: 2px 0; }
.map-box { position: relative; border: var(--line) solid var(--ink); background: #000; aspect-ratio: 1; width: 100%; max-height: calc(100dvh - 190px); margin: 0 auto; touch-action: none; }
.map-box svg { width: 100%; height: 100%; display: block; }
.map-box .el { cursor: move; }
.map-box .el.sel { filter: drop-shadow(0 0 6px var(--accent)); }
.frames { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.frames .fr { font: 700 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px; border: var(--line) solid var(--rule); background: var(--paper); color: var(--muted); cursor: pointer; }
.frames .fr.on { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, var(--paper)); }
.bside { display: flex; flex-direction: column; gap: 12px; }

/* ------------------------------------------------------------- wiki ---- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cgrid a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 4px; color: var(--ink); text-decoration: none; border: .0625rem solid transparent; position: relative; font: 700 11px/1.15 var(--disp); text-align: center; }
.cgrid a:hover { border-color: var(--ink); background: var(--surface); text-decoration: none; }
.cgrid .ci { width: 60px; height: 60px; }
.cgrid .tierb { position: absolute; top: 4px; left: 6px; font: 900 9px/1 var(--mono); padding: 2px 4px; background: var(--paper); border: .0625rem solid var(--rule); }
.champ-hero { position: relative; min-height: 260px; border: var(--line) solid var(--ink); overflow: hidden; display: flex; align-items: flex-end; background: var(--surface); }
.champ-hero img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .55; }
.champ-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--paper) 2%, transparent 70%); }
.champ-hero .ch-in { position: relative; z-index: 1; padding: 18px 20px; display: flex; align-items: flex-end; gap: 16px; width: 100%; flex-wrap: wrap; }
.champ-hero .ch-name { font-size: clamp(30px, 5vw, 54px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .9; }
.ability { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-bottom: .0625rem solid var(--rule); }
.ability:last-child { border-bottom: 0; }
.ability .ai { width: 52px; height: 52px; border: .0625rem solid var(--rule); position: relative; }
.ability .ai img { width: 100%; height: 100%; }
.ability .ai b { position: absolute; bottom: -1px; right: -1px; background: var(--ink); color: var(--paper); font: 900 11px/1 var(--mono); padding: 2px 4px; }
.ability .an { font-weight: 900; text-transform: uppercase; font-size: 14px; }
.ability .rows { margin: 8px 0 0; padding: 0; list-style: none; font: 600 12px/1.5 var(--mono); color: var(--muted); }
.ability .rows li::before { content: "// "; color: var(--accent-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font: 600 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0; font-family: var(--mono); }
.items-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.items-row .arrow { color: var(--faint); font: 700 12px/1 var(--mono); }
.rune-tree { display: flex; gap: 6px; align-items: center; }
.rune-tree img { width: 30px; height: 30px; }
.rune-tree img.key { width: 42px; height: 42px; }
.skill-order { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 2px; max-width: 520px; }
.skill-order span { font: 800 11px/1 var(--mono); text-align: center; padding: 5px 0; background: var(--surface-3); }
.skill-order span.k-R { background: var(--accent); color: var(--on-accent); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.item-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 10px; border: .0625rem solid var(--rule); background: var(--surface); }
.item-card .nm { font-weight: 800; }
.item-card .tx { font-size: 12px; color: var(--muted); white-space: pre-wrap; margin-top: 4px; max-height: 9.5em; overflow: hidden; }
.item-card .gold { font: 700 11px/1 var(--mono); color: var(--warn); }

/* ----------------------------------------------------------- growth ---- */
.fb { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px 10px 0; border-bottom: .0625rem solid var(--rule); align-items: start; }
.fb:last-child { border-bottom: 0; }
.fb .stripe { align-self: stretch; }
.fb.strength .stripe { background: var(--good); }
.fb.improve .stripe { background: var(--warn); }
.fb.done { opacity: .5; }
.goal { padding: 12px 14px; border-bottom: .0625rem solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.goal:last-child { border-bottom: 0; }
.task { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: .0625rem solid var(--rule); }
.task:last-child { border-bottom: 0; }
.task.done .tx { text-decoration: line-through; color: var(--faint); }
.check { width: 20px; height: 20px; border: var(--line) solid var(--ink); background: var(--paper); cursor: pointer; flex: none; display: grid; place-items: center; padding: 0; color: var(--on-accent); }
.check.on { background: var(--accent); border-color: var(--accent); }
.check svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------- loading ---- */
.loading { display: grid; place-items: center; min-height: 40vh; }
.loading::after { content: ""; width: 34px; height: 34px; border: var(--line) solid var(--rule); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 12px; height: 12px; border: .125rem solid var(--rule); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; vertical-align: -1px; }
