.civil-lab{--ink:#203635;--muted:#4a6561;--edge:#d4dfd7;--accent:#1d5a52;--teal:#08747b;--amber:#a44824;height:100%;color:var(--ink);background:#f7f9f4;overflow:clip auto}.civil-lab-inner{width:min(100%,1500px);margin:0 auto;padding:0 clamp(16px,3.5vw,54px) 30px}.civil-lab-header{padding-block:clamp(20px,4vw,54px) 22px}.civil-lab-crumb{color:var(--accent);align-items:center;gap:7px;font-size:.78rem;font-weight:600;display:flex}.civil-lab-crumb svg{flex:none}.civil-lab-header h1{letter-spacing:-.035em;margin:.42rem 0;font-size:clamp(1.85rem,4vw,3.5rem);font-weight:600;line-height:1.2}.civil-lab-header>p:last-child{color:var(--muted);max-width:70ch;font-size:.98rem;line-height:1.65}.civil-lab-layout{grid-template-columns:minmax(0,1fr) minmax(270px,30%);align-items:start;gap:clamp(12px,1.5vw,24px);display:grid}.civil-lab-figure,.civil-lab-panel{border:1px solid var(--edge);background:#fff;border-radius:14px;min-width:0}.civil-lab-figure{margin:0;overflow:hidden}.civil-lab-figure canvas{aspect-ratio:20/11;background:#eef3ec;width:100%;height:auto;display:block}.civil-lab-figure canvas[data-interactive=true]{touch-action:pan-y;cursor:crosshair}.civil-lab-figure figcaption{color:var(--muted);border-top:1px solid var(--edge);flex-wrap:wrap;align-items:center;gap:.4rem 1rem;min-height:45px;padding:.65rem .85rem;font-size:.8rem;display:flex}.civil-lab-legend{align-items:center;gap:.43rem;display:inline-flex}.civil-lab-legend i{background:#7c8d89;border-radius:3px;width:18px;height:4px;display:inline-block}.civil-lab-legend i[data-color=teal]{background:var(--teal)}.civil-lab-legend i[data-color=amber]{background:var(--amber)}.civil-lab-panel{padding:clamp(14px,1.7vw,23px)}.civil-lab-panel-title{border-bottom:1px solid var(--edge);justify-content:space-between;align-items:center;gap:.5rem;padding-bottom:.8rem;display:flex}.civil-lab-panel-title h2{font-size:1.18rem;font-weight:600;line-height:1.3}.civil-lab-reset{border:1px solid var(--edge);width:40px;height:40px;color:var(--accent);cursor:pointer;background:#eef5ef;border-radius:7px;flex:none;place-content:center;display:grid}.civil-lab-range{margin-top:.85rem}.civil-lab-range>div{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.civil-lab-range label,.civil-lab-select label{font-size:.86rem;font-weight:600}.civil-lab-range-value{font:500 .78rem var(--font-plex-mono), monospace;color:var(--accent);flex:none}.civil-lab-range input{width:100%;height:30px;accent-color:var(--accent);cursor:pointer;margin-top:1px}.civil-lab-options{flex-wrap:wrap;gap:.4rem;margin-top:.75rem;display:flex}.civil-lab-options button{border:1px solid var(--edge);min-height:36px;color:var(--accent);cursor:pointer;background:#f2f6ef;border-radius:6px;padding:.4rem .65rem;font-size:.8rem;font-weight:600}.civil-lab-options button[aria-pressed=true]{color:#fff;background:var(--accent);border-color:var(--accent)}.civil-lab-result{margin-top:.95rem;font-size:.9rem;font-weight:600;line-height:1.45}.civil-lab-share{background:#ad633e;border-radius:6px;height:8px;margin-top:.55rem;overflow:hidden}.civil-lab-share span{background:var(--teal);height:100%;display:block}.civil-lab-readout{border-top:1px solid var(--edge);margin-top:.9rem;padding-top:.85rem}.civil-lab-readout h2{font-size:.88rem;font-weight:600;line-height:1.35}.civil-lab-metric{color:var(--muted);justify-content:space-between;align-items:baseline;gap:.35rem .65rem;padding:.36rem 0;font-size:.8rem;line-height:1.4;display:flex}.civil-lab-metric dd{font:500 .78rem var(--font-plex-mono), monospace;color:var(--ink);flex:none}.civil-lab-metric[data-color=teal] dd{color:var(--teal)}.civil-lab-metric[data-color=amber] dd{color:var(--amber)}.civil-lab-select{gap:.28rem;margin-top:.75rem;display:grid}.civil-lab-select select{border:1px solid var(--edge);width:100%;min-height:40px;font:inherit;color:var(--ink);background:#f7faf4;border-radius:6px;padding:.35rem .6rem}.civil-lab-breakdown{margin-top:.5rem;font-size:.8rem}.civil-lab-breakdown summary{color:var(--accent);cursor:pointer;width:fit-content;font-weight:600}.civil-lab-footer{color:var(--muted);flex-wrap:wrap;gap:.55rem 1.3rem;padding-top:1.1rem;font-size:.8rem;line-height:1.65;display:flex}.civil-lab-footer p{flex-basis:100%}.civil-lab-footer a{color:var(--accent);text-underline-offset:3px;align-items:center;gap:5px;text-decoration:underline;display:inline-flex}.civil-lab-footer a svg{flex:none}.civil-lab :is(button,a,select,input,summary):focus-visible{outline-offset:3px;outline:2px solid #237a70}@media (hover:hover){.civil-lab-options button:not([aria-pressed=true]):hover,.civil-lab-reset:hover{background:#e3eee5}}@media (max-width:760px){.civil-lab-layout{grid-template-columns:minmax(0,1fr)}.civil-lab-header{padding-bottom:14px}.civil-lab-header>p:last-child{font-size:.88rem}.civil-lab-options button,.civil-lab-reset,.civil-lab-select select{min-height:44px}.civil-lab-range input{height:40px}}
