.demo-main{max-width:65rem;margin-bottom:3rem}
.demo-hero{margin:1rem 0 1.5rem;padding:clamp(1.3rem,4vw,3rem);background:#193f31;color:#f5f8ee;border-radius:1.2rem}
.demo-hero .overline{color:#d5e9c2}.demo-hero h1{font-size:clamp(2rem,4.7vw,4.35rem);line-height:1.06;letter-spacing:-.05em;margin:.55rem 0 .85rem}
.demo-hero p:not(.overline){max-width:47rem;color:#deeadb;font-size:1.12rem}
.demo-hero nav,.demo-links,.demo-actions,.type-choice{display:flex;flex-wrap:wrap;gap:.45rem .75rem;align-items:center}
.demo-hero nav{margin-top:.8rem}.demo-hero a,.demo-links a,.demo-card>a{display:inline-flex;min-height:44px;align-items:center}
.demo-hero a{color:#e0f6ad;margin-right:.45rem}
.demo-card{border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,3vw,2.1rem);margin-bottom:1.15rem;min-width:0;background:var(--demo-card,#fff);scroll-margin-top:.6rem}
.demo-card h2{font-size:clamp(1.55rem,3vw,2.4rem);line-height:1.15;margin-bottom:.6rem}
.demo-card h3{line-height:1.28}.demo-card>p,.demo-extra p,.demo-card dd{color:var(--muted)}
.type-choice{margin:.85rem 0;border:0;padding:0;min-width:0}
.type-choice legend{float:left;width:100%;margin-bottom:.4rem;font-weight:690}
.type-choice label{display:flex;align-items:center;gap:.4rem;min-height:44px;padding:.4rem .65rem;cursor:pointer;border:1px solid var(--line);border-radius:.5rem}
.type-choice input{width:1.1em;height:1.1em;accent-color:#28734f}
.demo-page [hidden]{display:none!important}
#reading-fields,#zone-choice,#guide-link-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.8rem;margin:.75rem 0}
#reading-fields label,#zone-choice,#guide-link-box{display:grid;align-content:start;gap:.35rem;font-weight:650}
#reading-fields label>input,.demo-page select,#guide-link{font:inherit;font-weight:500;max-width:100%;min-width:0;width:100%;min-height:48px;color:var(--ink);background:var(--paper);border:1px solid #879a8a;border-radius:.5rem;padding:.5rem .65rem}
.demo-note{font-size:.91rem;color:var(--muted);font-weight:500}
.demo-actions,.demo-links{margin:.7rem 0}.demo-page button{font:inherit;line-height:1.3;font-weight:630;min-height:44px;max-width:100%;padding:.55rem .85rem;border-radius:.55rem;cursor:pointer}
.demo-primary{color:#fff;background:#285e45;border:1px solid #285e45}.demo-minor{color:var(--link);background:var(--paper);border:1px solid var(--line)}
.demo-page button:disabled{opacity:.55;cursor:default}
.demo-error{color:#9e3329;font-weight:650}.demo-error:empty,.demo-status:empty,#guide-share-status:empty{display:none}
#demo-result,.example-receipt,.large-step{background:var(--demo-mild,#eff3e8);padding:1rem;border-radius:.65rem;margin:.9rem 0}
#result-lines p{display:grid;padding:.55rem 0;border-bottom:1px solid var(--line)}
#demo-total{display:block;font-size:1.25rem;margin:.6rem 0}
.demo-extra{border-top:1px solid var(--line);margin-top:.65rem}
.demo-extra>summary{cursor:pointer;min-height:44px;padding:.65rem 0;font-weight:675}
.demo-extra ol,.term-list{padding-left:1.25rem}.term-list dt{font-weight:700}.term-list dd{margin:0 0 .65rem}
.example-receipt{max-width:35rem}.example-receipt dl{margin:0}.example-receipt dl>div{display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:.35rem 0}
.example-receipt dd{margin:0;font-variant-numeric:tabular-nums}
.meter-display{margin:.4rem 0 .7rem;display:inline-flex;align-items:center;gap:.08em;background:#172b23;border:3px solid #75857b;border-radius:.35rem;padding:.15em .35em;font:650 clamp(1.7rem,5vw,2.6rem)/1.3 ui-monospace,monospace;color:#f1f3de;letter-spacing:.065em;max-width:100%}
.meter-display strong{color:#ffb5a2}.large-step #guide-position{font-weight:650;color:var(--muted)}
.large-step h3{font-size:clamp(1.45rem,3.8vw,2.2rem);font-weight:630;margin:.4rem 0 .15rem;letter-spacing:-.035em}
#demo-tour{width:100%;height:auto;max-height:70vh;display:block;background:#193f31;border-radius:.6rem;margin-top:.7rem}
.matrix-scroll{overflow:auto;max-width:100%;margin-top:.6rem}
.matrix-scroll table{border-collapse:collapse;line-height:1.4;width:100%}
.matrix-scroll th,.matrix-scroll td{padding:.5rem .6rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.matrix-scroll caption{text-align:left;font-weight:650;margin-bottom:.4rem}
@media(max-width:600px){.demo-main .crumbs{font-size:.85rem}.demo-card{padding:1rem .75rem}.matrix-scroll table{min-width:38rem}}
@media screen and (forced-colors:none){:root[data-reader-palette=dark] .demo-page{--demo-card:#203027;--demo-mild:#293e2f}:root[data-reader-palette=dark] .demo-error{color:#ffb4a8}}
@media print{.demo-hero nav,.demo-actions,.demo-links,.demo-card video{display:none}.demo-card{break-inside:avoid}}

.demo-terms-near{display:flex;flex-wrap:wrap;gap:.1rem .85rem;font-size:.92rem}.demo-terms-near a{display:inline-flex;min-height:44px;align-items:center}
