:root {
  color-scheme: light;
  --ink: #122038;
  --muted: #657089;
  --line: #dfe5ee;
  --line-strong: #cbd4e2;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --navy: #0b1732;
  --navy-soft: #14284e;
  --blue: #195ed8;
  --blue-dark: #114aa9;
  --blue-soft: #eaf2ff;
  --green: #13795b;
  --green-soft: #e7f7f0;
  --orange: #b85e0c;
  --orange-soft: #fff2e1;
  --red: #bb2d3b;
  --red-soft: #fff0f1;
  --shadow: 0 18px 50px rgba(18, 32, 56, 0.09);
  --radius: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface-soft); }
body { margin: 0; color: var(--ink); background: var(--surface-soft); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.auth-pending .private-page,
.auth-pending .app-header,
.auth-pending .page-footer { visibility: hidden; }
.auth-ready .private-page,
.auth-ready .app-header,
.auth-ready .page-footer { visibility: visible; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg, #2f79ef, #1455c3); box-shadow: 0 8px 20px rgba(25, 94, 216, .25); font-weight: 850; }
.brand-inverse { color: #fff; }
.brand-inverse .brand-mark { color: var(--navy); background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-light { color: #88b8ff; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 0 18px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, .auth-tab:focus-visible, .drop-zone:focus-within { outline: 3px solid rgba(25, 94, 216, .2); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.button-primary { color: #fff; background: linear-gradient(135deg, #246ce2, #1553bd); box-shadow: 0 9px 20px rgba(25, 94, 216, .22); }
.button-primary:hover:not(:disabled) { box-shadow: 0 12px 25px rgba(25, 94, 216, .28); }
.button-ghost { color: #33415d; border-color: var(--line); background: #fff; }
.button-ghost:hover:not(:disabled) { border-color: #b5c3d7; background: #f8faff; }
.button-small { min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
.button-block { width: 100%; }

.login-body { min-height: 100vh; background: var(--navy); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr); }
.login-brand-panel { position: relative; display: flex; min-height: 100vh; overflow: hidden; flex-direction: column; padding: clamp(30px, 5vw, 72px); color: #fff; background: linear-gradient(145deg, #071126 0%, #0b1b3a 54%, #102e60 100%); }
.login-copy { position: relative; z-index: 2; max-width: 680px; margin: auto 0 55px; }
.login-copy h1 { margin: 0; max-width: 650px; font-size: clamp(45px, 5vw, 74px); line-height: 1.05; letter-spacing: -.055em; }
.login-copy > p:last-child { max-width: 580px; margin: 27px 0 0; color: #bdcbe1; font-size: 17px; line-height: 1.85; }
.login-points { position: relative; z-index: 2; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.login-points article { display: flex; min-height: 104px; gap: 13px; padding: 17px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 15px; background: rgba(255, 255, 255, .055); backdrop-filter: blur(12px); }
.login-points article > span { color: #7caeff; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.login-points strong { font-size: 14px; }
.login-points p { margin: 6px 0 0; color: #aebdd5; font-size: 12px; line-height: 1.55; }
.brand-glow { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .52; pointer-events: none; }
.glow-one { width: 520px; height: 520px; right: -260px; top: -180px; background: radial-gradient(circle, rgba(39, 121, 255, .55), transparent 69%); }
.glow-two { width: 430px; height: 430px; left: -250px; bottom: -180px; background: radial-gradient(circle, rgba(28, 194, 168, .2), transparent 70%); }
.login-form-panel { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 36px; background: #f5f7fb; }
.login-card { width: min(100%, 460px); padding: 40px; border: 1px solid rgba(203, 212, 226, .74); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.login-card-heading { position: relative; }
.login-card-heading h2 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.login-card-heading > p:last-child { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.demo-badge { position: absolute; top: -2px; right: 0; padding: 5px 8px; border-radius: 999px; color: #805100; background: #fff0c7; font-size: 11px; font-weight: 750; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 28px 0 23px; padding: 4px; border-radius: 12px; background: #eef2f7; }
.auth-tab { height: 39px; border: 0; border-radius: 9px; color: #68748a; background: transparent; font-weight: 750; }
.auth-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(18, 32, 56, .08); }
.auth-form { display: grid; gap: 17px; }
.auth-form label, .field-label { display: grid; gap: 8px; color: #394760; font-size: 13px; font-weight: 700; }
.asin-list-fieldset { display: grid; gap: 9px; margin: 0 0 17px; border: 0; padding: 0; }
.asin-list-fieldset legend { margin-bottom: 1px; color: #526078; font-size: 12px; font-weight: 800; }
.asin-rows { display: grid; gap: 8px; }
.asin-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 88px auto; gap: 8px; align-items: center; }
.asin-row-site { display: grid; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #66758a; background: #f7f9fc; font-size: 11px; font-weight: 800; }
.asin-row-input, .asin-row-role { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--ink); background: #fff; font: inherit; }
.asin-row-input:focus, .asin-row-role:focus { outline: 3px solid var(--blue-soft); border-color: #9ebcf1; }
.auth-form input, .asin-input-wrap input { width: 100%; height: 49px; border: 1px solid var(--line-strong); border-radius: 11px; padding: 0 14px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.auth-form input:hover, .asin-input-wrap input:hover { border-color: #adbbcf; }
.auth-form input:focus, .asin-input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 94, 216, .1); outline: none; }
.form-message { min-height: 20px; margin: 13px 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); }
.form-message.is-info { color: var(--blue); }
.security-line { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 21px 0 0; color: #768197; font-size: 12px; }
.security-line span { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-weight: 850; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 14px; color: #8490a4; font-size: 12px; }
.site-footer a:hover { color: var(--blue); }
.login-footer { margin-top: 24px; }

.app-header { position: sticky; z-index: 20; top: 0; height: 70px; border-bottom: 1px solid rgba(223, 229, 238, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.header-inner { display: flex; width: min(1180px, calc(100% - 40px)); height: 100%; margin: 0 auto; align-items: center; justify-content: space-between; }
.header-nav { display: flex; align-items: center; gap: 12px; }
.user-label { max-width: 230px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.page-shell, .report-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.page-shell { padding: 54px 0 80px; }
.page-heading, .report-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading { margin-bottom: 31px; }
.page-heading h1, .report-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.045em; }
.page-heading p:last-child, .report-heading p:last-child { margin: 11px 0 0; color: var(--muted); line-height: 1.65; }
.privacy-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #cce8dd; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 750; }
.privacy-badge span { font-size: 9px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 24px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 34px rgba(18, 32, 56, .055); }
.task-form-panel { padding: 30px; }
.panel-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 26px; }
.panel-heading h2, .section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-number { display: inline-grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 850; }
.asin-input-wrap { display: flex; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; }
.asin-input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 94, 216, .1); }
.asin-input-wrap > span { display: inline-flex; width: 58px; flex: 0 0 auto; align-items: center; justify-content: center; border-right: 1px solid var(--line); color: #536079; background: #f6f8fb; font-size: 12px; font-weight: 800; }
.asin-input-wrap input { border: 0; border-radius: 0; box-shadow: none !important; letter-spacing: .06em; font-weight: 750; text-transform: uppercase; }
.field-help { display: block; margin: 7px 0 20px; color: #7c8799; font-size: 11px; }
.parameter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 20px 0 0; }
.parameter-grid label { display: grid; min-width: 0; gap: 7px; color: #394760; font-size: 12px; font-weight: 700; }
.parameter-grid label > span b { color: var(--red); }
.parameter-grid input, .parameter-grid select { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; color: var(--ink); background: #fff; }
.parameter-grid input:focus, .parameter-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 94, 216, .1); outline: none; }
.task-form-panel > input { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; color: var(--ink); background: #fff; }
.task-form-panel > input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 94, 216, .1); outline: none; }
.parameter-help { margin-bottom: 19px; line-height: 1.6; }
.rank-fields { margin: 0 0 19px; border: 1px solid #cfdcf0; border-radius: 14px; padding: 0 17px 17px; background: #f7faff; }
.rank-fields legend { padding: 0 7px; color: #31527f; font-size: 12px; font-weight: 800; }
.rank-fields .parameter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.risk-confirm { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; color: #5d6880; font-size: 11px; line-height: 1.55; }
.risk-confirm input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--blue); }
.tool-page { background: radial-gradient(circle at 8% -10%, rgba(67, 126, 237, .08), transparent 28%), var(--surface-soft); }
.tool-page .app-header { box-shadow: 0 8px 24px rgba(18, 32, 56, .04); }
.tool-hero { align-items: flex-end; }
.tool-hero-copy h1 { max-width: 720px; }
.tool-hero-copy p:last-child { max-width: 650px; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid #dbe4f2; border-radius: 999px; color: #526078; background: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 750; }
.hero-badge span { color: var(--blue); font-size: 15px; line-height: 1; }
.task-form-panel { box-shadow: 0 18px 42px rgba(18, 32, 56, .07); }
.task-form-panel form { display: grid; gap: 0; }
.asin-list-fieldset { padding: 0; }
.asin-list-fieldset legend { margin-bottom: 9px; padding: 0; }
.asin-list-heading { display: flex; min-height: 25px; align-items: center; justify-content: flex-end; gap: 10px; }
.field-legend { color: #394760; font-size: 13px; font-weight: 800; }
.asin-summary { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.asin-rows { gap: 10px; }
.asin-row { grid-template-columns: 42px minmax(0, 1fr) 104px auto; gap: 10px; padding: 9px; border: 1px solid #e3e9f2; border-radius: 13px; background: #fbfcff; transition: border-color .15s, box-shadow .15s, background .15s; }
.asin-row:focus-within { border-color: #9ebcf1; background: #fff; box-shadow: 0 0 0 3px rgba(25, 94, 216, .08); }
.asin-row-site { height: 42px; border: 1px solid #cddcf5; color: var(--blue); background: #edf4ff; letter-spacing: .04em; }
.asin-row-input, .asin-row-role { height: 42px; border-color: #d5deeb; }
.asin-row-input { letter-spacing: .07em; font-weight: 750; }
.remove-asin { min-width: 58px; }
.asin-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.add-asin-button { color: var(--blue); border-color: #bcd0f4; background: #f3f7ff; }
.add-asin-button:hover:not(:disabled) { border-color: #7fa8ea; background: #eaf2ff; }
.add-asin-button:disabled { color: #8d98aa; border-color: var(--line); background: #f5f6f8; }
.add-asin-button > span { font-size: 17px; line-height: 1; }
.asin-actions .field-help { margin: 0; }
.field-status { min-height: 17px; margin: 8px 0 0; color: #7b8799; font-size: 11px; line-height: 1.45; }
.field-status.is-error { color: var(--red); }
.full-width-field { margin-top: 21px; }
.full-width-field input { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; color: var(--ink); background: #fff; }
.full-width-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 94, 216, .1); outline: none; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 9px; padding-top: 18px; border-top: 1px solid #edf0f5; }
.submit-row .form-message { flex: 1 1 auto; margin: 0; }
.submit-row .button { flex: 0 0 auto; min-width: 190px; }
.drop-zone { display: grid; min-height: 118px; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1.5px dashed #b8c5d8; border-radius: 15px; padding: 19px; background: #f8faff; cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone:hover { border-color: var(--blue); background: #f2f7ff; }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-mark { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--blue); background: #e7f0ff; font-size: 24px; font-weight: 600; }
.file-name { display: grid; min-width: 0; gap: 5px; }
.file-name strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.file-name span { color: var(--muted); font-size: 12px; }
.choose-file { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: #43516b; background: #fff; font-size: 12px; font-weight: 750; }
.workflow-card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg, #0b1732, #163365); box-shadow: 0 16px 38px rgba(11, 23, 50, .18); }
.workflow-card::after { position: absolute; width: 260px; height: 260px; right: -150px; bottom: -140px; border-radius: 50%; background: rgba(58, 127, 236, .28); content: ""; }
.workflow-card h2 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.03em; }
.workflow-list { display: grid; gap: 21px; margin: 28px 0; padding: 0; list-style: none; }
.workflow-list li { display: flex; gap: 13px; }
.workflow-list li > span { display: inline-grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #9fc3ff; font-size: 11px; font-weight: 800; }
.workflow-list strong { font-size: 13px; }
.workflow-list p { margin: 4px 0 0; color: #aebdd5; font-size: 12px; line-height: 1.45; }
.workflow-note { position: relative; z-index: 1; display: flex; gap: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.workflow-note > span { display: inline-grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--navy); background: #a9caff; font-size: 11px; font-weight: 850; }
.workflow-note p { margin: 0; color: #bccae0; font-size: 11px; line-height: 1.55; }
.tasks-section { margin-top: 50px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.heading-with-count { display: flex; align-items: center; gap: 9px; }
.heading-with-count span { display: inline-grid; min-width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.refresh-button > span { font-size: 17px; transition: transform .3s; }
.refresh-button.is-spinning > span { transform: rotate(180deg); }
.task-list { min-height: 170px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(18, 32, 56, .04); }
.task-head, .task-row { display: grid; grid-template-columns: 1.15fr 1fr 1.3fr .65fr; gap: 18px; align-items: center; padding: 0 22px; }
.task-head { min-height: 45px; border-bottom: 1px solid var(--line); color: #7a8598; background: #f8f9fc; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.task-row { min-height: 88px; border-bottom: 1px solid #edf0f5; font-size: 13px; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #fbfcff; }
.task-primary { display: flex; align-items: center; gap: 11px; }
.task-primary > div { display: grid; gap: 4px; }
.task-primary strong { letter-spacing: .045em; }
.task-primary small { color: #8c96a8; font-size: 10px; }
.asin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.status { display: inline-flex; width: fit-content; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 800; }
.status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: #825f0a; background: #fff5d6; }
.status-processing { color: #145fbd; background: #e8f2ff; }
.status-completed { color: var(--green); background: var(--green-soft); }
.status-warning { color: var(--orange); background: var(--orange-soft); }
.status-failed { color: var(--red); background: var(--red-soft); }
.status-neutral { color: #59677e; background: #edf0f5; }
.status-help { display: block; max-width: 290px; margin-top: 5px; overflow: hidden; color: #7b8699; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-actions { display: flex; justify-content: flex-start; }
.muted-action { color: #9aa3b1; font-size: 11px; }
.pagination { display: flex; min-height: 58px; align-items: center; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: 12px; }
.empty-state { display: grid; min-height: 210px; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 7px 0 0; font-size: 12px; }
.empty-icon { display: inline-grid; width: 42px; height: 42px; margin-bottom: 10px; place-items: center; border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-size: 22px; }
.empty-state.is-error strong { color: var(--red); }
.page-footer { min-height: 70px; border-top: 1px solid var(--line); background: #fff; }

.report-shell { padding: 45px 0 70px; }
.report-heading { margin-bottom: 24px; }
.report-title { display: flex; align-items: center; gap: 13px; }
.report-viewer-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.viewer-toolbar { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #55627a; background: #f8f9fc; font-size: 12px; }
.viewer-toolbar > div { display: flex; align-items: center; gap: 9px; }
.viewer-toolbar p { margin: 0; color: #8590a2; }
.viewer-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.report-state { display: grid; min-height: 530px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.report-state h2 { margin: 19px 0 0; font-size: 23px; }
.report-state p { max-width: 520px; margin: 10px 0 22px; color: var(--muted); line-height: 1.65; }
.report-loader { display: flex; height: 32px; align-items: center; gap: 7px; }
.report-loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: load-dot 1s infinite ease-in-out; }
.report-loader span:nth-child(2) { animation-delay: .14s; }
.report-loader span:nth-child(3) { animation-delay: .28s; }
@keyframes load-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-9px); opacity: 1; } }
.report-wait-icon { display: inline-grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; color: var(--blue); background: var(--blue-soft); font-size: 22px; font-weight: 850; }
.report-wait-icon.is-error { color: var(--red); background: var(--red-soft); }
.report-content { padding: 24px; }
.report-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.report-modules { min-width: 0; }
.report-module.is-hidden { display: none; }
.module-menu { position: sticky; top: 86px; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 9px 28px rgba(11, 33, 74, .055); }
.module-menu-button { display: grid; width: 100%; min-height: 54px; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 8px; align-items: center; border: 1px solid transparent; border-radius: 10px; padding: 10px; color: #526078; background: transparent; text-align: left; }
.module-menu-button:hover:not(:disabled), .module-menu-button.is-active { border-color: #bfd0f2; color: var(--blue); background: var(--blue-soft); }
.module-menu-button:disabled { color: #99a2b1; background: #f5f6f8; cursor: not-allowed; }
.module-index { display: grid; width: 30px; height: 30px; grid-row: 1 / span 2; place-items: center; border-radius: 8px; color: inherit; background: rgba(31, 98, 214, .08); font-size: 11px; font-weight: 900; }
.module-name { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.module-state { color: #9aa3b2; font-size: 10px; font-weight: 700; }
.module-placeholder { display: grid; min-height: 360px; place-items: center; gap: 7px; border: 1px dashed #cfd5df; border-radius: 13px; color: #929cab; background: #f7f8fa; }
.module-placeholder strong { color: #717c8d; font-size: 20px; }
.module-placeholder span { font-size: 13px; }
.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-cards article { display: grid; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.summary-cards span { color: var(--muted); font-size: 11px; font-weight: 700; }
.summary-cards strong { font-size: 24px; letter-spacing: -.035em; }
.report-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 13px; }
.group-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.group-tab { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; color: #526078; background: #fff; font-size: 11px; font-weight: 750; }
.group-tab span { margin-left: 4px; color: #8b95a6; }
.group-tab.is-active { border-color: #9fbef1; color: var(--blue); background: var(--blue-soft); }
.page-size-label { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.page-size-label select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; color: var(--ink); background: #fff; }
.report-table-wrap { max-width: 100%; overflow-x: auto; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.master-table { width: 1380px; min-width: 1380px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.master-table col:nth-child(1) { width: 210px; }
.master-table col:nth-child(2) { width: 118px; }
.master-table col:nth-child(3) { width: 90px; }
.master-table col:nth-child(4) { width: 96px; }
.master-table col:nth-child(5) { width: 86px; }
.master-table col:nth-child(6) { width: 72px; }
.master-table col:nth-child(7) { width: 72px; }
.master-table col:nth-child(8) { width: 72px; }
.master-table col:nth-child(9) { width: 86px; }
.master-table col:nth-child(10) { width: 104px; }
.master-table col:nth-child(11) { width: 374px; }
.master-table th { position: sticky; z-index: 2; top: 0; padding: 12px 10px; border-bottom: 1px solid var(--line); color: #6f7b90; text-align: center; white-space: nowrap; background: #f7f9fc; font-size: 10px; letter-spacing: .04em; }
.master-table td { padding: 13px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; line-height: 1.55; }
.master-table td:last-child { white-space: normal; }
.master-table tbody tr:last-child td { border-bottom: 0; }
.master-table tbody tr:hover td { background: #fbfcff; }
.master-table .sticky-keyword { position: sticky; z-index: 1; left: 0; min-width: 170px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.master-table th.sticky-keyword { z-index: 3; background: #f7f9fc; }
.master-table .sticky-keyword strong, .master-table .sticky-keyword small { display: block; }
.master-table .sticky-keyword small { margin-top: 4px; color: #929bac; font-size: 10px; }
.organic-rank-panel { overflow: hidden; }
.organic-rank-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: #526078; font-size: 11px; }
.organic-rank-toolbar div { display: flex; align-items: baseline; gap: 10px; }
.organic-rank-toolbar strong { color: var(--ink); font-size: 13px; }
.organic-rank-table { width: 1040px; min-width: 1040px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.organic-rank-table col:nth-child(1) { width: 210px; }
.organic-rank-table col:nth-child(2), .organic-rank-table col:nth-child(3), .organic-rank-table col:nth-child(5), .organic-rank-table col:nth-child(6) { width: 120px; }
.organic-rank-table col:nth-child(4) { width: 350px; }
.organic-rank-table th { position: sticky; z-index: 2; top: 0; padding: 12px 10px; border-bottom: 1px solid var(--line); color: #6f7b90; text-align: center; white-space: nowrap; background: #f7f9fc; font-size: 10px; letter-spacing: .04em; }
.organic-rank-table td { padding: 13px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; line-height: 1.55; }
.organic-rank-table tbody tr:last-child td { border-bottom: 0; }
.organic-rank-table tbody tr:hover td { background: #fbfcff; }
.organic-rank-table .sticky-keyword { position: sticky; z-index: 1; left: 0; min-width: 170px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.organic-rank-table th.sticky-keyword { z-index: 3; background: #f7f9fc; }
.organic-rank-table .sticky-keyword strong, .organic-rank-table .sticky-keyword small { display: block; }
.organic-rank-table .sticky-keyword small { margin-top: 4px; color: #929bac; font-size: 10px; }
.benchmark-product { display: flex; min-width: 0; align-items: center; gap: 10px; }
.benchmark-product img { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; background: #fff; }
.benchmark-product span { overflow: hidden; text-overflow: ellipsis; }
.image-fallback-link { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.competitor-comparison-panel { overflow: hidden; }
.competitor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: #526078; font-size: 11px; }
.competitor-toolbar div { display: flex; align-items: baseline; gap: 10px; }
.competitor-toolbar strong { color: var(--ink); font-size: 13px; }
.competitor-table { width: 1320px; min-width: 1320px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.competitor-table col:nth-child(1) { width: 220px; }
.competitor-table col:nth-child(2) { width: 105px; }
.competitor-table col:nth-child(3) { width: 80px; }
.competitor-table col:nth-child(4) { width: 105px; }
.competitor-table col:nth-child(5) { width: 105px; }
.competitor-table col:nth-child(6) { width: 120px; }
.competitor-table col:nth-child(7) { width: 210px; }
.competitor-table col:nth-child(8) { width: 95px; }
.competitor-table col:nth-child(9) { width: 220px; }
.competitor-table col:nth-child(10) { width: 90px; }
.competitor-table th { position: sticky; z-index: 2; top: 0; padding: 12px 10px; border-bottom: 1px solid var(--line); color: #6f7b90; text-align: center; white-space: nowrap; background: #f7f9fc; font-size: 10px; letter-spacing: .04em; }
.competitor-table td { padding: 13px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; line-height: 1.55; }
.competitor-table tbody tr:last-child td { border-bottom: 0; }
.competitor-table tbody tr:hover td { background: #fbfcff; }
.competitor-table .sticky-keyword { position: sticky; z-index: 1; left: 0; min-width: 190px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.competitor-table th.sticky-keyword { z-index: 3; background: #f7f9fc; }
.competitor-product { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 9px; align-items: center; }
.competitor-product img, .competitor-product .image-missing { width: 42px; height: 42px; grid-row: 1 / span 2; }
.competitor-product img { border: 1px solid var(--line); border-radius: 7px; object-fit: contain; background: #fff; }
.competitor-product strong, .competitor-product small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.competitor-product small { color: #929bac; font-size: 10px; }
.image-diagnosis-panel { overflow: hidden; }
.diagnosis-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: #526078; font-size: 11px; }
.diagnosis-toolbar > div { display: flex; align-items: baseline; gap: 10px; }
.diagnosis-toolbar strong { color: var(--ink); font-size: 13px; }
.diagnosis-section { padding: 18px 16px; }
.diagnosis-section + .diagnosis-section { border-top: 1px solid #edf0f5; }
.diagnosis-section-heading, .diagnosis-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.diagnosis-section-heading h3, .diagnosis-subheading h3 { margin: 0; font-size: 14px; }
.diagnosis-section-heading > span, .diagnosis-subheading > span { color: var(--muted); font-size: 11px; }
.diagnosis-main-checks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.diagnosis-main-checks > div { display: grid; gap: 6px; min-height: 70px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.diagnosis-main-checks span { color: var(--muted); font-size: 10px; }
.diagnosis-main-checks strong { font-size: 17px; }
.diagnosis-evidence { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.diagnosis-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.diagnosis-matrix { width: max-content; min-width: 920px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.diagnosis-matrix col:first-child { width: 220px; }
.diagnosis-matrix col:not(:first-child) { width: 116px; }
.diagnosis-matrix th, .diagnosis-matrix td, .diagnosis-compare-table th, .diagnosis-compare-table td { padding: 11px 10px; border-bottom: 1px solid #edf0f5; vertical-align: top; line-height: 1.55; }
.diagnosis-matrix thead th, .diagnosis-compare-table thead th { color: #6f7b90; text-align: center; white-space: nowrap; background: #f7f9fc; font-size: 10px; }
.diagnosis-matrix tbody th { color: var(--ink); text-align: left; background: #fff; }
.diagnosis-matrix tbody th strong, .diagnosis-matrix tbody th small { display: block; }
.diagnosis-matrix tbody th small, .diagnosis-matrix td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.diagnosis-matrix td { text-align: left; }
.diagnosis-matrix tbody tr:last-child th, .diagnosis-matrix tbody tr:last-child td, .diagnosis-compare-table tbody tr:last-child th, .diagnosis-compare-table tbody tr:last-child td { border-bottom: 0; }
.diagnosis-confirmed { display: block; color: var(--blue); font-weight: 800; }
.diagnosis-not-confirmed { color: #aab2bf; text-align: center; }
.diagnosis-unanswered { color: var(--orange) !important; }
.diagnosis-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 11px; }
.diagnosis-image-card { display: grid; gap: 7px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.diagnosis-image-card img, .diagnosis-image-card .image-missing, .diagnosis-image-card .image-fallback-link { width: 100%; height: 132px; }
.diagnosis-image-card img { border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: #fff; }
.diagnosis-image-card strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.diagnosis-image-card p { min-height: 31px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.diagnosis-gallery-section + .diagnosis-gallery-section { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.diagnosis-compare-section + .diagnosis-compare-section { margin-top: 18px; }
.diagnosis-compare-table { width: 100%; min-width: 920px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.diagnosis-compare-table col:nth-child(1) { width: 170px; }
.diagnosis-compare-table col:nth-child(2) { width: 130px; }
.diagnosis-compare-table col:nth-child(3) { width: 360px; }
.diagnosis-compare-table col:nth-child(4) { width: 290px; }
.diagnosis-compare-table tbody th { text-align: left; }
.diagnosis-faster { display: inline-flex; padding: 4px 7px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.diagnosis-faster-own { color: var(--green); background: var(--green-soft); }
.diagnosis-faster-competitor { color: var(--orange); background: var(--orange-soft); }
.diagnosis-faster-tie, .diagnosis-faster-neither { color: #59677e; background: #edf0f5; }
.diagnosis-recommendations ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.diagnosis-recommendations li { display: grid; gap: 4px; padding: 11px 13px; border-left: 4px solid var(--orange); border-radius: 8px; background: #fff8d9; }
.diagnosis-recommendations li strong { font-size: 11px; }
.diagnosis-recommendations li span, .diagnosis-recommendations li small { color: #72500a; font-size: 11px; line-height: 1.55; }
.diagnosis-recommendations li small { font-size: 10px; }
.diagnosis-empty { padding: 17px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); text-align: center; font-size: 11px; }
.ad-plan-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.ad-plan-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: #526078; font-size: 11px; }
.ad-plan-toolbar > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ad-plan-toolbar strong { color: var(--ink); font-size: 13px; }
.ad-plan-notice { margin: 16px; padding: 12px 14px; border-left: 4px solid var(--blue); border-radius: 8px; color: #264d8d; background: #eef4ff; font-size: 11px; line-height: 1.7; }
.ad-plan-section { padding: 0 16px 18px; }
.ad-plan-section + .ad-plan-section { padding-top: 18px; border-top: 1px solid #edf0f5; }
.ad-plan-pending-section { background: #fffaf0; }
.ad-plan-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.ad-plan-section-heading h3 { margin: 0; font-size: 14px; }
.ad-plan-section-heading > span { color: var(--muted); font-size: 11px; }
.ad-plan-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.ad-plan-table { width: 100%; min-width: 1120px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.ad-plan-table col:nth-child(1) { width: 190px; }
.ad-plan-table col:nth-child(2) { width: 150px; }
.ad-plan-table col:nth-child(3) { width: 420px; }
.ad-plan-table col:nth-child(4) { width: 300px; }
.ad-plan-table col:nth-child(5) { width: 130px; }
.ad-plan-table th { padding: 10px; border-bottom: 1px solid var(--line); color: #6f7b90; text-align: center; white-space: nowrap; background: #f7f9fc; font-size: 10px; }
.ad-plan-table td { padding: 11px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; line-height: 1.6; }
.ad-plan-table tbody tr:last-child th, .ad-plan-table tbody tr:last-child td { border-bottom: 0; }
.ad-plan-table tbody tr:hover th, .ad-plan-table tbody tr:hover td { background: #fbfcff; }
.ad-plan-table tbody th { color: var(--ink); text-align: left; background: #fff; }
.ad-plan-table tbody th strong, .ad-plan-table tbody th small { display: block; }
.ad-plan-table tbody th small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.ad-plan-action { display: inline-flex; border-radius: 999px; padding: 5px 9px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.ad-plan-action-danger { color: var(--red); background: var(--red-soft); }
.ad-plan-action-warning { color: var(--orange); background: var(--orange-soft); }
.ad-plan-action-success { color: var(--green); background: var(--green-soft); }
.ad-plan-action-info { color: var(--blue); background: var(--blue-soft); }
.ad-plan-action-neutral { color: #59677e; background: #edf0f5; }
.ad-plan-action-pending { color: #8a5a00; background: #fff0c2; }
.ad-plan-action-detail { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ad-plan-rule-chip { display: inline-flex; margin: 0 4px 4px 0; padding: 3px 6px; border: 1px solid #dce4f3; border-radius: 5px; color: #566984; background: #f7f9fc; font: 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ad-plan-empty { padding: 20px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: #fbfcfe; text-align: center; font-size: 11px; }
.negative-keywords-panel { overflow: hidden; }
.negative-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: #526078; font-size: 11px; }
.negative-toolbar div { display: flex; align-items: baseline; gap: 10px; }
.negative-toolbar strong { color: var(--ink); font-size: 13px; }
.negative-notice { margin: 16px; padding: 12px 14px; border-left: 4px solid #d99b16; border-radius: 8px; color: #72500a; background: #fff8d9; font-size: 11px; line-height: 1.6; }
.negative-section { padding: 0 16px 18px; }
.negative-section + .negative-section { padding-top: 18px; border-top: 1px solid #edf0f5; }
.negative-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.negative-section-heading h3 { margin: 0; font-size: 14px; }
.negative-section-heading > span { color: var(--muted); font-size: 11px; }
.negative-review-note { margin: 0 0 10px; color: var(--orange); font-size: 11px; }
.negative-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.negative-table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.negative-root-table { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.negative-table col:nth-child(1) { width: 190px; }
.negative-table col:nth-child(2), .negative-table col:nth-child(3), .negative-table col:nth-child(4), .negative-table col:nth-child(5) { width: 82px; }
.negative-table col:nth-child(6) { width: 100px; }
.negative-table col:nth-child(7) { width: 330px; }
.negative-table th, .negative-root-table th { padding: 10px; border-bottom: 1px solid var(--line); color: #6f7b90; text-align: center; white-space: nowrap; background: #f7f9fc; font-size: 10px; }
.negative-table td, .negative-root-table td { padding: 11px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; line-height: 1.55; }
.negative-table tbody tr:last-child td, .negative-root-table tbody tr:last-child td { border-bottom: 0; }
.negative-table tbody tr:hover td, .negative-root-table tbody tr:hover td { background: #fbfcff; }
.negative-action { display: inline-flex; border-radius: 999px; padding: 5px 8px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.negative-action-danger { color: var(--red); background: var(--red-soft); }
.negative-action-warning { color: var(--orange); background: var(--orange-soft); }
.negative-action-neutral { color: #59677e; background: #edf0f5; }
.negative-root-table th:nth-child(1) { width: 120px; }
.negative-root-table th:nth-child(2) { width: 330px; }
.negative-root-table th:nth-child(3) { width: 100px; }
.keyword-chip { display: inline-block; margin: 0 5px 5px 0; padding: 3px 7px; border-radius: 6px; color: #526078; background: #f0f3f8; font-size: 11px; }
.negative-empty { padding: 20px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: #fbfcfe; text-align: center; font-size: 11px; }
.negative-copy-section { padding: 18px 16px 16px; border-top: 1px solid #edf0f5; }
.negative-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.negative-copy-block { display: grid; gap: 7px; color: #526078; font-size: 11px; font-weight: 800; }
.negative-copy-block textarea { width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 11px; color: var(--ink); background: #fbfcfe; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.negative-copy-block small { color: var(--muted); font-weight: 500; }
.action { display: inline-flex; border-radius: 999px; padding: 5px 8px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.action-danger { color: var(--red); background: var(--red-soft); }
.action-warning { color: var(--orange); background: var(--orange-soft); }
.action-success { color: var(--green); background: var(--green-soft); }
.action-neutral { color: #59677e; background: #edf0f5; }
.evidence-cell > strong { display: block; margin-bottom: 5px; }
.evidence-cell details { color: var(--muted); }
.evidence-cell summary { color: var(--blue); cursor: pointer; font-weight: 700; }
.evidence-cell p { margin: 7px 0 0; }
.warning-text { color: var(--orange); }
.report-pagination { min-height: 50px; }

.fatal-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--surface-soft); }
.fatal-card { width: min(100%, 470px); padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: #fff; box-shadow: var(--shadow); }
.fatal-card h1 { margin: 18px 0 10px; }
.fatal-card p { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.fatal-mark { display: inline-grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: var(--red); background: var(--red-soft); font-size: 25px; font-weight: 850; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr 450px; }
  .login-brand-panel { padding: 38px; }
  .login-copy h1 { font-size: 48px; }
  .login-points { grid-template-columns: 1fr; }
  .login-points article { min-height: 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workflow-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 30px; }
  .workflow-card .eyebrow, .workflow-card h2 { grid-column: 1; }
  .workflow-list { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .workflow-note { grid-column: 1; margin-top: 25px; }
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .module-menu { position: static; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; overscroll-behavior: contain; }
}

@media (max-width: 760px) {
  .login-shell { display: block; background: #f5f7fb; }
  .login-brand-panel { min-height: 355px; padding: 27px 22px 40px; }
  .login-copy { margin: auto 0 0; }
  .login-copy h1 { font-size: 40px; }
  .login-copy > p:last-child { margin-top: 17px; font-size: 14px; line-height: 1.65; }
  .login-points { display: none; }
  .login-form-panel { min-height: auto; margin-top: -20px; padding: 0 16px 28px; border-radius: 22px 22px 0 0; }
  .login-card { padding: 27px 22px; border-radius: 18px; box-shadow: 0 15px 38px rgba(18, 32, 56, .12); }
  .login-card-heading h2 { padding-right: 0; font-size: 25px; }
  .demo-badge { position: static; display: inline-flex; margin-bottom: 12px; }
  .header-inner, .page-shell, .report-shell { width: min(100% - 28px, 1180px); }
  .app-header { height: 62px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .user-label { display: none; }
  .page-shell { padding: 34px 0 58px; }
  .page-heading, .report-heading { align-items: flex-start; }
  .page-heading h1, .report-heading h1 { font-size: 30px; }
  .page-heading .privacy-badge, .report-heading .privacy-badge { display: none; }
  .task-form-panel { padding: 22px 18px; }
  .tool-hero { gap: 18px; }
  .hero-badges { justify-content: flex-start; }
  .asin-list-heading { justify-content: flex-start; }
  .asin-row { grid-template-columns: 38px minmax(0, 1fr) 82px; padding: 8px; }
  .asin-row .remove-asin { grid-column: 2 / -1; justify-self: end; }
  .asin-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row .button { width: 100%; }
  .parameter-grid, .rank-fields .parameter-grid { grid-template-columns: 1fr; }
  .drop-zone { grid-template-columns: auto 1fr; }
  .choose-file { display: none; }
  .workflow-card { display: block; padding: 24px 21px; }
  .workflow-list { margin: 24px 0; }
  .section-heading { align-items: center; }
  .task-list { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .task-head { display: none; }
  .task-row { display: grid; min-height: 0; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-bottom: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(18, 32, 56, .04); }
  .task-row > div::before { display: block; margin-bottom: 6px; color: #8c96a6; content: attr(data-label); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
  .task-primary { grid-column: 1 / -1; }
  .task-primary::before { display: none !important; }
  .task-actions { align-items: flex-end; justify-content: flex-end; }
  .status-help { max-width: 180px; white-space: normal; }
  .pagination { justify-content: center; }
  .report-shell { padding: 30px 0 45px; }
  .report-title { flex-wrap: wrap; }
  .report-viewer-panel { border-radius: 14px; }
  .viewer-toolbar p { display: none; }
  .report-state { min-height: 450px; }
  .report-content { padding: 15px; }
  .module-menu { grid-auto-columns: minmax(174px, 1fr); }
  .module-menu-button { min-height: 50px; }
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-controls { align-items: flex-start; flex-direction: column; }
  .negative-toolbar { align-items: flex-start; flex-direction: column; }
  .competitor-toolbar { align-items: flex-start; flex-direction: column; }
  .diagnosis-toolbar { align-items: flex-start; flex-direction: column; }
  .diagnosis-main-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .negative-copy-grid { grid-template-columns: 1fr; }
  .ad-plan-toolbar { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-wrap: wrap; padding: 18px; }
}

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