.tools-page .tools-hero { padding: 34px 0 20px; background: transparent; }
.tools-page .tools-hero-panel { background: radial-gradient(circle at 100% 0%, rgba(191,219,254,.55), transparent 32%), linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,247,253,.96)); }
.tools-hero h1 { max-width: 870px; font-size: clamp(2.25rem,5vw,4.2rem); line-height: 1.08; letter-spacing: -.035em; margin: 10px 0 20px; }
.tools-hero .page-intro { max-width: 780px; font-size: clamp(1.08rem,2vw,1.32rem); margin: 0; }
.tools-page[data-tool] .tools-hero { padding: 24px 0 14px; }
.tools-page[data-tool] .tools-hero h1 { font-size: clamp(2rem,4vw,3.15rem); max-width: 980px; margin: 6px 0 12px; }
.tools-page[data-tool] .tools-hero .page-intro { font-size: 1.08rem; }
.tools-page[data-tool] .tool-workspace { padding: 22px 0; }
.tools-hero .breadcrumb { display: flex; gap: 10px; align-items: center; margin-bottom: 27px; font-size: .92rem; }
.tools-page[data-tool] .breadcrumb { margin-bottom: 14px; }
.tools-list,.tool-workspace { padding: 42px 0; }
.tools-page .tools-list { padding: 22px 0 42px; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.tool-card,.tool-app,.tools-context { border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft); }
.tool-card { padding: clamp(24px,3vw,36px); display: flex; flex-direction: column; align-items: flex-start; }
.tool-card h2 { font-size: 1.58rem; line-height: 1.2; margin: 14px 0; }
.tool-card p { flex: 1; }
.tools-context { padding: clamp(24px,4vw,45px); max-width: 980px; }
.tools-context p { max-width: 740px; }
.tools-explainer { padding: 12px 0 75px; }
.tool-app { max-width: 900px; padding: clamp(22px,4vw,44px); }
.tool-progress { color: #4b6270; font-size: .93rem; margin: 0 0 18px; }
.tool-progress progress { display: block; width: 100%; height: 8px; margin-top: 10px; accent-color: #207e79; }
.tool-app h2 { font-size: clamp(1.55rem,3vw,2rem); line-height: 1.18; margin-bottom: 13px; }
.tool-app h3 { margin: 0 0 12px; font-size: 1.19rem; }
.tool-app p { margin: 0 0 18px; }
.tool-app fieldset { border: 0; margin: 20px 0; padding: 0; min-width: 0; }
.tool-app legend { font-weight: 700; color: var(--text); margin-bottom: 10px; }
.tool-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--text); font-weight: 600; }
.tool-field small { font-weight: 400; color: var(--muted); }
.tool-field input,.tool-field select { width: 100%; margin: 0; border: 1px solid #b7c7d0; border-radius: 12px; padding: 11px 13px; background: #fff; color: var(--text); font: inherit; }
.tool-field input:focus,.tool-field select:focus,.tool-app button:focus-visible,.tool-app a:focus-visible { outline: 3px solid #58b8a8; outline-offset: 2px; }
.tool-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 16px; }
.tool-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer; }
.tool-option:has(input:checked) { border-color: #207e79; background: #eff8f5; }
.tool-option input[type="checkbox"],.tool-option input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; padding: 0; margin: 3px 0 0; accent-color: #207e79; }
.tool-option span { flex: 1; min-width: 0; }
.tool-question { border-top: 1px solid var(--line); padding: 15px 0; }
.tool-question legend { margin-bottom: 8px; }
.tool-answers { display: flex; flex-wrap: wrap; gap: 7px; }
.tool-answers .tool-option { padding: 7px 11px; }
.tool-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin-top: 26px; }
.tool-actions .tool-back { margin-right: auto; }
.tool-back { border: 0; background: none; color: #175e60; cursor: pointer; font: inherit; padding: 8px 0; }
.tool-error { color: #9c332b; font-weight: 600; }
.tool-result-header { border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tool-print-masthead { display: none; }
.tool-result-section { margin: 28px 0; }
.tool-result-section ul { margin: 0; padding-left: 20px; }
.tool-result-section li { margin: 9px 0; }
.tool-result-detail::before { content: ' — '; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tool-chip { background: #eef5f5; color: #174e57; border-radius: 99px; padding: 5px 11px; font-size: .89rem; }
.tool-note { padding: 17px 20px; background: #f5f8f9; border-radius: 12px; font-size: .94rem; }
.tool-empty { color: var(--muted); font-style: italic; }
.tool-report { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 29px; }
.tool-report .tool-option { border: 0; padding-left: 0; }
.tool-report .tool-option:has(input:checked) { background: none; }
.tool-report small { display: block; margin: 12px 0; }
.tool-status { margin: 14px 0; }
.tool-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tool-calcs { width: 100%; border-collapse: collapse; }
.tool-calcs th,.tool-calcs td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 5px; }
.tool-calcs td { text-align: right; font-variant-numeric: tabular-nums; }
.tool-calcs tr:last-child { font-weight: 700; color: var(--text); }
@media (max-width: 760px) {
  .tools-page .tools-hero { padding: 24px 0 14px; }
  .tools-page .tools-list { padding-top: 16px; }
  .tool-grid,.tool-fields,.tool-options { grid-template-columns: 1fr; }
  .tool-actions { flex-wrap: wrap; }
  .tool-app { padding: 22px 18px; }
  .tool-answers .tool-option { flex: 1 0 calc(50% - 8px); }
}
@page { size: A4; margin: 11mm 14mm 13mm; }
@media print {
  html { scroll-behavior: auto; }
  body.tools-page { background: #fff; color: #334155; font-size: 9pt; line-height: 1.27; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header,.site-footer,.tools-hero,.tools-explainer,.tool-report,.tool-actions,.tool-progress { display: none !important; }
  .tools-page .page-shell { min-height: 0; padding: 0; }
  .tools-page[data-tool] .tool-workspace { padding: 0; }
  .tool-workspace .container { max-width: none; padding: 0; }
  .tool-app { border: 0; border-radius: 0; box-shadow: none; background: #fff; max-width: none; padding: 0; }
  .tool-app p { margin: 0 0 7px; }
  .tool-print-masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; border-bottom: 2px solid #1e3a8a; margin-bottom: 12px; }
  .tool-print-masthead img { display: block; width: 112px; height: auto; }
  .tool-print-masthead span { text-align: right; color: #475569; font-size: 8pt; line-height: 1.4; }
  .tool-result-header { border: 0; margin-bottom: 10px; }
  .tool-result-header .eyebrow { display: none; }
  .tool-app .tool-result-header h2 { font-size: 20pt; line-height: 1.13; margin: 0; color: #0f172a; }
  .tool-chips { margin-bottom: 9px; }
  .tool-chip { padding: 3px 8px; border: 1px solid #cbd5e1; font-size: 9pt; }
  .tool-result-section { margin: 7px 0; break-inside: auto; }
  .tool-app .tool-result-section h3 { font-size: 12pt; line-height: 1.2; color: #1e3a8a; margin: 0 0 5px; padding-bottom: 4px; border-bottom: 1px solid #b9c9e4; break-after: avoid; }
  .tool-result-section ul { list-style: none; padding: 0; margin: 0; }
  .tool-result-section li { margin: 0 0 2px; padding: 0 0 0 8px; border-left: 2px solid #c6d4eb; break-inside: avoid; }
  .tool-result-section li strong { display: inline; color: #172554; }
  .tool-result-detail { display: inline; }
  .tool-result-detail::before { content: ' — '; }
  .tool-note { padding: 8px 0 0; margin-top: 10px !important; border-top: 1px solid #cbd5e1; border-radius: 0; background: none; font-size: 9pt; break-inside: avoid; }
  .tool-calcs { margin: 10px 0 14px; }
  .tool-calcs th,.tool-calcs td { padding: 5px 3px; }
  .tool-calcs tr { break-inside: avoid; }
}
