*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { min-height: var(--target); }
button, input, select, textarea, a, summary { outline-offset: 2px; }
/* Focus also applies to concept pages and shared controls outside .page. */
:focus-visible { outline: 3px solid var(--focus); }
:where(input, select, textarea):focus-visible { outline-offset: 1px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 720; letter-spacing: -.035em; }
h1 { font-size: clamp(35px, 4.7vw, 56px); }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
/* Legacy concept routes keep their geometry; v3 views own their insets. */
.page-width { width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; padding-inline: 0; }
.eyebrow { display: block; }
.sr-only { padding: 0; margin: -1px; border: 0; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 16px; padding: 12px 20px; border-radius: 10px; background: var(--teal); color: white; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
/* Existing long action labels must still wrap at 320px. */
.button { min-width: 0; padding-block: 12px; line-height: 1.2; text-align: center; white-space: normal; }
/* Legacy status names share the v3 colors until their views adopt .status. */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--ready-bg); color: var(--ready-fg); font: 650 13px/1.2 var(--font); }
.badge-coral { background: var(--coral); color: var(--coral-ink); }
/* Feature panels already own their insets; avoid adding a second padding. */
.panel { padding: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 22px; }
.section-heading h2 { font-size: 27px; }
.section-heading p { color: var(--muted); margin-top: 5px; font-size: 14px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 0; height: auto; padding: 24px; min-height: 238px; border: 1px solid transparent; border-radius: var(--radius-card); background: white; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgb(16 28 45 / 8%); border-color: #c3d9d3; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.tool-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 55px; height: 55px; border-radius: var(--radius-icon); }
.tool-symbol .icon { width: 30px; height: 30px; }
.tool-symbol.small { width: 44px; height: 44px; border-radius: 15px; }
.tool-symbol.small .icon { width: 26px; height: 26px; }
.tool-status { font-size: 10px; color: var(--muted); }
.tool-status.planned { font-weight: 650; background: #f1f3f6; border-radius: var(--radius-pill); padding: 5px 12px; }
.tool-card h3 { font-size: 21px; margin-bottom: 9px; }
.tool-card > p { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 290px; }
.tool-card-bottom { margin-top: auto; padding-top: 23px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool-formats { font-size: 10px; color: var(--muted); font-weight: 750; letter-spacing: .02em; }
.tool-action { display: inline-flex; align-items: center; gap: 12px; color: var(--teal); font-size: 12px; font-weight: 700; }
.arrow-circle { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #edf5f2; }
.arrow-circle .icon { width: 17px; height: 17px; }
.featured { background: var(--teal-dark); color: white; }
.featured:hover { border-color: #187e71; box-shadow: 0 14px 30px rgb(7 90 83 / 16%); }
.featured > p, .featured .tool-status, .featured .tool-formats { color: #d1e5e1; }
.featured .tool-action { color: white; }
.featured .arrow-circle { background: #317f76; }
.scope-note { display: flex; align-items: center; gap: 12px; background: #e6ebf1; border-radius: 20px; padding: 16px 20px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.scope-note .icon { width: 18px; height: 18px; }
.scope-note p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.scope-note a { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; color: var(--teal); font-weight: 650; }
.scope-note a .icon { width: 14px; height: 14px; }
.no-results { grid-column: 1 / -1; background: white; padding: 48px 28px; border-radius: var(--radius-card); text-align: center; }
.no-results .tool-symbol { margin-bottom: 16px; }
.no-results h3 { overflow-wrap: anywhere; }
.no-results p { color: var(--muted); margin: 12px 0 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 13px; font-weight: 650; min-height: 44px; margin-top: 8px; }
.back-link .icon { width: 18px; height: 18px; }
.page-intro { margin: 22px 0 32px; }
.page-intro h1 { margin: 15px 0 16px; font-size: clamp(32px,4vw,44px); }
.page-intro > p { max-width: 660px; color: var(--muted); font-size: 16px; }
.concept-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.concept-plan, .concept-visual { padding: 32px; }
.concept-plan h2 { font-size: 25px; margin: 20px 0; }
.concept-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.concept-steps li { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 14px; }
.concept-steps li > span { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; background: var(--mint); color: var(--teal); border-radius: 50%; font-size: 11px; font-weight: 750; }
.concept-plan > p { font-size: 13px; margin-bottom: 22px; }
.concept-visual { background: #e3eeeb; display: flex; flex-direction: column; justify-content: center; }
.concept-visual h2 { font-size: 25px; margin-top: 12px; }
.concept-example { background: white; border-radius: 20px; padding: 16px; margin: 28px 0; box-shadow: var(--shadow); }
.concept-example > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 15px 8px; font-size: 12px; }
.concept-example > div + div { border-top: 1px solid var(--line); }
.concept-example > div > span:last-child { color: var(--teal); font-weight: 650; }
.inline-note { display: flex; align-items: start; gap: 12px; color: var(--muted); font-size: 12px; }
.inline-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.pdf-concept-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.pdf-source, .pdf-destination { padding: 28px; }
.pdf-source { background: #e5ebe9; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 23px; }
.small-label { font-size: 11px; color: var(--muted); }
.pdf-page { max-width: 300px; margin: auto; padding: 28px; background: white; box-shadow: 0 10px 30px rgb(16 28 45 / 8%); border-radius: 4px 18px 18px 4px; }
.paper-kicker { font-size: 8px; letter-spacing: .12em; color: var(--teal); font-weight: 750; }
.pdf-page h3 { font-size: 28px; margin-top: 20px; line-height: 1.12; }
.paper-art { position: relative; background: var(--mint); margin: 28px 0 16px; height: 165px; border-radius: 2px 32px 2px 2px; overflow: hidden; }
.paper-circle { width: 135px; height: 135px; border-radius: 50%; background: #badfce; position: absolute; right: -20px; top: -20px; }
.paper-block { position: absolute; width: 90px; height: 60px; border-radius: 5px 5px 16px 16px; background: var(--teal-dark); left: 28px; bottom: 27px; transform: skewY(-5deg); }
.paper-line { position: absolute; width: 70px; height: 7px; border-radius: 50%; background: #abccbf; left: 38px; bottom: 13px; }
.pdf-page p { font-size: 9px; color: var(--muted); }
.second-page .paper-art { background: var(--coral); }
.second-page .paper-circle { background: #f5c5ab; }
.second-page .paper-block { background: #a65833; }
.pdf-pager { display: flex; align-items: center; gap: 8px; margin: 22px auto 0; max-width: 300px; }
.page-dot { width: 44px; height: 44px; border-radius: 14px; border: 0; background: white; font-size: 13px; }
.page-dot.selected { background: var(--teal-dark); color: white; }
.pdf-pager > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.pdf-destination > p { font-size: 14px; }
.conversion-option { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.option-icon { color: var(--teal); width: 36px; flex-shrink: 0; }
.conversion-option h3 { font-size: 17px; }
.conversion-option p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.availability { display: inline-block; font-size: 10px; color: #914026; margin-top: 10px; }
.pdf-destination .inline-note { margin: 22px 0; }
.reading-intro { max-width: 750px; margin-bottom: 40px; }
.reading-intro h1 { font-size: clamp(36px,4.7vw,56px); }
.reading-intro > p { font-size: 17px; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reading-panel { padding: 32px; }
.reading-panel h2 { font-size: 25px; margin: 12px 0 20px; }
.reading-panel > p { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.reading-panel .button { margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; font-weight: 650; font-size: 13px; color: var(--teal); }

@media (max-width: 1100px) {
  .page-width { width: calc(100% - 64px); }
  .tool-card { padding: 22px; }
  .tool-card h3 { font-size: 19px; }
  .tool-card > p { font-size: 13px; }
  .tool-status { font-size: 9px; }
  .tool-action { gap: 6px; }
}
@media (max-width: 800px) {
  .page-width { width: calc(100% - 40px); }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .tool-card { min-height: 235px; }
  .tool-status { font-size: 10px; }
  .concept-layout, .pdf-concept-grid, .reading-grid { grid-template-columns: 1fr; }
  .concept-visual { min-height: 330px; }
  .pdf-page { max-width: 330px; }
  .pdf-destination { padding: 28px; }
}
@media (max-width: 620px) {
  .page-width { width: calc(100% - 36px); }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { font-size: 13px; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { padding: 24px; min-height: 236px; border-radius: 28px; }
  .tool-card h3 { font-size: 23px; }
  .tool-card > p { font-size: 14px; max-width: 100%; }
  .tool-card-top { margin-bottom: 15px; }
  .tool-symbol { width: 55px; height: 55px; }
  .tool-status { font-size: 11px; }
  .tool-card-bottom { padding-top: 22px; }
  .tool-action { font-size: 13px; gap: 12px; }
  .tool-formats { font-size: 10px; }
  .scope-note { align-items: start; border-radius: 18px; padding: 16px; font-size: 11px; line-height: 1.7; }
  .scope-note > .icon { margin-top: 3px; }
  .scope-note a { min-height: 44px; }
  .page-intro { margin: 15px 0 28px; }
  .page-intro h1 { font-size: 35px; }
  .page-intro > p { font-size: 14px; }
  .concept-plan, .concept-visual, .reading-panel, .pdf-source, .pdf-destination { padding: 24px; border-radius: 28px; }
  .concept-layout, .pdf-concept-grid, .reading-grid { gap: 16px; }
  .concept-visual h2, .concept-plan h2 { font-size: 23px; }
  .concept-example { padding: 10px; }
  .concept-example > div { font-size: 10px; gap: 7px; }
  .concept-plan .button, .pdf-destination .button { width: 100%; }
  .pdf-page { padding: 24px; }
  .panel-heading { gap: 8px; }
  .panel-heading h2 { font-size: 21px; }
  .reading-intro h1 { font-size: 38px; }
  .reading-panel h2 { font-size: 24px; }
  .reading-panel > p { font-size: 14px; }
}
@media (max-width: 360px) {
  .section-heading h2 { font-size: 22px; }
  .tool-card { padding: 21px; }
  .tool-card h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.workspace-guidance .text-link { margin-right: 18px; }
