/* getmm2 admin: dark by default, light on request. Motion is switched off for people who ask for reduced motion. */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #090c15; --bg-2: #0d1120; --panel: #121829; --panel-2: #171f35; --panel-3: #1d2744; --line: #222c47; --line-2: #2f3b5e;
  --text: #eaeefa; --muted: #9aa5c4; --faint: #7f8aab;
  --brand: #6b92ff; --brand-2: #93afff; --brand-soft: rgb(107 146 255 / .16); --on-brand: #081028;
  --good: #3fd6a0; --good-soft: rgb(63 214 160 / .14); --warn: #f6c35b; --warn-soft: rgb(246 195 91 / .14);
  --bad: #ff8498; --bad-soft: rgb(255 132 152 / .14); --gold: #f0b94d;
  --radius: 16px; --radius-sm: 10px; --sidebar: 252px;
  --shadow: 0 14px 34px -16px rgb(0 0 0 / .7); --ring: 0 0 0 3px rgb(107 146 255 / .4);
  --ease: cubic-bezier(.2, .7, .2, 1); --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5fb; --bg-2: #ecf0f8; --panel: #ffffff; --panel-2: #f6f8fd; --panel-3: #eaeffa; --line: #e2e7f2; --line-2: #ccd5e8;
  --text: #121a2e; --muted: #4a5573; --faint: #566080; --brand: #2c58e8; --brand-2: #1f45c4; --brand-soft: rgb(44 88 232 / .1); --on-brand: #fff;
  --good: #09633f; --good-soft: rgb(15 138 95 / .1); --warn: #724400; --warn-soft: rgb(176 112 0 / .12);
  --bad: #a91c36; --bad-soft: rgb(196 35 64 / .1); --gold: #8a5f00; --shadow: 0 12px 28px -16px rgb(20 30 60 / .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgb(107 146 255 / .6); outline-offset: 2px; border-radius: 8px; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.right { text-align: right; } .nowrap { white-space: nowrap; }

/* ---- layout --------------------------------------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--panel); border-right: 1px solid var(--line); z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 18px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3b63f0, #7f9dff); display: grid; place-items: center; box-shadow: 0 8px 20px -8px #3b63f0; }
.brand__mark svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.brand small { display: block; margin-top: 1px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nav { display: grid; gap: 3px; }
.nav__link { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; transition: background .18s, color .18s, transform .18s var(--ease); }
.nav__link:hover { background: var(--panel-2); color: var(--text); transform: translateX(2px); }
.nav__link[aria-current="page"] { background: var(--brand-soft); color: var(--text); }
.nav__link[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nav__tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--panel-3); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sidebar__foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.userchip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; text-transform: uppercase; }
.userchip__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.content > main { flex: 1; padding: 30px clamp(16px, 3vw, 40px) 60px; max-width: 1500px; width: 100%; margin-inline: auto; animation: pageIn .45s var(--ease) both; }
main:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.page-head p { margin-top: 4px; color: var(--muted); max-width: 60ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@view-transition { navigation: auto; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(63 214 160 / .55); } 70% { box-shadow: 0 0 0 9px rgb(63 214 160 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 214 160 / 0); } }

/* ---- cards and grids ---------------------------------------------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.card:hover { border-color: var(--line-2); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card__title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card__title .icon { color: var(--brand-2); }
.card__sub { color: var(--muted); font-size: .85rem; }
.card__body { padding: 16px 20px 20px; }
.card--flush .card__body { padding: 0; }
.grid { display: grid; gap: 18px; }
.grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid--stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid--stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid--stats { grid-template-columns: minmax(0, 1fr); } }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--wide-narrow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack { display: grid; gap: 18px; }
.reveal > * { animation: fadeUp .5s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .05s; } .reveal > *:nth-child(3) { animation-delay: .1s; } .reveal > *:nth-child(4) { animation-delay: .15s; }
.reveal > *:nth-child(5) { animation-delay: .2s; } .reveal > *:nth-child(6) { animation-delay: .25s; }
.stat { position: relative; overflow: hidden; padding: 18px 20px; }
.stat:hover { transform: translateY(-3px); }
.stat__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.stat__value { margin-top: 8px; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__sub { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.stat__icon { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); }
.stat__icon--good { background: var(--good-soft); color: var(--good); } .stat__icon--warn { background: var(--warn-soft); color: var(--warn); }
.chart { position: relative; height: 270px; }
.chart canvas { width: 100% !important; }

/* ---- controls -------------------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; background: var(--panel-3); color: var(--text); font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .18s, border-color .18s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); background: var(--line-2); }
.btn:active { transform: translateY(0) scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px var(--brand); }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { background: transparent; border-color: var(--line-2); } .btn--ghost:hover { background: var(--panel-2); }
.btn--danger { background: var(--bad-soft); color: var(--bad); border-color: rgb(255 132 152 / .3); } .btn--danger:hover { background: var(--bad); color: #20060c; }
.btn--sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.btn--icon { width: 40px; padding: 0; } .btn--icon.btn--sm { width: 34px; }
.btn.is-busy { pointer-events: none; opacity: .8; } .btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); color: var(--muted); cursor: pointer; transition: transform .15s var(--ease), color .18s, background .18s; }
.icon-btn:hover { color: var(--text); background: var(--panel-3); } .icon-btn:active { transform: scale(.94); }
.field { display: grid; gap: 7px; }
.field__label { font-weight: 700; font-size: .88rem; } .field__hint { color: var(--faint); font-size: .8rem; } .field__err { color: var(--bad); font-size: .82rem; font-weight: 600; }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
.textarea { height: auto; padding: 10px 13px; min-height: 90px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5c4' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.input--search { padding-left: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8aab' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 11px center; background-size: 18px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--line-2); transition: background .2s; position: relative; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .22s var(--ease); box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.switch input:checked + .switch__track { background: var(--brand); } .switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--muted); font-weight: 600; font-size: .84rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { color: var(--text); background: var(--panel-2); } .chip[aria-pressed="true"] { background: var(--brand-soft); color: var(--text); border-color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--panel-3); color: var(--muted); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge--ok { background: var(--good-soft); color: var(--good); } .badge--warn { background: var(--warn-soft); color: var(--warn); } .badge--bad { background: var(--bad-soft); color: var(--bad); } .badge--brand { background: var(--brand-soft); color: var(--brand-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot--live { background: var(--good); animation: pulse 1.8s infinite; } .dot--warn { background: var(--warn); } .dot--bad { background: var(--bad); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); }
.alert .icon { margin-top: 2px; flex: none; } .alert strong { color: var(--text); }
.alert--bad { background: var(--bad-soft); border-color: rgb(255 132 152 / .35); color: var(--text); } .alert--bad .icon { color: var(--bad); }
.alert--ok { background: var(--good-soft); border-color: rgb(63 214 160 / .35); color: var(--text); } .alert--ok .icon { color: var(--good); }
.alert--warn { background: var(--warn-soft); border-color: rgb(246 195 91 / .35); color: var(--text); } .alert--warn .icon { color: var(--warn); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .18s, color .18s; }
.tab:hover { color: var(--text); } .tab[aria-selected="true"] { background: var(--panel-3); color: var(--text); }
.empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; color: var(--faint); }
.skeleton { display: block; min-height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 37%, var(--panel-2) 63%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---- tables and lists -------------------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { position: sticky; top: 0; padding: 12px 16px; text-align: left; color: var(--faint); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th[data-sort] { cursor: pointer; user-select: none; } .table th[data-sort]:hover { color: var(--text); } .table th[aria-sort] { color: var(--brand-2); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .15s; animation: fadeUp .35s var(--ease) both; } .table tbody tr:hover { background: var(--panel-2); }
.row-detail td { padding: 0; background: var(--bg-2); } .row-detail__inner { padding: 20px 24px; animation: fadeUp .3s var(--ease) both; }
.who { display: grid; gap: 2px; min-width: 0; justify-items: start; } .who strong { overflow-wrap: anywhere; } .who span { color: var(--muted); font-size: .82rem; } .who .mono, td .mono { white-space: nowrap; }
.thumb { width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--panel-3); object-fit: contain; border: 1px solid var(--line); }
.thumb--lg { width: 60px; height: 60px; }
.list { display: grid; } .list__row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); animation: fadeUp .3s var(--ease) both; } .list__row:first-child { border-top: 0; }
.list__row > .grow { flex: 1; min-width: 0; } .grow { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.toolbar .grow { min-width: 200px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--bg-2); }
.stepper button { width: 36px; height: 38px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.stepper button:hover { background: var(--panel-3); color: var(--text); } .stepper button:active { transform: scale(.9); } .stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper input { width: 62px; height: 38px; border: 0; border-inline: 1px solid var(--line-2); background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--brand-soft); } .stepper.is-dirty { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px 12px 20px; border: 1px solid var(--brand); border-radius: 14px; background: var(--panel-2); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .8); animation: pop .3s var(--ease) both; }
.bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .6s var(--ease); }

/* ---- dialogs and toasts --------------------------------------------------------------------------------------------------------- */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 40px 90px -20px rgb(0 0 0 / .8); overflow: auto; }
.modal--wide { width: min(860px, calc(100vw - 24px)); } .modal[open] { animation: pop .25s var(--ease) both; }
.modal::backdrop { background: rgb(4 6 14 / .66); backdrop-filter: blur(4px); animation: fadeUp .2s both; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; } .modal__head h2 { font-size: 1.15rem; }
.modal__body { padding: 16px 22px; display: grid; gap: 16px; } .modal__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 22px 22px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--panel-2); box-shadow: var(--shadow); animation: pop .3s var(--ease) both; }
.toast .icon { margin-top: 1px; } .toast--ok .icon { color: var(--good); } .toast--bad .icon { color: var(--bad); } .toast--ok { border-color: rgb(63 214 160 / .4); } .toast--bad { border-color: rgb(255 132 152 / .45); }

/* ---- sign-in pages ---------------------------------------------------------------------------------------------------------------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth::before, .auth::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 18s ease-in-out infinite alternate; }
.auth::before { background: #3659e8; left: -140px; top: -160px; } .auth::after { background: #7a4be8; right: -160px; bottom: -180px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
.auth__card { position: relative; z-index: 1; width: min(440px, 100%); padding: 32px; border: 1px solid var(--line-2); border-radius: 22px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8); animation: pop .5s var(--ease) both; }
.auth__card--wide { width: min(560px, 100%); }
.auth__card h1 { margin: 18px 0 6px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; } .auth__card > p { color: var(--muted); }
.auth form { display: grid; gap: 16px; margin-top: 22px; }
.pw { position: relative; } .pw .input { padding-right: 46px; } .pw button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; } .pw button:hover { background: var(--panel-3); color: var(--text); }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; height: 56px; font-variant-numeric: tabular-nums; }
.qr { display: grid; place-items: center; padding: 14px; border-radius: 16px; background: #fff; width: fit-content; margin-inline: auto; } .qr svg { width: 200px; height: 200px; display: block; }
.secret { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .05em; text-align: center; }
.codes span { padding: 7px; border-radius: 8px; background: var(--panel-2); }
.steps { display: flex; gap: 8px; margin: 18px 0 0; } .steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); } .steps i.on { background: var(--brand); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .strength i { height: 5px; border-radius: 4px; background: var(--line-2); transition: background .3s; } .strength[data-level="1"] i:nth-child(-n+1) { background: var(--bad); } .strength[data-level="2"] i:nth-child(-n+2) { background: var(--warn); } .strength[data-level="3"] i:nth-child(-n+3) { background: var(--brand); } .strength[data-level="4"] i { background: var(--good); }

/* ---- invoice (screen and print) ----------------------------------------------------------------------------------------------------- */
.invoice { max-width: 820px; margin: 0 auto; padding: 38px; border-radius: 18px; background: #fff; color: #151b2e; box-shadow: var(--shadow); }
.invoice h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; } .invoice h2 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7491; margin-bottom: 6px; }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 22px; } .invoice th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7491; padding: 9px 8px; border-bottom: 2px solid #e5e9f4; } .invoice td { padding: 11px 8px; border-bottom: 1px solid #edf0f7; } .invoice .num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; } .invoice__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin-top: 26px; }
.invoice__total { margin-left: auto; width: min(320px, 100%); margin-top: 18px; display: grid; gap: 7px; } .invoice__total div { display: flex; justify-content: space-between; } .invoice__total .grand { padding-top: 10px; border-top: 2px solid #151b2e; font-size: 1.2rem; font-weight: 800; }
.stamp { display: inline-block; padding: 5px 14px; border: 2px solid currentColor; border-radius: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-4deg); }
.stamp--paid { color: #09633f; } .stamp--unpaid { color: #7a5200; } .stamp--refunded { color: #a91c36; }
.invoice__foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid #e5e9f4; color: #6b7491; font-size: .82rem; }

/* ---- small screens and preferences ---------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) { .grid--wide-narrow, .grid--2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: 30px 0 80px -30px rgb(0 0 0 / .8); }
  .sidebar.is-open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgb(4 6 14 / .6); animation: fadeUp .2s both; }
  .topbar { display: flex; } .content > main { padding-top: 22px; }
  .table--cards thead { display: none; } .table--cards tr { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .table--cards td { display: flex; justify-content: space-between; gap: 12px; padding: 0; border: 0; }
  .table--cards td::before { content: attr(data-label); color: var(--faint); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .auth::before, .auth::after { animation: none; }
  @view-transition { navigation: none; }
}
@media print {
  body { background: #fff; } .sidebar, .topbar, .page-head, .toasts, .no-print, .skip { display: none !important; }
  .shell { display: block; } .content > main { padding: 0; animation: none; max-width: none; } .invoice { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.auth .brand { padding: 0; }
.gap-t { margin-top: 16px; }
.auth ul { margin: 0; padding-left: 18px; }
.auth form + form { margin-top: 10px; }
/* dashboard */
.cart { display: grid; gap: 0; padding: 0; } .cart-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 20px; border: 0; background: transparent; text-align: left; cursor: pointer; transition: background .15s; } .cart-head:hover { background: var(--panel-2); }
.cart-pics { display: flex; } .cart-pics .thumb { width: 38px; height: 38px; margin-left: -12px; box-shadow: 0 0 0 2px var(--panel); } .cart-pics .thumb:first-child { margin-left: 0; }
.cart-meta { display: grid; justify-items: end; gap: 4px; font-size: .8rem; } .cart-items { display: grid; gap: 8px; padding: 4px 20px 16px 20px; animation: fadeUp .25s var(--ease) both; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; background: var(--bg-2); } .flag { font-size: 1.4rem; width: 30px; text-align: center; }

.toolbar .input--search { flex: 1 1 220px; width: auto; min-width: 0; } .toolbar .select, .toolbar .input[type=date] { width: auto; flex: 0 0 auto; }
.stat__value { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); overflow-wrap: anywhere; }
.pre { white-space: pre-line; }
/* orders */
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; } .detail-h { margin: 0 0 10px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .detail__side > * + .detail-h { margin-top: 22px; } .detail__side > * + * { margin-top: 10px; }
.detail .table th { position: static; background: transparent; } .detail-item { padding: 0; border: 0; } .detail-totals { margin-top: 14px; margin-left: auto; width: min(320px, 100%); grid-template-columns: 1fr auto; } .detail-totals dd { text-align: right; }
.plain { margin: 0; padding-left: 18px; } .row-detail td { white-space: normal; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } }
/* inventory */
.strike { text-decoration: line-through; } .tags { gap: 6px; } .item-cell { padding: 0; border: 0; animation: none; } .is-removed { opacity: .55; }
.picker-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); gap: 22px; } .picker { display: grid; gap: 4px; max-height: 360px; overflow: auto; margin-top: 10px; padding-right: 4px; }
.picker__item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 11px; cursor: pointer; transition: background .15s; } .picker__item:hover { background: var(--panel-2); } .picker__item input { width: 18px; height: 18px; accent-color: var(--brand); }
.picker__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; } .picker__total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 10px; }
@media (max-width: 780px) { .picker-wrap { grid-template-columns: minmax(0, 1fr); } }
/* delivery */
.delivery { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } @media (max-width: 1000px) { .delivery { grid-template-columns: minmax(0, 1fr); } }
.phone { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 16; margin-inline: auto; border: 8px solid #05070d; border-radius: 34px; background: #05070d; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: contain; display: block; background: #05070d; }
.phone__off { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); } .phone__off .icon { width: 34px; height: 34px; color: var(--faint); }
.bot-row { padding: 6px 0; border: 0; animation: none; }

.inv-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.table td .badge { white-space: nowrap; }

.table-wrap:focus-visible { outline-offset: -3px; }
h2.detail-h { font-size: .74rem; font-weight: 700; }

/* ---- listing dialog (inventory) ---- */
.modal--listing { width: min(980px, calc(100vw - 24px)); }
.ld { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.ld__preview { display: grid; gap: 10px; position: sticky; top: 0; }
.ld__main { display: grid; gap: 22px; min-width: 0; }
.ld__sec { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.ld__main > .ld__status + .ld__sec { padding-top: 0; border-top: 0; }
.ld__status { display: flex; gap: 8px; }
.ld__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pv-card { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.pv-card__img { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; }
.pv-card__img img, .pv-scene img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-card__name { font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; } .pv-card__meta { font-size: .82rem; }
.pv-card__price { display: flex; gap: 8px; align-items: baseline; }
.pv-scene { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #e7e0f2 0 16%, #6a4f93 17% 48%, #2b1d46 100%); }
.pv-empty { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: .85rem; padding: 12px; text-align: center; }
.pv-card__img .pv-empty { color: #5b6275; }
.pv-scene .pv-empty { color: #d6cdea; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.45; font: inherit; }
.ld__members { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.ld__members li { display: flex; align-items: center; gap: 10px; }
.ld__stock { margin: 0; font-size: .88rem; }
.ld__tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.ld__tile { margin: 0; display: grid; gap: 6px; width: 160px; font-size: .85rem; }
.ld__tile img { width: 160px; height: 160px; object-fit: contain; border-radius: 12px; background: #fff; border: 2px solid var(--line); }
.ld__tile.is-chosen img { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft, rgb(91 124 255 / .25)); }
.ld__choices { display: grid; gap: 8px; }
.ld__choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ld__choice small { display: block; } .ld__choice.is-off { cursor: not-allowed; opacity: .8; }
.ld__job { display: grid; gap: 8px; }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: 99px; background: var(--brand); animation: indeterminate 1.3s var(--ease) infinite; }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
.ld__todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ld__todo li { display: flex; gap: 8px; align-items: center; color: var(--warn); }
.field__hint.is-warn { color: var(--warn); }
.pv-group { display: grid; gap: 10px; align-content: start; min-width: 0; }
@media (max-width: 760px) { .ld { grid-template-columns: minmax(0, 1fr); } .ld__preview { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .pv-link { grid-column: 1 / -1; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .progress i { animation: none; width: 100%; opacity: .55; } }

.row-actions { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* ---- vault ---- */
.vault-total { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 24px; }
.vault-total__value { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.wallet { display: grid; gap: 14px; padding: 20px; align-content: start; }
.wallet__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.wallet__title { display: flex; gap: 12px; align-items: center; } .wallet__title h2 { font-size: 1.05rem; margin: 0; }
.wallet__actions { display: flex; gap: 8px; }
.coin { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; font-size: 1.1rem; background: var(--brand); }
.coin--usdt-bsc { background: #1c9f7c; } .coin--usdt-eth { background: #2e8b72; } .coin--ltc { background: #4b6fb0; } .coin--sol { background: #7a4de0; }
.wallet__amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .wallet__amount span { font-size: 1rem; color: var(--muted); font-weight: 700; }
.wallet__usd { font-size: 1.05rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wallet__addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .wallet__addr code { padding: 6px 10px; border-radius: 9px; background: var(--panel-3); }
.wallet__qr { display: grid; justify-items: start; gap: 6px; } .wallet__qr img { border-radius: 12px; background: #fff; padding: 6px; }
.wallet--empty .empty { padding: 20px 8px; }
