.ss-toolbar{flex-wrap:wrap;align-items:flex-end;gap:1rem;margin-bottom:1.2rem;display:flex}.ss-viewtabs{background:var(--surface-2);border-radius:12px;gap:.15rem;padding:.2rem;display:flex}.ss-viewtabs button{cursor:pointer;color:var(--ink-2);font-family:var(--font-display);background:0 0;border:none;border-radius:8px;padding:.4rem .8rem;font-size:.85rem;font-weight:600}.ss-viewtabs button.on{background:var(--surface);color:var(--ink)}.ss-toolbar .spacer{flex:1}.ss-btn{border:1px solid var(--rule);background:var(--surface);color:var(--ink);cursor:pointer;border-radius:8px;padding:.45rem .8rem;font-size:.82rem;font-weight:500}.ss-btn.accent{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-family:var(--font-display)}.ss-filters{flex-wrap:wrap;align-items:flex-end;gap:.9rem;margin-bottom:1.2rem;display:flex}.ss-filters .spacer{flex:auto}.ss-footbar{border-top:1px solid var(--rule);justify-content:flex-end;gap:.5rem;margin-top:.4rem;padding-top:.4rem;display:flex}.ss-filter{gap:.25rem;display:grid}.ss-filter label{font-family:var(--font-mono);color:var(--ink-3);font-size:.76rem}.ss-filter select{background:var(--surface);color:var(--ink);border:1px solid var(--rule);font:inherit;border-radius:8px;min-width:8rem;padding:.4rem .5rem}.kpi-grid{grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.7rem;margin-bottom:1.4rem;display:grid}.kpi{background:var(--surface);border:1px solid var(--rule);border-top:2px solid var(--rule);border-radius:12px;padding:.7rem .8rem}.kpi.svc{border-top-color:var(--accent)}.kpi .k-label{font-family:var(--font-mono);color:var(--ink-3);font-size:.76rem}.kpi .k-value{font-family:var(--font-display);font-variant-numeric:tabular-nums;margin-top:.1rem;font-size:1.5rem;font-weight:700;line-height:1.1}.kpi .k-sub{color:var(--ink-2);margin-top:.1rem;font-size:.72rem}.chart-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:.9rem;margin-bottom:1.4rem;display:grid}.chart-card{background:var(--surface);border:1px solid var(--rule);border-radius:12px;padding:.9rem}.chart-card h4{color:var(--ink-2);margin-bottom:.6rem;font-size:.78rem}.tcard{background:var(--surface);border:1px solid var(--rule);border-radius:12px;margin-bottom:1.2rem;overflow:hidden}.tcard-head{border-bottom:1px solid var(--rule);font-family:var(--font-display);padding:.7rem .9rem;font-size:.9rem;font-weight:600}.tcard-head.svc{color:var(--accent-text)}.twrap{overflow-x:auto}.twrap table{border-collapse:collapse;width:100%;font-size:.82rem}.twrap th,.twrap td{text-align:right;white-space:nowrap;border-bottom:1px solid var(--rule);font-variant-numeric:tabular-nums;padding:.5rem .7rem}.twrap th:first-child,.twrap td:first-child,.twrap th.l,.twrap td.l{text-align:left}.twrap thead th{font-family:var(--font-mono);color:var(--ink-2);background:var(--surface);font-size:.76rem;position:sticky;top:0}.twrap tbody tr:nth-child(2n) td{background:var(--stripe)}.twrap tbody tr:hover td{background:color-mix(in srgb, var(--accent) 7%, var(--surface))}.twrap tr.total td{font-weight:700;background:var(--surface-2)!important}.twrap td .pos{color:var(--good)}.twrap td .neg{color:var(--bad)}.twrap .notes{text-overflow:ellipsis;max-width:14rem;overflow:hidden}.twrap .edit{border:1px solid var(--rule);background:var(--ground);color:var(--ink-2);cursor:pointer;border-radius:8px;padding:.15rem .4rem;font-size:.85rem;line-height:1}.twrap .edit:hover{color:var(--accent-text);border-color:var(--accent)}.twrap .empty td{text-align:center;color:var(--ink-3);padding:1.4rem}.overlay{z-index:50;background:#0000008c;place-items:start center;padding:3vh 1rem;display:grid;position:fixed;inset:0;overflow-y:auto}.emodal{background:var(--surface);border:1px solid var(--rule);border-radius:14px;width:100%;max-width:44rem}.emodal-head{border-bottom:1px solid var(--rule);justify-content:space-between;align-items:center;padding:.9rem 1.1rem;display:flex}.emodal-head h3{font-size:1.15rem}.emodal-head button{color:var(--ink-2);cursor:pointer;background:0 0;border:none;font-size:1.1rem}.emodal-body{gap:1.2rem;padding:1.1rem;display:grid}.esec-title{font-family:var(--font-display);color:var(--ink-2);margin-bottom:.5rem;font-size:.85rem;font-weight:600}.esec-title.svc{color:var(--accent-text)}.egrid{grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:.7rem;display:grid}.efield{gap:.25rem;min-width:0;display:grid}.efield.full{grid-column:1/-1}.efield label{font-family:var(--font-mono);color:var(--ink-3);font-size:.76rem}.efield input,.efield select,.efield textarea{box-sizing:border-box;background:var(--field);width:100%;min-width:0;color:var(--ink);border:1px solid var(--rule);font:inherit;border-radius:8px;padding:.45rem .5rem}.efield input[readonly]{background:var(--surface-2);font-weight:700}.emodal-foot{border-top:1px solid var(--rule);justify-content:space-between;align-items:center;gap:.5rem;padding:.9rem 1.1rem;display:flex}.emodal-foot .grow{flex:1}.btn-danger{border:1px solid var(--bad);color:var(--bad);cursor:pointer;background:0 0;border-radius:8px;padding:.5rem .8rem}.btn-danger.solid{background:var(--bad);color:#fff;font-weight:600}.btn-danger:disabled{opacity:.6;cursor:default}.del-list{color:var(--ink-2);gap:.3rem;margin:.3rem 0 0;padding-left:1.1rem;font-size:.9rem;display:grid}.btn-ghost{border:1px solid var(--rule);color:var(--ink-2);cursor:pointer;background:0 0;border-radius:8px;padding:.5rem .8rem}.toast{z-index:60;background:var(--surface);border:1px solid var(--rule);border-left:3px solid var(--accent);border-radius:12px;padding:.7rem 1rem;font-size:.86rem;position:fixed;bottom:1.2rem;left:50%;transform:translate(-50%);box-shadow:0 8px 30px -10px #00000080}.toast.err{border-left-color:var(--bad)}.toast.ok{border-left-color:var(--good)}@media print{.toast{display:none!important}}@media (width<=40rem){.overlay:has(>.emodal){padding:0;display:block}.emodal{border:0;border-radius:0;flex-direction:column;min-width:0;max-width:none;min-height:100dvh;display:flex}.emodal-head{z-index:5;background:var(--surface);padding:calc(.75rem + env(safe-area-inset-top)) 1rem .75rem;position:sticky;top:0}.emodal-head button{min-width:44px;min-height:44px}.emodal-body{flex:1;gap:1.1rem;padding:1rem}.emodal-foot{z-index:5;background:var(--surface);padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));flex-wrap:wrap;position:sticky;bottom:0}.egrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.emodal .dh-twrap th,.emodal .dh-twrap td{padding:.45rem .25rem}.emodal .dh-twrap td:first-child{white-space:normal}.emodal .dh-twrap td input{text-align:center;padding:.4rem .3rem;width:3.25rem!important}}.eh-head-actions{align-items:center;gap:.4rem;display:flex}.emodal-head .eh-btn{border:1.5px solid var(--rule-strong);background:var(--surface);min-height:36px;color:var(--ink);font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:.35rem;padding:0 .8rem;font-size:.85rem;font-weight:700;display:inline-flex}.emodal-head .eh-btn span{background:var(--accent);width:18px;height:18px;color:var(--accent-ink);border-radius:50%;place-items:center;font-size:.72rem;display:inline-grid}.emodal-head .eh-btn:hover{border-color:var(--accent)}.eh-nudge{background:var(--pop-soft);border:1px solid var(--rule);border-radius:12px;align-items:center;gap:.6rem;margin:0 1.1rem;padding:.5rem .75rem;font-size:.88rem;display:flex}.eh-nudge span{flex:1}.eh-nudge .link{font-weight:700;text-decoration:underline;font-size:inherit!important}.eh-nudge-x{color:var(--ink-2);cursor:pointer;background:0 0;border:none;padding:.2rem .4rem;font-size:1.2rem}.eh-panel{z-index:60;background:var(--surface);border:1px solid var(--rule);width:min(46rem,100vw - 2rem);box-shadow:var(--shadow-pop);animation:eh-in .22s var(--ease,ease) both;border-radius:16px;flex-direction:column;display:flex;position:fixed;top:3vh;bottom:3vh;left:50%;transform:translate(-50%)}@keyframes eh-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.eh-panel{animation:none}}.eh-head{border-bottom:1px solid var(--rule);align-items:flex-end;gap:.8rem;padding:1rem 1.1rem .8rem;display:flex}.eh-head h3{font-family:var(--font-display);margin:0 0 .2rem;font-size:1.2rem}.eh-head p{color:var(--ink-2);margin:0;font-size:.88rem}.eh-body{flex:1;align-content:start;gap:.55rem;padding:.8rem 1.1rem 1rem;display:grid;overflow-y:auto}.eh-topic{border:1px solid var(--rule);background:var(--surface);border-radius:12px}.eh-topic summary{cursor:pointer;justify-content:space-between;gap:.6rem;padding:.75rem .9rem;font-weight:700;list-style:none;display:flex}.eh-topic summary::-webkit-details-marker{display:none}.eh-topic summary:after{content:"+";color:var(--pop-text);font-weight:600}.eh-topic[open] summary:after{content:"–"}.eh-topic>:not(summary){margin:0 .9rem .7rem}.eh-topic p,.eh-topic li{color:var(--ink-2);font-size:.9rem;line-height:1.5}.eh-topic ul{padding-left:1.1rem}.eh-topic b{color:var(--ink)}.eh-example{border:1.5px dashed var(--rule-strong);background:var(--ground);border-radius:10px;padding:1.1rem .7rem .6rem;position:relative}.eh-example-tag{background:var(--surface);letter-spacing:.1em;text-transform:uppercase;color:var(--pop-text);padding:0 .4rem;font-size:.68rem;font-weight:800;position:absolute;top:-.6rem;left:.6rem}.eh-row{border-bottom:1px solid var(--rule);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:.3rem .9rem;padding:.25rem 0;font-size:.85rem;display:flex}.eh-row:last-child{border-bottom:0}.eh-row:first-child:not(:only-child){color:var(--ink-3);font-size:.78rem}.eh-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:.85rem}.eh-table th{text-align:right;color:var(--ink-3);padding:0 .3rem .3rem;font-size:.76rem;font-weight:500}.eh-table td{text-align:right;border-top:1px solid var(--rule);padding:.3rem}.eh-table th:first-child,.eh-table td:first-child{text-align:left}.eh-grid{grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));gap:.45rem;display:grid}.eh-cell{gap:.1rem;display:grid}.eh-k{color:var(--ink-3);font-size:.74rem}.eh-v{font-variant-numeric:tabular-nums;font-weight:700}.eh-tips{background:var(--accent-soft);border-radius:12px;padding:.7rem .9rem;font-size:.88rem}.eh-tips p{color:var(--ink-2);margin:.2rem 0 0}.eh-foot{padding:.75rem 1.1rem calc(.75rem + env(safe-area-inset-bottom));border-top:1px solid var(--rule);justify-content:flex-end;display:flex}@media (width<=40rem){.eh-panel{border:0;border-radius:0;width:auto;inset:0;transform:none}.eh-head{padding-top:calc(1rem + env(safe-area-inset-top))}.eh-foot .ss-btn{justify-content:center;width:100%;min-height:44px}.emodal-head .eh-btn{min-height:40px}}
