/* ═══════════════════════════════════════════════════════
   StreamVault — Main Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --accent:      #3b82f6;
  --accent-dim:  rgba(59, 130, 246, 0.12);
  --accent-line: rgba(59, 130, 246, 0.28);
  --bg:          #080b14;
  --bg-raised:   #0e1420;
  --panel:       rgba(16, 22, 36, 0.72);
  --panel-hover: #131929;
  --panel-solid: #0f1622;
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.15);
  --text:        #f0f2f7;
  --muted:       #7c8499;
  --muted-str:   #a8adbe;
  --success:     #22c55e;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   28px;
  --shadow:      0 24px 80px rgba(0,0,0,0.42);
  --max:         1180px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s var(--ease);
}

body.light {
  --bg:          #f0f2f6;
  --bg-raised:   #ffffff;
  --panel:       rgba(255,255,255,0.80);
  --panel-hover: #f4f6fa;
  --panel-solid: #ffffff;
  --line:        rgba(0,0,0,0.07);
  --line-strong: rgba(0,0,0,0.14);
  --text:        #0f1220;
  --muted:       #6b7280;
  --muted-str:   #374151;
  --shadow:      0 24px 60px rgba(0,0,0,0.09);
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Background grid ──────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
}
body.light .bg-grid { opacity: 0.6; }

/* ── Shell ────────────────────────────────────────────── */
.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 70px; padding-inline: min(calc((100% - var(--max)) / 2 + 20px), 20px);
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(20px);
  transition: border-color 0.2s;
}
.nav.scrolled { border-color: var(--line); }
body.light .nav { background: rgba(240, 242, 246, 0.85); }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.03em;
}
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 22px var(--accent-dim);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; color: var(--muted); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 9px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px; font-weight: 750;
  cursor: pointer;
  background: var(--panel);
  transition: transform 0.16s, border-color 0.16s, background 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 12px 28px var(--accent-dim);
}
.btn.primary:hover { box-shadow: 0 16px 36px var(--accent-dim); }
.btn.secondary { background: var(--panel); }
.btn.secondary:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel); }
.btn.danger { color: var(--danger); border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.07); }
.btn.danger:hover { background: rgba(239,68,68,0.12); }
.btn.small { min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; transform: none; }

.icon-btn {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 18px; font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--panel-hover); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  display: grid; align-items: center; justify-content: space-between;
  gap: 64px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.92fr);
  padding-block: 90px 80px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 20px; padding: 7px 13px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--accent-dim);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34,197,94,0.12); }

.hero h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 880; letter-spacing: -0.065em; line-height: 0.97;
}
.accent { color: var(--accent); }

.hero-copy {
  max-width: 600px; margin-top: 24px;
  color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero-actions .btn { min-height: 50px; padding: 0 22px; font-size: 15px; }

/* ── Hero visual ─────────────────────────────────────── */
.hero-visual { position: relative; min-height: 500px; }

.glass-card {
  position: absolute; inset: 28px 0 32px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(16, 22, 36, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  backdrop-filter: blur(20px);
}
body.light .glass-card { background: rgba(255,255,255,0.92); }

.win-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mini-brand { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; }
.mini-brand b { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); }
.online-tag { padding: 4px 9px; border-radius: 999px; color: var(--success); background: rgba(34,197,94,0.1); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }

.win-body { padding: 22px; }
.win-body h3 { margin-bottom: 4px; font-size: 21px; letter-spacing: -0.04em; }
.win-body p { color: var(--muted); font-size: 11px; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.mc {
  min-height: 110px; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); position: relative; overflow: hidden;
}
.mc::after { content: ""; position: absolute; right: -18px; bottom: -30px; width: 80px; height: 80px; border-radius: 50%; background: var(--c, var(--accent)); opacity: 0.13; }
.mi { font-size: 12px; font-weight: 900; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; }
.mc strong { display: block; margin-top: 11px; font-size: 11px; }
.mc small { color: var(--muted); font-size: 9px; }

.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong); border-radius: 13px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  font-size: 11px; font-weight: 750;
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 0; right: -10px; }
.chip-2 { right: 10px; bottom: 4px; animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── Sections ─────────────────────────────────────────── */
.section { padding-block: 88px; }
.section.alt { border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); }
body.light .section.alt { background: rgba(0,0,0,0.018); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 50px); letter-spacing: -0.05em; line-height: 1.05; }
.section-head p { max-width: 520px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.kicker { margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Search + filter ─────────────────────────────────── */
.tools { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; flex-wrap: wrap; }

.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-input {
  width: 100%; height: 48px; padding: 0 16px 0 46px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); font-size: 14px;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent-line); outline: 0; }
.search-input::placeholder { color: var(--muted); }

.filter-tabs { display: flex; gap: 5px; max-width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-btn {
  min-height: 37px; padding: 0 14px;
  border: 0; border-radius: 9px;
  color: var(--muted); cursor: pointer; background: transparent;
  font-size: 12px; font-weight: 750; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.filter-btn.active { color: var(--text); background: var(--panel-hover); box-shadow: inset 0 0 0 1px var(--line); }
.filter-btn:hover:not(.active) { color: var(--muted-str); }

/* ── Listing cards ─────────────────────────────────────── */
.listing-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  min-height: 278px; padding: 21px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.card:hover { border-color: var(--line-strong); background: var(--panel-hover); box-shadow: 0 18px 48px rgba(0,0,0,0.14); transform: translateY(-3px); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.os-icon {
  width: 50px; height: 50px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line); border-radius: 13px;
  color: var(--accent); background: var(--accent-dim);
  font-size: 19px; font-weight: 900;
}

.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 8px; border-radius: 999px;
  font-size: 9px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase;
}
.status::before { width: 5px; height: 5px; border-radius: 50%; content: ""; background: currentColor; }
.status.avail { color: var(--success); background: rgba(34,197,94,0.09); }
.status.beta   { color: #a78bfa; background: rgba(167,139,250,0.11); }
.status.soon   { color: var(--warning); background: rgba(245,158,11,0.09); }

.card h3 { margin-top: 19px; font-size: 19px; letter-spacing: -0.03em; }
.card-version { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.card-summary { min-height: 42px; margin-top: 13px; overflow: hidden; color: var(--muted); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box; }

.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 18px; }
.fam-tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.card-action {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); cursor: pointer; background: transparent;
  font-size: 11px; font-weight: 800;
  transition: border-color 0.15s, color 0.15s;
}
.card-action:hover { border-color: var(--accent-line); color: var(--accent); }
.card-action svg { width: 13px; height: 13px; }

.empty { display: none; padding: 52px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty.visible { display: block; }
.empty strong { display: block; font-size: 16px; margin-bottom: 6px; }

/* ── Features ──────────────────────────────────────────── */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-dim); }
.feat-icon svg { width: 20px; height: 20px; }
.feature h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.025em; }
.feature p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── QR Login section ──────────────────────────────────── */
.qr-section {
  display: grid; gap: 32px;
  grid-template-columns: auto 1fr;
  align-items: start;
  max-width: 780px;
}

.qr-panel {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
}

.qr-canvas-wrap {
  width: 230px; height: 230px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.qr-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--accent-dim); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#qrCode canvas { border-radius: 12px; }

.qr-meta { width: 100%; text-align: center; }
.token-display { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.token-display .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 750; }
.token-display .code { font-size: 22px; font-weight: 880; letter-spacing: 0.2em; color: var(--accent); font-family: monospace; }

.countdown-row { display: flex; align-items: center; gap: 10px; }
.countdown-bar { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.countdown-bar::after { content: ""; display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 1s linear, background 1s; }
.countdown-text { font-size: 11px; color: var(--muted); font-weight: 700; min-width: 30px; }

.login-status-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
}

.status-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; }
.status-icon.pending { color: var(--warning); background: rgba(245,158,11,0.1); }
.status-icon.confirmed { color: var(--success); background: rgba(34,197,94,0.1); }
.status-icon svg { width: 24px; height: 24px; }

.login-status-panel h3 { font-size: 22px; letter-spacing: -0.035em; }
.login-status-panel p { color: var(--muted); font-size: 14px; }

.login-success-panel {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 40px 30px; border: 1px solid rgba(34,197,94,0.25); border-radius: var(--radius-lg);
  background: rgba(34,197,94,0.05);
  text-align: center;
}
.success-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; color: var(--success); background: rgba(34,197,94,0.12); }
.success-icon svg { width: 28px; height: 28px; }
.login-success-panel h3 { font-size: 26px; letter-spacing: -0.04em; }
.login-success-panel p { color: var(--muted); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ── Site Manager ─────────────────────────────────────── */
.manager-card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
}
.mgr-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mgr-header h3 { font-size: 19px; letter-spacing: -0.03em; }
.mgr-divider { margin: 28px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.mgr-divider h3 { font-size: 17px; letter-spacing: -0.025em; }

.mgr-form { display: flex; flex-wrap: wrap; gap: 13px; }
.field { flex: 1 1 calc(50% - 7px); min-width: 160px; }
.field.full { flex: 1 1 100%; }
.field-row { display: flex; flex-wrap: wrap; gap: 13px; width: 100%; }
.field label { display: block; margin-bottom: 6px; color: var(--muted-str); font-size: 11px; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-raised); font-size: 13px;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-line); outline: 0; }
.field textarea { min-height: 88px; resize: vertical; }
.field select { color-scheme: dark; }
body.light .field select { color-scheme: light; }

.color-pair { display: grid; grid-template-columns: 50px 1fr; gap: 7px; }
.color-pair input[type="color"] { height: 42px; padding: 4px; cursor: pointer; border-radius: 9px; }
.color-pair input[type="text"] { font-size: 13px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; width: 100%; }

.listing-mgr-list { display: grid; gap: 8px; }
.mgr-item {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 36px minmax(0,1fr) auto;
  padding: 10px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-raised);
}
.mgr-item-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-dim); font-weight: 900; }
.mgr-item strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgr-item small { color: var(--muted); font-size: 10px; }
.mgr-item-actions { display: flex; gap: 4px; }

.mini-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; background: transparent; color: var(--muted); transition: background 0.15s, color 0.15s; }
.mini-btn:hover { background: var(--panel-hover); color: var(--text); }
.mini-btn.del:hover { color: var(--danger); border-color: rgba(239,68,68,0.2); }

.data-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.file-label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: pointer; font-size: 13px; font-weight: 750; transition: border-color 0.15s, background 0.15s; }
.file-label:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ── Footer ───────────────────────────────────────────── */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 28px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 18px; }
.footer a:hover { color: var(--text); }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--text); background: var(--panel-solid);
  box-shadow: var(--shadow);
  font-size: 12px; font-weight: 700;
  opacity: 0; transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.toast.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-content { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .device-stage, .hero-visual { display: none; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .qr-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .listing-grid, .feature-grid { grid-template-columns: 1fr; }
  .tools { flex-direction: column; }
  .tools .filter-tabs { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .mgr-item { grid-template-columns: 34px minmax(0,1fr); }
  .mgr-item-actions { grid-column: 1/-1; justify-content: flex-end; }
  .field { flex: 1 1 100%; }
  .field-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
