:root{--bg:#f5f6f8;--surface:#fff;--surface-2:#f8f9fb;--text:#17191d;--muted:#737983;--line:#e4e7eb;--accent:#111318;--green:#4caf50;--yellow:#ffc107;--red:#f44336;--shadow:0 18px 55px rgba(25,31,40,.08);--radius:20px;--field:44px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}.container{width:min(1380px,calc(100% - 48px));margin:0 auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(245,246,248,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,224,229,.7)}.header-inner{height:70px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#111318;color:white;font-weight:800}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.13em;margin-top:1px}.header-nav{display:flex;gap:28px}.header-nav a,.header-link{font-size:13px;color:#50545b;text-decoration:none}.header-nav a:hover,.header-link:hover{color:#111}.hero{padding:74px 0 52px}.hero-grid{display:grid;grid-template-columns:1fr auto;align-items:end;gap:40px}.eyebrow,.section-kicker{font-size:11px;font-weight:750;letter-spacing:.16em;color:#8a9098}.hero h1{font-size:clamp(42px,5.3vw,76px);line-height:.98;letter-spacing:-.055em;margin:17px 0 22px;font-weight:760}.hero h1 span{color:#8b9199}.hero-copy>p{max-width:650px;font-size:18px;line-height:1.55;color:#656b73;margin:0}.hero-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.hero-points span{padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.55);font-size:12px;color:#555b63}.hero-meta{min-width:210px;padding:18px 0;border-top:1px solid var(--line)}.meta-label{font-size:10px;letter-spacing:.14em;color:#999fa7}.meta-value{font-weight:700;margin-top:7px}.meta-sub{font-size:12px;color:var(--muted);margin-top:3px}.calculator-section{padding:12px 0 86px}.calculator-shell{background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);overflow:hidden}.calculator-topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--line)}.calculator-topbar h2{margin:6px 0 0;font-size:20px;letter-spacing:-.02em}.mode-switch{display:flex;background:#f0f1f3;padding:3px;border-radius:11px}.mode-btn{border:0;background:transparent;color:#777d85;border-radius:9px;padding:8px 15px;font-size:12px;font-weight:700}.mode-btn.active{background:white;color:#111;box-shadow:0 1px 5px rgba(0,0,0,.08)}.workspace{display:grid;grid-template-columns:310px minmax(420px,1fr) 340px;min-height:690px}.panel{min-width:0}.inputs-panel{padding:22px;border-right:1px solid var(--line)}.scheme-panel{padding:22px;background:#fbfcfd;border-right:1px solid var(--line);display:flex;flex-direction:column}.result-panel{padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.panel-head>div{display:flex;align-items:center;gap:9px}.panel-number{font-size:10px;font-weight:800;color:#9ca1a8}.panel-title{font-size:13px;font-weight:750}.schema-badge{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#9298a0;border:1px solid var(--line);border-radius:999px;padding:4px 7px}.panel-head.compact{margin-bottom:14px}.field-group{margin-bottom:16px}.field-group label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:#535960;margin-bottom:7px}.field-group select,.field-group input{width:100%;height:var(--field);border:1px solid #dfe2e6;border-radius:10px;background:#fff;padding:0 12px;color:#202329;outline:none;transition:border-color .18s,box-shadow .18s}.field-group select:focus,.field-group input:focus{border-color:#8f959d;box-shadow:0 0 0 3px rgba(20,25,32,.06)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hint{border:0;background:#eef0f2;width:17px;height:17px;border-radius:50%;font-size:10px;color:#72777e;padding:0}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#f1f2f4;padding:3px;border-radius:10px;gap:3px}.seg{border:0;background:transparent;color:#7a8088;border-radius:8px;padding:9px 5px;font-size:11px;font-weight:650}.seg.active{background:#fff;color:#15171a;box-shadow:0 1px 4px rgba(0,0,0,.08)}.panel-divider{height:1px;background:var(--line);margin:22px 0}.checkbox-label{display:flex!important;align-items:center;gap:9px!important;font-size:12px!important;cursor:pointer}.checkbox-label input{appearance:none;width:18px!important;height:18px!important;border-radius:5px;border:1px solid #cfd3d8!important;padding:0!important;position:relative;flex:none}.checkbox-label input:checked{background:#111318;border-color:#111318!important}.checkbox-label input:checked:after{content:'✓';position:absolute;left:4px;top:0;color:white;font-size:11px}.conditional-card{background:#f8f9fb;border:1px solid #e8eaed;border-radius:13px;padding:13px;margin:5px 0 18px;animation:slideIn .22s ease}.conditional-title{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#949aa2;font-weight:750;margin-bottom:13px}.conditional-card .field-group{margin-bottom:12px}.conditional-card .checkbox-label{margin-bottom:0}.expert-only{display:none}.expert-mode .expert-only{display:block;animation:slideIn .22s ease}.expert-note{font-size:10px;line-height:1.5;color:#9298a0;background:#f8f9fb;border-radius:10px;padding:10px}.calculate-btn{width:100%;height:48px;border:0;border-radius:12px;background:#111318;color:white;font-weight:750;margin-top:7px;transition:transform .18s,box-shadow .18s}.calculate-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(17,19,24,.18)}.calculate-btn span{float:right;font-size:18px}.engine-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#a0a5ac;font-size:10px;margin-top:10px}.pulse{width:6px;height:6px;border-radius:50%;background:#68b66b;box-shadow:0 0 0 4px rgba(76,175,80,.1)}.scheme-tools{display:flex;gap:3px}.scheme-canvas{flex:1;min-height:540px;border:1px solid #e9ebee;border-radius:16px;background:linear-gradient(180deg,#fff,#fafbfc);display:block;overflow:hidden;position:relative}.scheme-canvas svg{display:block;width:100%;height:100%;min-height:0;transition:transform .2s ease;transform-origin:center center}.scheme-legend{display:flex;flex-wrap:wrap;gap:14px;padding:13px 2px 0;color:#8b9198;font-size:10px}.scheme-legend span{display:flex;align-items:center;gap:5px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot.splice{background:#111}.dot.zone{background:#d7dce2}.dot.section{background:#9da4ac}.result-card{border:1px solid #bde0bf;background:#f4fbf4;border-radius:15px;padding:17px;display:grid;grid-template-columns:39px 1fr;gap:12px;position:relative;overflow:hidden}.result-card.status-warning{border-color:#f2d77e;background:#fffaf0}.result-card.status-fail{border-color:#f0b4ae;background:#fff5f4}.result-icon{width:39px;height:39px;border-radius:12px;background:var(--green);color:white;display:grid;place-items:center;font-size:20px;font-weight:800}.status-warning .result-icon{background:var(--yellow);color:#513f00}.status-fail .result-icon{background:var(--red)}.result-label{font-size:10px;color:#727980;margin-top:1px}.result-number{font-size:31px;font-weight:800;letter-spacing:-.04em;margin-top:1px}.result-number small{font-size:12px;font-weight:650;color:#777d85}.result-message{grid-column:1/-1;font-size:11px;line-height:1.45;color:#5e656d}.status-mini{font-size:9px;font-weight:800;border-radius:999px;padding:5px 7px}.status-mini.ok{background:#e7f6e8;color:#39853c}.status-mini.warning{background:#fff1c7;color:#876800}.status-mini.fail{background:#fde4e1;color:#b5362f}.metric-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:16px 0}.metric{padding:13px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.metric:nth-child(2n){border-right:0}.metric:nth-last-child(-n+2){border-bottom:0}.metric span{display:block;font-size:11px;color:#767c84}.metric strong{display:block;font-size:15px;margin-top:6px;letter-spacing:-.02em}.metric small{display:block;color:#a0a5ab;font-size:9px;margin-top:3px}.checks-head{display:flex;justify-content:space-between;color:#767c84;font-size:10px;font-weight:700;margin:18px 0 8px}.checks-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}.check{display:grid;grid-template-columns:23px 1fr auto;gap:7px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer;transition:background .15s}.check:hover{background:#fafbfc}.check-icon{width:19px;height:19px;border-radius:6px;display:grid;place-items:center;font-size:10px;font-weight:800}.check-pass{background:#e8f6e9;color:#3d9141}.check-warn{background:#fff1c7;color:#866800}.check-fail{background:#fde5e2;color:#b63b34}.check-name{font-size:10px;font-weight:650}.check-rule{font-size:9px;color:#a0a5ac;margin-top:2px}.check-status{font-size:9px;color:#8b9198}.details-btn{width:100%;height:42px;border:1px solid var(--line);background:white;border-radius:10px;margin-top:15px;color:#444a51;font-size:11px;font-weight:700}.info-section{padding:110px 0}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px}.info-grid h2,.faq-section h2,.normative-card h2{font-size:clamp(32px,4vw,52px);letter-spacing:-.045em;line-height:1.03;margin:12px 0}.info-copy>p{font-size:17px;line-height:1.6;color:#676d75;margin:5px 0 30px}.info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.info-cards div{border:1px solid var(--line);background:white;border-radius:14px;padding:16px}.info-cards b{display:block;font-size:10px;color:#a1a6ad}.info-cards span{display:block;margin-top:30px;font-size:12px;font-weight:700}.normative-section{padding:0 0 100px}.normative-card{border-radius:24px;background:#111318;color:#fff;padding:34px 38px}.normative-card .section-kicker{color:#818791}.normative-card h2{margin:12px 0 8px}.normative-card p{max-width:570px;color:#9ca2aa;line-height:1.5;margin:0}.normative-card>div:first-child{display:block}.normative-card{display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.normative-version{border:1px solid #383c43;border-radius:999px;padding:8px 12px;font-size:10px;color:#aaa}.faq-section{padding:0 0 110px}.faq-section h2{margin-bottom:35px}.faq-section details{border-top:1px solid var(--line);padding:20px 0}.faq-section summary{cursor:pointer;font-weight:700}.faq-section details p{max-width:720px;color:#727880;line-height:1.55;font-size:14px}.site-footer{border-top:1px solid var(--line);padding:25px 0;color:#9298a0;font-size:10px}.site-footer .container{display:flex;justify-content:space-between}@keyframes slideIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@media(max-width:1150px){.workspace{grid-template-columns:290px 1fr}.result-panel{grid-column:1/-1;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:22px}.result-panel .panel-head,.result-panel .result-card,.result-panel .metric-grid,.result-panel .checks-head,.result-panel .checks-list,.result-panel .details-btn{grid-column:1/-1}.result-panel .metric-grid{margin-bottom:0}.header-nav{display:none}}@media(max-width:800px){.container{width:min(100% - 28px,680px)}.hero{padding:50px 0 35px}.hero-grid{grid-template-columns:1fr}.hero-meta{display:none}.hero h1{font-size:48px}.workspace{display:flex;flex-direction:column}.inputs-panel,.scheme-panel,.result-panel{border-right:0}.scheme-panel{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-panel{display:block}.scheme-canvas{min-height:420px}.scheme-canvas svg{min-height:0}.calculator-topbar{padding:18px}.inputs-panel,.scheme-panel,.result-panel{padding:18px}.info-grid{grid-template-columns:1fr;gap:35px}.normative-card{align-items:flex-start;flex-direction:column}.info-section{padding:75px 0}.header-link{display:none}}@media(max-width:520px){.scheme-canvas{min-height:480px}.header-inner{height:60px}.hero h1{font-size:39px}.hero-copy>p{font-size:15px}.hero-points{display:none}.calculator-topbar{align-items:flex-start;gap:15px;flex-direction:column}.two-col{grid-template-columns:1fr}.scheme-canvas{min-height:340px}.scheme-canvas svg{min-height:0}.scheme-legend{gap:8px}.result-number{font-size:28px}.metric-grid{grid-template-columns:1fr}.metric{border-right:0!important}.metric:nth-last-child(-n+2){border-bottom:1px solid var(--line)}.metric:last-child{border-bottom:0}.info-cards{grid-template-columns:1fr}.site-footer .container{flex-direction:column;gap:7px}}
/* v0.9 interaction layer */
.form-section{margin-bottom:24px}.form-section:last-child{margin-bottom:0}.form-section .panel-head{margin-bottom:15px}.unit{margin-left:auto;color:#9aa0a7;font-weight:500}.check-row{margin-top:2px}.check-row .checkbox-label{margin:0}.scheme-empty{padding:28px;color:#9aa0a7;font-size:12px;text-align:center}.scheme-selection{margin-top:10px;padding:10px 12px;border:1px solid #e5e8eb;background:#fff;border-radius:10px;font-size:10px;display:flex;gap:8px;align-items:center}.scheme-selection span{color:#8c9299}.sp63-hit{cursor:pointer;outline:none}.sp63-hit:focus{outline:2px solid rgba(17,19,24,.25);outline-offset:3px}.sp63-selected{filter:drop-shadow(0 0 5px rgba(37,99,235,.45))}.check{appearance:none;text-align:left;font:inherit;width:100%;background:transparent;border:0}.check:focus-visible{outline:2px solid rgba(17,19,24,.18);outline-offset:-2px}.check-empty{padding:18px 0;color:#9aa0a7;font-size:10px}.drawer{position:fixed;inset:0;z-index:100;pointer-events:none}.drawer.open{pointer-events:auto}.drawer-backdrop{position:absolute;inset:0;background:rgba(15,18,23,.28);opacity:0;transition:opacity .22s}.drawer-sheet{position:absolute;right:0;top:0;height:100%;width:min(680px,100%);background:#fff;box-shadow:-20px 0 60px rgba(0,0,0,.12);transform:translateX(100%);transition:transform .25s ease;display:flex;flex-direction:column}.drawer.open .drawer-backdrop{opacity:1}.drawer.open .drawer-sheet{transform:none}.drawer-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.drawer-head h3{margin:5px 0 0;font-size:22px;letter-spacing:-.03em}.drawer-close{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:20px;color:#666}.drawer-content{overflow:auto;padding:20px 24px}.drawer-summary{padding:16px;border-radius:14px;background:#f7f8fa;border:1px solid #e7e9ec;margin-bottom:16px}.drawer-summary strong{font-size:28px;display:block;letter-spacing:-.04em}.drawer-summary span{font-size:10px;color:#8d939a}.trace-row{border-top:1px solid var(--line);padding:14px 0}.trace-row>div{display:flex;align-items:baseline;gap:10px}.trace-row strong{font-size:12px}.trace-row>div span{font-size:10px;color:#9a9fa6}.trace-status{margin-left:auto;font-size:9px;padding:4px 7px;border-radius:999px;background:#f0f1f3;color:#747a82}.trace-status.passed{background:#e8f6e9;color:#3d9141}.trace-status.warning{background:#fff1c7;color:#866800}.trace-status.failed{background:#fde5e2;color:#b63b34}.trace-row pre{white-space:pre-wrap;overflow:auto;background:#fafbfc;border:1px solid #edf0f2;border-radius:9px;padding:10px;margin:10px 0 0;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;color:#666d75}.result-panel{overflow:hidden}.result-card{transition:background .2s,border-color .2s,transform .2s}.result-card.status-ok{box-shadow:inset 3px 0 0 var(--green)}.result-card.status-warning{box-shadow:inset 3px 0 0 var(--yellow)}.result-card.status-fail{box-shadow:inset 3px 0 0 var(--red)}
@media(max-width:800px){.drawer-sheet{width:100%}.panel-scroll{max-height:none}.calculator-section{padding-bottom:55px}.scheme-selection{position:sticky;bottom:8px;z-index:3;box-shadow:0 8px 25px rgba(0,0,0,.08)}}

/* v1.0 scenario UX */
.toolbar-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.scenario-switch,.mode-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line,#e5e7eb);background:#f8f9fb;border-radius:12px}
.scenario-btn,.mode-btn{border:0;background:transparent;padding:9px 13px;border-radius:9px;font:inherit;cursor:pointer;color:#6b7280;transition:.2s ease}
.scenario-btn.active,.mode-btn.active{background:#fff;color:#111827;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.calculator-subtitle{margin:5px 0 0;color:#8b929d;font-size:13px}
.section-note{font-size:11px;color:#9aa1aa;text-transform:uppercase;letter-spacing:.08em}
.optional-section{background:linear-gradient(180deg,#fbfcfd,#fff);border-radius:14px;padding:4px 10px 12px;margin-top:6px}
.scheme-anchorage{height:100%;min-height:360px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px;color:#7a818b}
.anchorage-line{width:min(82%,620px);position:relative;padding:42px 0 62px}
.rebar-line{display:block;height:7px;background:#30343a;border-radius:7px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.anchor-tag{position:absolute;left:0;top:8px;font-size:12px;color:#9aa1aa}
.anchor-dimension{position:absolute;left:20%;right:0;bottom:16px;text-align:center;font-weight:700;color:#20242a}
.scheme-anchorage p{font-size:13px;margin:0;max-width:460px;text-align:center}
.check.selected{background:#f4f6f8}
@media(max-width:980px){.toolbar-controls{justify-content:flex-start}.workspace{grid-template-columns:1fr}.inputs-panel,.scheme-panel,.result-panel{min-width:0}.scheme-panel{order:2}.result-panel{order:3}}
@media(max-width:640px){.toolbar-controls{width:100%;justify-content:space-between}.scenario-btn,.mode-btn{padding:8px 10px}.calculator-subtitle{font-size:12px}.scheme-anchorage{min-height:280px}}

.status-mini.input-error{background:#eef1f5;color:#4b5563;border-color:#cfd5dd}
.result-card.status-input-error{border-color:#cfd5dd;background:#f7f8fa}
.result-card.status-input-error .result-icon{background:#e5e7eb;color:#4b5563}

.field-note{margin-top:6px;font-size:10px;line-height:1.35;color:#7a8290;}

.debug-panel{grid-column:1 / -1;margin:0;border-top:1px solid #dfe3e8;background:#f7f8fa;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.debug-details{width:100%}.debug-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 16px;border:0;background:#eef0f3;cursor:pointer;list-style:none}.debug-head::-webkit-details-marker{display:none}.debug-head>div{display:flex;flex-direction:column;gap:2px;text-align:left}.debug-head strong{font-size:10px;color:#34383e}.debug-head span{font-size:8px;color:#8a9199;text-transform:uppercase;letter-spacing:.08em}.debug-live{padding:3px 6px;border-radius:5px;background:#e5f5e6;color:#438947!important;white-space:nowrap}.debug-live.error{background:#fbe8e8;color:#a33d3d!important}.debug-body{border-top:1px solid #e3e6ea}.debug-note{padding:8px 16px;color:#7d848d;font:9px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;border-bottom:1px solid #e3e6ea}.debug-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,auto);gap:12px;padding:6px 16px;border-bottom:1px solid #e8eaed;align-items:baseline}.debug-row:last-child{border-bottom:0}.debug-row span{font-size:9px;color:#737a83}.debug-row code{font-size:9px;color:#20242a;text-align:right;white-space:nowrap}@media(max-width:800px){.debug-panel{margin-top:0}.debug-head{padding:10px 12px}.debug-row{grid-template-columns:1fr;gap:2px;padding:7px 12px}.debug-row code{text-align:left;white-space:normal;word-break:break-word}.debug-note{padding:8px 12px}}

/* v1.9 DEBUG compare layer */
.debug-grid-head,.debug-compare-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(150px,1fr) minmax(150px,1fr) 54px;gap:10px;align-items:center;padding:7px 16px;}
.debug-grid-head{background:#eef0f3;border-bottom:1px solid #dfe3e8;font:8px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#858c95;text-transform:uppercase;letter-spacing:.06em;}
.debug-compare-row{border-bottom:1px solid #e8eaed;min-height:36px;}
.debug-compare-row code{font:9px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#20242a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.debug-param{display:flex;flex-direction:column;gap:2px;min-width:0;}
.debug-param strong{font:9px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#4b5159;}
.debug-param small{font:8px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#a0a5ac;}
.debug-compare-status{justify-self:end;font:8px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:3px 5px;border-radius:5px;background:#eceff2;color:#8a9097;}
.debug-compare-row.match .debug-compare-status{background:#e8f6e9;color:#438947;}
.debug-compare-row.diff .debug-compare-status{background:#fbe8e8;color:#a33d3d;}
.debug-subhead{padding:10px 16px 7px;border-top:1px solid #dfe3e8;background:#f1f3f5;font:8px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#7d848d;text-transform:uppercase;letter-spacing:.06em;}
.debug-raw{margin:0;border-top:1px solid #dfe3e8;}
.debug-raw summary{padding:9px 16px;cursor:pointer;font:9px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#69717a;}
.debug-raw pre{margin:0 16px 14px;max-height:280px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#fafbfc;border:1px solid #e7e9ec;border-radius:8px;padding:10px;font:9px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;}
@media(max-width:800px){.debug-grid-head{display:none}.debug-compare-row{grid-template-columns:1fr 1fr 42px;padding:8px 12px}.debug-compare-row .debug-param{grid-column:1/-1}.debug-compare-row code{white-space:normal;word-break:break-word}.debug-compare-status{grid-column:3;grid-row:2;}.debug-subhead{padding-left:12px;padding-right:12px}}

/* UI review 2026-09-12 */
.normative-header{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:150px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.72);line-height:1.1}.normative-header .header-normative-label{font-size:8px;color:#9aa0a7;letter-spacing:.12em}.normative-header strong{font-size:11px;color:#202329}.normative-header small{font-size:8px;color:#9aa0a7}.hero-grid{grid-template-columns:1fr}.hero{padding-bottom:38px}.hero h1{margin-bottom:0}.hero-meta{display:none}.hero-copy>p,.hero-points{display:none}.scheme-canvas{min-height:540px}.scheme-canvas svg{min-height:520px}.scheme-anchorage svg{width:100%;height:100%;min-height:520px}.scheme-anchorage{width:100%;height:100%;display:block}.scheme-anchorage p{display:none}@media(max-width:800px){.normative-header{display:none}.hero{padding-top:50px}.hero h1{margin-bottom:0}}


/* v2.5: normative checks moved below the 3-column workspace */
.workspace{min-height:0;}
.result-panel{padding-bottom:24px;}
.checks-bottom{border-top:1px solid var(--line);padding:22px 24px 24px;background:#fff;}
.checks-bottom-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.checks-bottom-head>div{display:flex;align-items:center;gap:9px;}
.checks-bottom-head>span{font-size:10px;font-weight:700;color:#777d85;}
.checks-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden;}
.checks-bottom-grid .check{min-height:48px;padding:9px 12px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);background:#fff;}
.checks-bottom-grid .check:nth-child(3n){border-right:0;}
.checks-bottom-grid .check:nth-last-child(-n+3){border-bottom:0;}
.checks-bottom-grid .check:hover{background:#fafbfc;}
.checks-bottom-grid .check-status{white-space:nowrap;}
@media(max-width:1150px){.checks-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.checks-bottom-grid .check:nth-child(3n){border-right:1px solid var(--line);}.checks-bottom-grid .check:nth-child(2n){border-right:0;}.checks-bottom-grid .check:nth-last-child(-n+3){border-bottom:1px solid var(--line);}.checks-bottom-grid .check:nth-last-child(-n+2){border-bottom:0;}}
@media(max-width:800px){.checks-bottom{padding:18px;}.checks-bottom-grid{grid-template-columns:1fr;}.checks-bottom-grid .check{border-right:0!important;border-bottom:1px solid var(--line)!important;}.checks-bottom-grid .check:last-child{border-bottom:0!important;}}
/* v2.5 scheme framing: give the technical drawing the dominant central area */
.scheme-canvas{min-height:620px;background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);}
.scheme-panel{min-height:0;}

/* v2.7: normative help beside values and controls */
.info-field{position:relative}
.info-trigger{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:5px;padding:0;border:1px solid #b8c0ca;border-radius:50%;background:#fff;color:#4e5966;font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;vertical-align:super;cursor:pointer;transition:.15s ease}
.info-trigger:hover,.info-trigger:focus-visible{border-color:#6680a0;background:#f2f6fb;outline:none}
.checkbox-label{align-items:flex-start!important}
.checkbox-label .checkbox-text{line-height:1.3}
.checkbox-label .info-trigger{position:relative;top:-3px;flex:0 0 auto;margin-left:1px}
.metric-label{display:flex!important;align-items:flex-start!important;gap:0!important;margin:0!important}
.metric .info-trigger{position:relative;top:-2px;margin-left:4px}
.info-popover{position:absolute;z-index:80;display:none;width:300px;padding:13px 15px;border:1px solid #dce2e8;border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(25,35,48,.18);color:#20252b;font:12px/1.42 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;text-align:left}
.info-popover.open{display:block}
.info-field:hover>.info-popover{display:none}
.info-popover strong{display:block;font-size:12px;line-height:1.25;margin-bottom:5px}
.info-clause{color:#315f9d;font-weight:750;margin-bottom:8px}
.info-formula{padding:8px 9px;background:#f5f7fa;border-radius:7px;font:10px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin-bottom:8px}
.info-note{color:#69717a;margin-bottom:8px}
.info-popover a{color:#315f9d;text-decoration:none;font-weight:750}
.info-popover a:hover{text-decoration:underline}
.metric .info-popover{left:4px;top:58px}
.check-row .info-popover{left:20px;top:42px}
.field-group.info-field>.info-popover{left:15px;top:58px}
@media(max-width:800px){.info-popover{width:min(300px,calc(100vw - 36px));max-width:calc(100vw - 36px)}.metric .info-popover,.check-row .info-popover,.field-group.info-field>.info-popover{left:0;top:42px}}

/* v2.8: help popovers are click-only and portaled to body to avoid clipping */
.info-popover-global{position:fixed!important;left:0;top:0;width:320px;max-width:calc(100vw - 24px);max-height:min(420px,calc(100vh - 24px));overflow:auto;display:none;z-index:1000}
.info-popover-global.open{display:block}

/* v2.9: single intuitive mode — Basic is the only public mode */
.mode-switch{display:none!important}.hero{padding-top:30px}.hero h1{margin-top:0}.hero .eyebrow{display:none}.hero-grid{align-items:start}.hero-meta{margin-top:0;min-width:270px}.toolbar-controls{justify-content:flex-end}
@media(max-width:800px){.hero{padding-top:28px}.hero-meta{display:none}}

/* v3.1: calculation is automatic; keep legacy button only for script compatibility */
#calculate{display:none!important}
/* v3.2: result nuances and normative-check click popovers */
.result-alerts{margin-top:12px;display:grid;gap:6px}.result-alert-title{font-size:10px;font-weight:800;color:#6b7280;text-transform:uppercase;letter-spacing:.08em;margin:2px 0 2px}.result-alert-item{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:7px;width:100%;border:1px solid #eadfbc;background:#fffaf0;border-radius:9px;padding:8px 9px;text-align:left;color:#202329}.result-alert-item.failed{border-color:#f0c4c0;background:#fff7f6}.result-alert-item>span{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#fff0bd;color:#806300;font-weight:800;font-size:11px}.result-alert-item.failed>span{background:#f8d9d5;color:#a52f29}.result-alert-item strong{font-size:10px;line-height:1.25}.result-alert-item small{font-size:9px;color:#8b9098}.result-alert-more{font-size:9px;color:#858b93;padding:2px 4px}.check-popover{padding:14px 16px;border:1px solid #dce2e8;border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(25,35,48,.18);color:#20252b;font:12px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;text-align:left}.check-popover-title{font-weight:800;font-size:13px;margin-bottom:5px}.check-popover a{display:block;color:#315f9d;text-decoration:none;font-weight:750;margin-bottom:8px}.check-popover a:hover{text-decoration:underline}.check-popover-formula{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f7f8fa;border:1px solid #eceff2;border-radius:8px;padding:8px;margin-bottom:8px}.check-popover-note{color:#60666e}.check-popover-global{position:fixed;z-index:1100;display:block;max-height:min(430px,calc(100vh - 24px));overflow:auto;opacity:0;transform:translateY(3px);transition:opacity .12s,transform .12s}.check-popover-global.open{opacity:1;transform:none}.checks-bottom-grid .check{position:relative}.checks-bottom-grid .check:hover{background:#f8fafc}.result-card{overflow:visible}.result-panel{overflow:visible}
.check-popover-symbols{display:grid;gap:4px;margin:8px 0}.check-symbol{display:grid;grid-template-columns:82px 1fr;gap:5px;font-size:11px;color:#555d66}.check-symbol b{color:#20252b}.check-popover-substitution{margin:8px 0;padding:9px 10px;border:1px solid #e3e7eb;border-radius:9px;background:#f8fafc;color:#20252b;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.45}.check-popover-substitution b{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.normative-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.normative-links a{font-size:11px;font-weight:700;color:#315f9d;text-decoration:none;padding:7px 9px;border:1px solid #dfe5eb;border-radius:8px;background:#fff}.normative-links a:hover{text-decoration:underline}

/* v3.4: result status is a navigation link to normative checks */
#resultStatusMini{cursor:pointer}
.result-card.status-warning{cursor:pointer}

.status-mini{cursor:pointer;user-select:none}.status-mini:hover{filter:brightness(.98);transform:translateY(-1px)}
.seismic-switch-wrap{display:flex;align-items:center;gap:8px}.seismic-switch-wrap>span{font-size:10px;font-weight:750;color:#7a8088}.seismic-switch{padding:2px}.seismic-toggle-btn{padding:7px 11px!important;font-size:10px!important}.seismic-toggle-btn.active{background:#111318!important;color:#fff!important}.normative-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.normative-links a{color:#fff;text-decoration:none;border:1px solid #383c43;border-radius:999px;padding:8px 11px;font-size:10px}.normative-links a:hover{background:#1a1d22}
@media(max-width:800px){.toolbar-controls{width:100%;display:flex;justify-content:space-between;gap:10px}.seismic-switch-wrap{margin-left:auto}.seismic-switch-wrap>span{display:none}}
@media(max-width:520px){.toolbar-controls{flex-wrap:wrap}.seismic-switch-wrap{margin-left:0;width:100%;justify-content:space-between}.seismic-switch{flex:1}.seismic-toggle-btn{flex:1}}

/* Compact k_use control with normative help */
.utilization-control{margin:0 0 10px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd;position:relative;overflow:visible;}
.utilization-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:19px;}
.utilization-title{font-size:10px;font-weight:800;color:#20242a;line-height:1.2;}
.utilization-actions{display:flex;align-items:center;gap:5px;margin-left:auto;}
.utilization-head strong{font-size:14px;line-height:1;color:#111827;min-width:35px;text-align:right;}
.utilization-slider{display:block;width:100%;height:17px;margin:7px 0 1px;accent-color:#111318;cursor:pointer;}
.utilization-scale{display:flex;justify-content:space-between;font-size:8px;line-height:1;color:#9aa0a7;}
.utilization-control .info-trigger{flex:0 0 auto;position:static;margin-left:0;vertical-align:middle;}
.utilization-control .info-popover{left:auto;right:0;top:39px;}
@media(max-width:800px){.utilization-control{margin-bottom:10px;padding:9px 11px;}.utilization-slider{height:24px;margin:5px 0 1px;}}

.info-symbols{display:grid;gap:5px;margin:8px 0}.info-symbols>div{display:grid;grid-template-columns:78px 1fr;gap:7px;font-size:10px;line-height:1.35;color:#555d66}.info-symbols b{color:#20252b}.info-symbols span{min-width:0}
.seismic-recommendation{margin-top:14px;display:grid;grid-template-columns:30px 1fr;gap:11px;padding:13px 14px;border:1px solid #dfe4e8;border-radius:12px;background:#f8fafb;color:#30353b;}
.seismic-recommendation[hidden]{display:none;}
.seismic-recommendation-icon{width:30px;height:30px;border-radius:9px;background:#111318;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;}
.seismic-recommendation-title{font-size:11px;font-weight:800;margin-bottom:4px;}
.seismic-recommendation-text{font-size:10px;line-height:1.5;color:#656c74;}
.seismic-recommendation-text strong{color:#20242a;font-weight:800;}
.seismic-recommendation a{display:inline-block;margin-top:7px;color:#315f9d;text-decoration:none;font-size:9px;font-weight:750;}
.seismic-recommendation a:hover{text-decoration:underline;}
@media(max-width:520px){.seismic-recommendation{grid-template-columns:26px 1fr;padding:11px 12px}.seismic-recommendation-icon{width:26px;height:26px}}

/* Compact header and side result/input panels */
.header-title{font-size:12px;line-height:1.15;font-weight:750;letter-spacing:-.01em;color:#202329;text-align:center;flex:1;max-width:360px;}
.inputs-panel,.result-panel{padding-top:17px;padding-bottom:17px;}
.inputs-panel .field-group{margin-bottom:13px;}
.inputs-panel .field-group label{margin-bottom:6px;}
.inputs-panel .panel-head,.result-panel .panel-head{margin-bottom:16px;}
.result-card{padding:14px;gap:10px;}
.metric{padding:10px 11px;}
.metric strong{margin-top:4px;}
.metric-grid{margin:12px 0;}
.utilization-control{margin-bottom:8px;padding:7px 9px;}
.utilization-slider{margin:5px 0 0;}
.result-alerts{margin-top:9px;display:grid;gap:6px;}
.result-alert-item{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:7px;width:100%;border:1px solid #f0c4c0;background:#fff7f6;border-radius:9px;padding:8px 9px;text-align:left;color:#202329;}
.result-alert-item>span{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#f8d9d5;color:#a52f29;font-weight:800;font-size:11px;}
.result-alert-item strong{font-size:10px;line-height:1.25;display:block;}
.result-alert-item small{font-size:9px;color:#8b9098;display:block;margin-top:2px;}
@media(max-width:800px){.header-title{font-size:11px;max-width:210px;}.inputs-panel,.result-panel{padding-top:14px;padding-bottom:14px;}}

/* Compact calculator and seismic diameter prohibition */
.header-title{font-size:26px;line-height:1;letter-spacing:-.035em;font-weight:800;max-width:none;white-space:nowrap;text-align:center;flex:1;}
.calculator-section{padding-top:0;}
.inputs-panel,.result-panel{padding-top:14px;padding-bottom:14px;}
.field-group{margin-bottom:12px;}
.field-group label{margin-bottom:5px;}
.calculator-topbar{padding-top:18px;padding-bottom:18px;}
.result-panel .panel-head{margin-bottom:12px;}
.utilization-control{padding:6px 9px;margin-bottom:7px;}
.metric-grid{margin:10px 0;}
.metric{padding:9px 10px;}
.result-card.seismic-prohibited{display:block;border:2px solid #f44336;background:#fff5f4;padding:17px 16px;cursor:pointer;}
.seismic-prohibited .prohibited-title{font-size:20px;line-height:1.12;font-weight:850;letter-spacing:-.025em;color:#b52e28;margin-bottom:7px;}
.seismic-prohibited .prohibited-subtitle{font-size:13px;line-height:1.35;font-weight:700;color:#202329;}
.seismic-prohibited .prohibited-hint{font-size:10px;line-height:1.4;color:#747b83;margin-top:10px;}
@media(max-width:800px){.header-title{font-size:20px;max-width:calc(100vw - 170px);}.calculator-topbar{padding-top:15px;padding-bottom:15px;}}
@media(max-width:520px){.header-title{font-size:16px;max-width:calc(100vw - 110px);white-space:normal;line-height:1.05;}.calculator-topbar{padding:13px 15px;}}


/* Simplified header and recommendations before normative checks */
/* v7.25.10: в шапке остались только заголовок и тумблер темы — блок «Нормативная
   база» переехал под список нормативных проверок (см. .normative-footer ниже).
   С двумя элементами space-between сам разводит их по краям, без order/margin-хаков. */
.header-inner{justify-content:space-between;}
.header-title{flex:0 1 auto;max-width:none;text-align:left;white-space:nowrap;font-size:26px;line-height:1;font-weight:800;letter-spacing:-.035em;}
.theme-toggle-wrap{margin-left:0;}
.seismic-recommendation{margin-top:0;margin-bottom:14px;}
.checks-bottom .checks-bottom-head{margin-top:0;}
.normative-footer{display:flex;align-items:baseline;gap:8px;margin-top:16px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:11px;}
.normative-footer .header-normative-label{font-size:9px;letter-spacing:.1em;color:#9aa0a7;}
.normative-footer strong{font-size:12px;color:#202329;}
.normative-footer small{font-size:10px;color:#9aa0a7;margin-left:auto;}
body.theme-dark .normative-footer{background:#1c212b;border-color:#3a4251;}
body.theme-dark .normative-footer strong{color:#eef2f7;}
body.theme-dark .normative-footer small,body.theme-dark .normative-footer .header-normative-label{color:#8a91a0;}
@media(max-width:800px){.header-title{font-size:20px;max-width:none;white-space:nowrap;}}
@media(max-width:520px){.header-title{font-size:16px;max-width:none;white-space:nowrap;letter-spacing:-.04em;}.normative-footer{flex-wrap:wrap;}.normative-footer small{margin-left:0;flex-basis:100%;}}

/* User-facing cleanup */
.result-card{grid-template-columns:39px auto 1fr;align-items:start;}
.result-card .result-message{grid-column:1 / -1;}
.result-status-inline{align-self:start;margin-top:1px;justify-self:start;}
.result-card .result-label,.result-card .result-number{grid-column:3;}
.result-card.status-fail .result-icon{background:var(--red);color:#fff;}
.debug-panel,.engine-note{display:none!important;}
@media(max-width:520px){.result-card{grid-template-columns:39px auto 1fr;gap:8px}.result-status-inline{font-size:8px;padding:4px 6px}.result-number{font-size:28px}}

/* Section-level normative help and author contact */
.panel-head.compact .info-trigger{position:relative;top:-1px;margin-left:2px;vertical-align:middle}
.check-rule-inline{font-size:9px;font-weight:500;color:#9aa0a8;white-space:nowrap}
.author-contact{display:flex;align-items:center;gap:12px}.author-contact strong{color:#666d75;font-weight:650}.author-contact a{color:#6a7078;text-decoration:none}.author-contact a:hover{text-decoration:underline}
@media(max-width:520px){.author-contact{flex-direction:column;align-items:flex-start;gap:3px}}

/* v5.1.25 readability pass: keep the compact layout, but make engineering text easier to read. */
.calculator-topbar h2{font-size:22px}
.calculator-subtitle{font-size:14px}
.panel-number{font-size:11px}
.panel-title{font-size:14px}
.field-group label{font-size:12px}
.field-group select,.field-group input{font-size:14px}
.hint{font-size:11px}
.seg{font-size:12px}
.checkbox-label{font-size:13px!important}
.conditional-title{font-size:11px}
.field-note{font-size:11px}
.section-note{font-size:12px}
.engine-note{font-size:11px}
.scheme-legend{font-size:11px}
.result-label{font-size:11px}
.result-message{font-size:12px}
.metric span{font-size:12px}
.metric strong{font-size:16px}
.metric small{font-size:10px}
.checks-bottom-head>span{font-size:11px}
.check-name{font-size:11px}
.check-rule{font-size:10px}
.check-status{font-size:10px}
.details-btn{font-size:12px}
.seismic-switch-wrap>span{font-size:11px}
.seismic-toggle-btn{font-size:11px!important}
@media(max-width:800px){
  .calculator-topbar h2{font-size:20px}
  .calculator-subtitle{font-size:13px}
  .field-group label{font-size:12px}
  .field-group select,.field-group input{font-size:15px}
  .check-name{font-size:12px}
}

/* v5.1.26 visual language: unified seismic control + engineering scheme */
.seismic-control{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #e1e5e9;border-radius:12px;background:#f7f8fa;box-shadow:inset 0 1px 1px rgba(20,25,30,.025)}
.seismic-control-label{padding:0 7px 0 8px;font-size:10px;font-weight:750;color:#707780;white-space:nowrap}
.seismic-segment{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#646b74;font-size:10px;font-weight:750;transition:.15s ease}
.seismic-segment:hover{background:#eef1f4;color:#24282e}
.seismic-segment.active{background:#20242a;color:#fff;box-shadow:0 1px 2px rgba(20,25,30,.12)}
.seismic-dot{width:6px;height:6px;border-radius:50%;background:#a9b0b8;display:block}
.seismic-segment.active .seismic-dot{background:#fff}
.scheme-canvas{min-height:540px;background:#fbfcfd!important;display:flex;align-items:center;justify-content:center;padding:8px;overflow:hidden}
.scheme-canvas svg{width:100%;height:auto;min-height:0;max-height:560px;display:block}
.scheme-legend{display:flex;gap:16px;padding:0 18px 14px;color:#7a818a;font-size:10px}
.scheme-legend .dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px;background:#20242a}.scheme-legend .dot.zone{background:#d9dee4}.scheme-legend .dot.splice{background:#20242a}
@media(max-width:800px){.seismic-control{width:100%;justify-content:stretch}.seismic-control-label{flex:0 0 auto}.seismic-segment{flex:1;justify-content:center}.scheme-canvas{min-height:390px}.scheme-canvas svg{max-height:420px}}

/* v5.1.27: one control language for scenario and seismic switches */
.scenario-switch,.seismic-control{display:flex;gap:3px;padding:3px;border:1px solid var(--line,#e5e7eb);background:#f8f9fb;border-radius:12px;box-shadow:none}
.scenario-btn,.seismic-segment{min-height:36px;border:0;background:transparent;padding:0 13px;border-radius:9px;font:inherit;font-size:12px!important;font-weight:700;cursor:pointer;color:#6b7280;transition:.18s ease;white-space:nowrap}
.scenario-btn:hover,.seismic-segment:hover{background:#eef0f3;color:#24272c}
.scenario-btn.active,.seismic-segment.active{background:#fff;color:#111827;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.seismic-control-label,.seismic-dot{display:none!important}
.toolbar-controls{align-items:center}

/* v5.1.27: shared engineering typography for SVG schemes */
.scheme-canvas svg .sp63-label{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Arial,sans-serif}
@media(max-width:640px){.scenario-btn,.seismic-segment{min-height:36px;padding:0 10px;font-size:12px!important}.toolbar-controls{gap:8px}}

/* v5.1.28: unified readable product typography */
:root{
  --font-ui:"Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,"SF Pro Text",Arial,sans-serif;
  --font-display:"Segoe UI Variable Display","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
}
body,button,input,select,textarea{font-family:var(--font-ui);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.calculator-topbar h2,.hero h1,.panel-title,.result-value,.result-card h3{font-family:var(--font-display)}
.calculator-topbar h2{font-size:22px;font-weight:720;line-height:1.2}
.calculator-subtitle{font-size:14px;line-height:1.4;color:#69717d}
.panel-title{font-size:14px;font-weight:720}
.panel-number{font-size:11px}
.field-group label{font-size:13px;font-weight:650;color:#4d5560;line-height:1.3}
.field-group select,.field-group input{font-size:15px;line-height:1.2}
.field-hint,.field-note,.section-note,.engine-note{font-size:12px;line-height:1.45}
.segmented .seg,.scenario-btn,.seismic-segment{font-size:13px!important;font-weight:650}
.checkbox-label{font-size:13px;line-height:1.35}
.metric-label{font-size:12px}.metric-value{font-size:17px}.metric small{font-size:11px}
.result-message{font-size:13px;line-height:1.45}.result-label{font-size:12px}
.check-name{font-size:12px!important;line-height:1.3}.check-rule,.check-status{font-size:11px!important}
.details-btn{font-size:13px}
.seismic-control-label{font-size:12px!important}.seismic-segment{min-height:36px}
.scheme-canvas{font-family:var(--font-ui);overflow:hidden;clip-path:inset(0 round 16px)}
.scheme-canvas svg{font-family:var(--font-ui);overflow:hidden;display:block;width:100%;height:auto;max-width:100%}
.scheme-legend{font-size:11px}
@media(max-width:800px){
  .calculator-topbar h2{font-size:20px}.calculator-subtitle{font-size:13px}
  .field-group label{font-size:13px}.field-group select,.field-group input{font-size:15px}
  .check-name{font-size:12px!important}.check-rule,.check-status{font-size:11px!important}
}


/* v7.0: persistent light/dark theme */
:root{
  --scheme-bg:#ffffff;
  --scheme-frame:#dfe3e8;
  --scheme-ink:#20242a;
  --scheme-muted:#69717d;
  --scheme-line:#b9c0c8;
  --scheme-concrete:#eef0f2;
  --scheme-hatch:#8d959f;
}
.theme-toggle-wrap{display:flex;align-items:center;justify-content:center;margin-left:auto;margin-right:8px}
.theme-toggle{height:38px;min-width:92px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:7px;padding:3px 8px;color:var(--muted);transition:.2s ease}
.theme-toggle:hover{border-color:#aeb5be;background:var(--surface)}
.theme-icon{font-size:16px;line-height:1;display:grid;place-items:center;width:18px;height:24px}
.theme-icon.sun{opacity:.95}.theme-icon.moon{opacity:.55}
.theme-track{position:relative;width:38px;height:22px;border-radius:999px;background:#d9dde3;box-shadow:inset 0 1px 3px rgba(0,0,0,.12);transition:.2s ease}
.theme-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22);transition:.2s ease}
body.theme-dark{--bg:#171b24;--surface:#222733;--surface-2:#292f3c;--text:#f1f3f7;--muted:#aab2bf;--line:#3a4251;--accent:#f4f6f8;--shadow:0 18px 55px rgba(0,0,0,.30);--scheme-bg:#222733;--scheme-frame:#454e5e;--scheme-ink:#eef2f7;--scheme-muted:#aeb7c5;--scheme-line:#687384;--scheme-concrete:#303744;--scheme-hatch:#7c8798}
body.theme-dark .theme-track{background:#3d4657}
body.theme-dark .theme-knob{left:18px;background:#aeb7c5}
body.theme-dark .theme-icon.sun{opacity:.48}.theme-dark .theme-icon.moon{opacity:.98}
body.theme-dark .site-header{background:rgba(23,27,36,.88);border-bottom-color:rgba(74,83,98,.72)}
body.theme-dark .normative-header{background:rgba(34,39,51,.82)}
body.theme-dark .header-nav a,body.theme-dark .header-link{color:#aeb6c2}
body.theme-dark .calculator-shell{border-color:var(--line)}
body.theme-dark .scheme-panel{background:#1e232d}
body.theme-dark .field-group select,body.theme-dark .field-group input{background:#292f3a;color:var(--text);border-color:#444d5c}
body.theme-dark .field-group label{color:#c4cbd5}
body.theme-dark .scenario-switch,body.theme-dark .seismic-control{background:#1c212b;border-color:#3b4452}
body.theme-dark .scenario-btn,body.theme-dark .seismic-segment{color:#aeb6c2}
body.theme-dark .scenario-btn:hover,body.theme-dark .seismic-segment:hover{background:#303744;color:#f4f6f8}
body.theme-dark .scenario-btn.active,body.theme-dark .seismic-segment.active{background:#454e5e;color:#f1f3f7;box-shadow:0 1px 5px rgba(0,0,0,.25)}
body.theme-dark .scheme-legend{color:#aeb6c2}
body.theme-dark .scheme-legend .dot.zone{background:#596374}
body.theme-dark .scheme-legend .dot.splice{background:#e8edf4}
body.theme-dark .scheme-selection{background:#292f3a;border-color:#424b59;color:#e9edf3}
body.theme-dark .details-btn,body.theme-dark .drawer-close{background:#292f3a;color:#eef2f7;border-color:#444d5c}
body.theme-dark .drawer-sheet{background:#222733;color:var(--text)}
body.theme-dark .drawer-summary{background:#292f3a;border-color:#414a58}
body.theme-dark .trace-row pre{background:#1b2029;border-color:#37404d;color:#c3cad4}
body.theme-dark .check-popover{background:#252b36;color:#eef2f7;border-color:#454e5d}
body.theme-dark .check-popover-formula{background:#1b2029;border-color:#39424f}
body.theme-dark .checks-bottom-grid .check:hover{background:#2a303b}
body.theme-dark .result-alert-item{background:#2d2a20;color:#f1f3f7;border-color:#5a4d2d}
body.theme-dark .result-alert-item.failed{background:#302322;border-color:#60403c}
body.theme-dark .info-popover{background:#252b36;color:#eef2f7;border-color:#454e5d}
body.theme-dark .info-formula{background:#1b2029;border-color:#39424f}
body.theme-dark .footer,body.theme-dark .site-footer{color:#aeb6c2}
@media(max-width:800px){.theme-toggle-wrap{margin-left:0;margin-right:0}.header-inner{gap:10px}.theme-toggle{min-width:82px}}

/* Dark theme audit — keep every UI surface readable and consistent. */
body.theme-dark .scheme-canvas{
  background:var(--scheme-bg)!important;
  border-color:var(--scheme-frame)!important;
}
body.theme-dark .scheme-panel{background:#1e232d!important;}
body.theme-dark .header-title,
body.theme-dark .calculator-topbar h2,
body.theme-dark .panel-title,
body.theme-dark .field-group label,
body.theme-dark .metric strong,
body.theme-dark .check-name,
body.theme-dark .checks-bottom-head>div,
body.theme-dark .hero h1,
body.theme-dark .faq-section summary{color:var(--text);}
body.theme-dark .calculator-subtitle,
body.theme-dark .section-note,
body.theme-dark .panel-number,
body.theme-dark .metric span,
body.theme-dark .metric small,
body.theme-dark .check-rule,
body.theme-dark .check-status,
body.theme-dark .checks-bottom-head>span,
body.theme-dark .result-label,
body.theme-dark .result-message,
body.theme-dark .calculator-topbar .section-kicker{color:var(--muted);}
body.theme-dark .normative-header{
  background:#222733;border-color:#3a4251;
}
body.theme-dark .normative-header strong{color:#eef2f7;}
body.theme-dark .normative-header .header-normative-label,
body.theme-dark .normative-header small{color:#aab2bf;}
body.theme-dark .mode-switch,
body.theme-dark .segmented{background:#1c212b;}
body.theme-dark .mode-btn,
body.theme-dark .seg{color:#aeb6c2;}
body.theme-dark .mode-btn.active,
body.theme-dark .seg.active{background:#454e5e;color:#f1f3f7;}
body.theme-dark .hint{
  background:#303744;color:#dce2ea;border:1px solid #4a5565;
}
body.theme-dark .checkbox-label input{
  background:#292f3a;border-color:#4a5565!important;
}
body.theme-dark .checkbox-label input:checked{
  background:#e8ebf0;border-color:#e8ebf0!important;
}
body.theme-dark .checkbox-label input:checked:after{color:#171b24;}
body.theme-dark .conditional-card,
body.theme-dark .expert-note{
  background:#292f3a;border-color:#414a58;color:#c8ced8;
}
body.theme-dark .conditional-title{color:#aab2bf;}
body.theme-dark .checks-bottom{
  background:#1e232d;border-top-color:var(--line);
}
body.theme-dark .checks-bottom-grid{
  border-color:var(--line);
  background:#222733;
}
body.theme-dark .checks-bottom-grid .check{
  background:#222733;
  border-color:var(--line);
}
body.theme-dark .checks-bottom-grid .check:hover{background:#2a303b!important;}
body.theme-dark .check:hover{background:#2a303b;}
body.theme-dark .details-btn{
  background:#292f3a;color:#eef2f7;border-color:#444d5c;
}
/* v7.25.3: статусные карточки результата тонируются под тёмную тему (раньше
   принудительно оставались светлыми — светились на тёмном фоне; см. правку). Мутный полутон (v7.25.3) и затем насыщенная цветная рамка
   (v7.25.4) — оба варианта пользователь счёл «бросающимися в глаза».
   v7.25.4.1: карточка результата вернулась к нейтральному фону/рамке, как у
   остальных панелей проекта; цвет статуса несёт только иконка (галочка/
   восклицательный знак/крест) и, чуть тише, плашка статуса. */
body.theme-dark .result-card{
  background:#1c212b;border-color:#3a4251;color:#f1f3f7;
}
body.theme-dark .result-card .result-label{color:#aeb6c2;}
body.theme-dark .result-card .result-message{color:#c7cdd6;}
body.theme-dark .status-mini.ok,
body.theme-dark .status-mini.warning,
body.theme-dark .status-mini.fail{background:#2a303c;color:#f1f3f7;}
body.theme-dark .status-mini.input-error{background:#2a303c;color:#aeb6c2;border-color:#454e5e;}
body.theme-dark .seismic-prohibited .prohibited-title{color:#f1f3f7;}
body.theme-dark .seismic-prohibited .prohibited-subtitle{color:#e8eaed;}
body.theme-dark .seismic-prohibited .prohibited-hint{color:#aeb6c2;}
body.theme-dark .result-card .result-number,
body.theme-dark .result-card .result-number small{color:#f1f3f7;}
body.theme-dark .result-alert-title{color:#aeb6c2;}
body.theme-dark .result-alert-item{color:#f1f3f7;}
body.theme-dark .info-trigger{
  background:#292f3a;color:#dce2ea;border-color:#4a5565;
}
body.theme-dark .debug-raw summary{color:#aeb6c2;}
body.theme-dark .debug-raw pre{
  background:#1b2029;border-color:#37404d;color:#c3cad4;
}
body.theme-dark .faq-section details p,
body.theme-dark .info-copy>p{color:#aab2bf;}
body.theme-dark .site-footer{border-top-color:var(--line);color:#aeb6c2;}
body.theme-dark .author-contact strong,
body.theme-dark .author-contact a{color:#aeb6c2;}
body.theme-dark .normative-card{background:#111318;color:#f1f3f7;}
body.theme-dark .normative-card p{color:#aab2bf;}
body.theme-dark .normative-links a{background:#222733;color:#dce2ea;border-color:#3a4251;}
body.theme-dark .theme-toggle{background:#222733;border-color:#4a5565;color:#dce2ea;}
body.theme-dark .theme-toggle:hover{background:#292f3a;border-color:#687384;}

/* v7.7 — technical scheme interaction */
.scheme-tooltip{position:fixed;z-index:250;pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease;background:#171717;color:#f4f4f4;border:1px solid #454545;border-radius:9px;padding:9px 11px;font-size:11px;line-height:1.4;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.scheme-tooltip.open{opacity:1;transform:none}
body.theme-dark .scheme-tooltip{background:#eeeeee;color:#171717;border-color:#777}
@media(max-width:800px){.scheme-tooltip{font-size:11px;max-width:calc(100vw - 24px)}}

/* v7.7 — technical scheme interaction */
.scheme-tooltip{position:fixed;z-index:250;pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease;background:#171717;color:#f4f4f4;border:1px solid #454545;border-radius:9px;padding:9px 11px;font-size:11px;line-height:1.4;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.scheme-tooltip.open{opacity:1;transform:none}
body.theme-dark .scheme-tooltip{background:#eeeeee;color:#171717;border-color:#777}
@media(max-width:800px){.scheme-tooltip{font-size:11px;max-width:calc(100vw - 24px)}}
/* v7.13 final readable engineering scheme */
.scheme-canvas{min-height:620px!important;padding:10px!important;}
.scheme-canvas svg{max-height:700px!important;width:100%!important;height:auto!important;}
@media(max-width:800px){.scheme-canvas{min-height:480px!important}.scheme-canvas svg{max-height:460px!important}}

/* v7.25: атрибут hidden всегда скрывает элемент (раньше display:flex перебивал hidden и оставлял пустую плашку под схемой) */
[hidden]{display:none!important}

/* v7.25.2: тумблер точности округления (1 мм / 10 мм) над расчётной схемой —
   визуально повторяет .seismic-control/.seismic-segment, но именован по смыслу. */
.scheme-tools{align-items:center}
.rounding-control{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #e1e5e9;border-radius:12px;background:#f7f8fa;box-shadow:inset 0 1px 1px rgba(20,25,30,.025);margin-right:6px}
.rounding-segment{display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#646b74;font-size:11px;font-weight:750;transition:.15s ease;white-space:nowrap;cursor:pointer}
.rounding-segment:hover{background:#eef1f4;color:#24282e}
.rounding-segment.active{background:#20242a;color:#fff;box-shadow:0 1px 2px rgba(20,25,30,.12)}
.rounding-note{font-size:10px;line-height:1.5;color:#9298a0;padding:8px 2px 0}
body.theme-dark .rounding-control{background:#1c212b;border-color:#3b4452}
body.theme-dark .rounding-segment{color:#aeb6c2}
body.theme-dark .rounding-segment:hover{background:#303744;color:#f4f6f8}
body.theme-dark .rounding-segment.active{background:#454e5e;color:#f1f3f7;box-shadow:0 1px 5px rgba(0,0,0,.25)}
body.theme-dark .rounding-note{color:#8a91a0}
@media(max-width:640px){.rounding-segment{min-height:32px;padding:0 8px;font-size:11px!important}.scheme-tools{flex-wrap:wrap;row-gap:6px}}

/* v7.25.3: панель рекомендаций/конструктивных условий (.seismic-recommendation)
   не имела тёмного варианта вовсе и светилась белым на тёмном фоне. */
body.theme-dark .seismic-recommendation{
  background:#1c212b;border-color:#3a4251;color:#e6e9ee;
}
body.theme-dark .seismic-recommendation-icon{background:#e8ebf0;color:#171b24;}
body.theme-dark .seismic-recommendation-text{color:#c7cdd6;}
body.theme-dark .seismic-recommendation-text strong{color:#f1f3f7;}
body.theme-dark .seismic-recommendation a{color:#8fb3e6;}

/* v7.25.4.1: блок "Коэффициент использования сечения" не имел тёмного варианта
   вовсе — светился белым над карточкой результата. Ползунок теперь окрашен
   в тон окружающих тёмных панелей проекта, а не в чёрный (был неестественным
   пятном на тёмном фоне). */
body.theme-dark .utilization-control{background:#1c212b;border-color:#3a4251;}
body.theme-dark .utilization-title{color:#e6e9ee;}
body.theme-dark .utilization-scale{color:#7d8590;}
body.theme-dark .utilization-slider{accent-color:#2a303c;}
body.theme-dark .utilization-head strong{color:#e6e9ee;}

/* Typography pass: raise the floor for small secondary/service text (captions,
   normative references, check-card text, scheme legend, footer) to >=12px,
   without touching headings, primary result values, section titles, buttons
   or switches. font-size only — no layout/HTML/JS/normative changes. */
.check-rule-inline{font-size:12px!important}
.check-name{font-size:13px!important}
.check-status{font-size:12px!important}
.checks-bottom-head>span{font-size:12px!important}
.panel-number{font-size:12px!important}
.scheme-legend{font-size:12px!important}
.rounding-note{font-size:12px!important}
.scheme-selection{font-size:12px!important}
.scheme-tooltip{font-size:12px!important}
.metric-label{font-size:13px!important}
.metric small{font-size:12px!important}
.result-label{font-size:13px!important}
.result-number small{font-size:13px!important}
.utilization-title{font-size:12px!important}
.utilization-scale{font-size:12px!important}
.site-footer{font-size:12px!important}
.normative-footer{font-size:12px!important}
.normative-footer .header-normative-label{font-size:12px!important}
.normative-footer strong{font-size:13px!important}
.normative-footer small{font-size:12px!important}
.info-popover{font-size:13px!important}
.info-popover strong{font-size:13px!important}
.info-formula{font-size:12px!important}
.info-symbols>div{font-size:12px!important}
.check-symbol{font-size:12px!important}
.check-popover{font-size:13px!important}
.check-popover-substitution{font-size:12px!important}
.check-popover-substitution b{font-size:11px!important}
.seismic-recommendation-title{font-size:12px!important}
.seismic-recommendation-text{font-size:12px!important}
.seismic-recommendation a{font-size:12px!important}
.field-note{font-size:13px!important}
.expert-note{font-size:12px!important}
.result-alert-title{font-size:12px!important}
.result-alert-item strong{font-size:12px!important}
.result-alert-item small{font-size:12px!important}

/* Справка «?»: рисунок и таблица (закладные детали) */
.info-figure{margin:6px 0 8px;color:#3a424c}.info-figure svg{display:block;width:100%;height:auto}
body.theme-dark .info-figure{color:#c9d1db}
.info-table{width:100%;border-collapse:collapse;margin:6px 0 8px;font-size:11px}.info-table th,.info-table td{border:1px solid #d9dee4;padding:3px 5px;text-align:center}.info-table th{background:#f5f7fa;font-weight:600}
body.theme-dark .info-table th,body.theme-dark .info-table td{border-color:#39424f}body.theme-dark .info-table th{background:#1b2029}

/* Закладные: два поля в строке — поля ввода на одном уровне, даже если подпись одного переносится или имеет «?» */
.embedded-workspace .range-row{grid-template-rows:auto auto auto;row-gap:0;margin-bottom:12px}
.embedded-workspace .range-row .field-group{display:grid;grid-row:span 3;grid-template-rows:subgrid;min-width:0;margin-bottom:0}
.embedded-workspace .range-row .field-group>label{display:block;align-self:end}
.embedded-workspace .range-row .field-group>label .info-trigger{vertical-align:middle;position:relative;top:-1px}

/* Закладные: пометка дополнительной проверки и свёрнутый список «не требуются» */
.check-extra-tag{display:inline-block;padding:0 5px;margin-right:2px;border-radius:5px;background:#eef2f7;color:#4e5966;font-size:10px;font-weight:700;letter-spacing:.02em;vertical-align:1px}
body.theme-dark .check-extra-tag{background:#2a313d;color:#c4cbd5}
.embedded-skipped>summary{cursor:pointer;list-style:none}.embedded-skipped>summary::before{content:'▸ ';}.embedded-skipped[open]>summary::before{content:'▾ ';}

/* Инструкция калькулятора закладных */
.guide-body{padding-block:28px 48px;max-width:1100px}.guide h1{font-size:30px;margin:0 0 12px}.guide h2{font-size:19px;margin:30px 0 12px}.guide-lead{color:var(--muted);max-width:820px}
.guide-steps,.guide-list{max-width:900px;line-height:1.55}.guide-steps li,.guide-list li{margin-bottom:8px}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.guide-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px;font-size:13px;line-height:1.45}.guide-card h3{font-size:14px;margin:0 0 6px}.guide-card p{margin:6px 0 0;color:var(--muted)}
.guide-card .info-refs{font-size:12px;margin-bottom:6px}.guide-card .info-formula{margin:6px 0}
.header-guide-link{font-size:13px;font-weight:600;margin-left:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
@media(min-width:1251px){.embedded-workspace.cover-workspace{grid-template-columns:86px 320px minmax(400px,1fr) 340px}}
.embedded-scheme svg [data-dim].hl,.embedded-scheme svg g.hl *{stroke:#dc2626}
.cover-guide-btn .info-trigger{width:28px;height:28px;font-size:14px;vertical-align:middle;margin-left:6px}
.cover-conds{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.cover-cond-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(127,127,127,.35);background:transparent;border-radius:14px;padding:4px 10px;font-size:12px;cursor:pointer;color:inherit}
.cover-cond-chip i,.cover-face-menu i{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.cover-cond-chip.unset{border-style:dashed;border-color:#b42318;color:#b42318}
.cover-cond-chip:hover,.cover-cond-chip.hl{border-color:#3b82f6}
.cover-face-menu{position:fixed;z-index:1000;background:#fff;color:#1d2433;border:1px solid #d0d5dd;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:6px;width:320px;max-width:calc(100vw - 16px)}
.cover-face-menu b{display:block;font-size:12px;padding:4px 8px 6px}
.cover-face-menu button{display:flex;gap:8px;align-items:center;width:100%;text-align:left;background:none;border:0;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:13px;color:inherit}
.cover-face-menu button:hover,.cover-face-menu button.active{background:rgba(59,130,246,.14)}
body.theme-dark .cover-face-menu{background:#1f2430;color:#e6e8ee;border-color:#39404f}
.embedded-scheme svg .cover-face-pick.hl{stroke:transparent!important}.cover-face-menu.grid{width:260px}
.cover-face-menu.grid .cover-face-menu-list{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}
.cover-face-menu.grid .cover-face-menu-list button{justify-content:center}
.cover-face-values{display:grid;gap:4px;margin-top:6px;font-size:13px}
.cover-face-values>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed rgba(127,127,127,.3);padding-bottom:3px}
.cover-face-values>div.hl{color:#2563eb}
.cover-breakdown{margin:12px 0}
.cover-way{border:1px solid rgba(127,127,127,.25);border-radius:8px;padding:8px 10px;margin-top:8px;font-size:13px}
.cover-way-title{font-weight:600;margin-bottom:4px}
.cover-step{display:grid;grid-template-columns:64px 1fr;gap:8px;padding:3px 0;align-items:baseline}
.cover-step small{display:block;opacity:.65;font-size:11px}
.cover-step-mm{font-variant-numeric:tabular-nums;font-weight:600;text-align:right}
.cover-step.modifier .cover-step-mm{color:#16a34a}
.cover-step.raise .cover-step-mm,.cover-step.tolerance .cover-step-mm,.cover-step.round .cover-step-mm{color:#d97706}
.cover-step.total{border-top:1px solid rgba(127,127,127,.35);margin-top:4px;padding-top:6px;font-weight:600}
details.embedded-list>summary{cursor:pointer}.cover-aggr-tag{font-style:normal;font-size:11px;margin-left:4px}
.cover-face-menu b~b{margin-top:6px;border-top:1px solid rgba(127,127,127,.25);padding-top:8px}
.cover-fold{margin:4px 0 8px;border:1px solid rgba(127,127,127,.25);border-radius:8px}
.cover-fold>summary{list-style:none;display:flex;gap:8px;align-items:flex-start;padding:7px 10px;cursor:pointer;font-size:12.5px}
.cover-fold>summary::-webkit-details-marker{display:none}
.cover-fold-arrow{display:inline-block;transition:transform .15s;opacity:.7;flex:none}
.cover-fold[open]>summary .cover-fold-arrow{transform:rotate(90deg)}
.cover-fold-sum{opacity:.85;line-height:1.4;flex:1}
.cover-fold-hint{color:var(--muted);font-weight:600}
body.theme-dark .cover-fold-hint{color:var(--text)}
.cover-fold-body{padding:2px 10px 8px}.cover-scheme-cap{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.cover-interactive{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;background:rgba(37,99,235,.1);color:#2563eb;font-weight:600}
body.theme-dark .cover-interactive{background:rgba(143,180,236,.15);color:#8fb4ec}
.cover-legend{display:inline-flex;align-items:center;gap:6px;opacity:.8}
.cover-legend i{display:inline-block;width:18px;border-top:3px dashed}.cover-legend i.solid{border-top-style:solid;border-top-width:5px}
.cover-legend i.thin{border-top-width:1.5px}
