/* The question is the primary action; settings remain in the conversation. */
.chat-first .topbar{height:64px;flex:none}
.chat-first .account-header{gap:16px;min-width:0;flex-wrap:wrap;justify-content:flex-end;padding:0 12px;background:#122633bf;border-radius:8px}
.chat-first .account-header strong{font-size:13px;font-weight:400;color:#b9ccd9;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-first .account-header a{font-size:13px;font-weight:500;color:#edf4f6;text-decoration:none;min-height:38px;display:inline-flex;align-items:center}
.chat-first .account-header a:hover{text-decoration:underline;text-underline-offset:5px}
.chat-first .account-header a:focus-visible{outline:2px solid #c8deed;outline-offset:4px;border-radius:4px}

/* A short viewport scrolls the sidebar, never paints one section over another. */
.chat-first .sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a3bbc550 transparent}
.chat-first .sidebar>.brand,.chat-first .sidebar>.new-chat,.chat-first .sidebar>.primary-nav,.chat-first .sidebar>.sidebar-bottom{flex:none}
.chat-first .sidebar .nav-item{font-size:13px;line-height:1.5}
.chat-first .sidebar .nav-state{font-size:10px}
.chat-first .sidebar .new-chat{font-size:13px}
.chat-first .sidebar .watch-filter button,.chat-first .sidebar .watch-bottom>button{font-size:11px}
.chat-first .sidebar .watch-empty strong{font-size:11px}
.chat-first .sidebar .match-watch{flex:1 0 200px;min-height:200px;max-height:360px;height:auto;overflow:hidden;margin:16px 0;padding-top:12px}
.chat-first .sidebar .watch-list{flex:1 1 auto;min-height:0;overflow-y:auto}
.chat-first .sidebar .watch-heading,.chat-first .sidebar .watch-filter,.chat-first .sidebar .watch-bottom{flex:none}
.chat-first .sidebar .watch-bottom>small{display:block;margin-top:8px;font-size:10px;line-height:1.65;color:#b8cbd6}
.chat-first .sidebar .watch-empty{padding:12px 0}
.chat-first .sidebar .watch-empty>span{display:none}
.chat-first .sidebar .watch-empty p{display:none}
.chat-first .sidebar .sidebar-bottom{margin-top:auto;padding-top:12px;padding-bottom:2px}
.chat-first .balance-button{margin-top:0;min-height:36px;padding-block:5px}
.chat-first .balance-button strong{font-size:24px;font-variant-numeric:tabular-nums}
.chat-first .account-details{min-height:32px;height:auto;padding:7px 2px;font-size:11px}
.chat-first .sidebar-settings{display:flex;gap:20px;border-top:1px solid #c9dbe21c;margin-top:12px;padding-top:12px}
.chat-first .sidebar-settings button{padding:3px 0;font:inherit;font-size:11px;color:#c1d0d9;min-height:28px}
.chat-first .sidebar-settings button:hover{color:#fff}

/* One compact shell: writing above, optional settings and send below. */
.chat-first .composer-dock,
.chat-first:has(#welcome[hidden]) .composer-dock{width:calc(100% - 96px);max-width:520px;margin:0 48px 42px;padding:12px 16px;border-radius:24px;clip-path:none}
.chat-first .composer{padding:0;background:none;min-width:0}
.chat-first .composer textarea{min-height:40px;height:40px;max-height:136px;font-size:16px;line-height:1.6;font-weight:400;padding:3px 0 7px;color:#f0f5f8;caret-color:#e1f1f8;resize:none}
.chat-first .composer-prompt{position:relative;min-width:0}
.chat-first .composer textarea::placeholder{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:#8b9eac;font-size:14px;font-weight:300;letter-spacing:.02em;opacity:1}
.chat-first .composer textarea:placeholder-shown{padding-left:24px}
.chat-first .composer-hint-icon{position:absolute;top:8px;left:0;display:block;color:#8b9eac;opacity:.8;pointer-events:none}
.chat-first .composer-hint-icon .icon{width:14px;height:14px;stroke-width:1.4}
.chat-first .composer textarea:not(:placeholder-shown)+.composer-hint-icon{display:none}
.chat-first .composer-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;min-height:34px}
.chat-first .send-button,
.chat-first:has(#welcome[hidden]) .send-button{display:grid;place-items:center;width:34px;min-width:34px;height:34px;padding:0;flex:none;border-radius:50%;background:#e3edf1;color:#233b49}
.chat-first .send-button .icon{width:18px;height:18px}
.chat-first .send-button:hover{background:#fff;color:#172e3b}
.chat-first .send-button:disabled{opacity:.5;cursor:wait}
.chat-first .send-button:focus-visible{outline:2px solid #e3edf1;outline-offset:4px}
.chat-first .composer-disclaimer{position:absolute;top:calc(100% + 8px);inset-inline:4px;font-size:10px;line-height:1.6;margin:0;color:#b2c5d2}
.chat-first #analysis-settings{position:relative}
.chat-first #analysis-settings summary{display:grid;place-items:center;width:34px;height:34px;list-style:none;cursor:pointer;border-radius:50%;color:#b4c8d6}
.chat-first #analysis-settings summary::-webkit-details-marker{display:none}
.chat-first #analysis-settings summary:hover,.chat-first #analysis-settings[open] summary{background:#c5ddeb16;color:#f0f6fa}
.chat-first #analysis-settings summary .icon{width:20px;height:20px}
.chat-first #analysis-settings .analysis-settings-popover{position:absolute;bottom:calc(100% + 12px);left:-4px;z-index:50;width:280px;max-width:calc(100vw - 64px);max-height:min(280px,calc(100dvh - 180px));overflow-y:auto;overscroll-behavior:contain;padding:14px;background:#1e3446;border:1px solid #c5ddeb40;border-radius:12px;box-shadow:0 12px 28px #08121d66}
.chat-first #analysis-settings:not([open]) .analysis-settings-popover{display:none}
.chat-first #analysis-settings .analysis-settings-popover>strong{display:block;font-size:12px;font-weight:500;color:#cadbe6;margin-bottom:8px}
.chat-first #analysis-settings[open] .report-modes{display:flex;flex-direction:column;gap:3px;margin:0;padding:0;border:0}
.chat-first #analysis-settings .report-mode{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:38px;padding:8px;border:0;border-radius:6px;background:transparent;color:#c8d8e3}
.chat-first #analysis-settings .report-mode:hover,.chat-first #analysis-settings .report-mode.selected{background:#d8e9f31a;color:#f4f8fa}
.chat-first #analysis-settings .report-mode-copy strong{font-size:13px;font-weight:400;white-space:nowrap}
.chat-first #analysis-settings .mode-price{font-size:12px;color:#b6cbd9;white-space:nowrap;font-variant-numeric:tabular-nums}
.chat-first #analysis-settings .mode-price small{display:inline;font-size:11px}
.chat-first #analysis-settings .analysis-settings-popover>small{display:block;font-size:11px;line-height:1.6;color:#a6becf;margin-top:10px}
.chat-first .conversational-quote{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:18px 20px}
.chat-first .conversational-quote>div{min-width:0}
.chat-first .conversational-quote strong{font-size:13px;line-height:1.8}
.chat-first .conversational-quote small{font-size:11px;line-height:1.8;color:#c3d5e0}
.chat-first .conversational-quote button{align-self:flex-start;min-height:40px;padding:10px 16px}

@media(min-width:701px){
 .chat-first .app-shell,.chat-first .app-shell.workspace-hidden{grid-template-columns:224px minmax(0,1fr)}
}

@media(max-width:1040px){
 .chat-first .topbar{padding-inline:25px}
 .chat-first .composer-dock,.chat-first:has(#welcome[hidden]) .composer-dock{width:calc(100% - 50px);margin-inline:25px}
}
@media(max-width:700px){
 .chat-first .topbar{height:60px;padding-inline:16px}
 .chat-first .account-header{gap:12px;flex-wrap:nowrap}
 .chat-first .account-header strong{max-width:110px;font-size:12px}
 .chat-first .account-header a{font-size:12px}
 .chat-first .sidebar .match-watch{flex:none;height:240px;min-height:240px;max-height:240px}
 .chat-first .sidebar .watch-bottom>small{font-size:10px}
 .chat-first .sidebar .account-details{min-height:36px;font-size:12px}
 .chat-first .sidebar-settings button{min-height:36px;font-size:12px}
 .chat-first .composer-dock,.chat-first:has(#welcome[hidden]) .composer-dock{width:calc(100% - 32px);margin:0 16px max(44px,env(safe-area-inset-bottom));padding:10px 14px;border-radius:22px}
 .chat-first .composer-disclaimer{font-size:10px}
 .chat-first .welcome,.chat-first .arena-hero{min-height:0}
 .chat-first .hero-copy{padding:16px 0;max-width:100%}
 .chat-first .hero-copy h1{font-size:48px;letter-spacing:-1.8px}
 .chat-first .welcome-description{margin-top:16px}
 .chat-first .sport-switch{margin-top:10px}
}
@media(max-height:650px){
 .chat-first .hero-copy h1{font-size:40px;letter-spacing:-1.4px}
 .chat-first .hero-copy{padding-block:12px}
 .chat-first .welcome,.chat-first .arena-hero{min-height:0}
 .chat-first .welcome-description{margin-top:12px}
}

.account-header [hidden]{display:none!important}.combination-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 4px 12px;color:#9eb4c4;font-size:12px}.combination-shortcuts button{border:1px solid #b1c5d433;background:#d6e7f00a;color:#d7e5ed;padding:8px 14px;border-radius:18px;cursor:pointer}.combination-shortcuts button:hover{background:#d6e7f021}.combination-shortcuts button:focus-visible{outline:2px solid #b8d5ea}@media(max-width:700px){.combination-shortcuts{gap:7px}.combination-shortcuts>span{flex-basis:100%}.combination-shortcuts button{min-height:40px}}

.combination-shortcuts button:disabled{opacity:.45;cursor:not-allowed}
