/* Cryptom: an original product shell using the existing read-only domain views. */
.cryptom-nav-backdrop,.cryptom-menu-toggle,.cryptom-top-connect{display:none}
html[data-design="cryptom"]{color-scheme:dark;--bg:#0b0e14;--surface:#151a23;--surface2:#1c2330;--line:#232d3f;--text:#f3f4f6;--muted:#9ca3af;--cyan:#3b82f6;--cyan2:#60a5fa;--green:#10b981;--red:#ef4444;--yellow:#f59e0b;--blue:#3b82f6;--radius:16px;font-family:"Plus Jakarta Sans",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-design="cryptom"] body{background:var(--bg);color:var(--text)}
html[data-design="cryptom"] :is(button,a,input,select,summary,[role="button"]):focus-visible{outline:2px solid #93c5fd;outline-offset:3px}
html[data-design="cryptom"] .app-shell,
html[data-design="cryptom"] .app-shell:has(.sidebar:not(.pinned):is(:hover,:focus-within)){grid-template-columns:260px minmax(0,1fr);background:var(--bg)}
html[data-design="cryptom"] .sidebar,
html[data-design="cryptom"] .sidebar.pinned,
html[data-design="cryptom"] .sidebar:not(.pinned):is(:hover,:focus-within){position:sticky;top:0;z-index:21;width:260px;height:100vh;padding:0 14px;border-right:1px solid var(--line);background:var(--surface);box-shadow:none;overflow:hidden}
html[data-design="cryptom"] .sidebar-head{display:flex;align-items:center;min-height:78px;padding:0 10px;border-bottom:1px solid var(--line)}
html[data-design="cryptom"] .sidebar-head .brand{position:static;display:flex;gap:11px;align-items:center;font-size:18px;font-weight:800;letter-spacing:-.035em}
html[data-design="cryptom"] .sidebar .brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#60a5fa,#1d4ed8);color:#fff;font-size:20px;box-shadow:0 8px 20px #1d4ed830}
html[data-design="cryptom"] .sidebar-pin{display:none}
html[data-design="cryptom"] .sidebar nav{display:grid!important;gap:4px;min-height:0;margin-top:18px;overflow-y:auto;overflow-x:hidden}
html[data-design="cryptom"] .sidebar:not(.pinned) .sidebar-label{display:initial!important}
html[data-design="cryptom"] .sidebar .nav-link,
html[data-design="cryptom"] .sidebar:not(.pinned) .nav-link{display:flex;justify-content:flex-start!important;gap:13px;width:100%;min-height:43px;padding:10px 12px;border:1px solid transparent;border-radius:10px;color:#a6afbf;font-size:13px;font-weight:650;text-align:left;transition:background .15s,color .15s,border-color .15s}
html[data-design="cryptom"] .sidebar .nav-link>span:first-child{width:20px;text-align:center;color:#8494ae;font-size:18px}
html[data-design="cryptom"] .sidebar .nav-link:is(:hover,:focus-visible){background:#1c2738;color:#fff}
html[data-design="cryptom"] .sidebar .nav-link.active{border-color:#3b82f633;background:#3b82f61d;color:#93c5fd;box-shadow:inset 3px 0 #3b82f6}
html[data-design="cryptom"] .sidebar .nav-link.active>span:first-child{color:#60a5fa}
html[data-design="cryptom"] .sidebar-foot{padding:16px 2px 20px;border-top:1px solid var(--line)}
html[data-design="cryptom"] .sidebar:not(.pinned) .read-only{justify-content:flex-start;padding:12px}
html[data-design="cryptom"] .read-only{border:1px solid #1e4d3e;border-radius:10px;background:#0e2924;color:#d1fae5}
html[data-design="cryptom"] .workspace{min-width:0;background:var(--bg)}
html[data-design="cryptom"] .topbar{position:sticky;top:0;z-index:20;min-height:78px;height:auto;padding:14px clamp(18px,3vw,36px);border-bottom:1px solid var(--line);background:#0b0e14ed;backdrop-filter:blur(16px);gap:14px}
html[data-design="cryptom"] .topbar-identity{display:flex;align-items:center;gap:12px;min-width:0}
html[data-design="cryptom"] .topbar .eyebrow{margin:0 0 3px;color:#7f8da6;font-size:10px;letter-spacing:.12em}
html[data-design="cryptom"] .topbar h2{overflow:hidden;margin:0;color:#f3f4f6;font-size:21px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}
html[data-design="cryptom"] .top-actions{display:flex;align-items:center;gap:9px;min-width:0}
html[data-design="cryptom"] .cryptom-top-connect{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
html[data-design="cryptom"] .design-toggle,
html[data-design="cryptom"] .language-toggle{min-height:38px;min-width:46px;padding:7px 11px;border:1px solid #344259;border-radius:9px;background:#1b2534;color:#cbd5e1;font-size:12px;font-weight:700}
html[data-design="cryptom"] .design-toggle:hover,
html[data-design="cryptom"] .language-toggle:hover{border-color:#60a5fa;color:#fff}
html[data-design="cryptom"] .freshness{white-space:nowrap;color:#9ca3af;font-size:11px}
html[data-design="cryptom"] .user-menu>summary{min-height:38px;border-color:#344259;background:#1b2534}
html[data-design="cryptom"] .user-avatar{background:#1d4ed833;color:#93c5fd}
html[data-design="cryptom"] .user-menu-panel{border-color:#344259;background:#1a2130}
html[data-design="cryptom"] #content{max-width:1800px;margin:0 auto;padding:24px clamp(18px,3vw,36px) 72px}
html[data-design="cryptom"] .eyebrow{color:#60a5fa}
html[data-design="cryptom"] .subtle,
html[data-design="cryptom"] .freshness-line{color:#9ca3af}
html[data-design="cryptom"] .button{border-radius:9px;font-weight:700}
html[data-design="cryptom"] .button.primary{border-color:#3b82f6;background:#3b82f6;color:#fff;box-shadow:none}
html[data-design="cryptom"] .button.primary:hover{background:#2563eb}
html[data-design="cryptom"] .button.secondary{border-color:#344259;background:#1c2330;color:#e5e7eb}
html[data-design="cryptom"] .button.secondary:hover{border-color:#60a5fa;background:#233149}
html[data-design="cryptom"] .text-button{color:#93c5fd}
html[data-design="cryptom"] .filter-bar{margin-bottom:18px;padding:12px 14px;border-color:var(--line);border-radius:13px;background:var(--surface);box-shadow:none}
html[data-design="cryptom"] .filter-popover summary,
html[data-design="cryptom"] :is(.compact-select select,.compact-select input,.workspace-search input,.history-search input,.settings-select,.password-form input,.activity-tags input,.form-grid input,.form-grid select,.auth-card input){min-height:40px;border:1px solid #344259;border-radius:9px;background:#101722;color:#f3f4f6}
html[data-design="cryptom"] .filter-popover summary{min-width:150px;font-weight:650}
html[data-design="cryptom"] .filter-popover[open] summary{border-color:#60a5fa}
html[data-design="cryptom"] .filter-menu,
html[data-design="cryptom"] .user-menu-panel{border-color:#344259;background:#1b2534;box-shadow:0 20px 48px #0009}
html[data-design="cryptom"] .filter-option:hover{background:#26344a}
html[data-design="cryptom"] .filter-option input{accent-color:#3b82f6}
html[data-design="cryptom"] .filter-actions button{background:#26344a;color:#bfdbfe}
html[data-design="cryptom"] .filter-actions .filter-apply{background:#3b82f6;color:#fff;box-shadow:none}
html[data-design="cryptom"] .workspace-toolbar{position:static;margin-bottom:18px;border-color:var(--line);background:var(--surface);backdrop-filter:none}
html[data-design="cryptom"] .period-switch{display:flex;width:max-content;margin-bottom:16px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
html[data-design="cryptom"] .period-switch button{border-radius:7px;color:#aeb9cb}
html[data-design="cryptom"] .period-switch button.active{background:#3b82f6;color:#fff}
html[data-design="cryptom"] .metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-design="cryptom"] .metric,
html[data-design="cryptom"] .workspace-card,
html[data-design="cryptom"] .workspace-panel,
html[data-design="cryptom"] .panel{border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 8px 28px #0000001a}
html[data-design="cryptom"] .metric{min-height:118px;padding:17px}
html[data-design="cryptom"] .metric.primary-metric{grid-column:span 2;border-color:#3b82f655;background:linear-gradient(135deg,#172840,#151a23)}
html[data-design="cryptom"] .metric p{margin-bottom:12px;color:#9ca3af;font-size:11px}
html[data-design="cryptom"] .metric strong{font-size:clamp(21px,2.1vw,30px);font-variant-numeric:tabular-nums}
html[data-design="cryptom"] .dashboard-grid{grid-template-columns:minmax(0,2fr) minmax(280px,.82fr);gap:12px;margin-top:12px}
html[data-design="cryptom"] .panel{padding:18px}
html[data-design="cryptom"] .chart-panel{min-height:390px}
html[data-design="cryptom"] .chart-grid{stroke:#29354a}
html[data-design="cryptom"] .chart-line{stroke:#3b82f6}
html[data-design="cryptom"] .chart-dot{stroke:#60a5fa}
html[data-design="cryptom"] .equity-tooltip,
html[data-design="cryptom"] .candle-tooltip{border-color:#344259;background:#182231f2;color:#f3f4f6}
html[data-design="cryptom"] .candle-tooltip-grid span{background:#243146}
html[data-design="cryptom"] .health-panel{background:#151a23}
html[data-design="cryptom"] .health-row{border-color:#232d3f}
html[data-design="cryptom"] .section-block{margin-top:26px}
html[data-design="cryptom"] .section-heading{margin-bottom:12px}
html[data-design="cryptom"] .section-heading h3,
html[data-design="cryptom"] .panel h3{font-size:16px}
html[data-design="cryptom"] .accounts-table,
html[data-design="cryptom"] .positions-table,
html[data-design="cryptom"] .workspace-data-table{border:1px solid var(--line);border-radius:14px;background:var(--surface)}
html[data-design="cryptom"] .table-row,
html[data-design="cryptom"] .workspace-data-row{border-color:#232d3f}
html[data-design="cryptom"] .table-row.header,
html[data-design="cryptom"] .workspace-data-row.header{background:#1b2432;color:#9ca3af}
html[data-design="cryptom"] .workspace-data-row.activity-row:hover,
html[data-design="cryptom"] .account-row[role="button"]:hover{background:#1e2b3e}
html[data-design="cryptom"] .exchange-badge{border-radius:8px;background:#3b82f626;color:#93c5fd}
html[data-design="cryptom"] .workspace-heading{margin-bottom:17px}
html[data-design="cryptom"] .workspace-heading h2{font-size:clamp(22px,2.5vw,30px)}
html[data-design="cryptom"] .count-badge{border-color:#344259;border-radius:9px;background:#1c2330;color:#bfdbfe}
html[data-design="cryptom"] .account-card-grid{grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px}
html[data-design="cryptom"] .connection-card-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
html[data-design="cryptom"] .workspace-card{padding:18px}
html[data-design="cryptom"] .account-card{border-left:3px solid #3b82f6;transition:border-color .15s,transform .15s,box-shadow .15s}
html[data-design="cryptom"] .account-card::before{display:none}
html[data-design="cryptom"] .account-card--spot{border-left-color:#10b981}
html[data-design="cryptom"] .account-card:hover,
html[data-design="cryptom"] .account-card:focus-visible{border-color:#60a5fa;transform:translateY(-2px);box-shadow:0 16px 38px #0005}
html[data-design="cryptom"] .account-card .workspace-card-head strong{font-size:17px;letter-spacing:-.02em}
html[data-design="cryptom"] .account-badges{margin-top:7px}
html[data-design="cryptom"] .market-badge,
html[data-design="cryptom"] .environment-badge{padding:5px 8px;border-radius:7px;font-size:10px;letter-spacing:.04em}
html[data-design="cryptom"] .market-badge--spot{background:#10b9811d;color:#6ee7b7}
html[data-design="cryptom"] .market-badge--futures{background:#3b82f621;color:#93c5fd}
html[data-design="cryptom"] .environment-badge{background:#273142;color:#cbd5e1}
html[data-design="cryptom"] .environment-badge--local_demo,
html[data-design="cryptom"] .environment-badge--exchange_demo{background:#5b3a122e;color:#fbbf24}
html[data-design="cryptom"] .account-primary{margin:16px 0 12px}
html[data-design="cryptom"] .account-primary>small{font-size:11px}
html[data-design="cryptom"] .account-primary-result strong{font-size:27px}
html[data-design="cryptom"] .account-primary-result span{font-size:14px}
html[data-design="cryptom"] .account-periods{padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-design="cryptom"] .account-period{grid-template-columns:minmax(58px,.6fr) minmax(96px,1fr) auto;min-height:25px;gap:8px;padding:3px 0;border:0;background:transparent}
html[data-design="cryptom"] .account-period small{color:#9ca3af;font-size:11px}
html[data-design="cryptom"] .account-period strong{font-size:12px}
html[data-design="cryptom"] .account-period span{font-size:11px}
html[data-design="cryptom"] .account-risk-grid{gap:12px;margin-top:8px}
html[data-design="cryptom"] .account-compact-metric{padding:6px 0;background:transparent}
html[data-design="cryptom"] .account-compact-metric small{color:#9ca3af;font-size:11px}
html[data-design="cryptom"] .account-compact-metric strong{font-size:12px}
html[data-design="cryptom"] .account-activity-preview{border-color:var(--line);padding:10px 0}
html[data-design="cryptom"] .account-card-footer{margin-top:9px}
html[data-design="cryptom"] .status-pill{border-color:#344259;background:#1c2735}
html[data-design="cryptom"] .workspace-tabs button,
html[data-design="cryptom"] .equity-ranges button{background:#202a3a;color:#aeb9cb}
html[data-design="cryptom"] .workspace-tabs button.active,
html[data-design="cryptom"] .equity-ranges button.active{background:#3b82f633;color:#93c5fd;box-shadow:inset 0 -2px #3b82f6}
html[data-design="cryptom"] .comparison-row,
html[data-design="cryptom"] .capability-row,
html[data-design="cryptom"] .diagnostics{border-color:var(--line)}
html[data-design="cryptom"] .risk-warning{background:#1e2633}
html[data-design="cryptom"] .risk-warning.high{border-color:#ef4444}
html[data-design="cryptom"] .risk-warning.medium{border-color:#f59e0b}
html[data-design="cryptom"] .pnl-calendar button{border-color:#344259;background:#1c2533;color:#e5e7eb}
html[data-design="cryptom"] .pnl-calendar button.positive-day{border-color:#10b98180;background:#103127}
html[data-design="cryptom"] .pnl-calendar button.negative-day{border-color:#ef444480;background:#311d25}
html[data-design="cryptom"] .connection-note{color:#aeb9cb}
html[data-design="cryptom"] .capability-status.healthy{background:#0e3126;color:#6ee7b7}
html[data-design="cryptom"] .capability-status.partial,
html[data-design="cryptom"] .capability-status.syncing,
html[data-design="cryptom"] .capability-status.stale{background:#3b2a16;color:#fbbf24}
html[data-design="cryptom"] .capability-status.error{background:#3e1e29;color:#fca5a5}
html[data-design="cryptom"] .settings-select,
html[data-design="cryptom"] .password-form input{border-color:#344259;background:#101722;color:#f3f4f6}
html[data-design="cryptom"] .equity-candle-dialog,
html[data-design="cryptom"] dialog{border:1px solid #344259;border-radius:16px;background:#151a23;color:#f3f4f6;box-shadow:0 30px 90px #000a}
html[data-design="cryptom"] dialog::backdrop{background:#02040bd9}
html[data-design="cryptom"] .equity-candle-dialog .dialog-close{border-color:#344259;background:#1c2330;color:#fff}
html[data-design="cryptom"] .candle-contributors,
html[data-design="cryptom"] .candle-cashflows{border-color:#344259;background:#111a26}
html[data-design="cryptom"] .positive{color:#34d399!important}
html[data-design="cryptom"] .negative{color:#fb7185!important}
html[data-design="cryptom"] .showcase-banner{border:1px solid #3b82f666;border-radius:14px;background:linear-gradient(110deg,#142a40,#13202d);color:#e5f1ff}
html[data-design="cryptom"] .showcase-banner .button.primary{background:#2563eb}
html[data-design="cryptom"] .detail-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
html[data-design="cryptom"] .cryptom-account-summary{margin:16px 0;padding:18px;border-color:#3b82f655}
html[data-design="cryptom"] .cryptom-account-summary .account-primary{margin:12px 0}
html[data-design="cryptom"] .cryptom-account-summary .account-periods{max-width:520px}
html[data-design="cryptom"] .fx-orders-section{margin:22px 0;padding:18px}
html[data-design="cryptom"] .fx-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
html[data-design="cryptom"] .fx-section-heading h3{margin:2px 0}
html[data-design="cryptom"] .fx-account-order-list{display:grid;gap:8px;margin-top:12px}
html[data-design="cryptom"] .fx-account-order{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#111823}
html[data-design="cryptom"] .fx-account-order>div:first-child{display:grid;gap:4px;min-width:0}
html[data-design="cryptom"] .fx-account-order span{color:#9ca3af;font-size:12px}
html[data-design="cryptom"] .fx-account-order-actions{display:flex;gap:6px;flex-wrap:wrap}
html[data-design="cryptom"] .fx-account-order-history{display:grid;gap:5px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
html[data-design="cryptom"] .auth-story{background:radial-gradient(circle at 72% 44%,#1e3a66 0,transparent 37%),linear-gradient(135deg,#0b0e14,#131d2d)}
html[data-design="cryptom"] .auth-story::after{border-color:#3b82f61a;box-shadow:0 0 0 80px #3b82f608,0 0 0 160px #3b82f605}
html[data-design="cryptom"] .auth-story h1 span{color:#60a5fa}
html[data-design="cryptom"] .auth-panel{background:#10151e}
html[data-design="cryptom"] .auth-tab.active{border-color:#3b82f6}
html[data-design="cryptom"] .auth-card input{background:#151a23}
html[data-design="cryptom"] .auth-card input:focus,
html[data-design="cryptom"] .form-grid input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #3b82f624}
@media(max-width:1180px){
html[data-design="cryptom"] .metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-design="cryptom"] .metric.primary-metric{grid-column:span 2}
html[data-design="cryptom"] .topbar .eyebrow{display:none}
}
@media(max-width:900px){
html[data-design="cryptom"] .dashboard-grid{grid-template-columns:1fr}
html[data-design="cryptom"] .cryptom-top-connect{display:none}
html[data-design="cryptom"] .freshness{display:none}
}
@media(max-width:820px){
html[data-design="cryptom"] .app-shell{display:block}
html[data-design="cryptom"] .sidebar,
html[data-design="cryptom"] .sidebar.pinned,
html[data-design="cryptom"] .sidebar:not(.pinned):is(:hover,:focus-within){position:fixed;top:0;left:0;right:auto;bottom:auto;z-index:42;width:min(300px,85vw);height:100dvh;padding:0 14px;border-right:1px solid #344259;border-top:0;display:flex;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 50px #0008}
html[data-design="cryptom"].cryptom-menu-open .sidebar{transform:translateX(0)}
html[data-design="cryptom"] .sidebar .sidebar-head,
html[data-design="cryptom"] .sidebar .sidebar-foot{display:flex}
html[data-design="cryptom"] .sidebar .sidebar-foot{display:grid}
html[data-design="cryptom"] .sidebar nav{display:grid!important;overflow-y:auto;overflow-x:hidden}
html[data-design="cryptom"] .sidebar nav .nav-link{min-width:0}
html[data-design="cryptom"] .workspace{padding-bottom:0}
html[data-design="cryptom"] .topbar{min-height:66px;padding:12px 16px}
html[data-design="cryptom"] .cryptom-menu-toggle{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border:1px solid #344259;border-radius:9px;background:#1c2330;color:#e5e7eb;font-size:20px}
html[data-design="cryptom"] .cryptom-nav-backdrop:not([hidden]){position:fixed;inset:0;z-index:41;display:block;width:100vw;height:100dvh;border:0;background:#02040ba8}
html[data-design="cryptom"] .topbar h2{font-size:19px}
html[data-design="cryptom"] #content{padding:18px 16px 54px}
}
@media(max-width:700px){
html[data-design="cryptom"] .metrics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
html[data-design="cryptom"] .metric{min-width:0}
html[data-design="cryptom"] .metric.primary-metric{grid-column:1/-1}
html[data-design="cryptom"] .account-card-grid,
html[data-design="cryptom"] .connection-card-grid{grid-template-columns:1fr}
html[data-design="cryptom"] .account-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-design="cryptom"] .workspace-data-table{border:0;background:transparent}
html[data-design="cryptom"] .workspace-data-row{border-color:#344259;background:#151a23}
}
@media(max-width:480px){
html[data-design="cryptom"] .topbar{gap:6px}
html[data-design="cryptom"] .top-actions{gap:5px}
html[data-design="cryptom"] .top-actions .design-toggle{min-width:0;padding:6px 8px;font-size:11px}
html[data-design="cryptom"] .top-actions .language-toggle{min-width:36px;padding:6px}
html[data-design="cryptom"] .user-menu>summary{padding:4px}
html[data-design="cryptom"] .topbar h2{font-size:17px}
html[data-design="cryptom"] #content{padding:16px 12px 46px}
html[data-design="cryptom"] .metrics-grid{gap:8px}
html[data-design="cryptom"] .metric{min-height:108px;padding:13px}
html[data-design="cryptom"] .metric strong{font-size:21px}
html[data-design="cryptom"] .workspace-card{padding:15px}
html[data-design="cryptom"] .account-period{grid-template-columns:minmax(48px,.6fr) minmax(90px,1fr) auto;gap:5px}
html[data-design="cryptom"] .account-risk-grid{gap:8px}
html[data-design="cryptom"] .fx-account-order{align-items:stretch;flex-direction:column}
}
