/* Read-only cabinet layout, using the supplied PRAXISQUANT tokens. */
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-weight:500}
.tab[aria-current="page"]{color:var(--ink)}
.tab[aria-current="page"]::after{content:"";position:absolute;left:9px;right:9px;bottom:-1px;height:2px;background:var(--brand);border-radius:2px 2px 0 0}
.topbar{gap:24px}
.topbar-right{gap:12px}
.account-mode{display:flex;gap:8px;align-items:center}
.account-mode label{font-size:11px;color:var(--muted)}
.account-user{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}
.logout-form{display:flex}
.mode-submit{display:none}
.no-js .mode-submit{display:inline-flex}
.theme-moon,[data-theme="light"] .theme-sun{display:none}
[data-theme="light"] .theme-moon{display:block}
.skip-link{position:fixed;left:16px;top:-60px;z-index:500;background:var(--s1);border:1px solid var(--focus);padding:8px 16px;border-radius:6px}
.skip-link:focus{top:8px}
.anchor-target{position:absolute;top:0}
.d-wrap{width:100%;padding-top:24px;gap:20px}
.d-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.d-metric{min-width:0;min-height:107px;display:flex;flex-direction:column;justify-content:center}
.d-ml{font-size:10px;min-height:20px;margin-bottom:5px}
.d-mv{font-size:clamp(17px,1.5vw,24px);overflow-wrap:anywhere}
.d-ms{line-height:16px;min-height:16px}
.d-grid{grid-template-columns:minmax(0,1fr) 320px;gap:20px}
.d-left,.d-right{display:flex;flex-direction:column;gap:20px;min-width:0}
.d-zt{font-size:13px;line-height:20px;margin:0}
.market-heading{padding:13px 18px 9px;border-bottom:1px solid var(--border)}
.d-tick{min-height:85px;min-width:155px;padding:13px 18px;gap:4px}
.d-td{font-size:10px;line-height:16px}
.market-empty{padding:16px 18px;color:var(--muted);font-size:12px}
.d-chartcard{padding:18px 20px 0}
.d-cwrap{height:276px;min-height:220px}
.chart-source{font-size:10px;color:var(--muted)}
.chart-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:7px;text-align:center;padding:28px}
.chart-empty>svg{width:42px;height:42px;color:var(--cat-stats);opacity:.7;margin-bottom:6px}
.chart-empty h3{font-size:13px;color:var(--ink)}
.chart-empty p{font-size:11px;max-width:320px;line-height:18px}
.chart-summary{display:flex;align-items:center;gap:14px;min-height:55px;border-top:1px solid var(--border);font-size:11px;flex-wrap:wrap;padding:12px 0;margin-top:10px}
.chart-summary>.mono{margin-left:auto;font-size:14px;font-weight:500}
.chart-summary>.d-mut{font-size:10px}
.equity-svg{width:100%;height:100%;display:block;overflow:visible}
.equity-svg text{font-family:'JetBrains Mono',ui-monospace,monospace;fill:var(--muted);font-size:10px}
.equity-svg .chart-grid{stroke:var(--border);stroke-width:1;opacity:.65}
.equity-svg .equity-line{fill:none;stroke:var(--cat-stats);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.equity-svg .equity-area{fill:url(#equity-fill)}
.strategy-row{display:flex;align-items:center;gap:22px;min-height:84px;padding:12px 18px}
.strategy-expand{display:flex;align-items:center;gap:10px;text-align:left;flex:1;min-width:0;padding:6px 0}
.expand-chevron{width:15px;height:15px;color:var(--muted);transition:transform .15s;flex:none}
.strategy-expand[aria-expanded="true"] .expand-chevron{transform:rotate(90deg)}
.strategy-status{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-family:'JetBrains Mono',ui-monospace,monospace;color:var(--muted);white-space:nowrap}
.status-dot{width:6px;height:6px;background:var(--muted);border-radius:50%}
.status-dot.active{background:var(--profit)}
.strategy-details{padding:18px 24px 20px 44px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--s2) 70%,transparent)}
.strategy-details[hidden]{display:none}
.strategy-branches{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.branch-summary{margin-bottom:16px;font-size:11px;line-height:21px}
.chain-arrow{color:var(--muted);margin:0 3px}
.d-dst{font-size:10px;gap:10px}
.d-dst::after{min-width:16px}
.d-rc{padding:18px 20px}
.review-state{padding:12px 0 8px}
.review-state>svg{width:29px;height:29px;color:var(--cat-risk);margin-bottom:11px}
.review-state h3{font-size:13px;margin-bottom:8px}
.review-state p{font-size:11px;line-height:19px;color:var(--muted)}
.configured-limits>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;border-bottom:1px solid var(--border);font-size:11px}
.configured-limits dt{color:var(--muted)}
.configured-limits dd{font-family:'JetBrains Mono',ui-monospace,monospace;text-align:right;font-size:11px;white-space:pre-wrap}
.exposure-review{margin-top:12px;padding-top:4px}
.exposure-review h3{font-size:11px;color:var(--cat-risk)}
.exposure-review p{font-size:10px;line-height:17px}
.stop-expiry{font-size:9px;color:var(--muted)}
.d-zf{gap:20px}
.alerts-empty{padding:23px 0 17px;text-align:center;color:var(--muted)}
.empty-dot{display:block;width:8px;height:8px;border:1px solid var(--muted);border-radius:50%;margin:0 auto 13px;opacity:.65}
.alerts-empty h3{font-size:12px;color:var(--ink);margin-bottom:6px}
.alerts-empty p{font-size:11px;line-height:19px}
.account-alert{padding:13px 0;border-bottom:1px solid var(--border)}
.account-alert:last-child{border-bottom:0}
.alert-title{font-size:12px;font-weight:500;margin-bottom:4px}
.account-alert p{font-size:11px;line-height:18px;color:var(--muted);margin-bottom:5px}
.account-alert time{font-size:9px;color:var(--muted)}
.updated-at{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);padding:0 3px}
.update-actions{display:flex;align-items:center;gap:8px}
.strategy-empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:12px}
.strategy-empty h3{font-size:13px;color:var(--ink);margin-bottom:8px}
.cabinet-builder{overflow:hidden;background:var(--bg)}
.strategy-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px 20px;background:var(--s1);border-bottom:1px solid var(--border);flex:none}
.strategy-heading h1{font-size:20px;line-height:28px;margin-top:8px}
.strategy-heading-meta{display:flex;flex-direction:column;gap:9px;align-items:flex-end}
.execution-status{font-size:11px;color:var(--muted)}
.execution-status .mono{margin-left:8px;color:var(--ink)}
.eyebrow{display:flex;gap:12px;align-items:center;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;line-height:16px;color:var(--muted)}
.read-only-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}
.read-only-label svg{width:14px;height:14px}
.builder-notice{padding:10px 28px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--focus) 5%,var(--s1));color:var(--muted);font-size:11px;flex:none}
.strategy-workspace{display:grid;grid-template-columns:minmax(0,1fr) 304px;flex:1;min-height:0}
.graph-scroll{overflow:auto;min-width:0;background-image:radial-gradient(var(--dot) 1px,transparent 1px);background-size:24px 24px;padding:28px}
.personal-graph{display:flex;flex-direction:column;gap:24px;min-width:max-content}
.graph-lane{--lc:var(--cat-gen);padding:17px 20px 22px;background:color-mix(in srgb,var(--lc) 4%,var(--bg));border:1px solid color-mix(in srgb,var(--lc) 18%,var(--border));border-radius:14px}
.dump-lane{--lc:var(--cat-filter)}
.shared-lane{--lc:var(--cat-risk)}
.graph-lane-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px;color:var(--lc)}
.graph-lane-heading h2{font-size:13px;line-height:20px}
.graph-lane-heading>.mono{font-size:10px;color:var(--muted)}
.node-chain{list-style:none;display:flex;gap:38px;align-items:stretch}
.node-chain>li{position:relative;display:flex}
.node-chain>li+li::before{content:"";position:absolute;width:38px;height:1px;background:var(--edge);left:-38px;top:50%}
.node-chain>li+li::after{content:"";position:absolute;width:5px;height:5px;border-right:1px solid var(--edge);border-top:1px solid var(--edge);transform:rotate(45deg);left:-8px;top:calc(50% - 2px)}
.graph-node{position:relative;display:flex;flex-direction:column;text-align:left;width:206px;background:var(--s1);border:1px solid var(--border);border-radius:10px;box-shadow:var(--sh-sm);transition:transform .15s,border-color .15s,box-shadow .15s}
.graph-node::before,.graph-node::after{content:"";position:absolute;top:calc(50% - 4px);width:8px;height:8px;border:1.5px solid var(--lc);background:var(--s1);border-radius:50%;z-index:1}
.graph-node::before{left:-5px}
.graph-node::after{right:-5px}
.graph-node:hover{transform:translateY(-2px);box-shadow:var(--sh-md);border-color:var(--lc)}
.graph-node[aria-pressed="true"]{border-color:var(--focus);box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--focus),var(--sh-md)}
.graph-node-head{display:flex;align-items:center;gap:7px;padding:11px 12px;min-height:43px;width:100%;border-bottom:1px solid var(--border);font-size:12px;font-weight:500}
.graph-node-head svg{width:15px;height:15px;flex:none;color:var(--lc)}
.graph-node-summary{display:flex;flex-direction:column;gap:5px;padding:12px;flex:1;width:100%;font-size:10px;line-height:16px;overflow-wrap:anywhere}
.graph-node-summary>span{display:flex;justify-content:space-between;gap:8px}
.graph-node-summary .mono{text-align:right;max-width:110px}
.inspect-hint{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;padding:0 12px 9px;width:100%}
.empty-lane{font-size:12px;color:var(--muted);min-width:300px}
.node-inspector{border-left:1px solid var(--border);background:var(--s1);padding:24px 22px;overflow:auto}
.inspector-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:18px}
.node-inspector h2{font-size:16px;line-height:24px;margin-bottom:8px}
.inspector-help{color:var(--muted);font-size:11px;line-height:19px}
#inspector-settings{margin-top:18px}
#inspector-settings>div{padding:12px 0;border-bottom:1px solid var(--border)}
#inspector-settings dt{color:var(--muted);font-size:11px;line-height:18px;margin-bottom:6px;overflow-wrap:anywhere}
#inspector-settings dd{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere}
.graph-caption{display:flex;justify-content:space-between;gap:16px;flex:none;border-top:1px solid var(--border);background:var(--s1);padding:8px 28px;font-size:10px;color:var(--muted)}
.builder-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:40px;text-align:center}
.builder-empty h2{font-size:18px}
.builder-empty p{font-size:12px;color:var(--muted)}
.node-inspector noscript h3,.node-inspector noscript h4{margin-top:20px}
.node-inspector noscript dl{font-size:11px;line-height:20px}
.node-inspector noscript dt{color:var(--muted)}
#view-design .ds-nav{min-height:53px}
.login-page{overflow:auto}
.login-shell{display:flex;flex-direction:column;min-height:100dvh;background:radial-gradient(ellipse at 20% 0,var(--aurora2),transparent 55%),var(--bg)}
.login-shell .topbar{height:56px;min-height:56px;flex:none}
.login-main{display:flex;justify-content:center;align-items:center;flex:1;padding:64px 24px 100px}
.login-card{width:100%;max-width:410px;padding:32px}
.login-card h1{font-size:23px;line-height:32px;margin:14px 0 9px}
.login-intro{color:var(--muted);font-size:12px;line-height:20px;margin-bottom:28px}
.login-form{display:flex;flex-direction:column;gap:20px}
.login-field{display:flex;flex-direction:column;gap:8px}
.login-field label{font-size:12px;font-weight:500}
.login-field input{width:100%;height:40px;border:1px solid var(--border);border-radius:6px;background:var(--s2);color:var(--ink);padding:0 12px;font:inherit;font-size:13px}
.login-field input:hover{border-color:var(--muted)}
.login-field input:focus{outline:2px solid var(--focus);outline-offset:2px}
.login-field input[aria-invalid="true"]{border-color:var(--loss)}
.login-submit{display:flex;justify-content:space-between;align-items:center;width:100%;height:40px;background:color-mix(in srgb,var(--focus) 14%,var(--s1));border:1px solid var(--focus);border-radius:6px;padding:0 14px;font-size:13px;font-weight:500;margin-top:4px;transition:background .15s}
.login-submit:hover{background:color-mix(in srgb,var(--focus) 24%,var(--s1))}
.forgot-password{display:inline-block;font-size:11px;color:var(--muted);margin-top:20px}
.forgot-password:hover{color:var(--ink);text-decoration:underline}
.login-errors{padding:11px 13px;border:1px solid color-mix(in srgb,var(--loss) 40%,var(--border));border-radius:6px;background:color-mix(in srgb,var(--loss) 8%,var(--s1));color:var(--loss);margin-bottom:20px;font-size:12px;line-height:19px}
.login-errors ul,.login-field-errors ul{list-style:none}
.login-field-errors{color:var(--loss);font-size:11px;line-height:18px}
@media(min-width:1600px){.d-cwrap{height:330px}.d-grid{grid-template-columns:minmax(0,1fr) 340px}.graph-node{width:220px}}
@media(max-width:1279px){.topbar{gap:14px;padding:0 16px}.topbar-right{gap:8px}.tab{padding:0 10px}.tab span{display:inline}.account-user{max-width:90px}.d-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.d-grid{grid-template-columns:minmax(0,1fr) 290px}.strategy-workspace{grid-template-columns:minmax(0,1fr) 280px}.graph-scroll{padding:24px}.strategy-row{gap:14px}.strategy-row .d-link{padding:0 10px}}
@media(max-width:1000px){.tab span{display:none}.account-user{display:none}.d-grid{grid-template-columns:1fr}.d-right{display:grid;grid-template-columns:1fr 1fr}.d-cwrap{height:280px}.strategy-workspace{grid-template-columns:minmax(0,1fr) 260px}.topbar .tabs{margin-right:auto}.topbar-right{margin-left:0}}
@media(max-width:680px){#app{grid-template-rows:auto minmax(0,1fr)}.topbar{min-height:100px;flex-wrap:wrap;gap:0 12px;padding:10px 12px}.logo{margin-right:auto}.logo-name{font-size:12px}.logo-mark{width:22px;height:22px}.tabs{order:3;height:38px;width:100%;margin-top:5px;gap:10px}.tab{padding:0 7px;height:38px;font-size:11px}.tab span{display:inline}.tab svg{width:13px;height:13px}.topbar-right{gap:7px}.account-mode label{display:none}.logout-form .d-tbtn{padding:0 8px;font-size:10px}.icon-btn{width:28px;height:28px}.d-wrap{padding:16px 12px 28px;gap:14px}.d-port{padding:12px}.d-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.d-metric{padding:10px;min-height:97px}.d-mv{font-size:19px}.d-ms{font-size:9px}.d-ml{font-size:9px}.d-left{gap:14px}.d-right{grid-template-columns:1fr;gap:14px}.d-grid{gap:14px}.d-chartcard{padding:16px 14px 0}.d-cwrap{height:240px}.chart-summary{gap:7px 12px}.chart-summary>.d-mut{width:100%}.strategy-row{flex-wrap:wrap;padding:14px;gap:12px}.strategy-expand{flex-basis:60%}.strategy-row .d-link{margin-left:25px}.strategy-details{padding:16px 18px}.strategy-branches{grid-template-columns:1fr;gap:0}.strategy-heading{padding:18px 16px}.strategy-heading h1{font-size:18px}.strategy-workspace{display:flex;flex-direction:column;overflow:auto}.graph-scroll{flex:0 0 55%;padding:20px;min-height:280px}.node-inspector{border-left:0;border-top:1px solid var(--border);flex:1;min-height:220px;padding:20px}.builder-notice{padding:10px 16px}.graph-caption{padding:8px 16px;font-size:9px}.graph-caption>.mono{display:none}.read-only-label{font-size:10px}.updated-at{font-size:9px}.d-tick{min-width:165px}}
