:root {
  color-scheme: light;
  --paper: #f5f6f4;
  --paper-deep: #eaedea;
  --surface: #ffffff;
  --ink: #151817;
  --muted: #66706b;
  --line: #dfe3e0;
  --forest: #4e6379;
  --forest-dark: #27394a;
  --forest-soft: #e8edf1;
  --clay: #9a7135;
  --clay-soft: #f5eee2;
  --verified: #3f6b59;
  --verified-soft: #e8f0ec;
  --danger: #984f4f;
  --shadow: 0 18px 52px rgba(23, 26, 24, .07);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-body: .9375rem;
  --text-note: .8125rem;
  --text-control: .875rem;
  --text-subheading: 1.0625rem;
  --text-card-title: 1.25rem;
  --text-section-title: 1.5rem;
  --weight-heading: 600;
  --leading-body: 1.65;
  font-family: var(--font-ui);
}

/* F1/F2: one entry, two results, one recommended action. */
#today .audit-source-note { margin-top: 16px; padding: 12px 14px; border-left: 3px solid #a9874e; background: #faf7f0; color: #655535; font: 400 14px/1.6 var(--font-ui); }
#today .audit-expectation { max-width: 65ch; padding: 8px 4px; margin-top: 24px; }
#today .audit-expectation h2 { font: 600 18px/1.4 var(--font-ui); margin: 0 0 10px; }
#today .audit-expectation p { color: var(--muted); font: 400 15px/1.65 var(--font-ui); }
#today .result-ai-channel .result-channel-verdict { font-weight: 500; color: var(--ink); }
#today .overview-questions { padding-top: 16px; border-top: 1px solid var(--line); }
#today .overview-questions h3 { margin: 0 0 12px; font: 600 15px/1.5 var(--font-ui); }
#today .overview-questions ol { padding-left: 20px; margin: 0; }
#today .overview-questions li { padding: 0 0 12px 4px; }
#today .overview-questions p { margin: 0 0 5px; overflow-wrap: anywhere; }
#today .overview-questions .overview-question { font: 400 14px/1.6 var(--font-ui); color: var(--ink); }
#today .overview-questions .overview-question-result { font: 400 12px/1.5 var(--font-ui); color: var(--muted); }
#today .audit-more-findings { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
#today .audit-more-findings > summary { min-height: 48px; padding: 16px 20px; cursor: pointer; color: var(--muted); font: 500 14px/1.5 var(--font-ui); }
#today .audit-more-findings .audit-priorities { margin: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; }
#today .overview-action-reason { max-width: 70ch; margin: 12px 0 0; color: var(--muted); font: 400 14px/1.65 var(--font-ui); }
#today .overview-completed-change .primary-button { min-height: 46px; padding: 12px 20px; border-radius: 10px; background: #284b75; color: #fff; text-decoration: none; white-space: normal; text-align: center; font: 600 14px/1.5 var(--font-ui); }
#today .overview-completed-change .overview-action-page { font-size: 18px; line-height: 1.45; }
#today .overview-action-preview { padding: 14px 16px; background: #f5f7fa; border-radius: 10px; margin: 14px 0 0; font: 400 15px/1.65 var(--font-ui); }
#today .overview-completed-change:has(.primary-button) { align-items: flex-start; padding: 26px; border-color: #c9d4e2; }
#today .overview-completed-change:has(.primary-button) > a { align-self: center; }
#today .audit-start[data-overview="site"][data-check-state="complete"] { padding: 20px 24px; gap: 12px 24px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; }
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-site,
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-change-site,
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-copy h2 { color: var(--ink); }
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-copy p,
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-recheck > summary { color: var(--muted); }
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-actions { min-width: 0; width: auto; }
#today .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-copy h2 { font-size: 18px; }
#today .audit-start .audit-recheck { min-width: 190px; }
#today .audit-start .audit-recheck > summary { min-height: 44px; padding: 10px 0; }
#today .audit-start .audit-recheck[open] { max-width: 330px; }
#today .result-seo-channel .overview-completed-change { display: block; margin-top: 22px; padding: 20px; border-radius: 12px; background: #f6f8fc; }
#today .result-seo-channel .overview-change-mark { display: none; }
#today .result-seo-channel .overview-completed-change h2 { font-size: 18px; margin-bottom: 10px; }
#today .result-seo-channel .overview-completed-change .overview-action-page { font-size: 15px; }
#today .result-seo-channel .overview-action-preview { padding: 0; background: none; font-size: 14px; }
#today .result-seo-channel .overview-completed-change .primary-button { display: flex; justify-content: center; width: 100%; margin: 18px 0 0; }
@media(max-width:700px) {
  #today .overview-completed-change:has(.primary-button) { padding: 20px; }
  #today .overview-completed-change .primary-button { width: 100%; margin-left: 0; }
  #today .overview-completed-change > div { flex-basis: calc(100% - 50px); }
  #today .audit-start .audit-recheck[open] { max-width: none; }
}

/* Two complete tasks: a readable audit, and a separate implementation workspace. */
.implementation-completed { padding: 22px 26px; border: 1px solid #cfded6; border-radius: 16px; background: #f3f8f4; min-width: 0; }
.implementation-completed h2 { margin: 6px 0 10px; font: 600 20px/1.4 var(--font-ui); letter-spacing: -.02em; }
.implementation-completed > p:not(.panel-kicker):not(.result-date) { margin: 12px 0; max-width: 65ch; font: 400 15px/1.65 var(--font-ui); }
.implementation-completed > a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font: 500 14px/1.6 var(--font-ui); }
.implementation-completed > .result-link:last-child { padding-block: 8px; min-height: 40px; }
.implementation-recent { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.implementation-recent > summary { padding: 16px 20px; min-height: 48px; cursor: pointer; color: var(--muted); font: 500 14px/1.5 var(--font-ui); }
.implementation-recent .implementation-completed { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: none; }
body.live-mode :is(input,textarea,button,select) { font-family: var(--font-ui); }
body.live-mode main :is(.site-improvement-card,.vr-review-card,.site-editorial-item,.content-material-task) :is(h3,h4,h5) { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.015em; }
body.live-mode main :is(.site-improvement-card,.vr-review-card) h4 { font-size: 16px; line-height: 1.5; }
body.live-mode main :is(.site-improvement-card,.vr-review-card) p:not(.panel-kicker):not(.vr-scope):not(.result-date) { font-size: 15px; line-height: 1.65; }
body.live-mode .implementation-workspace > summary { min-height: 50px; padding: 16px 20px; font: 500 15px/1.5 var(--font-ui); }
body.live-mode .implementation-workspace[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
body.live-mode .implementation-summary > .result-next { margin-top: 0; background: #fff; border-color: #cbd5e1; box-shadow: 0 4px 20px #16263c05; }
body.live-mode .implementation-summary .result-next h2 { font-size: 24px; }
body.live-mode .improvement-busy-note { padding: 12px 14px; border-radius: 10px; background: #eef3f8; font: 400 14px/1.6 var(--font-ui); color: #3d526c; }
body.live-mode :is(a,button,summary,input,textarea,select):focus-visible { outline: 2px solid #426b9d; outline-offset: 3px; }
body.live-mode .placeholder-content :is(p,li) { font-size: 15px; line-height: 1.65; }
#visibility .site-ai-check > .vr-heading > h1 { margin: 8px 0 14px; font: 600 32px/1.2 var(--font-ui); letter-spacing: -.035em; }
@media(max-width:700px) {
  #visibility .site-ai-check > .vr-heading > h1 { font-size: 26px; }
  body.live-mode .implementation-summary .result-next { padding: 20px; }
  body.live-mode .implementation-summary .result-next h2 { font-size: 22px; }
  body.live-mode .implementation-summary .result-next > .primary-button { width: 100%; }
}
[data-exit-gate] .session-card { display: grid; gap: 16px; }
[data-exit-gate] .session-card h1 { margin: 0; font-size: 24px; }
[data-exit-gate] .session-card p { margin: 0; font-size: 15px; line-height: 1.65; }
[data-exit-gate] button { max-width: 100%; height: auto; min-height: 46px; white-space: normal; }
@media (max-width: 600px) { .implementation-completed { padding: 18px; } .implementation-completed h2 { font-size: 19px; } }
.product-mode-bar { display: none; gap: 4px; max-width: 1180px; margin: 24px auto 0; padding: 0 32px; }
.product-mode-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 10px; color: var(--muted); font-size: var(--text-control); font-weight: 600; text-decoration: none; }
.product-mode-bar a.active { color: var(--ink); background: #e9ece9; }
.nav-list .product-mode-link { gap: 12px; min-height: 70px; padding: 14px 12px; border: 1px solid transparent; border-radius: 12px; }
.product-mode-link span { display: grid; gap: 3px; }
.product-mode-link strong { font-size: 15px; font-weight: 600; }
.product-mode-link small { font-size: 12px; font-weight: 400; color: var(--muted); }
.nav-list .product-mode-link.active { background: #edf0ed; color: var(--ink); border-color: #e0e5e0; }
.mode-navigation { display: grid; gap: 4px; margin-top: 24px; }
.mode-navigation .nav-section-label { padding: 0 12px 10px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.nav-list .mode-navigation > a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 400; }
.product-settings { margin-top: 20px; }
.product-settings summary { cursor: pointer; padding: 12px 8px; min-height: 44px; font-size: 13px; color: var(--muted); }
.product-settings a { display: block; padding: 10px 12px; min-height: 44px; font-size: 13px; text-decoration: none; }
.product-settings a:hover { color: var(--ink); background: var(--paper); border-radius: 8px; }
body[data-product-mode] main { padding-top: 28px; }
body[data-product-mode] .page-head { margin-bottom: 32px; }
body[data-product-mode] .page-head h1 { margin-block: 10px 12px; font-weight: 600; letter-spacing: -.04em; }
body[data-product-mode] .page-head p:not(.eyebrow) { max-width: 62ch; font-size: var(--text-body); line-height: 1.6; }
body[data-product-mode] .result-home { padding: 0; border: 0; background: transparent; }
.audit-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.audit-site { display: flex; gap: 10px; align-items: center; grid-column: 1 / -1; min-width: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.audit-site strong { min-width: 0; overflow-wrap: anywhere; font-size: var(--text-body); font-weight: 600; }
.audit-site-mark { display: grid; flex: 0 0 32px; height: 32px; place-items: center; background: var(--paper); border-radius: 9px; color: var(--forest); }
.audit-change-site { margin-left: auto; padding: 8px 10px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: var(--text-control); cursor: pointer; }
.audit-change-site:hover { color: var(--ink); background: var(--paper); }
.audit-start-copy { min-width: 0; }
.audit-start-copy h2 { font-size: var(--text-section-title); margin: 6px 0 12px; line-height: 1.35; letter-spacing: -.025em; }
.audit-start-copy p:not(.panel-kicker) { margin: 0; max-width: 57ch; color: var(--muted); font-size: var(--text-body); line-height: 1.6; }
.audit-start-copy .panel-kicker { margin: 0; }
.audit-start-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; max-width: 290px; min-width: 0; }
.audit-start-actions .primary-button { min-height: 48px; height: auto; padding: 13px 20px; background: var(--ink); color: #fff; font-size: var(--text-control); font-weight: 600; text-align: center; text-decoration: none; white-space: normal; }
.audit-start-actions small { max-width: 28ch; font-size: var(--text-note); line-height: 1.5; color: var(--muted); }
.audit-running { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--text-control); }
.audit-start[data-check-state="partial"], .audit-start[data-check-state="unavailable"] { border-color: #dacebc; }
.audit-start[data-check-state="complete"] { align-items: center; padding-block: 22px; }
.audit-start[data-check-state="complete"] .audit-site { grid-column: auto; border: 0; padding-bottom: 0; }
.audit-start[data-check-state="complete"] .audit-start-copy { grid-column: 1 / -1; }
.customer-journey { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; list-style: none; margin: 0 0 22px; padding: 0; }
.customer-journey li { display: flex; gap: 10px; align-items: center; min-width: 0; font-size: var(--text-control); color: var(--muted); }
.customer-step-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.customer-step-detail { font-size: var(--text-note); font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.site-ai-answer-copy p { margin: 0 0 14px; overflow-wrap: anywhere; }
.ai-answer-table { max-width: 100%; margin: 16px 0; overflow-x: auto; }
.ai-answer-table table { width: 100%; min-width: 620px; border-collapse: collapse; font: inherit; font-size: var(--text-control); }
.ai-answer-table th, .ai-answer-table td { padding: 12px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.ai-answer-table th { text-align: left; font-size: var(--text-body); font-weight: var(--weight-heading); background: var(--paper); }
.customer-step-number { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; font-size: var(--text-note); background: var(--surface); }
.customer-journey [data-journey-state="done"] { color: var(--verified); }
.customer-journey [data-journey-state="done"] .customer-step-number { border-color: #c5d7cb; background: var(--verified-soft); }
.customer-journey [data-journey-state="current"] { color: var(--ink); font-weight: 600; }
.customer-journey [data-journey-state="current"] .customer-step-number { border-color: var(--ink); background: var(--ink); color: #fff; }
.audit-dated-result { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 14px 0 20px; }
.audit-dated-result p { margin: 0; color: var(--muted); font-size: var(--text-note); line-height: 1.6; }
.audit-dated-result .secondary-button { min-height: 44px; padding: 9px 14px; font-size: var(--text-control); }
.audit-dated-result .result-date, .audit-dated-result .audit-flow-note { flex-basis: 100%; }
.customer-deliverable { margin: 22px 0; padding: 26px; border: 1px solid #c5d2db; background: #f2f6f9; border-radius: 16px; }
.customer-deliverable h2 { margin: 8px 0 12px; font-size: var(--text-section-title); line-height: 1.35; font-weight: var(--weight-heading); }
.customer-deliverable p:not(.panel-kicker) { max-width: 70ch; margin: 0 0 18px; font-size: var(--text-body); line-height: var(--leading-body); color: var(--muted); overflow-wrap: anywhere; }
.customer-deliverable :is(a,button) { max-width: 100%; height: auto; min-height: 44px; white-space: normal; line-height: 1.45; }
.audit-report-tools { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: center; gap: 12px 20px; margin: 20px 0; }
.audit-report-tools > p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.report-export-button { grid-column: 2; grid-row: 1; min-width: 148px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-control); cursor: pointer; }
.report-export-status { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .audit-report-tools { grid-template-columns: minmax(0,1fr); }
  .report-export-button { grid-column: 1; grid-row: auto; width: 100%; }
}
.legacy-ai-history { margin-block: 24px; }
.legacy-ai-history > summary { padding: 12px 0; min-height: 44px; font-size: var(--text-control); color: var(--muted); cursor: pointer; }
.vr-no-change-next { margin: 18px 0; padding: 18px; border-radius: 12px; background: var(--paper); }
.vr-no-change-next p { margin: 0 0 14px; font-size: var(--text-body); line-height: var(--leading-body); }
@media (max-width:700px) {
  .customer-journey { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
  .customer-deliverable { padding: 20px; }
  .customer-deliverable :is(a,button) { display: flex; justify-content: center; width: 100%; }
  .audit-dated-result .secondary-button { width: 100%; }
}
.audit-model-note { margin: 16px 4px 28px; color: var(--muted); font-size: var(--text-note); line-height: 1.6; }
.audit-operation-warning { padding: 14px 16px; margin: 16px 0; border-left: 3px solid var(--clay); background: var(--clay-soft); font-size: var(--text-control); line-height: 1.6; }
body[data-product-mode] .result-columns { gap: 20px; margin-top: 0; }
body[data-product-mode] .result-channel { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
body[data-product-mode] .result-channel h2 { font-size: var(--text-card-title); line-height: 1.4; margin: 8px 0 16px; }
body[data-product-mode] .result-channel > p { font-size: var(--text-body); line-height: 1.6; }
body[data-product-mode] .result-channel .result-date, body[data-product-mode] .result-channel .result-scope { font-size: var(--text-note); color: var(--muted); }
body[data-product-mode] .result-channel .result-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 20px; }
body[data-product-mode] .result-channel .result-actions > a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; min-width: 0; white-space: normal; height: auto; font-size: var(--text-control); }
body[data-product-mode="check"] .result-channel .result-actions > a[href="#action"] { display: none; }
.audit-priorities { margin-top: 40px; }
.audit-priorities > h2 { margin: 6px 0 18px; font-size: var(--text-section-title); }
.audit-priority-list { list-style: none; counter-reset: priority; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audit-priority-list li { counter-increment: priority; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.audit-priority-list li::before { content: "0" counter(priority); color: var(--muted); font-size: var(--text-note); padding-top: 4px; }
.audit-priority-list h3 { margin: 0 0 6px; font-size: var(--text-subheading); font-weight: 600; line-height: 1.4; }
.audit-priority-list p { margin: 0; color: var(--muted); font-size: var(--text-body); line-height: 1.6; }
.audit-priority-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--ink); font-size: var(--text-control); font-weight: 600; text-underline-offset: 4px; }
.local-entry .session-card > .primary-button { width: 100%; min-height: 48px; height: auto; white-space: normal; text-align: center; }
.local-entry details { margin-top: 28px; color: var(--muted); font-size: var(--text-note); }
.local-entry summary { cursor: pointer; min-height: 44px; }
.seo-issue-view { margin-bottom: 32px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.seo-issue-view .panel-kicker { margin: 20px 0 6px; }
.seo-issue-view > h2 { margin: 0 0 12px; font-size: var(--text-section-title); line-height: 1.35; }
.audit-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--text-control); }
.seo-issue-intro, .seo-issue-current { margin: 12px 0; font-size: var(--text-body); line-height: 1.6; }
.seo-issue-status, .seo-issue-foot { font-size: var(--text-note); line-height: 1.6; color: var(--muted); }
.seo-issue-cards { display: grid; gap: 16px; margin: 24px 0; }
.seo-issue-card { padding: 22px; background: var(--paper); border-radius: 12px; min-width: 0; }
.seo-issue-card h3 { margin: 0 0 10px; font-size: var(--text-subheading); line-height: 1.4; overflow-wrap: anywhere; }
.seo-issue-url { display: block; color: var(--muted); font-size: var(--text-note); line-height: 1.6; overflow-wrap: anywhere; }
.seo-issue-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.seo-issue-actions > a, .seo-issue-view > button { min-height: 44px; height: auto; max-width: 100%; min-width: 0; white-space: normal; font-size: var(--text-control); text-align: center; }
@media (max-width: 600px) {
  .seo-issue-view, .seo-issue-card { padding: 20px; }
  .seo-issue-view > h2 { font-size: 24px; }
  .seo-issue-actions { flex-direction: column; align-items: stretch; }
}
.audit-page-count { white-space: nowrap; padding: 4px 9px; border-radius: 6px; background: #e9ece9; font-size: var(--text-note); }
.audit-ready-note { margin-block: 20px; padding: 16px 0; font-size: var(--text-body); color: var(--ink); }
.audit-implementation-entry { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 24px; }
.audit-implementation-entry a { min-height: 46px; white-space: normal; font-size: var(--text-control); text-decoration: none; }
.audit-implementation-entry small { max-width: 50ch; color: var(--muted); font-size: var(--text-note); line-height: 1.6; }
.audit-method { margin: 30px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.audit-method > summary { cursor: pointer; min-height: 44px; font-size: var(--text-control); color: var(--muted); }
.audit-method > p { max-width: 78ch; color: var(--muted); font-size: var(--text-note); line-height: 1.6; }
.implementation-summary { margin-bottom: 32px; }
.implementation-summary .result-next { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.implementation-summary .result-proof { margin-top: 20px; }
@media (max-width: 1000px) {
  .audit-start { grid-template-columns: minmax(0, 1fr); }
  .audit-start-actions { max-width: none; align-items: flex-start; }
  .audit-start-actions small { max-width: none; }
}
@media (max-width: 980px) {
  body[data-product-mode] .app-shell { display: block; }
  body[data-product-mode] .sidebar { display: none; }
  body[data-product-mode].menu-open .sidebar { display: flex; position: fixed; z-index: 50; width: min(82vw, 290px); height: 100dvh; inset: 0 auto auto 0; transform: none; box-shadow: var(--shadow); }
  body[data-product-mode] .menu-backdrop { display: none; }
  body[data-product-mode].menu-open .menu-backdrop { display: block; position: fixed; z-index: 45; inset: 0; background: rgba(21,24,23,.24); opacity: 1; pointer-events: auto; }
  body[data-product-mode] .menu-close { display: grid; position: absolute; top: 20px; right: 15px; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; }
  body[data-product-mode] .mobile-menu { display: block; }
  body[data-product-mode] .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  body[data-product-mode] .brand { justify-content: flex-start; }
  body[data-product-mode] .brand-copy { display: grid; }
  body[data-product-mode] .project-switcher { grid-template-columns: 32px 1fr auto; justify-items: stretch; }
  body[data-product-mode] .project-switcher > span:nth-child(2) { display: grid; }
  body[data-product-mode] .project-switcher .demo-label { display: block; }
  body[data-product-mode] .nav-list .product-mode-link { grid-template-columns: 20px minmax(0, 1fr); justify-items: stretch; }
  body[data-product-mode] .mode-navigation .nav-section-label { display: block; }
  .product-mode-bar { display: flex; }
}
@media (max-width: 600px) {
  .product-mode-bar { margin-top: 16px; padding-inline: 18px; }
  .product-mode-bar a { flex: 1; justify-content: center; }
  body[data-product-mode] main { padding-top: 22px; }
  body[data-product-mode] .page-head { margin-bottom: 24px; }
  body[data-product-mode] .page-head h1 { font-size: 30px; }
  .audit-start { padding: 20px; gap: 20px; border-radius: 14px; }
  .audit-site { gap: 8px; padding-bottom: 16px; flex-wrap: wrap; }
  .audit-change-site { margin-left: 34px; padding-left: 6px; }
  .audit-start-copy h2 { font-size: 22px; }
  .audit-start-actions { align-items: stretch; }
  .audit-start-actions .primary-button { width: 100%; }
  .audit-model-note { margin-block: 14px 22px; }
  body[data-product-mode] .result-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body[data-product-mode] .result-channel { padding: 20px; }
  .audit-priorities { margin-top: 30px; }
  .audit-priority-list li { grid-template-columns: 22px minmax(0, 1fr); gap: 8px 12px; }
  .audit-page-count { grid-column: 2; justify-self: start; }
  .audit-implementation-entry { align-items: stretch; }
  .audit-implementation-entry > a { width: 100%; text-align: center; }
  .implementation-summary .result-next { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); font-size: var(--text-body); line-height: var(--leading-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-ui); font-weight: var(--weight-heading); line-height: 1.3; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 3vw, 2.625rem); letter-spacing: -.035em; }
h2 { font-size: var(--text-section-title); letter-spacing: -.02em; }
h3 { font-size: var(--text-card-title); letter-spacing: -.015em; }
h4 { font-size: var(--text-subheading); letter-spacing: 0; }
h5, h6 { font-size: 1rem; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.live-mode [data-demo-home] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.usage-access-card { display: grid; justify-items: start; gap: 12px; padding: 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.usage-access-card h2, .usage-access-card p { margin: 0; }
.usage-access-card p:not(.panel-kicker) { max-width: 65ch; font-size: var(--text-body); color: var(--muted); }
.usage-access-card small { font-size: var(--text-note); color: var(--muted); }
.usage-access-card .primary-button { min-height: 44px; white-space: normal; text-align: center; }
.site-onboarding-card .primary-button { min-height: 44px; white-space: normal; text-align: center; }
.usage-engineering > summary { display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: var(--text-subheading); font-weight: var(--weight-heading); }
.usage-engineering > summary span::before { content: '+ '; color: var(--muted); }
.usage-engineering[open] > summary span::before { content: '− '; }
.usage-engineering > summary small { font-size: var(--text-note); font-weight: 400; color: var(--muted); }
.usage-engineering[open] > summary { margin-bottom: 24px; }
.result-proof-details > summary { cursor: pointer; font-size: var(--text-subheading); font-weight: var(--weight-heading); padding: 12px 0; min-height: 44px; }
.result-next + .result-columns { margin-top: 24px; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(83, 106, 130, .3);
  outline-offset: 3px;
}

.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.app-load-gate { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.app-load-gate .primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.local-prototype-notice { position: sticky; top: 0; z-index: 120; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 24px; border-bottom: 1px solid #3f5148; background: #17231e; color: #f8faf8; box-shadow: 0 12px 30px rgba(12, 22, 17, .2); }
.local-prototype-notice[hidden] { display: none !important; }
.local-prototype-notice > span { padding: 6px 9px; border: 1px solid #607268; border-radius: 999px; color: #cdd9d2; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.local-prototype-notice div { display: grid; gap: 3px; }
.local-prototype-notice strong { font-size: 13px; }
.local-prototype-notice p { margin: 0; color: #cdd9d2; font-size: 10px; line-height: 1.45; }
.local-prototype-notice code { color: #fff; font: inherit; font-weight: 750; }
.local-prototype-notice a { padding: 10px 14px; border-radius: 9px; background: #f5f8f6; color: #17231e; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.local-prototype-notice a:hover { background: #fff; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 25px 16px 18px;
  border-right: 1px solid var(--line);
  background: #f8f9f7;
}
.menu-close, .menu-backdrop { display: none; }

.brand { display: flex; align-items: center; gap: 10px; margin: 0 7px 30px; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--forest-dark); color: white; font-size: 17px; font-weight: 750; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 19px; font-weight: 720; letter-spacing: -.035em; }
.brand-copy small, .project-switcher small { color: var(--muted); font-size: 11px; }

.project-switcher {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.project-switcher > span:nth-child(2) { display: grid; min-width: 0; }
.project-switcher strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--forest-soft); color: var(--forest); font-weight: 800; }
.demo-label { padding: 3px 6px; border-radius: 999px; background: var(--paper-deep); font-size: 9px !important; font-weight: 750; text-transform: uppercase; }

.nav-list { display: grid; gap: 4px; margin-top: 22px; }
.nav-section-label { margin: 13px 11px 3px; color: #9aa19d; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nav-section-label:first-child { margin-top: 0; }
.nav-list a, .sidebar-foot > a {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 8px;
  color: #5c6561;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.nav-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; color: #8b9490; }
.nav-list a:hover, .nav-list a.active, .sidebar-foot > a:hover { background: var(--surface); color: var(--ink); }
.nav-list a.active { box-shadow: inset 2px 0 0 var(--forest); }
.nav-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--paper-deep); color: var(--muted); font-size: 11px; text-align: center; }

.sidebar-foot { display: grid; gap: 12px; margin-top: auto; }
.usage-mini { padding: 13px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.usage-mini a { display: flex; gap: 4px; align-items: baseline; text-decoration: none; }
.usage-mini a small { margin-right: auto; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.usage-mini strong { color: var(--ink); }
.usage-track { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.usage-track i { display: block; width: 43%; height: 100%; background: var(--forest); }

.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto auto 1fr auto; gap: 18px; align-items: center; min-height: 62px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(250, 251, 249, .92); backdrop-filter: blur(14px); }
.crumb { color: var(--muted); font-size: 12px; }
.crumb span { margin: 0 7px; color: #aaa297; }
.crumb b { color: var(--ink); }
.site-scope { display: inline-flex; gap: 6px; align-items: baseline; padding-left: 18px; border-left: 1px solid var(--line); white-space: nowrap; }
.site-scope small { color: var(--muted); font-size: 10px; font-weight: 650; }
.site-scope strong { color: var(--forest-dark); font-size: 12px; font-weight: 780; }
.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 14px; white-space: nowrap; }
.topbar-actions { justify-self: end; }
.topbar-actions .session-exit, .topbar .mobile-menu { min-height:44px; min-width:44px; }
.session-security { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:44px; }
.session-security-slot { display:inline-flex;justify-content:center;width:116px;min-height:44px;flex:0 0 116px; }
@media(max-width:600px) { .session-security-slot { width:44px;flex-basis:44px; } }
.session-security svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
.account-sessions-dialog { width:min(560px,calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; box-sizing:border-box; padding:26px; border:1px solid var(--line); border-radius:18px; background:var(--paper, #fafbf9); color:var(--ink); font-family:var(--font-ui); }
.account-sessions-dialog::backdrop { background:rgba(20,32,40,.38); }
.account-sessions-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.account-sessions-dialog h2 { margin:0; font-size:24px; line-height:1.25; font-weight:700; font-family:var(--font-ui); }
.account-sessions-dialog h3 { margin:0 0 6px; font-size:16px; line-height:1.35; font-weight:650; }
.account-sessions-dialog p { margin:0; font-size:15px; line-height:1.55; }
.account-sessions-dialog small { display:block; color:var(--muted); font-size:13px; line-height:1.5; }
.account-sessions-copy + .account-sessions-copy { margin-top:10px; }
.account-sessions-message { margin:14px 0!important; color:var(--muted); }
.account-sessions-message[role=alert] { color:var(--ink); }
.account-sessions-list { display:grid; gap:12px; margin:20px 0; }
.account-session-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.account-session-row > div { min-width:0; }
.account-session-row p { font-size:14px; }
.account-session-current { font-size:13px; color:var(--forest-dark); }
.account-sessions-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:22px; }
.account-sessions-dialog button { min-height:44px; min-width:44px; white-space:normal; font-family:var(--font-ui); font-size:14px; line-height:1.4; }
@media(max-width:600px) { .session-security span { display:none; } .account-sessions-dialog { padding:20px; } .account-sessions-head { gap:10px; } .account-sessions-dialog h2 { font-size:22px; } .account-session-row { align-items:flex-start; } .account-session-row button { width:100%; } }
.environment-note { display: inline-flex; gap: 7px; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 650; }
.environment-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--verified); }
.environment-note { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1480px) {
  .topbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; }
  .topbar .environment-note { display: none; }
  .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-scope { display: grid; min-width: 0; gap: 0; line-height: 1.3; padding-left: 12px; }
  .site-scope strong { overflow: hidden; text-overflow: ellipsis; }
}
.connection { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #cb8b32; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--forest-dark); color: white; font-size: 10px; font-weight: 800; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 21px; }

main { width: min(1180px, 100%); margin: 0 auto; padding: 42px 38px 70px; }
.view { min-width: 0; }

/*
 * The route links remain useful while the main application bundle is still
 * downloading. This progressive fallback prevents a visible button from
 * changing only the URL: the requested section opens through :target first,
 * then app.js takes over the same hidden-state contract.
 */
.view[data-route]:target[hidden] { display: block !important; }
/* These prototype screens may only open after JS authorizes their route.
   A URL fragment must not reveal demonstration recommendations in live mode. */
.view#action:target[hidden], .view#preview:target[hidden] { display: none !important; }
html:has(.view[data-route]:target) .view[data-route="today"]:not(:target) {
  display: none !important;
}
.page-head { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.page-head.compact { align-items: center; }
.page-head h1, .placeholder-view h1 { max-width: 850px; margin: 5px 0 12px; font-size: clamp(2rem, 3vw, 2.625rem); font-weight: var(--weight-heading); line-height: 1.15; letter-spacing: -.035em; }
.page-head p:not(.eyebrow), .placeholder-view > p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.5; }
.eyebrow { margin: 0 0 8px; color: var(--clay); font-size: 11px; font-weight: 720; letter-spacing: .035em; }
.quiet-button, .secondary-button, .text-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; cursor: pointer; font-size: var(--text-control); font-weight: var(--weight-heading); line-height: 1.45; text-decoration: none; }
.quiet-button, .secondary-button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.primary-button { min-height: 42px; padding: 0 17px; border: 1px solid var(--forest); background: var(--forest); color: white; }
.primary-button:hover { background: var(--forest-dark); }
.secondary-button:hover, .quiet-button:hover { border-color: #b8ad9e; }
.primary-button:disabled, .secondary-button:disabled { opacity: .58; cursor: default; }
.text-button { min-height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); }
.block { width: 100%; }
.next-measurement { display: grid; min-width: 206px; gap: 3px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.next-measurement span, .next-measurement small { color: var(--muted); font-size: 10px; }
.next-measurement span { font-weight: 720; }
.next-measurement strong { font-size: 13px; }

.start-guide { margin: 0 0 30px; padding: 28px 30px; border: 1px solid #d5dce1; border-radius: 18px; background: linear-gradient(145deg, #fff, #f4f7f8); box-shadow: 0 22px 58px rgba(35, 51, 66, .07); }
.start-guide-copy { max-width: 790px; }
.start-guide-copy h2 { margin: 5px 0 9px; color: var(--forest-dark); font-size: clamp(25px, 3vw, 35px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.start-guide-copy > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.start-guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; padding: 0; border-block: 1px solid #dce2e5; list-style: none; }
.start-guide-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 3px 10px; min-height: 94px; padding: 17px 20px; align-content: center; border-right: 1px solid #dce2e5; }
.start-guide-steps li:first-child { padding-left: 0; }
.start-guide-steps li:last-child { padding-right: 0; border-right: 0; }
.start-guide-steps li > span { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #cbd3d8; border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.start-guide-steps li > div { display: grid; gap: 3px; }
.start-guide-steps strong { color: var(--forest-dark); font-size: 13px; }
.start-guide-steps small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.start-guide-steps li > b { grid-column: 2; color: var(--clay); font-size: 10px; }
.start-guide-steps li[data-state="complete"] > span { border-color: var(--verified); background: var(--verified); color: #fff; }
.start-guide-steps li[data-state="complete"] > b { color: var(--verified); }
.start-guide-steps li[data-state="current"] { background: rgba(255, 255, 255, .58); }
.start-guide-action { display: flex; gap: 18px; align-items: center; margin-top: 22px; }
.start-guide-action > small { max-width: 470px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.live-home { overflow: hidden; margin-bottom: 30px; border: 1px solid #d7ddd9; border-radius: 20px; background: #fff; box-shadow: 0 24px 65px rgba(35, 51, 66, .08); }
.live-home-head { display: flex; justify-content: space-between; gap: 28px; padding: 30px 32px 25px; background: linear-gradient(135deg, #f8faf8 0%, #f1f5f3 100%); }
.live-home-head > div { max-width: 760px; }
.live-home-head h2 { margin: 6px 0 10px; color: var(--forest-dark); font-size: clamp(26px, 3vw, 38px); font-weight: 670; line-height: 1.08; letter-spacing: -.04em; }
.live-home-head p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.live-home-state { align-self: flex-start; flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b8cabc; border-radius: 999px; background: #edf5ef; color: var(--verified); font-size: 10px; font-weight: 800; }
.live-home-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0 32px; border-block: 1px solid var(--line); list-style: none; }
.live-home-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; min-height: 94px; padding: 20px 22px; align-items: center; border-right: 1px solid var(--line); }
.live-home-steps li:first-child { padding-left: 0; }
.live-home-steps li:last-child { padding-right: 0; border-right: 0; }
.live-home-steps li > span { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #cbd3cf; border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 800; }
.live-home-steps li[data-state="complete"] > span { border-color: var(--verified); background: var(--verified); color: #fff; }
.live-home-steps li > div { display: grid; gap: 4px; }
.live-home-steps strong { color: var(--forest-dark); font-size: 12px; }
.live-home-steps small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.live-home-result { margin: 27px 32px 0; padding: 25px 27px; border-left: 4px solid var(--verified); border-radius: 0 12px 12px 0; background: #f4f7f4; }
.live-home-result > span { color: var(--verified); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.live-home-result h3 { max-width: 850px; margin: 8px 0 10px; color: var(--forest-dark); font-size: clamp(22px, 2.7vw, 31px); line-height: 1.12; letter-spacing: -.035em; }
.live-home-result p { max-width: 900px; margin: 0; color: #46534c; font-size: 13px; line-height: 1.65; }
.live-home-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 25px 32px 30px; }
.live-home-actions > small { flex: 1 1 100%; margin-top: 3px; color: var(--muted); font-size: 10px; }
.result-home { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.result-home [data-legacy-home] { display: none; }
.result-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.result-channel { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.result-channel h2, .result-next h2 { margin: 10px 0; font-size: var(--text-section-title); line-height: 1.3; letter-spacing: -.02em; font-weight: var(--weight-heading); }
.result-channel p, .result-next p, .result-proof p { line-height: var(--leading-body); font-size: var(--text-body); color: #4f5953; }
.result-channel .panel-kicker, .result-next .panel-kicker { margin: 0; }
.result-counts { display: flex; gap: 28px; margin: 24px 0; }
.result-counts div { display: flex; flex-direction: column; gap: 6px; }
.result-counts dt { color: #59625d; font-size: 12px; }
.result-counts dd { margin: 0; font-size: 29px; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; }
.result-seo-issues { margin: 18px 0; }
.result-seo-issues div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-seo-issues dd { white-space: nowrap; margin: 0; font-weight: 650; }
.result-channel .result-scope, .result-channel .result-date { color: #68716c; font-size: 12px; }
.result-link { display: inline-block; margin-top: 8px; color: #3e5870; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.result-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.result-actions > a { display: flex; align-items: center; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; height: auto; margin: 0; padding: 10px 14px; font-size: 14px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.result-actions > .result-link { justify-content: flex-start; padding-inline: 0; text-align: left; }
.result-actions > a:focus-visible { outline: 2px solid #536d83; outline-offset: 3px; border-radius: 6px; }
.result-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 30px; margin-top: 22px; padding: 26px; border: 1px solid #becbd5; border-radius: 16px; background: #f4f7fa; }
.result-next > div { flex: 1 1 420px; min-width: 0; max-width: 720px; }
.result-next .primary-button { flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 44px; padding: 11px 17px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.result-next p:last-child { margin-bottom: 0; }
.result-proposal-preview { min-width: 0; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.result-next > .result-editorial-preview { flex: 1 1 100%; max-width: none; margin-top: 0; }
.result-next .result-proposal-label { margin: 14px 0 5px; font-size: var(--text-note); color: var(--muted); }
.result-next .result-proposal-label:first-child { margin-top: 0; }
.result-proposal-preview > a { display: inline-block; max-width: 100%; font-size: var(--text-subheading); font-weight: var(--weight-heading); line-height: 1.4; overflow-wrap: anywhere; }
.result-next .result-proposal-title { margin: 0; font-size: var(--text-subheading); font-weight: var(--weight-heading); line-height: 1.4; overflow-wrap: anywhere; }
.result-next .result-proposal-text { margin: 0; color: var(--ink); font-size: var(--text-body); line-height: var(--leading-body); overflow-wrap: anywhere; }
.result-proof { margin-top: 26px; padding: 0 6px; }
.result-proof > h2 { font-size: var(--text-card-title); font-weight: var(--weight-heading); }
.result-proof-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.result-proof-label { font-size: 12px; color: #68716c; padding-top: 2px; }
.result-proof h3 { margin: 0; font-size: var(--text-subheading); font-weight: var(--weight-heading); }
.result-proof p { margin: 6px 0 0; }
.result-pilot-note { margin: 22px 6px 0; max-width: 900px; font-size: 12px; color: #68716c; line-height: 1.5; }
@media (max-width: 800px) {
  .result-columns { grid-template-columns: 1fr; }
  .result-next { align-items: stretch; flex-direction: column; gap: 18px; }
  .result-next > div { flex-basis: auto; }
  .result-channel, .result-next { padding: 20px; }
  .result-proof-row { grid-template-columns: 1fr; gap: 6px; }
}

.visibility-head { align-items: center; }
.ai-result-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 26px; align-items: center; margin: 18px 0 0; padding: 22px 24px; border: 1px solid #b8c9bf; border-radius: 15px; background: linear-gradient(135deg, #f7faf8 0%, #eaf1ed 100%); box-shadow: 0 16px 40px rgba(37, 58, 47, .07); }
.ai-result-next[hidden] { display: none; }
.ai-result-next .panel-kicker { margin: 0 0 6px; color: var(--verified); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-result-next h2 { margin: 0; color: var(--forest-dark); font-size: clamp(21px, 2.4vw, 29px); line-height: 1.08; letter-spacing: -.035em; }
.ai-result-next p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ai-result-next button { grid-column: 2; grid-row: 1; min-height: 44px; padding-inline: 19px; }
.ai-result-next > small { grid-column: 2; color: var(--muted); font-size: 8px; text-align: center; }
.visibility-status { display: grid; min-width: 245px; gap: 6px; padding: 18px 20px; border: 1px solid #d6dde2; border-radius: 14px; background: #f9fafb; }
.visibility-status > span, .visibility-status small { color: var(--muted); font-size: 12px; }
.visibility-status > span { font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.visibility-status strong { color: var(--forest-dark); font-size: 14px; }
.ai-check-explainer { padding: 30px; border: 1px solid #d5dce1; border-radius: 18px; background: linear-gradient(145deg, #fff, #f4f7f8); box-shadow: 0 22px 58px rgba(35, 51, 66, .07); }
.ai-check-copy { max-width: 780px; }
.ai-check-copy h2 { margin: 5px 0 9px; color: var(--forest-dark); font-size: clamp(25px, 3vw, 34px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.ai-check-copy > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ai-check-signals { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-block: 1px solid #dce2e5; }
.ai-check-signals article { display: grid; gap: 5px; min-height: 112px; padding: 18px 20px; align-content: center; border-right: 1px solid #dce2e5; }
.ai-check-signals article:first-child { padding-left: 0; }
.ai-check-signals article:last-child { padding-right: 0; border-right: 0; }
.ai-check-signals span { color: var(--clay); font-size: 10px; font-weight: 800; }
.ai-check-signals strong { color: var(--forest-dark); font-size: 13px; }
.ai-check-signals small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.ai-check-readiness { margin-top: 34px; }
.ai-check-readiness .section-title p { max-width: 700px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ai-check-readiness > ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.ai-check-readiness > ol li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 3px 9px; min-height: 105px; padding: 17px 19px; align-content: center; border-right: 1px solid var(--line); }
.ai-check-readiness > ol li:first-child { padding-left: 0; }
.ai-check-readiness > ol li:last-child { padding-right: 0; border-right: 0; }
.ai-check-readiness li > span { grid-row: 1 / 3; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #cbd3d8; border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 800; }
.ai-check-readiness li > div { display: grid; gap: 3px; }
.ai-check-readiness li strong { color: var(--forest-dark); font-size: 12px; }
.ai-check-readiness li small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.ai-check-readiness li > b { grid-column: 2; color: var(--clay); font-size: 10px; }
.ai-check-readiness li[data-state="complete"] > span { border-color: var(--verified); background: var(--verified); color: #fff; }
.ai-check-readiness li[data-state="complete"] > b { color: var(--verified); }
.ai-check-next { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 20px 22px; border: 1px solid #d9ddd9; border-radius: 13px; background: var(--surface); }
.ai-check-next > div { display: grid; gap: 4px; max-width: 720px; }
.ai-check-next span { color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-check-next strong { color: var(--forest-dark); font-size: 15px; }
.ai-check-next small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.ai-check-next .primary-button { white-space: nowrap; }
.ai-check-boundary { margin-top: 24px; padding: 20px 22px; border-left: 3px solid var(--clay); background: #f7f3ec; }
.ai-check-boundary strong { color: var(--forest-dark); font-size: 14px; }
.ai-check-boundary p { max-width: 850px; margin: 7px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ai-check-boundary a { color: var(--forest); font-size: 12px; font-weight: 750; text-decoration: none; }

.ai-site-context { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 18px; padding: 17px 20px; border: 1px solid #d8dfda; border-radius: 13px; background: #f8faf8; }
.ai-site-context-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--verified-soft); color: var(--verified); font-size: 15px; font-weight: 850; }
.ai-site-context > div { display: grid; gap: 3px; }
.ai-site-context span, .ai-site-context small { color: var(--muted); font-size: 11px; }
.ai-site-context strong { color: var(--forest-dark); font-size: 16px; }
.ai-site-context a { color: var(--forest); font-size: 12px; font-weight: 750; text-decoration: none; }
.ai-live-test { padding: 30px; border: 1px solid #d4dce1; border-radius: 18px; background: var(--surface); box-shadow: 0 22px 58px rgba(35, 51, 66, .07); }
.ai-live-test-head, .ai-live-result-head { display: flex; gap: 24px; align-items: start; justify-content: space-between; }
.ai-live-test-head h2, .ai-live-result-head h2 { margin: 5px 0 8px; color: var(--forest-dark); font-size: clamp(25px, 3vw, 34px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.ai-live-test-head p:last-child, .ai-live-result-head p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ai-question-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.ai-question-examples button { min-height: 36px; padding: 7px 11px; border: 1px solid #d8dfdc; border-radius: 999px; background: #f7f8f7; color: #59645f; cursor: pointer; font-size: 11px; text-align: left; }
.ai-question-examples button:hover { border-color: #aab7c0; background: var(--forest-soft); color: var(--forest-dark); }
.ai-question-form { display: grid; gap: 8px; margin-top: 19px; }
.ai-question-form label { color: var(--forest-dark); font-size: 12px; font-weight: 760; }
.ai-question-form textarea { width: 100%; min-height: 116px; resize: vertical; padding: 15px 16px; border: 1px solid #cfd7d2; border-radius: 11px; outline: 0; background: #fbfcfb; color: var(--ink); line-height: 1.5; }
.ai-question-form textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(78, 99, 121, .12); }
.ai-question-form > div { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.ai-question-form small { max-width: 650px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.ai-question-feedback { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.ai-live-result { margin-top: 22px; padding: 30px; border: 1px solid #d4dce1; border-radius: 18px; background: #f9faf9; }
.ai-live-result + .ai-live-test { margin-top: 22px; box-shadow: none; }
.ai-result-state { padding: 7px 10px; border-radius: 999px; background: var(--forest-soft); color: var(--forest-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.ai-result-wait { display: flex; gap: 15px; align-items: center; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ai-result-wait > div { display: grid; gap: 4px; }
.ai-result-wait small { color: var(--muted); font-size: 11px; }
.ai-result-spinner { width: 28px; height: 28px; border: 3px solid #dce3e6; border-top-color: var(--forest); border-radius: 50%; animation: ai-spin .9s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-result-ready { margin-top: 22px; }
.ai-result-summary { display: flex; gap: 8px 18px; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 13px 16px; border: 1px solid #d7e2dc; border-radius: 10px; background: var(--verified-soft); }
.ai-result-summary strong { color: var(--verified); font-size: 12px; }
.ai-result-summary span { color: #607068; font-size: 10px; text-align: right; }
.ai-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-result-card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.ai-result-card > span { color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-result-card h3 { margin: 8px 0; color: var(--forest-dark); font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.ai-result-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ai-result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 19px; border-top: 1px solid var(--line); }
.ai-result-metrics article { display: grid; gap: 4px; min-height: 82px; padding: 14px 12px 0 0; }
.ai-result-metrics span, .ai-result-metrics small { color: var(--muted); font-size: 9px; }
.ai-result-metrics strong { font-size: 13px; }
.ai-result-metrics .is-good strong { color: var(--verified); }
.ai-result-metrics .is-attention strong { color: var(--clay); }
.ai-result-action dl { margin: 17px 0 0; }
.ai-result-action dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; }
.ai-result-action dt { color: var(--muted); }
.ai-result-action dd { margin: 0; color: var(--forest-dark); font-weight: 680; line-height: 1.4; }
.ai-auto-plan { margin-top: 18px; overflow: hidden; border: 1px solid #bfcac4; border-radius: 17px; background: #fff; box-shadow: 0 18px 45px rgba(32, 48, 40, .07); }
.ai-auto-plan-head { display: flex; gap: 24px; align-items: start; justify-content: space-between; padding: 25px 27px 22px; border-bottom: 1px solid #d9e0dc; background: linear-gradient(135deg, #f8faf8 0%, #eef3ef 100%); }
.ai-auto-plan-head h3 { margin: 5px 0 7px; color: var(--forest-dark); font-size: clamp(23px, 2.7vw, 31px); font-weight: 650; line-height: 1.1; letter-spacing: -.04em; }
.ai-auto-plan-head p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ai-auto-plan-state { flex: 0 0 auto; margin-top: 3px; padding: 8px 11px; border: 1px solid #b9cdc0; border-radius: 999px; background: #f6faf7; color: var(--verified); font-size: 9px; font-weight: 800; letter-spacing: .025em; }
.ai-auto-plan-grid { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.45fr); }
.ai-auto-intent { padding: 26px 27px; border-right: 1px solid #dfe4e1; background: #263832; color: #fff; }
.ai-auto-intent > span, .ai-auto-preview span { color: #92a49b; font-size: 9px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.ai-auto-intent h4 { margin: 13px 0 10px; font-size: 20px; font-weight: 620; line-height: 1.25; letter-spacing: -.025em; }
.ai-auto-intent > p { margin: 0; color: #c8d3cd; font-size: 11px; line-height: 1.6; }
.ai-auto-signals { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.ai-auto-signals span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #dfe8e3; font-size: 9px; }
.ai-auto-preview { padding: 24px 27px 27px; }
.ai-auto-preview > div { display: grid; gap: 6px; padding: 13px 0; border-bottom: 1px solid #e1e6e3; }
.ai-auto-preview > div:first-child { padding-top: 0; }
.ai-auto-preview > div:last-child { padding-bottom: 0; border-bottom: 0; }
.ai-auto-preview strong { color: var(--forest-dark); font-size: 14px; font-weight: 680; line-height: 1.45; }
.ai-auto-preview p { margin: 0; color: #4f5b55; font-size: 12px; line-height: 1.55; }
.ai-auto-sections ol { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 22px; margin: 3px 0 0; padding-left: 19px; color: #435049; font-size: 11px; line-height: 1.45; }
.ai-auto-plan-foot { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 22px; padding: 16px 27px; border-top: 1px solid #d9e0dc; background: #f3f6f4; }
.ai-auto-plan-foot strong { color: var(--verified); font-size: 11px; }
.ai-auto-plan-foot span { color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.ai-page-preview { margin-top: 18px; overflow: hidden; border: 1px solid #c7cec9; border-radius: 17px; background: #f7f8f6; box-shadow: 0 22px 55px rgba(31, 45, 38, .085); scroll-margin-top: 22px; }
.ai-page-preview[hidden] { display: none; }
.ai-page-preview > header { display: flex; gap: 24px; align-items: start; justify-content: space-between; padding: 24px 27px 21px; border-bottom: 1px solid #d7ddd9; }
.ai-page-preview > header h3 { margin: 5px 0 7px; color: var(--forest-dark); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.08; letter-spacing: -.035em; }
.ai-page-preview > header p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ai-page-preview > header > span { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #cad3cd; border-radius: 999px; color: var(--verified); background: #fff; font-size: 8px; font-weight: 800; }
.ai-page-preview-browser { margin: 20px 24px; overflow: hidden; border: 1px solid #d7dcd8; border-radius: 13px; background: #fff; box-shadow: 0 13px 34px rgba(29, 42, 35, .06); }
.ai-page-preview-bar { display: flex; gap: 6px; align-items: center; padding: 10px 13px; border-bottom: 1px solid #e1e5e2; background: #f1f3f1; }
.ai-page-preview-bar i { width: 6px; height: 6px; border-radius: 50%; background: #bdc5c0; }
.ai-page-preview-bar strong { margin-left: 7px; color: #6d7972; font-size: 8px; font-weight: 650; }
.ai-page-preview-browser > article { max-width: 900px; padding: 38px 42px 42px; }
.ai-page-preview-label { margin: 0 0 11px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.ai-page-preview-label b { color: var(--forest-dark); }
.ai-page-preview-browser h2 { max-width: 790px; margin: 0; color: #1f2d26; font-size: clamp(29px, 4vw, 46px); font-weight: 650; line-height: 1.03; letter-spacing: -.048em; }
.ai-page-preview-lead { max-width: 790px; margin: 20px 0 27px; color: #445149; font-size: 14px; line-height: 1.7; }
.ai-page-preview-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid #dde2de; background: #dde2de; }
.ai-page-preview-sections section { padding: 18px 19px; background: #fbfcfb; }
.ai-page-preview-sections h4 { margin: 0 0 8px; color: #27362e; font-size: 12px; line-height: 1.35; }
.ai-page-preview-sections p { margin: 0; color: #6c7771; font-size: 10px; line-height: 1.55; }
.ai-page-next-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .62fr); gap: 26px; align-items: center; margin: 24px; padding: 25px 27px; border: 1px solid #bbc9c0; border-radius: 14px; background: linear-gradient(135deg, #f7faf8 0%, #edf3ef 100%); }
.ai-page-next-step h4 { margin: 5px 0 8px; color: var(--forest-dark); font-size: 21px; line-height: 1.15; letter-spacing: -.025em; }
.ai-page-next-step > div:first-child > p:last-child { max-width: 650px; margin: 0; color: #536159; font-size: 11px; line-height: 1.62; }
.ai-page-next-actions { display: grid; gap: 7px; }
.ai-page-next-actions .primary-button { width: 100%; min-height: 48px; }
.ai-page-next-actions .text-button { font-size: 10px; }
.ai-page-draft-state { grid-column: 1 / -1; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding-top: 19px; border-top: 1px solid #cbd6cf; }
.ai-page-draft-state[hidden] { display: none; }
.ai-page-draft-state > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--verified); font-size: 16px; font-weight: 800; }
.ai-page-draft-state div { display: grid; gap: 3px; }
.ai-page-draft-state strong { color: var(--forest-dark); font-size: 12px; }
.ai-page-draft-state small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.ai-page-draft-state .primary-button { min-height: 40px; padding-inline: 18px; font-size: 10px; }
.ai-page-preview > footer { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 22px; padding: 16px 27px; border-top: 1px solid #d7ddd9; background: #edf2ef; }
.ai-page-preview > footer strong { color: var(--verified); font-size: 10px; }
.ai-page-preview > footer span { color: var(--muted); font-size: 9px; line-height: 1.45; text-align: right; }
.ai-fact-workspace { margin-top: 13px; overflow: hidden; border: 1px solid #d7ddd9; border-radius: 13px; background: #f7f8f7; }
.ai-fact-workspace > summary { list-style: none; }
.ai-fact-workspace > summary::-webkit-details-marker { display: none; }
.ai-fact-summary { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 72px; padding: 13px 18px; cursor: pointer; }
.ai-fact-summary:hover { background: #f1f4f2; }
.ai-fact-summary-mark { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #c7d0ca; border-radius: 50%; color: var(--forest); font-size: 18px; line-height: 1; transition: transform .18s ease; }
.ai-fact-workspace[open] .ai-fact-summary-mark { transform: rotate(45deg); }
.ai-fact-summary > span:nth-child(2) { display: grid; gap: 3px; }
.ai-fact-summary strong { color: var(--forest-dark); font-size: 12px; }
.ai-fact-summary small { color: var(--muted); font-size: 10px; }
.ai-fact-summary-count { color: #68736d; font-size: 10px; font-weight: 760; }
.ai-fact-shell { border-top: 1px solid #d9dfdb; }
.ai-fact-head { display: grid; gap: 28px; align-items: start; padding: 23px 27px 20px; border-bottom: 1px solid #d8ded9; background: linear-gradient(135deg, #f8faf8 0%, #edf2ee 100%); }
.ai-fact-head h3 { margin: 5px 0 7px; color: var(--forest-dark); font-size: clamp(20px, 2.3vw, 26px); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; }
.ai-fact-head > div:first-child > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ai-fact-list { display: grid; gap: 1px; background: #d8ded9; }
.ai-fact-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 19px; padding: 23px 27px; background: rgba(255, 255, 255, .94); }
.ai-fact-card.is-prepared { background: #f8fbf8; }
.ai-fact-number { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #cbd4ce; border-radius: 50%; color: #7a867f; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.ai-fact-card.is-prepared .ai-fact-number { border-color: #9fb7a7; background: #edf5ef; color: var(--verified); }
.ai-fact-body { min-width: 0; }
.ai-fact-card-head { display: flex; gap: 18px; align-items: start; justify-content: space-between; }
.ai-fact-card-head h4 { margin: 0; color: var(--forest-dark); font-size: 16px; font-weight: 680; line-height: 1.3; }
.ai-fact-card-head p { max-width: 700px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ai-fact-state { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #d7ded9; border-radius: 999px; color: #68746e; font-size: 9px; font-weight: 800; white-space: nowrap; }
.ai-fact-card.is-prepared .ai-fact-state { border-color: #bed2c3; background: #eef6f0; color: var(--verified); }
.ai-fact-form { display: grid; gap: 9px; margin-top: 15px; }
.ai-fact-form textarea { width: 100%; min-height: 86px; resize: vertical; padding: 13px 14px; border: 1px solid #cbd4ce; border-radius: 10px; outline: 0; background: #fbfcfb; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.55; }
.ai-fact-form textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(78, 99, 121, .1); }
.ai-fact-form-footer { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.ai-fact-form-footer small, .ai-fact-feedback { color: var(--muted); font-size: 10px; line-height: 1.45; }
.ai-fact-form-footer button { flex: 0 0 auto; min-height: 39px; }
.ai-fact-statement { margin: 15px 0 12px; padding: 13px 15px; border-left: 3px solid #9cac9f; background: #f3f6f3; color: #35413b; font-size: 12px; line-height: 1.55; }
.ai-fact-confirm { min-height: 39px; margin-right: 14px; padding-inline: 17px; }
.ai-fact-boundary { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr); gap: 22px; padding: 17px 27px; background: #e9ede9; }
.ai-fact-boundary strong { color: var(--forest-dark); font-size: 11px; }
.ai-fact-boundary span { color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
.ai-answer-details { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ai-answer-details summary { color: var(--forest-dark); cursor: pointer; font-size: 12px; font-weight: 760; }
.ai-answer-text { white-space: pre-wrap; margin: 17px 0; color: #3e4743; font-size: 13px; line-height: 1.65; }
.ai-answer-sources { display: grid; gap: 8px; margin: 0; padding-left: 19px; }
.ai-answer-sources a { color: var(--forest); font-size: 11px; }
.ai-result-boundary { margin-top: 14px; padding: 17px 19px; border-left: 3px solid var(--clay); background: #f5f1e9; }
.ai-result-boundary strong { color: var(--forest-dark); font-size: 12px; }
.ai-result-boundary p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; border-block: 1px solid var(--line); }
.summary-strip > div { display: grid; gap: 5px; min-height: 104px; padding: 20px 22px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span { color: var(--muted); font-size: 12px; }
.summary-strip strong { font-size: 25px; font-weight: 700; letter-spacing: -.025em; }
.summary-strip small { color: var(--muted); }
.summary-strip .positive, .positive { color: var(--verified); }
.summary-strip .warning, .warning { color: #9a5d19; }

.section-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.section-label small { letter-spacing: 0; text-transform: none; }
.action-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: 15px; background: var(--forest-dark); color: white; box-shadow: 0 22px 55px rgba(25, 37, 48, .13); }
.action-main { padding: clamp(25px, 4vw, 42px); }
.action-main h2 { max-width: 690px; margin: 17px 0 12px; font-size: clamp(28px, 3.5vw, 40px); font-weight: 620; line-height: 1.07; letter-spacing: -.035em; }
.action-main > p { max-width: 670px; color: #c9d8d1; line-height: 1.55; }
.action-register { display: flex; flex-wrap: wrap; gap: 0; margin: -6px 0 22px; color: #c2cdd6; font-size: 9px; }
.action-register b, .action-register span { padding: 0 10px; border-right: 1px solid rgba(255, 255, 255, .16); }
.action-register b { padding-left: 0; color: white; letter-spacing: .06em; }
.action-register span:last-child { border-right: 0; }
.action-type { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.action-type span { padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 10px; font-weight: 720; }
.action-type code { color: #b8cec3; font-size: 12px; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 17px; margin: 26px 0; color: #c9d8d1; font-size: 11px; }
.evidence-row span { display: grid; gap: 3px; min-width: 120px; }
.evidence-row b { color: white; font-size: 15px; }
.action-buttons { display: flex; gap: 8px; align-items: center; }
.action-main .primary-button { border-color: white; background: white; color: var(--forest-dark); }
.action-main .text-button { color: #c9d8d1; }
.action-proof { padding: 33px 28px; background: rgba(255, 255, 255, .045); }
.action-proof > p { margin: 0 0 17px; color: #b5c3ce; font-size: 10px; font-weight: 720; letter-spacing: .05em; }
.action-proof ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.action-proof li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; min-height: 50px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.action-proof li span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #d7e5de; }
.action-proof li.muted { color: #e0b9aa; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr); gap: 28px; margin-top: 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-title h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.section-title a { color: var(--forest); font-size: 12px; font-weight: 700; text-decoration: none; }
.work-list { display: grid; gap: 10px; }
.work-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.work-row:hover { color: var(--forest-dark); }
.work-row > span:nth-child(2) { display: grid; gap: 4px; }
.work-row small { color: var(--muted); }
.work-row > b { color: var(--forest); font-size: 11px; }
.work-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--forest-soft); color: var(--forest); }
.work-icon.clay { background: var(--clay-soft); color: var(--clay); }
.change-log { padding-left: 28px; border-left: 1px solid var(--line); }
.change-item { position: relative; display: grid; gap: 4px; margin: 18px 0; padding-left: 17px; }
.change-item::before { content: ""; position: absolute; top: 5px; left: 0; width: 7px; height: 7px; border-radius: 50%; }
.positive-dot::before { background: var(--verified); }
.clay-dot::before { background: var(--clay); }
.change-item span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.change-log > a { color: var(--forest); font-size: 12px; font-weight: 700; text-decoration: none; }

.backline { display: flex; justify-content: space-between; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.backline a { color: var(--forest); font-weight: 750; text-decoration: none; }
.priority-label { padding: 8px 11px; border-radius: 999px; background: var(--clay-soft); color: var(--clay); font-size: 11px; font-weight: 800; }
.decision-register { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.decision-register > div { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 2px 9px; align-items: center; min-height: 76px; padding: 14px 16px; border-right: 1px solid var(--line); }
.decision-register > div:last-child { border-right: 0; }
.decision-register span { grid-row: 1 / 3; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 800; }
.decision-register b { font-size: 11px; }
.decision-register small { color: var(--muted); font-size: 9px; }
.decision-register .complete span { border-color: var(--verified); background: var(--verified-soft); color: var(--verified); }
.decision-register .current { background: #f4f7f9; }
.decision-register .current span { border-color: var(--forest); background: var(--forest); color: white; }
.action-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; align-items: start; }
.action-content { display: grid; gap: 36px; }
.plain-section { border-top: 1px solid var(--line); padding-top: 22px; }
.plain-section h2 { margin: 0 0 14px; font-size: 26px; font-weight: 680; letter-spacing: -.03em; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; }
.signal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.signal-list > div { display: grid; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.signal-list span, .signal-list small { color: var(--muted); font-size: 11px; }
.signal-list strong { line-height: 1.3; }
.proposal { display: grid; grid-template-columns: 34px 1fr; gap: 13px 12px; }
.proposal-num { color: var(--clay); font-size: 11px; font-weight: 800; }
.proposal strong { display: block; margin-bottom: 4px; }
.proposal p { margin: 0; color: var(--muted); line-height: 1.45; }
.facts-table { display: grid; }
.facts-table > div { display: grid; grid-template-columns: 1fr 120px 160px; gap: 12px; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); font-size: 12px; }
.facts-table small { color: var(--muted); }
.status-ok { color: var(--verified); }
.status-need { color: var(--clay); }
.decision-panel { position: sticky; top: 86px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 40px rgba(23, 26, 24, .055); }
.decision-panel .panel-kicker { color: var(--clay); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.decision-panel h2 { margin: 9px 0; font-size: 25px; font-weight: 680; line-height: 1.12; letter-spacing: -.03em; }
.decision-panel > p, .decision-panel > small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.decision-panel dl { margin: 20px 0; }
.decision-panel dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.decision-panel dt { color: var(--muted); }
.decision-panel dd { margin: 0; font-weight: 750; }
.decision-panel .secondary-button { margin: 8px 0 12px; }

.preview-view { max-width: none; }
.preview-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 19px; }
.preview-top .backline { display: flex; gap: 16px; margin: 0; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: end; }
.segmented, .change-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.segmented button, .change-switch button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.segmented button.active, .change-switch button.active { background: var(--forest-soft); color: var(--forest-dark); }
.preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; align-items: start; }
.site-stage { min-width: 0; padding: 22px; overflow: hidden; border: 1px solid #d8dcda; border-radius: 14px; background: #e5e7e4; }
.site-frame { width: 100%; max-width: 930px; margin: 0 auto; overflow: hidden; border-radius: 9px; background: white; box-shadow: 0 16px 44px rgba(23,35,31,.14); transition: max-width .25s ease; }
.site-frame.mobile { max-width: 390px; }
.site-browserbar { display: flex; gap: 5px; align-items: center; height: 30px; padding: 0 10px; background: #eeeae4; color: #918b82; font-size: 9px; }
.site-browserbar i { width: 6px; height: 6px; border-radius: 50%; background: #c4bdb4; }
.site-browserbar span { margin-left: 7px; }
.site-page { color: #1f2723; font-family: var(--font-ui); }
.fake-site-head { display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 0 28px; border-bottom: 1px solid #e8e3dc; }
.fake-site-head strong { color: #265a46; letter-spacing: .1em; }
.fake-site-head nav { color: #657069; font-size: 10px; }
.fake-site-head button, .fake-hero button { border: 0; border-radius: 5px; background: #bb704f; color: white; font-size: 9px; font-weight: 700; }
.fake-site-head button:disabled, .fake-hero button:disabled { opacity: 1; cursor: default; }
.fake-site-head button { padding: 8px 11px; }
.fake-breadcrumbs { padding: 13px 7%; color: #8d948f; font-size: 8px; }
.fake-hero { padding: 6% 9% 7%; background: #edf3ee; }
.fake-hero p { margin: 0 0 8px; color: #bb704f; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.fake-hero h1 { max-width: 640px; margin: 0 0 12px; font: 700 clamp(22px, 3.5vw, 42px)/1.04 var(--font-ui); }
.fake-hero span { display: block; max-width: 560px; color: #58635d; font-size: 11px; line-height: 1.5; }
.fake-hero button { margin-top: 18px; padding: 10px 14px; }
.fake-content { padding: 6% 9% 10%; }
.fake-content h2 { margin: 24px 0 10px; font: 700 clamp(17px, 2.4vw, 27px) var(--font-ui); }
.fake-content p { color: #5f6964; font-size: 11px; line-height: 1.55; }
.fake-table { display: grid; border-top: 1px solid #d9ded9; }
.fake-table > div { display: grid; grid-template-columns: 1fr 100px 1.2fr; gap: 10px; align-items: center; min-height: 43px; border-bottom: 1px solid #d9ded9; font-size: 10px; }
.fake-table small { color: #7b857f; }
.fake-table .fact-missing { background: #fff6ec; }
.checks-panel { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.check { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.check > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.check.ok > span { background: var(--verified-soft); color: var(--verified); }
.check.need > span { background: var(--clay-soft); color: var(--clay); }
.check div { display: grid; gap: 3px; }
.check small { color: var(--muted); font-size: 11px; }
.permission-box { margin: 19px 0; padding: 14px; border-left: 3px solid var(--forest); background: var(--forest-soft); }
.permission-box span { display: block; margin-bottom: 4px; color: var(--forest-dark); font-size: 10px; font-weight: 720; }
.permission-box p { margin: 6px 0 0; color: #52616d; font-size: 11px; line-height: 1.45; }
.approval-state { margin: -7px 0 18px; padding: 11px 12px; border-radius: 9px; font-size: 10px; line-height: 1.45; }
.approval-state.approved { background: var(--verified-soft); color: var(--verified); }
.approval-state.returned { background: var(--clay-soft); color: #795a2d; }
.approval-state.blocked { margin-top: 0; border: 1px solid #e1d7c3; background: #f6f1e7; color: #6e5a35; }
.cms-handoff-card { margin: 0 0 18px; padding: 17px; border: 1px solid #d8ddd9; border-radius: 13px; background: linear-gradient(155deg, #f7f9f7 0%, #eef3ef 100%); box-shadow: inset 0 1px rgba(255,255,255,.75); }
.cms-handoff-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.cms-handoff-head > span { color: #66776d; font-size: 8px; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.cms-handoff-head em { padding: 4px 7px; border: 1px solid #d1d9d3; border-radius: 999px; color: #6f7c74; background: rgba(255,255,255,.7); font-size: 8px; font-style: normal; font-weight: 760; }
.cms-handoff-card h3 { margin: 12px 0 6px; color: #26352d; font-size: 15px; letter-spacing: -.015em; }
.cms-handoff-card > p { margin: 0 0 11px; color: #66716b; font-size: 10px; line-height: 1.55; }
.cms-handoff-card dl { margin: 0 0 12px; }
.cms-handoff-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(114,130,120,.16); font-size: 9px; }
.cms-handoff-card dt { color: #768078; }
.cms-handoff-card dd { margin: 0; color: #35463c; font-weight: 720; text-align: right; }
.cms-handoff-card code { color: inherit; font-size: 8px; }
.cms-handoff-card button { width: 100%; min-height: 38px; border: 0; border-radius: 9px; background: #223d31; color: #fff; font-size: 10px; font-weight: 760; cursor: pointer; }
.cms-handoff-card button:disabled { background: #d9dfdb; color: #7c8981; cursor: not-allowed; }
.cms-handoff-card > small { display: block; margin-top: 9px; color: #758078; font-size: 8px; line-height: 1.5; }
.cms-handoff-card.prepared { border-color: #afc8b9; background: linear-gradient(155deg, #f4f8f5 0%, #e5f0e8 100%); }
.cms-handoff-card.prepared .cms-handoff-head em { border-color: #b8cebf; color: var(--verified); background: #fff; }
.pull-package-card { position: relative; overflow: hidden; margin: 0 0 18px; padding: 18px; border: 1px solid #d7d9d6; border-radius: 13px; background: #fff; box-shadow: 0 12px 28px rgba(35,46,40,.06); }
.pull-package-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #263c32, #89968e 68%, transparent); opacity: .7; }
.pull-package-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.pull-package-head > span { display: flex; align-items: center; gap: 6px; color: #516158; font-size: 8px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.pull-package-head i { color: #263c32; font-size: 7px; font-style: normal; }
.pull-package-head em { padding: 4px 7px; border: 1px solid #d7dbd8; border-radius: 999px; color: #707a74; background: #f7f8f7; font-size: 8px; font-style: normal; font-weight: 760; }
.pull-package-card h3 { margin: 12px 0 6px; color: #202d26; font-size: 15px; letter-spacing: -.015em; }
.pull-package-card > p { margin: 0 0 12px; color: #646f69; font-size: 10px; line-height: 1.55; }
.pull-package-card dl { margin: 0 0 13px; padding: 1px 0; border-top: 1px solid #e8ebe9; }
.pull-package-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef0ee; font-size: 9px; }
.pull-package-card dt { color: #7a827d; }
.pull-package-card dd { margin: 0; color: #34443b; font-weight: 720; text-align: right; }
.pull-package-card code { color: inherit; font-size: 8px; }
.pull-package-card button { width: 100%; min-height: 39px; border: 1px solid #263c32; border-radius: 9px; background: #263c32; color: #fff; font-size: 10px; font-weight: 780; cursor: pointer; box-shadow: 0 6px 14px rgba(38,60,50,.12); }
.pull-package-card button:disabled { border-color: #d8ddda; background: #e1e5e2; color: #7e8982; box-shadow: none; cursor: not-allowed; }
.pull-package-card > small { display: block; margin-top: 9px; color: #747e78; font-size: 8px; line-height: 1.5; }
.pull-package-card.available { border-color: #aebdb4; background: linear-gradient(160deg, #fff 0%, #f1f5f2 100%); }
.pull-package-card.available .pull-package-head em { border-color: #b7c8bd; color: #2e6047; background: #fff; }
.draft-receipt-card { margin: 0 0 18px; padding: 18px; border: 1px solid #d9ddda; border-radius: 13px; background: linear-gradient(160deg, #fbfcfb 0%, #f1f3f1 100%); box-shadow: 0 12px 30px rgba(32,45,38,.05); }
.draft-receipt-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.draft-receipt-head > span { display: flex; gap: 7px; align-items: center; color: #59675f; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.draft-receipt-head i { color: #8b958f; font-size: 8px; font-style: normal; }
.draft-receipt-head em { padding: 5px 8px; border: 1px solid #d4d9d6; border-radius: 999px; color: #69766f; background: rgba(255,255,255,.82); font-size: 11px; font-style: normal; font-weight: 700; }
.draft-receipt-card h3 { margin: 14px 0 7px; color: #202d26; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.draft-receipt-card > p { margin: 0 0 15px; color: #626e67; font-size: 13px; line-height: 1.55; }
.draft-delivery-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0 0 13px; padding: 0; list-style: none; }
.draft-delivery-flow li { min-width: 0; padding: 9px 8px; border: 1px solid #e0e4e1; border-radius: 9px; background: rgba(255,255,255,.78); }
.draft-delivery-flow b { display: grid; width: 20px; height: 20px; margin-bottom: 8px; place-items: center; border-radius: 50%; background: #e8ebe9; color: #718078; font-size: 11px; }
.draft-delivery-flow span { display: grid; gap: 2px; }
.draft-delivery-flow strong { color: #39473f; font-size: 11px; }
.draft-delivery-flow small { overflow: hidden; color: #6f7a74; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; }
.draft-delivery-flow li.done { border-color: #bed0c4; background: #f7fbf8; }
.draft-delivery-flow li.done b { background: #305c46; color: #fff; }
.draft-delivery-flow li.warning { border-color: #dbc7aa; background: #fffaf2; }
.draft-delivery-flow li.warning b { background: #98682e; color: #fff; }
.draft-receipt-card dl { margin: 0 0 8px; border-top: 1px solid #e4e7e5; }
.draft-receipt-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e9ecea; font-size: 11px; }
.draft-receipt-card dt { color: #79827d; }
.draft-receipt-card dd { margin: 0; color: #334239; font-weight: 720; text-align: right; }
.draft-receipt-card > small { display: block; color: #6d7872; font-size: 11px; line-height: 1.5; }
.draft-receipt-card.confirmed { border-color: #b8cdbf; background: linear-gradient(160deg, #fbfdfb 0%, #e9f2ec 100%); }
.draft-receipt-card.confirmed .draft-receipt-head i { color: #315c47; }
.draft-receipt-card.confirmed .draft-receipt-head em { border-color: #b9cdbf; color: #2d6248; }
.draft-receipt-card.conflict { border-color: #dbc4a4; background: linear-gradient(160deg, #fffdfa 0%, #f8efe3 100%); }
.draft-receipt-card.conflict .draft-receipt-head i { color: #98682e; }
.draft-receipt-card.conflict .draft-receipt-head em { border-color: #dbc4a4; color: #825923; }
.preview-provenance { margin: 0 0 18px; padding: 15px 0 2px; border-block: 1px solid var(--line); }
.preview-provenance > div:first-child { display: flex; gap: 9px; justify-content: space-between; align-items: start; margin-bottom: 7px; }
.preview-provenance h3 { margin: 0; font-size: 11px; font-weight: 770; letter-spacing: -.01em; }
.preview-provenance > div:first-child span { color: var(--muted); font-size: 9px; line-height: 1.35; text-align: right; }
.preview-provenance-list { display: grid; }
.provenance-row { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid #ebece8; }
.provenance-row:first-child { border-top: 0; }
.provenance-row > span { color: var(--forest-dark); font-size: 9px; font-weight: 780; letter-spacing: .055em; text-transform: uppercase; }
.provenance-row > p { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.45; }
.provenance-row > small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.change-switch { display: flex; }
.change-switch button { flex: 1; }
.site-frame.before { outline: 2px solid rgba(154, 113, 53, .18); }
.preview-section { padding: 2px 0 12px; border-bottom: 1px solid #e7ebe7; }
.preview-section:last-child { border-bottom: 0; }

.fact-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.fact-summary > div { display: grid; gap: 6px; min-height: 112px; align-content: center; padding: 22px; border-right: 1px solid var(--line); }
.fact-summary > div:last-child { border-right: 0; }
.fact-summary span { color: var(--muted); font-size: 11px; }
.fact-summary strong { font-size: 30px; letter-spacing: -.04em; }
.fact-studio-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact-studio-list article { position: relative; min-height: 165px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fact-studio-list h2 { max-width: 80%; margin: 23px 0 10px; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.fact-studio-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.fact-state { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.fact-state.ready { background: var(--verified-soft); color: var(--verified); }
.fact-state.missing { background: var(--clay-soft); color: #795a2d; }
.fact-state.blocked { background: #f3e8e8; color: var(--danger); }
.fact-safety { display: grid; grid-template-columns: minmax(160px, .35fr) 1fr; gap: 24px; margin-top: 18px; padding: 20px 22px; border-left: 3px solid var(--forest); background: var(--forest-soft); }
.fact-safety b { font-size: 12px; }
.fact-safety span { color: #53616d; font-size: 11px; line-height: 1.55; }
.fact-profile-panel { position: relative; margin-top: 18px; padding: 32px; overflow: hidden; border: 1px solid #d1d8d3; border-radius: 18px; background: linear-gradient(145deg, #fbfcf9 0%, #f0f3ef 100%); box-shadow: 0 22px 58px rgba(22,35,29,.08); }
.fact-profile-panel::before { position: absolute; top: -210px; right: -145px; width: 360px; height: 360px; border: 1px solid rgba(51,79,65,.09); border-radius: 50%; content: ""; }
.fact-profile-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.fact-profile-head h2 { max-width: 850px; margin: 7px 0 10px; font-size: clamp(26px, 2.55vw, 35px); font-weight: 610; line-height: 1.08; letter-spacing: -.043em; }
.fact-profile-head > div > p:last-child { max-width: 800px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.fact-profile-status { display: inline-flex; gap: 7px; align-items: center; padding: 9px 12px; border: 1px solid #cbd5ce; border-radius: 999px; background: rgba(255,255,255,.72); color: #40604f; font-size: 10px; font-weight: 780; white-space: nowrap; }
.fact-profile-status::before { width: 6px; height: 6px; border-radius: 50%; background: #92734a; box-shadow: 0 0 0 4px rgba(146,115,74,.09); content: ""; }
.fact-profile-panel.applied .fact-profile-status::before { background: var(--verified); box-shadow: 0 0 0 4px rgba(63,107,89,.1); }
.fact-profile-register { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 25px; overflow: hidden; border: 1px solid #d8ddd9; border-radius: 12px; background: rgba(255,255,255,.67); }
.fact-profile-register > div { display: grid; min-height: 78px; gap: 6px; align-content: center; padding: 15px 17px; border-right: 1px solid #dfe3e0; }
.fact-profile-register > div:last-child { border-right: 0; }
.fact-profile-register span { color: #748078; font-size: 8px; font-weight: 790; letter-spacing: .075em; text-transform: uppercase; }
.fact-profile-register strong { color: #344239; font-size: 11px; line-height: 1.4; }
.fact-profile-list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 19px; border-block: 1px solid #d9dfdb; }
.fact-profile-list article { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 83px; padding: 14px 0; border-bottom: 1px solid #e0e4e1; }
.fact-profile-list article:nth-last-child(-n+2) { border-bottom: 0; }
.fact-profile-list i { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #c7d0ca; border-radius: 50%; color: #607269; font-size: 8px; font-style: normal; font-weight: 800; }
.fact-profile-list div { display: grid; gap: 4px; }
.fact-profile-list b { font-size: 11px; line-height: 1.35; }
.fact-profile-list p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.fact-profile-list article > span { max-width: 115px; padding: 5px 7px; border-radius: 999px; background: #eee9df; color: #7b6545; font-size: 8px; font-weight: 740; line-height: 1.3; text-align: center; }
.fact-profile-list article[data-state="needs_input"] > span { background: var(--clay-soft); color: #795a2d; }
.fact-profile-list article[data-state="in_progress"] > span { background: #e9eeeb; color: #496355; }
.fact-profile-list article[data-state="ready"] > span { background: var(--verified-soft); color: var(--verified); }
.fact-profile-action { position: relative; display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-top: 18px; }
.fact-profile-action > div { display: grid; gap: 4px; }
.fact-profile-action b { font-size: 11px; }
.fact-profile-action span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.fact-profile-action button { min-height: 44px; flex: 0 0 auto; padding: 0 18px; border: 1px solid #2d493a; border-radius: 9px; background: #2d493a; color: #fff; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.fact-profile-action button:disabled { border-color: #cdd3cf; background: #e5e8e5; color: #7f8983; cursor: not-allowed; }
.fact-profile-boundary { position: relative; display: flex; gap: 20px; justify-content: space-between; margin-top: 18px; padding-top: 15px; border-top: 1px solid #d9dfdb; }
.fact-profile-boundary span { color: #748078; font-size: 9px; font-weight: 790; letter-spacing: .08em; text-transform: uppercase; }
.fact-profile-boundary b { max-width: 820px; color: #526159; font-size: 10px; font-weight: 590; line-height: 1.5; text-align: right; }
.document-intake-panel { position: relative; margin-top: 18px; padding: 32px; overflow: hidden; border: 1px solid #cfc8bb; border-radius: 18px; background: linear-gradient(145deg, #f8f6f0 0%, #eeebe3 100%); box-shadow: 0 24px 64px rgba(43,39,31,.09); }
.document-intake-panel::after { position: absolute; right: -125px; bottom: -220px; width: 380px; height: 380px; border: 1px solid rgba(55,74,64,.09); border-radius: 50%; content: ""; }
.document-intake-head { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 34px; align-items: start; }
.document-intake-head h2 { max-width: 860px; margin: 7px 0 10px; font-size: clamp(25px, 2.5vw, 35px); font-weight: 610; line-height: 1.08; letter-spacing: -.044em; }
.document-intake-head > div:first-child > p:last-child { max-width: 820px; margin: 0; color: #687069; font-size: 16px; line-height: 1.6; }
.document-intake-counter { display: grid; min-height: 96px; padding: 16px; align-content: center; border-radius: 12px; background: #26372f; color: #f7f4ec; text-align: right; }
.document-intake-counter strong { font-size: 31px; font-weight: 630; line-height: 1; letter-spacing: -.055em; }
.document-intake-counter span { margin-top: 7px; color: #b9c4bd; font-size: 12px; line-height: 1.35; }
.document-intake-guards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-block: 1px solid #d4d0c8; }
.document-intake-guards > div { display: flex; min-height: 79px; gap: 12px; align-items: center; padding: 14px 18px; border-right: 1px solid #d4d0c8; }
.document-intake-guards > div:last-child { border-right: 0; }
.document-intake-guards i { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid #aeb8b1; border-radius: 50%; color: #53685d; font-size: 8px; font-style: normal; font-weight: 800; }
.document-intake-guards span { display: grid; gap: 4px; }
.document-intake-guards b { color: #35423b; font-size: 13px; }
.document-intake-guards small { color: #737b75; font-size: 12px; line-height: 1.4; }
.document-intake-workspace { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, .88fr) minmax(340px, 1.12fr); gap: 14px; margin-top: 18px; }
.document-intake-form, .document-intake-list { min-width: 0; border: 1px solid #d4d0c8; border-radius: 13px; background: rgba(255,255,255,.7); }
.document-intake-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 22px; }
.document-intake-form-title { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid #dedbd4; }
.document-intake-form-title span { color: #597064; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-intake-form-title b { color: #69726c; font-size: 12px; font-weight: 590; }
.document-intake-form label { display: grid; gap: 7px; align-content: start; }
.document-intake-form label > span { color: #404b45; font-size: 13px; font-weight: 760; }
.document-intake-form select, .document-intake-form input { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #c7cec9; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.document-intake-form select:focus, .document-intake-form input:focus { border-color: #607b6d; box-shadow: 0 0 0 3px rgba(63,107,89,.09); }
.document-intake-form .document-file-field { grid-column: 1 / -1; padding: 14px; border: 1px dashed #aeb9b2; border-radius: 10px; background: #f7f8f5; }
.document-file-field input { padding: 7px; border: 0; background: transparent; }
.document-file-field small { color: #68736c; font-size: 12px; line-height: 1.45; }
.document-intake-form button { min-height: 44px; justify-self: start; padding: 0 16px; border: 1px solid #2d493a; border-radius: 9px; background: #2d493a; color: #fff; font: inherit; font-size: 13px; font-weight: 780; cursor: pointer; }
.document-intake-form button:disabled { border-color: #bfc5c1; background: #dfe2df; color: #7c8580; cursor: not-allowed; }
.document-intake-form > p { align-self: center; margin: 0; color: #6b746f; font-size: 12px; line-height: 1.5; }
.document-intake-list { display: grid; gap: 9px; align-content: start; max-height: 440px; padding: 12px; overflow: auto; }
.document-manifest-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 20px; padding: 17px; border: 1px solid #d7dcd8; border-radius: 10px; background: #fff; }
.document-manifest-card header { min-width: 0; }
.document-manifest-card header span { color: #4a6757; font-size: 12px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.document-manifest-card h3 { overflow: hidden; margin: 6px 0 0; font-size: 16px; font-weight: 660; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.document-manifest-card > span { align-self: start; padding: 6px 9px; border-radius: 999px; background: #e8eee9; color: #42604f; font-size: 12px; font-weight: 760; white-space: nowrap; }
.document-manifest-meta { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin: 0; padding-top: 12px; border-top: 1px solid #e3e6e3; }
.document-manifest-meta div { display: grid; gap: 2px; min-width: 0; }
.document-manifest-meta dt { color: #838a85; font-size: 12px; text-transform: uppercase; }
.document-manifest-meta dd { overflow: hidden; margin: 0; color: #4f5953; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.document-manifest-safety { grid-column: 1 / -1; margin: 0; color: #66716a; font-size: 13px; line-height: 1.5; }
.document-manifest-card.security-checked { border-color: #afc7b8; background: #fbfdfb; }
.document-manifest-card.security-rejected { border-color: #d4b8b0; background: #fffaf8; }
.document-manifest-card.security-rejected > span { background: #f2dfda; color: #7d4337; }
.document-manifest-card.candidates-pending { border-color: #99b2a4; background: linear-gradient(145deg, #fbfdfb, #f2f7f3); box-shadow: inset 3px 0 #617d6e; }
.document-manifest-card.candidates-pending > span { background: #dfeae3; color: #355847; }
.document-manifest-card.extraction-empty { border-color: #c8ccc8; background: #fafbf9; }
.document-manifest-card.extraction-empty > span { background: #eceeeb; color: #68716c; }
.document-candidate-open { grid-column: 1 / -1; justify-self: start; min-height: 38px; padding: 0 13px; border: 1px solid #809b8c; border-radius: 8px; background: #f7faf8; color: #355847; font-size: 13px; font-weight: 750; }
.document-candidate-open:hover { border-color: #526f60; background: #edf4ef; }
.document-candidate-panel { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 3px; padding: 14px; border: 1px solid #c9d5ce; border-radius: 10px; background: #f8faf8; }
.document-candidate-panel-head { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; }
.document-candidate-panel-head > div { display: flex; align-items: center; gap: 5px; color: #66716a; }
.document-candidate-panel-head i { width: 7px; height: 7px; border-radius: 50%; background: #6f8f7d; box-shadow: 0 0 0 3px #e3ebe6; }
.document-candidate-panel-head small { font-size: 12px; font-weight: 720; }
.document-candidate-panel-head strong { color: #27352d; font-size: 14px; font-weight: 720; letter-spacing: -.01em; }
.document-candidate-panel-head > span { padding: 5px 8px; border: 1px solid #d2dad5; border-radius: 999px; background: #fff; color: #59675f; font-size: 12px; font-weight: 720; }
.document-candidate-boundary { margin: 0; padding: 10px 11px; border-left: 2px solid #799486; background: #eef3f0; color: #536159; font-size: 13px; line-height: 1.5; }
.document-candidate-item { display: grid; gap: 10px; padding: 13px; border: 1px solid #d6ddd8; border-radius: 9px; background: #fff; }
.document-candidate-item.is-accepted { border-color: #aac2b4; box-shadow: inset 3px 0 #61816f; }
.document-candidate-item.is-rejected { border-color: #d4bab3; box-shadow: inset 3px 0 #a56b5e; }
.document-candidate-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.document-candidate-item-head span { color: #68756e; font-size: 12px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.document-candidate-item-head code { padding: 4px 6px; border: 1px solid #dde2df; border-radius: 5px; background: #f7f8f7; color: #4d5c54; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.document-candidate-statement { margin: 0; color: #27322c; font-size: 15px; font-weight: 590; line-height: 1.55; }
.document-candidate-review { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid #e2e6e3; }
.document-candidate-review textarea { width: 100%; min-height: 64px; resize: vertical; padding: 9px 10px; border: 1px solid #ced6d1; border-radius: 7px; background: #fbfcfb; color: #303a34; font: inherit; font-size: 14px; line-height: 1.45; }
.document-candidate-review textarea:focus { outline: 2px solid rgba(82,111,96,.15); border-color: #789184; }
.document-candidate-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.document-candidate-actions button { min-height: 38px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 760; }
.document-candidate-accepted { border: 1px solid #577565; background: #577565; color: #fff; }
.document-candidate-rejected { border: 1px solid #c6ada6; background: #fffaf8; color: #7b473c; }
.document-candidate-decision { padding: 9px 10px; border-radius: 7px; background: #edf3ef; color: #456052; font-size: 13px; font-weight: 680; line-height: 1.45; }
.document-candidate-item.is-rejected .document-candidate-decision { background: #f7ebe7; color: #78483d; }
.document-candidate-item.is-prepared { border-color: #8fa999; background: linear-gradient(145deg, #fff, #f7faf8); box-shadow: inset 3px 0 #365e49, 0 10px 24px rgba(37, 64, 49, .045); }
.document-candidate-prepare { justify-self: start; min-height: 38px; padding: 0 13px; border: 1px solid #365e49; border-radius: 8px; background: #365e49; color: #fff; font: inherit; font-size: 13px; font-weight: 770; cursor: pointer; }
.document-candidate-prepare:hover { background: #294b3a; }
.document-candidate-prepare:disabled { cursor: wait; opacity: .58; }
.document-candidate-prepared { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 12px; border: 1px solid #ccdad1; border-radius: 8px; background: #f2f7f4; }
.document-candidate-prepared b { color: #294b3a; font-size: 13px; font-weight: 790; }
.document-candidate-prepared span { grid-column: 1; color: #5b6961; font-size: 12px; line-height: 1.45; }
.document-candidate-prepared code { grid-column: 2; grid-row: 1 / span 2; max-width: 190px; overflow: hidden; color: #65736b; font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.document-candidate-activation { display: grid; grid-template-columns: auto minmax(132px, 0.55fr) minmax(190px, auto); gap: 8px 10px; align-items: center; padding: 12px; border: 1px solid #d8d8d2; border-radius: 9px; background: #fbfbf8; }
.document-candidate-activation label { color: #62655f; font-size: 12px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.document-candidate-activation input { min-width: 0; padding: 9px; border: 1px solid #cfd1cb; border-radius: 7px; background: #fff; color: #20231f; font: 650 13px/1.2 var(--font-ui); }
.document-candidate-activate { padding: 10px 12px; border: 1px solid #2e4b3d; border-radius: 7px; background: #2e4b3d; color: #fff; font-size: 13px; font-weight: 780; }
.document-candidate-activation small { grid-column: 1 / -1; color: #777b74; font-size: 12px; line-height: 1.45; }
.document-candidate-activation.is-expired { grid-template-columns: 1fr; border-color: #d5b9b1; background: #fff8f6; }
.document-candidate-activation.is-expired b { color: #78483d; font-size: 13px; }
.document-candidate-activation.is-expired span { color: #715f59; font-size: 12px; line-height: 1.5; }
.document-candidate-activated { padding: 11px 12px; border: 1px solid #bfcfc5; border-radius: 8px; background: #edf4ef; color: #315040; font-size: 13px; font-weight: 680; line-height: 1.55; }
.document-security-scan, .document-text-extraction { grid-column: 1 / -1; min-height: 38px; justify-self: start; padding: 0 12px; border: 1px solid #526b5e; border-radius: 8px; background: transparent; color: #3c5849; font: inherit; font-size: 13px; font-weight: 770; cursor: pointer; }
.document-text-extraction { border-color: #2e5442; background: #2e5442; color: #fff; box-shadow: 0 7px 20px rgba(46,84,66,.13); }
.document-security-scan:disabled, .document-text-extraction:disabled { border-color: #c5cbc7; background: transparent; color: #8a928d; box-shadow: none; cursor: wait; }
.document-intake-boundary { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 22px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #d4d0c8; }
.document-intake-boundary span { color: #7d817d; font-size: 12px; font-weight: 790; letter-spacing: .08em; text-transform: uppercase; }
.document-intake-boundary b { max-width: 790px; color: #55615a; font-size: 13px; font-weight: 590; line-height: 1.5; text-align: right; }
.fact-intake-panel { position: relative; margin-top: 18px; padding: 32px; overflow: hidden; border: 1px solid #25352e; border-radius: 18px; background: linear-gradient(145deg, #1e2b25 0%, #273830 100%); color: #f5f3ed; box-shadow: 0 28px 72px rgba(18, 29, 24, .15); }
.fact-intake-panel::after { position: absolute; top: -155px; right: -90px; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.fact-intake-head { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 35px; align-items: start; }
.fact-intake-head .eyebrow { color: #b8c5be; }
.fact-intake-head h2 { max-width: 790px; margin: 7px 0 10px; font-size: clamp(25px, 2.5vw, 35px); font-weight: 610; line-height: 1.08; letter-spacing: -.045em; }
.fact-intake-head > div:first-child > p:last-child { max-width: 780px; margin: 0; color: #c5cec9; font-size: 12px; line-height: 1.65; }
.intake-counter { display: grid; min-height: 94px; padding: 16px; align-content: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.065); text-align: right; }
.intake-counter strong { font-size: 31px; font-weight: 630; line-height: 1; letter-spacing: -.055em; }
.intake-counter span { margin-top: 7px; color: #b8c5be; font-size: 10px; line-height: 1.35; }
.fact-intake-flow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.04); }
.fact-intake-flow > div { display: flex; min-height: 74px; gap: 11px; align-items: center; padding: 14px 17px; border-right: 1px solid rgba(255,255,255,.11); }
.fact-intake-flow > div:last-child { border-right: 0; }
.fact-intake-flow i { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #cbd4cf; font-size: 9px; font-style: normal; font-weight: 800; }
.fact-intake-flow span { display: grid; gap: 3px; }
.fact-intake-flow b { font-size: 11px; }
.fact-intake-flow small { color: #9fb0a7; font-size: 9px; line-height: 1.35; }
.fact-intake-list { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 13px; }
.fact-intake-card { padding: 24px; border: 1px solid #d7ddd9; border-radius: 14px; background: #f8f8f4; color: var(--ink); box-shadow: 0 15px 34px rgba(8,16,12,.13); }
.intake-register { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; align-items: center; }
.intake-register span { color: #8b6534; font-size: 10px; font-weight: 790; letter-spacing: .055em; text-transform: uppercase; }
.intake-register small { color: var(--muted); font-size: 10px; }
.fact-intake-card h3 { max-width: 790px; margin: 19px 0 9px; font-size: 21px; font-weight: 630; line-height: 1.3; letter-spacing: -.025em; }
.fact-intake-card > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.fact-intake-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .65fr); gap: 13px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #dde2df; }
.fact-intake-form label { display: grid; gap: 7px; }
.fact-intake-form label > span { color: #3b4641; font-size: 10px; font-weight: 760; }
.fact-intake-form textarea, .fact-intake-form select, .fact-intake-form input { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid #cbd3ce; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font: inherit; font-size: 11px; line-height: 1.5; resize: vertical; }
.fact-intake-form textarea:focus, .fact-intake-form select:focus, .fact-intake-form input:focus { border-color: #688374; box-shadow: 0 0 0 3px rgba(63,107,89,.1); }
.intake-source-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 180px; gap: 13px; }
.intake-source-fields[hidden] { display: none; }
.fact-intake-form > button { justify-self: start; min-height: 42px; padding: 0 17px; border: 1px solid #293d33; border-radius: 9px; background: #293d33; color: #fff; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.fact-intake-form > button:disabled { cursor: not-allowed; opacity: .56; }
.fact-intake-form > small { align-self: center; color: var(--muted); font-size: 9px; line-height: 1.45; }
.fact-intake-card.in-review { border-color: #c5d0ca; background: #f0f4f1; }
.fact-intake-card.in-review .intake-register span { color: var(--verified); }
.fact-intake-card.accepted { border-color: #9daf9f; background: linear-gradient(145deg, #f1f5f0, #fbfcf9); }
.fact-intake-card.accepted .intake-register span { color: #345e47; }
.fact-intake-card.returned { border-color: #d3b992; background: #faf6ee; }
.fact-intake-card.returned .intake-register span { color: #805c2b; }
.fact-intake-card.prepared { border-color: #718d7d; background: linear-gradient(145deg, #edf3ef, #fbfcfa); box-shadow: 0 18px 42px rgba(24,57,42,.11); }
.fact-intake-card.prepared .intake-register span { color: #244e3a; }
.intake-submitted { display: grid; grid-template-columns: 1fr auto; gap: 20px; margin-top: 19px; padding: 16px 0 0; border-top: 1px solid #d9e0dc; }
.intake-submitted b { font-size: 12px; line-height: 1.45; }
.intake-submitted span { color: var(--muted); font-size: 10px; }
.intake-review-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 9px 20px; margin-top: 18px; padding: 19px; border: 1px solid #cfd8d3; border-radius: 11px; background: #fff; }
.intake-review-box > b { align-self: end; font-size: 12px; }
.intake-review-box > p { grid-column: 1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.intake-review-box > textarea { grid-column: 2; grid-row: 1 / span 2; width: 100%; min-height: 76px; padding: 11px 12px; border: 1px solid #cbd3ce; border-radius: 9px; outline: 0; background: #fbfcfa; color: var(--ink); font: inherit; font-size: 10px; line-height: 1.5; resize: vertical; }
.intake-review-box > textarea:focus { border-color: #688374; box-shadow: 0 0 0 3px rgba(63,107,89,.1); }
.intake-review-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.intake-review-actions button { min-height: 38px; padding: 0 14px; border: 1px solid #bfcac4; border-radius: 8px; background: #fff; color: #38443e; font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.intake-review-actions button.primary { border-color: #31533f; background: #31533f; color: #fff; }
.intake-review-actions button:disabled { cursor: not-allowed; opacity: .55; }
.intake-review-box > small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.45; }
.intake-decision { display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: 18px; margin-top: 18px; padding: 16px 18px; border-left: 3px solid #547260; background: rgba(255,255,255,.62); }
.fact-intake-card.returned .intake-decision { border-left-color: #a77b3f; }
.intake-decision b { font-size: 10px; }
.intake-decision span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.intake-prepare-action { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 13px; padding: 17px 18px; border: 1px solid #bdcbc2; border-radius: 11px; background: rgba(255,255,255,.74); }
.intake-prepare-action span { max-width: 620px; color: #59665f; font-size: 10px; line-height: 1.55; }
.intake-prepare-action button { min-height: 40px; flex: 0 0 auto; padding: 0 16px; border: 1px solid #284b38; border-radius: 9px; background: #284b38; color: #fff; font: inherit; font-size: 10px; font-weight: 770; cursor: pointer; }
.intake-prepare-action button:disabled { cursor: not-allowed; opacity: .55; }
.intake-prepared-candidate { display: grid; gap: 13px; margin-top: 18px; padding: 20px; border: 1px solid #b8c9be; border-radius: 12px; background: rgba(255,255,255,.8); }
.intake-candidate-head { display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.intake-candidate-head b { color: #28513c; font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.intake-candidate-head code { overflow: hidden; color: #69766e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-overflow: ellipsis; }
.intake-prepared-candidate > p { margin: 0; color: #26332c; font-size: 13px; font-weight: 620; line-height: 1.55; }
.intake-candidate-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #dce3de; }
.intake-candidate-details span { min-width: 0; padding: 12px 14px; overflow: hidden; border-right: 1px solid #dce3de; color: #58655e; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.intake-candidate-details span:first-child { padding-left: 0; }
.intake-candidate-details span:last-child { border-right: 0; }
.intake-prepared-candidate > small { color: #647169; font-size: 9px; line-height: 1.45; }
.intake-activation-action { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); gap: 24px; align-items: end; margin-top: 12px; padding: 20px; border: 1px solid #334c40; border-radius: 12px; background: linear-gradient(135deg, #20342a, #2b4437); color: #f3f4ef; box-shadow: 0 15px 34px rgba(19,45,32,.12); }
.intake-activation-action > div { display: grid; gap: 7px; }
.intake-activation-action > div b { font-size: 12px; letter-spacing: -.01em; }
.intake-activation-action > div span { max-width: 640px; color: #c5d0ca; font-size: 10px; line-height: 1.55; }
.intake-activation-action label { display: grid; grid-template-columns: 1fr auto; gap: 7px 9px; align-items: center; }
.intake-activation-action label > span { grid-column: 1 / -1; color: #b9c6bf; font-size: 9px; font-weight: 720; }
.intake-activation-action input { min-height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; outline: 0; background: rgba(255,255,255,.08); color: #fff; color-scheme: dark; font: inherit; font-size: 10px; }
.intake-activation-action input:focus { border-color: #a7bcaf; box-shadow: 0 0 0 3px rgba(183,207,193,.12); }
.intake-activation-action button { min-height: 40px; padding: 0 14px; border: 1px solid #dbe4de; border-radius: 8px; background: #eef2ee; color: #20342a; font: inherit; font-size: 10px; font-weight: 790; cursor: pointer; }
.intake-activation-action button:disabled { cursor: not-allowed; opacity: .55; }
.fact-intake-card.activated { border-color: #8ca797; background: linear-gradient(145deg, #edf4ef, #fbfcfa); box-shadow: 0 20px 46px rgba(25,62,44,.12); }
.fact-intake-card.activated .intake-register span { color: #244e3a; }
.intake-activated-version { display: grid; gap: 15px; margin-top: 18px; padding: 21px; border: 1px solid #a9bdb1; border-radius: 12px; background: rgba(255,255,255,.82); }
.intake-activated-head { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; }
.intake-activated-head span { color: #28513c; font-size: 9px; font-weight: 810; letter-spacing: .07em; text-transform: uppercase; }
.intake-activated-head b { color: #45564d; font-size: 10px; }
.intake-activated-version > p { margin: 0; color: #223129; font-size: 14px; font-weight: 620; line-height: 1.55; }
.intake-version-boundaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #d9e2dc; }
.intake-version-boundaries span { padding: 12px 13px; border-right: 1px solid #d9e2dc; color: #66736c; font-size: 9px; line-height: 1.45; }
.intake-version-boundaries span:first-child { padding-left: 0; }
.intake-version-boundaries span:last-child { border-right: 0; }
.intake-activated-version > small { color: #6b7770; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.fact-intake-boundary { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-top: 16px; padding: 0 3px; }
.fact-intake-boundary span { color: #93a59b; font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.fact-intake-boundary b { color: #d2d9d5; font-size: 10px; font-weight: 560; text-align: right; }
.fact-candidate-panel { margin-top: 30px; padding: 28px; border: 1px solid #d8ddda; border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #f8f9f7 100%); box-shadow: 0 15px 44px rgba(31, 42, 37, .045); }
.fact-candidate-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.fact-candidate-head h2 { margin: 7px 0 9px; font-family: var(--font-ui); font-size: clamp(25px, 2.5vw, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.fact-candidate-head > div > p:last-child { max-width: 700px; margin: 0; color: #59635e; font-size: 12px; line-height: 1.65; }
.fact-candidate-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 18px; border-block: 1px solid var(--line); }
.fact-candidate-summary article { display: grid; min-height: 88px; padding: 16px 18px; align-content: center; border-right: 1px solid var(--line); }
.fact-candidate-summary article:first-child { padding-left: 0; }
.fact-candidate-summary article:last-child { border-right: 0; }
.fact-candidate-summary span, .fact-candidate-summary small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.fact-candidate-summary strong { margin: 2px 0; font-size: 24px; font-weight: 680; letter-spacing: -.04em; }
.fact-candidate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact-candidate-card { display: grid; min-height: 330px; padding: 21px; border: 1px solid #dfe3e0; border-radius: 14px; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 24px rgba(31, 42, 37, .035); }
.candidate-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.candidate-card-top span { padding: 5px 8px; border-radius: 999px; background: var(--forest-soft); color: var(--forest-dark); font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.candidate-card-top small { color: var(--muted); font-size: 9px; }
.fact-candidate-card h3 { margin: 22px 0 14px; font-family: var(--font-ui); font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.fact-candidate-card > p { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; margin: 0 0 19px; color: var(--muted); font-size: 10px; }
.fact-candidate-card > p a { max-width: 55%; overflow: hidden; color: var(--forest-dark); font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.fact-candidate-card > p span::before { content: "·"; margin-right: 10px; color: #9da5a0; }
.candidate-requirement { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.candidate-requirement i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--forest-soft); color: var(--forest-dark); font-size: 11px; font-style: normal; font-weight: 800; }
.primary-source .candidate-requirement i { background: var(--clay-soft); color: #795a2d; }
.candidate-requirement span { display: grid; gap: 3px; }
.candidate-requirement b { font-size: 10px; font-weight: 720; line-height: 1.35; }
.candidate-requirement small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.candidate-review { display: grid; gap: 12px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.candidate-review > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.candidate-source-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(126px, .7fr); gap: 9px; }
.candidate-source-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.candidate-source-fields input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #cfd6d1; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; text-transform: none; }
.candidate-source-fields input:focus { border-color: var(--forest); outline: 3px solid rgba(31, 82, 62, .1); }
.candidate-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.candidate-review-actions button { min-height: 36px; padding: 0 13px; border-radius: 9px; font: inherit; font-size: 9px; font-weight: 760; cursor: pointer; }
.candidate-review-actions button:disabled { cursor: not-allowed; opacity: .5; }
.candidate-accept { border: 1px solid var(--forest-dark); background: var(--forest-dark); color: #fff; }
.candidate-reject { border: 1px solid #cfd5d1; background: transparent; color: #5d6762; }
.fact-candidate-more { margin-top: 14px; }
.fact-promotion-panel { position: relative; margin-top: 18px; padding: 30px; overflow: hidden; border: 1px solid #cfd7d2; border-radius: 18px; background: #f0f3f1; box-shadow: 0 18px 48px rgba(30, 42, 36, .05); }
.fact-promotion-panel::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--verified); content: ""; }
.fact-promotion-head { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 34px; align-items: start; }
.fact-promotion-head h2 { max-width: 680px; margin: 7px 0 9px; font-family: var(--font-ui); font-size: clamp(25px, 2.5vw, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.fact-promotion-head > div:first-child > p:last-child { max-width: 710px; margin: 0; color: #59635e; font-size: 12px; line-height: 1.65; }
.promotion-counter { display: grid; min-height: 92px; padding: 16px; align-content: center; border: 1px solid #d3dbd6; border-radius: 12px; background: rgba(255, 255, 255, .72); text-align: right; }
.promotion-counter strong { font-size: 30px; font-weight: 620; line-height: 1; letter-spacing: -.05em; }
.promotion-counter span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.fact-promotion-list { display: grid; gap: 12px; margin-top: 24px; }
.fact-promotion-card { padding: 22px; border: 1px solid #d5ddd8; border-radius: 14px; background: rgba(255, 255, 255, .9); }
.promotion-register { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; align-items: center; }
.promotion-register span { padding: 5px 8px; border-radius: 999px; background: var(--verified-soft); color: var(--verified); font-size: 10px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.promotion-register small { color: var(--muted); font-size: 10px; }
.fact-promotion-card h3 { max-width: 760px; margin: 20px 0 18px; font-family: var(--font-ui); font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.fact-promotion-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.fact-promotion-card dl div { display: grid; min-height: 69px; padding: 14px 18px; align-content: center; border-right: 1px solid var(--line); }
.fact-promotion-card dl div:first-child { padding-left: 0; }
.fact-promotion-card dl div:last-child { border-right: 0; }
.fact-promotion-card dt { color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.fact-promotion-card dd { margin: 4px 0 0; font-size: 11px; font-weight: 680; line-height: 1.4; }
.promotion-action { display: flex; gap: 10px; justify-content: flex-end; align-items: end; margin-top: 17px; }
.promotion-action label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.promotion-action input { width: 160px; height: 38px; padding: 0 10px; border: 1px solid #cbd3ce; border-radius: 9px; background: #fff; color: var(--ink); font-size: 11px; }
.promotion-action button { min-height: 38px; padding: 0 15px; border: 1px solid var(--forest-dark); border-radius: 9px; background: var(--forest-dark); color: #fff; font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.promotion-action button:disabled { cursor: not-allowed; opacity: .5; }
.promotion-boundary { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.fact-allowance-panel { position: relative; margin-top: 18px; padding: 30px; overflow: hidden; border: 1px solid #c8d0cb; border-radius: 18px; background: #e8ece9; box-shadow: 0 20px 54px rgba(24, 36, 30, .06); }
.fact-allowance-panel::before { position: absolute; inset: 0 0 auto; height: 3px; background: #263d33; content: ""; }
.fact-allowance-head { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 34px; align-items: start; }
.fact-allowance-head h2 { max-width: 720px; margin: 7px 0 9px; font-size: clamp(24px, 2.4vw, 33px); font-weight: 620; line-height: 1.08; letter-spacing: -.04em; }
.fact-allowance-head > div:first-child > p:last-child { max-width: 730px; margin: 0; color: #53605a; font-size: 12px; line-height: 1.65; }
.allowance-counter { display: grid; min-height: 92px; padding: 16px; align-content: center; border: 1px solid #cbd3ce; border-radius: 12px; background: rgba(255, 255, 255, .7); text-align: right; }
.allowance-counter strong { font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -.05em; }
.allowance-counter span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.allowance-scope { display: grid; grid-template-columns: 120px minmax(160px, max-content) 1fr; gap: 12px 18px; align-items: center; margin-top: 22px; padding: 13px 15px; border: 1px solid #cbd3ce; border-radius: 11px; background: rgba(255, 255, 255, .55); }
.allowance-scope span { color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.allowance-scope b { font-size: 12px; }
.allowance-scope small { color: var(--muted); font-size: 10px; text-align: right; }
.fact-allowance-list { display: grid; gap: 12px; margin-top: 12px; }
.fact-allowance-card { padding: 22px; border: 1px solid #cdd5d0; border-radius: 14px; background: rgba(255, 255, 255, .92); }
.allowance-register { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; align-items: center; }
.allowance-register span { color: var(--forest-dark); font-size: 10px; font-weight: 780; letter-spacing: .045em; text-transform: uppercase; }
.allowance-register small { color: var(--muted); font-size: 10px; }
.fact-allowance-card h3 { max-width: 770px; margin: 19px 0 18px; font-size: 19px; font-weight: 620; line-height: 1.35; letter-spacing: -.02em; }
.allowance-boundaries { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.allowance-boundaries > div { display: flex; min-height: 76px; gap: 11px; align-items: center; padding: 14px 18px; border-right: 1px solid var(--line); }
.allowance-boundaries > div:first-child { padding-left: 0; }
.allowance-boundaries > div:last-child { border-right: 0; }
.allowance-boundaries i { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 1px solid #bdc8c1; border-radius: 50%; color: #53615a; font-size: 9px; font-style: normal; font-weight: 760; }
.allowance-boundaries span { display: grid; gap: 3px; }
.allowance-boundaries b { font-size: 11px; line-height: 1.3; }
.allowance-boundaries small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.allowance-action { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-top: 17px; }
.allowance-action p { max-width: 520px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.allowance-action button { min-height: 39px; padding: 0 16px; border: 1px solid var(--forest-dark); border-radius: 9px; background: var(--forest-dark); color: #fff; font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.allowance-action button:disabled { cursor: not-allowed; opacity: .55; }
.fact-allowance-card.granted .allowance-boundaries > div:first-child i { border-color: var(--verified); background: var(--verified); color: #fff; }
.fact-allowance-card.granted .allowance-action button { border-color: #c7d0ca; background: #eef1ef; color: #526059; }
.fact-allowance-card.expired { opacity: .72; }
.fact-visibility-panel { position: relative; margin-top: 18px; padding: 31px; overflow: hidden; border: 1px solid #d5d1c7; border-radius: 18px; background: #f5f3ed; box-shadow: 0 22px 58px rgba(38, 35, 29, .06); }
.fact-visibility-panel::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #746a56; content: ""; }
.fact-visibility-head { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 34px; align-items: start; }
.fact-visibility-head h2 { max-width: 760px; margin: 7px 0 9px; font-size: clamp(24px, 2.4vw, 33px); font-weight: 630; line-height: 1.08; letter-spacing: -.04em; }
.fact-visibility-head > div:first-child > p:last-child { max-width: 760px; margin: 0; color: #625f57; font-size: 12px; line-height: 1.65; }
.visibility-counter { display: grid; min-height: 92px; padding: 16px; align-content: center; border: 1px solid #d6d1c6; border-radius: 12px; background: rgba(255, 255, 255, .72); text-align: right; }
.visibility-counter strong { font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -.05em; }
.visibility-counter span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.visibility-principle { display: grid; grid-template-columns: 120px minmax(240px, max-content) 1fr; gap: 12px 18px; align-items: center; margin-top: 22px; padding: 13px 15px; border: 1px solid #d6d1c6; border-radius: 11px; background: rgba(255, 255, 255, .52); }
.visibility-principle span { color: #777164; font-size: 10px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.visibility-principle b { font-size: 12px; }
.visibility-principle small { color: #777164; font-size: 10px; text-align: right; }
.fact-visibility-list { display: grid; gap: 12px; margin-top: 12px; }
.fact-visibility-card { padding: 22px; border: 1px solid #d8d3c8; border-radius: 14px; background: rgba(255, 255, 255, .94); }
.visibility-register { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; align-items: center; }
.visibility-register span { color: #544e42; font-size: 10px; font-weight: 780; letter-spacing: .045em; text-transform: uppercase; }
.visibility-register small { color: var(--muted); font-size: 10px; }
.fact-visibility-card h3 { max-width: 790px; margin: 19px 0 18px; font-size: 19px; font-weight: 620; line-height: 1.35; letter-spacing: -.02em; }
.visibility-boundaries { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #e0ddd5; }
.visibility-boundaries > div { display: grid; min-height: 77px; padding: 14px 18px; align-content: center; border-right: 1px solid #e0ddd5; }
.visibility-boundaries > div:first-child { padding-left: 0; }
.visibility-boundaries > div:last-child { border-right: 0; }
.visibility-boundaries span { color: #8a8272; font-size: 9px; font-weight: 780; letter-spacing: .08em; }
.visibility-boundaries b { margin-top: 5px; font-size: 11px; line-height: 1.3; }
.visibility-boundaries small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.visibility-actions { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 17px; }
.visibility-actions > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.visibility-actions > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.visibility-actions button { min-height: 39px; padding: 0 15px; border-radius: 9px; font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.visibility-private { border: 1px solid #cbc6bb; background: #fff; color: #514d44; }
.visibility-public { border: 1px solid #363e39; background: #363e39; color: #fff; }
.visibility-actions button:disabled { cursor: not-allowed; opacity: .55; }
.fact-visibility-card.classified .visibility-boundaries > div:first-child span { color: var(--verified); }
.fact-visibility-card.classified .visibility-actions button { border-color: #d2cec5; background: #efede8; color: #686258; }
.fact-visibility-card.expired { opacity: .72; }
.fact-artifact-permission-panel { position: relative; margin-top: 18px; padding: 32px; overflow: hidden; border: 1px solid #24342d; border-radius: 18px; background: linear-gradient(135deg, #1d2b25 0%, #273a31 100%); color: #f6f5ef; box-shadow: 0 28px 70px rgba(20, 31, 26, .16); }
.fact-artifact-permission-panel::after { position: absolute; width: 260px; height: 260px; top: -160px; right: -80px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; content: ""; }
.artifact-permission-head { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 34px; align-items: start; }
.artifact-permission-head .eyebrow { color: #b9c5be; }
.artifact-permission-head h2 { max-width: 780px; margin: 7px 0 9px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 610; line-height: 1.08; letter-spacing: -.04em; }
.artifact-permission-head > div:first-child > p:last-child { max-width: 790px; margin: 0; color: #c5cec9; font-size: 12px; line-height: 1.65; }
.artifact-permission-counter { display: grid; min-height: 92px; padding: 16px; align-content: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .07); text-align: right; }
.artifact-permission-counter strong { font-size: 30px; font-weight: 630; line-height: 1; letter-spacing: -.05em; }
.artifact-permission-counter span { margin-top: 6px; color: #b9c5be; font-size: 10px; line-height: 1.35; }
.artifact-permission-scope { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1fr 1.35fr; margin-top: 23px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; background: rgba(255, 255, 255, .045); }
.artifact-permission-scope > div { display: grid; min-height: 68px; padding: 13px 16px; align-content: center; border-right: 1px solid rgba(255, 255, 255, .11); }
.artifact-permission-scope > div:last-child { border-right: 0; }
.artifact-permission-scope span { color: #9daea5; font-size: 9px; font-weight: 780; letter-spacing: .075em; text-transform: uppercase; }
.artifact-permission-scope b { margin-top: 6px; font-size: 11px; font-weight: 650; }
.fact-artifact-permission-list { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 12px; }
.fact-artifact-permission-card { padding: 23px; border: 1px solid #d8ddd9; border-radius: 14px; background: #f7f7f3; color: var(--ink); box-shadow: 0 14px 32px rgba(8, 16, 12, .12); }
.artifact-permission-register { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; align-items: center; }
.artifact-permission-register span { color: var(--forest-dark); font-size: 10px; font-weight: 790; letter-spacing: .05em; text-transform: uppercase; }
.artifact-permission-register small { color: var(--muted); font-size: 10px; }
.fact-artifact-permission-card h3 { max-width: 800px; margin: 19px 0 18px; font-size: 20px; font-weight: 620; line-height: 1.35; letter-spacing: -.02em; }
.artifact-permission-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #dde2df; }
.artifact-permission-steps > div { display: flex; min-height: 78px; gap: 11px; align-items: center; padding: 14px 18px; border-right: 1px solid #dde2df; }
.artifact-permission-steps > div:first-child { padding-left: 0; }
.artifact-permission-steps > div:last-child { border-right: 0; }
.artifact-permission-steps i { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid #c2cbc5; border-radius: 50%; color: #68766e; font-size: 9px; font-style: normal; font-weight: 800; }
.artifact-permission-steps .passed i { border-color: var(--verified); background: var(--verified); color: #fff; }
.artifact-permission-steps .current i { border-color: var(--forest-dark); color: var(--forest-dark); }
.artifact-permission-steps span { display: grid; gap: 3px; }
.artifact-permission-steps b { font-size: 11px; line-height: 1.3; }
.artifact-permission-steps small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.artifact-permission-action { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 18px; }
.artifact-permission-action p { max-width: 570px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.artifact-permission-action button { min-height: 41px; padding: 0 17px; border: 1px solid #283b32; border-radius: 9px; background: #283b32; color: #fff; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.artifact-permission-action button:disabled { cursor: not-allowed; opacity: .56; }
.fact-artifact-permission-card.permitted .artifact-permission-steps > div:last-child i { border-color: var(--verified); background: var(--verified); color: #fff; }
.fact-artifact-permission-card.permitted .artifact-permission-action button { border-color: #d1d7d3; background: #e9eeeb; color: #4e5b54; }
.fact-artifact-permission-card.needs_analysis_allowance .artifact-permission-steps > div:first-child i, .fact-artifact-permission-card.needs_public_visibility .artifact-permission-steps > div:nth-child(2) i { border-color: #b68c55; color: #8b6534; }
.fact-artifact-permission-card.expired { opacity: .72; }
.artifact-permission-boundary { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-top: 15px; padding: 0 3px; }
.artifact-permission-boundary span { color: #92a59a; font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.artifact-permission-boundary b { color: #d3dad6; font-size: 10px; font-weight: 560; text-align: right; }
.preview-build-panel { margin-top: 18px; padding: 32px; border: 1px solid #d7d5ce; border-radius: 18px; background: #f8f7f2; box-shadow: 0 18px 50px rgba(25, 35, 31, .08); }
.preview-build-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .62fr); gap: 8px 42px; align-items: end; }
.preview-build-copy .eyebrow { grid-column: 1 / -1; color: #7e7464; }
.preview-build-copy h2 { margin: 0; font-size: clamp(25px, 2.5vw, 34px); font-weight: 610; line-height: 1.08; letter-spacing: -.04em; }
.preview-build-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.preview-build-ledger { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; margin: 25px 0 0; border-block: 1px solid #d9d7d0; }
.preview-build-ledger > div { display: grid; min-height: 76px; padding: 15px 19px; align-content: center; border-right: 1px solid #d9d7d0; }
.preview-build-ledger > div:first-child { padding-left: 0; }
.preview-build-ledger > div:last-child { border-right: 0; }
.preview-build-ledger dt { color: #827a6d; font-size: 9px; font-weight: 780; letter-spacing: .075em; text-transform: uppercase; }
.preview-build-ledger dd { margin: 7px 0 0; font-size: 11px; font-weight: 660; line-height: 1.35; }
.preview-build-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-top: 20px; }
.preview-build-action > div { display: grid; gap: 5px; }
.preview-build-action span { font-size: 12px; font-weight: 720; }
.preview-build-action small { max-width: 740px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.preview-build-action button { min-height: 43px; padding: 0 19px; border: 1px solid #24372e; border-radius: 9px; background: #24372e; color: #fff; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.preview-build-action button:disabled { border-color: #d2d0c9; background: #e8e6df; color: #89857c; cursor: not-allowed; }
.preview-build-boundary { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-top: 19px; padding-top: 14px; border-top: 1px solid #e1dfd8; }
.preview-build-boundary span { color: #8a8275; font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.preview-build-boundary b { color: #5f5a51; font-size: 10px; font-weight: 580; text-align: right; }
.demand-content-panel { position: relative; margin-top: 18px; padding: 34px; overflow: hidden; border: 1px solid #cfd7d2; border-radius: 18px; background: linear-gradient(145deg, #fbfcfa 0%, #f1f4f1 100%); box-shadow: 0 24px 64px rgba(24, 35, 30, .09); }
.demand-content-panel::before { position: absolute; width: 330px; height: 330px; right: -190px; top: -210px; border: 1px solid rgba(43, 69, 57, .09); border-radius: 50%; content: ""; }
.demand-content-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.demand-content-head h2 { max-width: 850px; margin: 7px 0 10px; font-size: clamp(26px, 2.55vw, 35px); font-weight: 610; line-height: 1.08; letter-spacing: -.042em; }
.demand-content-head > div:first-child > p:last-child { max-width: 830px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.demand-content-state { display: flex; min-width: 142px; gap: 9px; align-items: center; padding: 11px 13px; border: 1px solid #d4dad6; border-radius: 999px; background: rgba(255,255,255,.72); color: #59645f; font-size: 10px; font-weight: 750; }
.demand-content-state i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a5814f; box-shadow: 0 0 0 4px rgba(165,129,79,.1); }
.demand-content-state[data-demand-content-state="ready"] i { background: var(--verified); box-shadow: 0 0 0 4px rgba(63,107,89,.11); }
.demand-evidence-note { position: relative; display: grid; grid-template-columns: 130px minmax(190px, .65fr) minmax(0, 1.3fr); gap: 20px; align-items: center; margin-top: 25px; padding: 17px 19px; border: 1px solid #ded8cb; border-radius: 12px; background: #f7f2e8; }
.demand-evidence-note span { color: #8b7250; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demand-evidence-note strong { font-size: 12px; line-height: 1.45; }
.demand-evidence-note p { margin: 0; color: #746b5e; font-size: 10px; line-height: 1.55; }
.demand-content-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.demand-map-form, .content-plan-form { display: grid; gap: 14px; padding: 25px; border: 1px solid #d9dedb; border-radius: 14px; background: rgba(255,255,255,.88); box-shadow: 0 12px 28px rgba(25, 36, 31, .045); }
.demand-stage-title { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 11px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid #e2e5e3; }
.demand-stage-title > span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #bfcac4; border-radius: 50%; color: #40564b; font-size: 10px; font-weight: 800; }
.demand-stage-title > div { display: grid; gap: 2px; }
.demand-stage-title b { font-size: 13px; }
.demand-stage-title small { color: var(--muted); font-size: 10px; }
.demand-stage-title em { padding: 5px 8px; border-radius: 999px; background: #eef0ed; color: #69716d; font-size: 9px; font-style: normal; font-weight: 760; }
.demand-stage-title em.ready { background: var(--verified-soft); color: var(--verified); }
.demand-map-form > label, .content-plan-form > label, .demand-map-context label { display: grid; gap: 7px; }
.demand-map-form label > span, .content-plan-form label > span, .demand-map-context span { color: #3b4641; font-size: 10px; font-weight: 760; }
.demand-map-form label > small, .content-plan-form label > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.demand-map-form input, .demand-map-form textarea, .demand-map-form select, .content-plan-form input, .content-plan-form textarea { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid #cfd6d2; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font-size: 11px; line-height: 1.5; resize: vertical; transition: border-color .16s ease, box-shadow .16s ease; }
.demand-map-form input:focus, .demand-map-form textarea:focus, .demand-map-form select:focus, .content-plan-form input:focus, .content-plan-form textarea:focus { border-color: #6f897b; box-shadow: 0 0 0 3px rgba(63,107,89,.1); }
.demand-map-context { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }
.demand-map-context > div { display: grid; gap: 7px; align-content: start; }
.demand-map-context > div b { min-height: 42px; padding: 12px; border: 1px solid #d8dcd9; border-radius: 9px; background: #f4f5f3; font-size: 10px; }
.demand-map-form > button, .content-plan-form > button { min-height: 44px; border: 1px solid #293d33; border-radius: 9px; background: #293d33; color: #fff; font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; }
.demand-map-form > button:disabled, .content-plan-form > button:disabled { border-color: #d2d7d4; background: #e8ebe9; color: #858c88; cursor: not-allowed; }
.form-boundary { min-height: 31px; margin: -3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.demand-content-boundary { position: relative; display: flex; gap: 20px; justify-content: space-between; margin-top: 18px; padding-top: 15px; border-top: 1px solid #d9dedb; }
.demand-content-boundary span { color: #728078; font-size: 9px; font-weight: 790; letter-spacing: .08em; text-transform: uppercase; }
.demand-content-boundary b { color: #4e5d56; font-size: 10px; font-weight: 600; text-align: right; }
.preview-meta { margin: 0 0 18px; padding: 15px 0; border-block: 1px solid var(--line); }
.preview-meta > div:first-child { display: flex; gap: 8px; justify-content: space-between; align-items: start; margin-bottom: 10px; }
.preview-meta h3 { margin: 0; font-size: 11px; font-weight: 770; }
.preview-meta > div:first-child span { color: var(--verified); font-size: 9px; font-weight: 730; text-align: right; }
.preview-meta dl { display: grid; gap: 9px; margin: 0; }
.preview-meta dl > div { display: grid; gap: 3px; }
.preview-meta dt { color: var(--muted); font-size: 8px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.preview-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 600; line-height: 1.42; }
.empty-state { margin: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-inline { grid-column: 1 / -1; min-height: 90px !important; color: var(--muted); font-size: 12px; }

.usage-head { align-items: center; }
.period-control {
  display: grid;
  min-width: 190px;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.period-control span, .period-control small { color: var(--muted); font-size: 10px; }
.period-control span { font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.period-control strong { font-size: 13px; }
.usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.usage-summary-grid article {
  display: grid;
  align-content: center;
  min-height: 126px;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.usage-summary-grid article:last-child { border-right: 0; }
.usage-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 680; }
.usage-summary-grid strong { margin: 7px 0 5px; font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -.04em; }
.usage-summary-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.usage-summary-grid small b { color: var(--verified); }
.usage-summary-grid .remaining-card { background: #f7f9fa; }
.usage-summary-grid .remaining-card strong { color: var(--forest-dark); }
.measurement-plan {
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid #cfd7d2;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0, rgba(52, 86, 70, .08), transparent 32%),
    linear-gradient(145deg, #fbfcfb 0%, #f4f7f5 100%);
  box-shadow: 0 18px 44px rgba(40, 55, 47, .055);
}
.measurement-plan-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.measurement-plan-head h2 { max-width: 720px; margin: 0; font-size: clamp(22px, 2.7vw, 31px); font-weight: 640; letter-spacing: -.045em; line-height: 1.08; }
.measurement-plan-head p:not(.card-kicker) { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.58; }
.measurement-lock { display: inline-flex; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid #ddcfc5; border-radius: 999px; background: #f7f1ed; color: #76513e; font-size: 11px; font-weight: 760; white-space: nowrap; }
.measurement-lock i { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(151, 98, 66, .1); }
.measurement-matrix { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(150px, 1.15fr); gap: 12px; align-items: stretch; margin-top: 26px; }
.measurement-matrix article { display: grid; align-content: center; min-height: 105px; padding: 16px 18px; border: 1px solid #d8ded9; border-radius: 13px; background: rgba(255, 255, 255, .76); }
.measurement-matrix > b { display: grid; place-items: center; color: #87938c; font-size: 17px; font-weight: 520; }
.measurement-matrix span, .measurement-result-grid span { color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.measurement-matrix strong { margin: 5px 0 2px; font-size: 28px; font-weight: 640; letter-spacing: -.045em; }
.measurement-matrix small, .measurement-result-grid small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.measurement-matrix .measurement-total { border-color: #b8c9bf; background: #eaf1ed; }
.measurement-matrix .measurement-total strong { color: var(--forest-dark); }
.measurement-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-block: 1px solid #d7ddd9; }
.measurement-result-grid > div { display: grid; gap: 5px; min-height: 104px; align-content: center; padding: 17px 20px; border-right: 1px solid #d7ddd9; }
.measurement-result-grid > div:last-child { border-right: 0; }
.measurement-result-grid strong { font-size: 14px; font-weight: 680; }
.measurement-boundary { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding-top: 17px; }
.measurement-boundary span { display: flex; gap: 8px; align-items: center; color: var(--forest-dark); font-size: 11px; font-weight: 760; }
.measurement-boundary span i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 10px; font-style: normal; }
.measurement-boundary b { max-width: 590px; color: #5e6b64; font-size: 11px; font-weight: 560; line-height: 1.5; text-align: right; }
.usage-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr); gap: 20px; align-items: start; }
.budget-card, .organization-budget, .budget-protection, .technical-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.budget-card { padding: clamp(22px, 3vw, 32px); }
.budget-card-head { display: flex; gap: 18px; align-items: start; justify-content: space-between; }
.card-kicker { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.budget-card h2, .organization-budget h2 { margin: 0; font-size: 21px; font-weight: 680; letter-spacing: -.03em; }
.budget-timezone { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; gap: 7px; align-items: center; padding: 7px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; }
.status-configured { background: var(--verified-soft); color: var(--verified); }
.status-configured i { background: var(--verified); }
.budget-figure { display: grid; gap: 5px; margin: 30px 0 16px; }
.budget-figure strong { font-size: clamp(32px, 4vw, 46px); font-weight: 650; letter-spacing: -.055em; }
.budget-figure span { color: var(--muted); font-size: 12px; }
.budget-track { display: flex; height: 9px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.budget-track i { display: block; height: 100%; }
.budget-spent { width: 61.4%; background: var(--forest); }
.budget-reserved { width: 4.2%; background: var(--clay); }
.budget-free { width: 34.4%; background: var(--paper-deep); }
.budget-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 0 27px; color: var(--muted); font-size: 10px; }
.budget-legend span { display: flex; gap: 6px; align-items: center; }
.budget-legend i { width: 7px; height: 7px; border-radius: 50%; }
.spent-dot { background: var(--forest); }
.reserved-dot { background: var(--clay); }
.free-dot { border: 1px solid #bfc6c1; background: var(--paper-deep); }
.limit-rows { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.limit-rows > div { display: grid; gap: 5px; padding: 19px 18px 3px 0; }
.limit-rows > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.limit-rows span, .limit-rows small { color: var(--muted); font-size: 10px; }
.limit-rows strong { font-size: 13px; line-height: 1.3; }
.usage-side { display: grid; gap: 14px; }
.organization-budget { padding: 23px; }
.organization-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.organization-head span { color: var(--verified); font-size: 12px; font-weight: 750; }
.organization-budget > p:not(.card-kicker) { margin: 10px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.organization-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.organization-track i { display: block; width: 37.2%; height: 100%; background: var(--forest); }
.organization-budget dl { margin: 18px 0 0; }
.organization-budget dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }
.organization-budget dt { color: var(--muted); }
.organization-budget dd { margin: 0; font-weight: 680; text-align: right; }
.budget-protection { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 18px; background: var(--verified-soft); }
.budget-protection > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--verified); color: white; font-size: 11px; font-weight: 800; }
.budget-protection strong { font-size: 12px; }
.budget-protection p { margin: 5px 0 0; color: #53665d; font-size: 10px; line-height: 1.5; }
.technical-details { margin-top: 20px; overflow: hidden; }
.technical-details summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; cursor: pointer; list-style: none; }
.technical-details summary::-webkit-details-marker { display: none; }
.technical-details summary > span { display: grid; gap: 3px; }
.technical-details summary strong { font-size: 13px; }
.technical-details summary small { color: var(--muted); font-size: 10px; }
.technical-details summary > b { color: var(--forest); font-size: 10px; }
.technical-details[open] summary { border-bottom: 1px solid var(--line); }
.technical-details[open] summary > b::after { content: " скрыть"; }
.technical-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.technical-grid > div { display: grid; gap: 6px; padding: 18px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.technical-grid > div:nth-child(3n) { border-right: 0; }
.technical-grid span { color: var(--muted); font-size: 10px; }
.technical-grid strong { font-size: 14px; }
.technical-details > p { margin: 0; padding: 16px 22px 19px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.site-head { align-items: center; }
.access-card { display: grid; min-width: 230px; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.access-card span, .access-card small { color: var(--muted); font-size: 10px; }
.access-card strong { font-size: 15px; }
.site-analysis-launch { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 34px; align-items: stretch; margin-bottom: 18px; padding: 30px; overflow: hidden; border: 1px solid #d5ddd9; border-radius: 18px; background: linear-gradient(135deg, #fbfcfb 0%, #f2f5f3 60%, #edf2ef 100%); box-shadow: 0 18px 55px rgba(25, 39, 31, .065); }
.site-analysis-copy { max-width: 760px; }
.site-analysis-copy .panel-kicker { margin: 0 0 9px; color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-analysis-copy h2 { margin: 0; max-width: 660px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 690; line-height: 1.04; letter-spacing: -.045em; }
.site-analysis-copy > p:not(.panel-kicker) { max-width: 720px; margin: 15px 0 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.site-analysis-button { min-width: 245px; min-height: 46px; padding-inline: 22px; font-size: 12px; }
.site-analysis-button:disabled { border-color: #cdd5d1; background: #dfe5e2; color: #718078; cursor: not-allowed; opacity: 1; }
.site-analysis-copy > small { display: block; max-width: 720px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.site-analysis-status { display: grid; align-content: start; min-height: 100%; padding: 21px; border: 1px solid rgba(40, 68, 54, .12); border-radius: 14px; background: rgba(255, 255, 255, .74); }
.site-analysis-status > span { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.site-analysis-status > strong { margin-top: 9px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.site-analysis-status > p { margin: 10px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.analysis-report { margin: 0 0 22px; padding: 27px 29px; border: 1px solid #d6ddd9; border-radius: 18px; background: #fbfcfa; box-shadow: 0 16px 46px rgba(25, 39, 31, .045); }
.analysis-report[hidden] { display: none; }
.analysis-report-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; cursor: pointer; list-style: none; }
.analysis-report-head::-webkit-details-marker { display: none; }
.analysis-report-head .source-badge::after { margin-left: 6px; content: "+"; }
.analysis-report[open] .analysis-report-head .source-badge::after { content: "−"; }
.analysis-report-head .panel-kicker { margin: 0 0 8px; color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.analysis-report-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 660; line-height: 1.08; letter-spacing: -.04em; }
.analysis-report-head p:last-child { max-width: 730px; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.analysis-diagnostics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 23px; border-block: 1px solid var(--line); }
.analysis-diagnostics article { display: grid; min-height: 82px; padding: 15px 16px; align-content: center; border-right: 1px solid var(--line); }
.analysis-diagnostics article:first-child { padding-left: 0; }
.analysis-diagnostics article:last-child { border-right: 0; }
.analysis-diagnostics span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.analysis-diagnostics strong { margin-top: 5px; font-size: 25px; font-weight: 680; letter-spacing: -.045em; }
.analysis-plan { display: grid; grid-template-columns: minmax(170px, .28fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.analysis-plan h3 { margin: 4px 0 0; font-size: 13px; font-weight: 690; line-height: 1.35; letter-spacing: -.015em; }
.analysis-plan > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.analysis-plan article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding: 14px; border: 1px solid #dde2df; border-radius: 11px; background: #fff; }
.analysis-plan article i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--forest-soft); color: var(--forest-dark); font-size: 8px; font-style: normal; font-weight: 800; }
.analysis-plan article div { display: grid; gap: 5px; }
.analysis-plan article strong { font-size: 10px; font-weight: 700; line-height: 1.4; }
.analysis-plan article small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.site-page-plan { margin: 24px 0 27px; overflow: hidden; border: 1px solid #bcc9c1; border-radius: 17px; background: #fff; box-shadow: 0 20px 54px rgba(32, 49, 40, .075); }
.site-page-plan-head { display: flex; gap: 24px; align-items: start; justify-content: space-between; padding: 27px 29px 23px; border-bottom: 1px solid #d9e1dc; background: linear-gradient(135deg, #f8faf8 0%, #eef3ef 100%); }
.site-page-plan-head h2 { margin: 5px 0 8px; color: var(--forest-dark); font-size: clamp(24px, 2.8vw, 32px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.site-page-plan-head p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-page-plan-state { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b9cdc0; border-radius: 999px; background: #f8fbf9; color: var(--verified); font-size: 9px; font-weight: 800; white-space: nowrap; }
.site-page-alert { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr); gap: 22px; padding: 15px 29px; border-bottom: 1px solid #e4d5c8; background: #f8f2e9; }
.site-page-alert strong { color: #875838; font-size: 11px; }
.site-page-alert span { color: #6f6258; font-size: 10px; line-height: 1.5; text-align: right; }
.site-page-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #dce3df; gap: 1px; }
.site-page-group { min-width: 0; padding: 21px 22px 23px; background: #fff; }
.site-page-group-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.site-page-group-head span { color: #718078; font-size: 8px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.site-page-group-head strong { padding: 5px 7px; border-radius: 999px; background: var(--forest-soft); color: var(--forest-dark); font-size: 8px; white-space: nowrap; }
.site-page-group h3 { margin: 13px 0 7px; color: var(--forest-dark); font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }
.site-page-group > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.site-page-group ul { display: grid; gap: 6px; margin: 17px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.site-page-group li { overflow: hidden; color: #4d5c54; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.site-page-group li::before { margin-right: 7px; color: #90a097; content: "•"; }
.site-page-group li.is-more { color: var(--muted); font-weight: 760; }
.site-page-group.is-legacy { background: #fbfaf7; }
.site-page-group.is-legacy .site-page-group-head strong { background: #eee9df; color: #755f42; }
.site-page-group.is-system { background: #fafbfa; }
.site-page-group.is-cleanup { background: #fcf7f5; }
.site-page-group.is-cleanup .site-page-group-head strong { background: #f3e3de; color: #8a4e41; }
.site-page-plan-foot { display: flex; gap: 25px; align-items: center; justify-content: space-between; padding: 18px 29px; border-bottom: 1px solid #d9e1dc; background: #f3f6f4; }
.site-page-plan-foot > div { display: grid; gap: 4px; }
.site-page-plan-foot strong { color: var(--forest-dark); font-size: 13px; }
.site-page-plan-foot span { color: var(--muted); font-size: 10px; }
.site-page-plan-foot button { flex: 0 0 auto; min-height: 44px; padding-inline: 20px; font-size: 11px; }
.analysis-trust { display: grid; grid-template-columns: 9px 1fr; gap: 6px 9px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 9px; font-weight: 650; }
.analysis-trust i { grid-row: 1 / span 2; width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: var(--verified); box-shadow: 0 0 0 4px rgba(63, 107, 89, .1); }
.local-plan-result { margin: 0 0 22px; padding: clamp(24px, 4vw, 42px); border: 1px solid #d6ddd9; border-radius: 20px; background: #fff; box-shadow: 0 20px 58px rgba(25, 39, 31, .07); }
.local-plan-result[data-state="running"] { background: linear-gradient(135deg, #fff 0%, #f3f6f4 100%); }
.local-plan-result[data-state="ready"] { border-color: #b9c9c0; background: linear-gradient(145deg, #fff 0%, #f4f7f5 100%); }
.local-plan-wait, .local-plan-ready { max-width: 850px; }
.local-plan-wait > span, .local-plan-ready > span { color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.local-plan-wait h2, .local-plan-ready h2 { margin: 10px 0 12px; font-size: clamp(25px, 3vw, 38px); font-weight: 670; line-height: 1.08; letter-spacing: -.04em; }
.local-plan-wait p, .local-plan-ready > p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.local-plan-answer { display: grid; gap: 8px; margin-top: 24px; padding: 20px 22px; border-left: 3px solid var(--verified); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .82); }
.local-plan-answer small { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.local-plan-answer strong { font-size: 15px; font-weight: 560; line-height: 1.55; }
.local-plan-page { display: grid; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #dfe4e1; }
.local-plan-page > small { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.local-plan-page > div { display: grid; gap: 10px; }
.local-plan-page section { padding: 18px 20px; border: 1px solid #e0e5e2; border-radius: 12px; background: rgba(255, 255, 255, .72); }
.local-plan-page h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.25; }
.local-plan-page p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.local-plan-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.local-plan-actions .secondary-button { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; border: 1px solid #c8cfcb; border-radius: 10px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 730; text-decoration: none; }
.local-plan-draft-state { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; margin-top: 18px; padding: 16px 18px; align-items: center; border: 1px solid #bfd0c7; border-radius: 12px; background: #f3f7f4; }
.local-plan-draft-state > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--verified); color: #fff; font-weight: 800; }
.local-plan-draft-state div { display: grid; gap: 3px; }
.local-plan-draft-state strong { font-size: 13px; }
.local-plan-draft-state small { color: var(--muted); font-size: 10px; }
.local-plan-draft-state .primary-button { min-height: 40px; text-decoration: none; }
.local-plan-ready > small { display: block; margin-top: 13px; color: var(--muted); font-size: 9px; }
.setup-register { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); list-style: none; }
.setup-register li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; min-height: 78px; padding: 14px 15px; border-right: 1px solid var(--line); }
.setup-register li:last-child { border-right: 0; }
.setup-register li > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 800; }
.setup-register li > div { display: grid; gap: 4px; }
.setup-register b { font-size: 11px; }
.setup-register small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.setup-register .complete > span { border-color: var(--verified); background: var(--verified-soft); color: var(--verified); }
.setup-register .current { background: #f4f7f9; }
.setup-register .current > span { border-color: var(--forest); background: var(--forest); color: white; }
.analysis-register { grid-template-columns: repeat(6, 1fr); }
.analysis-register li { grid-template-columns: 26px 1fr; gap: 8px; min-height: 82px; padding-inline: 12px; }
.analysis-register li > span { width: 24px; height: 24px; }
.analysis-register li[data-state="blocked"], .analysis-register li[data-state="attention"] { background: #fbf8f3; }
.analysis-register li[data-state="blocked"] > span, .analysis-register li[data-state="attention"] > span { border-color: #c99b73; background: var(--clay-soft); color: var(--clay); }
.inventory-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; border-block: 1px solid var(--line); }
.inventory-summary article { display: grid; gap: 5px; min-height: 102px; padding: 19px 20px; border-right: 1px solid var(--line); }
.inventory-summary article:last-child { border-right: 0; }
.inventory-summary span, .inventory-summary small { color: var(--muted); font-size: 10px; }
.inventory-summary strong { overflow: hidden; font-size: 25px; font-weight: 690; letter-spacing: -.025em; text-overflow: ellipsis; }
.inventory-summary .inventory-snapshot strong { font: 700 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.inventory-content { display: grid; gap: 32px; min-width: 0; }
.inventory-panel, .inventory-issues { min-width: 0; }
.page-content-panel { order: 1; }
.inventory-technical { order: 2; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfa; }
.inventory-issues { order: 3; }
.inventory-technical > summary { margin: 0; cursor: pointer; list-style: none; }
.inventory-technical > summary::-webkit-details-marker { display: none; }
.inventory-technical > summary .source-badge::after { margin-left: 5px; content: "+"; }
.inventory-technical[open] > summary .source-badge::after { content: "−"; }
.inventory-technical[open] > summary { margin-bottom: 13px; }
.inventory-title { margin-bottom: 13px; }
.inventory-title > div, .inventory-issues .section-title > div { display: grid; gap: 4px; }
.inventory-title p, .inventory-issues .section-title p { margin: 0; color: var(--muted); font-size: 10px; }
.source-badge { padding: 5px 8px; border-radius: 999px; background: var(--verified-soft); color: var(--verified); font-size: 9px; font-weight: 750; }
.inventory-table-wrap { overflow-x: auto; border-block: 1px solid var(--line); }
.inventory-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
.inventory-table th { padding: 11px 12px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.inventory-table td { min-width: 105px; padding: 13px 12px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.inventory-table td:first-child { min-width: 250px; }
.inventory-table td:first-child a { display: block; overflow: hidden; max-width: 330px; color: var(--ink); font-weight: 680; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.inventory-table td:first-child a:hover { color: var(--forest); }
.inventory-table td small { display: block; overflow: hidden; max-width: 330px; margin-top: 4px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.http-state { display: inline-flex; min-width: 43px; justify-content: center; padding: 4px 7px; border-radius: 999px; font-weight: 750; }
.http-state.ok { background: var(--verified-soft); color: var(--verified); }
.http-state.attention { background: var(--clay-soft); color: var(--clay); }
.inventory-more { margin-top: 14px; }
.issue-list { display: grid; margin-top: 13px; border-top: 1px solid var(--line); }
.issue-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px 5px; border-bottom: 1px solid var(--line); }
.issue-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--clay-soft); color: var(--clay); font-size: 10px; font-weight: 800; }
.issue-list p { display: grid; gap: 4px; margin: 0; }
.issue-list strong { font-size: 11px; }
.issue-list small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.page-content-panel { min-width: 0; padding-top: 4px; }
.page-content-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0 18px; border-block: 1px solid var(--line); }
.page-content-summary article { display: grid; gap: 4px; min-height: 84px; padding: 15px 17px; border-right: 1px solid var(--line); }
.page-content-summary article:last-child { border-right: 0; }
.page-content-summary span, .page-content-summary small { color: var(--muted); font-size: 9px; }
.page-content-summary strong { font-size: 20px; font-weight: 690; letter-spacing: -.025em; }
.page-content-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr); gap: 18px; align-items: start; }
.page-passport-list { display: grid; border-top: 1px solid var(--line); }
.page-passport-row { display: grid; gap: 5px; width: 100%; padding: 14px 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.page-passport-row:hover, .page-passport-row.selected { background: #f4f7f6; }
.page-passport-row.selected { box-shadow: inset 2px 0 var(--forest); }
.page-passport-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.page-passport-row small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.passport-state { width: max-content; padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 780; letter-spacing: .02em; }
.passport-state.passed { background: var(--verified-soft); color: var(--verified); }
.passport-state.warning, .passport-state.rejected { background: var(--clay-soft); color: var(--clay); }
.passport-state.pending { background: #ecefee; color: var(--muted); }
.passport-state.legacy { background: #eee9df; color: #755f42; }
.passport-state.system { background: #ecefee; color: #66736c; }
.passport-state.cleanup { background: #f3e3de; color: #8a4e41; }
.page-passport-detail { min-height: 290px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(150deg, #fff, #f7f9f8); }
.passport-detail-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.passport-detail-head b { color: var(--forest); }
.page-passport-detail h3 { margin: 15px 0 5px; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.page-passport-detail > a { display: block; overflow: hidden; color: var(--forest); font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.page-passport-detail dl { display: grid; gap: 0; margin: 17px 0; }
.page-passport-detail dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 9px; line-height: 1.45; }
.page-passport-detail dt { color: var(--muted); }
.page-passport-detail dd { margin: 0; font-weight: 640; overflow-wrap: anywhere; }
.passport-blocks { display: grid; gap: 6px; max-height: 210px; overflow: auto; }
.passport-blocks p { display: grid; grid-template-columns: 31px 1fr; gap: 8px; margin: 0; padding: 8px 9px; border-radius: 7px; background: var(--paper); font-size: 9px; line-height: 1.45; }
.passport-blocks span { color: var(--forest); font: 760 8px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.passport-trust { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.5; }
.site-safety { position: sticky; top: 86px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 40px rgba(23, 26, 24, .045); }
.site-safety .panel-kicker { margin: 0; color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-safety h2 { margin: 9px 0; font-size: 24px; font-weight: 680; line-height: 1.12; letter-spacing: -.03em; }
.site-safety > p:not(.panel-kicker), .site-safety > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.inventory-run-card { margin: 20px 0 6px; padding: 16px; border: 1px solid #d8dfdc; border-radius: 12px; background: linear-gradient(145deg, #fbfcfb, #f2f5f3); }
.inventory-run-head { display: grid; grid-template-columns: 9px 1fr; gap: 10px; align-items: start; }
.inventory-run-head > div { display: grid; gap: 3px; }
.inventory-run-head small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.inventory-run-head strong { color: var(--ink); font-size: 13px; line-height: 1.35; }
.inventory-run-mark { width: 8px; height: 8px; margin-top: 4px; border: 2px solid #b7c0bb; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px rgba(183, 192, 187, .14); }
.inventory-run-card[data-state="allowed"] .inventory-run-mark,
.inventory-run-card[data-state="succeeded"] .inventory-run-mark { border-color: var(--verified); background: var(--verified); box-shadow: 0 0 0 3px rgba(63, 107, 89, .12); }
.inventory-run-card[data-state="pending"] .inventory-run-mark,
.inventory-run-card[data-state="running"] .inventory-run-mark { border-color: var(--forest); background: var(--forest); box-shadow: 0 0 0 3px rgba(78, 99, 121, .13); }
.inventory-run-card[data-state="failed"] .inventory-run-mark { border-color: var(--danger); background: var(--danger); box-shadow: 0 0 0 3px rgba(152, 79, 79, .11); }
.inventory-run-card > p { margin: 10px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inventory-run-button { width: 100%; min-height: 38px; background: rgba(255, 255, 255, .78); font-size: 10px; }
.inventory-run-card[data-state="allowed"] .inventory-run-button { border-color: var(--forest); background: var(--forest-dark); color: white; }
.inventory-run-card[data-state="allowed"] .inventory-run-button:hover { background: #1d2c38; }
.inventory-run-schedule { display: block; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(43, 55, 49, .1); color: var(--ink-soft); font-size: 9px; font-weight: 650; line-height: 1.45; }
.inventory-run-guard { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.site-safety dl { margin: 20px 0; }
.site-safety dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.site-safety dt { color: var(--muted); }
.site-safety dd { max-width: 145px; margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.allowed-hosts { margin: 0 0 18px; padding: 13px; background: var(--paper); }
.allowed-hosts > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.allowed-hosts ul { display: grid; gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.allowed-hosts li { font: 650 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.site-safety > small { display: block; margin-top: 12px; }

.integrations-view { --source-ink: #233342; }
.source-page-head { align-items: center; margin-bottom: 30px; }
.source-page-head > div:first-child { max-width: 790px; }
.source-page-head h1 { max-width: 760px; font-size: clamp(36px, 4.4vw, 54px); }
.source-page-head p:not(.eyebrow) { max-width: 750px; font-size: 16px; line-height: 1.65; }
.source-posture { display: grid; min-width: 245px; gap: 6px; padding: 18px 20px; border: 1px solid #d6dde2; border-radius: 14px; background: #f9fafb; }
.source-posture > span, .source-posture small { color: var(--muted); font-size: 12px; }
.source-posture > span { font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.source-posture strong { display: flex; gap: 9px; align-items: center; color: var(--source-ink); font-size: 14px; }
.source-posture strong i { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(154, 113, 53, .1); }
.source-posture small { line-height: 1.45; }
.card-kicker { margin: 0 0 8px; color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.codex-device-test { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .55fr); gap: 32px; align-items: stretch; margin-bottom: 18px; padding: 31px; border: 1px solid #cbd7d1; border-radius: 18px; background: #f3f7f4; box-shadow: 0 22px 58px rgba(35, 51, 66, .07); }
.codex-device-copy h2 { max-width: 700px; margin: 0; color: var(--source-ink); font-size: clamp(27px, 3.2vw, 39px); font-weight: 670; line-height: 1.06; letter-spacing: -.04em; }
.codex-device-copy > p:not(.card-kicker) { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.codex-device-example { display: grid; max-width: 690px; gap: 5px; margin-top: 20px; padding: 15px 17px; border-left: 3px solid var(--verified); background: rgba(255, 255, 255, .72); }
.codex-device-example span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.codex-device-example strong { color: var(--source-ink); font-size: 14px; line-height: 1.45; }
.codex-device-action { display: grid; align-content: center; gap: 13px; padding: 21px; border: 1px solid rgba(63, 107, 89, .16); border-radius: 14px; background: rgba(255, 255, 255, .8); }
.codex-device-state { display: inline-flex; gap: 9px; align-items: center; color: var(--source-ink); font-size: 13px; font-weight: 780; }
.codex-device-state i { width: 8px; height: 8px; border-radius: 50%; background: #a4aca8; box-shadow: 0 0 0 4px rgba(164, 172, 168, .12); }
.codex-device-test.is-online .codex-device-state i { background: var(--verified); box-shadow: 0 0 0 4px rgba(63, 107, 89, .1); }
.codex-device-test.is-offline .codex-device-state i { background: var(--clay); box-shadow: 0 0 0 4px rgba(154, 113, 53, .1); }
.codex-device-action .primary-button { width: 100%; min-height: 46px; }
.codex-device-action .primary-button[aria-disabled="true"] { background: #88928d; pointer-events: none; }
.codex-device-action small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.source-zero-state { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 29px 31px; border: 1px solid #d7dfe4; border-radius: 18px; background: linear-gradient(145deg, #fff, #f6f8f7); box-shadow: 0 22px 58px rgba(35, 51, 66, .07); }
.source-zero-mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--source-ink); color: #fff; font-size: 20px; font-weight: 800; }
.source-zero-copy { max-width: 720px; }
.source-zero-state h2, .subscription-boundary h2 { margin: 0; color: var(--source-ink); font-size: clamp(25px, 3vw, 34px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.source-zero-copy > p:not(.card-kicker) { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.source-zero-state > .secondary-button { white-space: nowrap; }
.source-zero-facts { display: flex; grid-column: 2 / -1; gap: 11px 24px; flex-wrap: wrap; padding-top: 4px; }
.source-zero-facts span { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 650; }
.source-zero-facts i { width: 7px; height: 7px; border-radius: 50%; background: var(--verified); box-shadow: 0 0 0 4px rgba(63, 107, 89, .08); }
.provider-catalog { margin: 42px 0 34px; }
.provider-catalog-head p, .source-connection-rules .section-title p { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.source-badge { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.provider-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 20px; }
.provider-card { display: grid; min-height: 290px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.provider-card-glm { border-color: #c8d3da; background: linear-gradient(155deg, #fff, #f4f7f9); }
.provider-card-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.provider-monogram { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d6dde2; border-radius: 9px; background: #f8fafb; color: var(--source-ink); font-size: 10px; font-weight: 850; }
.provider-state { padding: 5px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.provider-state.locked { background: var(--clay-soft); color: var(--clay); }
.provider-state.planned { background: var(--forest-soft); color: var(--forest); }
.provider-card h3 { margin: 20px 0 8px; color: var(--source-ink); font-size: 18px; letter-spacing: -.025em; }
.provider-card > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.provider-card dl { align-self: end; margin: 18px 0 5px; }
.provider-card dl div { display: flex; justify-content: space-between; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.provider-card dt { color: var(--muted); }
.provider-card dd { margin: 0; font-weight: 700; text-align: right; }
.provider-card .text-button { justify-self: start; min-height: 34px; margin: 7px 0 0 -12px; color: var(--forest); font-size: 13px; }
.source-detail-panel { display: grid; grid-template-columns: 155px 210px 1fr; gap: 18px; align-items: center; min-height: 82px; margin-top: 11px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9f9; }
.source-detail-panel > span { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.source-detail-panel strong { color: var(--source-ink); font-size: 14px; }
.source-detail-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.subscription-boundary { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(255px, .55fr); gap: 22px; align-items: center; padding: 28px 30px; border: 1px solid #d6dde2; border-radius: 16px; background: #f9fafb; }
.subscription-mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--source-ink); color: white; font-size: 25px; }
.subscription-boundary h2 { font-size: clamp(23px, 2.7vw, 31px); }
.subscription-boundary p:not(.card-kicker) { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.subscription-case { display: grid; gap: 5px; padding: 18px; border-left: 1px solid #d6dde2; }
.subscription-case span, .subscription-case small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.subscription-case strong { color: var(--source-ink); font-size: 14px; line-height: 1.4; }
.source-connection-rules { margin-top: 38px; }
.source-connection-rules ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.source-connection-rules li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; min-height: 100px; align-items: center; padding: 14px 18px; border-right: 1px solid var(--line); }
.source-connection-rules li:last-child { border-right: 0; }
.source-connection-rules li > span { color: var(--clay); font-size: 12px; font-weight: 800; }
.source-connection-rules li div { display: grid; gap: 4px; }
.source-connection-rules strong { color: var(--source-ink); font-size: 14px; }
.source-connection-rules small { color: var(--muted); font-size: 12px; line-height: 1.45; }

.placeholder-view { max-width: 760px; padding-top: 7vh; }
.module-status { display: grid; max-width: 540px; gap: 5px; margin: 28px 0 2px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.module-status span, .module-status small { color: var(--muted); font-size: 10px; }
.module-status span { font-weight: 720; }
.module-status strong { font-size: 14px; }
.placeholder-view .primary-button { margin-top: 20px; }
.toast { position: fixed; z-index: 60; right: 22px; bottom: 22px; max-width: 360px; padding: 14px 17px; border-radius: 12px; background: var(--forest-dark); color: white; box-shadow: var(--shadow); font-size: 12px; line-height: 1.45; }

.connection b { font: inherit; }
.session-exit { border: 0; background: transparent; color: var(--ink-soft); font: 600 11px/1.2 var(--font-ui); cursor: pointer; padding: 7px 4px; }
.session-exit:hover { color: var(--ink); }
.session-gate, .site-onboarding-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgba(239, 237, 229, .88); backdrop-filter: blur(18px); }
.session-gate[hidden], .site-onboarding-gate[hidden] { display: none; }
.session-card { width: min(100%, 470px); padding: 42px; border: 1px solid rgba(31, 53, 45, .12); border-radius: 24px; background: rgba(255, 255, 252, .96); box-shadow: 0 30px 90px rgba(32, 47, 40, .18); }
.site-onboarding-card { width: min(100%, 600px); margin: auto; padding: 42px; border: 1px solid rgba(31, 53, 45, .12); border-radius: 24px; background: rgba(255, 255, 252, .97); box-shadow: 0 30px 90px rgba(32, 47, 40, .18); }
.session-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 38px; color: var(--forest-dark); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.session-brand i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--forest-dark); color: white; font: normal 700 15px/1 var(--font-ui); letter-spacing: 0; }
.session-card h1, .site-onboarding-card h1 { margin: 8px 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.04; letter-spacing: -.04em; }
.session-card > p:not(.eyebrow):not(.session-message), .site-onboarding-card > p:not(.eyebrow):not(.session-message) { margin: 0 0 25px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.session-card label { display: grid; gap: 8px; margin-top: 15px; color: var(--ink); font-size: 11px; font-weight: 700; }
.session-card input { width: 100%; padding: 13px 14px; border: 1px solid rgba(31, 53, 45, .18); border-radius: 10px; outline: 0; background: #fbfbf7; color: var(--ink); font: 500 14px/1.2 var(--font-ui); transition: border-color .15s, box-shadow .15s; }
.session-card input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 87, 72, .1); }
.session-card .primary-button, .site-onboarding-card .primary-button { width: 100%; margin-top: 22px; border: 0; }
.session-card > small, .site-onboarding-card > small { display: block; margin-top: 18px; color: var(--ink-faint); font-size: 10px; line-height: 1.5; text-align: center; }
.invite-safety { display: grid; gap: 10px; margin: 24px 0 8px; }
.invite-safety > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 13px 14px; border: 1px solid rgba(31, 53, 45, .1); border-radius: 13px; background: rgba(246, 247, 242, .78); }
.invite-safety i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--forest); color: #fff; font: 700 9px/1 var(--mono); font-style: normal; }
.invite-safety span { display: grid; gap: 3px; }
.invite-safety strong { color: var(--ink); font-size: 12px; line-height: 1.35; }
.invite-safety small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.site-address-label { display: grid; gap: 8px; color: var(--ink); font-size: 11px; font-weight: 750; }
.site-address-control { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid rgba(31, 53, 45, .18); border-radius: 11px; background: #fbfbf7; transition: border-color .15s, box-shadow .15s; }
.site-address-control:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 87, 72, .1); }
.site-address-control > span { padding: 14px 0 14px 15px; color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.site-address-control input { min-width: 0; padding: 14px 15px 14px 2px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 650 14px/1.2 var(--font-ui); }
.onboarding-scope { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 18px; border-block: 1px solid var(--line); }
.onboarding-scope > div { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 16px 13px; border-right: 1px solid var(--line); }
.onboarding-scope > div:first-child { padding-left: 0; }
.onboarding-scope > div:last-child { padding-right: 0; border-right: 0; }
.onboarding-scope i { color: var(--clay); font: normal 800 10px/1.5 var(--font-ui); }
.onboarding-scope span { display: grid; gap: 5px; }
.onboarding-scope strong { font-size: 11px; line-height: 1.35; }
.onboarding-scope small { color: var(--ink-faint); font-size: 9px; line-height: 1.45; }
.site-onboarding-card .onboarding-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 11px; color: var(--ink-soft); font-size: 11px; font-weight: 620; line-height: 1.45; cursor: pointer; }
.onboarding-consent input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.session-message { min-height: 18px; margin: 12px 0 0; color: #9b4b3b; font-size: 11px; line-height: 1.45; text-align: center; }

/* Accounts: one system font, readable labels, honest mail states, non-overlaid actions. */
[data-account-access] { width: min(100%, 470px); }
.account-card { width: 100%; font-family: var(--font-ui); }
.account-card h1 { font-size: 30px; line-height: 1.15; }
.account-card.session-card > p:not(.eyebrow):not(.account-message) { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.account-card label { font-size: 14px; line-height: 1.4; }
.account-card input { min-height: 44px; font-size: 16px; }
.account-card .account-note { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.account-card .account-consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 400; }
.account-card .account-consent input { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 0; }
.account-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; margin-top: 12px; }
.account-card .account-link, .account-card .account-legacy { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--forest); font: 500 14px/1.4 var(--font-ui); text-align: left; cursor: pointer; }
.account-card .account-legacy { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 13px; }
.account-card .account-message { margin: 12px 0; color: #9b4b3b; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.account-card .account-message:empty { display: none; }
.account-card input[aria-invalid="true"] { border-color: #9b4b3b; box-shadow: 0 0 0 1px #9b4b3b; }
.account-card.session-card button { min-height: 44px; }
.account-card button:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.account-card button:disabled { cursor: wait; opacity: .65; }
body.session-required .app-shell, body.site-onboarding-required .app-shell { pointer-events: none; user-select: none; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; margin-inline: 0; }
  .brand-copy, .project-switcher > span:nth-child(2), .project-switcher .demo-label { display: none; }
  .project-switcher { grid-template-columns: 1fr; justify-items: center; }
  .nav-list a, .sidebar-foot > a { grid-template-columns: 1fr; justify-items: center; font-size: 0; }
  .nav-section-label { display: none; }
  .nav-icon { width: 18px; height: 18px; }
  .nav-count { display: none; }
  .usage-mini { display: none; }
  .environment-note { display: none; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .crumb { display: none; }
  .site-scope { display: grid; min-width: 0; gap: 0; padding-left: 0; border-left: 0; line-height: 1.3; }
  .site-scope strong { overflow: hidden; text-overflow: ellipsis; }
  .decision-register { grid-template-columns: 1fr 1fr; }
  .decision-register > div:nth-child(2) { border-right: 0; }
  .decision-register > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .action-layout { grid-template-columns: 1fr; }
  .decision-panel { position: static; }
  .preview-layout { grid-template-columns: 1fr; }
  .checks-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .checks-panel > .section-title, .checks-panel > [data-validation-list], .checks-panel > .permission-box, .checks-panel > .preview-meta, .checks-panel > .preview-provenance, .checks-panel > .approval-state, .checks-panel > .cms-handoff-card, .checks-panel > .pull-package-card, .checks-panel > .draft-receipt-card, .checks-panel > .change-switch { grid-column: 1 / -1; }
  .demand-content-grid { grid-template-columns: 1fr; }
  .usage-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .usage-summary-grid article:nth-child(2) { border-right: 0; }
  .usage-summary-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .usage-layout { grid-template-columns: 1fr; }
  .usage-side { grid-template-columns: 1fr 1fr; }
  .site-layout { grid-template-columns: 1fr; }
  .site-safety { position: static; }
  .site-analysis-launch { grid-template-columns: 1fr; gap: 20px; }
  .analysis-report-head { grid-template-columns: 1fr; }
  .analysis-diagnostics { grid-template-columns: repeat(3, 1fr); }
  .analysis-diagnostics article:nth-child(3) { border-right: 0; }
  .analysis-diagnostics article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .analysis-plan { grid-template-columns: 1fr; }
  .site-page-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-register { grid-template-columns: repeat(3, 1fr); }
  .analysis-register li:nth-child(3n) { border-right: 0; }
  .analysis-register li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .source-page-head { display: grid; align-items: start; }
  .visibility-head { display: grid; align-items: start; }
  .visibility-status { width: min(100%, 390px); }
  .ai-result-grid { grid-template-columns: 1fr; }
  .ai-auto-plan-grid { grid-template-columns: 1fr; }
  .ai-auto-intent { border-right: 0; border-bottom: 1px solid #dfe4e1; }
  .ai-check-signals, .ai-check-readiness > ol { grid-template-columns: 1fr 1fr; }
  .ai-check-signals article:nth-child(2), .ai-check-readiness > ol li:nth-child(2) { border-right: 0; }
  .ai-check-signals article:nth-child(-n+2), .ai-check-readiness > ol li:nth-child(-n+2) { border-bottom: 1px solid #dce2e5; }
  .source-posture { width: min(100%, 390px); }
  .codex-device-test { grid-template-columns: 1fr; }
  .provider-card-grid { grid-template-columns: 1fr 1fr; }
  .source-detail-panel { grid-template-columns: 130px 180px 1fr; }
  .subscription-boundary { grid-template-columns: 52px 1fr; }
  .subscription-case { grid-column: 2; border-top: 1px solid #d6dde2; border-left: 0; }
}

@media (max-width: 720px) {
  .local-prototype-notice { position: relative; grid-template-columns: 1fr; padding: 14px 18px; }
  .local-prototype-notice > span { justify-self: start; }
  .local-prototype-notice a { text-align: center; }
  .ai-result-next { grid-template-columns: 1fr; }
  .ai-result-next button, .ai-result-next > small { grid-column: 1; grid-row: auto; }
  .ai-result-next button { width: 100%; margin-top: 9px; }
  .ai-result-next > small { text-align: left; }
  .ai-page-preview > header, .ai-page-preview > footer { display: grid; grid-template-columns: 1fr; }
  .ai-page-preview > header > span { justify-self: start; }
  .ai-page-preview > footer span { text-align: left; }
  .ai-page-preview-browser { margin: 14px; }
  .ai-page-preview-browser > article { padding: 27px 22px 30px; }
  .ai-page-preview-sections { grid-template-columns: 1fr; }
  .session-card, .site-onboarding-card { padding: 30px 24px; border-radius: 19px; }
  .onboarding-scope { grid-template-columns: 1fr; }
  .onboarding-scope > div, .onboarding-scope > div:first-child, .onboarding-scope > div:last-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .onboarding-scope > div:last-child { border-bottom: 0; }
  .session-brand { margin-bottom: 28px; }
  .start-guide { padding: 23px 21px; }
  .start-guide-steps { grid-template-columns: 1fr; }
  .start-guide-steps li, .start-guide-steps li:first-child, .start-guide-steps li:last-child { min-height: 76px; padding: 13px 0; border-right: 0; border-bottom: 1px solid #dce2e5; }
  .start-guide-steps li:last-child { border-bottom: 0; }
  .start-guide-action { display: grid; }
  .start-guide-action .primary-button { width: 100%; }
  .live-home-head { display: grid; padding: 24px 21px 20px; }
  .live-home-state { justify-self: start; }
  .live-home-steps { grid-template-columns: 1fr; padding: 0 21px; }
  .live-home-steps li, .live-home-steps li:first-child, .live-home-steps li:last-child { min-height: 74px; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .live-home-steps li:last-child { border-bottom: 0; }
  .live-home-result { margin: 21px 21px 0; padding: 21px 19px; }
  .live-home-actions { display: grid; padding: 21px; }
  .live-home-actions .primary-button, .live-home-actions .secondary-button { width: 100%; }
  .ai-check-explainer { padding: 23px 21px; }
  .ai-check-signals, .ai-check-readiness > ol { grid-template-columns: 1fr; }
  .ai-site-context { grid-template-columns: 34px 1fr; }
  .ai-site-context > a { grid-column: 2; }
  .ai-live-test, .ai-live-result { padding: 21px; border-radius: 14px; }
  .ai-live-test-head, .ai-live-result-head { display: grid; }
  .ai-question-form > div { display: grid; }
  .ai-question-form .primary-button { width: 100%; }
  .ai-result-summary { display: grid; }
  .ai-result-summary span { text-align: left; }
  .ai-result-metrics { grid-template-columns: 1fr; }
  .ai-result-metrics article { min-height: 58px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .ai-result-metrics article:last-child { border-bottom: 0; }
  .ai-result-action dl div { grid-template-columns: 1fr; gap: 4px; }
  .ai-auto-plan-head { display: grid; }
  .ai-auto-plan-state { justify-self: start; }
  .ai-auto-sections ol { grid-template-columns: 1fr; }
  .ai-auto-plan-foot { grid-template-columns: 1fr; }
  .ai-auto-plan-foot span { text-align: left; }
  .ai-fact-summary { grid-template-columns: 31px minmax(0, 1fr); }
  .ai-fact-summary-count { grid-column: 2; }
  .ai-fact-head { grid-template-columns: 1fr; }
  .ai-fact-card { grid-template-columns: 1fr; padding: 21px; }
  .ai-fact-card-head, .ai-fact-form-footer { display: grid; }
  .ai-fact-state { justify-self: start; }
  .ai-fact-form-footer button, .ai-fact-confirm { width: 100%; margin-right: 0; }
  .ai-fact-boundary { grid-template-columns: 1fr; }
  .ai-fact-boundary span { text-align: left; }
  .site-page-plan-head, .site-page-plan-foot { display: grid; }
  .site-page-plan-state { justify-self: start; }
  .site-page-plan-foot button { width: 100%; }
  .site-page-alert { grid-template-columns: 1fr; }
  .site-page-alert span { text-align: left; }
  .site-page-groups { grid-template-columns: 1fr; }
  .site-page-group > p { min-height: 0; }
  .ai-check-signals article, .ai-check-signals article:first-child, .ai-check-signals article:last-child, .ai-check-readiness > ol li, .ai-check-readiness > ol li:first-child, .ai-check-readiness > ol li:last-child { min-height: 76px; padding: 13px 0; border-right: 0; border-bottom: 1px solid #dce2e5; }
  .ai-check-signals article:last-child, .ai-check-readiness > ol li:last-child { border-bottom: 0; }
  .ai-check-next { display: grid; }
  .ai-check-next .primary-button { width: 100%; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 50; top: 0; left: 0; width: min(82vw, 290px); height: 100vh; transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .menu-close { position: absolute; top: 20px; right: 15px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 21px; line-height: 1; }
  .menu-backdrop { position: fixed; z-index: 45; inset: 0; display: block; border: 0; background: rgba(21, 24, 23, .24); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
  .brand { justify-content: flex-start; }
  .brand-copy { display: grid; }
  .project-switcher { grid-template-columns: 32px 1fr auto; justify-items: stretch; }
  .project-switcher > span:nth-child(2) { display: grid; }
  .project-switcher .demo-label { display: block; }
  .nav-list a, .sidebar-foot > a { grid-template-columns: 20px 1fr auto; justify-items: stretch; font-size: 13px; }
  .nav-count { display: block; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 10px; min-height: 56px; padding: 0 16px; }
  .mobile-menu { display: block; }
  .crumb { display: none; }
  .site-scope { display: grid; gap: 0; justify-self: start; padding-left: 0; line-height: 1.15; }
  .site-scope small { font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
  .connection { font-size: 11px; }
  main { padding: 28px 16px 54px; }
  .page-head { display: grid; align-items: start; }
  .page-head h1, .placeholder-view h1 { font-size: 2rem; }
  .next-measurement { min-width: 0; width: 100%; }
  .quiet-button { width: max-content; }
  .source-page-head p:not(.eyebrow) { font-size: 15px; }
  .codex-device-test { gap: 18px; padding: 24px 21px; }
  .codex-device-action { padding: 18px; }
  .provider-card-grid { grid-template-columns: 1fr; }
  .source-zero-state { grid-template-columns: 46px 1fr; padding: 24px 21px; }
  .source-zero-mark { width: 46px; height: 46px; }
  .source-zero-state > .secondary-button, .source-zero-facts { grid-column: 2; }
  .source-zero-state > .secondary-button { justify-self: start; }
  .provider-card { min-height: 250px; }
  .source-detail-panel { grid-template-columns: 1fr; gap: 7px; }
  .subscription-boundary { grid-template-columns: 46px 1fr; padding: 23px 21px; }
  .subscription-mark { width: 44px; height: 44px; }
  .source-connection-rules ol { grid-template-columns: 1fr 1fr; }
  .source-connection-rules li:nth-child(2) { border-right: 0; }
  .source-connection-rules li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip > div { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip > div:last-child { border-bottom: 0; }
  .section-label { align-items: start; gap: 8px; }
  .section-label small { max-width: 150px; text-align: right; }
  .action-hero { grid-template-columns: 1fr; }
  .action-main h2 { font-size: 33px; }
  .action-register { display: grid; gap: 6px; }
  .action-register b, .action-register span { padding: 0; border-right: 0; }
  .action-proof { padding-top: 24px; }
  .today-grid { grid-template-columns: 1fr; }
  .change-log { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .work-row { grid-template-columns: 34px 1fr; }
  .work-row > b { grid-column: 2; }
  .signal-list { grid-template-columns: 1fr; }
  .decision-register { grid-template-columns: 1fr; }
  .decision-register > div, .decision-register > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-register > div:last-child { border-bottom: 0; }
  .facts-table > div { grid-template-columns: 1fr auto; padding: 10px 0; }
  .facts-table small { grid-column: 1 / -1; }
  .fact-summary { grid-template-columns: 1fr; }
  .fact-summary > div { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-summary > div:last-child { border-bottom: 0; }
  .fact-studio-list { grid-template-columns: 1fr; }
  .fact-safety { grid-template-columns: 1fr; gap: 8px; }
  .fact-profile-panel { padding: 21px; }
  .fact-profile-head { grid-template-columns: 1fr; gap: 14px; }
  .fact-profile-status { width: max-content; }
  .fact-profile-register { grid-template-columns: 1fr 1fr; }
  .fact-profile-register > div:nth-child(2) { border-right: 0; }
  .fact-profile-register > div:nth-child(-n+2) { border-bottom: 1px solid #dfe3e0; }
  .fact-profile-list { grid-template-columns: 1fr; }
  .fact-profile-list article:nth-last-child(2) { border-bottom: 1px solid #e0e4e1; }
  .fact-profile-action { display: grid; }
  .fact-profile-action button { width: 100%; }
  .fact-profile-boundary { display: grid; }
  .fact-profile-boundary b { text-align: left; }
  .fact-intake-panel { padding: 21px; }
  .fact-intake-head { grid-template-columns: 1fr; gap: 14px; }
  .intake-counter { min-height: 70px; text-align: left; }
  .fact-intake-flow { grid-template-columns: 1fr; }
  .fact-intake-flow > div { min-height: 58px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .fact-intake-flow > div:last-child { border-bottom: 0; }
  .fact-intake-form { grid-template-columns: 1fr; }
  .intake-source-fields { grid-column: auto; grid-template-columns: 1fr; }
  .fact-intake-form > button { width: 100%; }
  .intake-submitted { grid-template-columns: 1fr; gap: 5px; }
  .intake-review-box { grid-template-columns: 1fr; }
  .intake-review-box > textarea { grid-column: 1; grid-row: auto; }
  .intake-review-actions { grid-column: 1; display: grid; }
  .intake-review-actions button { width: 100%; }
  .intake-review-box > small { grid-column: 1; }
  .intake-decision { grid-template-columns: 1fr; gap: 6px; }
  .intake-prepare-action { display: grid; gap: 12px; }
  .intake-prepare-action button { width: 100%; }
  .intake-candidate-head { align-items: start; }
  .intake-candidate-details { grid-template-columns: 1fr; }
  .intake-candidate-details span { padding: 10px 0; border-right: 0; border-bottom: 1px solid #dce3de; white-space: normal; }
  .intake-candidate-details span:last-child { border-bottom: 0; }
  .intake-activation-action { grid-template-columns: 1fr; }
  .intake-activation-action label { grid-template-columns: 1fr; }
  .intake-activation-action label > span { grid-column: 1; }
  .intake-version-boundaries { grid-template-columns: 1fr; }
  .intake-version-boundaries span { padding: 10px 0; border-right: 0; border-bottom: 1px solid #d9e2dc; }
  .intake-version-boundaries span:last-child { border-bottom: 0; }
  .fact-intake-boundary { display: grid; }
  .fact-intake-boundary b { text-align: left; }
  .fact-candidate-panel { padding: 21px; }
  .fact-candidate-head { grid-template-columns: 1fr; gap: 14px; }
  .fact-candidate-summary { grid-template-columns: 1fr; }
  .fact-candidate-summary article, .fact-candidate-summary article:first-child { min-height: 68px; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-candidate-summary article:last-child { border-bottom: 0; }
  .fact-candidate-list { grid-template-columns: 1fr; }
  .candidate-source-fields { grid-template-columns: 1fr; }
  .fact-promotion-panel { padding: 21px; }
  .fact-promotion-head { grid-template-columns: 1fr; gap: 14px; }
  .promotion-counter { min-height: 70px; text-align: left; }
  .fact-promotion-card dl { grid-template-columns: 1fr; }
  .fact-promotion-card dl div, .fact-promotion-card dl div:first-child { min-height: 55px; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-promotion-card dl div:last-child { border-bottom: 0; }
  .promotion-action { display: grid; justify-content: stretch; }
  .promotion-action input { width: 100%; }
  .promotion-boundary { text-align: left; }
  .fact-allowance-panel { padding: 21px; }
  .fact-allowance-head { grid-template-columns: 1fr; gap: 14px; }
  .allowance-counter { min-height: 70px; text-align: left; }
  .allowance-scope { grid-template-columns: 1fr; }
  .allowance-scope small { text-align: left; }
  .allowance-boundaries { grid-template-columns: 1fr; }
  .allowance-boundaries > div, .allowance-boundaries > div:first-child { min-height: 58px; padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .allowance-boundaries > div:last-child { border-bottom: 0; }
  .allowance-action { display: grid; }
  .allowance-action button { width: 100%; }
  .fact-visibility-panel { padding: 21px; }
  .fact-visibility-head { grid-template-columns: 1fr; gap: 14px; }
  .visibility-counter { min-height: 70px; text-align: left; }
  .visibility-principle { grid-template-columns: 1fr; }
  .visibility-principle small { text-align: left; }
  .visibility-boundaries { grid-template-columns: 1fr; }
  .visibility-boundaries > div, .visibility-boundaries > div:first-child { min-height: 58px; padding: 11px 0; border-right: 0; border-bottom: 1px solid #e0ddd5; }
  .visibility-boundaries > div:last-child { border-bottom: 0; }
  .visibility-actions { display: grid; }
  .visibility-actions > div { justify-content: stretch; }
  .visibility-actions button { width: 100%; }
  .fact-artifact-permission-panel { padding: 21px; }
  .artifact-permission-head { grid-template-columns: 1fr; gap: 14px; }
  .artifact-permission-counter { min-height: 70px; text-align: left; }
  .artifact-permission-scope { grid-template-columns: 1fr; }
  .artifact-permission-scope > div { min-height: 56px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .11); }
  .artifact-permission-scope > div:last-child { border-bottom: 0; }
  .artifact-permission-steps { grid-template-columns: 1fr; }
  .artifact-permission-steps > div, .artifact-permission-steps > div:first-child { min-height: 58px; padding: 11px 0; border-right: 0; border-bottom: 1px solid #dde2df; }
  .artifact-permission-steps > div:last-child { border-bottom: 0; }
  .artifact-permission-action { display: grid; }
  .artifact-permission-action button { width: 100%; }
  .artifact-permission-boundary { display: grid; }
  .artifact-permission-boundary b { text-align: left; }
  .preview-build-panel { padding: 21px; }
  .preview-build-copy { grid-template-columns: 1fr; gap: 10px; }
  .preview-build-ledger { grid-template-columns: 1fr; }
  .preview-build-ledger > div, .preview-build-ledger > div:first-child { min-height: 58px; padding: 11px 0; border-right: 0; border-bottom: 1px solid #d9d7d0; }
  .preview-build-ledger > div:last-child { border-bottom: 0; }
  .preview-build-action { grid-template-columns: 1fr; gap: 14px; }
  .preview-build-action button { width: 100%; }
  .preview-build-boundary { display: grid; }
  .preview-build-boundary b { text-align: left; }
  .demand-content-panel { padding: 21px; }
  .demand-content-head { grid-template-columns: 1fr; gap: 14px; }
  .demand-content-state { width: max-content; }
  .demand-evidence-note { grid-template-columns: 1fr; gap: 7px; }
  .demand-map-form, .content-plan-form { padding: 19px; }
  .demand-map-context { grid-template-columns: 1fr; }
  .demand-content-boundary { display: grid; }
  .demand-content-boundary b { text-align: left; }
  .setup-register { grid-template-columns: 1fr 1fr; }
  .setup-register li:nth-child(2) { border-right: 0; }
  .setup-register li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-analysis-launch { padding: 22px; }
  .analysis-report { padding: 22px; }
  .analysis-plan > div { grid-template-columns: 1fr; }
  .site-analysis-copy h2 { font-size: 30px; }
  .site-analysis-button { width: 100%; }
  .analysis-register { grid-template-columns: 1fr 1fr; }
  .analysis-register li, .analysis-register li:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .analysis-register li:nth-child(2n) { border-right: 0; }
  .analysis-register li:nth-last-child(-n+2) { border-bottom: 0; }
  .inventory-summary { grid-template-columns: 1fr 1fr; }
  .inventory-summary article:nth-child(2) { border-right: 0; }
  .inventory-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .page-content-layout { grid-template-columns: 1fr; }
  .page-content-summary { grid-template-columns: 1fr; }
  .page-content-summary article { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .page-content-summary article:last-child { border-bottom: 0; }
  .access-card { min-width: 0; width: 100%; }
  .usage-head { gap: 18px; }
  .period-control { width: 100%; }
  .usage-summary-grid { grid-template-columns: 1fr 1fr; }
  .usage-summary-grid article { min-height: 112px; padding: 17px; }
  .usage-summary-grid strong { font-size: 25px; }
  .measurement-plan-head { grid-template-columns: 1fr; gap: 16px; }
  .measurement-lock { width: max-content; }
  .measurement-matrix { grid-template-columns: 1fr 1fr; }
  .measurement-matrix > b { display: none; }
  .measurement-matrix .measurement-total { grid-column: 1 / -1; }
  .measurement-result-grid { grid-template-columns: 1fr; }
  .measurement-result-grid > div { min-height: 86px; padding-inline: 0; border-right: 0; border-bottom: 1px solid #d7ddd9; }
  .measurement-result-grid > div:last-child { border-bottom: 0; }
  .measurement-boundary { display: grid; }
  .measurement-boundary b { text-align: left; }
  .budget-card-head { display: grid; }
  .budget-figure { margin-top: 24px; }
  .budget-legend { display: grid; }
  .limit-rows { grid-template-columns: 1fr; }
  .limit-rows > div { padding: 14px 0; }
  .limit-rows > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .usage-side { grid-template-columns: 1fr; }
  .technical-grid { grid-template-columns: 1fr 1fr; }
  .technical-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .technical-grid > div:nth-child(2n) { border-right: 0; }
  .preview-top { display: grid; }
  .preview-actions { justify-content: start; }
  .preview-actions .segmented { flex: 1 1 100%; }
  .preview-actions .secondary-button, .preview-actions > .primary-button { flex: 1 1 145px; font-size: 12px; }
  .site-stage { padding: 10px; }
  .checks-panel { display: block; }
  .fake-site-head { padding: 0 14px; }
  .fake-site-head nav { display: none; }
  .fake-table > div { grid-template-columns: 1fr auto; padding: 7px 0; }
  .fake-table small { grid-column: 1 / -1; }
  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}

@media (max-width: 430px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding-inline: 12px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .avatar { display: none; }
  .topbar-actions .connection { display: none; }
  .site-scope { min-width: 0; }
  .site-scope small { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .site-scope strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .connection { max-width: 88px; }
  .source-connection-rules ol { grid-template-columns: 1fr; }
  .source-connection-rules li, .source-connection-rules li:nth-child(2) { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .source-connection-rules li:last-child { border-bottom: 0; }
  .source-zero-state { grid-template-columns: 1fr; }
  .source-zero-state > .secondary-button, .source-zero-facts { grid-column: 1; }
  .subscription-boundary { grid-template-columns: 1fr; }
  .subscription-case { grid-column: 1; padding-inline: 0; }
  .draft-delivery-flow { grid-template-columns: 1fr; }
  .draft-delivery-flow li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; }
  .draft-delivery-flow b { margin-bottom: 0; }
  .setup-register { grid-template-columns: 1fr; }
  .setup-register li, .setup-register li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .setup-register li:last-child { border-bottom: 0; }
  .site-analysis-launch { padding: 19px; border-radius: 14px; }
  .analysis-report { padding: 19px; border-radius: 14px; }
  .analysis-diagnostics { grid-template-columns: repeat(2, 1fr); }
  .analysis-diagnostics article:nth-child(3) { border-right: 1px solid var(--line); }
  .analysis-diagnostics article:nth-child(even) { border-right: 0; }
  .analysis-diagnostics article:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .site-analysis-copy h2 { font-size: 27px; }
  .analysis-register { grid-template-columns: 1fr; }
  .analysis-register li, .analysis-register li:nth-child(2n), .analysis-register li:nth-child(3n), .analysis-register li:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .analysis-register li:last-child { border-bottom: 0; }
  .inventory-summary { grid-template-columns: 1fr; }
  .inventory-summary article, .inventory-summary article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .inventory-summary article:last-child { border-bottom: 0; }
  .usage-summary-grid { grid-template-columns: 1fr; }
  .usage-summary-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .usage-summary-grid article:last-child { border-bottom: 0; }
  .measurement-matrix { grid-template-columns: 1fr; }
  .measurement-matrix .measurement-total { grid-column: auto; }
  .technical-grid { grid-template-columns: 1fr; }
  .technical-grid > div, .technical-grid > div:nth-child(3n), .technical-grid > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .local-plan-draft-state { grid-template-columns: 32px 1fr; }
  .local-plan-draft-state .primary-button { grid-column: 1 / -1; width: 100%; }
  .ai-page-next-step { grid-template-columns: 1fr; margin: 16px; padding: 20px; }
  .ai-page-draft-state { grid-template-columns: 34px 1fr; }
  .ai-page-draft-state .primary-button { grid-column: 1 / -1; width: 100%; }
  .document-intake-panel { padding: 21px; }
  .document-intake-head { grid-template-columns: 1fr; gap: 15px; }
  .document-intake-counter { min-height: 74px; text-align: left; }
  .document-intake-guards { grid-template-columns: 1fr; }
  .document-intake-guards > div { min-height: 62px; border-right: 0; border-bottom: 1px solid #d4d0c8; }
  .document-intake-guards > div:last-child { border-bottom: 0; }
  .document-intake-workspace, .document-intake-form { grid-template-columns: 1fr; }
  .document-intake-form-title, .document-intake-form .document-file-field { grid-column: 1; }
  .document-intake-form-title, .document-intake-boundary { display: grid; }
  .document-intake-form button { width: 100%; }
  .document-intake-list { max-height: none; overflow: visible; }
  .document-candidate-panel-head { grid-template-columns: 1fr; align-items: start; }
  .document-candidate-panel-head > span { justify-self: start; }
  .document-intake-boundary b { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Result-first pilot: keep old single-question controls out of the live route. */
.live-mode #visibility > :not(.visibility-report) { display: none !important; }
.visibility-report { max-width: 1180px; font-size: var(--text-body); line-height: var(--leading-body); }
.visibility-report > .panel-kicker { margin: 0 0 8px; color: var(--muted); font-size: var(--text-note); font-weight: var(--weight-heading); }
.visibility-report > h2 { margin: 0 0 12px; }
.vr-head h1 { font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; max-width: 760px; }
.vr-lead { color: #58625c; max-width: 760px; line-height: 1.6; margin-top: 16px; }
.vr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 28px 0; }
.vr-controls button:disabled { opacity: .65; cursor: default; }
.vr-status, .vr-meta, .vr-scope { color: #58625c; font-size: 13px; line-height: 1.6; }
.vr-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dde1de; border-radius: 14px; background: #fff; overflow: hidden; }
.vr-stats > div { padding: 22px; display: grid; gap: 10px; }
.vr-stats > div + div { border-left: 1px solid #dde1de; }
.vr-stats span { color: #58625c; font-size: 13px; }
.vr-stats strong { font-size: clamp(18px, 2vw, 25px); font-weight: 600; letter-spacing: -.02em; }
.vr-comparison { padding: 24px; margin: 24px 0; background: #fff; border: 1px solid #dde1de; border-radius: 14px; }
.vr-comparison .vr-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 20px 0; }
.vr-comparison p { line-height: 1.6; }
.vr-earlier-answer { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dde1de; }
.vr-earlier-answer > summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 8px 0; }
@media(max-width:600px) { .vr-comparison { padding: 16px; } .vr-comparison .vr-stats { grid-template-columns: 1fr; } }
.vr-scope { margin: 12px 0 28px; }
.vr-questions h2, .vr-data-note h2 { font-size: var(--text-card-title); font-weight: var(--weight-heading); margin-bottom: 14px; }
.vr-question { background: #fff; border: 1px solid #dde1de; margin-top: -1px; }
.vr-question:first-of-type { border-radius: 12px 12px 0 0; }
.vr-question:last-child { border-radius: 0 0 12px 12px; }
.vr-question summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 155px 70px; gap: 14px; padding: 20px; align-items: center; cursor: pointer; list-style: none; }
.vr-question summary::-webkit-details-marker { display: none; }
.vr-question summary:focus-visible { outline: 2px solid #536a82; outline-offset: -3px; }
.vr-number, .vr-expand { color: #68716c; font-size: 12px; }
.vr-question-text { font-size: 15px; line-height: 1.5; font-weight: 500; }
.vr-badges { display: grid; gap: 6px; font-size: 12px; color: #58625c; }
.vr-badges .vr-present { color: #3f6b59; font-weight: 600; }
.vr-answer { padding: 0 28px 28px 58px; overflow-wrap: anywhere; }
.vr-answer-text { white-space: pre-wrap; line-height: 1.75; font-size: 15px; margin: 14px 0 24px; }
.vr-answer-table-wrap { max-width: 100%; margin: 16px 0; overflow-x: auto; white-space: normal; }
.vr-answer-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.vr-answer-table th, .vr-answer-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vr-answer-table th { color: var(--ink); background: #f4f5f5; font-weight: 600; }
.vr-answer-table td:first-child { min-width: 115px; }
.vr-answer-table td:not(:first-child) { min-width: 210px; }
.vr-answer h3 { font-size: var(--text-subheading); font-weight: var(--weight-heading); }
.vr-sources { padding-left: 20px; line-height: 1.8; font-size: 14px; }
.vr-sources a { color: #385670; text-decoration: underline; }
.vr-answer-text a { color: #385670; text-decoration: underline; }
.vr-data-note { margin-top: 26px; padding-top: 24px; border-top: 1px solid #dde1de; }
.vr-data-note summary { font-size: 17px; font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.vr-question-basis { padding: 18px 0; border-top: 1px solid #dde1de; }
.vr-question-basis h3 { font-size: var(--text-subheading); margin-bottom: 8px; }
.vr-question-basis blockquote { margin: 12px 0; padding-left: 16px; border-left: 2px solid #dde1de; font-size: 14px; line-height: 1.6; }
.vr-question-basis a { color: #385670; text-decoration: underline; font-size: 13px; }
.vr-data-note p { color: #58625c; max-width: 830px; line-height: 1.65; font-size: 14px; }
@media (max-width: 768px) {
  .vr-question summary { grid-template-columns: 20px minmax(0,1fr); padding: 16px; gap: 10px; }
  .vr-badges { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
  .vr-expand { grid-column: 2; }
  .vr-answer { padding: 0 16px 20px; }
  .vr-stats { grid-template-columns: 1fr; }
  .vr-stats > div { padding: 16px; }
  .vr-stats > div + div { border-left: 0; border-top: 1px solid #dde1de; }
}
/* Real report-linked editorial suggestions; old demo action remains hidden. */
.vr-review-link { margin: 0 0 24px; display: inline-flex; }
.vr-back { display: inline-block; margin: 10px 0 24px; }
.vr-review-card { border: 1px solid #dce1e4; border-radius: 16px; padding: 28px; margin-top: 24px; background: #fff; }
.vr-review-card h2 { font-size: var(--text-section-title); line-height: 1.3; }
[data-page-description-picker] > p { max-width: 68ch; color: var(--muted); line-height: 1.6; }
[data-page-description-picker] .field-select { display: block; width: 100%; min-width: 0; min-height: 48px; margin: 16px 0 24px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14px; text-overflow: ellipsis; }
[data-page-description-picker] .field-select:focus-visible { outline: 3px solid var(--forest-soft); outline-offset: 2px; border-color: var(--forest); }
.seo-page-issues { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.seo-page-issue { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.seo-issue-url { font-weight: 650; overflow-wrap: anywhere; }
.seo-issue-path { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--muted); }
.seo-page-issue .vr-meta { margin: 8px 0; }
.seo-page-issue .secondary-button { margin-top: 6px; }
.vr-review-target { overflow-wrap: anywhere; }
.vr-review-compare { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; margin: 24px 0; }
.vr-review-compare > div { min-width: 0; padding: 20px; background: #f6f7f8; border-radius: 12px; }
.vr-review-compare > div:last-child { background: #f0f5f3; }
.vr-review-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); }
.vr-review-card blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid #ccd6d1; white-space: pre-wrap; }
@media (max-width: 700px) { .vr-review-compare { grid-template-columns: minmax(0,1fr); gap: 12px; } .vr-review-card { padding: 18px; } }
.pe-actions { margin: 20px 0; }
.pe-actions button, .pe-actions > a { margin: 0 10px 12px 0; }
.pe-confirm { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pe-check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; line-height: 1.5; }
.pe-check input { margin-top: 5px; flex: 0 0 auto; }
.pe-copy-form { display: grid; gap: 16px; }
.pe-copy-form label { display: grid; gap: 8px; }
.pe-copy-form input, .pe-copy-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pe-success { font-weight: 600; }
.pe-verification { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8f9; }
.pe-verification.pe-verified { border-color: #c8d8ce; background: #f0f5f3; }
.pe-verification h3 { margin-top: 0; }
.pe-verification-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; font-size: 14px; }
.pe-verification a { display: inline-flex; margin: 0 10px 12px 0; }
@media (max-width: 700px) { .pe-verification { padding: 16px; } .pe-verification-checks { display: grid; gap: 8px; } }
.vr-review-compare h4 { font-size: var(--text-subheading); font-weight: var(--weight-heading); color: var(--ink); margin: 0 0 12px; }
.seo-description-task { scroll-margin-top: 100px; }
.seo-description-task button { min-height: 44px; }
.seo-description-task .seo-description-url { display: inline-block; margin: 8px 0; overflow-wrap: anywhere; }
.seo-description-task > button, .seo-description-task .pe-confirm > button { margin: 12px 10px 8px 0; }
.seo-description-task details { margin-top: 22px; font-size: 14px; }
.seo-description-task details summary { cursor: pointer; color: var(--muted); }
.seo-description-task .vr-review-compare > div:last-child { background: #f6f7f8; }
.content-material-task > article { max-width: 78ch; margin: 28px 0; padding: 24px 0; border-top: 1px solid #e4e7e9; border-bottom: 1px solid #e4e7e9; }
.content-material-task article h3 { font-size: var(--text-card-title); line-height: 1.3; margin: 0 0 18px; letter-spacing: -.015em; }
.content-material-task article h4 { font-size: var(--text-subheading); line-height: 1.4; margin: 28px 0 10px; }
.content-material-task article p { font-size: var(--text-body); line-height: var(--leading-body); margin: 0 0 16px; }
.content-material-task details { margin: 18px 0; }
.content-material-task details summary { cursor: pointer; color: var(--muted); }
.content-material-task > button, .content-material-task .cm-actions > button, .content-material-task .pe-confirm > button { margin: 14px 10px 8px 0; }
.content-material-task .cm-actions > .primary-button { display: inline-flex; margin: 14px 0 8px; }
.content-material-task .cm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 20px; }
.content-material-task .cm-actions > :is(button, a) { flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 44px; height: auto; margin: 0; padding: 10px 16px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 700px) {
  .seo-description-task > button, .seo-description-task .pe-confirm > button { width: 100%; margin-right: 0; }
  .seo-description-task .pe-confirm { padding: 16px; }
  .content-material-task > button, .content-material-task .cm-actions > button, .content-material-task .pe-confirm > button { width: 100%; margin-right: 0; }
  .content-material-task .pe-confirm { padding: 16px; }
}
.sites-dialog { width:min(600px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; box-sizing:border-box; padding:28px; border:1px solid #dce3e1; border-radius:20px; color:var(--ink,#17211d); background:#fff; box-shadow:0 24px 90px #12251e33; }
.sites-dialog::backdrop { background:#14241e66; }
.sites-dialog-head { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.sites-dialog h2,.sites-dialog h3 { margin:0 0 12px;letter-spacing:-.025em; }
.sites-dialog p { color:#52605a;line-height:1.55; }
.sites-list { padding:0;margin:20px 0;list-style:none; }
.sites-list li { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #e5e9e7; }
.sites-list li span { overflow-wrap:anywhere;min-width:0; }
.sites-list button { flex-shrink:0; }
.sites-list-recovery p:empty { display:none; }
.sites-list-recovery p { font-size:14px; }
.sites-list-recovery button { margin-bottom:20px;white-space:normal;min-height:44px; }
.sites-dialog form { border-top:1px solid #e5e9e7;padding-top:24px; }
.sites-dialog input[name="siteUrl"] { display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:13px 14px;border:1px solid #cbd3d9;border-radius:10px;background:#fff;color:#202c35;font:inherit;font-size:16px;line-height:1.4; }
.sites-dialog input[name="siteUrl"]:focus-visible { outline:2px solid #536d83;outline-offset:2px; }
.sites-dialog input[name="siteUrl"][aria-invalid="true"] { border-color:var(--danger); }
.sites-dialog .site-address-label { display:block;font-size:13px;font-weight:600; }
.sites-dialog .onboarding-consent { display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-size:14px;font-weight:400;line-height:1.5; }
.sites-dialog .onboarding-consent input { flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:#536d83; }
.sites-dialog [data-sites-submit] { width:100%;margin-top:16px; }
.sites-dialog [data-sites-status] { margin:10px 0;font-size:14px; }
.sites-dialog [data-sites-status]:empty { display:none; }
@media(max-width:600px) { .sites-dialog { padding:20px; } .sites-open { font-size:12px; } .topbar-actions { gap:8px; } }
.site-ai-check { min-width: 0; }
.site-ai-check > * + * { margin-top: 18px; }
.site-ai-check progress { width: 100%; height: 10px; accent-color: #455c52; }
.site-ai-status:empty { display: none; }
.site-ai-answers { display: grid; gap: 12px; }
.site-ai-check .result-actions { margin-top: 24px; }
.query-map-columns .secondary-button { min-height: 44px; }
.query-map-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 20px 0; }
.query-map-columns > section { min-width: 0; }
.query-map-columns p { margin: 0 0 10px; font-size: var(--text-body); line-height: var(--leading-body); overflow-wrap: anywhere; }
.query-map-pages { padding: 0; margin: 0; list-style: none; display: grid; gap: 14px; font-size: var(--text-body); line-height: var(--leading-body); }
.query-map-pages a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.query-map-columns .query-map-url, .query-map-columns .vr-scope { display: block; color: var(--muted); font-size: var(--text-note); overflow-wrap: anywhere; }
.query-map-proposal + .query-map-proposal { margin-top: 16px; }
.query-map-proposal .secondary-button { display: inline-flex; margin: 4px 0 12px; max-width: 100%; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; }
.site-ai-repeat-options { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.site-ai-repeat-options > summary { display: list-item; min-height: 44px; align-content: center; cursor: pointer; font-size: var(--text-control); font-weight: var(--weight-heading); }
.site-ai-check .site-ai-repeat-options .result-actions { margin: 12px 0; }
.site-ai-check .result-actions > button { min-height: 44px; height: auto; max-width: 100%; min-width: 0; padding: 12px 16px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.site-ai-comparison { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f5f7f6; }
.site-ai-comparison h3 { margin: 0 0 10px; font-size: var(--text-card-title); line-height: 1.4; }
.site-ai-comparison p { margin: 10px 0 0; }
.query-map-action, .query-map-own-pages { margin: 18px 0; padding: 16px; border-radius: 10px; background: #f5f7f6; }
.query-map-action h4, .query-map-own-pages h4, .query-map-answer h4 { font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.query-map-action p { font-size: var(--text-body); line-height: var(--leading-body); margin: 0 0 10px; overflow-wrap: anywhere; }
.query-map-action .query-map-url, .query-map-action .vr-scope, .query-map-own-pages .query-map-url { display: block; color: var(--muted); font-size: var(--text-note); }
.query-map-action .secondary-button { min-height: 44px; max-width: 100%; white-space: normal; height: auto; overflow-wrap: anywhere; }
.query-map-card .query-map-answer { margin-top: 16px; }
.query-map-card .query-map-answer > summary { align-content: center; }
@media (max-width: 600px) {
  .site-ai-repeat-options, .site-ai-comparison { padding: 14px; }
  .query-map-action, .query-map-own-pages { padding: 14px; }
  .site-ai-comparison h3 { font-size: 18px; }
}
@media (max-width: 760px) { .query-map-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
/* Concrete, public-only changes for a newly connected site. */
.site-improvement-list { display: grid; gap: 20px; margin-top: 24px; }
.site-improvement-card { min-width: 0; padding: 24px; border: 1px solid var(--line, #dde1de); border-radius: 12px; background: #fff; scroll-margin-top: 120px; }
.site-improvement-card h3 { margin: 0 0 8px; font-size: var(--text-card-title); font-weight: var(--weight-heading); line-height: 1.4; }
.site-improvement-card > a { display: inline-block; max-width: 100%; color: var(--forest); font-size: var(--text-control); overflow-wrap: anywhere; text-underline-offset: 3px; }
.site-improvement-card :is(p, li, blockquote) { overflow-wrap: anywhere; }
[data-automatic-preparation] :is(p, li, blockquote) { overflow-wrap: anywhere; }
.site-improvement-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 20px 0; }
.site-improvement-compare > div { min-width: 0; padding: 16px; background: #f6f7f5; border-radius: 8px; }
.site-improvement-compare h4 { margin: 0 0 12px; font-size: var(--text-subheading); font-weight: var(--weight-heading); line-height: 1.4; }
.site-improvement-compare p { margin: 0; font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); overflow-wrap: anywhere; }
.site-improvement-card .result-actions { margin: 16px 0; }
.site-improvement-card .result-actions > button { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; padding: 12px 16px; }
[data-site-improvements] > .site-improvement-card { margin-block: 20px; }
.editorial-card { margin-block: 22px; min-width: 0; }
.editorial-query { margin-block: 18px; padding: 14px 16px; border-left: 2px solid var(--line); background: #f8fafb; border-radius: 0 8px 8px 0; }
.editorial-query p { margin: 0 0 8px; font-size: var(--text-body); line-height: var(--leading-body); overflow-wrap: anywhere; }
.editorial-query p:last-child { margin-bottom: 0; }
.editorial-query .panel-kicker, .editorial-query .vr-scope { font-size: var(--text-note); }
.editorial-conclusion-lead { max-width: 78ch; font-size: var(--text-body); line-height: var(--leading-body); }
.editorial-missing { margin-block: 20px; padding: 16px; background: #f8fafb; border: 1px solid var(--line); border-radius: 10px; }
.editorial-missing h3 { margin: 0 0 10px; font-size: var(--text-subheading); line-height: 1.4; }
.editorial-missing p { margin: 0; font-size: var(--text-body); line-height: var(--leading-body); overflow-wrap: anywhere; }
.editorial-conclusion .result-actions { margin-block: 20px; }
.editorial-conclusion .primary-button { min-height: 44px; }
.editorial-evidence h4 { font-size: var(--text-subheading); font-weight: var(--weight-heading); line-height: 1.4; margin: 22px 0 12px; }
.editorial-evidence > p:not(.vr-scope):not(.editorial-notice) { font-size: var(--text-body); line-height: var(--leading-body); }
.editorial-answer { white-space: pre-wrap; overflow-wrap: anywhere; }
.editorial-text-write { margin-block: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; min-width: 0; overflow-wrap: anywhere; }
.editorial-text-write p { white-space: pre-wrap; }
.editorial-text-write .result-actions { margin-top: 20px; }
.editorial-text-write .editorial-evidence { font-size: var(--text-body); }
.publication-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 20px; margin: 16px 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--text-note); line-height: 1.5; }
.publication-checks li { margin: 0; padding: 0; }
.editorial-card > a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.editorial-card .site-improvement-compare p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editorial-saved { color: #475569; font-size: 13px; }
.editorial-series-picker { margin: 0 0 24px; }
.editorial-series-picker label { display: block; font-size: var(--text-control); font-weight: var(--weight-heading); }
.editorial-series-picker select { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: white; color: var(--ink); }
.editorial-notice { padding: 14px 16px; border: 1px solid #dbe1e8; border-radius: 10px; background: #f7f9fb; color: #475569; font-size: 13px; line-height: 1.65; }
.editorial-evidence { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.editorial-evidence summary { cursor: pointer; font-size: var(--text-control); font-weight: var(--weight-heading); }
.editorial-evidence > a { display: block; width: fit-content; margin-top: 8px; }
.editorial-export { display: block; width: 100%; max-width: 100%; margin-top: 12px; padding: 14px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; line-height: 1.6; }
.site-improvement-card details { margin-top: 20px; overflow-wrap: anywhere; }
/* Saved material: a short catalogue first, then exactly one reading surface. */
[data-site-improvements][data-material-mode] { padding: 24px; min-width: 0; }
[data-site-improvements][data-material-mode] > .prepared-materials { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.material-preparation-details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.material-preparation-details > summary { cursor: pointer; min-height: 44px; padding-block: 12px; font: 500 14px/1.5 var(--font-ui); color: var(--muted); }
html:has(body[data-saved-material-focus]) { scroll-behavior: auto; }
.seo-issue-back { border: 0; background: transparent; padding: 10px 0; min-height: 44px; cursor: pointer; font: inherit; color: var(--primary, #31577f); }
.site-ai-next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 20px; margin: 20px 0; border-radius: 12px; background: #edf3f8; }
.site-ai-next-step p { flex: 1 1 300px; margin: 0; font-size: 15px; line-height: 1.6; }
.site-ai-next-step a { flex: 0 1 auto; min-height: 44px; }
body[data-saved-material-focus] #improvements > :not([data-seo-workspace]) { display: none !important; }
body[data-saved-material-focus] [data-seo-workspace] { margin-top: 0; }
body[data-saved-material-focus] [data-seo-workspace] > summary { display: none; }
@media (max-width: 600px) {
  [data-site-improvements][data-material-mode] { padding: 18px; }
}
.site-manual-steps summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.site-manual-steps ol { padding-left: 24px; margin: 16px 0; }
.site-manual-steps li { margin: 0 0 12px; line-height: 1.6; }
.site-manual-steps > button, .site-manual-steps > a { max-width: 100%; min-width: 0; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; }
.site-manual-steps textarea { width: 100%; margin-top: 16px; resize: vertical; line-height: 1.6; }
@media (max-width: 600px) {
  .site-improvement-card { padding: 16px; }
  .site-improvement-compare { grid-template-columns: minmax(0, 1fr); }
}

/* One type hierarchy, wrapping actions and no overlaying controls in CMS setup. */
.site-connection-card { margin: 0 0 24px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.site-connection-card h2 { margin: 0 0 12px; font-family: var(--font-ui); font-size: var(--text-section-title); font-weight: var(--weight-heading); line-height: 1.35; }
.site-connection-card h3 { margin: 22px 0 10px; font-family: var(--font-ui); font-size: var(--text-card-title); font-weight: var(--weight-heading); line-height: 1.4; }
.site-connection-card p { margin: 0 0 14px; font-family: var(--font-ui); font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); }
.site-connection-card .panel-kicker { color: var(--muted); font-size: 12px; }
.site-connection-card .site-connection-note { color: var(--muted); font-size: 13px; }
.site-connection-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-top: 18px; }
.site-connection-card button, .site-connection-card a.secondary-button, .site-connection-card a.primary-button { max-width: 100%; min-width: 0; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; font-family: var(--font-ui); }
.site-connection-card > button { margin-top: 18px; }
.site-connection-details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-connection-details summary { cursor: pointer; font-size: 14px; font-weight: var(--weight-heading); line-height: 1.5; }
.site-connection-details > button { margin: 14px 10px 0 0; }
.site-connection-choice { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; line-height: 1.5; }
.site-connection-choice input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--ink); }
@media (max-width: 600px) {
  .site-connection-card { padding: 18px; }
  .site-connection-actions { flex-direction: column; align-items: stretch; }
  .site-connection-actions > * { width: 100%; }
  .site-connection-details > button { width: 100%; margin-left: 0; margin-right: 0; }
}

/* Read the relevant page without leaving the task or exposing a technical passport. */
[data-seo-issue-view] { scroll-margin-top: 92px; }
.audit-scope-note { max-width: 72ch; margin: 16px 0 24px; color: var(--muted); font-size: var(--text-body); line-height: var(--leading-body); }
.audit-page-count { white-space: normal; max-width: 180px; line-height: 1.5; }
.seo-role-group { min-width: 0; margin: 30px 0; }
.seo-role-group .seo-role-title { margin: 0 0 10px; font-size: var(--text-card-title); line-height: 1.4; font-weight: var(--weight-heading); }
.seo-role-group > summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.seo-role-group > summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 4px; }
.seo-role-note { max-width: 72ch; margin: 0 0 18px; color: var(--muted); font-size: var(--text-body); line-height: var(--leading-body); }
.seo-issue-actions > button { min-width: 0; max-width: 100%; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; padding: 10px 16px; font-family: var(--font-ui); font-size: var(--text-control); line-height: 1.5; }
.seo-page-detail { min-width: 0; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.seo-page-detail[hidden] { display: none; }
.seo-detail-metrics { display: grid; gap: 16px; margin: 0 0 26px; }
.seo-detail-metrics > div { min-width: 0; }
.seo-detail-metrics dt { margin: 0 0 5px; color: var(--muted); font-family: var(--font-ui); font-size: var(--text-note); line-height: 1.5; }
.seo-detail-metrics dd { margin: 0; color: var(--ink); font-family: var(--font-ui); font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); white-space: pre-wrap; }
.seo-detail-text { max-width: 78ch; }
.seo-detail-text h4 { margin: 0 0 16px; font-family: var(--font-ui); font-size: var(--text-subheading); font-weight: var(--weight-heading); line-height: 1.4; }
.seo-detail-text h5 { margin: 22px 0 10px; font-family: var(--font-ui); font-size: var(--text-subheading); font-weight: var(--weight-heading); line-height: 1.4; }
.seo-detail-text p { margin: 0 0 14px; font-family: var(--font-ui); font-size: var(--text-body); font-weight: 400; line-height: var(--leading-body); white-space: pre-wrap; }
.seo-detail-rest { margin-top: 20px; }
.seo-detail-rest summary { min-height: 44px; cursor: pointer; font-family: var(--font-ui); font-size: var(--text-control); font-weight: var(--weight-heading); line-height: 1.5; }
.seo-detail-status { margin: 18px 0 0; color: var(--muted); font-family: var(--font-ui); font-size: var(--text-note); line-height: 1.6; }
.seo-fix-summary { margin: 18px 0 24px; }
.seo-fix-slot { margin: 22px 0 16px; }
.seo-fix-status, .seo-fix-limit { margin: 12px 0; color: var(--muted); font-family: var(--font-ui); font-size: var(--text-note); font-weight: 400; line-height: 1.6; }
.seo-fix-summary > button, .seo-fix-slot > button { min-width: 0; max-width: 100%; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; font-family: var(--font-ui); font-size: var(--text-control); line-height: 1.5; }
/* An exact description opened from a report is one task, not the entire workbench. */
body[data-page-description-focus] #improvements > :not([data-page-description-picker]):not([data-page-description-focus-banner]) { display: none !important; }
/* A recommendation opens the exact text and its controls, not a second dashboard. */
body[data-editorial-focus] #improvements > :not([data-editorial-focus-banner]):not([data-editorial-workspace]) { display: none !important; }
body[data-editorial-focus] [data-site-editorial] > :not([data-editorial-selected]) { display: none !important; }
body[data-editorial-focus] [data-editorial-workspace] > summary { display: none; }
body[data-editorial-focus] [data-editorial-workspace], body[data-editorial-focus] [data-site-editorial] { margin-top: 0; }
/* One selected SEO change uses the same focused page as a text change. */
body[data-description-proposal-focus] #improvements > :not([data-description-proposal-banner]):not([data-seo-workspace]) { display: none !important; }
body[data-description-proposal-focus] [data-seo-workspace] { margin: 0; padding: 0; border: 0; background: transparent; }
body[data-description-proposal-focus] [data-seo-workspace] > summary,
body[data-description-proposal-focus] [data-site-improvements] > .panel-kicker,
body[data-description-proposal-focus] [data-site-improvements] > h2,
body[data-description-proposal-focus] [data-description-back] { display: none; }
.overview-action-preview { margin: 12px 0 0; max-width: 72ch; font: 400 var(--text-body)/var(--leading-body) var(--font-ui); }
.overview-action-page { margin: 14px 0 8px; font: 600 var(--text-card-title)/1.4 var(--font-ui); overflow-wrap: anywhere; }
.query-write-status { color: var(--ink); font: 600 var(--text-body)/var(--leading-body) var(--font-ui); }
.editorial-focus-banner { margin-bottom: 28px; scroll-margin-top: 100px; }
.editorial-focus-banner .audit-back { display: inline-block; border: 0; background: none; cursor: pointer; padding: 10px 0; min-height: 44px; margin-bottom: 20px; color: var(--accent); font: 500 var(--text-control)/1.5 var(--font-ui); text-align: left; }
.editorial-focus-banner h1 { margin: 8px 0 0; font: var(--weight-heading) clamp(1.75rem, 3vw, 2.25rem)/1.2 var(--font-ui); }
.history-entries { display: grid; gap: 16px; max-width: 900px; margin: 28px 0; }
.history-entry { min-width: 0; }
.history-entry h2 { font: var(--weight-heading) 1.125rem/1.35 var(--font-ui); }
.history-entry-url { overflow-wrap: anywhere; font: 400 var(--text-body)/var(--leading-body) var(--font-ui); }
.page-read-controls { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-read-controls > summary { cursor: pointer; min-height: 44px; font: 600 var(--text-control)/1.5 var(--font-ui); }
.page-read-controls > .site-analysis-launch { margin-top: 16px; }
.seo-issue-local-more { display: block; margin-block: 24px; min-height: 44px; max-width: 100%; white-space: normal; }
.page-description-focus-banner { margin: 0 0 28px; min-width: 0; }
.page-description-focus-banner .audit-back { display: inline-block; margin-bottom: 24px; }
.page-description-focus-banner h1 { margin: 8px 0 16px; font-family: var(--font-ui); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: var(--weight-heading); line-height: 1.2; }
.result-search-data { min-width: 0; margin-block: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); font-family: var(--font-ui); }
.result-search-data h3 { margin: 0 0 12px; font: 600 20px/1.3 var(--font-ui); }
.result-search-data p, .result-search-data summary { margin: 8px 0; font: 400 14px/1.6 var(--font-ui); overflow-wrap: anywhere; }
.result-search-data summary { cursor: pointer; font-weight: 600; }
.result-search-table { min-width: 0; max-width: 100%; overflow-x: auto; margin-block: 18px; }
.result-search-table table { width: 100%; min-width: 440px; border-collapse: collapse; }
.result-search-table th, .result-search-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font: 400 14px/1.5 var(--font-ui); }
.result-search-table th { font-weight: 600; }
.result-search-table td:first-child { min-width: 180px; max-width: 400px; }
.result-search-table a { font-size: 13px; overflow-wrap: anywhere; }
.result-search-table p { margin: 0 0 6px; }
@media (max-width: 600px) { .result-search-data { padding: 18px; } }
.page-description-focus-banner > p:not(.panel-kicker) { max-width: 72ch; font-size: var(--text-body); line-height: var(--leading-body); }
.page-description-focus-banner > button { margin-top: 14px; min-height: 44px; max-width: 100%; height: auto; white-space: normal; }
body[data-page-description-focus] [data-page-description-picker] { margin: 0; padding: 0; border: 0; background: transparent; }
[data-selected-page-description] { scroll-margin-top: 100px; }
[data-page-description-picker] > .secondary-button { margin-top: 20px; max-width: 100%; min-height: 44px; height: auto; white-space: normal; }
@media (max-width: 600px) {
  .audit-page-count { max-width: 100%; }
  .seo-role-group { margin-block: 24px; }
  .seo-issue-actions > button { width: 100%; }
  .seo-fix-slot > button { width: 100%; }
}

/* One report, then optional detail. Same typography across the whole journey. */
.text-edit-stage { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.new-page-flow { font-family: var(--font-ui); }
.new-page-flow .new-page-stage { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.new-page-flow > p:not(.vr-scope):not(.new-page-stage), .new-page-preview p { font-size: 15px; line-height: 1.75; font-weight: 400; }
.new-page-preview h5 { margin: 22px 0 10px; font-family: var(--font-ui); font-size: 17px; line-height: 1.5; font-weight: var(--weight-heading); }
.new-page-preview .new-page-document-title { font-size: 18px; }
.new-page-preview > summary { min-height: 44px; align-content: center; font-size: 14px; line-height: 1.6; }
.editorial-text-write > h4 { margin: 0 0 16px; font-size: 20px; line-height: 1.4; }
.text-edit-compare { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-block: 20px; }
.text-edit-compare > div, .text-edit-result-copy { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.text-edit-compare h5, .text-edit-result-copy h5 { margin: 0 0 12px; font-family: var(--font-ui); font-size: 16px; line-height: 1.5; font-weight: var(--weight-heading); }
.text-edit-compare p, .text-edit-result-copy p { margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.text-edit-result-copy { margin: 20px 0; }
.text-edit-more, .description-more { margin: 20px 0 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.text-edit-more > summary, .description-more > summary { min-height: 44px; cursor: pointer; align-content: center; font-size: 14px; line-height: 1.6; font-weight: var(--weight-heading); }
.editorial-card details > summary, .seo-description-task .vr-data-note > summary { min-height: 44px; align-content: center; line-height: 1.6; }
.text-edit-more .result-actions { gap: 12px; }
.text-edit-more > button, .description-more > button { margin: 12px 12px 0 0; min-height: 44px; max-width: 100%; height: auto; white-space: normal; }
.editorial-text-write .primary-button, .editorial-text-write .secondary-button, .seo-description-task .primary-button, .seo-description-task .secondary-button { min-height: 44px; max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; padding: 12px 16px; }
.editorial-text-write a.primary-button, .seo-description-task a.primary-button { display: inline-flex; align-items: center; text-decoration: none; }
.editorial-card .result-actions > a.primary-button { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; height: auto; white-space: normal; padding: 12px 16px; text-decoration: none; }
.seo-description-task .pe-verification { margin-top: 20px; }
.seo-description-task .pe-verification h4 { margin: 20px 0 10px; font-size: 16px; line-height: 1.5; }
.seo-description-task .description-result-text { max-width: 75ch; font-size: 15px; line-height: 1.7; font-weight: 400; }
.description-more .vr-review-compare { margin-block: 14px; }
@media (max-width: 600px) { .text-edit-compare { grid-template-columns: minmax(0,1fr); } .text-edit-compare > div, .text-edit-result-copy { padding: 14px; } .description-more > button { display: block; width: 100%; margin-right: 0; } }
body[data-product-mode] .page-head { margin-bottom: 22px; }
body[data-product-mode] .page-head h1 { font-size: clamp(28px,3vw,36px); line-height: 1.2; letter-spacing: -.035em; margin-block: 8px 10px; }
body[data-product-mode] .page-head .eyebrow { color: var(--muted); letter-spacing: .04em; }
body[data-product-mode] .audit-start { padding: 24px; gap: 16px 24px; border-radius: 16px; box-shadow: 0 3px 16px rgba(21,24,23,.025); }
body[data-product-mode] .audit-start .audit-site { padding-bottom: 12px; }
body[data-product-mode] .audit-start-copy h2 { font-size: 22px; margin: 4px 0 8px; }
body[data-product-mode] .audit-start-copy p:not(.panel-kicker) { font-size: 14px; line-height: 1.6; }
body[data-product-mode] .audit-start[data-check-state="complete"] { grid-template-columns: minmax(0,1fr) minmax(180px,auto); align-items: start; }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-site { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-site { flex-wrap: nowrap; gap: 12px; }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-site-mark { display: none; }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-site strong { flex: 1; }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-change-site { flex: 0 0 auto; margin-left: auto; padding-inline: 6px; white-space: nowrap; font-size: 13px; }
body[data-product-mode] .audit-start[data-check-state="complete"] .panel-kicker { display: none; }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-start-copy { grid-column: 1; }
body[data-product-mode] .audit-start[data-check-state="complete"] .audit-start-actions { grid-column: 2; max-width: 260px; width: 100%; }
.audit-recheck { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.audit-recheck > summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.audit-recheck > p { margin: 6px 0 12px; font-size: 13px; line-height: 1.6; }
.audit-recheck > h3 { margin: 18px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.audit-recheck > button { width: 100%; min-height: 44px; white-space: normal; }
.audit-dated-result { margin: 12px 0 20px; }
body[data-product-mode] .result-columns { gap: 16px; }
body[data-product-mode] .result-channel { padding: 24px; border-radius: 16px; }
body[data-product-mode] .result-channel h2 { font-size: 20px; line-height: 1.35; margin: 6px 0 16px; }
body[data-product-mode] .result-counts { margin: 20px 0; gap: 24px; flex-wrap: wrap; }
body[data-product-mode] .result-counts dt { font-size: 13px; }
body[data-product-mode] .result-counts dd { font-size: 30px; font-weight: 600; }
body[data-product-mode] .result-channel .result-date { margin-top: 12px; font-size: 13px; }
.result-channel-details { margin: 12px 0; font: 400 14px/1.6 var(--font-ui); color: var(--muted); }
.result-channel-details > summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.result-channel-details > p { margin: 8px 0 12px; font-size: 14px; line-height: 1.6; }
.customer-journey { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 20px 0; }
.audit-source-missing { padding: 12px 0; margin: 22px 0; border-block: 1px solid var(--line); }
.audit-source-missing > summary { min-height: 44px; padding-block: 10px; font: 400 14px/1.6 var(--font-ui); color: var(--muted); cursor: pointer; }
.audit-source-missing .result-search-data { margin: 8px 0 0; padding: 18px; border-radius: 12px; }
.implementation-workspace { margin: 16px 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.implementation-workspace > summary { padding: 18px 22px; min-height: 60px; font: 600 16px/1.5 var(--font-ui); cursor: pointer; }
.implementation-workspace[open] > summary { border-bottom: 1px solid var(--line); }
.implementation-workspace > .visibility-report { border: 0; border-radius: 0; margin: 0; box-shadow: none; }
body[data-product-mode] .implementation-summary .result-next { margin-top: 0; padding: 24px; }
@media (max-width: 760px) {
  body[data-product-mode] .audit-start[data-check-state="complete"] { grid-template-columns: minmax(0,1fr); }
  body[data-product-mode] .audit-start[data-check-state="complete"] .audit-start-copy,
  body[data-product-mode] .audit-start[data-check-state="complete"] .audit-start-actions { grid-column: 1; max-width: none; }
  body[data-product-mode] .audit-start-actions > .primary-button { width: 100%; }
  body[data-product-mode] .audit-start, body[data-product-mode] .result-channel { padding: 20px; }
  .implementation-workspace > summary { padding: 16px 18px; }
  .customer-journey { gap: 8px; font-size: 13px; }
}
.editorial-page-overview { margin-block: 1rem 1.5rem; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.billing-actions > a, .billing-actions > button { max-width: 100%; white-space: normal; }
.editorial-page-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.editorial-page-review { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border: 1px solid var(--line,#dce2e0); border-radius: 12px; background: #fff; min-width: 0; }
.editorial-page-review h3 { font: 600 16px/1.4 var(--font-ui,Inter,sans-serif); margin: 0; overflow-wrap: anywhere; }
.editorial-page-review p { font-size: 14px; line-height: 1.5; margin: 0; }
.editorial-page-review button { margin-top: auto; white-space: normal; max-width: 100%; }
@media (max-width:700px) { .editorial-page-review-grid { grid-template-columns: minmax(0,1fr); } }

/* Site overview: one reading order, then an optional implementation result. */
body[data-product-mode] { --paper: #f4f6fa; --paper-deep: #eaf0f7; --ink: #18243a; --muted: #647086; --line: #e0e6ee; --forest: #335d91; --forest-dark: #223e65; --forest-soft: #edf2f9; background: var(--paper); }
body[data-product-mode] main { max-width: 1260px; }
body[data-product-mode] .page-head h1 { font-weight: 650; letter-spacing: -.035em; }
body[data-product-mode] .page-head > div > p:last-child { max-width: 64ch; font-size: 15px; line-height: 1.65; }
body[data-product-mode] .product-mode-bar a.active, body[data-product-mode] .nav-list .product-mode-link.active { color: #294f7d; background: #e7eef8; border-color: #dce6f2; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] { background: #17273f; color: #fff; padding: 24px 28px; grid-template-columns: minmax(0,1fr) auto; gap: 18px 28px; box-shadow: 0 8px 22px #17273f0c; border: 0; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-site { grid-column: 1; border: 0; padding: 0; font-size: 13px; color: #d6e1f0; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-change-site { color: #d6e1f0; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-copy { grid-column: 1; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-copy h2 { color: #fff; font-size: 22px; margin: 0 0 8px; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-copy p { color: #c5d1e2; max-width: 58ch; margin-bottom: 0; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; width: auto; min-width: 190px; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .primary-button { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: none; min-height: 46px; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-recheck > summary { color: #d6e1f0; }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-recheck[open] { background: #fff; padding: 14px; border-radius: 10px; color: var(--ink); }
body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-recheck[open] > summary { color: var(--ink); }
body[data-product-mode] .result-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
body[data-product-mode] .result-channel { min-width: 0; border: 1px solid var(--line); box-shadow: 0 3px 14px #18243a04; padding: 26px; }
body[data-product-mode] .result-channel > .panel-kicker { color: #426795; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
body[data-product-mode] .result-channel h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
body[data-product-mode] .result-counts dd { font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
body[data-product-mode] .result-counts dt { max-width: 20ch; line-height: 1.5; }
body[data-product-mode] .result-seo-issues > div { gap: 16px; padding-block: 10px; border-bottom: 1px solid #eef1f6; }
body[data-product-mode] .audit-priorities { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 24px; }
body[data-product-mode] .audit-priorities h2 { font-size: 22px; margin-block: 6px 18px; }
body[data-product-mode] .audit-priority-list { margin: 0; }
body[data-product-mode] .audit-priority-list h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
body[data-product-mode] .audit-priority-list p { font-size: 14px; line-height: 1.65; }
.overview-completed-change { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 20px; }
.overview-completed-change > div { flex: 1; min-width: 0; }
.overview-completed-change h2 { font: 600 16px/1.5 var(--font-ui); margin: 2px 0 0; }
.overview-completed-change .panel-kicker { margin: 0; font-size: 12px; }
.overview-completed-change > a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.overview-change-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #edf4f1; color: #326c55; font-size: 18px; }
@media (max-width:760px) {
  body[data-product-mode] .result-columns { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] { grid-template-columns: minmax(0,1fr); padding: 22px; gap: 16px; }
  body[data-product-mode] .audit-start[data-overview="site"][data-check-state="complete"] .audit-start-actions { grid-column: 1; grid-row: auto; width: 100%; }
  body[data-product-mode] .result-channel, body[data-product-mode] .audit-priorities { padding: 22px; }
  .overview-completed-change { flex-wrap: wrap; padding: 18px; gap: 12px; }
  .overview-completed-change > a { margin-left: 48px; }
}
/* Page-review history must not hide the selected result below a long grid. */
.editorial-page-overview > summary {
  cursor: pointer;
  color: var(--ink);
  font: 600 15px/1.5 var(--font-ui);
  padding: 16px 0;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.editorial-page-overview[open] > summary { margin-bottom: 16px; }
.editorial-page-overview:not([open]) { padding-bottom: 0; }
.editorial-current-status { margin: 0 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.editorial-current-status h2 { margin: 0 0 8px; font: 600 20px/1.3 var(--font-ui); }
.editorial-current-status p { margin: 0 0 16px; font: 400 14px/1.6 var(--font-ui); color: var(--muted); }
.editorial-current-status .secondary-button { width: fit-content; max-width: 100%; white-space: normal; }
.implementation-path { display:flex; flex-wrap:wrap; gap:12px 28px; list-style:none; padding:0; margin:0 0 28px; color:var(--muted); font:500 13px/1.5 var(--font-ui); }
.implementation-path li { display:flex; align-items:center; gap:9px; }
.implementation-path li > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#e9eef5; color:#355271; font-size:12px; }
.implementation-editorial { min-width:0; margin:0 0 22px; }
.implementation-editorial > .visibility-report { margin-top:0; }
.editorial-back { display:inline-flex; align-items:center; min-height:44px; border:0; padding:8px 0; margin:0 0 16px; background:none; color:#355b83; cursor:pointer; font:600 14px/1.5 var(--font-ui); text-align:left; }
.editorial-back:focus-visible { outline:2px solid #355b83; outline-offset:4px; border-radius:4px; }
.editorial-current-status > .panel-kicker { margin:0 0 8px; font-size:12px; }
.editorial-current-status .primary-button { width:fit-content; max-width:100%; white-space:normal; }
@media(max-width:600px) { .implementation-path { gap:10px; flex-direction:column; margin-bottom:22px; } .editorial-current-status { padding:20px; } }

/* A direct visit to page checks starts with actions, not raw crawl diagnostics. */
.site-result-choices { display: grid; gap: 12px; margin: 20px 0; }
.site-result-choices article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; }
.site-result-choices article > div { min-width: 0; }
.site-result-choices h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.site-result-choices p, .site-result-update { font-size: 14px; line-height: 1.6; margin: 0; }
.site-result-choices button { flex: 0 0 auto; }
.site-inspection-details { margin-top: 24px; }
.site-inspection-details > summary { gap: 16px; }
.site-inspection-details > summary span { display: grid; gap: 6px; min-width: 0; }
.site-inspection-details > summary small { font-size: 13px; font-weight: 400; }
.site-inspection-details > .inventory-summary { margin-top: 24px; }
.live-source-head { display: none; }
body.live-mode .live-source-head { display: flex; }
body.live-mode .legacy-source-settings,
body.live-mode .usage-engineering .measurement-plan,
body.live-mode .usage-engineering .budget-track,
body.live-mode .usage-engineering .organization-track { display: none; }
.settings-source-card { max-width: 860px; margin: 0 0 24px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper, #fff); }
.settings-source-card h2 { margin: 0 0 12px; font: 600 24px/1.3 var(--font-ui); }
.settings-source-card p { margin: 0 0 16px; font: 400 15px/1.6 var(--font-ui); color: var(--muted); }
.settings-source-card .panel-kicker { font-size: 12px; }
.settings-source-card .settings-source-name { font-weight: 600; color: var(--ink); }
.settings-saved-report { padding: 18px; margin: 24px 0; background: #f2f5f6; border-radius: 10px; }
.settings-saved-report strong { display: block; margin-bottom: 6px; font: 600 16px/1.4 var(--font-ui); }
.settings-saved-report p { font-size: 14px; margin-bottom: 8px; }
.settings-saved-report small,.settings-source-boundary { font: 400 13px/1.6 var(--font-ui); color: var(--muted); }
.settings-source-boundary { display: block; margin-top: 18px; }
.settings-source-card a { display: inline-flex; min-height: 44px; max-width: 100%; white-space: normal; }
.usage-scope-note { padding: 18px; background: #f2f5f6; border-radius: 10px; font: 400 14px/1.6 var(--font-ui); }
.facts-workspace { margin: 22px 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper, #fff); }
.facts-workspace > summary { padding: 20px 0; cursor: pointer; }
.facts-workspace > summary strong { font: 600 17px/1.4 var(--font-ui); }
.facts-workspace > summary span { display: block; margin: 8px 0 0 16px; font: 400 14px/1.5 var(--font-ui); color: var(--muted); }
.candidate-excerpt,.candidate-full-statement { font: 400 14px/1.65 var(--font-ui); overflow-wrap: anywhere; }
.candidate-review-disclosure { margin-top: 16px; }
.candidate-review-disclosure > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font: 600 14px/1.4 var(--font-ui); }
.candidate-full-statement { padding: 16px; background: #f2f5f6; border-radius: 8px; }
.candidate-review-disclosure .candidate-source-fields { margin-top: 16px; }
.fact-candidate-card { min-width: 0; min-height: 0; align-content: start; }
.fact-candidate-card > * { min-width: 0; }
.fact-candidate-card > .candidate-excerpt { display: block; margin: 16px 0; font: 400 14px/1.65 var(--font-ui); }
.fact-candidate-card > p:not(.candidate-excerpt) { display: grid; gap: 6px; font-size: 12px; line-height: 1.5; }
.fact-candidate-card > p a { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.candidate-card-top { flex-wrap: wrap; }
.candidate-review-disclosure { min-width: 0; }
.candidate-review-disclosure .candidate-requirement b { font-size: 14px; }
.candidate-review-disclosure .candidate-requirement small,
.candidate-review-disclosure .candidate-review > p { font-size: 13px; line-height: 1.6; }
.candidate-review-disclosure .candidate-source-fields label { font-size: 12px; letter-spacing: 0; text-transform: none; }
.candidate-review-disclosure .candidate-source-fields input { min-height: 44px; font-size: 14px; }
.candidate-review-disclosure .candidate-review-actions button { min-height: 44px; font: 600 14px/1.5 var(--font-ui); white-space: normal; }
.candidate-review-disclosure .candidate-review > .candidate-review-feedback { margin: 0; color: var(--ink); font: 400 14px/1.5 var(--font-ui); }
.candidate-review-disclosure .candidate-review-retry { min-height: 44px; width: fit-content; max-width: 100%; white-space: normal; font: 600 14px/1.5 var(--font-ui); }
.facts-workspace summary:focus-visible,.candidate-review-disclosure summary:focus-visible { outline: 2px solid #355b83; outline-offset: 3px; }
.facts-readiness { margin: 20px 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper, #fff); }
.facts-readiness > summary { padding: 18px 0; cursor: pointer; }
.facts-readiness > summary strong { font: 600 17px/1.4 var(--font-ui); }
.facts-readiness > summary small { display: block; margin: 6px 0 0 16px; font: 400 13px/1.5 var(--font-ui); color: var(--muted); }
.facts-readiness .fact-summary { margin-top: 18px; }
.facts-readiness .fact-safety { margin-bottom: 20px; }
.facts-readiness .fact-safety span { font-size: 13px; line-height: 1.6; }
.facts-readiness summary:focus-visible { outline: 2px solid #355b83; outline-offset: 3px; }
/* Navigation focus must remain below the sticky account bar. */
body.live-mode .view[tabindex="-1"],
body.live-mode .view h1[tabindex="-1"],
body.live-mode .view h2[tabindex="-1"] { scroll-margin-top: 100px; }
.facts-view .fact-candidate-head h2 { font: 600 24px/1.3 var(--font-ui); letter-spacing: -.02em; }
.facts-view .fact-candidate-head p { font: 400 14px/1.6 var(--font-ui); }
.facts-view .fact-candidate-summary span,.facts-view .fact-candidate-summary small { font-size: 12px; }
.facts-view .candidate-card-top span { font-size: 11px; text-transform: none; letter-spacing: 0; }
.facts-view .candidate-card-top small { font-size: 12px; }
@media (max-width: 640px) {
  .site-result-choices article { align-items: stretch; flex-direction: column; gap: 14px; }
  .site-result-choices button { width: 100%; white-space: normal; }
  .settings-source-card { padding: 20px; }
  .settings-source-card h2 { font-size: 21px; }
  .settings-source-card a { width: 100%; justify-content: center; }
  .facts-workspace { padding: 0 14px; }
  .facts-readiness { padding: 0 14px; }
  .facts-view .fact-candidate-head h2 { font-size: 21px; }
  .candidate-review-disclosure .candidate-source-fields { grid-template-columns: minmax(0,1fr); }
}
