:root {
  --bg: #f3eee4;
  --surface: #fffdf8;
  --surface-soft: #f8f4eb;
  --ink: #171815;
  --ink-2: #565750;
  --muted: #85847a;
  --line: #d9d3c7;
  --line-soft: #e9e3d8;
  --red: #e2523e;
  --red-soft: #fae7e2;
  --green: #277667;
  --green-soft: #dff0e9;
  --gold: #c69a52;
  --gold-soft: #f3e8d3;
  --dark: #171815;
  --radius: 8px;
  --shadow: 0 20px 50px rgba(35, 29, 20, .12);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { outline-offset: 2px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
}
.hidden { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: 0; margin-bottom: 12px; }
h2 { font-size: 25px; line-height: 1.2; letter-spacing: 0; margin-bottom: 4px; }
h3 { font-size: 20px; letter-spacing: 0; margin-bottom: 6px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center;
  color: #fff; background: var(--red); flex: 0 0 auto;
}
.brand-mark svg { width: 30px; height: 30px; stroke-width: 3.2; }
.brand-mark.large { width: 52px; height: 52px; margin-bottom: 22px; }
.brand-mark.large svg { width: 42px; height: 42px; }

.btn {
  border: 1px solid var(--line); border-radius: 6px; min-height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: #aaa397; background: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn.primary:hover { background: #2a2b27; border-color: #2a2b27; }
.btn.danger { color: var(--red); border-color: #e8b9b0; background: #fff7f5; }
.btn.wide { width: 100%; min-height: 46px; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid transparent; border-radius: 6px; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-soft); border-color: var(--line-soft); }
.text-btn { border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px; }

.login-screen {
  min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 520px) 1fr; background: var(--bg);
}
.login-panel { padding: clamp(36px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; }
.login-panel h1 { font-size: clamp(32px, 4vw, 48px); }
.login-copy { color: var(--ink-2); line-height: 1.7; margin-bottom: 30px; max-width: 340px; }
.login-panel form { display: grid; gap: 16px; max-width: 360px; }
.login-panel label, .form-grid label, .settings-card label, .advanced label { display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--ink); min-height: 40px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39, 118, 103, .1); }
.form-error { color: var(--red); font-size: 12px; min-height: 18px; margin: 0; }
.login-foot { max-width: 360px; color: var(--muted); font-size: 11px; margin-top: 20px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(39, 118, 103, .11); flex: 0 0 auto; }
.login-aside {
  position: relative; overflow: hidden; margin: 18px 18px 18px 0; border-radius: 10px;
  background: var(--dark); color: #fff; display: flex; align-items: flex-end; padding: clamp(32px, 6vw, 78px);
}
.login-aside::before {
  content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; right: -160px; top: -160px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.login-aside::after {
  content: ""; position: absolute; width: 2px; height: 56%; right: 18%; top: 12%; background: linear-gradient(transparent, var(--red), transparent);
  transform: rotate(28deg);
}
.login-aside-grid {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.login-aside-copy { position: relative; z-index: 1; max-width: 560px; }
.login-aside-copy h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.08; margin: 20px 0 38px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-soft); border-radius: 999px;
  min-height: 25px; padding: 3px 9px; background: var(--surface-soft); color: var(--ink-2);
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.login-aside .meta-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.82); }
.login-flow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; gap: 18px; }
.login-flow div { display: grid; gap: 7px; }
.login-flow b { font-size: 10px; color: var(--red); }
.login-flow span { color: rgba(255,255,255,.72); font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  min-height: 100vh; position: sticky; top: 0; align-self: start; background: var(--dark); color: #fff;
  padding: 22px 16px 18px; display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 25px; }
.brand strong { display: block; font-size: 14px; }
.brand small { display: block; color: rgba(255,255,255,.42); font-size: 8px; letter-spacing: .12em; margin-top: 4px; }
.nav { display: grid; gap: 4px; margin-top: 8px; }
.nav button {
  border: 0; background: transparent; color: rgba(255,255,255,.62); border-radius: 6px;
  min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; cursor: pointer; text-align: left;
}
.nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav button.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--red); }
.nav button svg { width: 17px; height: 17px; }
.nav button span { font-size: 12px; font-weight: 700; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 8px 0; display: grid; gap: 5px; }
.sidebar-foot span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 10px; }
.sidebar-foot strong { font-size: 10px; font-weight: 600; margin-top: 4px; }
.sidebar-foot small { font-size: 9px; color: rgba(255,255,255,.36); }
.main { min-width: 0; }
.topbar {
  min-height: 68px; border-bottom: 1px solid var(--line); background: rgba(243,238,228,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; position: sticky; top: 0; z-index: 10;
}
.global-search, .toolbar-search { display: flex; align-items: center; gap: 8px; min-width: 280px; color: var(--muted); }
.global-search input, .toolbar-search input { background: transparent; border: 0; box-shadow: none; min-height: 32px; padding-left: 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-user { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 16px; }
.admin-user div { text-align: right; }
.admin-user strong { display: block; font-size: 11px; }
.admin-user small { color: var(--muted); font-size: 9px; }
.admin-user > span {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 12px;
}
.content { padding: 28px; max-width: 1500px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; animation: reveal .18s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.view-head p:not(.eyebrow) { color: var(--ink-2); margin: 0; line-height: 1.6; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  min-height: 114px; padding: 18px; display: flex; align-items: flex-start; justify-content: space-between;
}
.stat-card > div { display: grid; gap: 5px; }
.stat-card span:first-child { color: var(--ink-2); font-size: 11px; font-weight: 700; }
.stat-card strong { font-size: 31px; line-height: 1; letter-spacing: -.03em; }
.stat-card small { color: var(--muted); font-size: 9px; }
.stat-icon { width: 34px; height: 34px; border-radius: 7px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.gold { background: var(--gold-soft); color: var(--gold); }
.stat-icon svg { width: 17px; height: 17px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head > div { display: grid; gap: 3px; }
.panel-head strong { font-size: 13px; }
.panel-head span { color: var(--muted); font-size: 9px; }
.chart { height: 220px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; align-items: end; padding-top: 20px; }
.bar-wrap { height: 100%; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(to top, rgba(39,118,103,.04), transparent); border-radius: 3px; }
.bar { width: min(100%, 24px); min-height: 4px; background: var(--green); border-radius: 3px 3px 0 0; position: relative; transition: height .4s ease; }
.bar:hover::before {
  content: attr(data-value); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  background: var(--dark); color: #fff; font-size: 9px; padding: 3px 5px; border-radius: 3px; white-space: nowrap;
}
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-top: 10px; }
.recent-list { display: grid; gap: 2px; }
.recent-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.recent-item:last-child { border-bottom: 0; }
.recent-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--surface-soft); display: grid; place-items: center; color: var(--ink-2); }
.recent-copy { min-width: 0; }
.recent-copy strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.mini-status { border-radius: 999px; padding: 3px 7px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 700; }
.mini-status.pending { color: #8a631d; background: var(--gold-soft); }
.mini-status.archived { color: var(--ink-2); background: var(--surface-soft); }

.toolbar { min-height: 56px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-soft); padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.toolbar select { width: auto; min-width: 120px; background: var(--surface); }
.toolbar-search { flex: 1; min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; }
.toolbar-search input { min-height: 38px; }
.table-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.toolbar + .table-panel { border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { height: 40px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-soft); padding: 0 13px; border-bottom: 1px solid var(--line); }
td { padding: 12px 13px; border-bottom: 1px solid var(--line-soft); font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(248,244,235,.65); }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; }
.cell-main { display: grid; gap: 3px; }
.cell-main strong { font-size: 11px; }
.cell-sub { color: var(--muted); font-size: 9px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; background: var(--surface-soft); color: var(--ink-2); }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.active { color: var(--green); background: var(--green-soft); }
.chip.unused { color: #8a631d; background: var(--gold-soft); }
.chip.expired, .chip.disabled { color: var(--red); background: var(--red-soft); }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.row-actions button { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 4px 7px; cursor: pointer; font-size: 9px; }
.row-actions button:hover { border-color: var(--ink-2); }
.row-actions button.danger { color: var(--red); }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; }
.empty-state svg { width: 28px; height: 28px; opacity: .5; }
.empty-state strong { color: var(--ink-2); font-size: 12px; }
.empty-state span { font-size: 10px; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); padding: 3px; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 4px; min-height: 32px; padding: 0 12px; font-size: 10px; font-weight: 700; cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(35,29,20,.08); }
.release-layout { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(460px, 1.28fr); gap: 14px; align-items: start; }
.upload-panel { position: sticky; top: 88px; }
.dropzone {
  min-height: 150px; border: 1px dashed #bbb4a7; border-radius: 7px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; background: var(--surface-soft); cursor: pointer; text-align: center;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: var(--green-soft); }
.dropzone input { display: none; }
.drop-icon { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--green); }
.dropzone strong { font-size: 12px; }
.dropzone small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.selected-file { margin-top: 10px; border: 1px solid var(--line-soft); background: var(--surface-soft); border-radius: 6px; padding: 10px; display: grid; grid-template-columns: 32px 1fr 36px; gap: 9px; align-items: center; }
.file-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border-radius: 6px; }
.selected-file strong, .selected-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file strong { font-size: 10px; }
.selected-file small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.form-grid { display: grid; gap: 11px; margin-top: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.span-two { grid-column: span 2; }
.advanced { margin: 13px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 9px 0; }
.advanced summary { cursor: pointer; color: var(--ink-2); font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.verify-list { display: grid; gap: 6px; margin: 14px 0; }
.verify-list > div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; min-height: 30px; color: var(--muted); font-size: 10px; }
.verify-list i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 8px; }
.verify-list b { font-size: 9px; font-weight: 700; }
.verify-list .ok { color: var(--green); }
.verify-list .ok i { background: var(--green-soft); border-color: transparent; }
.verify-list .bad { color: var(--red); }
.verify-list .bad i { background: var(--red-soft); border-color: transparent; }
.progress-track { height: 4px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin-bottom: 13px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--green); transition: width .2s ease; }
.release-list-panel { min-height: 540px; }
.release-table-wrap { overflow-x: auto; }
.release-list-panel table { min-width: 610px; }
.signature-mini { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.settings-grid { display: grid; grid-template-columns: minmax(320px, 560px) minmax(300px, 480px); gap: 14px; align-items: start; }
.settings-card { display: grid; gap: 14px; }
.settings-card .panel-head { margin-bottom: 2px; }
.panel-symbol { color: var(--muted); }
.settings-list { display: grid; gap: 0; margin: 0; }
.settings-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list dt { color: var(--muted); font-size: 10px; }
.settings-list dd { margin: 0; font-size: 10px; font-weight: 700; text-align: right; }

dialog { border: 0; border-radius: 10px; background: transparent; padding: 0; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(23,24,21,.48); backdrop-filter: blur(3px); }
.dialog-card { width: min(92vw, 480px); background: var(--surface); border-radius: 10px; padding: 22px; border: 1px solid var(--line); }
.dialog-card.compact { width: min(92vw, 390px); text-align: center; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-head h3 { margin-bottom: 0; }
.license-type { width: 100%; margin-bottom: 16px; }
.license-type button { flex: 1; }
.dialog-copy { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 14px 0 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dialog-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.dialog-icon svg { width: 23px; height: 23px; }
.dialog-card.compact p { color: var(--ink-2); line-height: 1.65; font-size: 11px; }
.dialog-card.compact .dialog-actions { justify-content: center; }
.confirm-field { display: grid; gap: 7px; text-align: left; margin-top: 14px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.confirm-field input { min-height: 42px; }
.code-output { max-height: 340px; overflow: auto; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 6px; padding: 12px; color: var(--ink); font: 11px/1.8 "Cascadia Mono", Consolas, monospace; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 100; }
.toast {
  min-width: 250px; max-width: 380px; background: var(--dark); color: #fff; border-radius: 7px; padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(23,24,21,.24); font-size: 11px; line-height: 1.55; animation: toast-in .2s ease-out;
}
.toast.error { background: #922f21; }
.toast.success { background: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 74px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { padding-inline: 8px; justify-content: center; }
  .brand > div:last-child, .nav span, .sidebar-foot strong, .sidebar-foot small { display: none; }
  .nav button { justify-content: center; padding: 0; }
  .sidebar-foot { align-items: center; }
  .sidebar-foot span { font-size: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .release-layout { grid-template-columns: 1fr; }
  .upload-panel { position: static; }
}

@media (max-width: 760px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-panel { padding: 34px 22px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 30; inset: auto 0 0; min-height: 0; height: 62px; padding: 7px 8px; }
  .brand, .sidebar-foot { display: none; }
  .nav { grid-template-columns: repeat(6, 1fr); margin: 0; gap: 2px; }
  .nav button { min-height: 48px; flex-direction: column; gap: 2px; font-size: 8px; }
  .nav button svg { width: 16px; height: 16px; }
  .main { padding-bottom: 68px; }
  .topbar { padding: 0 15px; min-height: 58px; }
  .global-search { min-width: 0; flex: 1; }
  .admin-user div, .topbar-actions .icon-btn:first-child { display: none; }
  .content { padding: 18px 14px; }
  .view-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; min-height: 102px; }
  .stat-card strong { font-size: 26px; }
  .overview-grid, .settings-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar-search { flex-basis: 100%; order: 4; }
  .table-panel { overflow-x: auto; }
  table { min-width: 700px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .toast-stack { left: 14px; right: 14px; bottom: 76px; }
  .toast { min-width: 0; max-width: none; }
}

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