:root {
  color-scheme: light;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink-950: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e2e8f0;
  --canvas: #f6f8fc;
  --surface: #ffffff;
  --danger: #b91c1c;
  --success: #15803d;
  --warning: #a16207;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--ink-950);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-shell { min-height: 100vh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), #60a5fa);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}
.brand-mark::before { content: "战"; font-size: 17px; }
.brand-name { font-size: 18px; letter-spacing: -0.02em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-email { color: var(--ink-500); font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

.page { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 70px; }
.page-wide { width: min(1520px, calc(100% - 36px)); }
.page-heading { margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: var(--blue-600); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; }
h2 { margin-bottom: 8px; font-size: 20px; letter-spacing: -0.02em; }
.subtitle { margin-bottom: 0; color: var(--ink-500); line-height: 1.7; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 26px 0; }
.card-body { padding: 24px 26px 26px; }

.field { display: grid; gap: 8px; }
.field label { color: var(--ink-700); font-size: 14px; font-weight: 750; }
.field-hint { color: var(--ink-500); font-size: 12px; line-height: 1.5; }
.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--ink-950);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.input[aria-invalid="true"] { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .09); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(59, 130, 246, .25); outline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: .58; }
.btn-primary { color: #fff; background: var(--blue-600); box-shadow: 0 8px 18px rgba(37, 99, 235, .2); }
.btn-primary:hover:not(:disabled) { background: var(--blue-700); }
.btn-secondary { color: var(--ink-700); background: #fff; border-color: #cbd5e1; }
.btn-secondary:hover:not(:disabled) { border-color: #94a3b8; background: #f8fafc; }
.btn-ghost { color: var(--ink-700); background: transparent; border-color: var(--line); }
.btn-small { min-height: 34px; padding: 6px 11px; font-size: 13px; }

.message { display: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.55; }
.message.is-visible { display: block; }
.message-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.message-success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.message-info { color: #1e40af; background: var(--blue-50); border: 1px solid #bfdbfe; }

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 480px);
  min-height: 100vh;
  background: #fff;
}
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(34px, 6vw, 80px); color: #fff; background: linear-gradient(145deg, #0f2f72, #1d4ed8 55%, #60a5fa); }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); }
.auth-visual::before { width: 560px; height: 560px; right: -190px; top: -220px; }
.auth-visual::after { width: 340px; height: 340px; left: -160px; bottom: -160px; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; }
.auth-brand .brand-mark { background: rgba(255,255,255,.17); box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.auth-copy { position: relative; z-index: 1; max-width: 650px; }
.auth-copy h1 { max-width: 620px; margin-bottom: 18px; font-size: clamp(38px, 6vw, 72px); line-height: 1.06; }
.auth-copy p { max-width: 580px; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.8; }
.auth-points { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.auth-point { padding: 8px 12px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 13px; }
.auth-panel { display: grid; place-items: center; padding: 32px; background: var(--canvas); }
.auth-card { width: min(100%, 420px); padding: 30px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0; padding: 4px; background: #eef2f7; border-radius: 12px; }
.tab { min-height: 38px; border: 0; border-radius: 9px; color: var(--ink-500); background: transparent; font-weight: 750; cursor: pointer; }
.tab.is-active { color: var(--ink-950); background: #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .08); }
.auth-form { display: grid; gap: 17px; }
.auth-form .btn { margin-top: 3px; }
.auth-footnote { margin: 18px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.6; text-align: center; }

.submit-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1fr) auto; gap: 18px; align-items: end; }
.file-control { position: relative; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px dashed #94a3b8; border-radius: 10px; background: #f8fafc; }
.file-control:hover { border-color: var(--blue-500); background: var(--blue-50); }
.file-control input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; color: var(--blue-700); background: var(--blue-100); border-radius: 8px; font-weight: 900; }
.file-copy { min-width: 0; }
.file-name { display: block; overflow: hidden; color: var(--ink-700); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: block; margin-top: 2px; color: var(--ink-500); font-size: 11px; }

.tasks-card { margin-top: 24px; overflow: hidden; }
.tasks-toolbar { display: flex; align-items: center; gap: 10px; }
.last-updated { color: var(--ink-500); font-size: 12px; }
.table-scroll { overflow-x: auto; padding: 0 26px; }
.tasks-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.tasks-table th { padding: 12px 10px; color: var(--ink-500); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.tasks-table td { padding: 15px 10px; color: var(--ink-700); border-bottom: 1px solid #edf2f7; font-size: 14px; vertical-align: middle; }
.tasks-table tr:last-child td { border-bottom: 0; }
.task-id { max-width: 170px; overflow: hidden; color: var(--ink-500); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.failure-reason { max-width: 320px; color: var(--danger); font-size: 12px; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: #92400e; background: #fef3c7; }
.status-running { color: #1d4ed8; background: #dbeafe; }
.status-done { color: #166534; background: #dcfce7; }
.status-failed { color: #991b1b; background: #fee2e2; }
.empty-state { padding: 52px 24px; color: var(--ink-500); text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink-700); font-size: 16px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 26px 22px; border-top: 1px solid var(--line); }
.page-indicator { min-width: 90px; color: var(--ink-500); font-size: 13px; text-align: center; }

.report-page { width: min(1780px, calc(100% - 28px)); padding-top: 24px; }
.report-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.report-title { margin: 0; font-size: 20px; }
.report-frame-wrap { overflow: hidden; min-height: 74vh; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.report-frame { display: block; width: 100%; height: calc(100vh - 150px); min-height: 720px; border: 0; background: #fff; }
.loading-state { display: grid; place-items: center; min-height: 65vh; padding: 40px; color: var(--ink-500); text-align: center; }
.spinner { width: 36px; height: 36px; margin: 0 auto 14px; border: 3px solid #dbeafe; border-top-color: var(--blue-600); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 310px; padding: 34px 26px; }
  .auth-copy h1 { margin-top: 44px; font-size: 42px; }
  .auth-copy p { font-size: 15px; }
  .auth-points { display: none; }
  .auth-panel { padding: 24px 18px 36px; }
  .submit-grid { grid-template-columns: 1fr 1fr; }
  .submit-grid .submit-action { grid-column: 1 / -1; }
  .submit-action .btn { width: 100%; }
  .user-email { display: none; }
}

@media (max-width: 640px) {
  .app-header { min-height: 62px; padding: 10px 16px; }
  .brand-name { font-size: 16px; }
  .page, .page-wide { width: min(100% - 24px, 1180px); padding-top: 28px; }
  .card-header { display: grid; padding: 20px 18px 0; }
  .card-body { padding: 20px 18px; }
  .submit-grid { grid-template-columns: 1fr; }
  .submit-grid .submit-action { grid-column: auto; }
  .tasks-toolbar { justify-content: space-between; }
  .last-updated { display: none; }
  .table-scroll { padding: 0 18px; }
  .pagination { padding: 16px 18px 20px; justify-content: space-between; }
  .auth-visual { min-height: 270px; }
  .auth-copy h1 { margin-top: 30px; font-size: 34px; }
  .auth-card { padding: 24px 20px; }
  .report-page { width: calc(100% - 16px); padding-top: 12px; }
  .report-topbar { padding: 0 4px; }
  .report-title { font-size: 16px; }
  .report-frame { height: calc(100vh - 120px); min-height: 620px; }
}

/* Airtable-inspired structured-data theme: original palette and components. */
:root {
  --blue-700: #0f65d8;
  --blue-600: #2d7ff9;
  --blue-500: #4d8dff;
  --blue-100: #d7e9ff;
  --blue-50: #f1f7ff;
  --coral-700: #9f2d11;
  --coral-600: #c83f1a;
  --coral-500: #e05a34;
  --coral-100: #ffe1d6;
  --peach: #f1ad7c;
  --yellow: #f8c85b;
  --teal: #68c7b8;
  --ink-950: #18191b;
  --ink-700: #3a3d42;
  --ink-500: #6b6f76;
  --line: #d9dadd;
  --canvas: #f7f7f5;
  --surface: #ffffff;
  --radius-lg: 10px;
  --radius-md: 7px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 22px rgba(0, 0, 0, .04);
}

html, body { background: var(--canvas); }
.app-header {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #cfd1d4;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral-500) 0 25%, var(--yellow) 25% 50%, var(--teal) 50% 75%, var(--blue-600) 75% 100%);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink-950);
  box-shadow: inset 0 -4px 0 var(--coral-500);
}
.brand-mark::before { font-size: 15px; }
.brand-name { letter-spacing: -0.01em; }
.page { padding-top: 34px; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { max-width: 800px; font-size: clamp(30px, 4vw, 48px); font-weight: 650; line-height: 1.04; }
.eyebrow { color: var(--coral-600); letter-spacing: .11em; }
.card { border-color: #d4d5d8; box-shadow: var(--shadow); }
.card-header { padding-top: 20px; }
.card-body { padding-top: 20px; }
.input { min-height: 42px; border-radius: 6px; border-color: #bfc2c7; }
.input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 2px rgba(45, 127, 249, .18); }
.btn { min-height: 38px; border-radius: 6px; box-shadow: none; }
.btn-primary { background: var(--coral-600); box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: var(--coral-700); }
.btn-secondary, .btn-ghost { border-color: #bfc2c7; }
.btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: #f2f2f0; border-color: #91959c; }

.auth-page { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px); background: #fff; }
.auth-visual {
  min-height: 100vh;
  padding: clamp(34px, 6vw, 78px);
  color: var(--ink-950);
  background-color: #fff;
  background-image:
    linear-gradient(#ececea 1px, transparent 1px),
    linear-gradient(90deg, #ececea 1px, transparent 1px);
  background-size: 44px 44px;
}
.auth-visual::before {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -120px;
  border: 48px solid rgba(241, 173, 124, .32);
  background: rgba(248, 200, 91, .16);
}
.auth-visual::after { display: none; }
.auth-brand { color: var(--ink-950); }
.auth-brand .brand-mark { color: #fff; background: var(--ink-950); border: 0; box-shadow: inset 0 -4px 0 var(--coral-500); }
.auth-copy { max-width: 760px; padding: 36px 0 24px; }
.auth-copy .eyebrow { color: var(--coral-600) !important; }
.auth-copy h1 { max-width: 740px; font-size: clamp(44px, 6.2vw, 84px); font-weight: 580; line-height: .98; letter-spacing: -.055em; }
.auth-copy p { max-width: 650px; color: var(--ink-500); font-size: 17px; }
.auth-panel { background: #f5eee8; border-left: 1px solid #e5d8cf; }
.auth-card { border-color: #cbc4be; border-radius: 10px; box-shadow: 0 16px 42px rgba(76, 48, 34, .11); }
.tabs { border-radius: 7px; background: #ecebe8; }
.tab { border-radius: 5px; }
.tab.is-active { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.airtable-tiles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  width: min(100%, 820px);
}
.airtable-tile { min-height: 138px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid rgba(0,0,0,.13); border-radius: 8px; }
.airtable-tile span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; opacity: .72; }
.airtable-tile strong { margin-top: auto; font-size: 15px; }
.airtable-tile small { margin-top: 4px; font-size: 11px; opacity: .75; }
.tile-coral { color: #fff; background: #a93612; }
.tile-peach { color: #211d1a; background: var(--peach); }
.tile-blue { color: #10233c; background: #8fc2ff; }
.tile-yellow { color: #2d2616; background: var(--yellow); }

.submit-grid { gap: 14px; }
.file-control { min-height: 42px; border-radius: 6px; background: #fafaf9; }
.file-control:hover { border-color: var(--coral-500); background: #fff8f5; }
.file-icon { color: var(--coral-700); background: var(--coral-100); border-radius: 5px; }
.tasks-card { border-radius: 8px; }
.table-scroll { padding: 0; border-top: 1px solid var(--line); }
.tasks-table { border-collapse: separate; border-spacing: 0; }
.tasks-table th {
  height: 36px;
  padding: 8px 12px;
  color: #52565c;
  background: #f2f2f0;
  border-right: 1px solid #d8d9dc;
  border-bottom: 1px solid #cfd1d4;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
}
.tasks-table td { height: 48px; padding: 9px 12px; border-right: 1px solid #e2e3e5; border-bottom: 1px solid #e2e3e5; }
.tasks-table th:last-child, .tasks-table td:last-child { border-right: 0; }
.tasks-table tbody tr:hover td { background: #faf8f5; }
.status { border-radius: 5px; }
.status-pending { color: #75510a; background: #fff0bd; }
.status-running { color: #1655a0; background: #dcecff; }
.status-done { color: #256542; background: #d9f2e6; }
.status-failed { color: #923122; background: #f9ddd7; }
.pagination { background: #fafaf9; }
.report-frame-wrap { border-radius: 8px; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .auth-visual { min-height: 560px; }
  .auth-copy h1 { font-size: 52px; }
  .airtable-tiles { grid-template-columns: repeat(2, 1fr); }
  .airtable-tile { min-height: 112px; }
  .auth-panel { border-left: 0; border-top: 1px solid #e5d8cf; }
}

@media (max-width: 640px) {
  .auth-visual { min-height: 540px; padding: 26px 20px; }
  .auth-copy { padding-top: 26px; }
  .auth-copy h1 { margin-top: 0; font-size: 42px; }
  .auth-copy p { font-size: 15px; }
  .airtable-tiles { display: grid; }
  .airtable-tile { min-height: 96px; padding: 12px; }
  .app-header { min-height: 56px; }
}

/* Exact visual tokens and rules from DESIGN-airtable.md. */
:root {
  --primary: #181d26;
  --primary-active: #0d1218;
  --ink-950: #181d26;
  --ink-700: #333840;
  --ink-500: #41454d;
  --line: #dddddd;
  --border-strong: #9297a0;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --signature-coral: #aa2d00;
  --signature-forest: #0a2e0e;
  --signature-cream: #f5e9d4;
  --signature-peach: #fcab79;
  --signature-mint: #a8d8c4;
  --signature-yellow: #f4d35e;
  --signature-mustard: #d9a441;
  --blue-700: #1a3866;
  --blue-600: #1b61c9;
  --blue-500: #458fff;
  --blue-100: #dcecff;
  --blue-50: #f1f6ff;
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--ink-950);
  background: var(--canvas);
}

html, body { background: var(--canvas); color: var(--ink-950); }
body { line-height: 1.25; }
h1, h2 { font-weight: 400; }
h1 { letter-spacing: 0; }
h2 { font-size: 24px; line-height: 1.35; letter-spacing: .12px; }
.subtitle { color: var(--ink-500); line-height: 1.5; }
.eyebrow { color: var(--ink-500); font-size: 14px; font-weight: 500; letter-spacing: .16px; text-transform: none; }

.app-header {
  min-height: 64px;
  padding: 8px max(24px, calc((100vw - 1280px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}
.app-header::after { display: none; }
.brand { font-weight: 500; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); box-shadow: none; }
.brand-mark::before { font-weight: 500; }
.brand-name { font-size: 16px; font-weight: 500; }

.page, .page-wide { width: min(1280px, calc(100% - 96px)); }
.page { padding-top: 64px; padding-bottom: 96px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { max-width: 820px; margin-bottom: 16px; font-size: 40px; font-weight: 400; line-height: 1.2; }

.card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; }
.card-header { padding: 24px 24px 0; }
.card-body { padding: 24px; }
.input { min-height: 44px; height: 44px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.input:focus { border-color: #458fff; box-shadow: 0 0 0 2px rgba(69, 143, 255, .2); }

.btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: none;
}
.btn:hover:not(:disabled) { transform: none; }
.btn-primary, .btn-primary:hover:not(:disabled) { color: #fff; background: var(--primary); box-shadow: none; }
.btn-primary:active:not(:disabled) { background: var(--primary-active); }
.btn-secondary, .btn-ghost, .btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) {
  color: var(--ink-950);
  background: #fff;
  border-color: var(--line);
}
.btn-secondary:active:not(:disabled), .btn-ghost:active:not(:disabled) { background: var(--surface-soft); }
.btn-small { min-height: 40px; padding: 8px 12px; border-radius: 6px; font-size: 14px; }

.auth-page { grid-template-columns: minmax(0, 1.15fr) minmax(380px, 460px); background: #fff; }
.auth-visual {
  min-height: 100vh;
  padding: 64px max(48px, calc((100vw - 1280px) / 2));
  color: var(--ink-950);
  background: #fff;
  background-image: none;
}
.auth-visual::before, .auth-visual::after { display: none; }
.auth-copy { max-width: 720px; padding: 96px 0; }
.auth-copy .eyebrow { color: var(--ink-500) !important; }
.auth-copy h1 { max-width: 660px; margin-bottom: 24px; font-size: 48px; font-weight: 500; line-height: 1.1; letter-spacing: 0; }
.auth-copy p { max-width: 620px; color: var(--ink-700); font-size: 14px; line-height: 1.55; }
.auth-panel { padding: 48px 32px; background: var(--surface-soft); border-left: 1px solid var(--line); }
.auth-card { padding: 32px; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.tabs { margin: 24px 0; padding: 4px; border-radius: 10px; background: var(--surface-strong); }
.tab { border-radius: 6px; font-size: 14px; font-weight: 500; }
.tab.is-active { box-shadow: none; }

.airtable-tiles {
  grid-template-columns: 1.18fr .9fr 1fr .82fr;
  align-items: end;
  gap: 16px;
  width: min(100%, 820px);
}
.airtable-tile { min-height: 164px; padding: 24px; border: 0; border-radius: 10px; box-shadow: none; }
.airtable-tile:nth-child(2) { min-height: 200px; }
.airtable-tile:nth-child(3) { min-height: 142px; }
.airtable-tile:nth-child(4) { min-height: 180px; }
.airtable-tile span { font-size: 13px; }
.airtable-tile strong { font-size: 16px; font-weight: 500; }
.airtable-tile small { font-size: 13px; }
.tile-coral { color: #fff; background: var(--signature-coral); }
.tile-peach { color: var(--ink-950); background: var(--signature-peach); }
.tile-blue { color: #fff; background: var(--signature-forest); }
.tile-yellow { color: var(--ink-950); background: var(--signature-cream); }

.submit-grid { gap: 16px; }
.file-control { min-height: 44px; padding: 6px 12px; border-color: var(--line); border-radius: 6px; background: #fff; }
.file-control:hover { border-color: var(--line); background: #fff; }
.file-icon { color: var(--ink-950); background: var(--signature-cream); border-radius: 6px; }
.tasks-card { border-radius: 10px; }
.table-scroll { border-top: 1px solid var(--line); }
.tasks-table th { height: 40px; color: var(--ink-700); background: var(--surface-soft); border-color: var(--line); font-weight: 500; }
.tasks-table td { height: 48px; border-color: var(--line); }
.tasks-table tbody tr:hover td { background: #fff; }
.pagination { background: #fff; }
.status { border-radius: 6px; font-weight: 500; }
.report-frame-wrap { border-radius: 10px; box-shadow: none; }

@media (max-width: 1024px) {
  .page, .page-wide { width: min(100% - 48px, 1280px); }
  .auth-visual { padding-left: 48px; padding-right: 48px; }
  .airtable-tiles { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .airtable-tile, .airtable-tile:nth-child(n) { min-height: 132px; }
}

@media (max-width: 767px) {
  .app-header { padding-left: 16px; padding-right: 16px; }
  .page, .page-wide { width: calc(100% - 32px); padding-top: 48px; }
  .page-heading h1 { font-size: 32px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: auto; padding: 32px 24px 48px; }
  .auth-copy { padding: 64px 0; }
  .auth-copy h1 { font-size: 40px; }
  .auth-panel { padding: 32px 16px 48px; border-left: 0; border-top: 1px solid var(--line); }
  .auth-card { padding: 24px; }
  .airtable-tiles { grid-template-columns: 1fr; }
  .airtable-tile, .airtable-tile:nth-child(n) { min-height: 116px; }
  .btn { min-height: 48px; }
}
