:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --surface: #fff;
  --ink: #1d2939;
  --muted: #657386;
  --line: #e1e7ee;
  --accent: #147d69;
  --accent-dark: #106655;
  --accent-light: #edf7f3;
  --red: #b33d50;
  --red-light: #fff0f1;
  --amber: #946319;
  --amber-light: #fff6e6;
  --radius: 16px;
  --secondary-size: .875rem;
  --control-size: 44px;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; }
button, input, textarea, select {
  font: inherit;
  min-height: var(--control-size);
  min-width: 0;
  max-width: 100%;
}
button, select { cursor: pointer; }
button { min-width: var(--control-size); line-height: 1.4; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #ccd5df;
  border-radius: 8px;
}
input, textarea { padding: 10px 12px; }
select { padding: 8px 10px; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid #b9dfd3;
  outline-offset: 2px;
  border-color: var(--accent);
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #91caba;
  outline-offset: 3px;
}
textarea { width: 100%; resize: vertical; line-height: 1.75; }
label { font-weight: 500; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.875rem; letter-spacing: -.6px; font-weight: 650; line-height: 1.4; }
h2 { font-size: 1.375rem; letter-spacing: -.3px; font-weight: 650; }
h3 { font-size: 1rem; }
svg { display: inline-block; }
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: var(--secondary-size); }
.compact { margin-top: 5px; }
.eyebrow {
  color: var(--muted);
  font-size: var(--secondary-size);
  font-weight: 650;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}
.full { width: 100%; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #d2dbe4;
  border-radius: 8px;
  background: var(--surface);
  color: #455164;
  font-weight: 550;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.button:hover:enabled { background: #f1f5f8; border-color: #b9c5d2; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover:enabled { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: var(--secondary-size);
}
.text-button:hover:enabled { text-decoration: underline; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--control-size);
  width: var(--control-size);
  height: var(--control-size);
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover:enabled { background: #edf1f5; color: #344256; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.brand-mark .icon { width: 28px; height: 28px; stroke-width: 2.5; }
.brand-mark.small { width: 36px; height: 36px; border-radius: 10px; }
.brand-mark.small .icon { width: 22px; height: 22px; }

/* Login */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 28px;
  background: radial-gradient(ellipse at 50% 30%, #eaf4f0 0, transparent 55%), var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 38px 36px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 60px #263e4910;
}
.auth-card > .brand-mark { margin-bottom: 28px; }
.auth-card > .muted { margin-top: 12px; }
.auth-card form { margin-top: 28px; }
.auth-card label { display: block; margin-bottom: 8px; }
.auth-card input { width: 100%; }
.auth-card .button { margin-top: 20px; min-height: 48px; }
.auth-card .button .icon { margin-left: auto; }
.auth-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--secondary-size);
}
.auth-check { margin-top: 24px; color: var(--muted); }
.form-error { margin-top: 10px; color: var(--red); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Workspace */
.app { max-width: 1760px; margin: 0 auto; padding: 0 32px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 92px;
  margin-bottom: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 1.125rem; }
.brand strong { font-weight: 600; }
.brand-divider { margin: 0 8px; color: #8a97a7; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--secondary-size); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #369674; flex-shrink: 0; }
.connection.offline .live-dot { background: var(--amber); }
.workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar, .main-column { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 3px #26395202; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.title-with-step { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.title-with-step > div { min-width: 0; }
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--secondary-size);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: var(--secondary-size);
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
}
.badge.neutral, .badge.queued, .badge.new, .badge.paused { color: #5f6e80; background: #eef2f6; }
.badge.ready, .badge.available, .badge.completed { color: var(--accent-dark); background: var(--accent-light); }
.badge.busy, .badge.querying, .badge.running, .badge.validating { color: #3c6095; background: #eef3fc; }
.badge.retrying, .badge.error, .badge.blocked { color: var(--amber); background: var(--amber-light); }
.badge.invalid, .badge.failed { color: var(--red); background: var(--red-light); }

/* Sessions */
.session-panel { padding: 24px; }
.session-panel .section-heading { margin-bottom: 12px; }
.session-panel h2 { display: flex; align-items: center; gap: 8px; }
.count { padding: 2px 7px; border-radius: 6px; background: #eef2f6; color: var(--muted); font-size: var(--secondary-size); font-weight: 500; }
.section-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #d7e5de;
  border-radius: 10px;
  background: #f7fbf9;
  color: #507d6c;
  font-size: var(--secondary-size);
  font-weight: 650;
}
.session-import-actions { display: flex; gap: 8px; margin: 20px 0; }
.session-import-actions > .primary { flex: 1; }
.session-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.session-counters div { display: flex; align-items: center; flex-direction: column; gap: 2px; }
.session-counters strong { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.session-counters span { color: var(--muted); font-size: var(--secondary-size); }
.session-counters div:first-child strong { color: var(--accent); }
.session-counters div:last-child strong { color: var(--red); }
.session-list { display: flex; flex-direction: column; gap: 12px; }
.session-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.session-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.session-message { margin-top: 9px; color: var(--muted); font-size: var(--secondary-size); overflow-wrap: anywhere; }
.session-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.session-meta { min-width: 0; color: var(--muted); font-size: var(--secondary-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-card-bottom > div { display: flex; flex-shrink: 0; gap: 4px; }
.session-empty { padding: 28px 0; text-align: center; }
.empty-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px dashed #bdcad4;
  border-radius: 11px;
  color: #7b8d9b;
  font-size: 1.5rem;
}
.session-empty p { margin-bottom: 6px; color: #536477; }
.session-empty > span:last-child { color: var(--muted); font-size: var(--secondary-size); }
.sidebar-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--secondary-size); }
.session-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 14px; color: var(--muted); font-size: var(--secondary-size); }
.import-status { margin-bottom: 14px; padding: 12px; border-radius: 8px; background: var(--accent-light); color: var(--accent-dark); font-size: var(--secondary-size); overflow-wrap: anywhere; }

/* Username input */
.input-panel { padding: 26px; }
.input-panel textarea {
  display: block;
  min-height: 176px;
  max-height: 600px;
  padding: 16px;
  background: #fbfcfd;
  font-family: "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
  font-size: 1rem;
}
.input-panel textarea::placeholder { color: #788596; }
.input-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-size: var(--secondary-size); }
.input-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.concurrency-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.concurrency-control input { width: 76px; }
.concurrency-control > span { color: var(--muted); font-size: var(--secondary-size); }
.input-actions > .button { min-width: 160px; }
.form-hint { min-height: 22px; margin-top: 10px; }

/* Results */
.results-section { margin-top: 28px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metric > span { display: block; color: var(--muted); font-size: var(--secondary-size); overflow-wrap: anywhere; }
.metric strong { display: block; margin-top: 6px; font-size: 1.875rem; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric.available strong { color: var(--accent); }
.metric.failed strong { color: var(--red); }
.progress-area { margin-bottom: 20px; }
.progress-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; color: var(--muted); font-size: var(--secondary-size); }
.progress-caption > span { overflow-wrap: anywhere; }
.progress-caption > span:last-child { font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; background: #e5eae8; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #e5eae8; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.results-card { overflow: hidden; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; border-radius: 9px; background: #f0f3f6; }
.filter { padding: 10px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: var(--secondary-size); white-space: nowrap; }
.filter.active { background: var(--surface); box-shadow: 0 1px 4px #23334612; color: #344457; font-weight: 600; }
.export-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.export-controls select { min-width: 80px; }
.copy-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--secondary-size); }
.copy-toolbar > div { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { max-width: 100%; max-height: 720px; overflow: auto; scrollbar-width: thin; scrollbar-color: #c7d1dc transparent; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 1rem; }
thead { background: #f7f9fb; color: var(--muted); }
th { position: sticky; top: 0; z-index: 1; background: #f7f9fb; font-size: var(--secondary-size); font-weight: 600; }
th, td { padding: 16px 12px; border-bottom: 1px solid #e9eef3; vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
.col-line { width: 7%; }
.col-username { width: 22%; }
.col-result { width: 16%; }
.col-reason { width: 34%; }
.col-session { width: 21%; }
.row-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.username { color: #34465c; font-family: Consolas, "SFMono-Regular", "Microsoft YaHei", monospace; font-size: 1rem; font-weight: 550; }
.final-result .badge { padding: 5px 10px; font-size: 1rem; font-weight: 600; }
.reason-text { display: block; color: #536477; overflow-wrap: anywhere; }
.table-session { color: var(--muted); font-size: var(--secondary-size); }
.results-empty { min-height: 250px; padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: #f0f4f7; color: #718398; }
.empty-icon .icon { width: 26px; height: 26px; }
.results-empty h3 { margin-bottom: 6px; color: #536477; font-size: 1.125rem; font-weight: 550; }
.results-empty p { margin-top: 6px; font-size: var(--secondary-size); }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--secondary-size); }
.pagination-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.pagination select { font-size: var(--secondary-size); }
.page-button { display: flex; align-items: center; justify-content: center; width: var(--control-size); height: var(--control-size); padding: 0; border: 1px solid #ccd5df; border-radius: 7px; background: var(--surface); color: #536477; font-size: 1.5rem; }
.page-button:hover:enabled { background: #f0f4f7; }
.pagination form { display: flex; align-items: center; gap: 6px; margin: 0; }
.pagination input { width: 64px; padding: 8px 4px; text-align: center; }
.results-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px 2px; color: var(--muted); font-size: var(--secondary-size); font-variant-numeric: tabular-nums; }
.app-footer { margin-top: 20px; padding: 28px 0 24px; color: var(--muted); font-size: var(--secondary-size); }

/* Feedback and dialogs */
.banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; overflow-wrap: anywhere; }
.banner.warning { border: 1px solid #e8d5ad; background: var(--amber-light); color: var(--amber); }
.dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 90px #132c3930; color: var(--ink); overflow: auto; }
.dialog::backdrop { background: #1d2c3d65; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-heading h2 { min-width: 0; overflow-wrap: anywhere; }
.dialog > .muted, .dialog form > .muted { margin-bottom: 20px; }
.dialog label { display: block; margin: 18px 0 8px; }
.dialog input { width: 100%; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.notice-list { max-height: 40dvh; margin: 20px 0 0; padding: 0; list-style: none; overflow: auto; }
.notice-list li { margin-bottom: 10px; padding: 14px; border-radius: 8px; background: var(--red-light); color: var(--red); overflow-wrap: anywhere; white-space: pre-wrap; }
.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: min(440px, calc(100vw - 32px)); max-height: 60dvh; overflow: auto; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #c5dfd2; border-radius: 10px; background: #f5fcf8; box-shadow: 0 5px 24px #293c4b15; color: #286749; font-size: var(--secondary-size); overflow-wrap: anywhere; white-space: pre-wrap; }
.toast.error { border-color: #eacbd2; background: #fff8f8; color: var(--red); }
.toast > span { min-width: 0; }
.spinner { display: inline-block; width: 24px; height: 24px; margin: 25px 0 10px; border: 2px solid #dce7e2; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive layout */
@media (min-width: 1600px) {
  .workspace { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 1280px) {
  .app { padding: 0 24px; }
  .workspace { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
  .input-panel { padding: 22px; }
  .metrics { gap: 10px; }
  .metric { padding: 14px; }
}
@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .session-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-import-actions > .primary { flex: initial; }
  .input-panel .section-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .app { padding: 0 16px; }
  .topbar { min-height: 80px; margin-bottom: 20px; padding: 16px 0; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .title-with-step { gap: 10px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric strong { font-size: 1.75rem; }
  .results-toolbar { align-items: stretch; padding: 14px; }
  .filter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .filter { padding: 10px 6px; }
  .export-controls { margin-left: auto; }
  .copy-toolbar { padding: 12px 14px; }
  .table-wrap { max-height: none; overflow: visible; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
  th { position: static; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody td { display: block; min-width: 0; padding: 0; border: 0; }
  tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: var(--secondary-size); font-weight: 500; }
  .row-number { display: flex; align-items: center; grid-column: 1 / -1; gap: 8px; font-size: var(--secondary-size); }
  .row-number::before { margin-bottom: 0; }
  .username { grid-column: 1; }
  .final-result { grid-column: 2; text-align: right; }
  .reason-cell, .table-session { grid-column: 1 / -1; }
  .pagination { padding: 14px; }
}
@media (max-width: 600px) {
  .app { padding: 0 12px; }
  .topbar { gap: 10px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand-divider { margin: 0 4px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > .connection { display: none; }
  .topbar-actions .button { padding: 10px 8px; }
  .workspace { gap: 20px; }
  .session-panel, .input-panel { padding: 18px; }
  .session-list { grid-template-columns: minmax(0, 1fr); }
  .session-empty { padding: 20px 0; }
  .input-panel .title-with-step { flex-wrap: nowrap; align-items: flex-start; }
  .input-panel .step { margin-top: 2px; }
  .input-panel .section-heading > .button { width: 100%; }
  .input-actions { align-items: stretch; gap: 14px; }
  .input-actions > .button { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:last-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .metric:last-child strong { margin-top: 0; }
  .auth-screen { padding: 16px; }
  .auth-card { padding: 30px 22px 24px; }
  .auth-card h1 { font-size: 1.625rem; }
  .dialog { padding: 20px; }
  .toast-region { right: 16px; bottom: 16px; }
  .toast { gap: 8px; padding: 12px; }
  .app-footer { margin-top: 0; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
