/* Task-led tools. Loaded after the shared application theme. */
#resources .tools-hero{display:grid;grid-template-columns:1.25fr 1fr;gap:44px;align-items:center;padding:44px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(125deg,var(--surface),var(--accent-soft));margin-bottom:28px}
.tools-hero h1{font-size:clamp(32px,3.8vw,52px);line-height:1.1;letter-spacing:-1.8px;white-space:pre-line;margin:14px 0 22px;max-width:650px}.tools-hero .lead{font-size:16px;line-height:1.8;max-width:560px}.tools-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0 16px}.tools-hero-meta,.tools-footnote{font-size:12px;color:var(--muted);line-height:1.7}.tools-hero-preview{padding:28px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 16px 38px #173d6a0a;transform:rotate(1deg)}.tools-hero-preview h2{font-size:24px;line-height:1.3;white-space:pre-line;margin:12px 0 22px}.tools-hero-preview>div{display:flex;align-items:flex-start;gap:15px;padding:13px 0;border-top:1px solid var(--border)}.tools-hero-preview>div>span{font-size:12px;color:var(--accent);font-weight:700;padding-top:3px}.tools-hero-preview strong{font-size:14px}.tools-hero-preview p{font-size:13px;line-height:1.5;color:var(--muted);margin:5px 0 0}
.tools-chooser,.tools-catalogue,.tools-next{margin:28px 0;padding:30px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}.tools-chooser[hidden]{display:none}.tools-chooser{border-color:var(--accent);background:var(--accent-soft);scroll-margin-top:30px}.tools-chooser h2,.tools-catalogue h2,.tools-next h2{font-size:28px;line-height:1.25;margin:10px 0}.tools-section-copy,.tools-chooser>p:not(.eyebrow){font-size:15px;color:var(--muted);line-height:1.7}.tools-situations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.tools-situation{display:flex;text-align:left;align-items:center;gap:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);padding:19px;cursor:pointer}.tools-situation>.icon{width:22px;flex-shrink:0;color:var(--accent)}.tools-situation strong,.tools-situation span{display:block}.tools-situation strong{font-size:15px}.tools-situation span{font-size:13px;font-weight:400;line-height:1.5;color:var(--muted);margin-top:5px}.tools-situation:hover{border-color:var(--accent)}
.tools-resume:empty{display:none}.tools-resume{display:flex;align-items:center;gap:20px;padding:22px 28px;background:var(--accent-soft);border:1px solid var(--border);border-radius:16px}.tools-resume>div{flex:1}.tools-resume h2{font-size:20px;margin:5px 0}.tools-resume p{margin:5px 0;font-size:14px}.tools-resume>.icon{color:var(--accent);width:26px;height:26px}
#resources .kit-toolbar{display:grid;grid-template-columns:1fr auto;gap:16px;margin:25px 0 12px}#resources .kit-search{width:100%;max-width:none;min-width:0;position:relative;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface-alt);padding:0 15px}#resources .kit-search input{width:100%;border:0;box-shadow:none;background:transparent;padding:14px 0;font-size:15px;min-width:0}#resources .kit-search .icon{position:static;flex-shrink:0;width:18px;height:18px}#resources .kit-filters{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}#resources .kit-filter{font-size:13px;min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--muted)}#resources .kit-filter[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent);font-weight:700}#resources .kit-count{font-size:13px;color:var(--muted);margin:18px 0}
.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tools-card{--tool-colour:var(--accent);display:flex;flex-direction:column;min-width:0;padding:26px;border:1px solid var(--border);border-top:4px solid var(--tool-colour);border-radius:16px;background:var(--surface-alt);transition:box-shadow .15s,transform .15s}.tools-card[data-tone=teal]{--tool-colour:#178276}.tools-card[data-tone=violet]{--tool-colour:#8562c7}.tools-card[data-tone=amber]{--tool-colour:#a87416}.tools-card:hover{box-shadow:0 10px 25px #17456d0a;transform:translateY(-2px)}.tools-card-top{display:flex;align-items:center;gap:10px;margin-bottom:24px}.tools-symbol{display:grid;place-items:center;background:color-mix(in srgb,var(--tool-colour) 12%,var(--surface));color:var(--tool-colour);border-radius:12px;width:44px;height:44px;flex-shrink:0}.tools-symbol .icon{width:23px;height:23px}.tools-category{font-size:12px;color:var(--tool-colour);font-weight:700}.tools-duration{font-size:12px;color:var(--muted);margin-left:auto;white-space:nowrap}.tools-tool-name{font-size:12px;color:var(--muted);margin:0 0 9px}.tools-card h3{font-size:23px;line-height:1.3;margin:0 0 12px;letter-spacing:-.5px}.tools-when{font-size:14px;line-height:1.75;color:var(--muted);margin:0 0 22px}.tools-result{display:flex;align-items:center;gap:12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:17px 0;margin-top:auto}.tools-result>.icon{color:var(--tool-colour);width:21px;flex-shrink:0}.tools-result span{display:block;font-size:10px;font-weight:700;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.tools-result strong{font-size:14px}.tools-draft-state{font-size:12px;line-height:1.5;color:var(--muted);margin:16px 0}.tools-card-actions{display:flex;flex-wrap:wrap;gap:10px}.tools-card-actions button{flex:1;white-space:nowrap;min-height:44px}.tools-empty{grid-column:1/-1;padding:30px;border:1px dashed var(--border);border-radius:12px}.tools-next{background:var(--accent-soft)}.tools-next>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:24px}.tools-next-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:13px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:22px;cursor:pointer}.tools-next-card .icon{color:var(--accent)}.tools-next-card strong{font-size:15px}.tools-next-card span{font-size:13px;line-height:1.7;color:var(--muted);font-weight:400}.tools-next-card small{color:var(--accent);margin-top:auto;font-size:12px}.tools-next>.tools-footnote{margin-bottom:0}
.worksheet-dialog{width:min(1080px,94vw);max-width:94vw;max-height:92dvh;padding:0;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);overflow:auto}.worksheet-dialog::backdrop{background:#0d1a32a8;backdrop-filter:blur(5px)}.worksheet-heading{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 30px;background:var(--surface);border-bottom:1px solid var(--border)}.worksheet-heading h2{font-size:26px;margin:8px 0 0}.worksheet-heading .eyebrow{font-size:10px;letter-spacing:1px}.worksheet-close{min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);white-space:nowrap}.worksheet-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:480px}.worksheet-guide{background:var(--surface-alt);padding:26px 22px;border-right:1px solid var(--border);min-width:0}.worksheet-outcome{font-size:14px;line-height:1.7;color:var(--muted)}.worksheet-counter{font-size:12px;color:var(--muted);margin:8px 0 22px}.worksheet-guide progress{width:100%;height:7px;accent-color:var(--accent)}.worksheet-guide nav{display:grid;gap:9px}.worksheet-step{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:9px;padding:14px 10px;min-height:60px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);text-align:left}.worksheet-step[aria-current=step],.worksheet-review-link[aria-current=step]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.worksheet-step span,.worksheet-step small{font-size:11px}.worksheet-step strong{font-size:13px;font-weight:600}.worksheet-review-link{width:100%;min-height:44px;padding:13px 10px;margin:14px 0;border:1px solid var(--border);border-radius:10px;color:var(--accent);background:var(--surface);font-size:12px;text-align:left}.worksheet-help{border-top:1px solid var(--border);padding:18px 0 0;margin:14px 0;font-size:13px;line-height:1.7;color:var(--muted)}.worksheet-help summary{color:var(--text);cursor:pointer;font-weight:650;min-height:32px}.worksheet-help .text-button,.worksheet-help a{display:block;margin-top:12px}.worksheet-main{padding:32px;min-width:0}.worksheet-main h3{font-size:29px;line-height:1.25;margin:12px 0 15px;scroll-margin-top:115px}.worksheet-intro{font-size:15px;line-height:1.7;color:var(--muted)}.worksheet-main .eyebrow{font-size:10px;line-height:1.6}.worksheet-mini-progress{display:flex;gap:9px;margin:24px 0}.worksheet-dot{width:40px;min-height:40px;border:1px solid var(--border);border-radius:50%;color:var(--muted);background:var(--surface);font-size:13px}.worksheet-dot[data-written=true]{background:var(--accent-soft);color:var(--accent)}.worksheet-dot[aria-current=step]{border:2px solid var(--accent);color:var(--accent);font-weight:700}.worksheet-field,.worksheet-prompt>label{display:block;font-size:13px;font-weight:600;color:var(--text);margin:18px 0 8px}.worksheet-dialog input,.worksheet-dialog textarea{width:100%;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt);color:var(--text);padding:13px 15px;font:inherit;font-size:15px;line-height:1.7;box-sizing:border-box}.worksheet-field input{margin-top:8px}.worksheet-prompt textarea{min-height:180px;resize:vertical}.worksheet-char-count{display:block;text-align:right;font-size:11px;color:var(--muted);margin:6px 0}.worksheet-hint{font-size:13px;color:var(--muted);line-height:1.7}.worksheet-example{border:1px solid var(--border);border-radius:10px;background:var(--accent-soft);padding:16px 18px;margin-top:22px;font-size:13px;line-height:1.7}.worksheet-example summary{cursor:pointer;font-weight:600}.worksheet-example small{display:block;margin-top:8px;color:var(--muted)}.worksheet-page-actions{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--border);padding-top:24px;margin-top:28px}.worksheet-skip{display:block;margin:15px 0 0 auto;min-height:36px;border:0;background:transparent;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:4px}.worksheet-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 30px;background:var(--surface);border-top:1px solid var(--border)}.worksheet-save-status{margin:0;font-size:13px;font-weight:600;line-height:1.5}.worksheet-progress-note{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.5}.worksheet-footer>.primary{flex-shrink:0;min-width:125px}.worksheet-readiness{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.7;padding:15px;border:1px solid var(--border);border-radius:10px;background:var(--accent-soft);margin:24px 0}.worksheet-readiness .icon{flex-shrink:0;color:var(--accent)}.worksheet-output{padding:27px;border:1px solid var(--border);border-radius:12px;background:var(--surface-alt)}.worksheet-output h4{font-size:22px;margin:10px 0 25px;overflow-wrap:anywhere}.worksheet-output-section{padding:18px 0;border-top:1px solid var(--border)}.worksheet-output-section>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.worksheet-output-section h5{font-size:14px;margin:0}.worksheet-output-section .text-button{font-size:12px;min-height:36px}.worksheet-answer{font-size:14px;line-height:1.8;white-space:pre-wrap;color:var(--text)}.worksheet-missing{font-size:13px;color:var(--muted);font-style:italic}.worksheet-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.worksheet-private-note{border:1px dashed var(--border);padding:18px;border-radius:10px;margin-top:20px;font-size:13px;line-height:1.7}.worksheet-private-note p{white-space:pre-wrap}.worksheet-private-note h4{font-size:14px}.worksheet-private-note small{display:block;color:var(--muted);margin-bottom:10px}.tools-preview-body{padding:30px}.tools-preview-body>p{font-size:15px;line-height:1.8;color:var(--muted)}.tools-preview-body h3{font-size:18px}.tools-preview-output{padding:22px;border:1px solid var(--border);border-radius:12px;background:var(--accent-soft);line-height:1.7}.tools-preview-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
#resources :focus-visible,.worksheet-dialog :focus-visible{outline:3px solid var(--accent);outline-offset:3px}.worksheet-dialog button{cursor:pointer}.worksheet-dialog button:disabled{cursor:default;opacity:.55}
@media(min-width:1450px){.tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){#resources .tools-hero{gap:25px;padding:30px}.tools-hero-preview{padding:22px}.tools-next>div{grid-template-columns:1fr}.tools-next-card{display:grid;grid-template-columns:25px 1fr}.tools-next-card span,.tools-next-card small{grid-column:2}.worksheet-layout{grid-template-columns:220px minmax(0,1fr)}.worksheet-main{padding:26px}.worksheet-guide{padding:24px 16px}}
@media(max-width:700px){#resources .tools-hero{grid-template-columns:1fr;padding:26px 22px}.tools-hero h1{font-size:36px;letter-spacing:-1.2px}.tools-hero-preview{transform:none}.tools-hero-preview h2{font-size:21px}.tools-hero-preview>div{padding:11px 0}.tools-chooser,.tools-catalogue,.tools-next{padding:23px 18px;border-radius:16px}.tools-chooser h2,.tools-catalogue h2,.tools-next h2{font-size:24px}.tools-situations,.tools-grid{grid-template-columns:1fr}.tools-resume{padding:20px;flex-wrap:wrap}.tools-resume>div{flex-basis:80%}.tools-resume>button{width:100%}.tools-card{padding:23px}.tools-card h3{font-size:23px}#resources .kit-toolbar{grid-template-columns:1fr}#resources .kit-search input{font-size:16px}.tools-saved-toggle{justify-self:start}.tools-hero-actions>button{width:100%}.worksheet-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border:0;border-radius:0}.worksheet-heading{padding:16px 18px}.worksheet-heading h2{font-size:22px}.worksheet-heading .eyebrow{font-size:8px}.worksheet-layout{display:block;min-height:0}.worksheet-guide{padding:15px 18px;border-right:0;border-bottom:1px solid var(--border)}.worksheet-guide>.eyebrow,.worksheet-outcome,.worksheet-guide>.worksheet-help{display:none}.worksheet-counter{margin:6px 0 12px;font-size:12px}.worksheet-guide nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.worksheet-step{display:flex;min-height:65px;flex-wrap:wrap;gap:4px;padding:9px 8px}.worksheet-step strong{font-size:11px;flex-basis:100%;order:3;line-height:1.4}.worksheet-step small{margin-left:auto;font-size:10px}.worksheet-step span{font-size:10px}.worksheet-review-link{margin:10px 0 0;font-size:12px}.worksheet-main{padding:25px 20px}.worksheet-main h3{font-size:25px}.worksheet-dialog input,.worksheet-dialog textarea{font-size:16px}.worksheet-footer{padding:13px 18px;gap:12px}.worksheet-footer>.primary{min-width:105px}.worksheet-progress-note{font-size:10px}.worksheet-save-status{font-size:12px}.worksheet-output{padding:20px}.worksheet-page-actions{gap:9px}.worksheet-page-actions button{font-size:12px;padding:12px}.worksheet-export-actions>button{flex:1}.tools-preview-body{padding:24px}.worksheet-dot{width:42px;min-height:44px}.worksheet-mini-progress{gap:6px}}
@media(prefers-reduced-motion:reduce){.tools-card{transition:none}.tools-card:hover{transform:none}}
@media print{.printing-worksheet .worksheet-main>*:not(.worksheet-output){display:none!important}.printing-worksheet .worksheet-output{border:0;padding:0;background:white;color:#172536}.printing-worksheet .worksheet-output-section{break-inside:avoid}.printing-worksheet .worksheet-answer{color:#172536}.printing-worksheet .worksheet-heading{position:static}.printing-worksheet .worksheet-private-note{display:none!important}}

.tool-preview{padding:32px}.tool-preview>h3{font-size:29px;margin:12px 0}.tool-preview>p{font-size:15px;line-height:1.8;color:var(--muted)}.tool-preview-facts{display:grid;gap:12px;margin:25px 0}.tool-preview-facts>section{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-alt)}.tool-preview-facts h4{font-size:13px;margin:0 0 8px}.tool-preview-facts p{font-size:14px;line-height:1.8;margin:0;color:var(--muted)}.tool-tip{border-left:3px solid var(--accent);padding:14px 18px;background:var(--accent-soft);border-radius:4px}.tools-grid>.kit-empty{grid-column:1/-1}.tools-hero button{min-height:44px}@media(max-width:700px){.tool-preview{padding:24px}.tool-preview>h3{font-size:25px}}
