/* Fooy Tools · charcoal / forest • scoped; no changes outside /tools/ */
.fooy-tools-shell {
  --deep:#0b1417; --pine:#111f21; --forest:#1c3130; --lime:#b7de90;
  --cream:#101a1d; --card:#1a292d; --ink:#eaf2ed; --muted:#acbcb6;
  --line:#3a5051; --sand:#1b292b; --warning:#f0aa86;
  color:var(--ink); background:var(--cream); line-height:1.55;
  width:100%; max-width:none; margin:0; padding:0; min-height:480px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased; color-scheme:dark;
}
.fooy-tools-shell * { box-sizing:border-box; }
.fooy-tools-shell a { color:inherit; text-decoration:none; }
.fooy-tools-shell button, .fooy-tools-shell input, .fooy-tools-shell select { font:inherit; }
.fooy-tools-shell button { cursor:pointer; }
.fooy-tools-shell :is(a,button,input,select):focus-visible { outline:3px solid var(--lime); outline-offset:3px; }
.fooy-tools-shell .container { width:min(1160px, calc(100% - 36px)); margin-inline:auto; }
.fooy-tools-shell .skip { position:absolute; left:10px; top:-100px; background:var(--lime);color:#102017; padding:9px; z-index:30; }
.fooy-tools-shell .skip:focus { top:10px; }
.fooy-tools-shell .hero { background:linear-gradient(117deg,#102522,#1c3a32 80%,#17252a);color:#f3faf4;padding:40px 0 38px;border-bottom:1px solid #47605a; }
.fooy-tools-shell .eyebrow { color:var(--lime);letter-spacing:.17em;text-transform:uppercase;font-size:11px;font-weight:850; }
.fooy-tools-shell .hero h1 { font-size:clamp(2rem,4.6vw,3.4rem);letter-spacing:-.045em;line-height:1.12;margin:12px 0;color:#f4fcf4; }
.fooy-tools-shell .hero p { font-size:16px; color:#d2e1d9;max-width:760px;margin:0; }
.fooy-tools-shell .crumb { display:flex;gap:12px;align-items:center;margin-bottom:12px;color:#c3dccb;font-size:13px;flex-wrap:wrap; }
.fooy-tools-shell .crumb a { text-decoration:underline;text-underline-offset:3px; }
.fooy-tools-shell .fooy-tools-content { padding-bottom:60px; }
.fooy-tools-shell .worktop { display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin:26px 0 18px; }
.fooy-tools-shell .worktop h2 { margin:0;font-size:20px;letter-spacing:-.03em; }
.fooy-tools-shell .tag { display:inline-flex;gap:5px;align-items:center;background:#284333;border:1px solid #477053;padding:6px 12px;border-radius:30px;color:#c9f1ba;font-weight:800;font-size:12px; }
.fooy-tools-shell .actions { display:flex;gap:8px;flex-wrap:wrap; }
.fooy-tools-shell .btn { border:1px solid #66817a;color:#e4f2ea;background:#203237;padding:9px 14px;border-radius:9px;font-weight:760;font-size:13px;min-height:44px; }
.fooy-tools-shell .btn.primary { border-color:#9fc57e;background:#b5dc91;color:#10261b; }
.fooy-tools-shell .btn:disabled { opacity:.45;cursor:not-allowed; }
@media(hover:hover){.fooy-tools-shell .btn:hover:not(:disabled){filter:brightness(1.12)} }
.fooy-tools-shell .calclayout { display:grid;grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr);gap:19px;align-items:start; }
.fooy-tools-shell .panel { background:var(--card);border:1px solid var(--line);border-radius:14px;padding:23px;min-width:0;box-shadow:0 6px 20px rgba(0,0,0,.1); }
.fooy-tools-shell .panel h2, .fooy-tools-shell .panel h3 { color:#f1f8f2;margin:0 0 10px;letter-spacing:-.025em; }
.fooy-tools-shell .formgrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
.fooy-tools-shell .field { display:flex;flex-direction:column;gap:6px;min-width:0; }
.fooy-tools-shell .field.wide { grid-column:1/-1; }
.fooy-tools-shell label { color:#e6efe8;font-weight:730;font-size:13px;line-height:1.35; }
.fooy-tools-shell .field input, .fooy-tools-shell .field select, .fooy-tools-shell .searchbox { width:100%;border:1px solid #637876;border-radius:9px;padding:11px 12px;min-height:44px;background:#0d1a1e;color:#f0f7f2;font-size:16px; }
.fooy-tools-shell .field input::placeholder, .fooy-tools-shell .searchbox::placeholder { color:#99b0a9;opacity:1; }
.fooy-tools-shell input:focus, .fooy-tools-shell select:focus { border-color:var(--lime); }
.fooy-tools-shell .field small, .fooy-tools-shell .help { font-size:12px;color:#b5c8c0;line-height:1.5; }
.fooy-tools-shell .notice { background:#203b34;border-left:3px solid #a6d387;border-radius:5px;margin:18px 0 0;padding:11px 14px;font-size:13px;color:#d3e8d8; }
.fooy-tools-shell .resultmain { font-size:clamp(2.05rem,4vw,3rem);letter-spacing:-.04em;line-height:1.1;font-weight:850;margin:8px 0 18px;color:#c3f0aa;overflow-wrap:anywhere; }
.fooy-tools-shell .resultlabel { font-size:12px;text-transform:uppercase;color:#bdcbc6;letter-spacing:.085em;font-weight:850; }
.fooy-tools-shell .stat { display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:11px 0;border-top:1px solid var(--line);font-size:14px; }
.fooy-tools-shell .stat b { font-weight:800;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.fooy-tools-shell .stat span { color:#c4d3cc; }
.fooy-tools-shell .muted { font-size:12px;color:#b7cac1; }
.fooy-tools-shell .error { border:1px solid #a96750;background:#43271f;border-radius:8px;padding:12px;color:#ffd6c5;margin:0 0 13px;font-weight:700; }
.fooy-tools-shell .error[hidden], .fooy-tools-shell [hidden] { display:none!important; }
.fooy-tools-shell .resultstate { min-height:48px; }
.fooy-tools-shell .formula { font-size:12px;color:#b3c8bc;border-top:1px solid var(--line);padding-top:12px;margin-top:14px; }
.fooy-tools-shell .back { font-weight:800;text-decoration:underline;text-underline-offset:3px; }
.fooy-tools-shell .fineprint { margin-top:18px;font-size:12px;color:#acbfb5;max-width:1100px; }
.fooy-tools-shell .tablewrap { overflow-x:auto;margin-top:16px; }
.fooy-tools-shell .sched { width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px; }
.fooy-tools-shell .sched th, .fooy-tools-shell .sched td { padding:8px 10px;border-bottom:1px solid #314745;text-align:right; }
.fooy-tools-shell .sched th:first-child, .fooy-tools-shell .sched td:first-child { text-align:left; }
.fooy-tools-shell .sched thead th { background:#294139;color:#e5f6e5; }
.fooy-tools-shell .sched tr:nth-child(even) { background:#142225; }
.fooy-tools-shell .section { margin-top:38px; }
.fooy-tools-shell .section h2 { color:#f0f8ee;font-size:clamp(1.5rem,2.7vw,2.25rem);letter-spacing:-.035em;margin-bottom:7px; }
.fooy-tools-shell .section>p { margin:0 0 18px;color:#b6cbc0; }
.fooy-tools-shell .cards { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px; }
.fooy-tools-shell .toolcard { display:flex;flex-direction:column;min-height:157px;background:#1c2a2e;border:1px solid #455c59;border-radius:12px;padding:19px;transition:border-color .15s,transform .15s; }
@media(hover:hover){.fooy-tools-shell .toolcard:hover{transform:translateY(-2px);border-color:#a6d087} }
.fooy-tools-shell .toolcard strong { color:#f0f7ef;font-size:18px;letter-spacing:-.02em; }
.fooy-tools-shell .toolcard p { font-size:13px;color:#b8cac3;margin:8px 0 12px;flex:1; }
.fooy-tools-shell .toolcard .go { font-size:12px;font-weight:850;color:#c0e7a7; }
.fooy-tools-shell .feature { border-color:#779d71;background:#24382f; }
.fooy-tools-shell .searchrow { padding:18px 0 0;display:flex;gap:12px;align-items:center;max-width:620px; }
.fooy-tools-shell .searchrow label { white-space:nowrap; }
.fooy-tools-shell .empty { padding:15px;background:#342a20;border:1px solid #715639;color:#f4d9b7;border-radius:9px;display:none; }
.fooy-tools-shell .empty.show { display:block; }
@media(max-width:790px){
 .fooy-tools-shell .calclayout{grid-template-columns:1fr}
 .fooy-tools-shell .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
 .fooy-tools-shell .container{width:min(100% - 24px,1160px)}
 .fooy-tools-shell .hero{padding:30px 0}
 .fooy-tools-shell .formgrid{grid-template-columns:1fr}
 .fooy-tools-shell .cards{grid-template-columns:1fr}
 .fooy-tools-shell .panel{padding:17px}
 .fooy-tools-shell .searchrow{display:block}
 .fooy-tools-shell .searchrow label{display:block;margin-bottom:6px}
 .fooy-tools-shell .stat{gap:10px}
}
@media(prefers-reduced-motion: reduce){.fooy-tools-shell .toolcard{transition:none}}
@media print {
 .fooy-tools-shell {color-scheme:light}
 .fooy-tools-shell {background:white!important;color:#111!important}
 .fooy-tools-shell .hero {background:white!important;color:#111!important;padding:12px 0}
 .fooy-tools-shell .hero h1,.fooy-tools-shell .panel h2,.fooy-tools-shell .section h2,.fooy-tools-shell .resultmain {color:#111!important}
 .fooy-tools-shell .hero .eyebrow,.fooy-tools-shell .hero p,.fooy-tools-shell .formula,.fooy-tools-shell .fineprint,.fooy-tools-shell .stat span {color:#333!important}
 .fooy-tools-shell .actions,.fooy-tools-shell .searchrow,.fooy-tools-shell .crumb {display:none!important}
 .fooy-tools-shell .calclayout{display:block}
 .fooy-tools-shell .panel,.fooy-tools-shell .toolcard {background:white!important;color:#111!important;border:1px solid #aaa!important;break-inside:avoid;margin-bottom:10px;box-shadow:none!important}
 .fooy-tools-shell .field input,.fooy-tools-shell .field select {background:white!important;color:#111!important}
 .fooy-tools-shell .container {width:100%}
 .fooy-tools-shell .sched{font-size:10px}
 .fooy-tools-shell .sched tr,.fooy-tools-shell .sched th {background:white!important;color:#111!important}
}

/* Scope every Tools visual rule to the unique page main; the universal header/footer are owned by _fooy. */
