/* Neutral design tokens and components, inspired by the restraint of apple.com. */
:root {
  color-scheme: light;
  --canvas: #f5f5f7;
  --surface: #fff;
  --surface-secondary: #f5f5f7;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --line: #d2d2d7;
  --line-subtle: #e8e8ed;
  --action: #1d1d1f;
  --radius: 24px;
  --radius-control: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
button svg { pointer-events: none; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.initial-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--secondary); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #d2d2d7; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Global navigation */
.shell { min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; min-height: 64px; padding: 0 max(28px, calc((100vw - 1160px) / 2)); background: #ffffffeb; border-bottom: 1px solid var(--line-subtle); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 650; letter-spacing: -.7px; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--ink); }
.brand-mark svg { width: 20px; height: 20px; }
.workspace-label, .sidebar-bottom { display: none; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav-button { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 10px 16px; background: transparent; color: var(--secondary); font-size: 12px; font-weight: 500; min-height: 38px; white-space: nowrap; transition: background .15s, color .15s; }
.nav-button svg { width: 15px; height: 15px; }
.nav-button:hover { background: #f0f0f2; color: var(--ink); }
.nav-button.active { color: var(--ink); background: #ededf0; }
.main-shell { min-width: 0; }
.topbar { max-width: 1160px; height: 57px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 12px; align-items: center; color: var(--secondary); font-size: 11px; }
.breadcrumb span:last-child { color: var(--ink); }
.account { display: flex; gap: 10px; align-items: center; }
.avatar { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--secondary); font-size: 10px; background: var(--surface); }
.text-button { border: 0; background: transparent; color: var(--secondary); padding: 7px 0 7px 7px; font-size: 11px; }
.text-button:hover { color: var(--ink); }
.main { max-width: 1216px; padding: 54px 28px 30px; margin: 0 auto; }

/* Typography */
.hero { text-align: center; margin: 0 0 46px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; line-height: 1.5; letter-spacing: 1.6px; font-weight: 600; color: var(--secondary); margin-bottom: 17px; }
.hero h1 { color: var(--ink); font-size: clamp(38px, 4.1vw, 58px); font-weight: 650; letter-spacing: -2.5px; line-height: 1.08; }
.hero p { max-width: 650px; margin: 17px auto 0; font-size: 16px; line-height: 1.55; letter-spacing: -.25px; color: var(--secondary); }
.hero-stamp { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; margin-top: 21px; border-radius: 999px; background: #eaeaee; color: #515154; font-size: 11px; }
.hero-stamp svg { width: 13px; height: 13px; }

/* Cards and controls */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.card { border: 1px solid #fff; background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 12px #00000003; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 29px 30px 24px; }
.card-heading h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; }
.card-heading p { margin-top: 7px; font-size: 12px; line-height: 1.6; color: var(--secondary); }
.soft-label { color: var(--secondary); border: 1px solid var(--line-subtle); padding: 6px 10px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.form-body { padding: 0 30px 29px; }
.field-label { display: block; font-size: 12px; font-weight: 550; color: var(--ink); margin-bottom: 10px; }
.textarea-wrap { border: 1px solid var(--line); border-radius: var(--radius-control); overflow: hidden; background: #fafafa; transition: border-color .15s, box-shadow .15s; }
.textarea-wrap:focus-within { border-color: #86868b; box-shadow: 0 0 0 3px #1d1d1f0b; }
.textarea-wrap textarea { display: block; resize: vertical; width: 100%; min-height: 190px; border: 0; outline: none; background: transparent; padding: 16px 19px; font: 12px/2.1 "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: var(--ink); }
.textarea-wrap textarea:focus-visible { outline: none; }
.textarea-wrap textarea::placeholder { color: #86868b; }
.textarea-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-subtle); padding: 10px 15px; font-size: 10px; color: var(--secondary); background: #f5f5f7; }
.textarea-footer strong { font-weight: 500; color: var(--ink); }
.hint { display: flex; align-items: flex-start; gap: 6px; font-size: 10px; line-height: 1.7; color: var(--secondary); margin-top: 10px; }
.hint svg { width: 13px; height: 13px; margin-top: 2px; }
.mode-label { margin-top: 25px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-choice { position: relative; display: block; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: white; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mode-choice:hover { border-color: #86868b; }
.mode-choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafafa; }
.mode-choice input { position: absolute; top: 16px; right: 15px; width: 14px; height: 14px; accent-color: var(--ink); }
.mode-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #6e6e73; margin-bottom: 11px; }
.mode-icon svg { width: 23px; height: 23px; }
.mode-choice:has(input:checked) .mode-icon { color: var(--ink); }
.mode-choice strong { display: block; font-size: 13px; font-weight: 550; letter-spacing: -.15px; }
.mode-choice small { display: block; color: var(--secondary); font-size: 10px; line-height: 1.6; margin-top: 7px; }
.mode-choice em { font-style: normal; font-size: 8px; font-weight: 500; border-radius: 4px; color: #515154; background: #e8e8ed; padding: 4px 5px; margin-left: 4px; }
.advanced { margin-top: 21px; }
.advanced summary { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--secondary); list-style: none; cursor: pointer; }
.advanced summary::before { content: "+"; font-size: 17px; line-height: 1; }
.advanced[open] summary::before { content: "−"; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.input { width: 100%; min-height: 43px; background: white; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 11px 13px; font-size: 12px; }
.input::placeholder { color: #86868b; }
.check-label { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; font-size: 11px; line-height: 1.6; color: var(--secondary); }
.check-label input { accent-color: var(--ink); margin: 2px 0 0; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line-subtle); margin-top: 25px; padding-top: 23px; }
.form-actions > span { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 10px; line-height: 1.6; }
.form-actions > span svg { width: 13px; height: 13px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 43px; padding: 12px 20px; background: var(--action); border: 1px solid var(--action); border-radius: 999px; font-size: 12px; line-height: 1.3; font-weight: 500; color: white; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { background: #38383b; border-color: #38383b; text-decoration: none; }
.button:active { transform: scale(.985); }
.button svg { width: 15px; height: 15px; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: #ededf0; border-color: #b8b8bd; }
.button.danger { color: var(--ink); border-color: var(--ink); background: white; }
.button.danger:hover { background: #e8e8ed; }
.button.small { min-height: 35px; font-size: 11px; padding: 9px 14px; }
.error-message { font-size: 12px; line-height: 1.6; background: #eeeeef; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--ink); margin: 15px 0; }
.error-message:empty { display: none; }

/* Supporting information */
.side-card { padding: 27px; margin-bottom: 20px; }
.side-card h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 550; letter-spacing: -.2px; }
.side-card h2 svg { width: 17px; height: 17px; color: var(--secondary); }
.steps { list-style: none; padding: 0; margin: 25px 0 0; }
.steps li { position: relative; display: flex; gap: 13px; padding-bottom: 25px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { position: absolute; content: ""; left: 11px; top: 29px; bottom: 6px; width: 1px; background: var(--line-subtle); }
.step-number { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--canvas); border-radius: 50%; color: var(--secondary); font-size: 10px; }
.steps strong { display: block; font-size: 12px; font-weight: 550; color: var(--ink); margin: 3px 0 6px; }
.steps p { font-size: 11px; color: var(--secondary); line-height: 1.65; }
.coverage-card { background: #ebebee; border-color: transparent; }
.coverage-card h2 { font-size: 13px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.check-chips span { padding: 5px 8px; background: #ffffffad; border-radius: 6px; color: #515154; font-size: 10px; line-height: 1.5; }
.coverage-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d2d2d7; color: var(--secondary); font-size: 10px; line-height: 1.7; }
.recent { margin-top: 40px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-label h2 { font-size: 18px; font-weight: 550; letter-spacing: -.4px; }
.section-label a { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--secondary); }
.section-label svg { width: 13px; height: 13px; }
.empty-history { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 31px 20px; background: #ededf0; border-radius: 18px; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.empty-history svg { width: 22px; height: 22px; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 10px; line-height: 1.6; }
.page-footer span { display: flex; align-items: center; gap: 6px; }
.page-footer svg { width: 12px; height: 12px; }
.table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.history-table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--secondary); white-space: nowrap; padding: 18px 24px; border-bottom: 1px solid var(--line-subtle); }
.history-table td { padding: 21px 24px; border-bottom: 1px solid var(--line-subtle); }
.history-table tr:last-child td { border-bottom: 0; }
.history-table tbody tr { cursor: pointer; }
.history-table tbody tr:hover { background: #fafafa; }
.history-name { font-weight: 550; color: var(--ink); }
.history-sub { margin-top: 5px; font-size: 10px; line-height: 1.5; color: var(--secondary); }

/* Severity is conveyed by text and icons as well as neutral contrast. */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; background: #ededf0; color: #515154; border: 1px solid transparent; border-radius: 7px; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.badge.error, .badge.failed { color: white; background: var(--ink); }
.badge.warning, .badge.partial, .badge.interrupted { color: var(--ink); background: #e5e5e9; }
.badge.review { color: #515154; background: white; border-color: #b8b8bd; }
.badge.running, .badge.queued { color: var(--ink); background: #ededf0; }
.badge.cancelled { color: var(--secondary); background: #f0f0f2; }
.badge svg, .badge .spinner { width: 12px; height: 12px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.stat { padding: 23px; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 11px; color: var(--secondary); }
.stat svg { width: 16px; height: 16px; color: #86868b; }
.stat strong { display: block; font-size: 36px; line-height: 1.2; letter-spacing: -1.5px; font-weight: 550; margin-top: 17px; color: var(--ink); }
.stat.error { background: var(--ink); border-color: var(--ink); }
.stat.error strong, .stat.error .stat-top, .stat.error svg { color: white; }
.report-hero { display: flex; text-align: left; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.report-hero .eyebrow { justify-content: flex-start; margin-bottom: 13px; }
.report-hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -1.6px; overflow-wrap: anywhere; }
.report-hero p { margin-top: 13px; font-size: 12px; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.run-progress { padding: 20px 24px; margin-bottom: 24px; }
.run-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; }
.run-progress-top > span { display: flex; align-items: center; gap: 9px; }
.progress-detail { margin-top: 10px; font-size: 11px; line-height: 1.7; color: var(--secondary); }
progress { appearance: none; display: block; width: 100%; height: 4px; border: 0; border-radius: 5px; overflow: hidden; margin-top: 16px; background: #e8e8ed; }
progress::-webkit-progress-bar { background: #e8e8ed; }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.report-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.site-list { padding: 8px; }
.site-button { display: block; width: 100%; border: 0; border-radius: 16px; text-align: left; padding: 16px; color: var(--ink); background: transparent; }
.site-button:hover { background: #f5f5f7; }
.site-button.active { background: #ededf0; }
.site-button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.site-button small { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; color: var(--secondary); margin-top: 10px; }
.site-count { padding: 3px 6px; border-radius: 5px; font-size: 9px; background: #dedee3; color: var(--ink); }
.report-main { min-width: 0; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.filter-button { border: 1px solid transparent; border-radius: 999px; min-height: 34px; padding: 8px 12px; color: var(--secondary); background: #ebebee; font-size: 11px; }
.filter-button:hover { color: var(--ink); background: #e0e0e5; }
.filter-button.active { background: var(--ink); color: white; }
.search { margin-left: auto; width: 175px; min-height: 35px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 11px; color: var(--ink); background: white; }
.issue { padding: 25px; margin-bottom: 17px; border: 1px solid white; }
.issue-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.rule-name { font-size: 10px; color: var(--secondary); }
.issue h3 { font-size: 16px; line-height: 1.45; letter-spacing: -.25px; font-weight: 550; color: var(--ink); }
.issue-url { display: inline-block; margin-top: 8px; color: var(--secondary); font-size: 11px; overflow-wrap: anywhere; }
.issue-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 19px; padding: 16px; border-radius: 12px; background: var(--surface-secondary); }
.issue-values dt { font-size: 10px; color: var(--secondary); margin-bottom: 7px; }
.issue-values dd { font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); margin: 0; }
.issue details { margin-top: 17px; }
.issue summary, .checks summary, .notes summary { cursor: pointer; font-size: 11px; color: #515154; line-height: 1.7; }
.issue summary svg { width: 15px; height: 15px; margin-right: 4px; }
.issue pre { padding: 15px; border-radius: 12px; background: #f5f5f7; color: #515154; font: 11px/1.7 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; }
.issue img { display: block; width: 100%; max-height: 360px; object-fit: contain; object-position: top; background: #f5f5f7; margin-top: 13px; border: 1px solid var(--line-subtle); border-radius: 12px; cursor: zoom-in; }
.evidence-caption { font-size: 10px; line-height: 1.7; color: var(--secondary); margin-top: 12px; }
.affected { padding-left: 18px; font-size: 11px; line-height: 1.8; color: var(--secondary); overflow-wrap: anywhere; }
.target-link { margin-top: 13px; font-size: 11px; color: var(--secondary); overflow-wrap: anywhere; }
.checks, .notes { padding: 20px 24px; margin: 14px 0; }
.notes ul { color: var(--secondary); padding-left: 17px; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.check-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 13px; table-layout: fixed; }
.check-table td { padding: 11px 7px; vertical-align: top; border-bottom: 1px solid var(--line-subtle); overflow-wrap: anywhere; }
.check-table td:first-child { width: 120px; color: var(--ink); }
.check-table td:nth-child(2) { width: 110px; color: #515154; }
.check-detail { color: var(--secondary); line-height: 1.65; }
.empty-result { padding: 52px 24px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--canvas); border-radius: 50%; margin: 0 auto 18px; color: #86868b; }
.empty-result h3 { font-size: 17px; font-weight: 550; letter-spacing: -.35px; }
.empty-result p { max-width: 430px; margin: 12px auto 0; color: var(--secondary); font-size: 12px; line-height: 1.8; }

/* Settings and sign in */
.settings-card { max-width: 850px; margin: 0 auto; padding: 35px; }
.settings-card h2 { margin-bottom: 10px; font-size: 21px; font-weight: 550; letter-spacing: -.5px; }
.settings-card > p { margin-bottom: 30px; font-size: 12px; line-height: 1.8; color: var(--secondary); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-grid .full-width { grid-column: 1 / -1; }
.settings-footer { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line-subtle); margin-top: 30px; padding-top: 24px; }
.settings-footer p { color: var(--secondary); font-size: 11px; line-height: 1.65; }
.notice { padding: 15px 17px; background: #f5f5f7; border: 1px solid var(--line-subtle); border-radius: 12px; font-size: 11px; line-height: 1.8; color: var(--secondary); margin: 23px 0 0; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 56px max(40px, 6vw); background: #1d1d1f; color: white; }
.login-story::after { content: ""; pointer-events: none; position: absolute; width: 450px; height: 450px; right: -220px; bottom: -200px; border: 1px solid #ffffff17; border-radius: 50%; box-shadow: 0 0 0 70px #ffffff04, 0 0 0 140px #ffffff03; }
.login-story .brand { color: white; }
.login-story .brand-mark { background: white; color: var(--ink); }
.login-story h1 { font-size: clamp(46px, 5vw, 78px); line-height: 1.03; letter-spacing: -3.5px; font-weight: 600; margin: 80px 0 25px; }
.login-story h1 span { color: #a1a1a6; }
.login-story p { max-width: 370px; font-size: 15px; line-height: 1.8; letter-spacing: -.15px; color: #a1a1a6; }
.login-story footer { color: #a1a1a6; font-size: 10px; margin-top: 80px; }
.login-content { display: flex; align-items: center; justify-content: center; background: white; padding: 50px; }
.login-form { width: 100%; max-width: 340px; }
.login-form .eyebrow { justify-content: flex-start; font-size: 9px; }
.login-form h2 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; font-weight: 600; }
.login-form p { color: var(--secondary); font-size: 13px; line-height: 1.8; margin: 15px 0 32px; }
.login-form .input { min-height: 49px; border-radius: 12px; }
.login-form .button { width: 100%; margin-top: 21px; min-height: 47px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px !important; margin-top: 22px !important; }
.login-note svg { width: 13px; height: 13px; }

/* Overlays */
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%) translateY(140px); z-index: 100; background: #1d1d1ff2; color: white; border: 1px solid #ffffff26; border-radius: 16px; box-shadow: 0 8px 30px #00000015; padding: 15px 22px; max-width: 90vw; font-size: 12px; line-height: 1.6; transition: transform .2s; }
#toast.visible { transform: translateX(-50%) translateY(0); }
dialog { background: white; border: 0; border-radius: 20px; padding: 18px; max-width: 95vw; max-height: 94vh; box-shadow: 0 20px 90px #00000040; }
dialog::backdrop { background: #000000bf; backdrop-filter: blur(6px); }
dialog img { max-width: 88vw; max-height: 85vh; object-fit: contain; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
.close-dialog { position: absolute; right: 22px; top: 22px; }
.copy-box { width: 100%; min-height: 300px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; font-size: 12px; color: var(--ink); }
.loading-box { display: flex; justify-content: center; align-items: center; gap: 11px; padding: 55px; color: var(--secondary); font-size: 12px; }

@media (min-width: 1500px) {
  .main { padding-top: 66px; }
  .hero { margin-bottom: 54px; }
  .textarea-wrap textarea { min-height: 215px; }
}
@media (max-width: 1216px) { .topbar { margin: 0 28px; } }
@media (max-width: 1020px) {
  .main { padding-top: 42px; }
  .launch-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .side-card { padding: 23px; }
  .card-heading { padding: 25px 25px 22px; }
  .form-body { padding: 0 25px 25px; }
  .form-actions { flex-wrap: wrap; }
  .hero h1 { font-size: 46px; letter-spacing: -2px; }
  .stats { gap: 10px; }
  .stat { padding: 19px; }
  .report-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
  .report-hero { align-items: flex-start; }
  .report-hero h1 { font-size: 35px; }
  .header-actions { max-width: 340px; }
}
@media (max-width: 800px) {
  .sidebar { gap: 20px; padding: 0 23px; }
  .nav { gap: 3px; }
  .nav-button { padding: 10px 12px; font-size: 11px; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .side-card { margin: 0; }
  .report-layout { grid-template-columns: 1fr; }
  .site-list { display: flex; overflow-x: auto; gap: 5px; }
  .site-button { min-width: 180px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-hero { display: block; text-align: left; }
  .header-actions { justify-content: flex-start; max-width: none; margin-top: 23px; }
  .report-hero p { margin-left: 0; }
  .login-story { padding: 40px; }
  .login-story h1 { font-size: 47px; letter-spacing: -2.3px; }
  .login-content { padding: 32px; }
}
@media (max-width: 600px) {
  .sidebar { padding: 15px 20px 12px; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .brand { font-size: 20px; }
  .nav { justify-content: center; width: 100%; gap: 6px; }
  .nav-button { font-size: 11px; padding: 9px 11px; min-height: 35px; }
  .nav-button svg { width: 14px; height: 14px; }
  .topbar { height: 49px; margin: 0 20px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
  .avatar { display: none; }
  .text-button { font-size: 10px; }
  .main { padding: 35px 18px 24px; }
  .hero { margin-bottom: 30px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.25px; margin-bottom: 14px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.8px; max-width: 330px; margin: 0 auto; }
  .hero p { font-size: 14px; line-height: 1.55; margin-top: 14px; }
  .hero-stamp { margin-top: 18px; font-size: 10px; }
  .card { border-radius: 20px; }
  .card-heading { padding: 24px 21px 21px; }
  .card-heading h2 { font-size: 18px; }
  .card-heading p { font-size: 11px; }
  .soft-label { font-size: 9px; padding: 5px 8px; }
  .form-body { padding: 0 21px 24px; }
  .textarea-wrap textarea { min-height: 175px; font-size: 11px; padding: 14px 15px; }
  .textarea-footer { font-size: 9px; padding: 10px 12px; }
  .mode-choice { padding: 15px 12px; }
  .mode-choice strong { font-size: 12px; }
  .mode-choice small { font-size: 10px; }
  .mode-choice em { display: none; }
  .mode-icon svg { width: 21px; height: 21px; }
  .advanced-grid { gap: 13px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-actions > span { font-size: 9px; justify-content: center; }
  .form-actions .button { min-height: 45px; }
  .launch-side { grid-template-columns: 1fr; }
  .side-card { padding: 25px; }
  .coverage-card { display: none; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .steps li { padding: 0; gap: 9px; }
  .steps li::before { display: none; }
  .steps strong { font-size: 11px; }
  .steps p { font-size: 10px; }
  .step-number { width: 21px; height: 21px; font-size: 9px; }
  .recent { margin-top: 32px; }
  .section-label h2 { font-size: 17px; }
  .section-label a { font-size: 10px; }
  .empty-history { font-size: 11px; padding: 26px 18px; }
  .page-footer { flex-wrap: wrap; margin-top: 32px; font-size: 9px; }
  .history-table td, .history-table th { padding: 16px; }
  .stats { gap: 8px; }
  .stat { padding: 15px 13px; }
  .stat .stat-top { font-size: 9px; }
  .stat svg { width: 13px; height: 13px; }
  .stat strong { font-size: 29px; margin-top: 12px; }
  .report-hero h1 { font-size: 34px; margin: 0; text-align: left; max-width: none; }
  .report-hero p { font-size: 11px; }
  .header-actions { gap: 7px; }
  .header-actions .button { font-size: 10px; padding: 9px 12px; }
  .run-progress { padding: 18px; }
  .run-progress-top { align-items: flex-start; font-size: 10px; gap: 12px; flex-wrap: wrap; }
  .progress-detail { font-size: 10px; }
  .filters { gap: 5px; }
  .filter-button { font-size: 10px; padding: 8px 10px; }
  .search { width: 100%; margin: 7px 0 0; }
  .issue { padding: 21px 18px; }
  .issue h3 { font-size: 15px; }
  .issue-values { grid-template-columns: 1fr; gap: 15px; padding: 14px; }
  .checks, .notes { padding: 18px; }
  .check-table td:first-child { width: 75px; }
  .check-table td:nth-child(2) { width: 80px; }
  .check-table { font-size: 10px; }
  .settings-card { padding: 25px 21px; }
  .settings-card h2 { font-size: 20px; }
  .settings-grid { grid-template-columns: 1fr; gap: 21px; }
  .settings-footer { flex-direction: column; align-items: stretch; gap: 13px; }
  .settings-footer p { font-size: 10px; text-align: center; }
  .login-page { display: block; }
  .login-story { padding: 29px 28px 35px; }
  .login-story .brand { justify-content: flex-start; }
  .login-story h1 { font-size: 49px; margin: 43px 0 18px; letter-spacing: -2.5px; }
  .login-story p { font-size: 12px; max-width: 320px; }
  .login-story footer { display: none; }
  .login-content { padding: 38px 28px 48px; }
  .login-form h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.asana-connection { padding: 25px 30px; margin-bottom: 24px; }
.asana-connection > summary { cursor: pointer; font-size: 14px; font-weight: 550; }
.asana-connection > summary svg { width: 17px; height: 17px; margin-right: 7px; }
.asana-connection form { margin-top: 30px; }
.mapping-textarea { min-height: 100px; resize: vertical; font-family: "SFMono-Regular", Consolas, monospace; }
.asana-import-controls, .asana-preview-toolbar, .selection-actions, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.asana-import-controls { margin-bottom: 24px; }
.asana-import-controls .check-label { margin: 0; }
.asana-preview-toolbar { padding-top: 22px; border-top: 1px solid var(--line-subtle); }
.asana-preview-toolbar strong { font-size: 18px; font-weight: 550; }
.asana-preview-toolbar p { font-size: 11px; color: var(--secondary); margin-top: 7px; }
.asana-search { width: 280px; }
.selection-actions { justify-content: flex-start; margin: 14px 0; gap: 18px; }
.selection-actions span, .pagination span { font-size: 10px; color: var(--secondary); }
.selection-actions .text-button { padding-left: 0; text-decoration: underline; }
.asana-table td { vertical-align: top; }
.asana-table td p { font-size: 10px; line-height: 1.7; color: var(--secondary); margin-top: 7px; max-width: 320px; }
.asana-table input { accent-color: var(--ink); width: 15px; height: 15px; }
.asana-table tbody tr { cursor: default; }
.asana-table td:nth-child(2) { min-width: 230px; overflow-wrap: anywhere; }
.asana-table td:nth-child(4) { min-width: 90px; }
.pagination { margin-top: 20px; justify-content: center; }
.asana-run-form { border-top: 1px solid var(--line-subtle); margin-top: 24px; padding-top: 7px; }
.asana-context { padding: 22px 24px; margin-bottom: 18px; }
.asana-context > a { font-size: 15px; font-weight: 550; }
.asana-context p { color: var(--secondary); font-size: 12px; line-height: 1.7; margin-top: 8px; }
.asana-context button { margin-top: 12px; }
.site-publication { display: block; margin-top: 7px; color: var(--secondary); font-size: 9px; line-height: 1.5; }
.site-list { max-height: 75vh; overflow-y: auto; }
.site-search { margin-bottom: 8px; font-size: 11px; min-width: 160px; }
.site-button[hidden] { display: none; }
.load-more { text-align: center; padding: 18px 0; }
.load-more p { color: var(--secondary); font-size: 11px; margin-bottom: 12px; }
@media (max-width: 800px) { .site-list { max-height: none; } }
@media (max-width: 600px) {
  .nav { gap: 2px; }
  .nav-button { padding: 8px 9px; font-size: 10px; gap: 5px; }
  .asana-connection { padding: 23px 21px; }
  .asana-search { width: 100%; }
  .asana-import-controls .button { width: 100%; }
}
.issue-actions,.history-actions,.dialog-actions { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.issue-actions { justify-content:flex-end;margin-bottom:16px; }
.history-actions { justify-content:flex-end;flex-wrap:nowrap; }
.history-actions svg { width:20px;min-width:20px; }
.proof-gallery { margin-top:12px; }
.ai-recommendation { font-size:13px;background:var(--background,#f5f5f7);padding:14px;border-radius:12px;line-height:1.6; }
#delete-dialog { width:min(520px,calc(100vw - 40px));border:1px solid #d2d2d7;border-radius:22px;padding:30px;color:#1d1d1f;background:white; }
#delete-dialog p { color:#6e6e73;font-size:14px;line-height:1.7;margin:16px 0 26px; }
#delete-dialog::backdrop { background:rgba(0,0,0,.4); }
.dialog-actions { justify-content:flex-end; }
#ai-test-result { font-size:14px;line-height:1.7;margin:10px 0; }
.app-version { color:var(--secondary);font-size:10px;white-space:nowrap; }
.history-row-actions { margin-bottom:12px; }
.site-times { padding:24px;margin:18px 0 24px; }
.site-times h2 { margin:0 0 8px;font-size:18px; }
.site-duration { white-space:nowrap;font-variant-numeric:tabular-nums; }
.report-tabs { display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px; }
.report-tabs [aria-selected="true"] { background:var(--ink);color:white; }
.check-results { padding:20px; }
.check-results td { vertical-align:top;overflow-wrap:anywhere; }
#ai-settings-mount .settings-card { margin-bottom:24px; }
.audit-profile { margin:24px 0;padding:20px;border:2px solid var(--ink);border-radius:16px;background:var(--surface-secondary); }
.audit-profile h3 { margin:0 0 14px;font-size:17px; }
.audit-profile .check-label { font-weight:650; }
.audit-profile input { width:20px;height:20px;accent-color:var(--ink); }
.audit-profile .hint:last-child { margin-bottom:0; }
.issue { padding:24px;margin-bottom:20px;border:1px solid var(--line-subtle);box-shadow:0 3px 18px #00000003; }
.issue-header { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px; }
.issue-header .issue-top { margin:0;gap:10px; }
.issue-header .issue-actions { margin:0;flex-shrink:0; }
.issue-site { font-size:11px;color:var(--secondary);overflow-wrap:anywhere; }
.issue-count { font-size:10px;background:var(--surface-secondary);padding:5px 8px;border-radius:8px;white-space:nowrap; }
.issue h3 { margin:0;font-size:19px;line-height:1.4;font-weight:600; }
.issue-fix { margin-top:18px;font-size:12px;line-height:1.6; }
.issue-fix strong { font-size:10px;letter-spacing:.03em;color:var(--secondary);font-weight:500; }
.issue-fix p { margin:4px 0 0; }
.issue-values { margin:16px 0 0;gap:18px; }
.issue-locations { padding:14px 0;border-top:1px solid var(--line-subtle); }
.issue-locations>summary { font-size:12px;font-weight:550;color:var(--ink); }
.occurrence-list { list-style:none;margin:12px 0 0;padding:0;max-height:480px;overflow:auto; }
.occurrence-list>li { padding:12px 14px;background:var(--surface-secondary);border-radius:12px;margin:8px 0;overflow-wrap:anywhere;font-size:12px; }
.occurrence-list p { white-space:pre-wrap;margin:7px 0 0;color:var(--secondary);line-height:1.6; }
.variant-chain { margin-top:8px!important; }
.duplicate-group { margin-top:16px;padding-top:12px;border-top:1px solid var(--line-subtle); }
.duplicate-group>strong { font-size:11px;color:var(--secondary); }
.evidence { padding-top:14px;border-top:1px solid var(--line-subtle); }
.report-total { padding:26px;display:flex;gap:30px;justify-content:space-between;align-items:start;margin:28px 0 0; }
.report-total-duration { display:block;font-size:30px;letter-spacing:-.7px;margin:10px 0; }
.report-total p { font-size:11px;line-height:1.6;color:var(--secondary);max-width:520px;margin:0; }
.report-total-secondary>span { display:block;font-size:11px;color:var(--secondary); }
.report-total-secondary>strong { display:block;font-size:18px;margin:10px 0; }
@media(max-width:700px){.issue-header{flex-direction:column;align-items:stretch;gap:14px}.issue-header .issue-actions{justify-content:flex-start}.issue h3{font-size:17px}.issue{padding:20px 16px}.report-total{flex-direction:column;padding:22px}.report-total-secondary{border-top:1px solid var(--line-subtle);padding-top:18px;width:100%}}

/* Wordmark, settings navigation and consistent vertical rhythm. */
.brand { position:relative;display:block;width:180px;height:42px;overflow:hidden;flex-shrink:0; }
.brand img { position:absolute;top:50%;left:0;width:180px;height:60px;max-width:none;transform:translateY(-50%);filter:grayscale(1); }
.brand:focus-visible { outline:2px solid var(--ink);outline-offset:4px;border-radius:4px; }
.login-story .brand img { filter:brightness(0) invert(1); }
.settings-nav { display:flex;gap:6px;flex-wrap:wrap;width:fit-content;max-width:calc(100% - 40px);margin:26px auto 0;padding:5px;background:var(--surface);border:1px solid var(--line-subtle);border-radius:999px; }
.settings-nav a { padding:10px 18px;border-radius:999px;font-size:12px;color:var(--secondary);text-decoration:none; }
.settings-nav a.active { background:var(--ink);color:white; }
.settings-nav+.main { padding-top:28px; }
.settings-card { margin:0 auto 28px; }
.settings-card>.settings-grid { margin-top:24px; }
.settings-card .settings-grid { row-gap:28px; }
.settings-grid .full-width>.field-label:not(:first-child),.settings-grid .full-width>.check-label:not(:first-child) { margin-top:22px; }
.settings-card .notice { margin-bottom:22px; }
.notice.audit-incomplete { margin-bottom:28px; }
@media(max-width:700px){.brand{width:154px;height:36px}.brand img{width:154px;height:51.3px}.settings-nav{margin-top:20px}.settings-nav a{padding:9px 15px}.settings-card{margin-bottom:24px}.settings-card .settings-grid{row-gap:23px}.notice.audit-incomplete{margin-bottom:24px}}
/* The detailed single-site preset occupies its own row beside the standard presets. */
.mode-choice.deep-mode{grid-column:1 / -1}
#deep-mode-note[hidden]{display:none}
.site-entry{border-radius:12px;margin:4px 0;padding:0 0 6px}
.site-entry .site-button{width:100%;margin:0}
.site-review{display:flex;align-items:center;gap:7px;padding:4px 12px;font-size:11px;color:var(--muted);cursor:pointer}
.site-review input{accent-color:#28764d;width:14px;height:14px}
.site-entry.reviewed,.site-entry.reviewed .site-button{background:#eaf4ed}
.site-entry.reviewed .site-button.active{background:#dbeee1}
.site-entry[hidden]{display:none}
.report-duration-hours{display:inline-block;margin:6px 0 0 12px;font-size:16px;font-weight:500;color:var(--muted)}
@media(max-width:800px){.site-entry{flex:0 0 190px}.report-duration-hours{margin-left:0;display:block}}
.report-time-pair{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:10px 0}
.report-time-pair .report-total-duration,.report-time-pair strong{margin:0}
.report-time-pair .report-duration-hours{margin:0;color:var(--secondary);font-size:16px;font-weight:500}
.site-review{color:var(--secondary)}
.manual-asana-dialog{width:min(850px,95vw);max-height:90vh;overflow:auto;padding:28px;border:0;border-radius:24px}.manual-comment{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f5f7;padding:20px;border-radius:12px}.manual-asana-dialog .card{margin:16px 0}.manual-asana-dialog button,#manual-asana button{margin:12px 8px 12px 0}

.manual-setup{margin:24px 0;padding:20px;background:var(--bg,#f5f5f7);border-radius:16px}.manual-setup summary,.asana-import>summary{cursor:pointer;font-weight:600;padding:8px 0}.manual-setup .input{margin-bottom:16px}#manual-asana .field-label{margin-top:20px}.manual-task[hidden]{display:none}#manual-queue-status{min-height:20px}.manual-asana-dialog input:disabled{opacity:.4}

#manual-asana{padding:32px!important;display:grid;gap:16px}#manual-asana>h2,#manual-asana>p{margin:0}.manual-setup{margin:0!important}.asana-import{padding:24px!important}.asana-import[hidden],.asana-import-controls[hidden]{display:none!important}.asana-results-panel{padding:28px;margin-bottom:24px}.asana-result-grid{display:grid;gap:12px;margin-top:20px}.asana-result-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;background:#f5f5f7;border-radius:16px}.asana-result-row small{display:block;margin-top:6px;color:#6e6e73}.manual-asana-dialog::backdrop{background:rgba(0,0,0,.45)}.manual-asana-dialog{box-shadow:0 24px 80px #0003}.manual-asana-dialog .card{padding:20px}.manual-asana-dialog .input{margin:16px 0}.manual-asana-dialog .check-label{align-items:flex-start}#manual-asana .input{max-width:650px}@media(max-width:700px){#manual-asana{padding:20px!important}.asana-result-row{align-items:stretch;flex-direction:column}.asana-result-row .button{white-space:normal;text-align:center}.asana-results-panel{padding:20px}}

.manual-dialog-header{position:sticky;top:-28px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;padding:8px 0}.manual-dialog-header [data-close]{min-width:42px;font-size:21px}.manual-asana-dialog [data-comment-preview] pre{max-height:320px;overflow:auto}#manual-columns fieldset{margin:20px 0;padding:14px;border:1px solid #d2d2d7;border-radius:14px}

.manual-import-grid,.manual-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.manual-import-grid .input{display:block;width:100%;margin-top:7px}.manual-filter-heading,.manual-load-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.manual-filter-heading{justify-content:space-between}.manual-filter-grid{margin-top:12px}.manual-field-filter{padding:12px 14px;background:#f5f5f7;border-radius:12px}.manual-field-filter summary{cursor:pointer}.manual-field-filter summary small{display:block;margin-top:4px;color:var(--secondary);overflow-wrap:anywhere}.manual-filter-options{max-height:210px;overflow:auto;padding-top:6px}.manual-filter-options .check-label{margin:9px 0;overflow-wrap:anywhere}
