/* Shared customer and operator layouts. */
:root{--bg:#090a0b;--surface:#131517;--surface2:#1b1e21;--gold:#dcb76b;--sidebar:0px;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif}
.workspace{margin-left:0!important;padding-bottom:88px;min-width:0}.reference-header{position:relative;height:72px;max-width:1080px;padding:0 24px;margin:auto;border-bottom:1px solid var(--border);background:transparent;display:flex;justify-content:space-between}.reference-brand{display:flex;align-items:center;gap:8px;font-weight:750;font-size:22px}.reference-brand img{width:34px;height:34px}.reference-brand span{font-size:13px;color:var(--gold)}.top-actions{gap:20px}.environment{max-width:1032px;margin:12px auto 0;padding:8px 12px;min-height:0;border-radius:6px;background:#dcb76b0c;border:1px solid #dcb76b25}.environment>span{font-size:11px;gap:8px}.environment>span>span{font-size:11px}.environment .icon{width:15px}.workspace main{max-width:1080px;padding:24px;margin:auto;min-width:0}.site-footer{max-width:1080px;margin:auto;padding:28px 24px}.reference-nav{display:flex!important;position:fixed;z-index:40;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:100%;max-width:1080px;height:76px;padding:8px 10px max(8px,env(safe-area-inset-bottom));justify-content:space-around;background:#151718f5;border:1px solid #323438;border-radius:16px 16px 0 0;backdrop-filter:blur(15px)}.reference-nav a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:12px;color:var(--muted)}.reference-nav .icon{width:23px;height:23px}.reference-nav a.active{color:var(--gold)}.reference-nav .nav-transfer .icon{padding:11px;width:46px;height:46px;background:var(--gold);color:#161616;border-radius:50%;margin-top:-24px;box-shadow:0 0 0 7px var(--bg)}.floating-help{bottom:100px;right:max(20px,calc((100vw - 1140px)/2));z-index:35}.feature-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 12px;padding:18px 8px 28px;border-bottom:1px solid var(--border);margin-bottom:24px}.feature-grid button{background:transparent;border:0;display:flex;align-items:center;flex-direction:column;gap:12px;min-width:0;padding:8px}.feature-grid button>span{display:flex;justify-content:center;align-items:center;width:52px;height:52px;color:var(--gold);background:linear-gradient(145deg,#dcb76b1a,#dcb76b02);border:1px solid #dcb76b30;border-radius:15px}.feature-grid .icon{width:26px;height:26px}.feature-grid strong{font-size:13px;font-weight:500}.feature-grid button:hover>span{background:#dcb76b30}.index-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.index-card{min-width:0}.news-section{margin:30px 0}.news-row{display:flex;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid var(--border)}.news-row>div{min-width:0;flex:1}.news-row h3{margin:5px 0 10px;font-size:17px}.news-row p{white-space:pre-wrap;overflow-wrap:anywhere}.news-row time{font-size:11px;color:var(--muted)}.news-art{width:100px;min-height:84px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:linear-gradient(130deg,#dcb76b22,#333334);color:var(--gold);flex-shrink:0}.news-art .icon{width:36px;height:36px}.news-empty{display:flex;align-items:center;gap:18px;padding:25px 20px;border:1px dashed var(--border);border-radius:9px}.news-empty>.icon{color:var(--gold)}.news-empty h3{font-size:14px}.news-empty p{font-size:12px;margin-top:5px}.page-heading h1{font-size:26px}.auth-card{max-width:490px;margin:24px auto;padding:30px;overflow:visible}.auth-card>h1,.auth-card>h2{margin:10px 0}.auth-card>p{margin:14px 0}.stack-form{display:grid;gap:17px;margin-top:24px}.stack-form label{display:grid;gap:8px;font-size:13px;color:var(--muted)}.stack-form input,.stack-form textarea,.stack-form select,.chat-composer textarea,.admin-search{width:100%;min-width:0;background:#090b0d;border:1px solid #373a3e;border-radius:7px;color:var(--text);padding:12px;min-height:44px}.stack-form input,.stack-form textarea,.chat-composer textarea{font-size:16px}.stack-form small,.stack-form>p{font-size:12px}.stack-form .check-label{display:flex;align-items:flex-start;gap:10px;line-height:1.7}.check-label input{width:18px;min-height:18px;margin:3px 0;flex-shrink:0;accent-color:var(--gold)}.check-label a,.legal-page a:not(.btn){color:var(--gold);text-decoration:underline}.auth-links{display:flex;justify-content:space-between;gap:16px;margin-top:20px;flex-wrap:wrap}.recovery-card code{display:block;padding:18px;background:#080909;border:1px solid var(--gold);font-size:18px;overflow-wrap:anywhere;margin:22px 0;color:var(--gold)}.recovery-card>.btn{margin:6px}.account-menu{margin:20px 0}.account-menu>a,.account-menu>button{width:100%;display:flex;justify-content:space-between;gap:15px;align-items:center;padding:21px 24px;border:0;border-bottom:1px solid var(--border);background:transparent;text-align:left;color:var(--text)}.account-menu span{color:var(--muted)}.account-menu>a:hover,.account-menu>button:hover{background:var(--surface2)}.chat-panel{max-width:800px;margin:auto;padding:24px}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-heading h1{font-size:22px}.chat-heading p{font-size:12px;margin-top:8px}.chat-greeting{margin:18px 0;padding:12px;background:#dcb76b0c;border-radius:6px;color:var(--gold);white-space:pre-wrap;overflow-wrap:anywhere}.chat-messages{display:flex;flex-direction:column;gap:16px;height:45vh;min-height:240px;overflow-y:auto;padding:16px 8px;overscroll-behavior:contain}.message{align-self:flex-start;max-width:85%;padding:12px 15px;background:#25282b;border-radius:12px 12px 12px 2px;overflow-wrap:anywhere;min-width:0}.message.mine{align-self:flex-end;background:#dcb76b1c;border:1px solid #dcb76b3a;border-radius:12px 12px 2px 12px}.message b{font-size:10px;color:var(--gold);font-weight:500}.message p{color:var(--text);font-size:14px;white-space:pre-wrap;margin:7px 0}.message time{font-size:10px;color:var(--muted);display:block;text-align:right}.chat-empty{margin:auto;text-align:center;font-size:13px;max-width:280px}.chat-composer{display:flex;gap:12px;align-items:flex-end;border-top:1px solid var(--border);padding-top:16px;margin-top:8px}.chat-composer textarea{resize:vertical;flex:1;min-width:0;max-height:180px}.chat-composer button{min-height:58px}.chat-note{display:block;color:var(--muted);font-size:11px;margin-top:12px}.older-messages{margin:auto}.form-error{color:var(--red);min-height:0;white-space:pre-wrap;overflow-wrap:anywhere}.form-error:empty{display:none}[hidden]{display:none!important}.legal-page{max-width:800px!important;margin:20px auto!important;padding:24px!important}.legal-page h1{margin:24px 0}.legal-page h2{margin:25px 0 10px}.legal-page p{line-height:1.9}.market-toolbar{flex-wrap:wrap}.market-toolbar .tabs{overflow-x:auto;max-width:100%}.order-row{min-width:0}.order-row>div{min-width:0}
@media(max-width:600px){.reference-header{height:62px;padding:0 16px}.reference-brand{font-size:18px}.reference-brand span{font-size:11px}.reference-brand img{width:29px;height:29px}.reference-header .locale{display:block}.reference-header .avatar{display:flex;width:32px;height:32px}.environment{margin:10px 12px 0;padding:8px}.environment>span>span{font-size:9px}.environment b{font-size:9px}.workspace main{padding:17px 14px}.feature-grid{gap:15px 3px;padding:10px 0 20px;margin-bottom:18px}.feature-grid button{padding:5px 0;gap:9px}.feature-grid button>span{width:42px;height:42px;border-radius:12px}.feature-grid .icon{width:23px;height:23px}.feature-grid strong{font-size:10px;white-space:normal}.index-grid{gap:8px;display:grid;overflow:visible}.index-card{padding:12px 9px;width:auto;flex:auto}.index-card .spark{display:none}.index-card strong{font-size:15px}.index-card span{font-size:10px}.index-card .change{font-size:11px}.reference-nav{height:72px;border-radius:13px 13px 0 0;padding-inline:4px}.reference-nav a{font-size:10px}.floating-help{bottom:90px;right:15px}.floating-help>span{display:none}.news-section{margin:24px 0}.news-art{width:70px;min-height:70px}.news-row{gap:14px;padding:17px 0}.news-row h3{font-size:14px}.news-row p{font-size:12px}.news-empty{padding:20px 14px}.news-empty p{font-size:11px}.section-heading h2{font-size:16px}.section-heading>.muted{font-size:10px}.auth-card{padding:22px 18px;margin:12px auto}.auth-card h1{font-size:23px}.auth-card>p{font-size:12px}.chat-panel{padding:16px 12px}.chat-heading h1{font-size:18px}.chat-heading .btn{padding:7px 10px;font-size:10px}.chat-greeting{font-size:12px}.chat-messages{height:42vh;padding:12px 0}.chat-composer{gap:8px}.chat-composer .btn{padding:10px 14px}.chat-heading p{font-size:10px}.account-menu>a,.account-menu>button{padding:18px;font-size:13px}.profile-panel{padding:25px}.page-heading h1{font-size:23px}.site-footer{padding:25px 16px}.message{max-width:90%}.top-actions{gap:10px}}

/* Market browsing: symbol metadata and official embedded charts. */
.ticker-host{height:96px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#10151d}.symbol-list{display:flex;flex-direction:column}.symbol-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 130px 38px;align-items:center;gap:18px;padding:18px 22px;border-bottom:1px solid var(--border)}.symbol-row:last-child{border-bottom:0}.symbol-name{display:flex;align-items:center;gap:13px;min-width:0;border:0;background:transparent;text-align:left;padding:0}.symbol-name>span:last-child{min-width:0}.symbol-name strong{font-size:14px;display:block}.symbol-name small{display:block;color:var(--muted);font-size:11px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.symbol-name .asset-icon{width:38px;height:38px;flex-shrink:0;background:color-mix(in srgb,var(--asset) 16%,transparent);color:var(--asset);border-radius:11px;display:grid;place-items:center;font-size:15px;font-weight:600}.symbol-market{font-size:11px;color:var(--muted)}.symbol-chart{font-size:12px;display:flex;align-items:center;justify-content:flex-end;gap:8px}.symbol-chart .icon{width:16px;height:16px}.symbol-row .favorite{width:36px;height:36px}.favorite.on{color:var(--gold)}.favorite.on svg{fill:#dcb76b30}.chart-page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border-bottom:1px solid var(--border)}.chart-page-toolbar label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.chart-page-toolbar select{max-width:260px;min-width:0;padding:10px;background:#10151d;border:1px solid var(--border);border-radius:8px;color:var(--text)}.chart-page-toolbar>span{font-size:11px;color:var(--muted)}.market-chart{height:600px!important;min-height:480px;display:block}.chart-source{padding:14px 18px;font-size:11px;color:var(--muted)}.tradingview-widget-copyright{font-size:10px;line-height:28px;text-align:center;color:#91a1b7}.widget-error{padding:22px;display:grid;gap:12px}.market-workspace .page-heading{gap:15px;flex-wrap:wrap}
@media(max-width:600px){.symbol-row{grid-template-columns:minmax(0,1fr) 70px 32px;gap:8px;padding:15px 12px}.symbol-market{display:none}.symbol-chart{font-size:10px;gap:4px}.symbol-chart .icon{width:12px}.symbol-name{gap:9px}.symbol-name .asset-icon{width:32px;height:32px}.symbol-name strong{font-size:13px}.symbol-name small{font-size:10px}.chart-page-toolbar{padding:12px}.chart-page-toolbar>span{display:none}.chart-page-toolbar label{width:100%}.chart-page-toolbar select{flex:1;width:100%;max-width:none}.market-chart{height:500px!important;min-height:500px}.market-workspace .page-heading>.btn{font-size:12px}.ticker-host{height:100px}}

.ticker-host{height:116px}@media(max-width:600px){.ticker-host{height:130px}}

/* v0.4.1 — reference homepage composition */
.reference-home{--bg:#101010;--surface:#191919;--gold:#e1ba37;background:#101010}
.reference-home .reference-header{max-width:1680px;height:62px;border:0;padding:0 24px}
.reference-home main{max-width:1680px;padding:12px 24px 24px}
.reference-home .feature-grid{margin:0 0 26px;padding:19px 25px;gap:14px 20px;border:1px solid #9f7d263f;border-radius:11px;background:radial-gradient(ellipse at top left,#b5902429,transparent 75%),linear-gradient(110deg,#211e14,#101010 90%);box-shadow:inset 0 1px 0 #e4c24c0d}
.reference-home .feature-grid button{padding:0;gap:6px}
.reference-home .feature-grid button>span{width:34px;height:34px;border-radius:9px;border:1px solid #b993364d;background:linear-gradient(140deg,#ad8c3b48,#30291a);box-shadow:0 0 16px #b4942c12;color:#ebc349}
.reference-home .feature-grid .icon{width:23px;height:23px}
.reference-home .feature-grid strong{font-size:12px;color:#f2efe5;font-weight:400}
.reference-home .feature-grid button:hover>span{background:#a88a384c;box-shadow:0 0 19px #ba992c24;transform:translateY(-2px)}
.reference-home .section-heading{margin:0 0 13px;padding:0 10px;min-height:24px}
.reference-home .section-heading h2{position:relative;font-size:14px;font-weight:600;padding-bottom:7px}
.reference-home .section-heading h2:after{content:'';position:absolute;left:0;bottom:0;width:18px;height:2px;border-radius:2px;background:#dfb62f}
.reference-home .section-heading>a,.reference-home .section-heading>.muted{font-size:10px}
.index-ribbon{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(225px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#655321 #141414;padding:0 5px 8px}
.quote-card{min-width:0;scroll-snap-align:start;border:1px solid #b28e3438;background:linear-gradient(135deg,#1d1d1b,#141414);border-radius:10px;overflow:hidden}
.quote-card>h3{font-size:11px;font-weight:500;color:#ddd7c9;padding:12px 14px 0;margin:0}
.quote-widget{height:151px;min-width:0}
.quote-widget .tradingview-widget-copyright{font-size:9px;line-height:24px}
.reference-home .news-section{margin:24px 0 28px}
.reference-home #news-list{display:grid;gap:12px}
.reference-home .news-row{display:flex;gap:36px;align-items:stretch;background:#191919;border:1px solid #ffffff03;border-radius:12px;padding:18px 18px 18px 22px;margin:0;min-height:230px}
.reference-home .news-row:first-child{min-height:310px}
.reference-home .news-copy{padding:4px 0 12px;display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}
.reference-home .news-row time,.news-category{font-size:11px;color:#d5af39;line-height:1.7}
.reference-home .news-row h3{font-size:20px;font-weight:550;line-height:1.5;margin:12px 0 16px;color:#f0f0ed}
.reference-home .news-row p{font-size:13px;line-height:1.9;color:#a6a6a1;max-width:780px}
.reference-home .news-row .text-btn{display:inline-flex;align-items:center;gap:12px;font-size:12px;margin-top:auto;padding:24px 0 0;color:#dabb5e}
.reference-home .news-row .text-btn .icon{width:16px;height:16px}
.reference-home .news-earth{flex:0 0 32%;max-width:360px;min-height:260px;border-radius:8px;background:#080c13 url('/assets/earth-night-v1.png') 67% center/cover no-repeat}
.reference-home .news-art.editorial-art{flex:0 0 32%;max-width:360px;width:auto;min-height:190px;display:flex;flex-direction:column;gap:10px;border-radius:8px;background:radial-gradient(ellipse at top right,#bda34d1c,transparent),repeating-linear-gradient(0deg,transparent 0 23px,#d4bd6e09 24px),repeating-linear-gradient(90deg,transparent 0 23px,#d4bd6e09 24px),#141512;color:#d1b961;overflow:hidden}
.editorial-art .icon{width:58px;height:58px;stroke-width:1}
.editorial-art b{font-size:20px;letter-spacing:4px;font-weight:400}
.editorial-art>span{font-size:10px;letter-spacing:2px;color:#9c967d}.editorial-art small{font-size:9px}
.reference-home .market-panel{border-color:#b28e3424;background:#171717}
.reference-home .market-panel>.section-heading{padding:18px 20px 0}
.reference-home .site-footer{max-width:1680px}
body:has(.reference-home) .reference-nav{max-width:1680px;border-color:#74622b38;background:#171714f5}
body:has(.reference-home) .floating-help{right:max(20px,calc((100vw - 1740px)/2));color:#dfbf65}
@media(min-width:1800px){.reference-home .reference-header,.reference-home main,.reference-home .site-footer{max-width:88vw}body:has(.reference-home) .reference-nav{max-width:88vw}}
@media(max-width:700px){.reference-home .reference-header{height:58px;padding-inline:15px}.reference-home main{padding:8px 12px 20px}.reference-home .feature-grid{padding:16px 7px;gap:18px 4px;margin-bottom:22px}.reference-home .feature-grid button>span{width:31px;height:31px;border-radius:8px}.reference-home .feature-grid .icon{width:21px;height:21px}.reference-home .feature-grid strong{font-size:10px}.reference-home .section-heading{padding-inline:4px;margin-bottom:10px}.index-ribbon{grid-auto-columns:220px;gap:9px;padding-inline:0}.quote-card>h3{font-size:11px}.reference-home .news-section{margin-top:22px}.reference-home .news-row,.reference-home .news-row:first-child{gap:14px;min-height:0;padding:16px;border-radius:10px;flex-wrap:wrap}.reference-home .news-copy{flex-basis:100%;padding:0}.reference-home .news-row h3{font-size:17px;margin:9px 0 12px}.reference-home .news-row p{font-size:12px;line-height:1.85}.reference-home .news-row .text-btn{padding-top:18px;font-size:11px}.reference-home .news-earth{flex-basis:100%;max-width:none;min-height:160px;background-position:65% 60%}.reference-home .guide-compact .news-art{display:none}.reference-home .news-art.editorial-art{flex-basis:100%;max-width:none;min-height:150px}.reference-home .news-row time,.news-category{font-size:10px}.reference-home .market-panel>.section-heading{padding:16px 12px 0}}
@media(prefers-reduced-motion:reduce){.reference-home .feature-grid button>span{transition:none;transform:none!important}}

.quote-widget{height:133px}.index-ribbon{grid-auto-columns:minmax(218px,1fr)}@media(max-width:700px){.index-ribbon{grid-auto-columns:220px}}

/* v0.4.4 Original feature destinations */
.feature-page-head{display:flex;align-items:center;gap:14px;margin:5px 0 26px}.feature-page-head h1{font-size:24px;font-weight:600}.feature-page-head>a{font-size:25px;border:1px solid var(--border);border-radius:10px;width:40px;height:40px;display:grid;place-items:center}
.feature-list-panel{padding:20px}.feature-tabs{border-bottom:1px solid var(--border);padding:5px 0 15px;gap:12px;overflow-x:auto}.feature-tabs .tab{min-width:100px;white-space:nowrap}.feature-empty{min-height:260px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px}.feature-empty>.icon{width:38px;height:38px;color:#8d7e5c}.feature-empty>p{font-size:13px;color:var(--muted)}.feature-search{margin:0 0 20px;max-width:500px;width:100%}
.feature-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 30px;margin-bottom:22px;border:1px solid #dcb76b25;border-radius:14px;background:radial-gradient(ellipse at top left,#ac8e3825,transparent),#171819}.feature-banner h2{font-size:26px;margin-top:12px}.feature-banner>.icon{width:48px;height:48px;color:var(--gold)}.recommendation-columns{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:14px;padding:14px 10px;border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}
.diagnosis-intro{text-align:center;margin:35px auto}.diagnosis-intro h2{font-size:28px;margin:14px 0}.diagnosis-intro p{font-size:13px;color:var(--muted)}.diagnosis-options{display:grid;grid-template-columns:1fr 1fr;gap:22px}.diagnosis-option{padding:30px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 100% 0,#dcb76b12,transparent),var(--surface)}.diagnosis-option h2{font-size:23px;margin:22px 0 12px}.diagnosis-option p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:30px}.diagnosis-option>.btn{justify-content:space-between;width:100%}.diagnosis-emblem{width:65px;height:65px;display:grid;place-items:center;margin-bottom:25px;border:1px solid #dcb76b44;background:#dcb76b12;border-radius:16px;color:var(--gold)}.diagnosis-emblem .icon{width:33px;height:33px}.analysis-history-link{display:flex;align-items:center;gap:12px;padding:22px;margin-top:22px;font-size:14px}.analysis-history-link .icon{color:var(--gold)}.analysis-history-link>span{margin-left:auto}
.analysis-form-panel{max-width:700px;margin:0 auto;padding:30px}.analysis-banner{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:25px}.analysis-banner>span{width:58px;height:58px;border-radius:14px;background:#dcb76b15;display:grid;place-items:center;color:var(--gold);flex-shrink:0}.analysis-banner h2{font-size:21px;margin-bottom:8px}.analysis-banner p{font-size:12px;color:var(--muted)}.required{color:var(--gold)}.analysis-form-panel .stack-form>label{display:block}.analysis-form-panel .stack-form input,.analysis-form-panel .stack-form select{margin-top:10px}.price-input{position:relative}.price-input>input{padding-right:38px}.price-input>span{position:absolute;right:17px;top:24px;color:var(--gold)}.intent-field{border:0;padding:0;display:flex;gap:30px}.intent-field legend{font-size:13px;color:var(--muted);margin-bottom:16px}.analysis-form-panel .intent-field label{display:flex;align-items:center;gap:8px}.analysis-form-panel .intent-field input{width:17px;min-height:17px;margin:0;accent-color:var(--gold)}.analysis-form-panel button:disabled,.package-card button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.package-card{margin-top:22px;padding:24px;border:1px solid #dcb76b30;border-radius:13px;background:linear-gradient(135deg,#dcb76b0c,transparent)}.package-card h2{font-size:21px}.package-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0}.package-summary>div{display:flex;gap:25px}.package-card small{display:block;color:var(--muted);font-size:11px}.package-card strong{font-size:25px;display:block;color:var(--gold);margin-top:9px}.package-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;border-top:1px solid var(--border);padding-top:20px}.package-stats strong{font-size:17px}
@media(max-width:600px){.feature-page-head{margin-bottom:20px;gap:10px}.feature-page-head h1{font-size:21px}.feature-list-panel{padding:14px}.feature-tabs{gap:5px}.feature-tabs .tab{min-width:75px;font-size:12px}.feature-banner{padding:20px;gap:12px}.feature-banner h2{font-size:21px}.feature-banner>.btn{font-size:11px;padding:9px}.feature-empty{min-height:230px}.diagnosis-options{grid-template-columns:1fr;gap:16px}.diagnosis-intro h2{font-size:24px}.diagnosis-option{padding:24px}.diagnosis-option h2{font-size:21px}.analysis-form-panel{padding:20px 16px}.analysis-banner{gap:12px}.analysis-banner h2{font-size:18px}.analysis-banner p{font-size:10px;line-height:1.7}.analysis-banner>span{width:45px;height:45px}.analysis-history-link{font-size:13px}.recommendation-columns{gap:8px;padding-inline:0;font-size:10px}.feature-quotes .market-toolbar{padding:12px}.package-card{padding:18px}.package-summary>div{gap:15px}.package-summary .btn{font-size:12px;padding:10px 16px}.package-stats{grid-template-columns:1fr 1fr}.package-card h2{font-size:19px}}

.product-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.product-tile{border:1px solid #dcb76b25;border-radius:14px;padding:23px;background:linear-gradient(140deg,#dcb76b08,transparent),#17191c;min-width:0}.product-id{display:flex;gap:13px;align-items:center}.product-id .asset-icon{width:42px;height:42px;background:#dcb76b14;color:var(--gold);border:1px solid #dcb76b25;border-radius:12px;display:grid;place-items:center;font-size:20px;flex-shrink:0}.product-id h2{font-size:17px;line-height:1.5}.product-id span{font-size:11px;color:var(--muted)}.product-actions{display:flex;gap:12px;margin-top:20px}.product-actions .btn{flex:1;font-size:12px;padding:11px;justify-content:center}.product-actions .icon{width:14px}
.detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:start}.detail-overview,.detail-form{padding:28px}.detail-overview>h2,.detail-form>h2{font-size:23px;margin:16px 0 25px}.detail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:20px 0}.detail-metrics>div{padding:15px 9px;border-bottom:1px solid var(--border);min-width:0}.detail-metrics dt{color:var(--muted);font-size:12px;line-height:1.6}.detail-metrics dd{margin:8px 0 0;font-size:17px;color:var(--text);overflow-wrap:anywhere}.detail-reason{border:1px solid var(--border);padding:18px;border-radius:9px;margin:20px 0}.detail-reason h3{font-size:14px;margin-bottom:12px}.detail-reason p{font-size:13px;color:var(--muted)}.amount-controls{display:flex;gap:0;align-items:stretch;min-width:0}.amount-controls button{width:42px;flex-shrink:0;background:#22262a;border:1px solid var(--border);color:var(--gold);font-size:20px}.amount-controls button:first-child{border-radius:7px 0 0 7px}.amount-controls button:last-child{border-radius:0 7px 7px 0}.amount-controls input{border-radius:0!important;min-width:0!important;margin:0!important;text-align:center}.form-calculation{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}.form-calculation output{color:var(--gold);font-size:18px}.record-controls{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto auto;gap:12px;align-items:end;margin:24px 0}.record-controls label{display:grid;gap:8px;font-size:11px;color:var(--muted);min-width:0}.record-controls input,.record-controls select{width:100%;min-width:0;height:41px;padding:9px;border:1px solid var(--border);border-radius:7px;background:#101317;color:var(--text);font-size:12px}.record-controls .btn{height:41px;font-size:12px}.record-controls .text-btn{height:41px;font-size:12px;padding:0 5px}.record-table-wrap{overflow:auto;width:100%}.record-table{border-collapse:collapse;width:100%;min-width:590px;font-size:12px}.record-table th{font-weight:400;color:var(--muted);background:#ffffff03;padding:17px 12px;text-align:left;border-bottom:1px solid var(--border)}.record-table td{padding:22px 12px;border-bottom:1px solid var(--border)}.record-empty{padding:65px 15px!important;text-align:center;color:var(--muted);font-size:13px}.record-pagination{display:flex;gap:15px;align-items:center;justify-content:flex-end;margin:20px 0 5px;font-size:11px;color:var(--muted)}.record-pagination>span:first-child{margin-right:auto}.record-pagination .btn{font-size:11px;padding:7px 10px}.record-pagination .btn:disabled{opacity:.35}
.ipo-query{padding:20px 0}.ipo-query h2{font-size:19px}.ipo-query-fields{display:grid;grid-template-columns:1fr 2fr auto;align-items:end;gap:15px}.ipo-query-fields .btn{height:45px}.ipo-stages{display:flex;align-items:center;justify-content:space-around;gap:10px;padding:22px 10px;border:1px solid #dcb76b25;border-radius:10px;margin:8px 0 25px;font-size:12px;color:var(--gold)}.ipo-stages i{font-style:normal;color:var(--muted)}.order-flow-panel{max-width:620px;margin:auto;padding:26px}.order-direction{display:grid;grid-template-columns:1fr 1fr;gap:10px}.order-direction button{padding:15px;border:1px solid var(--border);border-radius:8px;background:#111316;color:var(--muted)}.order-direction .selected{color:#122219;background:#86bf9a;border-color:#86bf9a}.order-direction button:last-child.selected{background:#d1847c;border-color:#d1847c;color:#291410}.allocation-buttons{display:flex;gap:10px}.allocation-buttons button{flex:1;border:1px solid var(--border);border-radius:7px;background:#111317;color:var(--muted);padding:9px}.allocation-buttons button.selected{border-color:var(--gold);color:var(--gold)}.chart-operation{display:flex;justify-content:flex-end;padding:16px 18px 0}.chart-operation .btn{min-width:140px;justify-content:center}.dialog-actions button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:900px){.record-controls{grid-template-columns:1fr 1fr 1fr}.detail-layout{grid-template-columns:1fr}.detail-form,.detail-overview{padding:24px}}@media(max-width:600px){.product-catalog{grid-template-columns:1fr;gap:14px}.product-tile{padding:18px}.product-id h2{font-size:16px}.detail-metrics{margin:15px 0}.detail-metrics>div{padding:13px 5px}.detail-metrics dd{font-size:15px}.detail-metrics dt{font-size:11px}.detail-form,.detail-overview{padding:20px 16px}.detail-overview>h2,.detail-form>h2{font-size:21px}.record-controls{grid-template-columns:1fr 1fr;gap:13px}.record-controls input{font-size:12px}.record-pagination{gap:8px;font-size:10px}.record-pagination .btn{padding:7px;font-size:10px}.ipo-query-fields{grid-template-columns:1fr}.ipo-stages{font-size:10px;padding:18px 8px;gap:6px}.order-flow-panel{padding:20px 16px}.product-actions .btn{font-size:11px}.dialog-body .detail-metrics{grid-template-columns:1fr 1fr}}

/* Account and paper-trading flows follow the reference navigation. */
.paper-panel,.paper-form{padding:24px;margin-bottom:20px}.paper-form{max-width:760px;margin:0 auto 20px}.paper-currency{display:flex;gap:8px;margin:0 0 12px;overflow:auto}.paper-balance{padding:24px;border-color:#665222;background:linear-gradient(120deg,#282313,#171717)}.paper-balance>span{color:#a5a5a5;font-size:13px}.paper-balance>strong{display:block;font-size:36px;margin:10px 0 24px;font-variant-numeric:tabular-nums}.paper-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #48402b;padding-top:16px;gap:14px}.paper-stat-grid small,.paper-stat-grid b{display:block}.paper-stat-grid small{color:#a8a8a8;margin-bottom:8px}.paper-menu{margin-top:20px;padding:6px 18px}.paper-menu a,.paper-menu>button{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:10px 6px;border:0;border-bottom:1px solid #333;background:none;color:inherit;width:100%;text-decoration:none;cursor:pointer;font:inherit}.paper-menu a:last-child{border:0}.paper-menu b{color:#d2b34d}.paper-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.paper-toolbar .tabs{flex-wrap:wrap}.paper-quote{padding:16px;background:#111;border:1px solid #4c4224;border-radius:12px;display:grid;gap:8px}.paper-quote strong{font-size:26px;color:#e4c156}.paper-quote small{color:#aaa}.paper-quote .tag{width:max-content}.paper-request{padding:20px;border-bottom:1px solid #333}.paper-request>div{display:flex;justify-content:space-between;gap:10px}.paper-request small{display:block;color:#999;margin:10px 0}.paper-request p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.record-table td small{display:block;color:#999;font-size:11px;margin-top:6px}.record-table td{font-variant-numeric:tabular-nums}.positive{color:#60c6a0}.negative{color:#ee8078}.feature-page-head .tag{margin-left:auto}.record-controls input,.record-controls select,.stack-form select{min-width:0}.admin-main h2{margin-top:20px;margin-bottom:12px}.admin-main select{background:#1c1e23;border:1px solid #444;color:#eee;min-height:42px;border-radius:8px;padding:8px}.admin-main [hidden]{display:none!important}.admin-form-panel .detail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-form-panel dd{overflow-wrap:anywhere}.admin-form-panel dt{color:#999;font-size:12px}
@media(max-width:650px){.paper-panel,.paper-form{padding:16px}.paper-balance{padding:18px}.paper-balance>strong{font-size:30px}.paper-stat-grid{gap:8px;font-size:12px}.paper-stat-grid small{font-size:11px}.paper-toolbar{align-items:flex-start;flex-wrap:wrap}.paper-menu{padding:6px 14px}.feature-page-head h1{font-size:21px}.paper-request{padding:16px 8px}.paper-request>div{flex-wrap:wrap}.reference-nav span{font-size:11px}}

.chat-attachments{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}.chat-attachments>span{display:inline-block;position:relative}.chat-attachments img{width:72px;height:72px;object-fit:cover;border-radius:6px}.chat-attachments button{position:absolute;right:0;top:0;border:0;border-radius:3px;padding:1px 6px;background:#fff;color:#222}.chat-image-message{max-width:min(260px,100%);max-height:260px;object-fit:contain;display:block;border-radius:7px;margin-top:8px}.chat-extra-tools{display:flex;align-items:center;gap:16px;margin:8px 0}.chat-extra-tools label{cursor:pointer}.message-body{white-space:pre-wrap;overflow-wrap:anywhere}.message-body ul,.message-body ol{padding-left:22px}

.locale-select{background:transparent;color:inherit;border:1px solid #88774266;border-radius:5px;padding:6px;font:inherit;max-width:120px}.locale-select option{background:#171717;color:white}

.news-art>img{width:100%;height:100%;object-fit:contain;background:white}

/* v0.6.3 Trading and account reference layout */
.trading-topline{display:flex;gap:12px;align-items:center;margin:4px 0 16px}.trading-search{display:flex;gap:12px;align-items:center;flex:1;min-width:0;border:1px solid #a79a70;border-radius:28px;background:#0b1112;padding:0 17px}.trading-search>span{font-size:28px;color:var(--gold)}.trading-search input{width:100%;min-width:0;background:transparent;border:0;color:var(--text);height:46px;outline:none;font:inherit}.trading-search:focus-within{outline:2px solid var(--gold);outline-offset:2px}.trading-categories{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}.trading-categories .tab{border:1px solid #65542c;border-radius:24px;padding:8px 18px}.trading-categories .selected{background:linear-gradient(110deg,#f7dc85,#c79d24);color:#141414}.trading-categories>[data-trading-refresh]{margin-left:auto}.trading-panel{border-color:#65542c;overflow:hidden;background:#191a18}.trading-table{border-collapse:collapse;width:100%;table-layout:fixed}.trading-table th{color:var(--gold);background:#151612;border-bottom:1px solid #65542c;font-size:12px;font-weight:500;text-align:left;padding:13px 16px}.trading-table th:first-child{width:34%}.trading-table th:nth-child(2){width:20%}.trading-table th:last-child{width:17%}.trading-table td{padding:18px 16px;border-bottom:1px solid #ffffff0d;font-size:13px;font-variant-numeric:tabular-nums}.trade-name{display:flex;gap:12px;align-items:center;min-width:0}.trade-name>span:last-child{min-width:0}.trade-name b{display:block;font-size:14px}.trade-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;margin-top:5px}.trade-symbol-icon{width:30px;height:30px;flex-shrink:0;background:#ddc5751a;border:1px solid #a18b4540;border-radius:50%;display:grid;place-items:center;color:var(--gold)}.trend-link{display:flex;align-items:center;gap:8px;color:var(--gold);font-size:12px}.trend-link svg{width:23px;height:23px}.trade-price small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.trade-actions{white-space:nowrap}.trade-actions .btn{padding:7px 10px;font-size:12px;min-height:34px}.trade-star{border:0;background:transparent;color:#888;font-size:23px;cursor:pointer;margin-left:8px;min-height:40px}.trade-star.on{color:var(--gold)}.trading-pagination{padding:16px;display:flex;align-items:center;gap:10px;font-size:12px}.trading-pagination>span:first-child{margin-right:auto;color:var(--muted)}.trading-pagination .btn{font-size:12px;padding:8px 12px}.trading-pagination button:disabled{opacity:.35;cursor:default}.trading-status{font-size:12px;line-height:1.6;margin:14px 0}.account-overview{padding:16px;border:1px solid #60522c;border-radius:12px;background:#191a17}.account-identity{display:flex;align-items:center;gap:12px;margin-bottom:14px}.account-avatar{width:36px;height:36px;border-radius:9px;border:1px solid #77602a;display:grid;place-items:center;color:var(--gold);background:#bca33915}.account-overview .paper-currency{margin-bottom:12px}.account-overview .paper-balance{background:#131411;padding:18px;box-shadow:none;border-radius:9px}.balance-heading{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.balance-visibility{background:transparent;border:0;color:var(--gold);display:grid;place-items:center;padding:6px;cursor:pointer}.balance-visibility svg{width:20px;height:20px}.balance-details{margin-left:auto;padding:5px 10px;color:var(--gold);border:1px solid #6c5a2d;border-radius:4px;background:#d8b4480c;font-size:12px}.account-overview .paper-balance>strong{font-size:29px;margin:8px 0 18px}.paper-menu{background:#191a18;border-color:#60522c;padding:5px 16px}.paper-menu>a,.paper-menu>button{justify-content:flex-start;gap:13px;min-height:55px;border-bottom-color:#ffffff0c;text-align:left}.paper-menu>a:hover,.paper-menu>button:hover{background:#c6a54308}.paper-menu>a:last-child,.paper-menu>button:last-child{border:0}.paper-menu b{margin-left:auto;color:#c4b983;font-weight:400;font-size:22px}.account-menu-icon{width:27px;height:27px;display:grid;place-items:center;color:var(--gold);border:1px solid #826b29;border-radius:7px;background:linear-gradient(135deg,#cfac381e,transparent);flex-shrink:0}.account-menu-icon svg{width:20px;height:20px}.paper-form #password-form>h2{display:none}.trading-topline>.btn{white-space:nowrap}
@media(max-width:650px){.trading-topline{gap:8px}.trading-topline>.btn{font-size:11px;padding:8px;min-height:44px}.trading-search{padding:0 12px;gap:8px}.trading-search input{font-size:13px;height:44px}.trading-categories{gap:6px}.trading-categories .tab{font-size:12px;padding:7px 12px}.trading-categories .text-btn{font-size:12px}.trading-table th{font-size:10px;padding:10px 7px}.trading-table td{padding:14px 7px;font-size:12px}.trading-table th:first-child{width:38%}.trading-table th:nth-child(2){width:16%}.trading-table th:nth-child(3){width:25%}.trading-table th:last-child,.trading-table .trade-actions{display:none}.trade-symbol-icon{display:none}.trade-name{gap:0}.trade-name b{font-size:13px}.trade-name small{font-size:9px}.trend-link{justify-content:center}.trend-link span{display:none}.trade-price small{font-size:9px}.trading-pagination{padding:14px 8px;gap:7px;font-size:10px}.trading-pagination .btn{font-size:10px;padding:8px}.account-overview{padding:11px}.account-overview .paper-balance{padding:14px}.paper-menu{padding:5px 10px}.paper-menu>a,.paper-menu>button{min-height:54px;padding:10px 5px;gap:12px}.paper-menu span{font-size:13px}.paper-stat-grid b{overflow-wrap:anywhere}.balance-heading{font-size:11px}.paper-currency .tab{font-size:12px;padding:8px 11px}}

.account-page-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.account-page-title h1{font-size:20px;margin:0}.account-overview{padding:12px}.account-identity{margin-bottom:6px}.account-overview .paper-currency{margin-bottom:7px;gap:5px}.account-overview .paper-currency .tab{padding:6px 10px}.account-overview .paper-balance{padding:12px 15px}.account-overview .paper-balance>strong{font-size:25px;margin:3px 0 12px}.account-overview .paper-stat-grid{padding-top:10px}.account-overview .paper-stat-grid small{margin-bottom:5px}.paper-menu>a,.paper-menu>button{min-height:49px;padding-block:9px}@media(max-width:650px){.paper-menu>a,.paper-menu>button{min-height:54px}.account-page-title h1{font-size:19px}}

.trade-mobile-actions{display:none}@media(max-width:650px){.trade-mobile-actions{display:flex;align-items:center;gap:12px;margin-top:7px}.trade-mobile-actions>a{font-size:11px;color:var(--gold);display:flex;align-items:center;min-height:32px}.trade-mobile-actions .trade-star{font-size:21px;margin:0;min-height:32px;min-width:32px}}

/* Inline provider quotes share one live connection across rows. */
.live-trading-table th:first-child{width:86%}.live-trading-table th:last-child{width:14%}.live-trading-table .live-quote-cell{padding:5px 8px}.inline-market-quote{height:90px;min-width:0;color-scheme:dark;--tv-widget-background-color:#191a18;--tv-widget-text-color:#e5e6e1;--tv-widget-font-family:Arial,sans-serif;--tv-widget-positive-color:#42bc96;--tv-widget-negative-color:#eb6d78}.inline-market-quote tv-mini-chart{display:block;width:100%;height:100%}.inline-market-quote tv-mini-chart:not(:defined){background:linear-gradient(90deg,transparent,#d7b65012,transparent);border-radius:8px}.live-trading-table .trade-name small{white-space:normal;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.live-trading-table .trade-actions{padding-inline:7px}@media(max-width:650px){.live-trading-table th:first-child{width:100%}.live-trading-table .live-quote-cell{display:table-cell!important;padding:4px}.inline-market-quote{height:142px}.live-trading-table .trade-actions,.live-trading-table th:last-child{display:none}.live-trading-table .trade-name small{font-size:10px}.live-trading-table td{padding-inline:7px}}

.quote-card .quote-widget.inline-market-quote{height:154px;--tv-widget-background-color:#171717}.news-copy h3 a{color:inherit}.news-copy h3 a:hover{color:var(--gold)}

/* A taller quote card selects the provider's full-width chart layout. */
.live-trading-table .inline-market-quote{height:210px}

/* Give support its own navigation slot rather than overlaying page content. */
.reference-nav .floating-help{position:relative;inset:auto;transform:none;flex:0 0 56px;width:56px;height:56px;min-height:56px;padding:0;margin:0 8px;align-self:center;display:grid;place-items:center;border:1px solid #e2c779;border-radius:50%;background:radial-gradient(circle at 32% 22%,#5e4c25,#282319 72%);color:#ffe7a0;box-shadow:0 0 16px #d9b76024;isolation:isolate;transition:transform .2s,background .2s;animation:support-glow 3.2s ease-in-out infinite}
.reference-nav .floating-help .icon{width:32px;height:32px;stroke-width:1.8}
.reference-nav .floating-help::before{content:"";position:absolute;inset:4px;border-radius:inherit;border:1px solid #efd79135;pointer-events:none}
.reference-nav .floating-help:hover{transform:translateY(-2px);background:radial-gradient(circle at 32% 22%,#796332,#322a1c 72%)}
.reference-nav .floating-help:focus-visible{outline:2px solid #fff1b9;outline-offset:3px}
@keyframes support-glow{0%,100%{box-shadow:0 0 10px #d9b76020,0 0 0 0 #d9b76018}50%{box-shadow:0 0 20px #d9b76055,0 0 0 3px #d9b7600a}}
@media(max-width:650px){.reference-nav .floating-help{flex-basis:48px;width:48px;height:48px;min-height:48px;margin:0 2px}.reference-nav .floating-help .icon{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.reference-nav .floating-help{animation:none;transition:none}}

.live-trading-table .inline-market-quote{height:194px;--tv-widget-positive-color:#47cba8;--tv-widget-negative-color:#ee7887;--tv-widget-positive-area-top-color:rgba(71,203,168,.22);--tv-widget-positive-area-bottom-color:rgba(71,203,168,0);--tv-widget-negative-area-top-color:rgba(238,120,135,.18);--tv-widget-negative-area-bottom-color:rgba(238,120,135,0)}
.quote-range-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px 2px;font-size:11px;color:var(--muted)}
.quote-range-bar select{min-height:30px;padding:3px 9px;background:#222620;color:#d8c68f;border:1px solid #b3974d38;border-radius:7px;font:inherit;color-scheme:dark;cursor:pointer}
.quote-range-bar select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* The order form tabs must not inherit the tiny order-history icon dimensions. */
.order-flow-panel>.order-direction{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;height:auto;min-height:50px;padding:0;margin:0 0 20px;gap:10px;border:0;border-radius:0;background:none;align-items:stretch}
.order-flow-panel>.order-direction button{min-width:0;min-height:50px;padding:12px 16px;font:inherit;font-weight:600;line-height:1.4;white-space:nowrap}
.order-flow-panel>.stack-form{min-width:0;margin-top:0}
.order-flow-panel .paper-quote{min-width:0;overflow-wrap:anywhere}

/* Dedicated full-width chart and order pages, matching the reference workflow. */
.reference-trade-workspace{min-height:100vh;background:#101010;color:#e7e7e7}
.reference-trade-workspace>main{width:100%;max-width:none;margin:0;padding:8px 28px 28px}
.trade-detail-header{min-height:44px;display:flex;align-items:center;gap:12px;margin-bottom:12px}
.trade-detail-header>div>strong{display:block;font-size:13px;color:#fff;line-height:1.6}
.trade-detail-header small{display:block;color:#a1a7ae;font-size:12px;line-height:1.6}
.trade-back{font-size:32px;line-height:1;color:#94a5ae;text-decoration:none;flex:0 0 16px}
.trade-opening-price{min-height:62px;margin:10px 0 24px;display:grid;justify-items:start;gap:3px}
.trade-opening-price>strong,.chart-opening-price{font-size:20px;color:#00d7c1;font-variant-numeric:tabular-nums}
.trade-opening-price>span{font-size:11px;color:#a3aab0}.trade-opening-price>small{font-size:12px;color:#d0a36a}
.reference-order-page .order-flow-panel{max-width:none;width:100%;margin:0;padding:0 20px 24px;border:0;border-radius:0;background:none;box-shadow:none}
.reference-order-page .order-direction{gap:0;background:#242424;border-radius:5px;padding:2px;min-height:44px;margin:0 0 28px}
.reference-order-page .order-direction button{min-height:40px;padding:9px 16px;border:0;border-radius:4px;font-size:12px;line-height:20px;background:transparent;color:#b0b0b0}
.reference-order-page .order-direction button.selected{background:#429b52;color:#fff}
.reference-order-page .order-direction button:last-child.selected{background:#bd5259;color:#fff}
.reference-order-form{gap:24px;margin:0}
.reference-order-form>label{display:grid;gap:9px;margin:0;font-size:12px;line-height:18px;color:#e5e5e5}
.reference-order-form input,.reference-order-form select{height:42px;min-height:42px;padding:8px 18px;background:#1b1b1b;border:1px solid #343434;border-radius:4px;color:#fff;font-size:14px;font-weight:600;width:100%}
.reference-input-controls{display:grid;grid-template-columns:minmax(0,1fr) 26px 26px;align-items:center;gap:20px;min-width:0}
.reference-input-controls>button{width:26px;height:26px;min-height:0;padding:0;border:0;border-radius:4px;background:#efefef;color:#666;font-size:22px;line-height:26px}
.reference-input-controls>button:disabled{opacity:.4;cursor:default}
.reference-order-form .allocation-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 0}
.reference-order-form .allocation-buttons button{min-height:42px;padding:8px;border:1px solid #343434;border-radius:4px;background:#1b1b1b;color:#fff;font-size:14px;font-weight:700}
.reference-order-form .allocation-buttons button.selected{border-color:#429b52;background:#294832}
.reference-order-form .form-calculation{display:flex;justify-content:space-between;align-items:center;margin:4px 0 0;padding:0;border:0;font-size:11px;color:#999}
.reference-order-form .form-calculation output,.order-available strong{font-size:13px;color:#e0bd45;font-weight:700}
.order-available{display:grid;justify-items:end;gap:4px;font-size:11px;margin-top:-12px}
.reference-order-form [data-order-fee]{font-size:10px;margin-top:-14px;text-align:right}
.reference-order-form [data-order-fee][hidden]{display:none}
.reference-order-form .form-error:empty{display:none}
.reference-order-form .order-submit{width:100%;min-height:42px;margin-top:28px;border:0;border-radius:4px;background:#429b52;color:#fff;font-size:12px}
.reference-order-form .order-submit.sell{background:#bd5259}
.reference-chart-page{padding-bottom:56px}.reference-chart-page .trade-detail-header{margin-bottom:0}
.chart-opening-price{margin-left:14px;font-size:16px}.chart-available{margin-left:auto;text-align:right;display:grid;gap:3px;font-size:10px;color:#aab0b4}.chart-available strong{font-size:12px;color:#ddd}
.reference-full-chart{height:min(68vh,660px);min-height:440px;width:100%;border:1px solid #292929;border-radius:0}
.reference-company-profile{margin-top:36px;min-height:250px}.reference-company-profile #tv-profile{height:320px}
.reference-chart-actions{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;align-items:center;gap:18px;padding:10px 28px;background:#101010}
.reference-chart-actions .btn{flex:1;min-height:36px;padding:7px;background:#429b52;color:white;border:0;border-radius:4px;font-size:12px}
.reference-chart-actions .favorite{border:0;background:none;color:#8898a2}.reference-chart-actions .favorite.on{color:#e0bd45}
@media(max-width:650px){.reference-trade-workspace>main{padding:8px 14px 22px}.reference-order-page .order-flow-panel{padding-inline:0}.reference-input-controls{gap:10px}.reference-chart-actions{padding:10px 14px}.trade-detail-header{gap:8px}.chart-opening-price{margin-left:auto;font-size:14px}.chart-available{margin-left:5px}.reference-full-chart{min-height:400px}}
.empty-sell-summary:not([hidden]){display:grid;gap:24px;margin:24px 0}.empty-sell-summary>div{display:flex;justify-content:space-between;gap:20px}.empty-sell-summary span{color:#b6bfc7}.empty-sell-summary strong{color:#e0bc59}

/* Recommendation list: values are managed in the admin; quotes come from market-snapshot. */
.recommendation-workspace{min-height:100vh;background:#101010}.recommendation-workspace #content{padding:0;max-width:none;margin:0}.recommendation-header{height:52px;border-bottom:1px solid #4c4224;display:flex;align-items:center;justify-content:center;position:relative}.recommendation-header h1{font-size:16px;font-weight:500;letter-spacing:0}.recommendation-header>a{position:absolute;left:0;top:7px;color:#fff;font-size:30px;width:30px}.recommendation-content{width:85%;max-width:1600px;margin:12px auto 0;padding:0 0 40px}.recommendation-eyebrow{font-size:11px;color:#d9e2ee;margin-bottom:3px}.recommendation-content>h2{font-size:16px;letter-spacing:0;margin:0 0 8px}.recommendation-search{max-width:none;width:100%;height:38px;min-height:38px;margin:0 0 10px;padding:0 12px;border:1px solid #514422;border-radius:7px;background:#1a1a1a;gap:10px}.recommendation-search input{width:100%;background:transparent;border:0;outline:0;font-size:12px;color:#e4e8ed;min-width:0}.recommendation-search input:focus{box-shadow:none}.recommendation-catalog{display:flex;flex-direction:column;gap:10px;margin:0}.recommendation-card{display:block;padding:12px;border:1px solid #514422;border-radius:8px;background:#1a1a1a;color:#fff}.recommendation-card[hidden]{display:none}.recommendation-card:hover{border-color:#8a7231}.recommendation-card .product-id{gap:10px;margin-bottom:10px}.recommendation-card .asset-icon{width:40px;height:40px;border:0;border-radius:7px;font-size:14px;background:#302b1b;color:#edbe26;object-fit:contain}.recommendation-name{display:flex;align-items:center;gap:6px}.recommendation-card .product-id h2{font-size:14px;letter-spacing:0;line-height:21px}.recommendation-card .product-id span{font-size:11px;color:#b6c5dc}.recommendation-card .product-id .recommendation-currency{font-size:10px;line-height:15px;padding:0 3px;color:#f3c821;border:1px solid #514422;border-radius:3px}.recommendation-prices{margin:0;font-size:12px;font-variant-numeric:tabular-nums}.recommendation-prices>div{display:flex;justify-content:space-between;gap:16px;min-height:23px;align-items:center}.recommendation-prices dt{color:#b6c5dc}.recommendation-prices dd{margin:0;text-align:right}.recommendation-prices>div:first-child dd{color:#f5c600}.recommendation-reason{font-size:12px;line-height:20px;color:#dbe6f7;white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0 0}.recommendation-card .product-id .asset-icon{color:#edbe26}.recommendation-card:focus-visible{outline:2px solid #d8b551;outline-offset:2px}

.quant-workspace{min-height:100vh;background:radial-gradient(ellipse at 80% 0,#332b1690,transparent 60%),#0b0c0e}.quant-workspace #content{margin:0 auto;padding:0;max-width:1100px}.quant-page{max-width:720px;padding:24px 24px 55px;margin:auto;color:#f3efe4}.quant-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.quant-header>a{font-size:28px;width:28px}.quant-header h1{font-size:27px;letter-spacing:0}.quant-header>span{font-size:10px;border:1px solid #75603355;color:#e7cc8c;border-radius:24px;padding:8px 10px;white-space:nowrap}.quant-hero{padding:25px;border:1px solid #aa874b70;border-radius:24px;background:radial-gradient(circle at 92% 12%,#b88d3875,transparent 56%),linear-gradient(125deg,#22221a,#4a391b);box-shadow:0 16px 40px #0003}.quant-kicker{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#e6cf98;margin-bottom:10px}.quant-hero h2{font-size:29px;color:#fff4d8;margin-bottom:12px}.quant-hero>p:not(.quant-kicker){font-size:14px;line-height:1.8;color:#e1d7bd}.quant-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.quant-tags span{border:1px solid #dcc38022;background:#ffffff0b;border-radius:24px;padding:7px 12px;font-size:12px;font-weight:600}.quant-engine{border:1px solid #d8b55120;border-radius:22px;padding:24px;margin-top:16px;background:linear-gradient(135deg,#191a18,#121413);box-shadow:0 15px 40px #0002}.quant-engine-heading{display:flex;gap:20px;justify-content:space-between;align-items:center}.quant-engine-heading h2{font-size:22px;margin-bottom:4px}.quant-engine-heading p{font-size:13px;color:#a9ada5;line-height:1.7}.quant-engine-state{border:1px solid #d8b55125;background:#d8b5510d;border-radius:30px;text-align:center;padding:10px 13px;flex-shrink:0;color:#dfbf71;font-size:12px;font-weight:600}.quant-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:18px 0;padding:0}.quant-stages li{text-align:center;display:grid;gap:6px;padding:14px 4px;border:1px solid #d8b55115;border-radius:16px;background:#ffffff03;font-size:13px;font-weight:600}.quant-stages b{font-size:11px;color:#e7c571}.quant-explanation{padding:20px;border:1px solid #d8b55115;border-radius:16px;background:#28241955}.quant-explanation h3{font-size:13px;color:#e5d4a7;margin-bottom:20px}.quant-explanation p{font-size:13px;line-height:1.8;color:#c7c8be}.quant-agreement{display:flex;gap:12px;padding:18px 14px;border:1px solid #d8b55115;border-radius:16px;background:#ffffff03;margin:14px 0}.quant-agreement input{width:18px;height:18px;flex-shrink:0;accent-color:#d8b551;margin-top:3px}.quant-agreement span{font-size:12px;line-height:1.8;color:#bac0b6}.quant-agreement strong{display:block;color:#e6e4d8}.quant-primary{width:100%;border:1px solid #f1d58b50;border-radius:12px;background:linear-gradient(105deg,#ead296,#b58a2d);color:#211b0e;min-height:48px;padding:12px;font-weight:700;cursor:pointer}.quant-primary:disabled{opacity:.4;cursor:default}.quant-error{font-size:12px;color:#f09a88;line-height:1.6;margin:8px 0}.quant-error:empty{display:none}.quant-code-dialog{width:min(360px,calc(100% - 40px));padding:24px;border:1px solid #b58a2d70;border-radius:17px;background:linear-gradient(140deg,#22231e,#171914);color:#fff0d0;box-shadow:0 16px 70px #0009}.quant-code-dialog::backdrop{background:#0009;backdrop-filter:blur(7px)}.quant-code-dialog h2{font-size:20px;letter-spacing:0;margin-bottom:10px}.quant-code-dialog form>p:not(.quant-error){font-size:12px;line-height:1.7;color:#bab7aa;margin-bottom:16px}.quant-code-dialog input:not([type=checkbox]){width:100%;height:43px;border:1px solid #7d6b4244;border-radius:9px;padding:10px;background:#0e100d;color:#fff2d2;font-size:13px;margin-bottom:10px}.quant-code-dialog .quant-primary{min-height:42px}

.product-reference-list{display:flex;flex-direction:column;gap:14px}.product-reference-list .product-tile{display:block;border-radius:10px;background:#191919;padding:18px}.product-reference-list .product-tile[hidden]{display:none}.product-wallet{font-size:11px;border:1px solid #d8b55140;color:#dfbf71;padding:2px 5px;border-radius:3px}.product-reference-list .product-id small,.etf-reference-detail .product-id small{color:#a7aa9d;font-size:12px}.product-reference-metrics{margin:20px 0;font-size:13px}.product-reference-metrics>div{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #ffffff08}.product-reference-metrics dt{color:#aeb4bd}.product-reference-metrics dd{margin:0;color:#f2e9d4;font-variant-numeric:tabular-nums}.product-reference-metrics>div:first-child dd{color:#e0bc5a;font-weight:650}.etf-reference-detail{padding:24px;max-width:900px;margin:auto}.etf-amount-input{display:flex;align-items:center;border:1px solid #ffffff20;border-radius:8px;padding-right:12px}.etf-amount-input input{flex:1;min-width:0;border:0!important}.etf-amount-input button{padding:10px;flex-shrink:0}

.product-reference-list .product-phase{margin-left:auto;color:#d4ba79;font-size:11px;white-space:nowrap}.product-reference-list .product-reference-metrics dd{overflow-wrap:anywhere;text-align:right}

.quant-page{padding-bottom:130px}

.product-records{display:grid;gap:14px;margin-top:16px}.product-history-card{border:1px solid #d8b55130;border-radius:12px;background:#191a18;padding:20px}.record-card-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.record-card-head>div{display:flex;gap:10px;align-items:center;min-width:0}.record-card-head strong{font-size:15px}.record-state{font-size:12px;white-space:nowrap}.record-state.on{color:#31c0a0}.record-state.pending{color:#d4b665}.record-state.off{color:#a4a9b0}.record-times{font-size:12px;line-height:1.9}.record-times p{color:#a5acb4}.record-detail-link{display:block}.record-times .record-response,.record-response{white-space:pre-wrap;overflow-wrap:anywhere;color:#d4c1a0}.product-history-card>.btn{margin-top:16px}.record-end{font-size:12px;text-align:center;color:#909690;padding:12px}.record-history-link{display:block;text-align:right;font-size:13px;color:#d8b551;margin-top:18px}.product-record-detail{max-width:900px;margin:auto}.product-record-detail .product-reference-metrics{margin-block:24px}.income-card{display:flex;align-items:center;gap:16px;font-size:12px}.income-card strong{margin-left:auto;color:#48c5a3;font-size:20px}.income-card time{color:#a5acb4}.diagnosis-history{padding:20px}.diagnosis-result{margin-top:14px}.diagnosis-result time{font-size:11px;color:#909aa5}.diagnosis-response{margin-top:16px;padding-top:16px;border-top:1px solid #ffffff12;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#d8dde4;line-height:1.8}.diagnosis-history .record-empty>p{font-size:12px;margin-top:12px;color:#9299a3}

.loan-description{margin-top:14px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.purchase-context{font-size:12px;line-height:1.7;color:#aeb4bd}.product-reference-list .product-tile{min-width:0}

.ipo-profit-summary{padding:18px 0 24px}.ipo-profit-summary>div{display:flex;gap:48px;margin-top:16px}.ipo-profit-summary small{display:block;color:var(--muted);margin-bottom:8px}.ipo-profit-summary strong{font-size:22px}.ipo-position-search{display:flex;align-items:center;border:1px solid #514421;border-radius:6px;padding:8px 12px;margin:12px 0}.ipo-position-search label{display:flex;align-items:center;gap:10px;flex:1}.ipo-position-search input{width:100%;background:transparent;border:0;color:inherit;padding:5px}.ipo-position-search button{background:transparent;border:0;color:inherit}.ipo-position-card .record-card-head small{display:block;margin-top:6px;color:var(--muted)}.record-position-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.position-unavailable{opacity:.45}.ipo-position-card .positive,.ipo-profit-summary .positive{color:#21c8ab}.ipo-position-card .negative,.ipo-profit-summary .negative{color:#ec666f}

.ipo-position-search>label{margin:0;min-width:0}.ipo-position-search>label>input{margin:0;min-height:28px;height:28px;font-size:13px}

.quote-retry{background:none;border:1px solid #5b4d29;border-radius:5px;color:#d8b551;padding:4px 12px;font-size:12px;cursor:pointer}.quote-retry[hidden]{display:none}.order-submit:disabled{opacity:.45;cursor:not-allowed}

.account-identity .account-type{font-size:12px;font-weight:400;color:#aeb4bd;margin-left:auto}

/* Keep the support navigation slot clear of the account link. */
body:has(.reference-home) .reference-nav .floating-help{right:auto}
@media(max-width:760px){
 .reference-nav{height:calc(72px + env(safe-area-inset-bottom));padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .workspace{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 input:not([type=checkbox]):not([type=radio]),select,textarea,[contenteditable=true]{font-size:16px}
 .reference-chart-actions{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}
