.token-unlocks{border:1px solid var(--line);border-radius:12px;padding:16px 22px;margin:24px 0;background:var(--surface);color:var(--text);min-width:0}
.token-unlocks header,.token-unlocks footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.token-unlocks h3{font-size:16px;font-weight:500;margin:0;letter-spacing:-.02em;min-width:0}
.token-unlocks .unlock-coin{color:var(--muted);font-weight:400}
.unlock-toggle{display:flex;align-items:center;gap:8px;min-height:40px;border:0;border-radius:6px;padding:0;background:none;color:var(--text);font:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}
.unlock-title{line-height:1.4}
.unlock-lock{font-size:16px;flex-shrink:0}
.unlock-chevron{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0;color:var(--muted);transition:transform 180ms ease-out}
.unlock-toggle[aria-expanded="true"] .unlock-chevron{transform:rotate(180deg)}
.unlock-toggle:hover .unlock-chevron{color:var(--text)}
.unlock-refresh{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:transparent;cursor:pointer}
.unlock-refresh svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.unlock-refresh:hover{color:var(--text);background:var(--surface-hover,var(--surface))}
.unlock-refresh:disabled{cursor:wait;opacity:.5}
.unlock-facts{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:24px;margin:12px 0 16px;font-variant-numeric:tabular-nums}
.unlock-facts>div{min-width:0}
.unlock-facts dt,.unlock-facts small{color:var(--muted);font-size:12px;line-height:1.6}
.unlock-facts dd{font-size:20px;font-weight:500;margin:5px 0 2px;overflow-wrap:anywhere;letter-spacing:-.02em}
.unlock-empty{font-size:13px;line-height:1.6;color:var(--muted);margin:10px 0}
.unlock-source{color:var(--text);text-decoration:underline;text-underline-offset:4px;font-size:12px;white-space:nowrap}
.token-unlocks footer{border-top:1px solid var(--line);padding-top:14px;align-items:start;font-size:12px}
.token-unlocks details{max-width:66ch;line-height:1.6;color:var(--muted)}
.token-unlocks summary{cursor:pointer;text-align:right;color:var(--text)}
.token-unlocks details p{margin:8px 0}.token-unlocks details ul{padding-left:18px}
.unlock-schedule[hidden]{display:none}
.unlock-schedule{border-top:1px solid var(--line);padding-top:16px;margin-bottom:16px}
.unlock-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.unlock-schedule h4{font-size:14px;font-weight:500;margin:0}
.unlock-periods{display:flex;gap:4px;flex-shrink:0}
.unlock-periods button{font:inherit;font-size:12px;color:var(--muted);background:none;border:0;border-radius:6px;min-height:36px;padding:0 10px;cursor:pointer}
.unlock-periods button:hover{color:var(--text);background:var(--bg)}
.unlock-periods button[aria-pressed="true"]{color:var(--bg);background:var(--text)}
.unlock-range,.unlock-schedule-note{color:var(--muted);font-size:12px;line-height:1.6;margin:8px 0 12px}
.unlock-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;padding:12px 0 16px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.unlock-total strong{font-size:16px;font-weight:500;color:var(--text)}
.unlock-schedule-scroll{max-height:320px;overflow:auto;scrollbar-color:var(--muted) var(--surface);overscroll-behavior:contain}
.token-unlocks .unlock-table{width:100%;table-layout:fixed;white-space:normal;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.token-unlocks .unlock-table th{position:sticky;top:0;background:var(--surface);color:var(--muted);font-size:12px;font-weight:400}
.token-unlocks .unlock-table :is(th,td){padding:11px 12px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.token-unlocks .unlock-table th:first-child{width:38%}
.token-unlocks .unlock-table th:nth-child(2){width:38%}
.token-unlocks .unlock-table th:last-child{width:24%}
.token-unlocks .unlock-table :is(th,td):first-child{text-align:left;padding-left:0}
.token-unlocks .unlock-table :is(th,td):last-child{padding-right:0}
.unlock-table small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:3px}
.unlock-schedule-scroll:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.token-unlocks :is(button,a,summary):focus-visible,.anomaly-watch :is(button,input):focus-visible{outline:2px solid var(--text);outline-offset:3px}
#anomalies-view .selected-summary[hidden]{display:none}
#anomalies-view .selected-summary{padding:20px 0;margin:0 0 20px;display:block}
.anomaly-watch-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.anomaly-watch-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 4px 4px 10px;border:1px solid var(--line);border-radius:8px;color:var(--text);font-size:13px}
.anomaly-watch-chip button{border:0;background:transparent;color:var(--muted);height:32px;width:28px;cursor:pointer;display:grid;place-items:center}
.anomaly-watch button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.anomaly-watch-plus{width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);display:grid;place-items:center;cursor:pointer}
.anomaly-watch-count{margin-left:4px;font-size:12px;color:var(--muted)}
.anomaly-watch button:disabled{opacity:.45;cursor:default}
.anomaly-watch button:hover:not(:disabled){color:var(--text);background:var(--surface)}
.anomaly-picker{border:1px solid var(--line);border-radius:12px;background:var(--surface);max-width:560px;padding:16px;margin-top:12px}
.anomaly-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.anomaly-picker-head label{font-size:14px;color:var(--text)}
.anomaly-picker-head button{height:32px;width:32px;border:0;background:none;color:var(--muted);cursor:pointer}
.anomaly-picker input{width:100%;box-sizing:border-box;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--text);font:inherit;caret-color:var(--text)}
.anomaly-picker input::placeholder{color:var(--muted)}
.anomaly-picker-results{max-height:260px;overflow:auto;margin-top:8px;scrollbar-color:var(--muted) var(--surface)}
.anomaly-picker-results button{width:100%;display:flex;gap:12px;align-items:center;padding:10px 8px;border:0;border-radius:6px;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;min-height:44px}
.anomaly-picker-results button>span:last-child{margin-left:auto;color:var(--muted)}
.anomaly-picker-results small{color:var(--muted);font-size:12px;margin-left:8px}
.anomaly-watch-message{color:var(--muted);font-size:13px;line-height:1.6;margin-top:10px}
#anomalies-view .anomaly-card{padding:18px 22px;border-radius:12px}
#anomalies-view .anomaly-coin{display:flex;align-items:center;gap:9px;font-size:15px}
#anomalies-view .anomaly-coin small{font-size:12px;margin-left:3px;color:var(--muted)}
#anomalies-view .anomaly-main{margin:14px 0;gap:24px}
#anomalies-view .anomaly-main h2{font-size:19px;line-height:1.35;letter-spacing:-.02em}
#anomalies-view .anomaly-main p{font-size:12px;margin-top:5px;line-height:1.6;max-width:70ch}
#anomalies-view .anomaly-strength-values{gap:28px}
#anomalies-view .anomaly-strength-values dd,#anomalies-view .anomaly-value{font-size:26px;letter-spacing:-.02em}
#anomalies-view .anomaly-strength-values>div{gap:3px}
#anomalies-view .anomaly-weakness-card .anomaly-strength-values dd{color:var(--red)}
#anomalies-view .anomaly-card-bottom{padding-top:10px}
#anomalies-view .anomaly-results{gap:12px}
#anomalies-view .anomaly-logo,#anomalies-view .anomaly-logo img{width:24px;height:24px;flex-shrink:0}
#anomalies-view .anomaly-logo .asset-logo-fallback{font-size:8px}
#anomalies-view .anomaly-locked{min-height:240px}
@media(max-width:700px){
 .token-unlocks{padding:16px;margin:18px 0}.unlock-facts{grid-template-columns:1fr 1fr;gap:16px}.unlock-facts>div:first-child{grid-column:1/-1}.unlock-facts dd{font-size:18px}.token-unlocks footer{flex-wrap:wrap}.token-unlocks summary{text-align:left}
 .unlock-schedule-head{align-items:start;flex-direction:column}.unlock-periods button{min-height:44px;padding:0 14px}.token-unlocks .unlock-table :is(th,td){padding:10px 6px}.token-unlocks .unlock-table{font-size:12px}.unlock-refresh{min-height:44px;width:44px}.unlock-toggle{min-height:44px}.unlock-schedule-scroll{max-height:360px}
 #anomalies-view .anomaly-card{padding:16px}#anomalies-view .anomaly-main{flex-direction:column;align-items:start;gap:14px}#anomalies-view .anomaly-strength-values{width:100%;gap:20px}#anomalies-view .anomaly-strength-values>div{flex:1;text-align:left}#anomalies-view .anomaly-card-top{gap:10px}#anomalies-view .anomaly-time{font-size:11px}.anomaly-picker-results small{display:block;margin-left:0}
}

/* Market context starts at the top of the chart sidebar. */
.workspace-aside{display:flex;flex-direction:column}
.workspace-aside>.market-mood-pair:first-child{border-top:0;padding-top:20px}

/* Each anomaly is one native link to its instrument and venue. */
#anomalies-view a.anomaly-card{display:block;color:var(--text);text-decoration:none;cursor:pointer;transition:border-color 160ms ease-out}
#anomalies-view a.anomaly-card:hover{border-color:var(--muted)}
#anomalies-view a.anomaly-card:focus-visible{outline:2px solid var(--text);outline-offset:3px;border-color:var(--text)}
#anomalies-view a.anomaly-card:hover .anomaly-open,#anomalies-view a.anomaly-card:focus-visible .anomaly-open{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){#anomalies-view .anomaly-open{display:block;margin-top:9px}}
@media(prefers-reduced-motion:reduce){#anomalies-view a.anomaly-card{transition:none}}
@media(prefers-reduced-motion:reduce){.unlock-chevron{transition:none}}
