/* Extra pieces for the newer tools: intro art, animated meters, split bars, checklists, line charts. Uses the tokens from tools.css. */
.intro.has-art{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:28px;align-items:center}
.intro.has-art > div{max-width:70ch;min-width:0}
.art{width:220px;height:170px;justify-self:end}
.art svg{width:100%;height:100%;overflow:visible}
@media (max-width:700px){.intro.has-art{grid-template-columns:1fr}.art{display:none}}
@media (prefers-reduced-motion:no-preference){
  .art .bob{animation:t2-bob 3.2s ease-in-out infinite}
  .art .bob2{animation:t2-bob 3.2s ease-in-out .8s infinite}
  .art .drop{animation:t2-drop 2.6s ease-in infinite}
  .art .drop2{animation:t2-drop 2.6s ease-in 1.3s infinite}
  .art .pulse{animation:t2-pulse 2.4s ease-in-out infinite;transform-origin:center;transform-box:fill-box}
  .art .draw{stroke-dasharray:400;stroke-dashoffset:400;animation:t2-draw 1.6s ease-out .3s forwards}
  @keyframes t2-bob{50%{transform:translateY(-5px)}}
  @keyframes t2-drop{0%{transform:translateY(-40px);opacity:0}15%{opacity:1}70%{transform:translateY(0);opacity:1}100%{transform:translateY(0);opacity:0}}
  @keyframes t2-pulse{50%{transform:scale(1.08)}}
  @keyframes t2-draw{to{stroke-dashoffset:0}}
}
/* split bar: how each $100 divides */
.split{display:flex;height:44px;border-radius:10px;overflow:hidden;gap:2px;background:var(--hero-fill);margin:14px 0 8px}
.split i{display:flex;align-items:center;justify-content:center;height:100%;font:600 .78rem var(--sans);color:#fff;min-width:0;white-space:nowrap;overflow:hidden;transition:flex-grow .7s cubic-bezier(.2,.7,.2,1)}
.keyrow{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.78rem;opacity:.85}
.keyrow span{display:inline-flex;align-items:center;gap:6px}
.keyrow i{width:9px;height:9px;border-radius:3px}
/* timeline of due dates */
.due{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.due div{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.due div.next{border-color:var(--brand);background:var(--brand-wash)}
.due small{font-size:.74rem;color:var(--muted)}
.due b{font-weight:650;font-variant-numeric:tabular-nums}
.due em{font-style:normal;font-size:.74rem;color:var(--brand-dark);font-weight:600}
@media (max-width:620px){.due{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* gauge */
.gauge{display:flex;align-items:center;gap:16px}
.gauge svg{width:132px;height:80px;flex:none;overflow:visible}
.gauge .trk{fill:none;stroke:var(--hero-line);stroke-width:12;stroke-linecap:round}
.gauge .val{fill:none;stroke:var(--hero-ink);stroke-width:12;stroke-linecap:round;transition:stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1)}
/* checklist results */
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ticks li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid var(--line2);font-size:.9rem}
.ticks li:last-child{border-bottom:0}
.ticks .ic{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:700;color:#fff;margin-top:1px}
.ticks .ic.y{background:var(--good)}.ticks .ic.n{background:var(--warn)}.ticks .ic.x{background:var(--bad)}
.ticks b{font-weight:600}
.ticks small{display:block;color:var(--muted);font-size:.8rem}
.ticks .amt{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (prefers-reduced-motion:no-preference){.ticks li{animation:t2-in .35s ease-out both}.ticks li:nth-child(2){animation-delay:.03s}.ticks li:nth-child(3){animation-delay:.06s}.ticks li:nth-child(4){animation-delay:.09s}.ticks li:nth-child(n+5){animation-delay:.12s}}
@keyframes t2-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* option columns */
.cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.colopt{border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px;min-width:0;background:var(--surface)}
.colopt.best{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand) inset}
.colopt h3{margin:0;font-size:.92rem;font-weight:600}
.colopt .v{font:650 1.35rem/1.1 var(--sans);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.colopt .v.neg{color:var(--bad)}
.colopt small{color:var(--muted);font-size:.76rem}
.colopt .vbar{height:70px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}
.colopt .vbar i{display:block;width:100%;border-radius:6px 6px 0 0;background:var(--brand);transition:height .7s cubic-bezier(.2,.7,.2,1)}
.colopt.lose .vbar i{background:var(--bad)}
@media (max-width:520px){.cols3{grid-template-columns:1fr}.colopt .vbar{display:none}}
/* line chart */
.lc{width:100%;height:auto;display:block;overflow:visible}
.lc .ax{stroke:var(--line);stroke-width:1}
.lc .lab{fill:var(--muted);font:500 10.5px var(--sans)}
.lc .l1{fill:none;stroke:var(--brand);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.lc .l2{fill:none;stroke:var(--bad);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:6 5}
.lc .gap{fill:color-mix(in srgb,var(--bad) 12%,transparent)}
.lc.draw .l1{animation:t2-ln 1.1s ease-out both}
@keyframes t2-ln{from{stroke-dasharray:0 1600}to{stroke-dasharray:1600 0}}
/* text output with copy */
.out{white-space:pre-wrap;font:400 .9rem/1.6 var(--sans);background:var(--wash);border:1px solid var(--line);border-radius:10px;padding:14px;margin:0;max-height:340px;overflow:auto;color:var(--ink)}
.acts{display:flex;gap:8px;flex-wrap:wrap}
.btn.ghosty{background:var(--surface);color:var(--ink);border-color:var(--line)}
/* progress ring */
.ring{display:flex;align-items:center;gap:16px}
.ring svg{width:84px;height:84px;flex:none;transform:rotate(-90deg)}
.ring .rt{fill:none;stroke:var(--hero-line);stroke-width:9}
.ring .rv{fill:none;stroke:var(--hero-ink);stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .6s cubic-bezier(.2,.7,.2,1)}
/* binder sections */
.sect{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sect > summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;font-weight:600;background:var(--surface)}
.sect > summary::-webkit-details-marker{display:none}
.sect > summary .n{font:500 .78rem var(--sans);color:var(--muted)}
.sect > summary .n.done{color:var(--good)}
.sect > div{padding:4px 16px 16px;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line2)}
.sect textarea{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 11px;font:inherit;font-size:.92rem;width:100%;min-height:64px;resize:vertical;color:var(--ink)}
.sect textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-wash)}
.warnbox{border:1px solid color-mix(in srgb,var(--warn) 40%,var(--line));background:color-mix(in srgb,var(--warn) 8%,var(--surface));border-radius:10px;padding:12px 14px;font-size:.86rem;color:var(--ink2)}
.warnbox b{color:var(--ink)}
.offer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--surface)}
.offer small{grid-column:1/-1;font-size:.72rem;color:var(--muted)}
.offer p{margin:0;font-size:.88rem;color:var(--ink2)}
.offer b{display:block;color:var(--ink)}
.offer .btn{white-space:nowrap}

/* readability: buttons with white text use the deeper brand green in light mode */
:root:not([data-theme="dark"]) .offer .btn,:root:not([data-theme="dark"]) .btn:not(.ghosty){background:#047857;border-color:#047857}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .offer .btn,:root:not([data-theme="light"]) .btn:not(.ghosty){background:var(--brand);border-color:var(--brand)}}
.split i:first-child{color:#03251b}
@media (max-width:620px){.seg button{padding:10px 13px}}
