/* User-facing market workspaces only. No admin or global business styles. */
.terminal-page .tm-workspace{--tm-up:#e84141;--tm-down:#159c67;--tm-soft:color-mix(in srgb,var(--tu-accent,#ff6b2b) 8%,var(--tu-surface,#fff));color:var(--tu-text,#111827);font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;min-width:0;padding:0 0 14px}
.terminal-page .tm-workspace *{box-sizing:border-box}
.terminal-page .tm-heading{margin:0;font-size:32px;line-height:1.2;font-weight:750;letter-spacing:-.8px}
.terminal-page .tm-subheading{margin:9px 0 0;font-size:18px;color:var(--tu-text,#111827);font-weight:550}
.terminal-page .tm-intro{margin:8px 0 0;color:var(--tu-muted,#6b7280);font-size:14px}
.terminal-page .tm-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0 12px;min-width:0}
.terminal-page .tm-search{display:flex;align-items:center;gap:9px;min-width:200px;max-width:390px;flex:1;border:1px solid var(--tu-border,#e7ebef);border-radius:7px;background:var(--tu-surface,#fff);padding:0 12px;height:42px;color:var(--tu-muted,#6b7280)}
.terminal-page .tm-search input{border:0;outline:0;padding:0!important;margin:0!important;min-width:0;width:100%;box-shadow:none!important;background:transparent!important;color:var(--tu-text,#111827);font:14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.terminal-page .tm-search:focus-within{border-color:var(--tu-accent,#ff6b2b);outline:2px solid color-mix(in srgb,var(--tu-accent,#ff6b2b) 15%,transparent)}
.terminal-page .tm-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid var(--tu-border,#e7ebef);border-radius:6px;background:var(--tu-surface,#fff);color:var(--tu-text,#111827);font:500 13px/1.45 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer;white-space:nowrap;box-shadow:none}
.terminal-page .tm-button:hover{border-color:var(--tu-accent,#ff6b2b);color:var(--tu-accent,#ff6b2b)}
.terminal-page .tm-button:disabled{opacity:.45;cursor:not-allowed}
.terminal-page .tm-button.tm-primary{background:var(--tu-accent,#ff6b2b);border-color:var(--tu-accent,#ff6b2b);color:white}
.terminal-page .tm-button:focus-visible,.terminal-page .tm-icon-button:focus-visible,.terminal-page .tm-tab:focus-visible,.terminal-page .tm-period:focus-visible,.terminal-page .tm-row-title:focus-visible,.terminal-page .tm-chart:focus-visible,.terminal-page .tm-table-scroll:focus-visible{outline:2px solid var(--tu-accent,#ff6b2b);outline-offset:3px}
.terminal-page .tm-icon{display:inline-block;flex:0 0 auto;width:17px;height:17px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.terminal-page .tm-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:5px;background:transparent;color:var(--tu-muted,#6b7280);cursor:pointer;padding:8px}
.terminal-page .tm-icon-button:hover,.terminal-page .tm-icon-button[aria-pressed=true]{background:var(--tm-soft);color:var(--tu-accent,#ff6b2b)}
.terminal-page .tm-tabs{display:flex;align-items:center;gap:3px;min-width:0;overflow:auto;scrollbar-width:thin;padding-bottom:3px;margin:8px 0 11px}
.terminal-page .tm-tab{flex:0 0 auto;position:relative;padding:9px 14px;min-height:40px;border:1px solid transparent;border-radius:5px;background:transparent;font:500 14px/1.45 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:var(--tu-muted,#6b7280);cursor:pointer;white-space:nowrap}
.terminal-page .tm-tab[aria-selected=true]{background:var(--tm-soft);color:var(--tu-accent,#ff6b2b)}
.terminal-page .tm-tab[aria-selected=true]::after{content:"";position:absolute;bottom:0;left:14px;right:14px;height:2px;background:var(--tu-accent,#ff6b2b);border-radius:2px}
.terminal-page .tm-prediction-tabs .tm-tab{border-color:var(--tu-border,#e7ebef);font-size:13px;margin-right:5px;padding:8px 13px}
.terminal-page .tm-prediction-tabs .tm-tab[aria-selected=true]{background:var(--tu-accent,#ff6b2b);border-color:var(--tu-accent,#ff6b2b);color:#fff}
.terminal-page .tm-prediction-tabs .tm-tab[aria-selected=true]::after{display:none}
.terminal-page .tm-overview{display:grid;grid-template-columns:minmax(215px,.85fr) minmax(330px,1.6fr) minmax(230px,1fr);gap:12px;margin:0 0 12px}
.terminal-page .tm-panel{background:var(--tu-surface,#fff);border:1px solid var(--tu-border,#e7ebef);border-radius:7px;padding:17px;min-width:0}
.terminal-page .tm-panel-title{font-size:16px;line-height:1.4;font-weight:650;margin:0 0 12px;display:flex;align-items:center;gap:7px}
.terminal-page .tm-muted{color:var(--tu-muted,#6b7280)}
.terminal-page .tm-tiny{font-size:11px;line-height:1.55}
.terminal-page .tm-update{font-size:11px;color:var(--tu-muted,#6b7280);margin-top:7px;overflow-wrap:anywhere}
.terminal-page .tm-gauge{height:155px;position:relative;max-width:255px;margin:0 auto 5px}
.terminal-page .tm-gauge svg{width:100%;height:100%;display:block}
.terminal-page .tm-gauge-value{position:absolute;top:69px;left:0;right:0;text-align:center;font:750 36px/1.1 -apple-system,BlinkMacSystemFont,sans-serif;font-variant-numeric:tabular-nums}
.terminal-page .tm-gauge-status{margin:4px auto 0;max-width:max-content;padding:3px 12px;border-radius:20px;color:var(--tu-accent,#ff6b2b);background:var(--tm-soft);font:500 12px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.terminal-page .tm-gauge-labels{position:absolute;bottom:0;left:2px;right:2px;display:flex;justify-content:space-between;font-size:10px;color:var(--tu-muted,#6b7280)}
.terminal-page .tm-chart-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:9px;flex-wrap:wrap}
.terminal-page .tm-chart-head .tm-panel-title{margin:0;font-size:15px}
.terminal-page .tm-periods{display:flex;gap:0;border:1px solid var(--tu-border,#e7ebef);border-radius:5px;max-width:100%;overflow:auto}
.terminal-page .tm-period{border:0;border-right:1px solid var(--tu-border,#e7ebef);border-radius:0;padding:5px 8px;min-height:28px;font:500 11px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:var(--tu-muted,#6b7280);background:transparent;cursor:pointer;white-space:nowrap}
.terminal-page .tm-period:last-child{border-right:0}
.terminal-page .tm-period[aria-pressed=true]{background:var(--tm-soft);color:var(--tu-accent,#ff6b2b)}
.terminal-page .tm-chart{position:relative;min-width:0;touch-action:pan-y;outline:0}
.terminal-page .tm-chart svg{display:block;width:100%;height:190px;overflow:visible}
.terminal-page .tm-chart-grid{stroke:var(--tu-border,#e7ebef);stroke-width:1}
.terminal-page .tm-chart-label{fill:var(--tu-muted,#6b7280);font:11px -apple-system,BlinkMacSystemFont,sans-serif}
.terminal-page .tm-chart-line{fill:none;stroke:var(--tu-accent,#ff6b2b);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.terminal-page .tm-chart-area{fill:color-mix(in srgb,var(--tu-accent,#ff6b2b) 8%,transparent)}
.terminal-page .tm-chart-crosshair{stroke:var(--tu-accent,#ff6b2b);stroke-width:1;stroke-dasharray:3 3;opacity:.7}
.terminal-page .tm-chart-marker{fill:var(--tu-surface,#fff);stroke:var(--tu-accent,#ff6b2b);stroke-width:2}
.terminal-page .tm-chart-tooltip{position:absolute;top:5px;right:3px;font-size:11px;color:var(--tu-text,#111827);background:var(--tu-surface,#fff);border:1px solid var(--tu-border,#e7ebef);border-radius:4px;padding:4px 7px;pointer-events:none;max-width:calc(100% - 6px)}
.terminal-page .tm-empty-chart{min-height:190px;display:flex;align-items:center;justify-content:center;color:var(--tu-muted,#6b7280);font-size:13px;text-align:center;padding:20px}
.terminal-page .tm-signal-title{display:flex;align-items:flex-start;gap:8px;font-size:14px;font-weight:650}
.terminal-page .tm-signal p{margin:7px 0;color:var(--tu-muted,#6b7280);font-size:13px;line-height:1.7}
.terminal-page .tm-signal+.tm-signal{margin-top:12px;padding-top:12px;border-top:1px solid var(--tu-border,#e7ebef)}
.terminal-page .tm-ai-content{max-height:178px;overflow-y:auto;scrollbar-width:thin;padding-right:3px}
.terminal-page .tm-overview-notes{font-size:11px;color:var(--tu-muted,#6b7280);margin-top:8px}
.terminal-page .tm-overview-notes summary{cursor:pointer;color:var(--tu-text,#111827);font-weight:500}
.terminal-page .tm-overview-notes ol{margin:7px 0 0;padding-left:17px;line-height:1.8}
.terminal-page .tm-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 9px;min-height:21px;border-radius:11px;background:var(--tm-soft);color:var(--tu-accent,#ff6b2b);font-size:11px;font-weight:500;line-height:1.4;white-space:nowrap;vertical-align:middle}
.terminal-page .tm-badge-live{background:color-mix(in srgb,var(--tm-down) 10%,var(--tu-surface,#fff));color:var(--tm-down)}
.terminal-page .tm-badge-unknown{background:var(--tu-bg,#f7f8fa);color:var(--tu-muted,#6b7280)}
.terminal-page .tm-badge-high{background:color-mix(in srgb,var(--tm-up) 10%,var(--tu-surface,#fff));color:var(--tm-up)}
.terminal-page .tm-main-grid{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(270px,1fr);gap:12px;align-items:start}
.terminal-page .tm-table-panel{padding:0;overflow:hidden}
.terminal-page .tm-table-heading{padding:16px 16px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.terminal-page .tm-table-heading .tm-panel-title{margin:0}
.terminal-page .tm-table-scroll{position:relative;width:100%;overflow:auto;scrollbar-width:thin}
.terminal-page .tm-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;background:var(--tu-surface,#fff);margin:0!important}
.terminal-page .tm-table th{font:500 13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0;text-transform:none;text-align:left;color:var(--tu-muted,#6b7280);background:var(--tu-bg,#f7f8fa);padding:10px 14px;border:0!important;border-bottom:1px solid var(--tu-border,#e7ebef)!important;white-space:nowrap}
.terminal-page .tm-table td{padding:11px 14px;border:0!important;border-bottom:1px solid var(--tu-border,#e7ebef)!important;vertical-align:middle;overflow-wrap:anywhere;line-height:1.6}
.terminal-page .tm-table tr:last-child td{border-bottom:0!important}
.terminal-page .tm-table tr.tm-selected{background:var(--tm-soft)}
.terminal-page .tm-table tbody tr:hover{background:var(--tm-soft)}
.terminal-page .tm-row-title{display:inline-flex;align-items:center;gap:7px;text-align:left;max-width:100%;padding:0;border:0;background:transparent;color:var(--tu-text,#111827);font:550 14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer}
.terminal-page .tm-row-title .tm-icon{width:13px;height:13px;flex-shrink:0}
.terminal-page .tm-number{font-variant-numeric:tabular-nums;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Arial,sans-serif;font-weight:600;white-space:nowrap}
.terminal-page .tm-up{color:var(--tm-up)}
.terminal-page .tm-down{color:var(--tm-down)}
.terminal-page .tm-detail{position:sticky;top:92px}
.terminal-page .tm-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.terminal-page .tm-detail-top .tm-panel-title{margin:0;line-height:1.5;flex:1}
.terminal-page .tm-detail-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;margin:6px 0 12px}
.terminal-page .tm-detail-price strong{font-size:28px;line-height:1.15;letter-spacing:-.5px}
.terminal-page .tm-definition{margin:0 0 15px;font-size:13px}
.terminal-page .tm-definition>div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:9px;padding:8px 0;border-top:1px solid var(--tu-border,#e7ebef)}
.terminal-page .tm-definition dt{color:var(--tu-muted,#6b7280)}
.terminal-page .tm-definition dd{margin:0;color:var(--tu-text,#111827);line-height:1.65;overflow-wrap:anywhere}
.terminal-page .tm-detail .tm-chart svg{height:170px}
.terminal-page .tm-detail-section{padding:14px 0;border-top:1px solid var(--tu-border,#e7ebef)}
.terminal-page .tm-detail-section h3{margin:0 0 8px;font-size:14px;font-weight:650}
.terminal-page .tm-detail-section p{margin:0;color:var(--tu-muted,#6b7280);font-size:14px;line-height:1.85}
.terminal-page .tm-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.terminal-page .tm-tag{padding:3px 8px;font-size:11px;background:var(--tu-bg,#f7f8fa);color:var(--tu-muted,#6b7280);border-radius:4px}
.terminal-page .tm-disclaimer{display:flex;align-items:flex-start;gap:7px;color:var(--tu-muted,#6b7280);font-size:11px;line-height:1.7;padding-top:13px;margin-top:5px;border-top:1px solid var(--tu-border,#e7ebef)}
.terminal-page .tm-notice{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;border-radius:5px;background:var(--tm-soft);color:var(--tu-text,#111827);font-size:12px;margin:16px 0}
.terminal-page .tm-notice .tm-icon{color:var(--tu-accent,#ff6b2b);margin-top:1px}
.terminal-page .tm-status{padding:11px 14px;border:1px solid var(--tu-border,#e7ebef);border-radius:6px;background:var(--tu-surface,#fff);color:var(--tu-muted,#6b7280);font-size:12px;margin:12px 0;display:flex;align-items:center;justify-content:space-between;gap:9px;overflow-wrap:anywhere}
.terminal-page .tm-status.tm-error{border-color:color-mix(in srgb,var(--tm-up) 35%,var(--tu-border,#e7ebef));color:var(--tm-up)}
.terminal-page .tm-loading{padding:38px 16px;color:var(--tu-muted,#6b7280);text-align:center;font-size:13px;line-height:1.7}
.terminal-page .tm-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 1px 0;color:var(--tu-muted,#6b7280);font-size:11px;line-height:1.6}
.terminal-page .tm-predictions-grid{grid-template-columns:minmax(0,2.1fr) minmax(285px,1fr)}
.terminal-page .tm-prediction-content{min-width:0}
.terminal-page .tm-predictions-table{min-width:690px;table-layout:fixed}
.terminal-page .tm-predictions-table th:first-child{width:47%}
.terminal-page .tm-predictions-table td{padding:14px 10px}
.terminal-page .tm-predictions-table th{padding:10px}
.terminal-page .tm-predictions-table .tm-row-title{font-size:14px;line-height:1.6;margin:6px 0 2px}
.terminal-page .tm-prediction-event{display:flex;gap:10px;align-items:flex-start}
.terminal-page .tm-event-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 44px;height:44px;border:1px solid var(--tu-border,#e7ebef);border-radius:6px;background:var(--tu-bg,#f7f8fa);color:var(--tu-muted,#6b7280);font-weight:650;font-size:11px;margin-top:3px}
.terminal-page .tm-event-copy{min-width:0}
.terminal-page .tm-event-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--tu-muted,#6b7280);margin-top:3px}
.terminal-page .tm-probability{font-size:20px;line-height:1.3}
.terminal-page .tm-prob-track{height:5px;width:100%;min-width:48px;max-width:106px;background:var(--tu-border,#e7ebef);border-radius:4px;margin-top:7px;overflow:hidden}
.terminal-page .tm-prob-fill{height:100%;background:var(--tu-accent,#ff6b2b);border-radius:4px}
.terminal-page .tm-prediction-detail .tm-panel-title{font-size:17px}
.terminal-page .tm-detail-actions{display:flex;gap:3px;flex-shrink:0}
.terminal-page .tm-prob-detail{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--tu-border,#e7ebef);padding-top:15px;margin-top:15px}
.terminal-page .tm-prob-detail strong{display:block;font-size:35px;line-height:1.2;margin-top:5px}
.terminal-page .tm-prob-detail-changes{display:flex;flex-direction:column;gap:6px;font-size:11px;min-width:108px}
.terminal-page .tm-prob-detail-changes>div{display:flex;gap:12px;justify-content:space-between}
.terminal-page .tm-prob-detail+.tm-prob-track{max-width:none;height:7px;margin-top:12px;margin-bottom:15px}
.terminal-page .tm-source-link{display:inline-flex;align-items:center;gap:4px;color:var(--tu-accent,#ff6b2b);text-decoration:none;font-size:12px}
.terminal-page .tm-source-link:hover{text-decoration:underline}
.terminal-page .tm-lock-panel{background:var(--tu-bg,#f7f8fa);border:1px solid var(--tu-border,#e7ebef);border-radius:6px;padding:18px 12px;text-align:center;font-size:12px;color:var(--tu-muted,#6b7280)}
.terminal-page .tm-lock-panel>.tm-icon{height:24px;width:24px;margin-bottom:7px}
.terminal-page .tm-lock-panel p{margin:5px 0 12px;font-size:11px;line-height:1.8}
.terminal-page .tm-smart-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:11px;color:var(--tu-muted,#6b7280)}
.terminal-page .tm-smart-grid strong{display:block;color:var(--tu-text,#111827);font-size:15px;margin-top:2px}
.terminal-page .tm-load-more{padding:14px;text-align:center;border-top:1px solid var(--tu-border,#e7ebef)}
.terminal-page .tm-load-more .tm-button{width:100%;background:var(--tu-bg,#f7f8fa)}
.terminal-page .tm-sr-only{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.terminal-page .tm-range{display:flex;justify-content:space-between;align-items:center;gap:9px;color:var(--tu-muted,#6b7280);font-size:11px;margin:12px 0;border-top:1px solid var(--tu-border,#e7ebef);padding-top:12px}
.terminal-page .tm-range-bar{height:5px;flex:1;background:var(--tu-border,#e7ebef);border-radius:4px;position:relative}
.terminal-page .tm-range-bar i{position:absolute;top:-3px;width:11px;height:11px;border-radius:50%;background:var(--tu-accent,#ff6b2b);border:2px solid var(--tu-surface,#fff);transform:translateX(-50%)}
[data-theme=dark] .terminal-page .tm-workspace{--tm-up:#ff7373;--tm-down:#53c89c}
@media(min-width:1500px){.terminal-page .tm-overview{grid-template-columns:minmax(245px,.85fr) minmax(450px,1.6fr) minmax(300px,1fr)}.terminal-page .tm-table{font-size:13px}.terminal-page .tm-table td{padding-top:13px;padding-bottom:13px}}
@media(max-width:1180px){.terminal-page .tm-overview{grid-template-columns:minmax(205px,.9fr) minmax(310px,1.5fr)}.terminal-page .tm-ai-panel{grid-column:1/-1}.terminal-page .tm-ai-content{display:grid;grid-template-columns:1fr 1fr;gap:16px}.terminal-page .tm-signal+.tm-signal{margin-top:0;padding-top:0;border-top:0}.terminal-page .tm-main-grid{grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}.terminal-page .tm-markets-table{min-width:585px}.terminal-page .tm-predictions-grid{grid-template-columns:minmax(0,1fr)}.terminal-page .tm-prediction-detail{position:static}}
@media(max-width:820px){.terminal-page .tm-workspace{padding-top:0}.terminal-page .tm-heading{font-size:28px}.terminal-page .tm-subheading{font-size:16px}.terminal-page .tm-overview{grid-template-columns:minmax(200px,.8fr) minmax(260px,1fr)}.terminal-page .tm-main-grid{grid-template-columns:minmax(0,1fr)}.terminal-page .tm-detail{position:static}.terminal-page .tm-detail .tm-chart svg{height:210px}.terminal-page .tm-table td{padding:12px}.terminal-page .tm-footer{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:560px){.terminal-page .tm-controls{gap:8px;flex-wrap:wrap}.terminal-page .tm-search{max-width:none;min-width:170px}.terminal-page .tm-controls>.tm-update{width:100%;margin:0}.terminal-page .tm-overview{grid-template-columns:1fr}.terminal-page .tm-panel{padding:14px}.terminal-page .tm-table-panel{padding:0}.terminal-page .tm-ai-panel{grid-column:auto}.terminal-page .tm-ai-content{display:block}.terminal-page .tm-signal+.tm-signal{border-top:1px solid var(--tu-border,#e7ebef);padding-top:12px;margin-top:12px}.terminal-page .tm-chart svg{height:205px}.terminal-page .tm-tab{padding:9px 12px}.terminal-page .tm-predictions-table{min-width:660px}.terminal-page .tm-predictions-table th:first-child{width:43%}.terminal-page .tm-heading{font-size:27px}.terminal-page .tm-notice{font-size:12px;line-height:1.7}.terminal-page .tm-chart-head{gap:9px}.terminal-page .tm-event-symbol{flex-basis:34px;height:34px;font-size:10px}.terminal-page .tm-prediction-event{gap:8px}.terminal-page .tm-detail-price strong{font-size:27px}.terminal-page .tm-period{padding:6px 9px;min-height:32px}}
@media(max-width:767px){.terminal-ui .terminal-page .tm-search input{font-size:16px}.terminal-ui .terminal-page .tm-search{min-height:44px}.terminal-ui .terminal-page .tm-controls>.tm-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.terminal-page .tm-workspace *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
