@import url("/fonts/font.css");
:root {
  color-scheme: light;
  --ink: #182923; --muted: #52635c; --line: #dce4df; --bg: #f3f6f4;
  --green: #105941; --pale: #e8f4ec; --red: #943c32; --amber: #79500e;
  --panel-font: "Montserrat", "Segoe UI", sans-serif;
  --font-sans: var(--panel-font);
  --text-body: 1rem;
  --text-ui: .875rem;
  --text-caption: .8125rem;
  --text-small: .75rem;
  --text-heading: 1.375rem;
  font: 450 100%/1.5 var(--panel-font);
}
* { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--panel-font) }
button, input, select, textarea { font: inherit }
input::placeholder, textarea::placeholder { font-family:inherit; font-weight:400; color:var(--muted); opacity:1 }
::selection { color:#103e2c; background:#d4ecd8 }
button { cursor: pointer; color: inherit }
button:focus-visible, input:focus-visible { outline: 3px solid #68a941; outline-offset: -3px }
h1, h2, h3, p { margin: 0 }
.top { color: #fff; background: #1c211f }
.top-inner, body > main:not(.login-shell) { width:100%; margin-inline:auto; padding-inline:clamp(12px,1vw,16px) }
.top-inner, .top-info, .brand, .title-row, .list-heading, .row-title, .symbol-title { display: flex; align-items: center }
.top-inner { height: 62px; justify-content: space-between }
.brand { gap: 14px; font-size: 24px; font-weight: 720; letter-spacing: -.7px }
.mark { display: flex; align-items: end; gap: 3px; transform: skew(-14deg) }
.mark i { width: 7px; background: #b6f165; height: 10px }
.mark i:nth-child(2) { height: 17px }
.mark i:nth-child(3) { height: 24px }
.top-info { gap:20px; font-size:var(--text-ui); line-height:1.45; font-weight:500 }
.template-link { color: #d3f0b2; text-underline-offset: 3px; white-space: nowrap }
.template-link:hover { color: #fff }
.template-link:focus-visible { outline: 2px solid #b6f165; outline-offset: 4px }
#mode { font-weight: 650 }
#account-open,#mode { display:inline-flex; align-items:center; min-width:0 }
#account-open { gap:8px; max-width:100% }
#mode .dot,.current-account-status,.caret-icon { flex:none }
.current-account-name { display:block; min-width:0; max-width:clamp(74px,18vw,270px); white-space:nowrap; text-overflow:ellipsis; overflow:hidden }
.current-account-status { white-space:pre }
.caret-icon { width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-1px) rotate(45deg) }
.out-arrow { display:inline-block; position:relative; flex:none; width:.64em; height:.64em; border:solid currentColor; border-width:1.4px 1.4px 0 0; vertical-align:.1em; margin-inline-start:.35em }
.out-arrow::after { content:""; position:absolute; top:-.4px; right:0; width:124%; border-top:1.4px solid currentColor; transform-origin:right; transform:rotate(-45deg) }
.account-trigger { background: transparent; color: white; border: 1px solid #5b655e; padding: 5px 10px; border-radius: 6px }
dialog { padding: 23px; width: min(440px,calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 12px; color: var(--ink) }
dialog::backdrop { background: #18251bb0 }
.account-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px }
dialog button, dialog select, dialog input { font-family:inherit; border:1px solid var(--line); background:white; border-radius:5px; padding:8px 11px }
dialog button { font-size:var(--text-ui); line-height:1.45; font-weight:550 }
dialog input,dialog select { min-width:0; font-size:var(--text-body); line-height:1.45; font-weight:450 }
dialog label { display:grid; gap:4px; font-size:14px; font-weight:600 }
dialog form { display:grid; gap:12px; margin:18px 0 7px }
dialog button.primary { background:var(--green); color:white; font-weight:600 }
dialog button.live { background:#983b30 }
dialog button:disabled { opacity:.6; cursor:wait }
#account-paper { width:100% }
#account-close { border:0; font-size:22px; line-height:1 }
#account-report { margin-top:10px; font-size:14px; overflow-wrap:anywhere }
#account-dialog { max-height:calc(100dvh - 24px); overflow:auto }
#account-title { min-width:0; overflow-wrap:anywhere }
#account-dialog [hidden] { display:none !important }
.account-profiles { margin-top:16px }
.account-profiles h3,#account-form h3 { margin:0; font-size:1rem }
.account-profiles-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:7px; margin-bottom:8px }
.account-profiles-heading button { padding:5px 9px }
#account-profiles-list { display:grid; gap:4px; max-height:13rem; overflow-y:auto }
#account-dialog .account-profile { display:flex; align-items:center; gap:9px; padding:7px 9px; border:1px solid var(--line); border-radius:6px; cursor:pointer }
.account-profile:has(input:checked) { border-color:var(--green); background:var(--pale) }
.account-profile input { accent-color:var(--green); margin:0; flex:none }
.account-profile-info { flex:1; min-width:0; overflow-wrap:anywhere }
.account-profile-info strong,.account-profile-info small { display:block }
.account-profile-info small { color:var(--muted); font-weight:normal }
.account-choice { display:grid; gap:5px; margin-top:9px }
.account-choice #account-remove { justify-self:start; background:none; border:0; color:var(--red); padding:4px 0 }
.account-confirm { margin-top:9px; border:1px solid var(--line); border-radius:6px; padding:10px; overflow-wrap:anywhere }
.account-confirm div { display:flex; gap:6px; margin-top:7px }
.account-confirm button.live { color:white }
#account-form { border-top:1px solid var(--line); padding-top:14px }
#account-form input,#account-form select { min-width:0; width:100% }
#clock { border-left: 1px solid #636b66; padding-left: 20px; color: #e0e5e1 }
@media(max-width:450px) { #clock { display:none } }
@media(max-width:450px) {
  header.top .top-inner { height: auto; min-height: 53px; padding-block: 9px; gap: 5px 12px; flex-wrap: wrap }
  .top-info { margin-left: auto; flex-wrap: wrap }
}
.mono, code, .number, time, kbd, pre { font-family: var(--panel-font); font-variant-numeric: tabular-nums }
.title-row { padding: 31px 0 24px; justify-content: space-between; gap: 16px }
h1 { font-size:clamp(1.875rem,2.55vw,2.5rem); line-height:1.18; font-weight:680; letter-spacing:-.025em; text-wrap:balance }
h2 { font-size:var(--text-heading); letter-spacing:-.018em; line-height:1.27; font-weight:650 }
.title-row p, footer, .caption { color:var(--muted); font-size:var(--text-caption); line-height:1.5 }
.dot { display: inline-block; vertical-align: 1px; background: #8d9991; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px }
.dot.good { background: #5da039 }
.dot.bad { background: #cc6254 }
.dot.warn { background: #c49335 }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px }
.card, .metric, .errors { border: 1px solid var(--line); border-radius: 10px; background: white }
.metric { min-width: 0; padding: 16px 19px }
.metric-label { color:var(--muted); font-size:var(--text-ui); line-height:1.45; font-weight:500 }
.metric strong { display:block; font-size:2rem; line-height:1.22; font-weight:650; letter-spacing:-.02em; font-variant-numeric:tabular-nums; margin-top:3px; overflow-wrap:anywhere }
.metric strong.feed { font-size:var(--text-body); line-height:1.4; letter-spacing:0; margin-top:8px; font-weight:600 }
.workspace { display: grid; grid-template-columns: clamp(225px,23vw,320px) minmax(0,1fr); gap: 14px; align-items: stretch }
.list-heading { gap: 10px; padding: 20px 19px 15px }
.count { background: #edf0ed; font-size: 13px; font-weight: 600; border-radius: 5px; padding: 1px 7px }
.filter { border-block: 1px solid var(--line); padding: 10px 15px }
.filter input { width:100%; padding:7px 10px; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:#f8faf8; font-size:var(--text-body); line-height:1.45 }
#list { padding: 8px }
.signal { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px; padding: 12px; margin: 2px 0; overflow-wrap: anywhere }
.signal:hover { background: #f5f7f4 }
.signal[aria-current=true] { background: var(--pale); border-color: #cee3c5 }
.row-title { gap: 7px; flex-wrap: wrap }
.signal strong { font-size:1.0625rem; font-weight:650; line-height:1.35; letter-spacing:-.015em }
.signal small { display:block; color:var(--muted); font-size:var(--text-caption); line-height:1.45; margin-top:3px }
.pill { display:inline-block; font-size:var(--text-small); line-height:1.35; font-weight:600; border-radius:5px; padding:3px 7px; background:#edf0ed; color:var(--muted); max-width:100%; overflow-wrap:anywhere }
.short, .bad-tag { background: #fae7e2; color: var(--red) }
.long, .good-tag { background: #e6f4dc; color: var(--green) }
.warn-tag { background: #f9f0d7; color: var(--amber) }
.detail { min-height: 442px; padding: clamp(16px,2vw,29px); min-width: 0 }
.detail { container: signal-detail / inline-size }
.detail-head { display:flex; align-items:center; gap:clamp(8px,1vw,18px); white-space:nowrap; min-width:0 }
.symbol-title { gap: 10px; flex-wrap: wrap }
.symbol-title h2 { overflow-wrap:anywhere; max-width:100% }
.signal-id, .reason, footer code, .evidence { overflow-wrap: anywhere }
.signal-id { color: var(--muted); font-size: 12px; margin-top: 3px }
.quote { display: flex; flex-direction: column; align-items: flex-end }
.quote strong { font-size:var(--text-heading); letter-spacing:-.015em }
.reason { margin: 17px 0 19px }
.state-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px }
.tabs { display: flex; border-bottom: 2px solid var(--green); gap: 3px; margin-top: 15px }
.tabs button { border: 0; border-radius: 6px 6px 0 0; background: #f0f3f0; padding: 8px 17px; font-size: 14px }
.tabs button[aria-pressed=true] { background: var(--green); color: white; font-weight: 600 }
.grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(82px,.55fr) minmax(0,1.35fr); gap: 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
.scenario { padding-top: 18px; font-variant-numeric: tabular-nums }
.scenario-heading { font-size:1.125rem; line-height:1.35; font-weight:650; letter-spacing:-.012em }
.scenario-intro { color: var(--muted); margin: 4px 0 12px }
.scenario-steps { counter-reset: stage; padding: 0; margin: 4px 0 12px; list-style: none }
.scenario-step { counter-increment: stage; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: start; gap: 0 12px; padding: 15px 0; border-bottom: 1px solid var(--line) }
.scenario-step::before { content: counter(stage); display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #c5cdc7; color: var(--muted); border-radius: 50%; font-size: 13px; font-weight: 650 }
.scenario-step[data-phase=done]::before { color: var(--green); border-color: #9cbe99 }
.scenario-step[data-phase=current]::before { color: white; border-color: var(--green); background: var(--green) }
.step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px }
.step-head h4 { margin:0; font-size:var(--text-body); line-height:1.45; font-weight:650 }
.step-head .pill { font-size:var(--text-small); line-height:1.35 }
.condition-text,.step-fact { max-width: 74ch; overflow-wrap: anywhere }
.condition-text { margin-top:5px; font-size:var(--text-body); line-height:1.55; text-wrap:pretty }
.step-fact { font-size:var(--text-caption); color:var(--muted); margin-top:5px }
.level-link { align-self: start; flex-shrink: 0; padding: 3px 7px; color: var(--green); border: 1px solid #bccfc1; background: white; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.6 }
.level-link:hover,.level-link[aria-pressed=true] { color: white; background: var(--green); border-color: var(--green) }
.scenario-section { padding: 6px 0 12px }
.plan-line { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 16px; padding: 6px 0; font-size: 14px; overflow-wrap: anywhere }
.plan-line strong { margin-right: 9px; font-weight: 650 }
.plan-line span { color: var(--muted) }
.scenario-disclosure { border-top: 1px solid var(--line); padding-block: 8px }
.scenario-disclosure > summary { cursor: pointer; color: var(--green); font-size: 14px; font-weight: 600; width: fit-content; padding: 3px 0 }
.scenario .rule > .level-link { margin: 6px 10px }
@media(max-width:820px) {
  .scenario-step { grid-template-columns: 24px minmax(0,1fr); gap: 0 9px }
  .scenario-step > .level-link { grid-column: 2; justify-self: start; margin-top: 8px }
  .plan-line { flex-wrap: wrap }
}
.grid.header { color: var(--muted); font-size: 12px; font-weight: 600; padding-top: 17px }
.grid .pill { justify-self: start }
.grid .evidence { color: var(--muted); font-size: 14px }
.kvline { display: grid; grid-template-columns: minmax(120px,1fr) minmax(0,2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
.kvline > :first-child { color: var(--muted) }
.event { display: grid; grid-template-columns: auto 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere }
time { color: var(--muted); font-size: 12px }
.terms { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere }
.terms b { color: var(--ink); margin-left: 4px }
.chartbox { margin: 16px 0 18px; border-block: 1px solid var(--line); padding: 12px 0 8px; min-width: 0 }
.chart-title, .chart-levels { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; justify-content: space-between }
.chart-title h3 { font-size:var(--text-body); line-height:1.4; font-weight:650; letter-spacing:-.012em }
.chart-levels { justify-content:flex-start; font-size:var(--text-caption); line-height:1.45; color:var(--muted); margin-top:6px }
.chart-levels label { cursor: pointer; display: inline-flex; gap: 5px; align-items: center }
.chart-levels input { margin: 0; accent-color: var(--green) }
.chart-tools { display:flex; align-items:center; flex-wrap:wrap; gap:5px 14px }
.chart-live-info { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 11px; color:var(--muted); font-size:12px; margin:4px 0 }
.chart-stream-state { font-weight:600 }
.chart-stream-state::before { content:""; display:inline-block; width:7px; height:7px; margin-right:5px; background:#b68a32; border-radius:50% }
.chart-stream-state[data-state=live]::before { background:#409453 }
.chart-stream-state[data-state=offline]::before,.chart-stream-state[data-state=stale]::before { background:#c25f4f }
.chart-external { font-size:13px; font-weight:600; color:var(--green); text-underline-offset:3px }
.chart-stage { display:grid; grid-template-columns:clamp(120px,24%,205px) minmax(0,1fr); position:relative; margin:9px 0; border-block:1px solid var(--line); background:white; min-width:0 }
.chart-stage[hidden] { display:none }
.chart-stage.without-levels { grid-template-columns:0 minmax(0,1fr) }
.chart-labels { position:relative; overflow:hidden; background:#fbfcfb; pointer-events:none }
.chart-host { position:relative; min-width:0; min-height:0; font-size:var(--text-small) }
.level-leaders { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; fill:none; stroke-width:1 }
.level-tag { position:absolute; box-sizing:border-box; width:calc(100% - 23px); padding:2px 6px; border-left:3px solid var(--level-color); background:#f3f5f2; border-radius:3px; color:var(--ink); font-size:var(--text-small); line-height:1.24; overflow-wrap:anywhere }
.level-tag strong { font-weight:650; font-size:var(--text-caption); line-height:1.24; font-variant-numeric:tabular-nums; color:var(--level-color); margin-right:5px; white-space:nowrap }
.level-tag[hidden] { display:none }
.chart-credit { display:inline-block; margin-top:6px; font-size:11px; color:var(--muted); text-underline-offset:2px }
.chart-level-details { margin-top:7px; color:var(--muted); font-size:12px }
.chart-level-details summary { width:fit-content; cursor:pointer }
@media(max-width:600px) {
  .chart-stage { grid-template-columns:clamp(96px,32%,130px) minmax(0,1fr) }
  .level-tag { padding:2px 3px; width:calc(100% - 16px); font-size:.6875rem }
  .level-tag strong { display:block; font-size:var(--text-small); margin:0 }
  .chart-external { font-size:12px }
}
.chart-note { min-height: 20px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.chart-legend { padding:0; margin:9px 0 0; list-style:none; max-height:172px; overflow:auto; scrollbar-width:thin }
.chart-legend li { display:grid; grid-template-columns: minmax(65px,auto) minmax(0,1fr); align-items:baseline; gap:9px; border-top:1px solid var(--line); padding:4px 2px; font-size:12px; color:var(--muted); overflow-wrap:anywhere }
.chart-legend strong { font-family:var(--panel-font); font-variant-numeric:tabular-nums; color:var(--ink); border-left:2px solid; padding-left:6px; white-space:nowrap }
.signal-files { display:flex; flex-wrap:wrap; gap:12px; font-size:13px }
.signal-files a { color:var(--green); text-underline-offset:3px }
.rule summary { cursor: pointer; list-style: none }
.rule summary::-webkit-details-marker { display:none }
.rule summary strong::before { content:"› "; color: var(--green) }
.rule[open] summary strong::before { content:"⌄ " }
.clause { background: #f5f7f5; border-bottom: 1px solid white; padding: 7px 11px; overflow-wrap: anywhere; font-size: 13px }
.rule-meta { padding: 7px 11px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.empty { padding: 20px 9px; color: var(--muted); font-size: 14px }
.errors { margin-bottom: 16px; border-color: #e5c7be; padding: 12px 18px; background: #fff5f2; color: var(--red); overflow-wrap: anywhere }
.errors summary { cursor: pointer; font-weight: 600 }
.errors ul { margin: 8px 0 0; padding-left: 20px }
footer { display: flex; gap: 8px 14px; flex-wrap: wrap; padding: 16px 0 25px; border-top: 1px solid var(--line); margin-top: 23px }
footer code { color: var(--ink); min-width: 0 }
@media(max-width:850px) { .workspace { grid-template-columns: minmax(190px,.75fr) minmax(0,1.85fr) } .grid { gap: 8px } }
@media(max-width:690px) { .workspace { grid-template-columns: minmax(0,1fr) } .title-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 0 15px } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px } .metric { padding: 10px 13px } .metric strong { font-size: 25px } .metric strong.feed { margin-top: 5px; font-size: 14px } .top-inner { height: 53px } .brand { font-size: 20px } .top-info { gap: 8px; font-size: 12px } #clock { padding-left: 8px } #list { max-height: 190px; overflow-y: auto } .detail { min-height: 240px } .tabs button { padding: 8px 13px } .grid { grid-template-columns: minmax(0,1fr) auto } .grid .evidence { grid-column: 1/-1 } .grid.header { display: none } .quote { align-items: flex-start } .event { grid-template-columns: minmax(0,1fr); gap: 3px } }
.chart-selection { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 15px; padding:7px 10px; margin-top:8px; background:#e9f4e7; color:#154631; border-left:3px solid #145b40; border-radius:4px; scroll-margin-top:12px }
.chart-selection[hidden] { display:none }
.chart-selection:focus-visible { outline:2px solid #376449; outline-offset:2px }
.chart-selection-text { display:flex; align-items:baseline; flex-wrap:wrap; gap:1px 9px; font-size:14px; min-width:0; overflow-wrap:anywhere }
.chart-selection-info { font-size:12px; font-variant-numeric:tabular-nums }
.chart-selection-actions { display:flex; align-items:center; flex-wrap:wrap; gap:0 10px }
.chart-selection-actions button { padding:4px 1px; border:0; background:transparent; color:#19533a; font-size:12px; text-decoration:underline; text-underline-offset:2px }
.level-tag.level-selected { background:#145b40; border-color:#092b1b; color:white; font-weight:650 }
.level-tag.level-selected strong { color:white }
.chart-legend .level-selected { background:#e9f4e7; color:#154631 }

.top { background:#152920 }
.mark i { background:#b9ed91 }
.top-info { gap:clamp(8px,1.3vw,20px) }
.sign-out { padding:5px 0 5px 8px; color:#e1e9e3; background:none; border:0; font-size:13px }
.sign-out:hover,.sign-out:focus-visible { color:white; text-decoration:underline }
.card,.metric { border-radius:12px }
.signal-id,.chart-live-info,.terms,.step-fact { line-height:1.5 }
.metrics { gap:10px }
.metric .feed { letter-spacing:0 }
.list-heading { align-items:center }
.workspace > aside { align-self:start }
#file-actions { padding:0 16px }
#file-actions .sf-files { margin:0 0 11px }
.detail > .terms { margin:4px 0 10px }
.signal-analysis,.signal-inspection { min-width:0 }
@media(min-width:1780px) {
  .signal-analysis { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(440px,.85fr); gap:clamp(18px,1.5vw,36px); align-items:start }
  .signal-inspection { padding-left:clamp(14px,1vw,22px); border-left:1px solid var(--line); margin-block:16px }
  .signal-inspection .tabs { margin-top:0 }
}
.filter { border-bottom:0 }
.reason:empty { display:none }
.state-line { margin-bottom:12px }
.reason:not(:empty) { font-size:14px; color:var(--muted); margin:4px 0 12px }
.signal-files { align-items:center; gap:5px 16px }
.signal-files a { text-decoration:none }
.signal-files a:hover { text-decoration:underline }
.remove-signal { color:var(--red); border:0; background:none; font-size:13px; font-weight:550; margin-left:auto; padding:4px 0 }
.remove-signal:hover { text-decoration:underline }
.remove-signal:disabled { color:var(--muted); opacity:.65; text-decoration:none; cursor:default }
.detail-head .symbol-title { flex-wrap:nowrap; gap:7px; min-width:0 }
.detail-head .symbol-title h2 { overflow:hidden; text-overflow:ellipsis; font-size:clamp(1.25rem,2vw,1.75rem); line-height:1.3; font-weight:670; letter-spacing:-.02em }
.detail-head .pill { white-space:nowrap }
.summary-quote { display:inline-flex; gap:5px; align-items:baseline; margin-left:auto; font-variant-numeric:tabular-nums }
.summary-quote strong { font-size:clamp(1rem,1.4vw,1.3125rem); line-height:1.35; font-weight:650; letter-spacing:-.012em }
.summary-quote span { color:var(--muted); font-size:12px }
.detail-head .terms { flex-wrap:nowrap; margin:0; gap:12px; font-size:13px }
.signal-actions { position:relative; flex:none }
.action-trigger { display:grid; place-items:center; list-style:none; width:36px; height:36px; border-radius:7px; color:var(--muted); font-size:13px; letter-spacing:2px; padding-left:2px; cursor:pointer }
.action-trigger::-webkit-details-marker { display:none }
.action-trigger:hover,.signal-actions[open] .action-trigger { color:var(--green); background:var(--pale) }
.action-trigger:focus-visible { outline:2px solid var(--green); outline-offset:-2px }
.signal-actions .signal-files { position:absolute; z-index:12; top:calc(100% + 3px); right:0; width:max-content; min-width:174px; max-width:76vw; display:grid; gap:0; padding:5px; background:white; border:1px solid var(--line); border-radius:9px; box-shadow:0 6px 24px #1529201c }
.signal-actions .signal-files > :is(a,button) { width:100%; margin:0; padding:8px 11px; text-align:left; font:550 13px/1.5 var(--panel-font); border-radius:5px; text-decoration:none }
.signal-actions .signal-files > :is(a,button):is(:hover,:focus-visible) { background:var(--bg) }
.compact-facts { display:none }
@container signal-detail (max-width:780px) {
  .detail-head > .terms { display:none }
  .compact-facts { display:block; padding:7px 11px 9px; border-bottom:1px solid var(--line); margin-bottom:3px }
  .compact-facts > strong { display:none }
  .compact-facts .terms { display:grid; gap:3px }
}
@container signal-detail (max-width:510px) {
  .summary-state,.quote-label { display:none }
  .compact-facts > strong { display:block; margin-bottom:3px; white-space:normal; font-size:12px }
  .detail-head { gap:6px }
}
.chart-selection { border-left:1px solid #90bca4 }
.tabs button { font-weight:550; line-height:1.55 }
.login-page { min-height:100vh; display:grid; place-items:center; padding:24px }
.login-shell { width:min(100%,390px); padding:0; margin:0 }
.login-brand { display:flex; align-items:center; gap:12px; color:var(--green); font-size:19px; font-weight:680; margin-bottom:17px }
.login-brand .mark i { background:var(--green) }
.login-form { background:white; border:1px solid var(--line); padding:clamp(22px,6vw,32px); border-radius:12px }
.login-form h1 { font-size:1.5625rem; letter-spacing:-.02em; margin:0 0 23px }
.login-form label { display:block; font-size:14px; font-weight:600; margin-bottom:5px }
.login-form input { width:100%; border:1px solid #aebfb4; border-radius:6px; padding:9px 11px; background:white }
.login-form button { width:100%; color:white; background:var(--green); font-weight:600; border:0; border-radius:6px; padding:10px 12px; margin-top:17px }
.login-form button:disabled { opacity:.65; cursor:wait }
#login-error:not(:empty) { margin-top:9px; color:var(--red); font-size:13px }
@media(max-width:600px) {
  .template-link,.account-trigger,.sign-out { font-size:12px }
  .top-inner { gap:5px 12px; flex-wrap:wrap; height:auto; min-height:55px; padding-block:8px }
  .top-info { flex-wrap:wrap }
}
.wallet-summary { grid-template-columns: repeat(4,minmax(0,1fr)) minmax(175px,1.3fr) }
.signal-metrics { display:contents }
.wallet-metric { display:block; text-align:left; font:inherit; color:var(--ink); cursor:pointer }
.wallet-metric:hover,.wallet-metric:focus-visible { border-color:var(--green) }
.wallet-metric .metric-label { display:flex; justify-content:space-between; gap:5px }
.wallet-metric .metric-label span { color:var(--green) }
.wallet-metric strong { font-size:clamp(17px,2.1vw,30px); font-variant-numeric:tabular-nums }
.wallet-metric strong small { font-size:12px; font-weight:550; letter-spacing:0; color:var(--muted) }
.wallet-detail { display:block; margin:0; font-size:12px; line-height:1.45; color:var(--muted) }
.wallet-stale .wallet-detail,.wallet-detail.wallet-stale { color:#865a17 }
.account-wallet { margin:15px 0; padding:12px 0; border-block:1px solid var(--line) }
.account-wallet h3 { font-size:15px; font-weight:660; margin:0 0 7px }
.account-wallet dl:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:baseline; gap:6px 12px; margin:0 0 9px }
.account-wallet dt,.account-wallet dd { margin:0; font-size:13px }
.account-wallet dd { text-align:right; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
@media(max-width:850px) and (min-width:691px) {
  .wallet-summary { grid-template-columns:repeat(4,minmax(0,1fr)) minmax(145px,1.25fr) }
  .wallet-metric { padding-inline:12px }
}
@media(max-width:690px) {
  .wallet-summary { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .wallet-metric { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:12px; align-items:center }
  .wallet-metric .metric-label { justify-content:flex-start }
  .wallet-metric strong { grid-column:2; grid-row:1/3; text-align:right; font-size:22px }
  .wallet-metric .wallet-detail { grid-column:1 }
}
