:root {
  color-scheme: light;
  --paper: #f7f7fb;
  --white: #ffffff;
  --ink: #121a34;
  --muted: #4d5364;
  --line: #dedfeb;
  --accent: #5736b9;
  --accent-dark: #3e258b;
  --violet-soft: #e6dcff;
  --night: #171332;
  --green: #d9efbb;
  --good: #274e28;
  --warn: #854321;
  --negative: #a0293c;
  --display: Georgia, Cambria, "Times New Roman", serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
::selection { background: #dcd2f5; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: .12em; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.3vw, 6.15rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
h3 { line-height: 1.25; font-size: 1.12rem; }
p { max-width: 72ch; }
p + p { margin-top: .8rem; }
.shell { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; clip-path: inset(50%); padding: .85rem; z-index: 5; background: white; }
.skip-link:focus { clip-path: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-home .site-header { background: var(--night); color: white; border-color: #ffffff25; }
.site-home .site-header .vifly-link { color: #dfd2ff; }
.site-home .site-header :focus-visible { outline-color: #d9c7ff; }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1.6rem; justify-content: space-between; min-height: 4.7rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-size: .95rem; white-space: nowrap; letter-spacing: .06em; }
.brand strong { position: relative; font-size: 1.19rem; letter-spacing: -.025em; font-weight: 800; }
.brand span { width: .43rem; height: .43rem; border-radius: 50%; margin-left: .15rem; background: var(--accent); display: inline-block; vertical-align: .11em; }
.primary-nav, .site-footer nav { display: flex; gap: clamp(.8rem, 3vw, 2.1rem); align-items: center; }
.primary-nav a, .vifly-link, .site-footer nav a { font-size: .89rem; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav [aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.vifly-link { color: var(--accent-dark); white-space: nowrap; }
.hero { position: relative; isolation: isolate; background: linear-gradient(120deg, var(--night) 58%, #2d1e56); color: white; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(70vw, 900px); aspect-ratio: 1; right: -20%; top: -35%; border: 1px solid #f1e8ff45; border-radius: 50%; transform: rotate(-27deg) scaleY(.55); }
.hero::after { content: ""; position: absolute; z-index: -1; width: min(76vw, 960px); aspect-ratio: 1; right: -25%; top: -40%; border: 1px solid #f1e8ff29; border-radius: 50%; transform: rotate(-27deg) scaleY(.55); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: clamp(2.2rem, 6vw, 5.9rem); align-items: center; padding-block: clamp(3rem, 8vw, 7.5rem); }
.hero-copy h1 { font-family: var(--body); font-size: clamp(2.7rem, 5.7vw, 5.85rem); font-weight: 780; letter-spacing: -.04em; line-height: .99; text-wrap: initial; }
.hero-copy h1 em { display: block; font-style: normal; color: #d9c7ff; }
.lead { margin-top: 1.45rem; color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.23rem); line-height: 1.6; max-width: 56ch; }
.hero-copy .lead { max-width: 49ch; color: #e3ddef; }
.hero-actions .button { background: #d9c7ff; border-color: #d9c7ff; color: #22174c; }
.hero-actions .button:hover { background: #f0e7ff; border-color: #f0e7ff; }
.hero-actions .text-link { color: #f0e7ff; }
.hero :focus-visible { outline-color: #f3e6ff; }
.hero-actions, .result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.3rem; margin-top: 1.65rem; }
.button { display: inline-flex; min-height: 3.15rem; padding: .65rem 1.05rem; gap: .9rem; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: .7rem; background: var(--accent); color: white; cursor: pointer; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .16s; }
.button:hover { background: var(--accent-dark); }
.button:disabled { opacity: .7; cursor: progress; }
.button-small { min-height: 2.75rem; font-size: .9rem; }
.button-secondary { background: transparent; color: var(--accent-dark); }
.button-secondary:hover { background: #ded4f2; }
.text-link { display: inline-flex; gap: .45em; min-height: 2.75rem; align-items: center; color: var(--accent-dark); font-weight: 700; }
.specimen { min-width: 0; background: var(--white); color: var(--ink); border-radius: 1rem; box-shadow: 0 1.8rem 4rem #0b082866; overflow: hidden; }
.specimen a:focus-visible { outline-color: var(--accent); }
.specimen-bar, .specimen-foot { min-height: 3.25rem; display: flex; align-items: center; gap: .65rem; padding: .7rem clamp(1rem, 3vw, 1.55rem); font-size: .9rem; font-weight: 700; }
.specimen-bar { flex-wrap: wrap; background: #f1ecfa; color: #3e2b61; }
.specimen-domain { margin-inline-start: auto; font-size: .78rem; color: #57456e; font-weight: 600; overflow-wrap: anywhere; }
.specimen-result { display: grid; align-items: start; gap: .45rem; }
.specimen-result strong { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25; letter-spacing: -.02em; }
.specimen-status { justify-self: start; padding: .18rem .46rem; border-radius: .32rem; font-size: .77rem; font-weight: 700; background: #f7e9d5; color: #713f20; }
.specimen-dot { width: .58rem; height: .58rem; border-radius: 50%; background: var(--green); }
.specimen-body { padding: clamp(1rem, 3vw, 1.55rem); }
.minor { color: var(--muted); font-size: .88rem; }
.before-after { display: grid; gap: .6rem; margin: .95rem 0 1.12rem; }
.before-after div { padding: .8rem .9rem; border-radius: .7rem; background: #f5f4f8; }
.before-after .example-change { background: #ebe4fb; }
.before-after dt { font-size: .76rem; font-weight: 700; color: #434d42; }
.before-after dd { margin: .14rem 0 0; font-family: var(--display); font-size: clamp(1.28rem, 2.2vw, 1.65rem); line-height: 1.2; }
.specimen-body > p:last-child { color: var(--muted); font-size: .93rem; }
.specimen-foot { border-top: 1px solid var(--line); color: var(--accent-dark); }
.specimen-foot a { min-height: 2rem; display: inline-flex; align-items: center; gap: .5rem; }
.pathways { padding-block: clamp(3.8rem, 7vw, 6.2rem); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2rem; }
.section-intro p { max-width: 29ch; color: var(--muted); }
.pathway { border-top: 1px solid var(--line); }
.pathway:last-child { border-bottom: 1px solid var(--line); }
.pathway a { display: grid; grid-template-columns: minmax(18rem, .9fr) minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: center; min-height: 5.6rem; padding: 1rem .22rem; text-decoration: none; }
.pathway a:hover strong { color: var(--accent-dark); text-decoration: underline; }
.pathway strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.7vw, 2.25rem); letter-spacing: -.02em; }
.pathway span:not(.arrow) { color: var(--muted); max-width: 41ch; }
.arrow { color: var(--accent-dark); font-size: 1.2rem; }
.guides-band { background: var(--ink); color: #f6f6ef; }
.guides-layout { display: grid; grid-template-columns: .95fr 1fr; gap: 1.8rem 4rem; align-items: center; padding-block: clamp(2.85rem, 5vw, 4.6rem); }
.guides-layout h2 { max-width: 13ch; }
.guides-layout a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #5d6377; min-height: 3.5rem; text-decoration: none; }
.guides-layout a:hover { color: var(--green); }
.guides-layout a:focus-visible { outline-color: var(--green); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer nav { flex-wrap: wrap; gap: .45rem 1.3rem; }
.site-footer nav a:hover { text-decoration: underline; }
.work-page { padding-block: clamp(2.7rem, 6vw, 5rem); min-height: 68vh; }
.work-head { margin-bottom: clamp(1.7rem, 4vw, 3.1rem); }
.work-head h1, .guide h1 { font-size: clamp(2.9rem, 6vw, 5.25rem); max-width: 17ch; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(1rem, 5vw, 3.5rem); align-items: start; }
.position-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.work-panel { border: 1px solid var(--line); background: var(--white); padding: clamp(1rem, 3vw, 1.65rem); border-radius: .95rem; }
.audit-workspace { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .8fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.audit-page .work-head h1 { font-family: var(--body); font-weight: 780; line-height: 1.04; max-width: 18ch; }
.audit-form { position: relative; padding: clamp(1.1rem, 4vw, 2.15rem); }
.audit-form:focus-within { border-color: #9d83df; }
.audit-scope { padding: .6rem 0; }
.audit-scope h2 { font-size: 1.6rem; margin-bottom: .65rem; }
.audit-scope ul { list-style: none; margin: 0; padding: 0; }
.audit-scope li span { display: block; margin-top: .12rem; color: var(--muted); font-size: .88rem; }
.audit-limits { margin-top: 1.2rem; max-width: 68ch; }
.audit-limits a { color: var(--accent-dark); font-weight: 700; }
.audit-scope li { border-bottom: 1px solid var(--line); padding: .7rem .8rem; }
.audit-scope li[data-section] { border-inline-start: 1px solid var(--section-color); background: var(--section-wash); }
.audit-scope li:first-child { border-radius: .5rem .5rem 0 0; }
.audit-scope li:last-child { border-radius: 0 0 .5rem .5rem; }
.audit-scope [data-section="index"], .audit-card[data-section="index"], .audit-section-detail[data-section="index"] { --section-color: #5b32a1; --section-wash: #f3edfc; }
.audit-scope [data-section="content"], .audit-card[data-section="content"], .audit-section-detail[data-section="content"] { --section-color: #87511f; --section-wash: #fbf3e7; }
.audit-scope [data-section="mobile"], .audit-card[data-section="mobile"], .audit-section-detail[data-section="mobile"] { --section-color: #14624f; --section-wash: #e9f5ef; }
.audit-scope [data-section="geo"], .audit-card[data-section="geo"], .audit-section-detail[data-section="geo"] { --section-color: #075e7d; --section-wash: #e9f5f9; }
.audit-scope [data-section="speed"], .audit-card[data-section="speed"], .audit-section-detail[data-section="speed"] { --section-color: #3a52a1; --section-wash: #eff2fd; }
.audit-page > .audit-report { margin-top: clamp(2rem, 5vw, 4rem); padding: 0; border: 0; background: transparent; }
.audit-page > .audit-report > * + * { margin-top: 1.5rem; }
.audit-report h2, .audit-report h3 { font-family: var(--body); font-weight: 750; letter-spacing: -.025em; text-wrap: balance; }
.audit-report h2 { font-size: 2.6rem; margin: 0 0 .55rem; }
.audit-report h3 { font-size: 1.36rem; }
.audit-report h4, .audit-report h5 { margin: 0; font-size: 1rem; line-height: 1.35; }
.audit-dashboard-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.25rem; padding: clamp(1rem, 3.5vw, 2.25rem); border-radius: 1rem; background: linear-gradient(113deg, #171332 56%, #2e2159); color: #fff; }
.audit-dashboard-head :focus-visible { outline-color: #ded0ff; }
.audit-dashboard-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.audit-dashboard-actions .button { background: #e4d8ff; border-color: #e4d8ff; color: #201744; }
.audit-dashboard-actions .button:hover { background: #fff; border-color: #fff; }
.audit-dashboard-actions .button-secondary { background: transparent; border-color: #ac99d2; color: #f9f5ff; }
.audit-dashboard-actions .button-secondary:hover { background: #45346c; color: #fff; }
.audit-provenance { display: flex; flex-wrap: wrap; gap: .15rem .8rem; color: #e7ddf9; font-size: .91rem; }
.audit-target { overflow-wrap: anywhere; }
.audit-source-note { margin-top: .5rem; color: #e7ddf9; font-size: .85rem; }
.audit-date { margin: 0; color: #cec0e8; font-variant-numeric: tabular-nums; }
.audit-dashboard-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 1rem 0 0; border-top: 1px solid #fff3; list-style: none; }
.audit-dashboard-stats li { display: flex; flex-direction: column; align-items: start; padding: .7rem .75rem; border-radius: .62rem; background: #2c244b; color: var(--stat-color, #ece3ff); }
.audit-dashboard-stats strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; line-height: 1.05; }
.audit-dashboard-stats span { margin-top: .25rem; font-weight: 620; font-size: .79rem; }
.audit-dashboard-stats [data-state="blocking"] { --stat-color: #ffb7c2; }
.audit-dashboard-stats [data-state="review"] { --stat-color: #ffce8f; }
.audit-dashboard-stats [data-state="unknown"] { --stat-color: #a7caff; }
.audit-dashboard-stats [data-state="ok"] { --stat-color: #a0edc3; }
.audit-dashboard-stats [data-state="info"] { --stat-color: #dacaf4; }
.audit-plan { padding: clamp(1rem, 3.5vw, 1.7rem); border: 1px solid #dcd8ec; background: #fff; border-radius: .9rem; }
.audit-plan-content > p, .audit-plan-notes { margin-top: .7rem; }
.audit-priorities { margin: .85rem 0 0; padding: 0; list-style: none; counter-reset: audit-priority; }
.audit-priorities > li { position: relative; counter-increment: audit-priority; padding: .78rem 0 .7rem 2.45rem; border-top: 1px solid var(--line); }
.audit-priorities > li::before { content: counter(audit-priority); position: absolute; inset-block-start: .8rem; inset-inline-start: 0; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: .38rem; background: #eee8fb; color: var(--accent-dark); font-size: .83rem; font-weight: 750; }
.audit-priority-head, .audit-check-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .55rem; }
.audit-next-action { margin-top: .3rem; color: var(--muted); }
.audit-open, .audit-pagespeed { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; background: none; border: 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; font-weight: 700; font-size: .89rem; }
.audit-open:hover, .audit-pagespeed:hover { text-decoration-thickness: .15em; }
.audit-change-good, .audit-change-warning { border-radius: .5rem; padding: .65rem .8rem; background: #e5f4eb; color: #15563a; }
.audit-change-warning { background: #fae8e6; color: #902c38; }
.audit-plan-notes > * + * { margin-top: .7rem; }
.audit-redirects ol { margin: .25rem 0 .5rem; padding-inline-start: 1.5rem; color: var(--muted); overflow-wrap: anywhere; }
.audit-explorer-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.audit-filter { display: flex; flex-wrap: wrap; gap: .2rem; padding: .2rem; background: #ede8f7; border-radius: .64rem; }
.audit-filter button { min-height: 2.75rem; padding: .28rem .65rem; border: 1px solid transparent; border-radius: .5rem; background: transparent; color: #493b64; font-size: .87rem; font-weight: 690; cursor: pointer; }
.audit-filter button:hover { background: #e1d8f3; }
.audit-filter button[aria-pressed="true"] { background: #fff; border-color: #bcaed9; color: #312354; }
.audit-section-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: .85rem; }
.audit-card { grid-column: span 2; min-width: 0; align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .36rem .75rem; align-content: start; align-items: center; min-height: 8.15rem; padding: .95rem 1rem; border: 1px solid #d8dce9; border-top-color: var(--section-color, #52426b); border-radius: .9rem; background: var(--section-wash, #f1f0f7); color: var(--section-color, #52426b); text-align: start; cursor: pointer; }
.audit-card[data-section="geo"], .audit-card[data-section="speed"] { grid-column: span 3; }
.audit-card::after { content: ''; grid-area: 1 / 2; width: .48rem; height: .48rem; margin-inline-end: .18rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.audit-card[aria-expanded="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.audit-card[aria-expanded="true"]::after { transform: rotate(225deg); }
.audit-card:hover .audit-card-title { text-decoration: underline; text-underline-offset: .2em; }
.audit-card-title { font-size: 1.11rem; font-weight: 770; line-height: 1.22; letter-spacing: -.02em; }
.audit-section-detail { margin-top: .85rem; border: 1px solid #d8dce9; border-radius: .9rem; background: #fff; }
.audit-section-detail-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; padding: .45rem 1rem; border-radius: .85rem .85rem 0 0; background: var(--section-wash, #f1f0f7); color: var(--section-color, #52426b); }
.audit-section-detail-head h4 { font-size: 1.13rem; }
.audit-section-detail:focus-visible { outline-offset: 3px; }
.audit-card-count, .audit-card-notice { grid-column: 1 / -1; font-size: .84rem; }
.audit-card-notice { color: #38334c; }
.audit-card-bar { grid-column: 1 / -1; display: flex; gap: .18rem; height: .33rem; margin-block: .3rem; }
.audit-card-bar i { background: #a092b7; flex: 1; border-radius: .15rem; }
.audit-card-bar [data-state="blocking"] { background: #b02845; }
.audit-card-bar [data-state="review"] { background: #aa6518; }
.audit-card-bar [data-state="unknown"] { background: #345d9c; }
.audit-card-bar [data-state="ok"] { background: #237959; }
.audit-card-body { padding-inline: .9rem; }
.audit-check { padding: .8rem .12rem; }
.audit-check + .audit-check { border-top: 1px solid var(--line); }
.audit-check:focus { outline: 2px solid #6f52ba; outline-offset: .15rem; border-radius: .3rem; }
.audit-evidence, .audit-check-action { margin-top: .3rem; color: var(--muted); overflow-wrap: anywhere; }
.audit-check-action { color: var(--ink); }
.audit-link-results { display: grid; gap: .4rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.audit-link-results li { display: flex; flex-wrap: wrap; gap: .3rem .65rem; align-items: baseline; padding: .4rem .55rem; border-radius: .4rem; background: #f0edf8; font-size: .84rem; }
.audit-link-results strong { color: #453467; }
.audit-link-results [data-state="broken"] strong { color: #a02845; }
.audit-link-results span { color: var(--muted); overflow-wrap: anywhere; }

.audit-report .signal-ok { background: #e4f4ea; color: #205841; }
.audit-report .signal-info { background: #f0eaf8; color: #573d7b; }
.audit-report .signal-unknown { background: #e5effc; color: #284d87; }
.audit-measurements { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-block: .12rem; }
.audit-measurements > span { display: flex; flex-direction: column; gap: .08rem; }
.audit-metric-label { font-size: .78rem; line-height: 1.25; }
.audit-measurements strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.audit-report-limit, .audit-no-actions { padding: .65rem .8rem; background: #f0edf8; border-radius: .55rem; color: #49415e; font-size: .9rem; }
@media (max-width: 800px) {
  .audit-workspace, .audit-dashboard-head { grid-template-columns: minmax(0, 1fr); }
  .audit-card, .audit-card[data-section] { grid-column: span 3; }
}
@media (max-width: 560px) {
  .audit-report h2 { font-size: 2rem; }
  .audit-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audit-dashboard-stats li { padding-inline: .43rem; }
  .audit-dashboard-stats strong { font-size: 1.45rem; }
  .audit-dashboard-stats span { font-size: .75rem; overflow-wrap: anywhere; }
  .audit-card, .audit-card[data-section] { grid-column: 1 / -1; }
  .audit-check-head, .audit-priority-head { gap: .3rem .46rem; }
}
@media (max-width: 420px) { .specimen-domain { margin-inline-start: 0; } }
.work-panel h2, .side-guide h2 { font-size: 1.98rem; margin-bottom: .8rem; }
.work-panel h2 + p { margin-bottom: 1rem; }
.side-guide { border-top: 1px solid var(--ink); padding-top: 1.05rem; }
.side-guide p { color: var(--muted); }
.side-guide a { margin-top: .45rem; }
label { display: block; margin-bottom: .36rem; font-weight: 700; font-size: .92rem; }
label small { color: var(--muted); font-weight: 400; margin-left: .4em; }
input, select, textarea { min-width: 0; width: 100%; min-height: 3.15rem; padding: .62rem .75rem; border-radius: .6rem; border: 1px solid #73768a; background: #fff; color: var(--ink); caret-color: var(--accent); }
input::placeholder { color: #606476; }
.fields-inline { display: flex; gap: .65rem; }
.fields-inline input { flex: 1; }
.field { margin-bottom: .9rem; }
.hint, .status { font-size: .87rem; color: var(--muted); margin-top: .65rem; }
.status:empty { display: none; }
.status[data-kind=error] { color: var(--negative); font-weight: 700; }
.status[data-kind=working] { color: var(--accent-dark); }
.result-region { margin-top: 1.1rem; min-width: 0; background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.65rem); border-radius: .8rem; }
.result-region h2 { font-size: clamp(2rem, 3.55vw, 2.7rem); margin-bottom: .65rem; }
.result-region > * + * { margin-top: .78rem; }
.result-meta, .observed { color: var(--muted); overflow-wrap: anywhere; }
.result-meta { font-size: .85rem; font-variant-numeric: tabular-nums; }
.actions-list { list-style: none; padding: 0; margin: .4rem 0 0; }
.actions-list li { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; padding: 1rem 0; align-items: start; }
.actions-list h3 { grid-column: 1; }
.actions-list p { grid-column: 1 / -1; margin: 0; }
.actions-list .signal { grid-column: 2; grid-row: 1; }
.signal { padding: .18rem .48rem; background: #f2e6d8; color: var(--warn); border-radius: .25rem; font-size: .76rem; font-weight: 700; }
.signal-blocking { background: #f6dfe1; color: var(--negative); }
.note-good { padding: .6rem .75rem; color: var(--good); background: var(--green); margin: .75rem 0; }
.audit-context { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .4rem; }
.audit-context .field { margin-top: .6rem; }
.audit-context summary small { color: var(--muted); font-weight: 400; margin-left: .35em; }
.title-suggestion { background: var(--green); padding: .9rem 1rem; margin-block: .85rem; }
.proposal { font-family: var(--display); font-size: 1.3rem; margin-top: .4rem; }
.checks { border-top: 1px solid var(--line); padding-top: .6rem; }
summary { min-height: 2.3rem; cursor: pointer; font-weight: 700; }
.measure-list { margin: .65rem 0 0; }
.measure-list div { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.measure-list dt { font-size: .86rem; font-weight: 700; }
.measure-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.draft-result { margin-top: 0; }
.draft-result .result-actions { margin-top: .6rem; }
.draft-output { resize: vertical; line-height: 1.5; }
#position-manual { margin-top: .65rem; }
.position-journal { margin-top: 1.15rem; }
.position-journal-heading { max-width: 70ch; }
.position-entry-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0 1rem; }
.position-absent { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.position-absent input { width: 1.2rem; min-height: 1.2rem; }
.position-history-controls { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.position-history-controls select { max-width: 42rem; }
.position-history-list { list-style: none; padding: 0; margin: .7rem 0 1rem; }
.position-history-list li { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: .25rem .8rem; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.position-history-list .result-meta { margin: .1rem 0 0; }
.position-remove { background: none; padding: .25rem .2rem .25rem 0; min-height: 2rem; border: 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .16em; font-size: .85rem; cursor: pointer; }
.position-history-list time { color: var(--muted); font-size: .84rem; }
.gsc-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .6rem .9rem; align-items: end; margin-top: 1rem; }
.gsc-filters select, .gsc-filters input { margin-top: .35rem; }
.gsc-worklist .result-actions { margin: .7rem 0 1rem; }
.gsc-reason, .gsc-action { display: block; margin-top: .35rem; }
.gsc-reason { color: var(--accent-dark); font-size: .82rem; font-weight: 700; }
.gsc-action { color: var(--muted); max-width: 55ch; }
.gsc-worklist td { vertical-align: top; }
.table-scroll { overflow-x: auto; margin-block: .75rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; font-variant-numeric: tabular-nums; }
td, th { padding: .63rem .65rem; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { min-width: 10rem; overflow-wrap: anywhere; }
.guide { padding-block: clamp(2.8rem, 7vw, 5.8rem); }
.guide header { margin-bottom: 2.4rem; }
.guide h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); margin: 2rem 0 .65rem; }
.guide .button { margin-top: 1rem; }
.guide .source { margin-top: 1rem; font-size: .89rem; color: var(--muted); }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2.1rem; }
  .hero-copy h1 { max-width: 16ch; }
  .specimen { max-width: 33rem; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .pathway a { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) auto; gap: .6rem 1rem; }
}
@media (max-width: 570px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding-top: .75rem; }
  .vifly-link { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; align-items: stretch; justify-content: space-between; gap: .45rem; }
  .primary-nav a { display: flex; align-items: center; min-height: 2.7rem; font-size: .8rem; }
  .section-intro, .footer-inner { display: grid; justify-content: stretch; align-items: start; }
  .footer-inner { padding-block: 1.1rem; gap: .65rem; }
  .pathway a { grid-template-columns: 1fr auto; gap: .1rem 1rem; }
  .pathway .arrow { grid-column: 2; grid-row: 1 / 3; }
  .guides-layout, .position-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { align-items: flex-start; gap: .4rem 1rem; }
  .fields-inline { display: grid; }
  .fields-inline button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Guides and applied SEO tools */
.knowledge-head h1 { max-width: 19ch; }
.chapter-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; padding-block: .8rem; border-block: 1px solid var(--line); }
.chapter-nav a { display: inline-flex; min-height: 2.65rem; align-items: center; font-weight: 700; color: var(--accent-dark); }
.knowledge-group { display: grid; grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr); gap: 1.2rem 4rem; align-items: start; margin-top: clamp(2.6rem, 6vw, 5.2rem); }
.knowledge-group header p { color: var(--muted); margin-top: .6rem; }
.knowledge-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding-block: .95rem; text-decoration: none; border-top: 1px solid var(--line); }
.knowledge-list a:last-child { border-bottom: 1px solid var(--line); }
.knowledge-list strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.22; }
.knowledge-list a:hover strong { color: var(--accent-dark); text-decoration: underline; }
.knowledge-list span { color: var(--muted); grid-column: 1; }
.knowledge-list b { color: var(--accent-dark); grid-column: 2; grid-row: 1 / 3; align-self: center; }
.breadcrumbs { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; font-size: .9rem; color: var(--accent-dark); }
.breadcrumbs a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.reference-article h1 { max-width: 21ch; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .4fr); align-items: start; gap: 2rem clamp(2rem, 7vw, 6rem); }
.article-content section:first-child h2 { margin-top: 0; }
.article-side, .plan-progress { position: sticky; top: 1.2rem; }
.article-side nav { display: grid; padding-block: .9rem; border-top: 1px solid var(--line); }
.article-side a { color: var(--accent-dark); font-size: .91rem; padding-block: .4rem; min-height: 2.25rem; }
.side-heading { font-weight: 700; margin-bottom: .3rem; }
.takeaway { margin-block: 2.4rem; padding: 1.2rem clamp(1rem, 3vw, 1.8rem); background: var(--green); }
.takeaway h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.guide-faq details { border-top: 1px solid var(--line); padding-block: .57rem; }
.guide-faq details:last-child { border-bottom: 1px solid var(--line); }
.guide-faq details p { margin-bottom: .5rem; color: var(--muted); }
.guide-sources { color: var(--muted); font-size: .9rem; }
.guide-sources h2 { color: var(--ink); font-size: 1.75rem; }
.guide-sources ul { padding-inline-start: 1.15rem; }
.guide-sources li + li { margin-top: .42rem; }
.plan-weeks { display: grid; gap: 2.2rem; }
.plan-week { border-top: 1px solid var(--line); padding-top: .9rem; }
.plan-week h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-top: .3rem; }
.plan-week ul { list-style: none; margin: .7rem 0 0; padding: 0; }
.plan-week li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .75rem; align-items: center; padding-block: .42rem; border-bottom: 1px solid var(--line); }
.plan-week label { display: flex; align-items: center; gap: .55rem; margin: 0; min-height: 2.65rem; }
.plan-week input[type=checkbox], .device-switch input { flex: 0 0 auto; width: 1.12rem; min-height: 0; height: 1.12rem; accent-color: var(--accent); }
.plan-week li:has(input:checked) label { color: var(--good); }
.plan-week li > a { color: var(--accent-dark); padding-block: .45rem; font-weight: 600; font-size: .86rem; }
.plan-progress output { margin-bottom: .5rem; display: block; font-variant-numeric: tabular-nums; font-weight: 700; }
.plan-progress progress { width: 100%; height: .7rem; border: none; background: var(--paper); accent-color: var(--accent); }
.plan-progress button { margin-top: .85rem; }
.snippet-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.snippet-preview { min-width: 0; }
.snippet-code { margin-top: .7rem; font-family: ui-monospace, monospace; font-size: .86rem; min-height: 5.5rem; }
.device-switch { display: flex; align-items: center; gap: 1rem; border: 0; padding: 0; margin: 0 0 .8rem; }
.device-switch legend { margin-bottom: .35rem; font-weight: 700; }
.device-switch label { display: flex; align-items: center; gap: .35rem; min-height: 2.3rem; }
.sample-result { width: 100%; max-width: 35.5rem; padding: 1.1rem; background: white; border: 1px solid var(--line); border-radius: .6rem; }
[data-device=mobile] .sample-result { max-width: 23rem; }
.sample-result > p { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
#preview-url { color: var(--muted); font-size: .86rem; -webkit-line-clamp: 1; }
#preview-title { color: var(--accent-dark); line-height: 1.22; font-size: 1.32rem; font-weight: 650; margin-top: .42rem; -webkit-line-clamp: 1; }
#preview-description { color: var(--muted); line-height: 1.48; margin-top: .35rem; -webkit-line-clamp: 2; }
[data-device=mobile] #preview-title { -webkit-line-clamp: 2; }
[data-device=mobile] #preview-description { -webkit-line-clamp: 3; }
@media (max-width: 800px) {
  .knowledge-group, .article-grid, .snippet-grid { grid-template-columns: minmax(0, 1fr); }
  .article-side, .plan-progress { position: static; }
}
@media (max-width: 390px) {
  .primary-nav { flex-wrap: wrap; }
  .primary-nav a { min-height: 2.05rem; }
}
.guide-table { margin-block: 2.3rem; }
.guide-table caption { text-align: left; font-weight: 750; font-size: 1rem; margin-bottom: .55rem; }
.guide-table table { min-width: 31rem; }
.guide-table thead { background: var(--white); }
.guide-table th:first-child { min-width: 7rem; }
