:root {
  --bg: #f4f6fb;
  --bg-deep: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --text-soft: #334155;
  --muted: #667085;
  --line: #e3e8ef;
  --line-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff4ff;
  --accent: #0f766e;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --ok-line: #a7f3d0;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --bad: #b42318;
  --bad-bg: #fef3f2;
  --bad-line: #fecdca;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -8%, rgba(37, 99, 235, 0.12), transparent 38%),
    radial-gradient(circle at 96% 4%, rgba(15, 118, 110, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

code {
  background: #eef2f7;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.92em;
  color: #334155;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--primary), #4f46e5);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
}

.nav a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.token-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.token-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.token-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.token-button.is-set .token-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.token-button.is-set {
  color: var(--ok);
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

main {
  flex: 1;
  padding: 44px 0 70px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--primary);
}

.footer-spacer {
  flex: 1;
}

.dot {
  color: #cbd5e1;
}

/* ------------------------------------------------------------------ */
/* Typography & layout                                                 */
/* ------------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.accent {
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-head.compact {
  align-items: flex-start;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-head.compact h1 {
  font-size: clamp(24px, 3vw, 30px);
}

.page-sub {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.title-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 13.5px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.page-head + .panel,
.page-head + .notice,
.layout-split + .panel,
.dashboard-grid + .panel {
  margin-top: 22px;
}

.notice + .layout-split,
.notice + .panel {
  margin-top: 20px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 34px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-sheet {
  width: min(100%, 300px);
  min-height: 250px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.08), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-sheet-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.hero-line {
  height: 9px;
  width: 100%;
  border-radius: 999px;
  background: #e8edf5;
}

.hero-line.wide {
  width: 92%;
}

.hero-line.short {
  width: 58%;
}

.hero-answer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-answer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.1s ease;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.button.subtle {
  background: var(--surface-soft);
  color: var(--text-soft);
  border-color: transparent;
}

.button.subtle:hover {
  background: #eef2f7;
}

.button.danger {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad-line);
}

.button.small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 8px;
}

.text-link {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.button.is-busy .button-spinner {
  display: inline-block;
}

.button.ghost .button-spinner,
.button.subtle .button-spinner {
  border-color: rgba(23, 32, 51, 0.2);
  border-top-color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Panels, cards, stats                                                */
/* ------------------------------------------------------------------ */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.panel > h2 {
  margin-bottom: 14px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
}

.panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
}

.stat-label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.stat-value {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-link {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Badges, notices, alerts                                             */
/* ------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-good,
.badge.ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}

.badge-warn,
.badge.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.badge-bad {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad-line);
}

.badge-info {
  color: var(--info);
  background: var(--info-bg);
  border-color: #bfdbfe;
}

.badge-neutral {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.notice.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.notice.neutral {
  color: var(--text-soft);
  background: var(--surface-soft);
}

.inline-alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid var(--bad-line);
}

.inline-alert.ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}

.hint {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0;
}

.empty-inline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 24px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

/* ------------------------------------------------------------------ */
/* Lists                                                               */
/* ------------------------------------------------------------------ */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.service-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-name {
  font-weight: 600;
  color: var(--text-soft);
}

.steps,
.check-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 38px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 29px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.steps strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
}

.steps span {
  display: block;
  margin-top: 2px;
}

.check-list li {
  position: relative;
  padding: 0 0 10px 24px;
}

.check-list li:last-child {
  padding-bottom: 0;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mini-item:hover {
  border-color: #bfd0ea;
  background: var(--primary-soft);
  text-decoration: none;
}

.mini-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-body {
  min-width: 0;
  flex: 1;
}

.mini-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.record-card:hover {
  border-color: #c7d4e8;
}

.record-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.record-main {
  flex: 1;
  min-width: 0;
}

.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.record-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.record-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  white-space: pre-wrap;
}

.record-error {
  margin: 8px 0 0;
  color: var(--bad);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > span {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 650;
}

.field small {
  color: var(--muted);
  font-size: 11.5px;
}

.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: #93b4ea;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 78px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.field.inline > span {
  white-space: nowrap;
}

.field.inline input,
.field.inline select {
  width: auto;
  min-width: 140px;
}

.search-field {
  flex: 1;
  min-width: 220px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
  flex-wrap: wrap;
}

.switch input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.switch small {
  flex-basis: 100%;
  padding-left: 26px;
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.toolbar.wrap {
  flex-wrap: wrap;
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-meta {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.compact-field {
  min-width: 140px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid #c7d9fb;
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 600;
}

.filter-chip button {
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 50%;
}

.filter-chip button:hover {
  background: rgba(37, 99, 235, 0.12);
}

/* ------------------------------------------------------------------ */
/* Dropzone & previews                                                 */
/* ------------------------------------------------------------------ */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 168px;
  padding: 26px;
  border: 2px dashed #c8d5e8;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.03), transparent),
    var(--surface-soft);
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dropzone.drag-over {
  transform: scale(1.005);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}

.dropzone strong {
  font-size: 15px;
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}

.preview-item.dragging {
  opacity: 0.45;
}

.preview-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.preview-thumb {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 9px;
  background: #eef2f7;
  border: 1px solid var(--line);
}

.preview-order {
  position: absolute;
  left: -6px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
}

.preview-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-name {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-size {
  color: var(--muted);
  font-size: 11.5px;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.icon-button.remove {
  color: var(--bad);
  border-color: var(--bad-line);
  background: var(--bad-bg);
}

/* ------------------------------------------------------------------ */
/* Progress & timeline                                                 */
/* ------------------------------------------------------------------ */

.progress {
  height: 9px;
  border-radius: 999px;
  background: #e9eef6;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #4f46e5);
  transition: width 0.25s ease;
}

.progress-bar.is-error {
  background: linear-gradient(90deg, #ef4444, #b42318);
}

.progress-text {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 16px 0;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline-dot {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid #cfd8e6;
  background: var(--surface);
  flex-shrink: 0;
  z-index: 1;
}

.timeline strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.timeline small {
  display: block;
  color: #94a3b8;
  font-size: 11.5px;
}

.timeline li.active .timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.timeline li.active strong {
  color: var(--primary-dark);
}

.timeline li.done .timeline-dot {
  border-color: var(--ok);
  background: var(--ok);
}

.timeline li.done strong {
  color: var(--ok);
}

.timeline li.failed .timeline-dot {
  border-color: var(--bad);
  background: var(--bad);
}

.timeline li.failed strong {
  color: var(--bad);
}

.status-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.status-result p {
  margin: 0;
}

.status-result .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------------------------------------------------------------ */
/* Question cards & detail                                             */
/* ------------------------------------------------------------------ */

.question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.question-card:hover {
  border-color: #c7d4e8;
  box-shadow: var(--shadow-sm);
}

.question-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.question-card-title {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.question-card-title a {
  color: var(--text);
}

.question-card-title a:hover {
  color: var(--primary);
  text-decoration: none;
}

.question-preview {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.question-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
}

.question-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  border: 1px solid #e2e8f0;
}

.question-panel {
  padding: 26px;
}

.question-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.question-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}

.option-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.option-list li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.55;
}

.option-label {
  color: var(--primary-dark);
  font-weight: 800;
  flex-shrink: 0;
}

.reveal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.reveal-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.reveal-panel h2 {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 14px;
}

.question-images {
  display: grid;
  gap: 10px;
}

.question-images a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.question-images img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 16px;
  margin: 0;
  font-size: 12.5px;
}

.meta-list dt {
  color: var(--muted);
  white-space: nowrap;
}

.meta-list dd {
  margin: 0;
  color: var(--text-soft);
  text-align: right;
  overflow-wrap: anywhere;
}

.meta-heading {
  margin: 18px 0 8px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.meta-grid > div {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.meta-grid dt {
  color: var(--muted);
  font-size: 11.5px;
}

.meta-grid dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

/* ------------------------------------------------------------------ */
/* Attempts                                                            */
/* ------------------------------------------------------------------ */

.attempt-panel {
  position: sticky;
  top: 90px;
}

.attempt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.attempt-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 86px;
  padding: 12px 10px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.attempt-button:hover {
  transform: translateY(-1px);
}

.attempt-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.attempt-button.correct {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}

.attempt-button.correct .attempt-icon {
  background: #d1fae5;
}

.attempt-button.correct:hover {
  background: #dffcef;
}

.attempt-button.incorrect {
  border-color: var(--bad-line);
  background: var(--bad-bg);
  color: var(--bad);
}

.attempt-button.incorrect .attempt-icon {
  background: #fee4e2;
}

.attempt-button.incorrect:hover {
  background: #fde9e7;
}

.attempt-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attempt-item {
  display: flex;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.attempt-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 800;
  flex-shrink: 0;
}

.attempt-item.correct .attempt-mark {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-line);
}

.attempt-item.incorrect .attempt-mark {
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid var(--bad-line);
}

.attempt-item.unknown .attempt-mark {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.attempt-body {
  min-width: 0;
  flex: 1;
}

.attempt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.attempt-answer {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  white-space: pre-wrap;
}

/* ------------------------------------------------------------------ */
/* Batches & PDFs                                                      */
/* ------------------------------------------------------------------ */

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.batch-card:hover {
  border-color: #c7d4e8;
}

.batch-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-height: 58px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  flex-shrink: 0;
  line-height: 1.15;
}

.batch-date strong {
  font-size: 18px;
  font-weight: 800;
}

.batch-date span {
  font-size: 10.5px;
  font-weight: 650;
}

.batch-main {
  flex: 1;
  min-width: 0;
}

.batch-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
}

.batch-title a {
  color: var(--text);
}

.batch-title a:hover {
  color: var(--primary);
  text-decoration: none;
}

.batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.batch-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.batch-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.batch-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.batch-item-index {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.batch-item-body {
  min-width: 0;
  flex: 1;
}

.batch-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.batch-item-title a {
  color: var(--text);
}

.batch-item-title a:hover {
  color: var(--primary);
}

.batch-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.pdf-card.failed {
  border-color: var(--bad-line);
  background: #fffbfa;
}

.pdf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pdf-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.pdf-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pdf-errors {
  margin-top: 8px;
}

.error-text {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bad-bg);
  border: 1px solid var(--bad-line);
  color: var(--bad);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* States, pager, skeleton                                             */
/* ------------------------------------------------------------------ */

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 42px 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.loading-state.compact {
  padding: 22px 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dbe3ef;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
}

.empty-state h3 {
  margin: 0;
  font-size: 16px;
}

.empty-state p {
  margin: 6px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.empty-state .button {
  margin-top: 16px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.page-btn.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-info {
  margin: 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.skeleton-row {
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef2f8 25%, #f8fafc 50%, #eef2f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------ */
/* Modal & toast                                                       */
/* ------------------------------------------------------------------ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.modal {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 7px;
}

.modal-close:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.token-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 11px;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
  animation: toast-in 0.18s ease-out;
  pointer-events: auto;
}

.toast::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #93c5fd;
  flex-shrink: 0;
}

.toast.good::before {
  background: #34d399;
}

.toast.warn::before {
  background: #fbbf24;
}

.toast.bad::before {
  background: #f87171;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-visual {
    display: none;
  }

  .layout-split,
  .detail-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .attempt-panel {
    position: static;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 0;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .site-header {
    position: static;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
  }

  .preview-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  main {
    padding: 30px 0 48px;
  }

  .brand-text small {
    display: none;
  }

  .panel {
    padding: 18px;
    border-radius: 14px;
  }

  .question-panel {
    padding: 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field.inline {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .field.inline input,
  .field.inline select {
    width: 100%;
  }

  .search-field {
    min-width: 100%;
  }

  .toolbar {
    align-items: stretch;
    gap: 10px;
  }

  .toolbar-spacer {
    display: none;
  }

  .toolbar-meta {
    width: 100%;
  }

  .option-row {
    flex-direction: column;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .record-card,
  .batch-card {
    flex-direction: column;
    gap: 10px;
  }

  .record-index,
  .batch-date {
    display: none;
  }

  .record-actions,
  .batch-card-actions {
    width: 100%;
  }

  .attempt-actions {
    grid-template-columns: 1fr;
  }

  .attempt-button {
    flex-direction: row;
    justify-content: center;
    min-height: 56px;
  }

  .toast-container {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}

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