.dt-scene{--dt-teal:#08776f;--dt-red:#bd493b;--dt-violet:#7058a2;color:#183945;font:inherit;min-width:0}
.dt-title{display:flex;justify-content:space-between;gap:.7rem;align-items:center}.dt-title h3{font-size:clamp(1.05rem,2.6vw,1.35rem);line-height:1.2;margin:0}
.dt-prompt{font-weight:620;margin:.4rem 0 .75rem;line-height:1.4}.dt-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:.8rem}
.dt-illustration,.dt-ledger{border:1px solid #c8dcd8;border-radius:.85rem;min-width:0}.dt-illustration{display:grid;align-content:center;padding:.25rem .4rem .45rem;background:linear-gradient(145deg,#f7faf8,#e5f0ed)}.dt-picture{display:block;width:100%;height:auto;max-height:210px;overflow:visible}
.dt-ledger{padding:.7rem clamp(.45rem,1vw,1rem);display:grid;align-content:center;gap:.22rem;background:#fff}.dt-line{display:grid;grid-template-columns:1rem 1fr;gap:.3rem;align-items:baseline;font-family:Cambria,"Times New Roman",serif;font-size:clamp(1rem,2vw,1.4rem);line-height:1.5}.dt-line>span:first-child{color:#5c747b}.dt-line:last-child{font-weight:700}
.dt-key{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap;font-size:.85rem;font-weight:650}.dt-pos{color:#065f59}.dt-neg{color:#a0382e}.dt-op{color:#7058a2;font-weight:750}.dt-pairs{display:block;text-align:center;color:#526a71}
.dt-choices{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0 0}.dt-scene button{font:inherit;min-height:42px;padding:.38rem .8rem;border:1px solid #91adb0;border-radius:.6rem;background:white;color:#17414b;font-weight:650;cursor:pointer}
.dt-scene button:hover:enabled{background:#e6f4f0}.dt-scene .dt-btn-pos{border-color:#69a99e;color:#055b53;background:#eaf6f0}.dt-scene .dt-btn-neg{border-color:#ce9487;color:#913b2d;background:#fff1ea}.dt-scene button:disabled{opacity:.45;cursor:default}.dt-scene .dt-reset{font-size:.8rem;padding:.3rem .6rem;min-height:37px;white-space:nowrap}
.dt-scene button:focus-visible{outline:3px solid #66458b;outline-offset:3px}.dt-feedback{color:#185d58;font-weight:600;margin:.55rem 0 0;min-height:1.45em;line-height:1.4}.dt-feedback.dt-retry{color:#913b2d}
@media(max-width:600px){.dt-grid{grid-template-columns:1fr}.dt-illustration{max-height:205px}.dt-picture{max-height:155px}.dt-choices button{min-height:44px}.dt-line{font-size:1.12rem}.dt-title{align-items:start}}

.sg-scene{--sg-ink:#183945;--sg-line:#c8dcd8;--sg-teal:#065f59;--sg-red:#9e3d32;color:var(--sg-ink);min-width:0;font:inherit}
.sg-scene *,.sg-scene *::after,.sg-scene *::before{box-sizing:border-box}
.sg-scene h3,.sg-scene ol,.sg-scene p{margin:0}
.sg-heading{display:flex;align-items:center;justify-content:space-between;gap:.7rem}
.sg-heading h3{font-size:clamp(1.05rem,2.3vw,1.4rem);line-height:1.2}
.sg-scene button{min-height:42px;appearance:none;font:inherit;font-size:.95rem;font-weight:650;cursor:pointer;border:1px solid #91adb0;border-radius:.58rem;background:#fff;color:#17414b;padding:.35rem .68rem}
.sg-scene button:hover:enabled{background:#e6f4f0}.sg-scene button:disabled{cursor:default;opacity:.58}
.sg-scene button:focus-visible{outline:3px solid #6b488e;outline-offset:3px}
.sg-scene .sg-reset{font-size:.8rem;white-space:nowrap;min-height:36px}
.sg-scene .sg-prompt{margin:.5rem 0 .7rem;font-weight:630;line-height:1.4}
.sg-options{display:flex;gap:.45rem;margin:0 0 .7rem}
.sg-options .sg-guess{display:flex;align-items:center;gap:.4rem}
.sg-guess b{font:bold 1.28rem Georgia,serif}
.sg-panels{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:.75rem}
.sg-bank,.sg-ledger{border:1px solid var(--sg-line);border-radius:.75rem;padding:.75rem;min-width:0}
.sg-bank{background:linear-gradient(140deg,#fffdf7,#f1f8f4)}
.sg-bank-head,.sg-change{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.sg-bank-head>span:first-child{font-weight:730}.sg-bank-head>span:last-child{font-size:.77rem;color:#526972}
.sg-receipts{list-style:none;padding:0}
.sg-receipt{margin-top:.5rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:#fff;border:1px solid #d2dfdb;padding:.3rem .46rem;border-radius:.48rem;min-height:3rem}
.sg-booking{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}
.sg-booking small{font-size:.84rem;color:#4f656d}.sg-booking strong{color:var(--sg-red);font-weight:720;white-space:nowrap}
.sg-receipt button{min-height:38px;font-size:.85rem;padding:.22rem .48rem}
.sg-stamp{color:#326054;background:#e6f3e9;border-radius:.3rem;padding:.2rem .38rem;font-size:.8rem;font-weight:700;white-space:nowrap}
.sg-cancelled{border-style:dashed;background:#f7fbf8}
.sg-change{margin:.65rem 0 .3rem;color:var(--sg-teal);font-weight:680}.sg-change span{font-size:.88rem}.sg-change b{font-variant-numeric:tabular-nums;font-size:1.13rem;white-space:nowrap}
.sg-track{display:flex;position:relative;justify-content:space-between;font-size:.81rem;line-height:1.5;color:#526a70;margin-top:.4rem}
.sg-track::before{content:"";height:2px;background:#c7d9d4;position:absolute;top:5px;left:.7rem;right:.7rem}
.sg-step{position:relative;display:grid;justify-items:center;gap:.12rem;font-weight:640}.sg-step i{display:block;border:1.6px solid #829d98;background:#fff;width:11px;height:11px;border-radius:50%}
.sg-passed i{background:#39988a;border-color:var(--sg-teal)}.sg-current{color:var(--sg-teal);font-weight:800}.sg-current i{box-shadow:0 0 0 2px #bce2d7}
.sg-ledger{display:grid;align-content:center;gap:.42rem;background:#fff}.sg-line{display:grid;grid-template-columns:.9em 1fr;align-items:center;gap:.03rem .35rem}
.sg-line>span:first-child{color:#62777e;text-align:center}.sg-line .sg-math{font-family:Cambria,"Times New Roman",serif;font-size:clamp(1.15rem,2.0vw,1.5rem);line-height:1.22}.sg-line small{grid-column:2;color:#536a72;font-size:.8rem}
.sg-neg{color:var(--sg-red)}.sg-pos{color:var(--sg-teal)}.sg-op{color:#715293}
.sg-scene .sg-feedback{font-size:.94rem;line-height:1.45;color:#235b51;margin-top:.5rem;min-height:1.4em}.sg-scene .sg-feedback.sg-retry{color:#8b3d30}
.sg-rule{display:flex;flex-wrap:wrap;gap:.35rem 1rem;align-items:center;background:#ecf5f0;border-left:3px solid #7aa99a;border-radius:.2rem;padding:.6rem .7rem;font-size:.88rem}.sg-rule>strong,.sg-rule small{width:100%}.sg-rule small{font-size:.79rem;color:#475f66}
@media(max-width:620px){.sg-panels{grid-template-columns:1fr}.sg-receipt button,.sg-options button{min-height:44px}.sg-bank,.sg-ledger{padding:.62rem}.sg-heading{align-items:flex-start}.sg-scene .sg-reset{min-height:40px}}
@media(prefers-reduced-motion:no-preference){.sg-stamp,.sg-current i{animation:sg-confirm .22s ease-out}@keyframes sg-confirm{from{transform:scale(.84);opacity:.35}to{transform:scale(1);opacity:1}}}
