/* Apple-led workspace refinement. Chain accents remain user configurable. */
body{--surface:#fff;--canvas:#f5f6f8;--ink:#20252c;--secondary:#626c78;--line:#e2e5ea;--soft:#edf0f3;--accent:#197662;background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;font-optical-sizing:auto;font-variant-numeric:tabular-nums}
:where(html[data-theme=dark]) body{--surface:#202328;--canvas:#16181c;--ink:#edf0f4;--secondary:#a5aebc;--line:#363b44;--soft:#2b3038;--accent:#71d3b5;background:var(--canvas);color:var(--ink);color-scheme:dark}
body aside{width:208px;height:100dvh;padding:24px 16px 14px;background:var(--surface);border-color:var(--line);overflow-y:auto;gap:2px}
body main{margin-left:208px;padding:0 28px;max-width:1880px;min-width:0}
body .brand{font-size:30px;margin:0 10px 28px;letter-spacing:-1.2px;color:var(--ink)}
body .nav{min-height:39px;padding:9px 12px;margin:1px 0;border-radius:9px;font-size:13px;color:var(--secondary);flex-shrink:0}
body .nav.selected,:where(html[data-theme=dark]) body .nav.selected{background:var(--soft);color:var(--ink);font-weight:650}
body .aside-bottom{padding:16px 10px 8px}body .identity-dock{margin-top:14px;border-color:var(--line)}
body header{height:72px;border-color:var(--line);font-size:13px;gap:12px}body header>div{gap:10px;flex-wrap:wrap}
body button,body input,body select,body textarea{font-size:13px;border-radius:9px;border-color:var(--line);color:var(--ink);background:var(--surface)}
body button{transition:transform .12s ease-out,background-color .12s ease-out;touch-action:manipulation}
body button:active:not(:disabled){transform:scale(.98)}body button:focus-visible,body a:focus-visible,body input:focus-visible,body select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body .primary,:where(html[data-theme=dark]) body .primary{background:#237e68;color:#fff;border-color:#237e68}
body .toolbar{gap:8px;margin-bottom:14px}body .toolbar button,body .toolbar input,body .toolbar select{min-height:36px;padding:7px 11px}
body .segmented,:where(html[data-theme=dark]) body .segmented{background:var(--soft);gap:2px;padding:4px;border-radius:10px}
body .segmented button{font-size:12px;min-height:30px;padding:5px 10px;color:var(--secondary)}body .segmented .active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #00000012}
body .stats,:where(html[data-theme=dark]) body .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:10px 0 24px;padding:16px 0;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
body .stats article{display:block;padding:0 20px;border-right:1px solid var(--line)}body .stats article:last-child{border:0}
body .stats label,body .stats small{display:block;color:var(--secondary);font-size:12px}body .stats strong{display:block;font-size:24px;font-weight:600;letter-spacing:-.6px;line-height:1.3;margin:6px 0}
body .section-top{margin-bottom:18px}body h2{font-size:21px;font-weight:650;letter-spacing:-.5px}body .section-top p{font-size:13px;color:var(--secondary);line-height:1.65}
body .panel,:where(html[data-theme=dark]) body .panel{border-color:var(--line);background:var(--surface);border-radius:13px}
body .trade-card,:where(html[data-theme=dark]) body .trade-card{background:var(--surface);border-top-color:var(--line);border-right-color:var(--line);border-bottom-color:var(--line);border-radius:13px;padding:18px 20px;margin-bottom:12px;box-shadow:0 1px 2px #00000003;overflow-wrap:anywhere}
body .card-enter{animation:none}body .card-top{gap:10px}body .identity-line{min-width:0;flex-wrap:wrap;gap:5px}body .avatar{width:36px;height:36px;flex-shrink:0}body .account-name{font-size:14px;font-weight:650}
body .card-top small,body .identity-detail,body .card-meta{font-size:12px;color:var(--secondary)}body .identity-detail{gap:8px;margin-top:8px}body .rank-unavailable{font-size:11px;color:var(--secondary)}body .rank-badge,body .clan-badge{font-size:11px}
body .trade-main{gap:14px;margin:15px 0 13px}body .trade-main>button,body .trade-main strong{font-size:22px;letter-spacing:-.5px}body .trade-main span{font-size:12px;color:var(--secondary)}body .pill{font-size:11px;margin-left:3px}
body .card-actions{gap:6px 12px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}body .card-actions button,body .card-actions a{font-size:12px;color:var(--secondary)}body .source-badge{font-size:11px}body .profit-case,body .account-note{font-size:12px;line-height:1.65}body .thesis{font-size:14px;line-height:1.75;color:var(--ink)}
body .filter-line,body .check,body .status,body .signal-panel p,body .note p,body .settings-block p,body dialog p{font-size:12px;color:var(--secondary)}body .status.live{color:var(--accent)}body .note,:where(html[data-theme=dark]) body .note{background:var(--soft)}
body dialog,:where(html[data-theme=dark]) body dialog{padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #00000026}body dialog::backdrop{background:#10172066;backdrop-filter:blur(4px)}
body .settings-block,body .watch-row{border-color:var(--line)}body .form-grid>label{font-size:13px;color:var(--secondary)}body footer{font-size:11px;color:var(--secondary)}
.mobile-menu{display:none}body #mobile-nav{margin:0;width:min(320px,90vw);max-width:90vw;height:100dvh;max-height:100dvh;border-radius:0 18px 18px 0;padding:0;overflow:hidden}body #mobile-nav aside{position:static;width:100%;height:calc(100dvh - 54px);border:0;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap}body .drawer-close{display:block;margin:10px 16px 0 auto;min-height:40px}
@media(hover:hover) and (pointer:fine){body button:hover:not(:disabled){background:var(--soft)}body .primary:hover{background:#196952}body .nav:hover{color:var(--ink)}}
@media(max-width:1100px){body .columns{grid-template-columns:minmax(0,1fr)}body .right-column{display:none}}
@media(max-width:760px){body main{margin:0;padding:0 14px}body header{height:auto;min-height:68px;justify-content:space-between;padding:10px 0}body header>span{display:none}body header>div{justify-content:flex-end;gap:6px}body header button{font-size:12px;min-height:40px;padding:7px 9px}body .mobile-menu{display:block;flex-shrink:0}body #mobile-nav .nav{width:100%;min-height:42px}body #mobile-nav .nav span,body #mobile-nav .aside-bottom,body #mobile-nav aside>.eyebrow{display:block}body .stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px;padding:16px 0}body .stats article:nth-child(2){border:0}body .stats strong{font-size:22px}body .section-top{align-items:flex-start;gap:10px}body .toolbar>input{flex-basis:100%;min-width:0}body .toolbar input,body .toolbar select,body .toolbar button{min-height:42px}body .segmented{max-width:100%;flex-wrap:nowrap;overflow-x:auto}body .segmented button{flex-shrink:0;min-height:36px}body .trade-card{padding:15px 13px}body .card-top{flex-direction:column;align-items:flex-start;gap:5px}body .trade-main{gap:10px}body .card-actions button,body .card-actions a{min-height:36px;display:inline-flex;align-items:center}body .form-grid{grid-template-columns:1fr}body dialog{padding:18px}body .column-board{max-width:100%}body input,body select,body textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){body dialog::backdrop{backdrop-filter:none;background:#101720cc}}
body input[type=checkbox],body .toolbar input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;padding:0;flex:0 0 16px;accent-color:var(--accent)}body .check{gap:7px}body #mobile-nav .brand{display:flex;margin-bottom:18px}body aside>.nav{min-height:35px;padding:7px 12px}body aside>.brand{margin-bottom:20px}body .identity-dock{flex-shrink:0}
:where(html[data-theme=dark]) body aside,:where(html[data-theme=dark]) body button,:where(html[data-theme=dark]) body input,:where(html[data-theme=dark]) body select,:where(html[data-theme=dark]) body textarea{background:var(--surface);color:var(--ink);border-color:var(--line)}:where(html[data-theme=dark]) body .brand{color:var(--ink)}:where(html[data-theme=dark]) body .trade-card button{background:transparent}:where(html[data-theme=dark]) body .chain-tag,:where(html[data-theme=dark]) body .pill{background:var(--soft);color:var(--secondary)}:where(html[data-theme=dark]) body .segmented button{background:transparent}:where(html[data-theme=dark]) body .segmented .active{background:var(--surface)}body .identity-bar{border-color:var(--line)}body .quick-toolbar{border-color:var(--line)}:where(html[data-theme=dark]) body .primary{background:#237e68;color:white}body #mobile-nav .aside-bottom p,body #mobile-nav .aside-bottom>small{display:block}body #mobile-nav .identity-bar{display:flex;flex-direction:column;align-items:flex-start;gap:7px}body #mobile-nav .aside-bottom{margin-top:auto}

@media(max-width:760px){body .stats small{display:none}body .stats{row-gap:12px;margin-bottom:18px}body .stats strong{margin-bottom:0}body .status{font-size:11px}}
