/* Quick Life Fixes v0.3 — Calm Utility. Accessible, lightweight, CSS-only styling. */
:root{color-scheme:light;--ink:#153244;--muted:#425f68;--teal:#086e73;--deep:#055d63;--pale:#f3f8f5;--line:#bfd8d2;--white:#fff;--gold:#8b5912}
*{box-sizing:border-box} [hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 84% 1%,#d9f3ea 0,transparent 50%),linear-gradient(155deg,#f8fbf7,#eaf4f0);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,textarea:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #a55700;outline-offset:3px}button:disabled{opacity:.7;cursor:wait}.site{width:min(1160px,calc(100% - 42px));margin:0 auto} .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.brand{height:76px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px}.wordmark{display:flex;align-items:center;font-size:21px;font-weight:800;letter-spacing:-.03em;color:var(--ink);text-decoration:none;white-space:nowrap}.wordmark strong{color:var(--teal);margin-left:.32em}.brand-icon{display:grid;place-items:center;width:38px;height:38px;margin-right:10px;background:var(--teal);color:#fff;border-radius:12px;font-size:25px}.environment{font-size:12px;font-weight:750;color:var(--deep);letter-spacing:.07em}.dot{display:inline-block;width:7px;height:7px;background:#09866e;border-radius:50%;margin-right:7px}
.hero-layout{display:grid;grid-template-columns:.95fr 1.05fr;gap:42px;align-items:center;padding:48px 0 20px}.hero{max-width:510px}.eyebrow{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--deep);font-weight:850;margin:0 0 12px}.hero h1{font-size:clamp(39px,4.5vw,64px);line-height:1.07;letter-spacing:-.047em;margin:0 0 22px;font-weight:850}.hero h1 span{color:var(--teal)}.subhead{font-size:18px;line-height:1.6;color:var(--muted);margin:0 0 20px}.hero-detail{font-size:14px;color:#355b5a;display:flex;gap:8px;align-items:center;font-weight:650}.hero-detail span{color:var(--deep)}
.askpanel,.answerpanel{background:#fff;border:1px solid #bfd8d3;border-radius:22px;box-shadow:0 12px 46px #0b56551b}.askpanel{padding:26px}.askpanel h2{font-size:21px;letter-spacing:-.03em;margin:0 0 14px}.askpanel textarea{display:block;width:100%;min-height:126px;padding:15px 17px;resize:vertical;background:#fafdfb;color:var(--ink);border:1.5px solid #91b5ae;border-radius:12px;line-height:1.45;font-size:18px}.askpanel textarea::placeholder{color:#506d72;opacity:1}.primary{width:100%;background:var(--teal);color:#fff;border:0;border-radius:11px;min-height:55px;padding:13px 19px;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.primary:hover,.smallprimary:hover{background:var(--deep)}.ask-note{font-size:13px;line-height:1.4;color:var(--muted);margin:12px 0 0}.examples{padding-top:16px;margin-top:16px;border-top:1px solid #dfebe7}.examples p{font-size:13px;font-weight:750;color:var(--muted);margin:0 0 10px}.chips,.adjust-chips{display:flex;flex-wrap:wrap;gap:8px}.chips button,.adjust-chips button{border:1px solid #b9d4cd;border-radius:999px;background:#f1f8f4;color:#145d60;padding:9px 13px;font-size:13px;font-weight:700;min-height:42px}.chips button:hover,.adjust-chips button:hover{background:#deeee8}.error{background:#fff0eb;border:1px solid #ad5540;color:#803322;border-radius:12px;padding:14px;margin:15px 0}
.answerpanel{margin:22px 0 26px;padding:28px;scroll-margin-top:12px}.result-top,.row,.result-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.result-top h2{margin:0;font-size:25px;letter-spacing:-.04em}.asked{font-size:14px;color:var(--muted);padding:14px 0 16px;line-height:1.55;overflow-wrap:anywhere}.asked strong{color:var(--ink)}.quiet{min-height:44px;border:0;padding:9px 10px;background:transparent;color:var(--deep);font-weight:750;text-decoration:underline;text-underline-offset:3px;font-size:14px}.actioncard,.backupcard,.followbox,.messagebox{border-radius:15px;margin-top:12px;padding:20px;min-width:0}.actioncard{background:#eaf8f2;border:1px solid #85bcb3;border-left:6px solid var(--teal)}.backupcard{background:#fafdfb;border:1px solid #cfe2dc}.actionhead{display:flex;gap:11px;align-items:center}.step{color:#674d12;font-weight:800;font-size:13px}.actionhead h3{font-size:20px;letter-spacing:-.02em;margin:0}.backupcard .actionhead h3{font-size:17px}.actioncard p,.backupcard p{font-size:17px;line-height:1.55;color:#284b54;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.followbox{background:#f9f7ed;border:1px solid #cbb57a}.followbox h3,.messagebox h3,.refine h3{font-size:16px;margin:0 0 8px}.followbox p{margin:0 0 13px}.messagebox{background:#f5fafb;border:1px solid #bad6dc}.messagebox p{white-space:pre-wrap;line-height:1.5}.caption{font-size:13px!important;line-height:1.4;color:var(--muted)}.smallprimary{border:0;border-radius:10px;padding:12px 15px;font-size:14px;background:var(--teal);color:#fff;font-weight:750;min-height:44px}.followbox form,.refine form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.followbox input,.refine input{flex:1;min-width:180px;border:1px solid #9ab8b0;padding:12px;border-radius:9px;background:#fff;color:var(--ink);font-size:15px;min-height:44px}
.refine{margin-top:20px}.refine h3{margin-bottom:12px}.refine form{margin-top:13px}.refine form label{width:100%;color:var(--muted);font-size:14px;font-weight:700}.result-footer{border-top:1px solid #dfebe7;margin-top:24px;padding-top:14px;align-items:flex-start;flex-wrap:wrap}.feedback,.result-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.feedback>span:first-child{color:var(--muted);font-size:14px;font-weight:750}.feedback button{background:#fff;border:1px solid #9cc8bf;border-radius:9px;color:var(--deep);padding:10px 14px;min-height:44px;font-size:14px;font-weight:750}.feedback-note{font-size:13px;color:var(--muted)}.safety .actioncard{background:#fff1ed;border-color:#c5765f;border-left-color:#b34d31}.safety .eyebrow{color:#913a26}
.closing{max-width:990px;margin:32px auto 15px;display:grid;grid-template-columns:1fr 1fr;gap:24px;color:var(--muted);font-size:13px;line-height:1.55}.closing p{margin:0}footer{padding:18px 0 29px;border-top:1px solid #c4d9d1;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:13px}
dialog{max-width:480px;width:calc(100% - 30px);padding:30px;border:1px solid #a7c7bf;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 25px 100px #0d393b55}dialog::backdrop{background:#143c3ba8}dialog h2{margin:0 0 12px;font-size:27px}dialog p{line-height:1.5;color:var(--muted)}dialog label{display:block;font-size:14px;font-weight:700;margin-top:15px}dialog input{width:100%;padding:13px;border:1px solid #95b3b0;border-radius:9px;margin-top:9px;color:var(--ink)}dialog .primary{justify-content:center;margin-top:20px}
.result-active .hero-layout{display:none}.result-active .answerpanel{margin-top:20px}
@media(max-width:820px){.hero-layout{gap:22px;grid-template-columns:1fr;align-items:start;padding-top:26px}.hero{max-width:700px}.hero h1{font-size:clamp(32px,7vw,45px);line-height:1.12;max-width:650px;margin:0 0 11px}.hero .subhead{font-size:16px;line-height:1.4;margin-bottom:0}.hero-detail{display:none}.askpanel{padding:19px}.askpanel textarea{min-height:112px}.closing{grid-template-columns:1fr}.result-active .answerpanel{margin-top:15px}}
@media(max-width:520px){.site{width:calc(100% - 26px)}.brand{height:64px}.wordmark{font-size:17px}.brand-icon{height:34px;width:34px;font-size:20px;margin-right:7px}.environment{font-size:10px;letter-spacing:0}.hero-layout{gap:17px;padding-top:19px}.hero .eyebrow{font-size:11px;margin-bottom:8px}.hero h1{font-size:clamp(30px,8.1vw,36px);margin:0 0 8px}.hero .subhead{font-size:14px;line-height:1.42}.askpanel{padding:16px;border-radius:16px}.askpanel h2{font-size:19px;margin-bottom:11px}.askpanel textarea{min-height:104px;font-size:16px;padding:12px}.ask-note{font-size:12px;line-height:1.35}.examples{padding-top:12px;margin-top:12px}.chips{gap:6px}.chips button{font-size:12px;padding:8px 10px;min-height:39px}.answerpanel{padding:16px;border-radius:16px}.result-top h2{font-size:22px}.actioncard,.backupcard,.followbox,.messagebox{padding:15px}.actioncard p,.backupcard p{font-size:16px}.closing{font-size:12px;gap:10px;margin:20px 0}.result-top{align-items:flex-start}}
@media(max-width:360px){.environment{font-size:9px}.wordmark{font-size:15px}.brand-icon{width:30px;height:30px}.hero h1{font-size:29px}.askpanel{padding:13px}.hero-layout{padding-top:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* v0.3.1 — optional information stays below the short action and backup. */
.details-controls{display:flex;align-items:center;gap:10px;margin:12px 3px 2px}.details-controls .quiet{font-size:15px}.detailbox{margin-top:8px;border:1px solid #cfe2dc;background:#f7fbf8;border-radius:14px;padding:16px 20px}.detailbox h3{font-size:15px;margin:0 0 7px}.detailbox p{line-height:1.5;font-size:15px;color:var(--muted);margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

/* v0.4.0: unobtrusive expert selector. Original question box stays primary. */
.expert-picker{margin:2px 0 14px}.expert-picker label{display:block;font-weight:750;font-size:14px;margin-bottom:7px;color:var(--ink)}.expert-optional{font-size:12px;font-weight:500;color:var(--muted)}.expert-picker select{display:block;width:100%;min-height:46px;padding:10px 13px;border:1.5px solid #91b5ae;border-radius:10px;background:#f7fbf8;color:var(--ink);font:inherit;font-size:15px}.expert-picker select:focus-visible{outline:3px solid #a55700;outline-offset:3px}.expert-help{margin:6px 0 0;font-size:12px;color:var(--muted);line-height:1.4}@media(max-width:520px){.expert-picker{margin-bottom:12px}.expert-picker select{font-size:16px}}

.safety-recourse{margin-top:15px;padding:14px 17px;background:#fffaf4;border:1px solid #d5b591;border-radius:12px}
.safety-recourse p{font-size:14px;line-height:1.55;color:#62432e;margin:0 0 9px}
.safety-recourse button{min-height:44px;border-radius:8px;background:#fff;border:1px solid #b88e65;text-decoration:none}
#resultHeading:focus{outline:2px solid #90b6ae;outline-offset:4px;border-radius:4px}

/* v0.4.2: prominent, calm pre-question notice; no emergency handling promise. */
.emergency-notice{border:1px solid #c9b9a6;border-left:4px solid #9a7345;border-radius:12px;background:#fffbf3;padding:11px 13px;margin:0 0 14px;color:#493b2b}
.emergency-notice strong{font-size:14px;line-height:1.25;display:block;margin:0 0 4px}
.emergency-notice p{font-size:13px;line-height:1.38;margin:0}
.emergency-notice b{font-weight:750}
/* Keep the ask-first workflow visible on compact phones while retaining the warning. */
@media(max-width:520px){
 .brand{height:52px}
 .hero-layout{padding-top:12px;gap:10px}
 .hero .eyebrow{display:none}
 .hero h1{font-size:27px;line-height:1.13;margin-bottom:2px}
 .hero .subhead{font-size:13px;line-height:1.3}
 .askpanel{padding:12px}
 .askpanel h2{font-size:17px;margin-bottom:8px}
 .emergency-notice{padding:8px 10px;margin-bottom:9px}
 .emergency-notice strong{font-size:14px;margin-bottom:2px}
 .emergency-notice p{font-size:14px;line-height:1.28}
 .expert-picker{margin:0 0 8px}
 .expert-picker label{font-size:13px;margin-bottom:3px}
 .expert-picker select{min-height:42px;padding:6px 10px;font-size:16px}
 .expert-help{display:none}
 .askpanel textarea{min-height:68px;padding:7px 10px;font-size:16px;line-height:1.3}
 .askpanel .primary{min-height:46px;margin-top:7px;padding:9px 13px;font-size:16px}
}
@media(max-width:360px){
 .hero h1{font-size:26px}
 .hero-layout{gap:8px;padding-top:10px}
 .hero .subhead{font-size:13px}
}

/* v0.4.6: link only on non-safety, context-matched answers. */
.bpf-tool{margin:15px 0 6px;padding:15px 18px;border:1px solid #d0e4df;border-radius:12px;background:#f6faf8}
.bpf-eyebrow{font-size:12px;font-weight:750;letter-spacing:.02em;margin:0 0 7px;color:#425f68}
.bpf-tool a{font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:3px;color:#086e73;display:inline-block;padding:4px 0;min-height:36px}
.bpf-tool #bpfToolHint{font-size:12px;line-height:1.5;color:#425f68;margin:5px 0 0}
/* v0.4.7: situation choices, instant alternatives, usage note, recoverable errors */
.situation{border:0;margin:14px 0 12px;padding:0;min-width:0}
.situation legend{font-size:14px;font-weight:750;color:var(--ink);padding:0;margin-bottom:8px}
.situation-chips{display:flex;flex-wrap:wrap;gap:8px}
.situation-chips button{border:1px solid #9ab8b0;border-radius:999px;background:#fff;color:var(--ink);padding:10px 14px;font-size:14px;font-weight:650;min-height:44px;min-width:44px;cursor:pointer}
.situation-chips button[aria-pressed="true"]{background:var(--deep);border-color:var(--deep);color:#fff}
.situation-chips button[aria-pressed="true"]::before{content:"✓ ";}
.situation-chips button:focus-visible,.adjust-chips button:focus-visible,#retry:focus-visible{outline:3px solid #c9862b;outline-offset:2px}
.situation-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px}
.situation-status .caption{margin:0}
.using{margin:6px 0 0;font-size:14px;color:var(--muted)}
.plan-label{margin:0 0 8px;font-size:13px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--deep)}
.adjust-chips .cost{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-top:1px}
.adjust-chips button[aria-pressed="true"]{background:#d9ece6;border-color:var(--deep)}
.usage-note{margin:16px 0 0;font-size:14px;color:var(--muted)}
.error p{margin:0}
.error .error-notice{margin-top:8px;white-space:pre-line}
.error #retry{margin-top:12px}
@media(max-width:420px){.situation-chips button{font-size:13px;padding:9px 12px}}
/* v0.4.8: checklist steps, constraint note, share panel, fallback cards, home-screen help */
.stepsbox{margin-top:12px;border:1px solid #cfe2dc;background:#fafdfb;border-radius:15px;padding:16px 20px}
.stepsbox h3{font-size:16px;margin:0}
.steps-list{list-style:none;margin:10px 0 6px;padding:0;display:grid;gap:4px}
.steps-list li{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:4px 0}
.steps-list input{width:24px;height:24px;margin:2px 0 0;flex:none;accent-color:var(--deep)}
.steps-list label{font-size:16px;line-height:1.45;color:#284b54;overflow-wrap:anywhere;cursor:pointer}
.steps-list input:checked+label{text-decoration:line-through;color:var(--muted)}
.steps-list input:focus-visible{outline:3px solid #c9862b;outline-offset:2px}
.constraint-note{margin:12px 0 0;padding:12px 14px;border:1px solid #cbb57a;background:#fbf7ea;border-radius:12px;color:#5a4410;font-size:14px;line-height:1.45}
.sharepanel{margin-top:16px;border:1px solid #bad6dc;background:#f5fafb;border-radius:15px;padding:16px 18px}
.sharepanel h3{font-size:16px;margin:0 0 6px}
.sharepanel textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #9ab8b0;border-radius:10px;font:inherit;font-size:15px;line-height:1.45;color:var(--ink);background:#fff;resize:vertical}
.share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;align-items:center}
.fallbackpanel{margin:16px 0 22px;padding:22px;background:#fff;border:1px solid #bfd8d3;border-radius:18px}
.fallbackpanel h2{font-size:19px;margin:0 0 6px;letter-spacing:-.02em}
.fallbackcard{margin-top:14px;padding:16px 18px;border:1px solid #cfe2dc;border-radius:14px;background:#fafdfb}
.fallbackcard h3{font-size:17px;margin:4px 0 8px}
.fallbackcard p{margin:6px 0;line-height:1.5;overflow-wrap:anywhere}
.fallbackcard .eyebrow{font-size:11px;margin:0}
.homehelp{margin:18px 0;padding:18px 20px;border:1px solid #bfd8d3;border-radius:16px;background:#fff}
.homehelp h2{font-size:17px;margin:0 0 8px}
.homehelp p{margin:6px 0;line-height:1.5}
.footer-link{padding:0 4px;min-height:44px;font-size:13px}
footer{flex-wrap:wrap;align-items:center}
.edit-situation{margin:12px 0 4px;width:100%}
.edit-situation .situation-chips button[aria-pressed="true"]{background:var(--deep);border-color:var(--deep);color:#fff}
.fallback-warning{margin:6px 0 8px;padding:10px 12px;border-left:4px solid #b34d31;background:#fff1ed;color:#6d2a1a;border-radius:8px;font-size:14px;line-height:1.45}
