.theory-tabs,.description-modes{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#171c2033}
.theory-tabs button,.description-modes button{flex:1;min-width:0;min-height:35px;padding:7px 8px;font-size:12px;line-height:1.35;border-radius:5px;color:var(--muted)}
.theory-tabs button[aria-pressed=true],.description-modes button[aria-pressed=true]{background:#73dbe21a;color:var(--accent)}
.description-mode-hint{font-size:11px!important;color:var(--muted);line-height:1.4;margin:0!important}
.description-undetermined{font-size:10px;color:var(--muted);padding:3px 0;text-decoration:underline;text-underline-offset:3px;min-height:24px;border-radius:3px}
.description-undetermined[aria-pressed=true]{color:var(--accent)}
.description-completion{padding:16px 0;border-top:1px solid var(--line);margin-top:12px}
.description-completion summary{font-size:13px}.description-completion dl{margin:0;display:grid;gap:8px}
.description-completion dl>div{display:flex;gap:12px;justify-content:space-between;font-size:11px;border-bottom:1px solid #56616844;padding:6px 0}
.description-completion dt{color:var(--muted)}.description-completion dd{margin:0;text-align:right;max-width:60%}
.panel-theory .record-panel-body{display:flex;flex-direction:column;gap:14px}.theory-content{min-width:0}
.conduction-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.conduction-heading .eyebrow{font-size:10px;color:var(--accent);letter-spacing:.1em}.record-panel .conduction-heading h3{font-size:20px;margin:4px 0 0;font-weight:500}
.conduction-label-toggle{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:5px 9px}.conduction-label-toggle[aria-pressed=true]{color:var(--accent);border-color:#73dbe255}
.conduction-heart{margin:14px -4px 10px;position:relative;border-radius:10px;overflow:hidden;background:#171c20}
.conduction-anatomy{display:block;width:100%;height:auto;max-height:max(180px,calc(100dvh - 490px))}
.conduction-network{fill:none;stroke-linecap:round;stroke-linejoin:round}
.conduction-path{stroke:var(--accent);stroke-width:4;opacity:.65}.conduction-path.is-selected{stroke-width:5;opacity:1;filter:drop-shadow(0 0 5px #73dbe2)}
.conduction-travel{stroke:#fffafb;stroke-width:7;filter:drop-shadow(0 0 5px #ded5a2) drop-shadow(0 0 14px #ded5a2);fill:none;pointer-events:none}
.conduction-spark{fill:#fffafb;stroke:#ded5a2;stroke-width:5;filter:drop-shadow(0 0 7px #ded5a2) drop-shadow(0 0 18px #ded5a2);pointer-events:none}
.conduction-network [data-conduction-node]{fill:#171c20;stroke:var(--accent);stroke-width:3}
.conduction-network [data-conduction-node].is-active{fill:#fffafb;stroke:#ded5a2;stroke-width:6;filter:drop-shadow(0 0 8px #ded5a2) drop-shadow(0 0 20px #ded5a2)}
.conduction-network [data-conduction-node].is-selected{stroke-width:5}
.conduction-network [data-conduction-node=escape]{opacity:0}.conduction-network [data-conduction-node=escape].is-active{opacity:1}
.conduction-transseptal{display:none;stroke-dasharray:8 8}
.has-right-block .conduction-transseptal,.has-left-block .conduction-transseptal{display:block}
.has-right-block [data-conduction-path=right],.has-left-block [data-conduction-path=left]{stroke:#ff9791;stroke-dasharray:8 8;opacity:.8}
.conduction-block-marker{stroke:#ff9791;stroke-width:5;filter:drop-shadow(0 0 7px #ff9791)}
.conduction-labels{fill:var(--ink);font-size:25px;font-weight:500}.conduction-labels path{fill:none;stroke:var(--muted);stroke-width:1;opacity:.65}
.conduction-stage{border-left:2px solid #ded5a2;padding:0 0 0 10px;min-height:63px}.conduction-stage strong{font-size:13px;color:#ded5a2;font-weight:500}.record-panel .conduction-stage p{font-size:11px;line-height:1.45;color:var(--muted);margin:4px 0 0}
.conduction-strip{margin-top:14px;background:#171c2044;border-radius:6px;padding:7px 8px}.conduction-strip>span{font-size:10px;color:var(--muted)}.conduction-strip svg{display:block;width:100%;height:43px;overflow:hidden}.conduction-strip path{fill:none;stroke:var(--accent);stroke-width:1.5;vector-effect:non-scaling-stroke}.conduction-cursor{stroke:#ded5a2;stroke-width:1;vector-effect:non-scaling-stroke}
.conduction-timeline{display:flex;align-items:center;gap:8px;margin:8px 0}.conduction-timeline input{flex:1;min-width:0;padding:0;accent-color:#ded5a2}.conduction-timeline output{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);min-width:48px;text-align:right}
.conduction-controls{display:flex;gap:6px;margin-top:10px}.conduction-controls .button{padding:7px 10px;font-size:11px;border-radius:6px;min-height:32px;background:#171c2033}.conduction-controls [data-conduction-play]{flex:1;color:#ded5a2;border-color:#ded5a266}
.conduction-structures{display:flex;gap:5px;flex-wrap:wrap;margin-top:16px}.conduction-structures button{padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:10px;color:var(--muted)}.conduction-structures button[aria-pressed=true]{color:var(--accent);border-color:#73dbe288;background:#73dbe211}
.record-panel .conduction-detail,.record-panel .conduction-pending,.record-panel .conduction-evidence p{font-size:11px;line-height:1.5;color:var(--muted);margin:10px 0}.conduction-pending{border-left:2px solid var(--line);padding-left:10px}
.conduction-evidence{border-top:1px solid var(--line);padding-top:10px;font-size:11px}.conduction-evidence a{color:var(--accent);font-size:11px}
@media(min-width:761px){.workspace-layout.panel-theory:has(.conduction-view){--content-width:clamp(340px,34vw,560px)}}
@media(max-width:760px){.conduction-anatomy{max-height:42dvh}.description-modes button{font-size:11px}.conduction-labels{font-size:26px}}
.conduction-expand{font-size:11px;color:var(--accent);border:1px solid #73dbe255;border-radius:6px;padding:5px 8px;margin-left:auto}
.record-panel .conduction-record{font-size:11px;line-height:1.4;margin:5px 0 0;color:var(--muted)}
.conduction-heading{flex-wrap:wrap}.conduction-heading>div{flex:1;min-width:160px}
.conduction-view.is-expanded{position:fixed;inset:70px 24px 24px;z-index:18;background:linear-gradient(135deg,#171c20,#263c40);border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 12px 50px #0006;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);grid-template-rows:auto auto auto auto auto auto 1fr auto;gap:12px 28px;overflow:auto;align-content:start}
.conduction-view.is-expanded .conduction-heart{grid-column:1;grid-row:1/9;margin:0;min-height:0;display:grid;align-items:center;background:transparent}
.conduction-view.is-expanded .conduction-anatomy{max-height:100%;height:100%;width:100%}
.conduction-view.is-expanded> :not(.conduction-heart){grid-column:2;min-width:0}
.conduction-view.is-expanded .conduction-heading{grid-row:1}.conduction-view.is-expanded .conduction-controls{grid-row:2;margin:0}.conduction-view.is-expanded .conduction-stage{grid-row:3}.conduction-view.is-expanded .conduction-strip{grid-row:4;margin:0}.conduction-view.is-expanded .conduction-timeline{grid-row:5;margin:0}.conduction-view.is-expanded .conduction-structures{grid-row:6;margin:0}.conduction-view.is-expanded .conduction-detail{grid-row:7}.conduction-view.is-expanded .conduction-evidence{grid-row:8;align-self:end}
@media(max-width:760px){.conduction-view.is-expanded{inset:64px 10px 10px;padding:16px;display:flex;flex-direction:column;gap:12px}.conduction-view.is-expanded .conduction-heart{order:2;flex:none}.conduction-view.is-expanded .conduction-anatomy{height:auto;max-height:42dvh}.conduction-view.is-expanded .conduction-controls{order:1}.conduction-view.is-expanded .conduction-stage{order:3}.conduction-view.is-expanded .conduction-strip{order:4}.conduction-view.is-expanded .conduction-timeline{order:5}.conduction-view.is-expanded .conduction-structures{order:6}.conduction-view.is-expanded .conduction-detail{order:7}.conduction-view.is-expanded .conduction-evidence{order:8}}
