:root {
  color-scheme: light;
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #627d98;
  --bg: #f4f7fb;
  --paper: #ffffff;
  --line: #d9e2ec;
  --line-strong: #bcccdc;
  --blue: #1268f3;
  --blue-dark: #0b4fbd;
  --blue-soft: #eaf2ff;
  --green: #14835f;
  --green-soft: #e6f6ef;
  --amber: #a65f00;
  --amber-soft: #fff2d8;
  --red: #c93838;
  --red-soft: #feecec;
  --yellow-soft: #fff9e8;
  --shadow: 0 14px 42px rgba(16, 42, 67, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(18, 104, 243, 0.18);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: #8ea5bc; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 104, 243, .1); }
textarea { resize: vertical; }

.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 18px;
  overflow: auto;
  color: #d9e2ec;
  background: #102a43;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(140deg, #2b7fff, #0b55c8); color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 10px 24px rgba(18, 104, 243, .25);
}
.brand strong { display: block; color: #fff; font-size: 17px; }
.brand small { display: block; margin-top: 3px; color: #9fb3c8; font-size: 11px; }
.main-nav { display: grid; gap: 6px; }
.main-nav a {
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 8px; min-height: 44px;
  border-radius: 10px; color: #cbd8e6; padding: 6px 10px; transition: .16s ease;
}
.main-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.main-nav a.active { background: #fff; color: var(--ink); font-weight: 750; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.nav-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; }
.main-nav a.active .nav-icon { color: #fff; background: var(--blue); }
.nav-label { margin: 24px 10px 6px; color: #829ab1; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.sidebar-note { margin: auto 6px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); padding: 13px; }
.sidebar-note strong { color: #fff; font-size: 12px; }
.sidebar-note p { margin: 6px 0 0; color: #9fb3c8; font-size: 12px; line-height: 1.55; }
.user-card { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 6px 0; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dbeafe; color: #0b55c8; font-weight: 850; }
.avatar.large { width: 46px; height: 46px; }
.user-card strong { display: block; color: #fff; font-size: 13px; }
.user-card small { display: block; margin-top: 3px; color: #9fb3c8; font-size: 11px; }
.more-button { border: 0; background: transparent; color: #9fb3c8; padding: 8px; }
.account-menu { position: absolute; right: 0; bottom: 52px; z-index: 50; width: 150px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; box-shadow: var(--shadow); }
.account-menu a, .account-menu button { display: block; width: 100%; border: 0; border-radius: 7px; background: transparent; color: var(--ink); padding: 9px 10px; text-align: left; font-size: 13px; }
.account-menu a:hover, .account-menu button:hover { background: var(--bg); }

.workspace { min-width: 0; padding: 34px clamp(22px, 3.7vw, 54px) 60px; }
.mobile-header { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 5px 0 6px; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); }
.kicker { margin: 0; color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.heading-actions { display: flex; align-items: center; gap: 10px; }

.primary-button, .secondary-button, .danger-button, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  border-radius: 9px; padding: 0 16px; font-weight: 750; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.primary-button { border: 1px solid var(--blue); background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(18,104,243,.18); }
.primary-button:hover { transform: translateY(-1px); background: var(--blue-dark); box-shadow: 0 12px 26px rgba(18,104,243,.22); }
.primary-button.compact { min-height: 40px; }
.secondary-button { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.secondary-button:hover { border-color: #8ea5bc; box-shadow: 0 7px 18px rgba(16,42,67,.08); }
.danger-button { border: 1px solid #efb2b2; background: #fff; color: var(--red); }
.danger-button:hover { background: var(--red-soft); }
.text-button { min-height: 36px; border: 0; background: transparent; color: var(--blue-dark); padding: 0 8px; }
.row-action, .strong-link { color: var(--blue-dark); font-weight: 750; }

.flash-stack { position: fixed; top: 18px; right: 22px; z-index: 100; display: grid; gap: 8px; max-width: 420px; }
.flash { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; }
.flash-success { border-color: #b4dfce; background: var(--green-soft); color: #0d674c; }
.flash-error { border-color: #f1b4b4; background: var(--red-soft); color: #9e2c2c; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 134px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 18px; box-shadow: 0 8px 24px rgba(16,42,67,.05); transition: transform .16s ease, box-shadow .16s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--line-strong); }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card strong { display: block; margin: 10px 0 4px; font-size: 32px; line-height: 1; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-qualified::after { background: var(--green); }
.metric-rejected::after { background: var(--red); }
.metric-pending::after { background: #e68a00; }
.metric-missing::after { background: #d4a514; }
.metric-total::after { background: var(--blue); }
.rule-banner { display: grid; grid-template-columns: auto 1fr 1px 1fr; align-items: center; gap: 18px; border: 1px solid #bcd3f7; border-radius: var(--radius); background: #edf4ff; padding: 17px 20px; margin-bottom: 18px; }
.rule-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 18px; font-weight: 900; }
.rule-banner strong { font-size: 13px; }
.rule-banner p { margin: 4px 0 0; color: #486581; font-size: 12px; line-height: 1.5; }
.rule-divider { height: 42px; background: #bcd3f7; }

.panel, .form-section, .calculation-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 9px 30px rgba(16,42,67,.05); }
.panel { margin-bottom: 18px; padding: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 20px; }
.panel-heading > a { color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 840px; font-size: 12px; }
.data-table th { position: sticky; top: 0; z-index: 1; background: #f7f9fc; color: #526d82; padding: 11px 12px; text-align: left; font-weight: 800; white-space: nowrap; }
.data-table td { border-top: 1px solid var(--line); padding: 12px; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:hover td { background: #fafcff; }
.compact-table { min-width: 650px; }
.product-table { min-width: 1120px; }
.product-id { color: var(--blue-dark); font-weight: 800; }
.product-id.rejected { display: inline-block; border-radius: 6px; background: var(--red); color: #fff; padding: 5px 8px; }
.status { display: inline-flex; align-items: center; min-height: 26px; border: 1px solid transparent; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status.large { min-height: 34px; padding: 6px 13px; font-size: 13px; }
.status-qualified { border-color: #abd9c9; background: var(--green-soft); color: #0c6b4e; }
.status-rejected { border-color: #f0b4b4; background: var(--red-soft); color: #a32f2f; }
.status-pending { border-color: #eccd91; background: var(--amber-soft); color: #8a5000; }
.status-missing { border-color: #ead991; background: var(--yellow-soft); color: #765c00; }
.account-state { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 800; }
.account-state.active { background: var(--green-soft); color: var(--green); }
.account-state.disabled { background: #eef1f4; color: #6b7c8d; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 18px; color: var(--muted); font-size: 12px; }
.pagination a { color: var(--blue-dark); font-weight: 750; }
.empty-state { display: grid; justify-items: center; padding: 44px 20px; text-align: center; }
.empty-state strong { font-size: 17px; }
.empty-state p { margin: 7px 0 18px; color: var(--muted); }

.filter-panel { padding: 14px 16px; }
.filter-form { display: flex; align-items: end; gap: 10px; }
.filter-form label { min-width: 180px; }
.filter-form .search-field { flex: 1; min-width: 230px; }
.filter-form label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel > .table-scroll { border: 0; border-radius: 0; }

.product-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.form-main { min-width: 0; }
.form-section { margin-bottom: 16px; padding: 22px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-title > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; font-weight: 900; }
.section-title h2 { margin: 0; font-size: 19px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: block; min-width: 0; }
.field > span, .stack-form label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.field small, .stack-form small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.field.required > span::after, .upload-field.required strong::after { content: " 必填"; color: #aa6500; font-size: 9px; font-weight: 800; }
.field.required input, .field.required select, .upload-field.required { background: var(--yellow-soft); }
.span-2 { grid-column: 1 / -1; }
.optional-section { background: #fbfcfd; }
.compact-section { display: grid; grid-template-columns: 1fr minmax(220px, 38%); align-items: center; gap: 20px; }
.compact-section .section-title { margin: 0; }
.upload-field { display: flex; align-items: center; gap: 13px; min-height: 76px; margin-top: 14px; border: 1px dashed #9fb3c8; border-radius: 11px; padding: 12px; }
.upload-field:focus { outline: 3px solid rgba(18,104,243,.16); border-color: var(--blue); }
.upload-field.drag-active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 2px rgba(18,104,243,.12); }
.upload-field.upload-ready { border-color: #78bda4; }
.upload-field > div:first-child { flex: 1; min-width: 160px; }
.upload-field strong { display: block; font-size: 12px; }
.upload-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid #a9bfd5; border-radius: 8px; background: #fff; padding: 0 12px; color: var(--blue-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-preview { width: 60px; height: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.remove-upload { display: flex; align-items: center; gap: 5px; color: var(--red); font-size: 10px; }
.remove-upload input { width: auto; }
#productId.duplicate-id { border-color: var(--red); background: var(--red-soft); color: #9e2c2c; box-shadow: 0 0 0 3px rgba(197,57,57,.10); }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.decision-option { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; min-height: 76px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; padding: 12px; cursor: pointer; }
.decision-option input { position: absolute; opacity: 0; pointer-events: none; }
.decision-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #edf1f5; color: var(--muted); font-weight: 900; }
.decision-option strong { display: block; font-size: 12px; }
.decision-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.decision-option.support:has(input:checked) { border-color: #78bda4; background: var(--green-soft); }
.decision-option.support:has(input:checked) .decision-symbol { background: var(--green); color: #fff; }
.decision-option.reject:has(input:checked) { border-color: #e49d9d; background: var(--red-soft); }
.decision-option.reject:has(input:checked) .decision-symbol { background: var(--red); color: #fff; }
.calculation-card { position: sticky; top: 20px; padding: 22px; }
.calculation-card h2 { margin: 4px 0 16px; font-size: 21px; }
.live-status { border-radius: 10px; padding: 11px; text-align: center; font-size: 13px; font-weight: 850; }
.calculation-card dl { margin: 18px 0; }
.calculation-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding: 10px 0; }
.calculation-card dt { color: var(--muted); font-size: 11px; }
.calculation-card dd { margin: 0; font-size: 12px; font-weight: 800; }
.calculation-card .total, .calculation-card .roi { border-bottom-style: solid; }
.calculation-card .total dd, .calculation-card .roi dd { font-size: 17px; color: var(--blue-dark); }
.formula-note { border-radius: 9px; background: #f2f5f8; color: #526d82; padding: 11px; font-size: 10px; line-height: 1.55; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 0 22px; }

.split-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.sticky-panel { position: sticky; top: 20px; }
.account-tools { position: sticky; top: 20px; display: grid; gap: 18px; }
.account-tools .panel { margin-bottom: 0; }
.panel-note { margin: -4px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.template-button { display: inline-flex; align-items: center; justify-content: center; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { margin: 0; }
.stack-form label input { margin-top: 6px; }
.account-list { display: grid; gap: 10px; }
.account-row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.account-row.disabled { opacity: .62; background: #f7f8fa; }
.account-main > div { display: flex; align-items: center; gap: 7px; }
.account-main p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.role-badge { border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); padding: 3px 7px; font-size: 9px; font-weight: 800; }
.account-actions { position: relative; }
.account-actions summary { border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; list-style: none; color: var(--blue-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.account-actions summary::-webkit-details-marker { display: none; }
.account-actions > div { position: absolute; right: 0; top: 40px; z-index: 10; width: 250px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; box-shadow: var(--shadow); }
.account-actions form { display: grid; gap: 8px; }
.account-actions form + form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-actions label { color: var(--muted); font-size: 10px; }
.account-actions input { margin-top: 5px; padding: 8px; }
.settings-form { display: grid; gap: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tier-table { min-width: 600px; }
.tier-table input { min-width: 120px; padding: 8px; }
.remove-tier { border: 0; background: transparent; color: var(--red); font-size: 11px; }
.narrow-panel { max-width: 520px; }

.auth-page { background: #0d2338; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); min-height: 100vh; }
.auth-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 110px); color: #fff; background: radial-gradient(circle at 18% 20%, #184f83 0, transparent 32%), linear-gradient(145deg, #0d2338, #102f4d); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 90px; font-weight: 850; }
.auth-brand span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue); }
.auth-intro .kicker { color: #80b8ff; }
.auth-intro h1 { max-width: 760px; margin: 12px 0 42px; font-size: clamp(36px, 5vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.auth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; max-width: 820px; }
.auth-features > div { border-top: 1px solid rgba(255,255,255,.24); padding-top: 15px; }
.auth-features strong { display: block; font-size: 13px; }
.auth-features span { display: block; margin-top: 6px; color: #9fb3c8; font-size: 11px; line-height: 1.55; }
.auth-card { display: flex; flex-direction: column; justify-content: center; background: #fff; padding: clamp(36px, 6vw, 86px); }
.auth-card h1, .auth-card h2 { margin: 7px 0 8px; font-size: 30px; }
.auth-card > div > p:not(.kicker), .setup-card > p { color: var(--muted); line-height: 1.65; }
.auth-card .stack-form { margin-top: 24px; }
.security-note { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; text-align: center; }
.setup-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 25% 20%, #184f83 0, transparent 30%), #0d2338; }
.setup-card { width: min(540px, 100%); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.setup-step { color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.error-page { display: grid; justify-items: start; align-content: center; min-height: 65vh; }
.error-page > span { color: #d8e6f5; font-size: clamp(70px, 14vw, 170px); font-weight: 900; line-height: .8; }
.error-page h1 { margin: 24px 0 8px; font-size: 28px; }
.error-page p { color: var(--muted); }
.error-page > div { display: flex; gap: 10px; margin-top: 15px; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .product-form { grid-template-columns: minmax(0, 1fr) 285px; }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -270px; width: 252px; transition: left .2s ease; box-shadow: 20px 0 50px rgba(16,42,67,.22); }
  .sidebar.open { left: 0; }
  .workspace { padding: 78px 16px 42px; }
  .mobile-header { position: fixed; inset: 0 0 auto; z-index: 15; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; height: 60px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); padding: 0 10px; }
  .mobile-header button, .mobile-header a { display: grid; place-items: center; height: 38px; border: 0; border-radius: 9px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 900; }
  .mobile-header strong { text-align: center; }
  .product-form { display: block; }
  .calculation-card { position: static; margin-bottom: 18px; }
  .split-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 44vh; padding: 50px 28px; }
  .auth-brand { margin-bottom: 44px; }
  .auth-intro h1 { margin-bottom: 25px; }
  .auth-card { min-height: 56vh; padding: 42px 28px; }
}

@media (max-width: 680px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions > * { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 116px; padding: 15px; }
  .metric-card strong { font-size: 27px; }
  .rule-banner { grid-template-columns: auto 1fr; }
  .rule-divider { display: none; }
  .rule-banner > div:last-child { grid-column: 1 / -1; border-top: 1px solid #bcd3f7; padding-top: 12px; }
  .filter-form { align-items: stretch; flex-direction: column; }
  .filter-form label { min-width: 0; width: 100%; }
  .form-grid, .decision-grid, .settings-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .compact-section { grid-template-columns: 1fr; }
  .upload-field { align-items: flex-start; flex-wrap: wrap; }
  .upload-field > div:first-child { flex-basis: 100%; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > * { flex: 1; min-width: 130px; }
  .account-row { grid-template-columns: 42px 1fr; }
  .account-actions { grid-column: 1 / -1; }
  .account-actions > div { left: 0; right: auto; width: min(280px, 85vw); }
  .auth-features { grid-template-columns: 1fr; }
  .auth-intro h1 { font-size: 36px; }
  .flash-stack { left: 12px; right: 12px; top: 68px; }
}
