/* Mangaseerr — univers « Bandeau » (obi). Jetons : voir DESIGN.md */
:root {
  --ground: #f2f3ef;
  --surface: #ffffff;
  --sunk: #e9eae4;
  --ink: #14171f;
  --ink-2: #4b505b;
  --line: #d9dbd4;
  --bar: #14171f;
  --chrome: #14171f;
  --chrome-ink: #ffffff;
  --chrome-ink-2: #b8bcc6;
  --chrome-field: #262a35;
  --obi-yellow: #f4c400;
  --obi-green: #17703f;
  --obi-orange: #b8470d;
  --obi-red: #b42d22;
  --danger-ink: #b42d22;
  --on-yellow: #14171f;
  --on-color: #ffffff;
  --tint-yellow: #fff6cf;
  --tint-green: #e3f2e9;
  --tint-orange: #fde9dc;
  --tint-red: #f8e1de;
  --focus: #1f5fd6;
  --select: #f4c40066;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* quatre pas, pas un de plus */
  --fs-meta: 13px;
  --fs-body: 15px;
  --fs-head: 20px;
  --fs-title: 32px;
  --radius: 3px;
  --header-h: 64px;
  --sheet-w: 600px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f1117;
    --surface: #171a22;
    --sunk: #1e222c;
    --ink: #e9eae4;
    --ink-2: #a3a8b3;
    --line: #2b303c;
    --bar: #e9eae4;
    --chrome: #090b10;
    --chrome-field: #1c202a;
    --obi-green: #17703f;
    --obi-orange: #b8470d;
    --obi-red: #b42d22;
    --danger-ink: #ef7b70;
    --tint-yellow: #3a3214;
    --tint-green: #15301f;
    --tint-orange: #3a2112;
    --tint-red: #3b1a17;
    --focus: #7aa7ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--fs-body)/1.45 var(--text);
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--select); color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.disp {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.meta { font-size: var(--fs-meta); color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- barre d'outils ---------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px;
  background: var(--chrome); color: var(--chrome-ink);
}
.brand { font-size: 24px; text-decoration: none; color: var(--chrome-ink); }
.nav { display: flex; gap: 22px; height: 100%; }
.nav a {
  display: flex; align-items: center; gap: 6px; height: 100%;
  color: var(--chrome-ink-2); font-weight: 600; text-decoration: none;
  box-shadow: inset 0 -3px transparent;
}
.nav a:hover { color: var(--chrome-ink); }
.nav a[aria-current="page"] { color: var(--chrome-ink); box-shadow: inset 0 -3px var(--obi-yellow); }
.nav .count { font-size: var(--fs-meta); color: var(--chrome-ink-2); }
.search {
  margin-left: auto; position: relative; width: min(420px, 40vw);
}
.search input {
  width: 100%; height: 38px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--chrome-field); color: var(--chrome-ink); padding: 0 12px 0 38px;
}
.search input::placeholder { color: #9aa0ab; }
.search input:focus { outline: none; border-color: var(--obi-yellow); }
.search .icon { position: absolute; left: 11px; top: 10px; color: #9aa0ab; }

/* ---- bandeau de statut des services ------------------------------------ */
.status-banner { display: none; padding: 10px 28px; background: var(--tint-red); color: var(--ink); font-size: var(--fs-body); }
.status-banner.on { display: block; }
.status-banner b { font-weight: 700; }
.status-banner a { font-weight: 600; }

/* ---- disposition ------------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.layout.with-sheet { grid-template-columns: minmax(0, 1fr) var(--sheet-w); }
.pane { padding: 24px 28px 48px; min-width: 0; }
.page { max-width: 1240px; padding: 28px 28px 64px; margin: 0 auto; width: 100%; }
.sheet {
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 24px 26px 48px;
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
}

.section + .section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: var(--fs-head); }

/* ---- affiches ------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 18px; }
.with-sheet .grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.poster { text-decoration: none; display: block; min-width: 0; }
.cover {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px;
  background: var(--sunk); container-type: inline-size;
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
.poster:hover .cover img { transform: scale(1.03); }
.cover .noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: var(--ink-2); font-size: var(--fs-meta); }
.poster[aria-current="true"] .cover { outline: 3px solid var(--ink); outline-offset: 2px; }
.poster .t { margin-top: 7px; font-weight: 600; font-size: 14px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster .meta { margin-top: 1px; }

/* le bandeau (obi) : signature de l'univers */
.obi {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 24px; height: 19%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(12px, 12.5cqw, 19px);
  white-space: nowrap; overflow: hidden;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
  animation: obi-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes obi-in { from { transform: translateY(100%); } to { transform: none; } }
.obi.yellow, .tag.yellow { background: var(--obi-yellow); color: var(--on-yellow); }
.obi.green, .tag.green { background: var(--obi-green); color: var(--on-color); }
.obi.orange, .tag.orange { background: var(--obi-orange); color: var(--on-color); }
.obi.red, .tag.red { background: var(--obi-red); color: var(--on-color); }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 2px;
  font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
}
.tag.ink { background: var(--sunk); color: var(--ink); }

.more { margin-top: 20px; }

/* ---- découverte : genres et rayons -------------------------------------- */
.genres { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.genres::-webkit-scrollbar { display: none; }
.genre {
  flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: border-color 150ms, background-color 150ms;
}
.genre:hover { border-color: var(--ink); }
.genre[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.section-head .see-all { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 10px;
}
.rail > * { scroll-snap-align: start; min-width: 0; }
.with-sheet .rail { grid-auto-columns: 128px; }
.back { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); margin-bottom: 10px; }
.back:hover { color: var(--ink); }
.page-title { font-size: var(--fs-title); margin-bottom: 14px; }

/* ---- boutons et champs --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--ground);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.obi-btn { background: var(--obi-yellow); border-color: var(--obi-yellow); color: var(--on-yellow); }
.btn.obi-btn:hover { background: #e2b600; border-color: #e2b600; }
.btn.danger.armed { background: var(--obi-red); border-color: var(--obi-red); color: var(--on-color); }
.btn.small { height: 30px; padding: 0 10px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.busy { cursor: progress; opacity: .7; }

.field, .select {
  height: 36px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 0 10px; min-width: 0;
}
.field::placeholder { color: var(--ink-2); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; text-overflow: ellipsis;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23808590' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center / 11px 8px;
}
.field:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--select); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
label.lbl { display: block; font-size: var(--fs-meta); color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }

/* ---- fiche série --------------------------------------------------------- */
.sheet-close { float: right; margin: -6px -8px 0 8px; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-2); }
.sheet-close:hover { color: var(--ink); }
.sheet-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
.sheet-head h1 { font-size: var(--fs-title); line-height: 1.02; overflow-wrap: anywhere; }
.sheet-head .alt { margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--fs-meta); color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; }
.synopsis { margin-top: 10px; font-size: 14px; max-width: 70ch; }
.synopsis.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: var(--fs-meta); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.notice { margin-top: 16px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice.green { background: var(--tint-green); }
.notice.yellow { background: var(--tint-yellow); }
.notice.orange { background: var(--tint-orange); }
.notice.red { background: var(--tint-red); }
.notice .grow { flex: 1; min-width: 180px; }

.send-bar { margin-top: 18px; display: grid; gap: 10px; }
.send-bar .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.send-bar .field { flex: 1; }
.best-reason { font-size: var(--fs-meta); color: var(--ink-2); }

.results-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 6px; gap: 10px; flex-wrap: wrap; }
.results-head h2 { font-size: var(--fs-head); }
.result {
  display: grid; grid-template-columns: minmax(0, 1fr) 60px 52px 70px 96px; gap: 10px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.result-cols { display: grid; grid-template-columns: minmax(0, 1fr) 60px 52px 70px 96px; gap: 10px;
  font-size: 12px; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid var(--line); }
.result-cols span:nth-child(2), .result-cols span:nth-child(3) { text-align: right; }
.result .rt { font-weight: 600; overflow-wrap: anywhere; }
.result .rmeta { font-size: var(--fs-meta); color: var(--ink-2); margin-top: 2px; }
.result .num { text-align: right; }
.result .why { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.result.best { position: relative; margin: 6px -12px 0; padding: 12px 12px 36px; background: var(--tint-yellow); border-bottom: 0; }
.result.best::after {
  content: "Meilleur résultat fiable"; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  display: flex; align-items: center; padding: 0 12px;
  background: var(--obi-yellow); color: var(--on-yellow);
  font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  animation: obi-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}
.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.badge { font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 6px; border: 1px solid var(--ink); border-radius: 2px; }
.badge.video { border-color: var(--danger-ink); color: var(--danger-ink); }
.badge.vf { background: var(--ink); color: var(--ground); }
.scorebar { height: 6px; background: var(--sunk); }
.scorebar i { display: block; height: 100%; background: var(--bar); }
.score-num { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

.empty { padding: 28px 0; color: var(--ink-2); }
.empty b { color: var(--ink); display: block; font-size: var(--fs-head); font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }

/* squelettes de chargement */
.skel { background: linear-gradient(90deg, var(--sunk) 0 40%, var(--line) 50%, var(--sunk) 60% 100%); background-size: 300% 100%; animation: skel 1.4s linear infinite; border-radius: 2px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- demandes ------------------------------------------------------------ */
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head h1 { font-size: var(--fs-title); }
.page-note { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; max-width: 58ch; }
.req { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.req .cover { width: 64px; }
.req h3 { font-size: 16px; font-weight: 700; }
.req h3 a { text-decoration: none; }
.req h3 a:hover { text-decoration: underline; }
.req .dest { font-size: var(--fs-meta); color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.req-live { margin-top: 10px; display: grid; grid-template-columns: minmax(120px, 340px) auto; gap: 6px 14px; align-items: center; }
.progress { height: 8px; background: var(--sunk); }
.progress i { display: block; height: 100%; background: var(--bar); transition: width 600ms cubic-bezier(.16, 1, .3, 1); }
.req-numbers { font-size: var(--fs-meta); color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; }
.req-error { margin-top: 8px; font-size: 14px; color: var(--danger-ink); }

/* frise d'étapes tamponnées : rien ne disparaît */
.steps { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.step { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em;
  padding: 2px 8px; border: 1px solid var(--line); color: var(--ink-2); border-radius: 2px; }
.step.done { border-color: var(--ink); color: var(--ink); }
.step.now { background: var(--obi-yellow); border-color: var(--obi-yellow); color: var(--on-yellow); }
.step.now.green { background: var(--obi-green); border-color: var(--obi-green); color: var(--on-color); }
.step.now.red { background: var(--obi-red); border-color: var(--obi-red); color: var(--on-color); }

/* ---- réglages ------------------------------------------------------------ */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.box h2 { font-size: var(--fs-head); margin-bottom: 4px; }
.box + .box { margin-top: 36px; }
.box .page-note { margin-bottom: 14px; }
.roots .root { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.root .path { font-weight: 600; overflow-wrap: anywhere; }
.root .select { width: 100%; }
.root .hint { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.add-root { display: flex; gap: 8px; margin-top: 14px; }
.add-root .field { flex: 1; }
.svc { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.svc .dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--obi-green); }
.svc .dot.bad { background: var(--obi-red); }
.svc .dot.off { background: var(--line); }
.svc .msg { grid-column: 2; color: var(--ink-2); font-size: var(--fs-meta); }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.settings-config { margin-top: 40px; }
.settings-config .kv tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 28px; }
.kv tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv th, .kv td { display: block; text-align: left; padding: 0; }
.kv th { font-weight: 600; font-size: 12px; letter-spacing: .02em; color: var(--ink-2); }
.kv td { overflow-wrap: anywhere; margin-top: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: var(--fs-meta); padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px; }
.chip.fr { border-color: var(--ink); font-weight: 700; }

/* ---- connexion ------------------------------------------------------------- */
body.locked .nav, body.locked .search { display: none; }
.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 32px 16px; }
.auth-card {
  position: relative; width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 28px 68px; display: grid; gap: 6px; overflow: hidden;
}
.auth-card::after {
  content: "Demandes de manga VF"; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--obi-yellow); color: var(--on-yellow);
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
  animation: obi-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}
.auth-brand { display: none; }
.auth-card h1 { font-size: var(--fs-title); margin-bottom: 6px; }
.auth-card .lbl { margin-top: 10px; }
.auth-card .btn { margin-top: 16px; width: 100%; }
.auth-lead { margin-bottom: 4px; }
.auth-error { color: var(--danger-ink); font-size: 14px; min-height: 1em; margin-top: 6px; }
.auth-help { margin-top: 12px; }
.auth-help code { display: block; margin-top: 4px; padding: 6px 8px; background: var(--sunk); border-radius: 2px;
  font-size: 12px; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.account-form { display: grid; gap: 8px; }
.account-form .btn { justify-self: start; }

/* ---- toasts --------------------------------------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border-radius: var(--radius); background: var(--chrome); color: var(--chrome-ink); font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: toast-in 320ms cubic-bezier(.16, 1, .3, 1) both; }
.toast.error { background: var(--obi-red); }
.toast.ok { background: var(--obi-green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --sheet-w: 520px; }
}
@media (max-width: 980px) {
  .layout.with-sheet { grid-template-columns: minmax(0, 1fr); }
  .layout.with-sheet .pane { display: none; }
  .sheet { position: static; height: auto; border-left: 0; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 108px; --fs-title: 26px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px 0; gap: 0 18px; }
  .nav { height: 44px; order: 3; width: 100%; gap: 20px; }
  .search { order: 2; width: auto; flex: 1; margin-left: 0; }
  .brand { font-size: 20px; margin-right: 6px; }
  .pane, .page, .sheet { padding-left: 16px; padding-right: 16px; }
  .status-banner { padding: 10px 16px; }
  .grid, .with-sheet .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; }
  .rail, .with-sheet .rail { grid-auto-columns: 112px; gap: 12px; }
  .sheet-head { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .result .c-main { flex: 1 0 100%; }
  .result .c-size, .result .c-seed { flex: none; text-align: left; font-size: var(--fs-meta); color: var(--ink-2); }
  .result .c-seed::after { content: " S / L"; }
  .result .c-score { flex: 1; min-width: 80px; }
  .result-cols { display: none; }
  .req { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .req .cover { width: 52px; }
  .req-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .req-live { grid-template-columns: minmax(0, 1fr); }
  .roots .root { grid-template-columns: minmax(0, 1fr); }
  .toasts { right: 16px; left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
