.tools-page { --tool-paper:#f7f5ef; --tool-lilac:#ddd4f3; }
.tools-hero { background:#eaf58a; color:#111; padding:55px 0 58px; }
.tools-hero h1 { font-size:clamp(42px,5.4vw,76px); line-height:1.04; letter-spacing:-.045em; max-width:1000px; margin:18px 0 24px; }
.tools-hero p:not(.case-kicker) { max-width:780px; font-size:18px; line-height:1.65; }
.tools-hero .text-link { margin-top:24px; font-size:15px; }
.tools-catalog { padding:45px 0 65px; background:var(--tool-paper); }
.tools-filter-bar>label { display:block; font-size:17px; font-weight:600; margin-bottom:12px; }
.tools-filter-bar input { width:100%; max-width:550px; padding:15px 18px; background:#fff; color:#111; border:1px solid #aaa; border-radius:6px; font-size:16px; }
.tools-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.tools-tabs button { padding:10px 17px; border:1px solid #111; border-radius:50px; color:#111; background:transparent; font:inherit; font-size:14px; cursor:pointer; }
.tools-tabs button[aria-pressed="true"] { background:#111; color:white; }
.tools-filter-bar #tools-count { font-size:13px; margin-bottom:25px; }
.tools-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.tool-card { border:1px solid #c8c5bc; border-radius:8px; padding:27px; background:#fff; display:flex; flex-direction:column; align-items:flex-start; }
.tool-card:nth-child(4n+2) { background:#ddd4f3; }
.tool-card:nth-child(4n+3) { background:#cbe9db; }
.tool-card:nth-child(4n) { background:#f5c9d8; }
.tool-tag { font-size:11px; letter-spacing:.06em; text-transform:uppercase; margin:0 0 18px; }
.tool-card h2 { font-size:27px; line-height:1.15; letter-spacing:-.025em; margin:0 0 17px; }
.tool-card h2 a { text-decoration:none; }
.tool-card h2 a:hover { text-decoration:underline; }
.tool-card>p:not(.tool-tag) { font-size:15px; line-height:1.7; margin:0 0 25px; }
.tool-open { font-size:14px; font-weight:600; margin-top:auto; text-underline-offset:4px; }
.tools-explainer { padding:50px 0; background:#fff; }
.tools-explainer h2 { font-size:clamp(28px,3.5vw,42px); max-width:800px; }
.tools-explainer p { max-width:780px; line-height:1.7; margin:20px 0; font-size:17px; }
.tool-detail-hero { background:#ddd4f3; padding-block:43px; }
.tool-detail-hero h1 { font-size:clamp(39px,4.7vw,62px); }
.tool-workspace { padding:45px 0 60px; background:#f7f5ef; }
.tool-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:65px; align-items:start; }
.tool-layout form { background:#fff; border:1px solid #d3cfc5; border-radius:8px; padding:30px; }
.tool-layout form>h2 { font-size:26px; margin:0 0 25px; }
.tool-field { margin-bottom:23px; }
.tool-field label,.tool-editor>label { display:block; font-size:15px; font-weight:600; margin-bottom:9px; line-height:1.6; }
.tool-field label span { font-size:12px; font-weight:400; }
.tool-field input,.tool-field select,.tool-editor textarea { display:block; box-sizing:border-box; width:100%; min-width:0; border:1px solid #aaa; border-radius:5px; padding:13px; background:#fff; color:#111; font:inherit; font-size:16px; }
.tool-field small { display:block; font-size:12px; line-height:1.6; margin-top:8px; }
.tool-field :is(input,select):focus,.tool-editor textarea:focus { outline:2px solid #465fc3; outline-offset:2px; }
.tool-checks { border:0; padding:0; margin:0 0 27px; min-width:0; }
.tool-checks legend { font-size:17px; font-weight:600; line-height:1.5; }
.tool-checks>p { font-size:13px; line-height:1.6; margin:10px 0 15px; }
.tool-checks label { display:flex; align-items:flex-start; gap:12px; padding:13px 0; border-bottom:1px solid #e6e2d9; font-size:15px; line-height:1.6; cursor:pointer; }
.tool-checks input { flex-shrink:0; width:19px; height:19px; margin-top:3px; accent-color:#465fc3; }
.tool-guide { padding-block:7px; }
.tool-guide h2 { font-size:32px; line-height:1.15; }
.tool-guide p,.tool-guide li { font-size:15px; line-height:1.8; }
.tool-guide>p { margin-top:18px; }
.tool-guide ol { padding-left:21px; margin:22px 0; }
.tool-guide .text-link { font-size:14px; margin-top:20px; }
.tool-note,.tool-local-note { font-size:12px; line-height:1.7; }
.tool-local-note { margin-top:17px; }
.tool-guide .tool-note { border-top:1px solid #c4c1b8; padding-top:18px; font-size:13px; }
.tool-error { background:#ffeded; color:#8e1616; padding:14px; border:1px solid #d58181; border-radius:5px; margin-bottom:18px; font-size:14px; }
.tool-result { padding:55px 0; background:#cbe9db; scroll-margin-top:100px; }
.tool-result h2 { max-width:900px; font-size:clamp(30px,4vw,49px); line-height:1.13; }
#result-summary { max-width:850px; margin:22px 0; font-size:17px; line-height:1.7; }
.tool-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px; margin:28px 0; }
.tool-metric { padding:22px; border:1px solid #111; border-radius:6px; min-width:0; }
.tool-metric p { font-size:clamp(25px,3vw,37px); font-weight:600; line-height:1.2; overflow-wrap:anywhere; }
.tool-metric span { display:block; margin-top:10px; font-size:13px; line-height:1.6; }
.tool-result-section { padding-block:22px; border-bottom:1px solid #96baab; max-width:900px; }
.tool-result-section h3 { font-size:23px; line-height:1.35; margin-bottom:12px; }
.tool-result-section p { font-size:16px; line-height:1.8; margin-top:9px; white-space:pre-wrap; overflow-wrap:anywhere; }
#result-note { margin:22px 0; max-width:850px; }
.tool-editor { margin-top:30px; max-width:900px; }
.tool-editor summary { font-size:15px; cursor:pointer; text-decoration:underline; text-underline-offset:4px; margin-bottom:20px; }
.tool-editor textarea { resize:vertical; line-height:1.65; }
.tool-editor p { font-size:12px; line-height:1.7; margin-top:10px; }
.tool-result-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:25px; }
.tool-result-actions button { font:inherit; font-size:13px; background:#fff; color:#111; border:1px solid #111; border-radius:5px; padding:12px 16px; cursor:pointer; }
.tool-result-actions button:hover { background:#111; color:#fff; }
#tool-action-status { font-size:13px; line-height:1.6; margin-top:15px; }
.tool-contact { border-top:2px solid #111; padding-top:30px; margin-top:35px; }
.tool-contact h3 { font-size:28px; }
.tool-contact p { font-size:16px; line-height:1.7; max-width:750px; margin:15px 0 23px; }
.tool-back { padding:25px 0; background:#f7f5ef; }
.tool-back .text-link { font-size:14px; }
.tool-print-only { display:none; }
.tools-home-entry { background:var(--blue); color:#fff; padding:34px 0 36px; scroll-margin-top:100px; }
.tools-home-entry>.container { text-align:center; }
.tools-home-entry .case-kicker { font-size:11px; letter-spacing:.06em; }
.tools-home-entry h2 { font-size:clamp(29px,3.2vw,42px); line-height:1.12; margin:0 auto; max-width:950px; letter-spacing:-.035em; }
.tools-home-entry p:not(.case-kicker) { font-size:15px; margin-top:13px; line-height:1.65; }
.tools-home-links { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; max-width:1060px; margin:23px auto 0; }
.tools-home-links a { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:9px 14px; border:1px solid rgb(255 255 255 / 65%); border-radius:999px; font-size:13px; line-height:1.4; text-decoration:none; background:transparent; color:#fff; }
.tools-home-links a:is(:hover,:focus-visible),.tools-home-links .tools-home-all { background:#fff; color:#111; border-color:#fff; }
@media (max-width:650px) {
  .tools-home-entry { padding-block:27px; }
  .tools-home-links { gap:8px; margin-top:18px; }
  .tools-home-links a { font-size:12px; padding:9px 11px; }
}
.tools-page [hidden],.tool-result-actions [hidden] { display:none !important; }
@media(max-width:950px) { .tools-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .tool-layout { gap:30px; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); } }
@media(max-width:650px) { .tools-cards,.tool-layout { grid-template-columns:1fr; } .tools-hero { padding:35px 0; } .tools-hero p:not(.case-kicker) { font-size:16px; } .tool-layout form { padding:23px 18px; } .tool-workspace { padding-top:25px; } .tool-guide { padding:10px 0; } .tool-card { padding:24px; } .tool-result { padding:35px 0; } .tool-result-actions { flex-direction:column; align-items:stretch; } .tool-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .tool-metric { padding:16px 12px; } .tool-metric p { font-size:24px; } }
@media print {
  body.tool-detail { background:#fff; color:#000; }
  body.tool-detail>header,body.tool-detail>footer,body.tool-detail>.content-breadcrumb,body.tool-detail>.skip-link,body.tool-detail dialog,body.tool-detail main>section:not(.tool-result),body.tool-detail #tool-result>.container>*:not(.tool-print-only) { display:none !important; }
  body.tool-detail #tool-result { display:block !important; padding:0; margin:0; background:#fff; }
  body.tool-detail .tool-print-only { display:block; white-space:pre-wrap; overflow-wrap:anywhere; font:12pt/1.55 sans-serif; color:#000; }
  body.tool-detail .container { width:100%; max-width:none; padding:0; }
}

.tool-quiz { margin:0 0 28px; padding:0; border:0; min-width:0; }
.tool-quiz legend { margin-bottom:12px; font-size:16px; font-weight:600; line-height:1.6; }
.tool-quiz label { display:flex; align-items:flex-start; gap:12px; padding:13px 14px; margin:8px 0; background:#f8f7f2; border:1px solid #ccc8be; border-radius:6px; color:#111; font-size:15px; line-height:1.65; cursor:pointer; }
.tool-quiz label:has(input:checked) { border-color:#4562c5; background:#e9edff; }
.tool-quiz label:has(input:focus-visible) { outline:2px solid #4562c5; outline-offset:2px; }
.tool-quiz input { width:18px; height:18px; flex-shrink:0; margin-top:4px; accent-color:#4562c5; }

.tool-chosen-answer,.tool-guidance { padding:17px 20px; margin:15px 0; border-radius:6px; }
.tool-chosen-answer { background:#f1ecfa; border-left:4px solid #7353a5; }
.tool-guidance { background:#e7f5ed; border-left:4px solid #277450; }
.tool-chosen-answer strong,.tool-guidance strong { display:block; font-size:12px; line-height:1.4; text-transform:uppercase; letter-spacing:.06em; }
.tool-result-section .tool-chosen-answer p,.tool-result-section .tool-guidance p { margin-top:9px; }
.material-gate { width:min(430px,calc(100vw - 32px)); max-height:90svh; box-sizing:border-box; padding:28px; border:1px solid #111; border-radius:12px; background:#fff; color:#111; overflow:auto; }
.material-gate::backdrop { background:rgb(0 0 0 / 55%); backdrop-filter:blur(3px); }
.material-gate h2 { margin:12px 20px 12px 0; font-size:29px; line-height:1.15; }
.material-gate>p:not(.case-kicker) { font-size:14px; line-height:1.65; margin-bottom:20px; }
.material-gate-close { position:absolute; right:14px; top:10px; background:none; border:0; color:#111; font-size:28px; cursor:pointer; padding:5px 10px; }
.material-gate .tool-field { margin-bottom:15px; }
.material-gate .tool-field label { font-size:14px; margin-bottom:6px; }
.material-gate .tool-field input { padding:11px 12px; }
.material-consent { display:flex; gap:10px; align-items:flex-start; font-size:12px; line-height:1.6; }
.material-consent input { margin-top:3px; width:17px; height:17px; flex-shrink:0; }
.material-privacy { margin:12px 0; font-size:12px; }
.material-privacy button { background:none; border:0; text-decoration:underline; color:#344ca5; cursor:pointer; padding:0; font:inherit; }
#material-gate-status { font-size:13px; line-height:1.6; margin:12px 0; }
.material-gate .button { width:100%; justify-content:space-between; font-size:14px; }
.material-gate .button:disabled { opacity:.6; cursor:wait; }
.material-print-frame { position:fixed; left:-10000px; top:0; width:800px; height:1100px; border:0; }
