[hidden] { display: none !important; }
body { background: radial-gradient(ellipse at 12% 0,rgba(227,238,231,.72),transparent 38%),var(--paper); }
.tool-shell { width: min(1120px,calc(100% - 64px)); margin: 0 auto; padding-top: 100px; padding-bottom: 48px; }
.tool-shell :where(h1,h2,h3,p,ol) { margin-top: 0; }
.tool-shell :where(h1,h2,h3) { color: var(--ink-deep); font-family: var(--serif); font-weight: 400; }
.tool-shell :where(a,button,input,textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tool-shell a { text-underline-offset: 4px; }
.tool-skip { position: fixed; z-index: 60; top: 8px; left: 16px; padding: 10px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; transform: translateY(-160%); }
.tool-skip:focus { transform: none; }
.tool-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.tool-intro { max-width: 860px; margin-bottom: 32px; }
.tool-eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tool-intro h1 { max-width: 800px; margin-bottom: 18px; font-size: 42px; line-height: 1.12; letter-spacing: -.025em; }
.tool-lead { max-width: 760px; margin-bottom: 16px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.tool-privacy { max-width: 760px; margin-bottom: 0; padding-left: 14px; border-left: 2px solid var(--sage-deep); color: var(--muted); font-size: 13px; line-height: 1.65; }
.tool-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,360px); align-items: start; gap: 28px; scroll-margin-top: 94px; }
.tool-workspace > * { min-width: 0; }
.tool-paper { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,249,.9); }
.tool-paper h2 { margin-bottom: 10px; font-size: 28px; line-height: 1.2; }
.tool-form-heading { margin-bottom: 22px; }
.tool-form-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.tool-note { margin-bottom: 24px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.tool-field { margin-bottom: 24px; }
.tool-field label { display: block; margin-bottom: 9px; color: var(--ink-deep); font-weight: 600; font-size: 15px; line-height: 1.5; }
.tool-field label span { color: var(--muted); font-size: 13px; font-weight: 400; }
.tool-field input,.tool-field textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; color: var(--ink-deep); border: 1px solid rgba(41,70,60,.22); border-radius: 12px; background: #fffdf9; font: 400 16px/1.55 var(--sans); box-shadow: none; }
.tool-field textarea { resize: vertical; }
.tool-field input::placeholder,.tool-field textarea::placeholder { color: #69766d; opacity: 1; }
.tool-field input:focus,.tool-field textarea:focus { border-color: var(--ink); }
.tool-field--short { max-width: 390px; }
.tool-field-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tool-situations { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.tool-situations legend { max-width: 100%; padding: 0; color: var(--ink-deep); font-size: 15px; font-weight: 600; }
.tool-situations > p { margin-bottom: 16px; }
.tool-situations .tool-field:last-child { margin-bottom: 0; }
.tool-button { display: inline-flex; min-width: 0; min-height: 46px; align-items: center; justify-content: center; gap: 16px; padding: 12px 18px; color: var(--ink); border: 1px solid rgba(41,70,60,.22); border-radius: 12px; background: #fffdf9; font: 600 14px/1.4 var(--sans); text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tool-button--primary { color: #fffdf8; border-color: var(--ink); background: var(--ink); }
.tool-button:hover { border-color: var(--ink); background: var(--sage); }
.tool-button--primary:hover { color: #fffdf8; background: var(--ink-deep); }
.tool-button span[aria-hidden] { font-size: 18px; line-height: 1; }
.tool-status { margin: 0 0 12px; color: var(--ink-deep); font-size: 14px; }
.tool-status:empty { display: none; }
.tool-footnote { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tool-aside { display: grid; gap: 24px; padding-top: 5px; }
.tool-aside h2 { margin-bottom: 12px; font-size: 23px; line-height: 1.2; }
.tool-aside p { margin-bottom: 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.tool-aside section + section { padding-top: 24px; border-top: 1px solid var(--line); }
.tool-aside .tool-button { width: 100%; }
.tool-aside .tool-field-hint { margin-top: 10px; margin-bottom: 0; font-size: 12px; }
.tool-checklist { padding-left: 22px; color: var(--ink-soft); }
.tool-checklist li { margin-bottom: 16px; padding-left: 4px; }
.tool-checklist strong { color: var(--ink-deep); }
.tool-result h2 { scroll-margin-top: 100px; }
.tool-result-intro { color: var(--muted); font-size: 14px; }
.tool-result-item { padding: 18px 0; border-top: 1px solid var(--line); }
.tool-result-item h3 { margin-bottom: 8px; font: 600 15px/1.5 var(--sans); }
.tool-result-item p { margin-bottom: 0; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; }
.tool-result-item p.is-unanswered { color: var(--muted); font-style: italic; }
.tool-result-privacy { margin: 12px 0 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.tool-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-print-credit { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.tool-related { margin-top: 46px; }
.tool-related h2 { margin-bottom: 20px; font-size: 29px; line-height: 1.2; }
.tool-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.tool-related-grid a { position: relative; min-width: 0; padding: 20px 38px 20px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,249,.65); text-decoration: none; }
.tool-related-grid a:hover { background: var(--sage); }
.tool-related-grid strong { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.tool-related-grid span { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tool-related-grid i { position: absolute; right: 17px; top: 20px; font-style: normal; }
.tool-source { max-width: 810px; margin-top: 36px; }
.tool-source h2 { margin-bottom: 10px; font-size: 22px; }
.tool-source p { margin-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.tool-ready .tool-fallback { display: none; }
.tool-form { margin: 0; }
.tool-form-heading p { line-height: 1.65; }
.tool-form textarea { max-height: 420px; }
.tool-stage-field { padding: 0; border: 0; }
.tool-stage-field legend { margin-bottom: 9px; font-weight: 600; font-size: 15px; }
.tool-stage-picker { position: relative; }
.tool-stage-picker summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; color: var(--ink); cursor: pointer; list-style: none; font-size: 16px; }
.tool-stage-picker summary::-webkit-details-marker { display: none; }
.tool-stage-chevron { width: 8px; height: 8px; flex: 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.tool-stage-picker[open] { z-index: 20; }
.tool-stage-picker[open] summary { border-radius: 12px 12px 0 0; }
.tool-stage-picker[open] .tool-stage-chevron { transform: translateY(2px) rotate(225deg); }
.tool-stage-options { position: absolute; inset: calc(100% - 1px) 0 auto; max-height: min(300px,45dvh); overflow: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fffdf9; box-shadow: 0 12px 24px #29493f12; scrollbar-width: none; }
.tool-stage-options::-webkit-scrollbar { display: none; }
.tool-stage-options button { display: block; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 400 16px/1.45 var(--sans); text-align: left; cursor: pointer; }
.tool-stage-options button[aria-selected="true"],.tool-stage-options button:hover { background: var(--sage); }
.tool-stage-picker :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tool-result { scroll-margin-top: 104px; }
.tool-result-actions .tool-button { flex: 1 1 150px; }
.tool-button:disabled { cursor: wait; opacity: .65; }
#pdf-status { margin-top: 14px; }
.tool-reset-dialog { width: min(460px,calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
.tool-reset-dialog::backdrop { background: #18312888; }
.tool-reset-dialog h2 { margin: 0 0 14px; font: 400 28px/1.25 var(--serif); }
.tool-reset-dialog p { margin: 0 0 22px; }
.tool-reset-dialog :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 900px) {
  .tool-workspace { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .tool-aside { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; padding: 0; }
  .tool-aside section + section { padding-top: 0; border-top: 0; }
  .tool-paper { padding: 28px; }
}
@media (max-width: 600px) {
  .tool-shell { width: calc(100% - 32px); padding-top: 82px; padding-bottom: 28px; }
  .tool-breadcrumbs { margin-bottom: 22px; font-size: 11px; }
  .tool-intro { margin-bottom: 26px; }
  .tool-intro h1 { margin-bottom: 16px; font-size: 30px; line-height: 1.15; }
  .tool-eyebrow { font-size: 9px; }
  .tool-lead { font-size: 16px; line-height: 1.7; }
  .tool-privacy { font-size: 12px; }
  .tool-paper { padding: 22px 16px; border-radius: 18px; }
  .tool-paper h2 { font-size: 25px; }
  .tool-field { margin-bottom: 22px; }
  .tool-field input,.tool-field textarea { padding: 11px 12px; }
  .tool-field--short { max-width: none; }
  .tool-form > .tool-button { width: 100%; }
  .tool-button { padding: 12px 14px; }
  .tool-aside { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .tool-aside section + section { padding-top: 24px; border-top: 1px solid var(--line); }
  .tool-aside h2 { font-size: 24px; }
  .tool-aside .tool-button { width: auto; }
  .tool-result-actions { flex-direction: column; }
  .tool-result-actions .tool-button { flex: 0 0 auto; width: 100%; }
  .tool-related { margin-top: 34px; }
  .tool-related h2 { font-size: 26px; }
  .tool-related-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .tool-related-grid a { padding: 17px 38px 17px 18px; }
  .tool-source { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  @page { margin: 16mm; }
  body { color: #162d23; background: #fff; font: 11pt/1.5 Arial,sans-serif; }
  .site-chrome-header,.site-chrome-footer,.tool-skip,.tool-breadcrumbs,.tool-intro,.tool-aside,.tool-related,.tool-source,.tool-form,.tool-result-actions,.tool-print-help { display: none !important; }
  .tool-shell { width: auto; margin: 0; padding: 0; }
  .tool-workspace { display: block; }
  .tool-paper { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .tool-ready:not(.tool-has-result) .tool-fallback { display: block; }
  .tool-paper h2 { color: #162d23; font-size: 22pt; }
  .tool-eyebrow { font-size: 8pt; }
  .tool-result-intro,.tool-result-item p { color: #263a31; font-size: 11pt; }
  .tool-result-item { padding: 12px 0; border-color: #d5dcd7; }
  .tool-result-item h3 { color: #162d23; font-size: 11pt; break-after: avoid; }
  .tool-result-privacy,.tool-print-credit,.tool-note { color: #3c4a43; font-size: 9pt; }
  .tool-print-credit { break-inside: avoid; }
}

@media screen {
  .tool-breadcrumbs,.tool-privacy,.tool-note,.tool-field label span,.tool-field-hint,.tool-footnote,.tool-aside .tool-field-hint,.tool-result-privacy,.tool-print-credit,.tool-related-grid span,.tool-source p { font-size: 14px; line-height: 1.65; }
  .tool-breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .tool-form-heading p,.tool-aside p,.tool-result-intro,.tool-result-item p,.tool-related-grid strong { font-size: 16px; }
  .tool-button { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
}

@media screen {
  html[data-theme="dark"] body { background: radial-gradient(ellipse at 12% 0,var(--sage),transparent 38%),var(--paper); }
  html[data-theme="dark"] .tool-paper,html[data-theme="dark"] .tool-related-grid a { background: var(--surface); }
  html[data-theme="dark"] .tool-field input,html[data-theme="dark"] .tool-field textarea,html[data-theme="dark"] .tool-stage-picker summary { background: var(--paper); color: var(--ink); border-color: var(--sage-deep); }
  html[data-theme="dark"] .tool-field input::placeholder,html[data-theme="dark"] .tool-field textarea::placeholder { color: var(--muted); }
  html[data-theme="dark"] .tool-stage-options { background: var(--surface-raised); box-shadow: 0 12px 24px rgb(0 0 0 / .3); }
  html[data-theme="dark"] .tool-stage-options button[aria-selected="true"] { background: var(--surface-hover); box-shadow: inset 3px 0 var(--action); }
  html[data-theme="dark"] .tool-button { background: var(--surface); border-color: var(--sage-deep); color: var(--ink); }
  html[data-theme="dark"] .tool-button:hover,html[data-theme="dark"] .tool-related-grid a:hover { background: var(--surface-hover); }
  html[data-theme="dark"] .tool-button--primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
  html[data-theme="dark"] .tool-button--primary:hover { background: #cae7d4; border-color: #cae7d4; color: var(--on-action); }
  html[data-theme="dark"] .tool-reset-dialog { background: var(--surface-raised); color: var(--ink); }
  html[data-theme="dark"] .tool-reset-dialog::backdrop { background: rgb(0 0 0 / .65); }
  html[data-theme="dark"] .tool-shell :where(a,button,input,textarea):focus-visible,html[data-theme="dark"] .tool-stage-picker :focus-visible,html[data-theme="dark"] .tool-reset-dialog :focus-visible { outline-color: var(--gold); }
  html[data-theme="dark"] .tool-field input:focus,html[data-theme="dark"] .tool-field textarea:focus { border-color: var(--gold); }
}
/* Keep mobile breadcrumbs 9px below the 61px shared header. Safe-area space is owned by the shell. */
@media screen and (max-width:1280px) {
  .tool-shell { padding-top: 70px; }
}
