:root {
  color-scheme: light;
  --ink: #152238;
  --muted: #66758a;
  --line: #dfe6ef;
  --soft-line: #edf1f6;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --blue: #1769e0;
  --blue-dark: #0f55be;
  --blue-soft: #eaf2ff;
  --green: #087a46;
  --green-soft: #dff7ea;
  --red: #b42318;
  --red-soft: #fee4e2;
  --amber: #9a6700;
  --amber-soft: #fff1c2;
  --violet: #6d3bd1;
  --violet-soft: #eee7ff;
  --shadow: 0 18px 55px rgba(20, 40, 75, .10);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.is-hidden { display: none !important; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #3182f6, #1457c6); box-shadow: 0 12px 26px rgba(23, 105, 224, .26); font-size: 24px; font-weight: 800; }
.brand-mark-small { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; box-shadow: none; }

.auth-page { display: flex; flex-direction: column; background: radial-gradient(circle at 12% 18%, #e7f0ff 0, transparent 34%), var(--canvas); }
.auth-shell { display: grid; width: min(1080px, calc(100% - 40px)); margin: auto; padding: 56px 0 28px; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.auth-intro h1 { margin: 22px 0 14px; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -.045em; }
.auth-lead { max-width: 560px; margin: 0; color: #52627a; font-size: 19px; line-height: 1.8; }
.feature-list { display: grid; margin: 34px 0 0; padding: 0; gap: 15px; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 14px; color: #34435a; font-weight: 650; }
.feature-list span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #cddcf2; border-radius: 50%; color: var(--blue); background: rgba(255,255,255,.7); font-size: 11px; }
.auth-card { padding: 34px; border: 1px solid rgba(211, 221, 235, .9); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.auth-tabs { display: grid; padding: 4px; border-radius: 12px; background: #f0f3f8; grid-template-columns: 1fr 1fr; }
.auth-tab { padding: 9px 16px; border: 0; border-radius: 9px; color: #6a778a; background: transparent; cursor: pointer; font-weight: 700; }
.auth-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(24,39,65,.10); }
.auth-card-heading { margin: 30px 0 24px; }
.auth-card-heading h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.025em; }
.auth-card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 750; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfd8e5; border-radius: 10px; outline: none; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
input[type="number"], input[type="date"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfd8e5; border-radius: 10px; outline: none; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
input:focus { border-color: #5b98ee; box-shadow: 0 0 0 4px rgba(23,105,224,.11); }
input.is-invalid { border-color: #e0625a; box-shadow: 0 0 0 4px rgba(180,35,24,.08); }
#auth-form > label:not(:first-child) { margin-top: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.text-button { position: absolute; top: 50%; right: 12px; padding: 5px; transform: translateY(-50%); border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.primary-button, .secondary-button, .report-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 760; transition: background .18s, transform .18s, border-color .18s; }
.primary-button { color: #fff; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:active, .secondary-button:active, .report-button:active { transform: translateY(1px); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .65; }
.full-width { width: 100%; margin-top: 8px; }
.secondary-button { border-color: #ccd6e4; color: #34435a; background: #fff; }
.secondary-button:hover { border-color: #9eb4d3; background: #f8faff; }
.small-button { min-height: 36px; padding: 0 14px; font-size: 13px; }
.form-message { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-message.is-error { color: var(--red); }
.form-message.is-success { color: var(--green); }
.privacy-note { margin: 20px 0 0; color: #8793a5; font-size: 12px; line-height: 1.6; text-align: center; }
.auth-help-actions { display: grid; margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-help-button { display: inline-flex; min-height: 44px; padding: 0 14px; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: 10px; color: var(--blue); background: #fff; cursor: pointer; font-size: 13px; font-weight: 760; text-decoration: none; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.auth-help-button:hover { border-color: var(--blue-dark); color: var(--blue-dark); background: #f6f9ff; }
.auth-help-button:active { transform: translateY(1px); }
.auth-card-heading > p:empty { display: none; }
.auth-card-heading > p:empty + * { margin-top: 0; }
.password-page .auth-card { width: min(480px, 100%); justify-self: end; }
.password-page .auth-card-heading { margin-bottom: 22px; }
.password-page form > label:not(:first-child) { margin-top: 18px; }
#current-account-fields > label:not(:first-child) { margin-top: 18px; }
.auth-back-link { display: inline-flex; margin-top: 18px; color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.auth-back-link:hover { color: var(--blue-dark); text-decoration: underline; }
.security-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; color: #57677e; background: #f5f8fc; font-size: 12px; line-height: 1.65; }
.site-footer { display: flex; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 26px; justify-content: space-between; color: #8a96a7; font-size: 12px; }
.filing-link { text-decoration: none; }
.filing-link:hover { color: var(--blue); }

.app-header { position: sticky; top: 0; z-index: 20; display: flex; height: 68px; padding: 0 max(24px, calc((100% - 1180px) / 2)); align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(217,225,235,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.brand-link { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.account-area { display: flex; align-items: center; gap: 14px; }
.account-email { max-width: 280px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 22px; }
.page-heading { display: flex; margin-bottom: 28px; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.04em; }
.page-heading p:last-child { max-width: 690px; margin: 0; color: var(--muted); line-height: 1.65; }
.process-note { display: grid; min-width: 250px; padding: 14px 16px; border: 1px solid #d8e4f6; border-radius: 12px; color: #53647d; background: #f5f9ff; gap: 3px; font-size: 12px; }
.process-note strong { color: var(--blue); font-size: 14px; }
.certificate-alert { display: grid; margin: -8px 0 22px; padding: 15px 17px; border: 1px solid #f0cf70; border-radius: 13px; color: #765000; background: #fff8dd; gap: 4px; font-size: 13px; line-height: 1.55; }
.certificate-alert strong { color: #8a5b00; font-size: 14px; }
.certificate-alert.is-expired { border-color: #edaaa5; color: #8f2119; background: var(--red-soft); }
.certificate-alert.is-expired strong { color: var(--red); }
.panel { margin-bottom: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 30px rgba(29,48,78,.045); }
.panel-title-row { display: flex; margin-bottom: 20px; align-items: center; justify-content: space-between; gap: 18px; }
.panel-title-row h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-number { margin: 0 0 3px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .15em; }
.market-badge { padding: 7px 10px; border-radius: 999px; color: #1456b5; background: var(--blue-soft); font-size: 12px; font-weight: 750; }
.task-form { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(340px, 1.55fr) 150px; gap: 16px; align-items: end; }
.field-group small { display: block; margin-top: 7px; color: #8793a5; font-size: 11px; }
.file-drop { position: relative; display: flex; min-height: 48px; margin: 0; padding: 0 14px; align-items: center; border: 1px dashed #b8c7db; border-radius: 10px; color: #5c6a7d; background: #fbfcfe; cursor: pointer; }
.file-drop:hover, .file-drop.has-file, .file-drop.is-dragging { border-color: #5792e7; background: #f5f9ff; box-shadow: 0 0 0 4px rgba(23,105,224,.08); }
.file-drop input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; opacity: 0; cursor: pointer; }
.file-drop span { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.file-drop strong { max-width: 78%; overflow: hidden; color: #33445d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.file-drop small { margin: 0; white-space: nowrap; }
.submit-button { height: 48px; }
.task-list-heading { margin-bottom: 14px; }
.empty-state { display: grid; min-height: 170px; place-content: center; color: #8793a5; text-align: center; gap: 7px; }
.empty-state strong { color: #58677d; }
.task-table-wrap { overflow-x: auto; border: 1px solid var(--soft-line); border-radius: 12px; }
.task-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.task-table th { padding: 11px 14px; color: #718096; background: #f7f9fc; text-align: left; white-space: nowrap; font-size: 11px; letter-spacing: .04em; }
.task-table td { height: 58px; padding: 10px 14px; border-top: 1px solid var(--soft-line); color: #526176; }
.task-table td:nth-child(1) { width: 210px; }
.task-table td:nth-child(2) { width: 180px; }
.task-table td:nth-child(3) { width: 120px; }
.task-table td:nth-child(4) { width: 150px; }
.asin-value { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.status-chip { display: inline-flex; padding: 6px 9px; align-items: center; border-radius: 999px; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 780; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: var(--amber); background: var(--amber-soft); }
.status-processing { color: var(--blue); background: var(--blue-soft); }
.status-complete { color: var(--green); background: var(--green-soft); }
.status-failed { color: var(--red); background: var(--red-soft); }
.report-button { min-height: 34px; padding: 0 12px; color: #0e5fcf; background: #edf4ff; font-size: 12px; }
.report-button:hover { background: #dfeeff; }
.failure-reason { display: inline-block; max-width: 330px; overflow: hidden; color: var(--red); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.muted-text { color: #98a3b2; font-size: 12px; }
.refresh-note { margin: 12px 0 0; color: #98a3b2; font-size: 11px; text-align: right; }
.task-cards { display: none; }

.task-form-v2 { display: block; }
.task-identity-grid { display: grid; grid-template-columns: 1fr .72fr .82fr 1.28fr; gap: 15px; align-items: start; }
.number-suffix { position: relative; }
.number-suffix input { padding-right: 36px; }
.number-suffix span { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: #77859a; font-size: 12px; font-weight: 750; }
.date-range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.date-range-inputs > span { color: #8390a2; font-size: 12px; }
.cost-calculator { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.cost-calculator summary { padding: 13px 15px; color: #31506f; cursor: pointer; font-size: 13px; font-weight: 780; }
.cost-calculator summary span { margin-left: 8px; color: #8793a5; font-size: 11px; font-weight: 500; }
.cost-grid { display: grid; padding: 2px 15px 15px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cost-grid label { margin: 0; color: #67758a; font-size: 11px; }
.cost-grid input { height: 40px; margin-top: 6px; }
.currency-input { position: relative; display: block; }
.currency-input > span { position: absolute; z-index: 1; top: 50%; left: 13px; transform: translateY(-31%); color: #617188; font-size: 13px; font-weight: 800; pointer-events: none; }
.currency-input input { padding-left: 30px; }
.cost-result { margin: 0 15px 15px; padding: 10px 12px; border-radius: 8px; color: #45617f; background: #edf4ff; font-size: 12px; }
.report-upload-grid { display: grid; margin-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.report-upload-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; transition: border-color .18s, background .18s, box-shadow .18s; }
.report-upload-card:hover { border-color: #a9c4e9; box-shadow: 0 7px 20px rgba(41, 78, 128, .06); }
.report-upload-grid.is-invalid .report-upload-card { border-color: #e7aaa5; background: #fffafa; }
.report-upload-card.is-locked { opacity: .65; }
.report-upload-card.is-locked:hover { border-color: var(--line); box-shadow: none; }
.upload-card-heading { display: flex; align-items: center; gap: 8px; }
.upload-card-heading span { padding: 4px 7px; border-radius: 999px; color: #47617d; background: #eaf0f7; font-size: 10px; font-weight: 800; }
.upload-card-heading strong { color: var(--ink); font-size: 14px; }
.report-upload-card > p { min-height: 34px; margin: 9px 0 12px; color: #748196; font-size: 11px; line-height: 1.55; }
.report-upload-card .file-drop { min-height: 44px; }
.task-submit-row { display: flex; margin-top: 16px; align-items: center; justify-content: space-between; gap: 20px; }
.task-submit-row p { margin: 0; color: #7d899b; font-size: 12px; }
.task-submit-row p strong { color: #3c526f; }
.submit-feedback { min-width: 0; flex: 1; }
.submit-feedback .form-message { margin-top: 6px; font-weight: 700; }
.submit-feedback .form-message:empty { display: none; }
.submit-feedback .form-message.is-error { padding: 8px 10px; border-radius: 8px; background: var(--red-soft); }
.submit-feedback .form-message.is-success { padding: 8px 10px; border-radius: 8px; background: var(--green-soft); }
.task-submit-row .submit-button { min-width: 150px; padding: 0 22px; }
.period-note { display: block; margin-top: 4px; color: #8a97a8; font-family: Inter, ui-sans-serif, sans-serif; font-size: 10px; font-weight: 500; white-space: nowrap; }
.source-chips { display: flex; max-width: 185px; flex-wrap: wrap; gap: 5px; }
.source-chip { padding: 4px 7px; border-radius: 999px; color: #50627a; background: #edf2f8; white-space: nowrap; font-size: 10px; font-weight: 720; }
.source-chip.is-missing { border: 1px dashed #c5d0df; color: #8b97a7; background: #fff; }
.task-progress { display: grid; min-width: 280px; gap: 7px; }
.progress-heading, .progress-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-heading strong { overflow: hidden; color: #34455c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.progress-heading span { color: var(--blue); font-size: 11px; font-weight: 800; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e8eef6; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .35s ease; }
.progress-detail { color: #8b97a8; font-size: 10px; }
.task-actions { display: flex; min-width: 190px; align-items: center; flex-wrap: wrap; gap: 6px; }
.secondary-action-link { display: inline-flex; min-height: 34px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid #cfd9e7; border-radius: 8px; color: #3e5675; background: #fff; cursor: pointer; text-decoration: none; font-size: 11px; font-weight: 750; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.secondary-action-link:hover { border-color: #88afe6; color: var(--blue); background: #f5f9ff; }
.secondary-action-link:active { transform: translateY(1px); }
.version-note { width: 100%; color: #8a97a8; font-size: 10px; }
.task-actions .failure-reason { width: 100%; }
.task-table td { height: 94px; vertical-align: middle; }
.task-table td:nth-child(1) { width: 142px; white-space: nowrap; }
.task-table td:nth-child(2) { width: 155px; }
.task-table td:nth-child(3) { width: 185px; }
.task-table td:nth-child(4) { width: auto; }
.task-table td:nth-child(5) { width: 225px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; padding: 22px; align-items: center; justify-content: center; background: rgba(17, 31, 52, .52); }
.supplement-modal { width: min(760px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; padding: 24px; border-radius: 17px; background: #fff; box-shadow: 0 28px 90px rgba(12, 28, 55, .30); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.modal-heading .eyebrow { margin-bottom: 5px; font-size: 10px; }
.modal-heading h2 { margin: 0 0 6px; font-size: 23px; }
.modal-heading > div > p:last-child { margin: 0; color: #748196; font-size: 12px; }
.icon-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #637187; background: #fff; cursor: pointer; font-size: 20px; transition: color .18s, border-color .18s, background .18s; }
.icon-close:hover { border-color: #9eb6d7; color: var(--blue); background: #f6f9ff; }
.supplement-context { display: grid; margin: 18px 0 2px; padding: 12px 14px; border: 1px solid var(--soft-line); border-radius: 10px; background: #f8fafc; grid-template-columns: .8fr 1.5fr; gap: 14px; }
.supplement-context span { display: block; color: #8995a6; font-size: 10px; }
.supplement-context strong { display: block; margin-top: 4px; color: #34455b; font-size: 12px; }
.compact-upload-grid .report-upload-card { min-width: 0; }
.locked-file-state { display: flex; min-height: 44px; padding: 0 12px; align-items: center; border-radius: 9px; color: #7d899a; background: #eef2f7; font-size: 11px; }
.period-confirm { display: flex; margin: 16px 0 0; align-items: center; gap: 8px; color: #475a73; cursor: pointer; font-size: 12px; }
.period-confirm input { width: 16px; height: 16px; }
.supplement-warning { margin: 11px 0 0; padding: 11px 13px; border-radius: 9px; color: #7b5900; background: #fff6d8; font-size: 11px; line-height: 1.55; }
.modal-actions { display: flex; margin-top: 18px; justify-content: flex-end; gap: 9px; }
.modal-actions .primary-button, .modal-actions .secondary-button { padding: 0 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-page { background: radial-gradient(circle at 50% 0, #f7faff 0, #f3f6fb 42%, #f4f7fb 100%); }
.admin-page .app-header { height: 64px; padding: 0 max(34px, calc((100% - 1470px) / 2)); box-shadow: 0 1px 5px rgba(31, 48, 77, .07); }
.admin-page .brand-mark-small { width: 38px; height: 38px; border-radius: 8px; font-size: 21px; }
.admin-page .brand-link { font-size: 20px; }
.admin-page .site-footer { width: min(1470px, calc(100% - 68px)); padding: 20px 0; justify-content: center; gap: 22px; border-top: 1px solid #dce4ef; }
.admin-page .site-footer span::after { margin-left: 22px; color: #c0c9d6; content: "|"; }
.admin-page #logout-button { border-color: var(--blue); color: #fff; background: var(--blue); }
.admin-back-button { text-decoration: none; }
.admin-shell { width: min(1470px, calc(100% - 68px)); margin: 0 auto; padding: 17px 0 20px; }
.admin-hero { margin-bottom: 16px; }
.admin-hero h1 { margin: 0 0 5px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.admin-hero > p { margin: 0; color: #5f6f86; font-size: 13px; }
.admin-stat-grid { display: grid; margin-bottom: 14px; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.admin-stat-card { display: flex; min-height: 106px; padding: 20px 22px; align-items: center; border: 1px solid #d9e1ec; border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 3px 9px rgba(35, 54, 83, .08); gap: 20px; }
.stat-icon { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border: 1px solid #dce9fb; border-radius: 50%; color: #0b6ff6; background: #edf5ff; }
.stat-icon svg, .section-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-approved .stat-icon { border-color: #d9f0e4; color: #15a75b; background: #eaf8f0; }
.stat-suspended .stat-icon { border-color: #fee5d3; color: #ff6e0b; background: #fff3ea; }
.stat-new .stat-icon { border-color: #eadffc; color: #8047d9; background: #f5efff; }
.admin-stat-card div { display: grid; gap: 7px; }
.admin-stat-card div > span { color: #37445a; font-size: 13px; font-weight: 600; }
.admin-stat-card strong { color: #0868e8; font-size: 30px; line-height: 1; }
.stat-approved strong { color: #0868e8; }
.admin-dashboard-grid { display: grid; margin-bottom: 14px; grid-template-columns: minmax(0, 1.92fr) minmax(320px, 1.02fr); gap: 14px; align-items: stretch; }
.review-panel { padding: 14px; border: 1px solid #d9e1ec; border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: 0 3px 10px rgba(35, 54, 83, .07); }
.review-heading { display: flex; min-height: 34px; margin-bottom: 12px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-section-title { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.section-icon { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; align-items: center; justify-content: center; color: #086ef1; }
.section-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.admin-section-title h2, .review-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.admin-section-title p, .review-heading p:last-child { margin: 3px 0 0; color: #7b8798; font-size: 10px; line-height: 1.45; }
.decision-chip { display: inline-flex; min-height: 25px; padding: 0 9px; align-items: center; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.decision-chip.pending { color: #8a5b00; background: #fff2c9; }
.decision-chip.approved { color: #087a46; background: #dff7ea; }
.decision-chip.rejected { color: #a3322a; background: #fee9e7; }
.review-list { overflow: hidden; border: 1px solid #dfe5ee; border-radius: 5px; }
.review-table-head, .review-list-item { display: grid; align-items: center; grid-template-columns: minmax(120px,.72fr) minmax(185px,1.05fr) minmax(180px,1.18fr) 145px minmax(160px,.9fr); gap: 10px; }
.review-table-head { min-height: 37px; padding: 0 12px; color: #26344a; background: #f5f7fa; font-size: 11px; font-weight: 700; }
.review-list-item { min-height: 54px; padding: 8px 12px; border-top: 1px solid #e4e9f0; }
.review-applicant { display: flex; min-width: 0; align-items: center; gap: 10px; text-decoration: none; }
.review-applicant strong { overflow: hidden; color: #26344a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.review-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #56a6ff, #367eea); font-size: 11px; }
.review-list-item:nth-child(even) .review-avatar { background: linear-gradient(145deg, #bd86ef, #9567db); }
.review-email, .review-list-reason { overflow: hidden; color: #4f5c70; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.review-list-item time { color: #4f5c70; font-size: 11px; }
.review-row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.compact-action { min-height: 31px !important; padding: 0 13px !important; border-radius: 5px !important; font-size: 11px !important; }
.review-list-footer { display: flex; min-height: 38px; padding: 0 12px; align-items: center; justify-content: space-between; border-top: 1px solid #e4e9f0; color: #4f5c70; background: #fff; font-size: 11px; }
.review-list-footer strong { color: #53657d; }
.admin-loading, .admin-empty { display: grid; min-height: 112px; place-content: center; color: #8a96a7; text-align: center; font-size: 12px; }
.applicant-details { display: grid; margin: 0; padding: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
.applicant-details > div { padding: 11px 12px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f8fafc; }
.applicant-details .full-row { grid-column: 1 / -1; }
.applicant-details dt { color: #8a96a7; font-size: 10px; }
.applicant-details dd { margin: 4px 0 0; color: #34465e; font-size: 12px; line-height: 1.55; }
.decision-area { margin-top: 14px; }
.decision-area textarea { width: 100%; padding: 11px 12px; resize: vertical; border: 1px solid #cfd8e5; border-radius: 6px; outline: none; color: var(--ink); background: #fff; font: inherit; }
.decision-area textarea:focus { border-color: #5b98ee; box-shadow: 0 0 0 4px rgba(23,105,224,.11); }
.decision-actions { display: flex; justify-content: flex-end; gap: 8px; }
.reject-button { display: inline-flex; min-height: 38px; padding: 0 14px; align-items: center; justify-content: center; border: 1px solid #d9e1ec; border-radius: 5px; color: #2d405c; background: #fff; cursor: pointer; font-weight: 700; }
.reject-button:hover { border-color: #e6aaa5; color: var(--red); background: var(--red-soft); }
.approve-button { padding: 0 16px; border-radius: 5px; }
.result-message { margin-top: 14px; padding: 12px; border-radius: 6px; color: #53657d; background: #f5f8fc; font-size: 12px; }
.result-message.approved { color: #087a46; background: #e6f8ee; }
.result-message.rejected { color: #9e3028; background: #fff0ef; }
.result-message p { margin: 5px 0 0; line-height: 1.6; }
.permission-guide-heading { margin-bottom: 12px; }
.permission-rule { display: flex; min-height: 57px; margin-top: 8px; padding: 10px 12px; align-items: center; border: 1px solid #e1e6ed; border-radius: 6px; gap: 12px; }
.permission-rule > span { display: inline-flex; width: 28px; height: 28px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1.5px solid #ff720e; border-radius: 50%; color: #ff720e; background: #fff; font-size: 11px; font-weight: 850; }
.rule-restore > span { border-color: #13a955; color: #13a955; }
.rule-delete > span { border-color: #ef3d3d; color: #ef3d3d; font-size: 18px; }
.permission-rule strong { display: inline; color: #34465e; font-size: 11px; }
.permission-rule p { display: inline; margin: 0 0 0 3px; color: #6f7d91; font-size: 10px; line-height: 1.5; }
.permission-rule p::before { content: "· "; }
.access-management { margin-top: 0; }
.access-management-heading { margin-bottom: 8px; align-items: center; }
.access-management-heading .small-button { min-height: 32px; padding: 0 15px; border-radius: 5px; }
.access-toolbar { display: flex; margin-bottom: 10px; align-items: center; gap: 14px; }
.access-filter-row { width: 220px; }
.access-filter-row input { width: 100%; height: 34px; padding: 0 12px; border: 1px solid #d3dce8; border-radius: 5px; outline: none; background: #fff; font-size: 11px; }
.access-filter-row input:focus { border-color: #5b98ee; box-shadow: 0 0 0 3px rgba(23,105,224,.08); }
.status-filter-group { display: flex; gap: 8px; }
.status-filter { min-height: 32px; padding: 0 15px; border: 1px solid #d8e0eb; border-radius: 5px; color: #546379; background: #fff; cursor: pointer; font-size: 10px; font-weight: 650; }
.status-filter.is-active { border-color: #0b6ff6; color: #0b6ff6; background: #f3f8ff; box-shadow: 0 0 0 1px rgba(11,111,246,.04); }
.access-table-head, .access-user-row { display: grid; align-items: center; grid-template-columns: minmax(260px,1.65fr) 90px 120px 150px 150px minmax(180px,1fr); gap: 12px; }
.access-table-head { min-height: 38px; padding: 0 12px; border: 1px solid #dfe5ee; border-bottom: 0; border-radius: 5px 5px 0 0; color: #29374d; background: #f5f7fa; font-size: 10px; font-weight: 700; }
.access-user-list { overflow: hidden; border: 1px solid #dfe5ee; border-radius: 0; }
.access-user-row { min-height: 54px; padding: 8px 12px; border-top: 1px solid #e4e9f0; }
.access-user-row:first-child { border-top: 0; }
.access-user-identity { min-width: 0; }
.access-account-line { display: flex; min-width: 0; align-items: center; gap: 6px; }
.access-user-identity strong { overflow: hidden; color: #26344a; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.access-account-line em { padding: 3px 6px; border-radius: 4px; color: #5d6d82; background: #e9edf3; font-size: 9px; font-style: normal; white-space: nowrap; }
.access-account-line .protected-badge { border: 1px solid #9dc3f7; color: #0a68e8; background: #f1f7ff; }
.access-user-identity > span { display: block; margin-top: 3px; overflow: hidden; color: #8b96a6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-status { font-size: 11px; font-weight: 600; }
.account-status.status-approved { color: #12a34e; background: transparent; }
.account-status.status-suspended { color: #ff710d; background: transparent; }
.account-status.status-rejected { color: #ed3f3f; background: transparent; }
.account-status.status-pending { color: #9a6700; background: transparent; }
.access-user-meta span, .access-user-meta strong { display: block; }
.access-user-meta span { display: none; color: #8a96a7; font-size: 9px; }
.access-user-meta strong { color: #52637a; font-size: 10px; font-weight: 500; }
.access-user-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.access-user-actions .small-button { min-height: 30px; padding: 0 12px; border-radius: 5px; font-size: 10px; }
.danger-link-button { min-height: 30px; padding: 0 8px; border: 0; color: #ed3f3f; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; }
.danger-link-button:hover { background: #fff0ef; }
.protected-account { display: inline-flex; min-height: 30px; padding: 0 9px; align-items: center; color: #8b97a7; font-size: 11px; }
.access-list-footer { display: flex; min-height: 48px; padding: 8px 10px; align-items: center; justify-content: flex-end; border: 1px solid #dfe5ee; border-top: 0; border-radius: 0 0 5px 5px; color: #4f5d71; gap: 18px; font-size: 10px; }
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.pagination-controls > span { padding: 7px 11px; border: 1px solid #d9e1ec; border-radius: 5px; background: #fff; }
.pagination-controls button, .pagination-controls strong { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #d9e1ec; border-radius: 5px; color: #607087; background: #fff; font-size: 14px; }
.pagination-controls button { cursor: pointer; }
.pagination-controls button:disabled { cursor: default; opacity: .45; }
.pagination-controls strong { border-color: #0b6ff6; color: #fff; background: #0b6ff6; font-size: 11px; }
.delete-account-dialog { width: min(500px, 100%); padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 28px 90px rgba(12, 28, 55, .30); }
.delete-account-dialog h2 { margin: 0 0 10px; font-size: 23px; }
.delete-account-dialog > p { margin: 0 0 18px; color: #64738a; font-size: 13px; line-height: 1.7; }
.delete-account-dialog > p strong { color: var(--red); }
.delete-account-dialog .reject-button { min-height: 44px; padding: 0 16px; }
.delete-account-dialog .reject-button:disabled { cursor: not-allowed; opacity: .5; }

.report-page { background: #eef2f7; }
.report-header { position: relative; }
.report-shell { height: calc(100vh - 114px); padding: 14px; }
.report-footer { height: 46px; padding: 10px 14px 14px; }
.report-toolbar { display: flex; min-height: 48px; margin-bottom: 10px; padding: 8px 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.report-toolbar > div { display: flex; align-items: center; gap: 10px; }
.back-link { color: #31506f; text-decoration: none; font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--blue); }
.report-asin { color: #3d4b5f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 760; }
.report-frame { width: 100%; height: calc(100% - 58px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.report-state { display: grid; min-height: 360px; place-content: center; color: #66758a; text-align: center; }
.report-state strong { margin-top: 16px; color: var(--ink); font-size: 18px; }
.report-state p { margin: 8px 0 0; }
.loading-spinner { width: 32px; height: 32px; margin: auto; border: 3px solid #dbe8fa; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.error-state strong { color: var(--red); }
.inline-button { min-width: 150px; margin: 20px auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .access-management { overflow-x: auto; }
  .access-management-heading, .access-toolbar, .access-table-head, .access-user-list, .access-list-footer { min-width: 920px; }
}

@media (max-width: 800px) {
  .auth-shell { width: min(560px, calc(100% - 28px)); padding-top: 28px; grid-template-columns: 1fr; gap: 30px; }
  .auth-intro { text-align: center; }
  .auth-intro .brand-mark { margin: auto; }
  .auth-intro .eyebrow, .feature-list { display: none; }
  .auth-intro h1 { margin: 16px 0 8px; font-size: 38px; }
  .auth-lead { margin: auto; font-size: 15px; }
  .auth-card { padding: 24px 20px; }
  .auth-help-actions { gap: 8px; }
  .site-footer { width: calc(100% - 28px); }
  .app-header { height: 62px; padding: 0 14px; }
  .brand-link > span:last-child { font-size: 14px; }
  .account-email { display: none; }
  .admin-back-button { display: none; }
  .admin-shell { width: calc(100% - 28px); padding-top: 26px; }
  .admin-hero h1 { font-size: 31px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-card { min-height: 100px; padding: 15px; }
  .stat-icon { width: 46px; height: 46px; }
  .stat-icon svg { width: 25px; height: 25px; }
  .admin-stat-card strong { font-size: 24px; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .review-panel { padding: 17px 14px; }
  .review-table-head, .access-table-head { display: none; }
  .review-list-item { grid-template-columns: 1fr; gap: 8px; }
  .review-email, .review-list-reason { white-space: normal; }
  .review-row-actions { justify-content: flex-start; }
  .applicant-details { grid-template-columns: 1fr; }
  .applicant-details .full-row { grid-column: auto; }
  .access-toolbar { grid-template-columns: 1fr; }
  .status-filter-group { overflow-x: auto; }
  .access-user-list { border-radius: 11px; }
  .page-shell { width: calc(100% - 28px); padding-top: 28px; }
  .page-heading { display: block; }
  .page-heading h1 { font-size: 31px; }
  .process-note { margin-top: 18px; }
  .panel { padding: 18px 15px; border-radius: 14px; }
  .access-user-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .access-user-identity, .access-user-actions { grid-column: 1 / -1; }
  .access-user-meta span { display: block; }
  .access-user-actions { justify-content: flex-start; }
  .access-management { overflow-x: visible; }
  .access-management-heading, .access-toolbar, .access-user-list, .access-list-footer { min-width: 0; }
  .access-toolbar { display: grid; }
  .access-filter-row { width: 100%; }
  .access-list-footer { justify-content: space-between; }
  .task-form { grid-template-columns: 1fr; }
  .task-identity-grid, .report-upload-grid, .cost-grid { grid-template-columns: 1fr; }
  .date-range-inputs { grid-template-columns: 1fr; }
  .date-range-inputs > span { text-align: center; }
  .cost-calculator summary span { display: block; margin: 4px 0 0; }
  .task-submit-row { display: grid; }
  .submit-button { width: 100%; }
  .task-table-wrap { display: none !important; }
  .task-cards { display: grid; gap: 10px; }
  .task-card { padding: 14px; border: 1px solid var(--soft-line); border-radius: 12px; }
  .task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .task-card-top > strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .task-card .source-chips { max-width: none; margin: 12px 0; }
  .task-card .task-progress { min-width: 0; margin: 12px 0; }
  .task-card .task-actions { min-width: 0; }
  .task-card-action .report-button { width: 100%; }
  .failure-reason { max-width: 100%; white-space: normal; }
  .refresh-note { text-align: left; }
  .report-shell { height: calc(100vh - 106px); padding: 8px; }
  .report-footer { height: 44px; padding: 9px 14px 12px; }
  .report-toolbar { min-height: 52px; }
  .report-toolbar .report-asin { display: none; }
  .report-frame { height: calc(100% - 62px); }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .supplement-modal { max-height: calc(100vh - 20px); padding: 20px 16px; border-radius: 16px 16px 0 0; }
  .supplement-context { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.product-stage-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line, #cfd9e6);
  border-radius: 8px;
  color: #16243d;
  background: #fff;
  font: inherit;
}

.product-stage-field select:focus {
  border-color: #1769df;
  outline: 3px solid rgba(23, 105, 223, .12);
}
