/* Zahiba TCG : tableau de bord.
   Graphite + un seul accent doré (logo, action principale, MAX BID). Vert / rouge réservés aux verdicts et aux gains.
   Orange = prix non actualisé. Rayons : 12 px conteneurs, 8 px champs et boutons, pilule pour les étiquettes. */
:root {
  --bg: #0b0c0f; --surface: #121419; --raised: #181b21; --hover: #1e2229; --line: #23272f; --line-2: #2e333d;
  --ink: #eceef2; --ink-2: #b9bec9; --muted: #868c99; --faint: #5d6370;
  --accent: #f2b33d; --accent-hi: #ffc75a; --accent-ink: #1a1305; --accent-soft: rgba(242,179,61,.11); --accent-text: #f2b33d; --accent-line: rgba(242,179,61,.38);
  --good: #3ccf8e; --good-soft: rgba(60,207,142,.12); --bad: #f06464; --bad-soft: rgba(240,100,100,.12);
  --warn: #f59a4b; --warn-soft: rgba(245,154,75,.12);
  --shadow: 0 1px 0 rgba(255,255,255,.025) inset, 0 12px 32px -12px rgba(0,0,0,.55);
  --ring: 0 0 0 3px var(--accent-soft);
  --r: 12px; --r-sm: 8px;
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f6; --surface: #ffffff; --raised: #f7f8fa; --hover: #eef0f3; --line: #e3e6eb; --line-2: #d3d7de;
  --ink: #15171c; --ink-2: #3d424c; --muted: #646a76; --faint: #8b919c;
  --accent: #e6a12a; --accent-hi: #f0b443; --accent-ink: #1a1305; --accent-soft: rgba(214,146,26,.12); --accent-text: #9a5f00; --accent-line: rgba(194,130,18,.45);
  --good: #12925c; --good-soft: rgba(18,146,92,.1); --bad: #cf3d3d; --bad-soft: rgba(207,61,61,.09);
  --warn: #c2600f; --warn-soft: rgba(194,96,15,.1);
  --shadow: 0 1px 2px rgba(18,22,30,.05), 0 8px 24px -12px rgba(18,22,30,.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 var(--font); background: var(--bg); color: var(--ink); display: flex; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text); text-decoration: underline; }
.ph { font-size: 17px; line-height: 1; vertical-align: -3px; }
td.num, .kpi .v, .stat b, .maxbid, .big-val, .res .v, .num-f { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .94em; }

/* --- Navigation --------------------------------------------------------- */
.nav { width: 232px; flex: 0 0 232px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 18px 12px 14px; gap: 2px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: var(--ink); }
.logo img { width: 28px; height: 28px; }
.logo .wm { font-weight: 700; font-size: 17px; letter-spacing: -.02em; line-height: 1; }
.logo .tag { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent-text); letter-spacing: .04em; }
.nav a { color: var(--muted); padding: 8px 10px; border-radius: var(--r-sm); display: flex; align-items: center; gap: 11px; font-weight: 500; transition: background .15s, color .15s; }
.nav a .ph { font-size: 18px; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.active { background: var(--raised); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.nav a.active .ph { color: var(--accent-text); }
.nav-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px 10px 2px; border-top: 1px solid var(--line); line-height: 1.55; }
.nav-foot .acct { display: flex; align-items: center; gap: 9px; color: var(--ink); margin-bottom: 8px; min-width: 0; }
.nav-foot .avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.nav-foot .who { min-width: 0; flex: 1; }
.nav-foot .who b { display: block; font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-foot .plan { font-size: 11px; color: var(--accent-text); font-weight: 600; }
.nav-foot .links { display: flex; gap: 2px; margin: 0 -6px; }
.nav-foot .links button { background: none; border: 0; color: var(--muted); padding: 5px 6px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.nav-foot .links button:hover { color: var(--ink); background: var(--hover); }
.nav-foot .tech { margin-top: 8px; color: var(--faint); font-size: 11.5px; }
.nav-foot .tech .neg { color: var(--bad); }

/* --- Page ---------------------------------------------------------------- */
main { flex: 1; min-width: 0; padding: 30px 36px 72px; max-width: 1560px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1; min-width: 260px; }
h1 { font-size: 22px; font-weight: 650; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 4px 0 0; max-width: 72ch; }
.page-head + .sub, h1 + .sub { margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g2 { grid-template-columns: 1fr; } }
.section { margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: -2px; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); line-height: 1.6; }
.empty .ph { display: block; font-size: 30px; color: var(--faint); margin: 0 auto 10px; }

/* Bande de chiffres clés : une seule surface, séparateurs verticaux (pas une carte par chiffre) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat > span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; }
.stat.hl b { color: var(--accent-text); }
/* ancien bloc KPI (gardé pour compatibilité) */
.kpi .v { font-size: 22px; font-weight: 600; margin-top: 2px; }
.kpi .l { color: var(--muted); font-size: 12px; }

/* --- Boutons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .08s; }
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .ib:focus-visible, .tabs button:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.sec { background: var(--raised); color: var(--ink); border-color: var(--line-2); font-weight: 500; }
.btn.sec:hover { background: var(--hover); border-color: var(--faint); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.ib:hover { background: var(--hover); color: var(--ink); }
.ib.on { color: var(--accent-text); }

/* --- Champs ------------------------------------------------------------- */
input, select, textarea { background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
input[type=number] { width: 110px; font-variant-numeric: tabular-nums; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
textarea { width: 100%; min-height: 160px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
label.f > span { font-weight: 500; }
label.f em { font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.45; }
label.chk { display: flex; align-items: center; gap: 9px; color: var(--ink-2); padding: 3px 0; cursor: pointer; }
.search { position: relative; display: flex; align-items: center; }
.search .ph { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 34px; width: 100%; }

/* --- Tableaux ------------------------------------------------------------ */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--raised); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.current td { background: var(--accent-soft); }
tr.current td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl-wrap { overflow: auto; max-height: 74vh; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card .tbl-wrap { box-shadow: none; }
.thumb { width: 44px; height: 61px; object-fit: cover; border-radius: 5px; background: var(--raised); display: block; flex: 0 0 auto; }
.thumb.lg { width: 150px; height: 209px; border-radius: 9px; }
.pair { display: flex; gap: 11px; align-items: center; min-width: 0; }
.pair .t { font-weight: 550; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pair .m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.arrow { color: var(--faint); width: 18px; text-align: center; padding-left: 0; padding-right: 0; }
.acts { display: flex; gap: 2px; align-items: center; justify-content: flex-end; }
.acts select { padding: 4px 6px; font-size: 12px; }
.props { display: flex; gap: 6px; }
.props .p { cursor: pointer; text-align: center; border-radius: 6px; padding: 3px; border: 1px solid transparent; transition: border-color .15s; }
.props .p:hover { border-color: var(--accent-line); }
.props .p div { font-size: 11px; color: var(--muted); }
.maxbid { font-weight: 650; font-size: 15px; color: var(--accent-text); }

/* --- Étiquettes ---------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; font-weight: 550; white-space: nowrap; }
.chip.identified, .chip.ok { background: var(--good-soft); border-color: transparent; color: var(--good); }
.chip.uncertain, .chip.proposed { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.unidentified, .chip.pending, .chip.ko { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.chip.skipped { color: var(--muted); }
.chip.gold { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.stale { color: var(--warn); }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* Indice de confiance de la cote : 3 barres (élevée / moyenne / faible), détail au survol. Orange = cote peu fiable. */
.cf-wrap { display: inline-flex; align-items: center; gap: 5px; cursor: help; white-space: nowrap; }
.cf { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.cf > span { width: 4px; border-radius: 1px; background: var(--line-2); }
.cf > span:nth-child(1) { height: 6px; } .cf > span:nth-child(2) { height: 9px; } .cf > span:nth-child(3) { height: 12px; }
.cf > span.on { background: var(--ink-2); }
.cf.low > span.on { background: var(--warn); }
.cf-l { color: var(--muted); font-size: 12px; }
.cf.low + .cf-l { color: var(--warn); }
.conf-box { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; max-width: 520px; }
.reasons { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.reasons li::before { display: inline-block; width: 14px; font-weight: 600; }
.reasons li.con::before { content: "−"; color: var(--warn); }
.reasons li.pro::before { content: "+"; color: var(--muted); }
.flags { font-size: 12px; color: var(--warn); }
.why { font-size: 12px; color: var(--muted); margin-top: 5px; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-ok { color: var(--good); font-weight: 600; } .pill-no { color: var(--muted); font-weight: 600; }

/* --- Onglets / filtres ------------------------------------------------------ */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.tabs button { background: none; color: var(--muted); border: 0; border-radius: 7px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 0 0 1px var(--line-2); }
.tabs button .n { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--faint); }
.tabs button.on .n { color: var(--accent-text); }

/* --- Lives --------------------------------------------------------------- */
.lives-layout { display: flex; flex-direction: column; gap: 22px; }
.lives-col { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.lives-col > .card { flex: 1; }
.live-item { flex: 0 0 260px; padding: 11px 13px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s; }
.live-item:hover { border-color: var(--line-2); background: var(--raised); }
.live-item.on { border-color: var(--accent-line); background: var(--raised); }
.live-item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-item .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.live-item .counts { display: flex; gap: 10px; font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.live-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.live-head h2 { font-size: 17px; margin: 0; }
.live-head .m { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.platform { text-transform: capitalize; }

/* --- Barre de progression -------------------------------------------------- */
.bar { height: 6px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s cubic-bezier(.16,1,.3,1); }

/* --- Modale, recherche, toast --------------------------------------------- */
.modal { position: fixed; inset: 0; background: rgba(4,5,8,.66); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; z-index: 50; padding: 48px 16px; overflow: auto; }
:root[data-theme="light"] .modal { background: rgba(20,24,32,.35); }
.modal.hidden { display: none; }
.modal-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; width: min(980px, 100%); padding: 24px 26px; position: relative; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: no-preference) { .modal:not(.hidden) .modal-box { animation: pop .22s cubic-bezier(.16,1,.3,1); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-x { position: absolute; right: 14px; top: 14px; }
.modal-box h2 { font-size: 17px; padding-right: 40px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; max-height: 62vh; overflow: auto; padding: 2px; }
.res { border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 10px; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .15s; min-width: 0; }
.res:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.res img { width: 100%; aspect-ratio: 63/88; object-fit: contain; background: var(--raised); border-radius: 6px; display: block; }
.res .n { font-weight: 600; font-size: 13px; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .s.en { color: var(--ink-2); }
.res .v { margin-top: 5px; font-weight: 650; font-size: 13.5px; }
.res .v.none { font-family: var(--font); font-weight: 400; color: var(--faint); font-size: 12px; }
.res .v .stale { white-space: nowrap; }
/* Import CSV de l'inventaire : aperçu éditable */
.imp td { padding: 7px 7px; } .imp input { padding: 6px 7px; font-size: 12.5px; } .imp input[type=number] { width: 78px; } .imp input[type=date] { width: 128px; } .imp select { max-width: 210px; padding: 5px 6px; font-size: 12.5px; }
.imp .pair .ib { margin-left: auto; } .imp tr.off td { opacity: .45; } .imp tr.off td:first-child { opacity: 1; }
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 63/88; background: var(--raised); border-radius: 6px; color: var(--faint); font-size: 11px; }
.noimg.thumb { width: 44px; height: 61px; aspect-ratio: auto; font-size: 9px; text-align: center; }
.noimg.thumb.lg { width: 150px; height: 209px; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--raised); color: var(--ink); border: 1px solid var(--line-2); padding: 11px 16px 11px 14px; border-radius: 10px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.55); z-index: 60; max-width: 420px; display: flex; gap: 10px; align-items: center; }
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.toast.hidden { display: none; }
@media (prefers-reduced-motion: no-preference) { .toast:not(.hidden) { animation: pop .2s cubic-bezier(.16,1,.3,1); } }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13px; }
.kv .k { color: var(--muted); }
.chart { height: 260px; position: relative; }
.tiers td { padding: 6px 8px 6px 0; border: 0; }
.tiers th { background: none; padding: 0 8px 6px 0; position: static; }
.tiers td input { width: 100%; }
.copybox { position: relative; }
.copybox .btn { position: absolute; right: 8px; top: 8px; }
.detail-top { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
@media (max-width: 700px) { .detail-top { grid-template-columns: 1fr; } }
.big-val { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }

/* --- Paramètres : sections libellé à gauche, champs à droite --------------- */
.set-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.set-sec:first-of-type { border-top: 0; padding-top: 4px; }
.set-sec > header h2 { margin-bottom: 6px; }
.set-sec > header p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.55; }
.set-sec .fields { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
@media (max-width: 1000px) { .set-sec { grid-template-columns: 1fr; gap: 14px; } }
.savebar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 26px 0 14px; display: flex; gap: 14px; align-items: center; }
.sim { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.sim .kv { margin-top: 12px; }

/* --- Connexion ------------------------------------------------------------ */
body:not(.is-admin) .admin-only { display: none !important; }
body.auth .nav { display: none; }
body.auth main { max-width: none; display: flex; padding: 0; }
.login { min-height: 100vh; width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.login-art { position: relative; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.login-art::before { content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(242,179,61,.16), transparent 70%); pointer-events: none; }
.login-art .mark { position: absolute; left: 50%; top: 40%; width: 190px; transform: translate(-50%, -50%) rotate(-6deg); filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.login-art .pitch { position: relative; z-index: 2; max-width: 460px; }
.login-art .pitch h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.login-art .pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.login-art .pitch li { display: flex; gap: 10px; align-items: center; }
.login-art .pitch li .ph { color: var(--accent-text); }
.login-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: min(360px, 100%); }
.login-box .logo { padding: 0 0 34px; }
.login-box h1 { font-size: 24px; }
.login-box form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.login-box .btn { padding: 11px; font-size: 14px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 760px) { body { flex-direction: column; } .nav { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; } .nav-foot { display: none; } main { padding: 20px 16px 60px; } }
