@import url("./theme.css?v=glass");

:root {
  --panel: var(--surface);
  --outline: var(--line);
  --slot: var(--ground);
  --badge: #35191e;
  --muted: var(--subtle);
  --accent: var(--copper);
  --text: var(--soft);
  --text-pure: var(--ink);
  --font-mono: var(--mono);
  --radius-md: 6px;
  --radius-xl: 8px;
  --danger: #ffaaa0;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.brand, .auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; }
.appbar { border-bottom: 1px solid var(--line); }
.appbar__in { width: min(100% - 40px, 1280px); min-height: 70px; margin: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 10px; }
.appbar__nav, .appbar__user { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.appbar__nav a, .auth-top a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); }
.appbar__nav a:hover, .appbar__nav a[aria-current], .auth-top a:hover { color: var(--copper); }
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); }
.auth-panel { display: grid; grid-template-rows: auto 1fr; padding: 20px clamp(20px, 4vw, 72px) 48px; }
.auth-body { align-self: center; width: min(100%, 420px); margin-inline: auto; padding-top: 28px; }
.auth h1, .dash-head h1 { margin: 16px 0 8px; font-size: clamp(36px, 5vw, 66px); letter-spacing: -.06em; line-height: 1; font-weight: 620; }
.auth-sub, .dash-head__sub, .sub, .note, .cfg-empty { color: var(--soft); }
.auth-sub { margin-bottom: 24px; }
.auth-art { position: relative; min-width: 0; border-left: 1px solid var(--line); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 8px 10px; min-height: 44px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--soft); }
.tab:hover, .tab[aria-selected="true"] { color: var(--copper); }
.tab[aria-selected="true"] { border-bottom-color: var(--copper); }
.field { display: grid; align-content: start; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--soft); }
.field input, .field select, .field textarea { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--ground); border: 1px solid var(--line-strong); border-radius: 6px; }
.field textarea { min-height: 100px; resize: vertical; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--ink); text-align: center; font-size: 14px; font-weight: 580; }
.btn:hover { border-color: var(--subtle); }
.btn--primary { background: var(--copper); color: #220709; border-color: transparent; }
.btn--primary:hover { background: #ff878a; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; }
.btn--danger, .form-status.is-err { color: var(--danger); }
.form-status { margin: 10px 0 0; color: var(--soft); font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #ffb1b3; }
.shell { width: min(100% - 40px, 1280px); margin: auto; padding: 40px 0 80px; overflow-wrap: anywhere; }
.dash-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.dash-head__sub { margin-bottom: 0; }
.dash-head__chip, .chip, .badge { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 8px; color: var(--copper); font: 14px var(--mono); }
.is-off, .chip--off { color: var(--soft); }
.chip--on { color: #ffb1b3; }
.grid2, .grid3 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec-gap { margin-top: 16px; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; }
.card h2 { margin: 0 0 8px; font-weight: 590; font-size: 22px; letter-spacing: -.025em; }
.sub { margin: 0 0 16px; }
.stat-num { margin: 8px 0; font-size: 30px; font-variant-numeric: tabular-nums; }
.stat-lbl, .kv { margin: 0; color: var(--soft); font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; }
.kv dd { margin: 0; text-align: right; color: var(--ink); }
.cfg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.cfg-row time { margin-right: auto; color: var(--soft); font-size: 14px; }
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 14px; }
.tbl th, .tbl td { padding: 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--soft); font-weight: 530; }
dialog { max-width: min(560px, 100% - 32px); max-height: calc(100% - 40px); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #000b; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .appbar__nav { order: 1; width: 100%; }
  .shell { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
