.sndrow{display:flex;gap:14px;margin-bottom:6px}.sndrow label{flex:1;display:flex;flex-direction:column;font-weight:800;font-size:13px;gap:2px}.sndrow input{width:100%;accent-color:#ffb347}
.rcol{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}.rotbtns{display:flex;gap:6px}.iconbtn.rb{width:36px;height:36px;min-width:0;padding:0;display:grid;place-items:center}
.concord{border:3px solid #7a5aa0;background:linear-gradient(135deg,#f6f0ff,#fff6e3)}.concord .pips{margin:4px 0}
.jrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--panel-2);border-radius:12px;padding:6px 8px}
.jup{flex-basis:100%;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:4px 2px 0 40px;border-top:1px dashed rgba(38,42,69,.15)}.jup .cost{flex:1;flex-wrap:wrap}.jup .pbtn{padding:6px 12px;font-size:13px}.jmax{font-size:11.5px;color:#4a4f6e}
.jname{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:none;border:0;padding:2px;text-align:left;cursor:pointer}
.jname b{display:block;font-family:var(--display);font-weight:400;font-size:15px}
.jname small{display:block;font-size:11.5px;color:#4a4f6e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jname>span:last-child{min-width:0}
.jrow .lab{font-family:var(--display);font-size:14px;min-width:30px;text-align:center}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tile{display:flex;flex-direction:column;gap:1px;background:var(--panel-2);border-radius:14px;padding:9px 10px;min-width:0}
.tile small{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#6a6f8e}
.tile b{font-family:var(--display);font-weight:400;font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.tile span{font-size:11.5px;color:#4a4f6e}
.tile svg{margin-top:4px;max-width:100%}
.srow{display:grid;grid-template-columns:minmax(0,1.2fr) 44px minmax(0,1fr) 76px;align-items:center;gap:8px;font-size:13px;padding:5px 8px;border-bottom:2px solid var(--panel-2);font-variant-numeric:tabular-nums}
.srow.head{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:#6a6f8e;border-bottom:0;padding-bottom:0}
.srow .nm{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;white-space:nowrap}
.srow .pos{color:#1f9a4a}.srow .neg{color:var(--brick)}
.nav{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 10px);z-index:5;width:min(430px,calc(100% - 20px))}
#hud{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 76px)}
.sheetwrap{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 74px)}
.sheet{border-bottom:3px solid var(--ink);border-radius:22px}
.sheet .body{padding-bottom:16px}
.sheet .body>*,.panel>*{flex-shrink:0}
.chip.threat{background:#ffd9d4;animation:thr 1s ease-in-out infinite}
@keyframes thr{50%{transform:scale(1.07)}}
#coach{position:fixed;left:50%;transform:translateX(-50%);top:calc(env(safe-area-inset-top,0px) + 8px);z-index:9;width:min(400px,calc(100% - 24px));background:var(--panel);border:3px solid var(--ink);border-radius:16px;box-shadow:0 5px 0 var(--ink);padding:11px 13px;display:flex;flex-direction:column;gap:5px}
#coach small{font-family:var(--display);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--brick)}
#coach b{display:block;font-family:var(--display);font-weight:400;font-size:20px;line-height:1.1}
#coach p{margin:0;font-size:13.5px;line-height:1.4;color:#4a4f6e}
#coach .pbtn{align-self:flex-start}
#menu .tiprow{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
#coach .coachrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hl{position:relative;z-index:3;animation:hlp 1.1s ease-out infinite;border-color:var(--sun)!important}
@keyframes hlp{0%{box-shadow:0 0 0 0 rgba(255,200,61,.95),0 3px 0 var(--ink)}100%{box-shadow:0 0 0 14px rgba(255,200,61,0),0 3px 0 var(--ink)}}
body.tour-lock .nav button:not(.hl),body.tour-lock .bcard:not(.hl),body.tour-lock .bcats button:not(.on),body.tour-lock .bhead .step{opacity:.35;pointer-events:none}
body.tour-lock .sec-label{pointer-events:none;opacity:.6}
button.res{cursor:pointer;text-align:left;color:var(--ink)}
.res.inv{min-width:0;background:var(--panel-2);justify-content:center}
.res.inv .sub{font-size:10.5px;color:#6a6f8e;line-height:1}
.irow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr) 36px;align-items:center;gap:10px;background:var(--panel-2);border-radius:12px;padding:6px 8px}
.irow.full{background:#ffe1dc}
.irow .nm{display:flex;align-items:center;gap:7px;min-width:0}
.irow .nm b{display:block;font-family:var(--display);font-weight:400;font-size:15px;line-height:1.1}
.irow .nm small{font-size:11.5px;color:#6a6f8e}
.irow .nm small.pos{color:#1f9a4a}.irow .nm small.neg{color:var(--brick)}
.irow .amt{display:flex;flex-direction:column;gap:3px;min-width:0;font-variant-numeric:tabular-nums}
.irow .amt b{font-size:13px}
.irow .bar{height:6px;border-radius:3px;background:var(--panel);overflow:hidden;border:1.5px solid var(--ink)}
.irow .bar i{display:block;height:100%;background:var(--leaf)}
.irow.full .bar i{background:var(--brick)}
.pin{width:34px;height:34px;display:grid;place-items:center;border:2.5px solid var(--ink);border-radius:10px;background:var(--panel);color:var(--ink);cursor:pointer;padding:0}
.pin svg{fill:none}
.pin.on{background:var(--sun)}.pin.on svg{fill:var(--ink)}
@media (prefers-reduced-motion:reduce){.chip.threat,.hl{animation:none}.hl{box-shadow:0 0 0 4px var(--sun)}}
.wrow .lv{flex:1;min-width:0;font-size:13px;color:#4a4f6e}
.tdet{display:flex;gap:10px;align-items:center;background:var(--panel-2);border-radius:14px;padding:10px 12px;border-left:6px solid var(--bc)}
.tdet .o{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tdet small{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#6a6f8e}
.tdet b{font-family:var(--display);font-weight:400;font-size:19px;line-height:1.1}
.tdet p{margin:0;font-size:13px;color:#4a4f6e}
.tscroll{overflow-x:auto;padding-bottom:4px}
.tree{position:relative;min-width:560px}
.tree>svg{position:absolute;inset:0;width:100%;height:100%}
.tree>svg path{fill:none;stroke:#c3c8d6;stroke-width:2.5;vector-effect:non-scaling-stroke}
.tree>svg path.on{stroke:var(--ink)}
.bimg{flex:none;image-rendering:auto;filter:drop-shadow(0 1px 0 rgba(38,42,69,.25))}
.jname .bimg{margin:-4px 0}
.panel .head .bimg{margin:-6px -2px -6px -4px}
.tbig{flex:none;width:46px;height:46px;display:grid;place-items:center;background:var(--panel);border-radius:12px;border:2px solid var(--bc)}
