.ks-tools{max-width:1120px;margin:30px auto 70px;padding:0 18px;color:var(--text)}
.tools-crumbs,.tool-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.tools-crumbs{font-size:.9rem;color:var(--muted);margin-bottom:28px}
.tools-heading{margin-bottom:28px;max-width:850px}.tools-heading h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.16;margin:12px 0 18px;color:var(--heading)}
.tools-heading p{font-size:1.08rem;color:var(--muted);line-height:1.7}.tools-eyebrow{font-size:.73rem;letter-spacing:.15em;color:var(--accent)}
.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.tool-tile,.tool-panel,.tool-match{border:1px solid var(--border);border-radius:18px;background:var(--surface);overflow:hidden}
.tool-tile{padding:25px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}.tool-tile h2{font-size:1.2rem;margin:0}.tool-tile h2 a{color:var(--heading);text-decoration:none}.tool-tile p{color:var(--muted);line-height:1.65;flex:1;margin:0}.tool-icon{display:grid;place-items:center;font-size:1.8rem;background:var(--surface-2);color:var(--accent);width:54px;height:54px;border-radius:15px}
.tool-panel{padding:26px;margin:20px 0}.tool-panel h2{margin-top:0}.tool-panel p{line-height:1.65}.tool-counter{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.78rem;border:1px dashed var(--border);padding:8px 12px;border-radius:8px;color:var(--muted)}.tool-counter b{color:var(--heading)}
.tool-tile>.btn,.tool-tile>.tool-counter{width:100%;align-self:stretch;box-sizing:border-box}.tool-match .btn{width:100%}.tool-help{margin:32px 0;line-height:1.75;color:var(--muted)}.tool-help h2{color:var(--heading);font-size:1.4rem}.age-result strong{font-size:3rem;color:var(--heading)}
.tool-fine{font-size:.85rem;color:var(--muted);line-height:1.6}.tool-actions{margin:18px 0}.ks-tools .btn{min-height:var(--button-height,50px);height:var(--button-height,50px);box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:normal;text-align:center;font-size:.92rem;text-decoration:none;cursor:pointer}.tool-actions form{margin:0}.tool-actions a:not(.btn){font-size:.9rem}
.ks-tools .btn{padding:6px 14px;line-height:1.2;max-width:100%}
.ks-tools table{width:100%;border-collapse:collapse;margin-top:18px}.ks-tools th,.ks-tools td{text-align:left;border-bottom:1px solid var(--border);padding:12px}.ks-tools summary{cursor:pointer}
.tool-field,.tool-form p{display:flex;flex-direction:column;gap:9px;margin:0 0 18px}.ks-tools label{line-height:1.5}.ks-tools input:not([type=checkbox]),.ks-tools select,.ks-tools textarea{width:100%;max-width:100%;min-height:48px;box-sizing:border-box;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit}.ks-tools textarea{resize:vertical}.ks-tools input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:var(--accent)}.ks-tools :focus-visible{outline:3px solid var(--accent);outline-offset:3px}.ks-tools .errorlist,.tool-alert{color:#dd6464}.tool-alert{padding:14px;border:1px solid currentColor;border-radius:10px}
.tool-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.tool-split>.tool-panel{min-width:0}.ks-tools input,.ks-tools select,.ks-tools textarea{min-width:0}.tool-preview{text-align:center;position:sticky;top:100px}.tool-preview canvas{width:100%;height:auto;background:#fff;border-radius:10px}.tool-preview .tool-actions{justify-content:center}
.tool-checklist{display:grid;gap:2px}.tool-checklist label{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--border);cursor:pointer}.tool-checklist input{margin-top:3px}.tool-checklist label:has(input:checked) span{color:var(--muted)}
.tool-progress{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;margin-bottom:18px}.tool-progress progress{width:100%;height:10px;accent-color:var(--accent)}
.budget-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.budget-result{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-top:25px}.budget-result>div{background:var(--surface-2);padding:20px;border-radius:12px}.budget-result strong{display:block;margin-top:12px;font-size:1.25rem;color:var(--heading)}
.tool-match img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.tool-match>div{padding:20px}.tool-match h3{margin-top:0}.tool-next{border-top:1px solid var(--border);padding-top:28px;margin-top:40px}.tool-next h2{margin:0 0 10px}.tool-next p{color:var(--muted)}
.companion-photo{max-width:100%;width:360px;max-height:420px;object-fit:cover;border-radius:12px}.public-passport{max-width:650px;margin:20px auto;text-align:center}.public-passport .tool-actions{justify-content:center}.public-passport h1{font-size:2.8rem}.diary-photo{max-width:200px;max-height:180px;object-fit:cover;border-radius:10px}.diary-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px}.diary-row>div{flex:1;min-width:160px}.diary-row time{color:var(--muted)}.tool-danger{color:#dd6464!important}.ks-tools canvas#growth-chart{width:100%;height:auto;margin-top:24px}.ks-tools [hidden]{display:none!important}
@media(max-width:1000px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.ks-tools{padding:0 14px}.tools-grid,.tool-split,.budget-grid{grid-template-columns:minmax(0,1fr)}.tool-panel,.tool-tile{padding:20px}.tool-preview{position:static}.budget-result{grid-template-columns:1fr}.tool-actions>.btn{flex:1;min-width:160px}.tools-heading{margin-bottom:20px}.tool-counter{font-size:.75rem}}
@media print{body{background:#fff!important;color:#111!important}header.site-header,body>header,footer,.mobile-sidebar,.menu-overlay,.tools-crumbs,.tool-next,.tool-counter,.tool-actions,#tool-status,.ks-tools button,.ks-tools input[type=file],.ks-tools form[data-confirm-delete],.cookie-banner{display:none!important}.ks-tools{margin:0;max-width:none;--text:#111;--heading:#111;--muted:#444;--surface:#fff;--surface-2:#fff;--border:#bbb}.tool-panel,.tool-tile{break-inside:avoid}.tool-split{display:block}.tool-preview{position:static}.tool-preview canvas{max-width:500px}.ks-tools input,.ks-tools select,.ks-tools textarea{color:#111!important}.tools-heading{display:block!important}}
