/* Bursátil — translucent navigation, calm surfaces and clear financial data. */
:root { --glass-shadow: 0 18px 60px #2649730a, inset 0 1px 0 #ffffffed, inset 1px 0 0 #ffffff75; --input: #ffffff69; --hover: #ffffff80; --sidebar-active: #ffffffb8; }
[data-theme="dark"] { color-scheme: dark; --text: #e5edf9; --muted: #a3b1c8; --accent: #92b4ff; --accent-soft: #294775; --positive: #7cd9b4; --positive-soft: #203e3d; --negative: #f59aab; --surface: #172438e8; --surface-solid: #19283e; --glass: #15243dbc; --border: #adcae82b; --divider: #bdd5ff16; --shadow: 0 8px 32px #00000010, inset 0 1px 0 #d6e5ff0d; --glass-shadow: 0 18px 60px #00000020, inset 0 1px 0 #d6e5ff25; --input: #101e344d; --hover: #a4c1ff12; --sidebar-active: #8eb6fa22; background: #0b1426; color: var(--text); }
body { font-size: var(--font-body); line-height: 1.5; color: var(--text); }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ambient { position: fixed; z-index: -1; inset: 0; overflow: hidden; background: linear-gradient(135deg, #e9edf5 0%, #e9eff8 47%, #edf2f8 80%, #e6edf5 100%); pointer-events: none; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.orb-one { width: 66vw; height: 52vw; right: -22vw; top: -26vw; background: #77aef26b; animation: ambient-blue-drift 28s ease-in-out infinite alternate; }
.orb-two { width: 45vw; height: 50vw; left: -29vw; top: 16vh; background: #a4aff365; animation: ambient-lilac-drift 34s ease-in-out -12s infinite alternate; }
.orb-three { width: 55vw; height: 28vw; bottom: -18vw; left: 22vw; background: #a7caff70; animation: ambient-lower-drift 32s ease-in-out -8s infinite alternate; }
.ambient-ribbon { position: absolute; width: 110vw; height: 48vw; top: 17vh; left: 9vw; transform: rotate(-32deg); border-radius: 48%; border: 65px solid #ffffff42; box-shadow: 0 -30px 60px #f6faff7a, inset 0 30px 60px #92b5e225; filter: blur(9px); animation: ambient-glass-drift 40s ease-in-out -10s infinite alternate; }
@keyframes ambient-blue-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-10vw, 10vh, 0) scale(1.1); }
}
@keyframes ambient-lilac-drift {
  from { transform: translate3d(0, -3vh, 0) scale(1); }
  to { transform: translate3d(8vw, 12vh, 0) scale(1.12); }
}
@keyframes ambient-lower-drift {
  from { transform: translate3d(-5vw, 0, 0) scale(1); }
  to { transform: translate3d(7vw, -10vh, 0) scale(1.15); }
}
@keyframes ambient-glass-drift {
  from { transform: translate3d(-3vw, 2vh, 0) rotate(-34deg); }
  to { transform: translate3d(4vw, -4vh, 0) rotate(-26deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-orb, .ambient-ribbon { animation: none; }
}
[data-theme="dark"] .ambient { background: linear-gradient(135deg, #11182a, #14243b 55%, #101a2b); }
[data-theme="dark"] .ambient-orb { opacity: .25; }
[data-theme="dark"] .ambient-ribbon { border-color: #83b3ff06; box-shadow: 0 -30px 60px #3e7ccb13, inset 0 30px 60px #7aa8e215; }
.glass { background: var(--glass); border: 1px solid var(--border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 19px; box-shadow: var(--shadow); min-width: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; flex-shrink: 0; border-radius: 11px; background: none; border: 0; color: var(--muted); text-decoration: none; transition: background .18s, color .18s; }
.icon-button:hover { background: var(--hover); color: var(--accent); }
.button { min-height: 43px; border: 1px solid var(--divider); padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; font-size: var(--font-body); font-weight: 550; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: #3763df; background: linear-gradient(180deg, #5180f4, #3766e7); box-shadow: 0 4px 10px #3266ed24, inset 0 1px 0 #ffffff2e; }
.button-primary:hover { background: linear-gradient(180deg, #6390fc, #3766e7); box-shadow: 0 5px 15px #3266ed40; }
.button-secondary { background: var(--input); }
.button-glass { background: var(--glass); border-color: var(--border); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 28px; font-weight: 650; letter-spacing: -1.4px; }
.brand img { filter: drop-shadow(0 4px 6px #3065e52a); }
.brand-period { color: var(--accent); }
.avatar { width: 39px; height: 39px; border-radius: 50%; background: linear-gradient(145deg, #fafcff, #cbd9f3); border: 2px solid #ffffffbc; color: #526891; font-size: var(--font-body); font-weight: 650; display: grid; place-items: center; flex-shrink: 0; text-decoration: none; }
.status-dot, .mini-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--positive); flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; border-radius: 7px; font-size: var(--font-small); font-weight: 550; white-space: nowrap; }
.demo-badge { background: var(--accent-soft); color: var(--accent); font-size: var(--font-small); letter-spacing: .8px; }
.demo-mode { color: var(--positive); background: var(--glass); border: 1px solid var(--border); padding: 7px 11px; box-shadow: var(--shadow); font-size: var(--font-small); }
.neutral-badge { background: var(--input); border: 1px solid var(--divider); color: var(--muted); }
.positive { color: var(--positive); }
.muted { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-small); color: var(--muted); text-decoration: none; }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 15px; height: 15px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: var(--surface-solid); color: var(--text); padding: 10px 18px; border-radius: 10px; }
.skip-link:focus { top: 15px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px); border-radius: 14px; padding: 15px 21px; display: flex; align-items: center; gap: 10px; font-size: var(--font-body); background: var(--surface-solid); animation: toast-in .2s ease-out; }
.toast .icon { color: var(--positive); }
@keyframes toast-in { from { opacity: 0; margin-bottom: -8px; } to { opacity: 1; margin-bottom: 0; } }

/* Entry */
.login-page { min-height: 100svh; display: flex; flex-direction: column; padding: 0 5%; max-width: 1700px; margin: 0 auto; }
.login-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; }
.preview-label { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: var(--font-body); }
.preview-label .status-dot { background: #7395c8; }
.login-main { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 90px; width: 100%; max-width: 1140px; margin: auto; padding: 40px 0 65px; }
.eyebrow { font-size: var(--font-caption); letter-spacing: 2px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 11px; }
.tiny-line { display: inline-block; width: 22px; height: 1px; background: #6e8bb4; }
.login-intro h1 { font-size: clamp(48px, 5.4vw, 77px); font-weight: 520; letter-spacing: -3.6px; line-height: 1.06; margin: 24px 0; }
.login-intro h1 > span { color: #547ce5; }
[data-theme="dark"] .login-intro h1 > span { color: #9abaff; }
.login-description { font-size: var(--font-section); line-height: 1.8; color: var(--muted); }
.login-visual { position: relative; max-width: 465px; margin: 44px 0 12px 3px; }
.preview-card { padding: 22px 25px 16px; border-radius: 20px; transform: rotate(-3deg); background: linear-gradient(135deg, #ffffff85, #f9fbff40); }
[data-theme="dark"] .preview-card { background: var(--glass); }
.preview-card-top { display: flex; align-items: center; justify-content: space-between; font-size: var(--font-small); color: var(--muted); }
.preview-card-top .icon { width: 15px; }
.preview-balance { font-size: 30px; letter-spacing: -1px; font-weight: 550; margin-top: 10px; display: flex; align-items: baseline; }
.preview-balance > span:first-child { font-size: 23px; color: var(--muted); }
.preview-profit { margin-left: auto; color: var(--positive); display: inline-flex; align-items: center; gap: 5px; font-size: var(--font-small); letter-spacing: 0; }
.preview-profit .icon { width: 13px; height: 13px; }
.preview-chart { width: 100%; height: 73px; margin: 14px 0 9px; overflow: visible; }
.preview-card-bottom { display: flex; justify-content: space-between; font-size: var(--font-caption); color: var(--muted); }
.floating-label { position: absolute; right: -21px; bottom: -21px; border-radius: 30px; padding: 12px 17px; font-size: var(--font-small); display: flex; align-items: center; gap: 8px; background: var(--surface); transform: rotate(2deg); box-shadow: 0 8px 25px #6f8bbb16, inset 0 1px 0 #ffffffb0; }
.floating-label .icon { color: var(--accent); width: 16px; height: 16px; }
.login-card { width: 100%; max-width: 424px; padding: 39px 35px 30px; border-radius: 28px; text-align: center; justify-self: end; position: relative; background: linear-gradient(130deg, #ffffffab, #ffffff57); box-shadow: 0 25px 70px #496c9e13, inset 0 1px 1px #fff, inset 1px 0 0 #ffffff90; }
[data-theme="dark"] .login-card { background: var(--glass); box-shadow: var(--glass-shadow); }
.login-mark { display: flex; justify-content: center; margin: 0 0 18px; }
.login-mark img { filter: drop-shadow(0 9px 12px #3870df35); }
.login-card .demo-badge { font-size: var(--font-caption); padding: 4px 8px; margin: 5px 0 14px; }
.login-card h2 { font-size: 27px; font-weight: 570; letter-spacing: -.8px; margin-bottom: 10px; }
.login-card > p { font-size: var(--font-body); color: var(--muted); line-height: 1.8; }
.account-card { display: flex; align-items: center; text-align: left; gap: 11px; background: var(--input); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 28px 0 15px; }
.account-card strong, .account-card span:not(.account-check) { display: block; }
.account-card strong { font-size: var(--font-body); font-weight: 600; }
.account-card div > span { font-size: var(--font-small); color: var(--muted); margin-top: 3px; }
.account-check { display: grid; place-items: center; background: var(--positive-soft); border-radius: 50%; width: 20px; height: 20px; margin-left: auto; color: var(--positive); }
.account-check .icon { width: 13px; height: 13px; }
.login-submit { width: 100%; min-height: 47px; justify-content: space-between; padding: 13px 16px; font-size: var(--font-body); }
.login-card .login-access-note { font-size: var(--font-small); margin-top: 11px; }
.login-divider { height: 1px; background: var(--divider); margin: 27px 0 20px; }
.login-disclaimer { display: flex; justify-content: center; gap: 8px; color: var(--muted); text-align: left; }
.login-disclaimer > .icon { width: 18px; height: 18px; margin-top: 2px; }
.login-disclaimer p { font-size: var(--font-small); line-height: 1.8; }
.login-disclaimer p span { font-size: var(--font-caption); }
.login-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--divider); color: var(--muted); font-size: var(--font-small); }
.login-footer > div, .login-footer > div > span { display: flex; align-items: center; gap: 7px; }
.login-footer > div { gap: 18px; }
.login-footer .icon { width: 13px; height: 13px; }
.footer-separator { width: 1px; height: 10px; background: var(--divider); }
.version { font-size: var(--font-caption); letter-spacing: 1px; }

/* Workspace navigation */
.app-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); max-width: 1920px; margin: auto; }
.sidebar { height: calc(100dvh - 32px); min-height: 0; position: sticky; top: 16px; margin: 16px 0 16px 16px; padding: 26px 16px 0; border-radius: 22px; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; }
.sidebar > .brand { margin: 0 10px 30px; font-size: 26px; }
.workspace-selector { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 11px; background: #ffffff28; padding: 10px 8px; text-decoration: none; margin-bottom: 27px; }
.workspace-icon { width: 29px; height: 31px; display: grid; place-items: center; background: var(--input); border-radius: 8px; color: var(--muted); }
.workspace-icon .icon { width: 17px; height: 17px; }
.workspace-selector strong { display: block; font-size: var(--font-small); font-weight: 580; }
.workspace-selector span { font-size: var(--font-caption); color: var(--muted); display: block; }
.workspace-selector > .icon { width: 13px; height: 13px; margin-left: auto; color: var(--muted); }
.nav-label { font-size: var(--font-caption); letter-spacing: 1.3px; color: var(--muted); padding-left: 11px; margin-bottom: 12px; }
.primary-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 10px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 10px; font-size: var(--font-body); text-decoration: none; font-weight: 470; width: 100%; background: none; transition: background .15s; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { color: var(--accent); background: var(--sidebar-active); box-shadow: 0 3px 12px #5682b709, inset 0 1px 0 #ffffff60; border-color: var(--border); font-weight: 550; }
.nav-count { font-size: var(--font-caption); margin-left: auto; border-radius: 5px; min-width: 19px; line-height: 19px; text-align: center; background: var(--input); color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.sidebar-note { background: linear-gradient(135deg, #ffffff30, #dce8fa52); border: 1px solid var(--border); padding: 15px 12px; border-radius: 13px; margin: 0 0 20px; }
[data-theme="dark"] .sidebar-note { background: #b2ceff08; }
.sidebar-note-icon { color: var(--accent); margin-bottom: 10px; }
.sidebar-note strong { font-size: var(--font-small); font-weight: 550; }
.sidebar-note p { color: var(--muted); font-size: var(--font-small); margin-top: 6px; line-height: 1.65; }
.sidebar-note a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--accent); font-size: var(--font-small); margin-top: 12px; }
.sidebar-note a .icon { width: 14px; height: 14px; }
.sidebar-user { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--divider); margin-top: 13px; padding: 18px 0; }
.sidebar-user .avatar { width: 32px; height: 32px; font-size: var(--font-small); }
.sidebar-user strong { display: block; font-size: var(--font-small); font-weight: 550; }
.sidebar-user span { display: block; font-size: var(--font-caption); color: var(--muted); margin-top: 2px; }
.sidebar-user form { margin-left: auto; }
.sidebar-user .icon-button { width: 23px; }
.sidebar-user .icon { width: 15px; height: 15px; }
.topbar { height: 83px; margin: 0 30px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: var(--font-small); color: var(--muted); }
.breadcrumb > .icon { width: 12px; height: 12px; opacity: .5; }
.breadcrumb strong { color: var(--text); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.search-trigger { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px; color: var(--muted); font-size: var(--font-small); }
.search-trigger .icon { width: 17px; height: 17px; }
.search-trigger kbd { font: inherit; font-size: var(--font-caption); background: var(--input); border: 1px solid var(--border); padding: 2px 4px; border-radius: 5px; margin-left: 25px; }
.topbar-divider { height: 19px; width: 1px; background: var(--divider); margin: 0 6px; }
.avatar-small { width: 32px; height: 32px; font-size: var(--font-small); margin-left: 5px; }
.notification-button { position: relative; }
.notification-button > span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); top: 7px; right: 9px; }
.menu-button { display: none; }
.dashboard-main { padding: 28px 30px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 25px; }
.greeting { font-size: var(--font-caption) !important; letter-spacing: 1.6px; font-weight: 550; color: var(--muted); margin-bottom: 5px; }
.page-heading h1 { font-size: 31px; letter-spacing: -1.1px; font-weight: 570; line-height: 1.3; }
.heading-dot { color: var(--accent); }
.page-heading > div > p:last-child { color: var(--muted); font-size: var(--font-body); margin-top: 6px; }
.heading-actions { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.date-chip { display: inline-flex; align-items: center; gap: 7px; font-size: var(--font-small); color: var(--muted); white-space: nowrap; }
.date-chip .icon { width: 14px; height: 14px; }

/* Overview */
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { padding: 17px 19px; position: relative; overflow: hidden; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--muted); font-size: var(--font-small); }
.soft-icon { width: 28px; height: 28px; border-radius: 8px; color: #8798b0; display: inline-flex; align-items: center; justify-content: center; background: #869bc609; flex-shrink: 0; }
.soft-icon .icon { width: 17px; height: 17px; }
.metric-value { font-size: clamp(21px, 1.9vw, 31px); font-weight: 570; letter-spacing: -.7px; font-variant-numeric: tabular-nums; margin: 10px 0 12px; white-space: nowrap; }
.metric-value > span { color: var(--muted); font-size: var(--font-caption); letter-spacing: 0; font-weight: 450; margin-left: 6px; }
.metric-value > .percent-sign { font-size: 23px; color: var(--text); margin-left: 2px; font-weight: 500; }
.metric-value > .metric-fraction { margin-left: 14px; font-size: var(--font-body); color: var(--text); }
.metric-fraction span { color: var(--muted); font-size: var(--font-small); }
.metric-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: var(--font-caption); color: var(--muted); }
.change-pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border-radius: 5px; background: var(--positive-soft); color: var(--positive); font-size: var(--font-caption); font-weight: 500; }
.change-pill .icon { width: 11px; height: 11px; }
.blue-dot { background: #6695ed; }
.win-segments { display: flex; gap: 2px; }
.win-segments i { width: 5px; height: 12px; border-radius: 2px; background: #61b9a1; }
.win-segments i.off { background: #ccd8e36b; }
.metric-decoration { position: absolute; width: 100px; height: 100px; right: -70px; bottom: -30px; background: #8bb5ff1f; filter: blur(20px); }
.main-grid { display: grid; grid-template-columns: minmax(0, 2.23fr) minmax(270px, 1fr); gap: 20px; margin-bottom: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 21px; }
.panel-heading h2, .allocation-legend h2 { font-size: var(--font-body); font-weight: 590; letter-spacing: -.15px; }
.panel-subtitle { color: var(--muted); font-size: var(--font-small); margin-top: 4px; }
.chart-panel .panel-heading { padding-bottom: 12px; }
.chart-legend { display: flex; align-items: center; gap: 5px; font-size: var(--font-caption); color: var(--muted); }
.chart-legend span { width: 6px; height: 6px; background: #4a79e9; border-radius: 50%; }
.chart-toolbar { padding: 0 21px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.period-profit { font-size: 22px; font-weight: 550; letter-spacing: -.5px; display: block; font-variant-numeric: tabular-nums; }
.period-change { display: block; font-size: var(--font-caption); margin-top: 4px; }
.period-tabs { padding: 3px; background: var(--input); border: 1px solid var(--divider); border-radius: 8px; display: flex; align-items: center; gap: 3px; }
.period-tabs button { background: none; border: 1px solid transparent; padding: 4px 7px; border-radius: 5px; color: var(--muted); font-size: var(--font-caption); min-height: 27px; }
.period-tabs button.active { color: var(--accent); background: var(--accent-soft); border-color: #7b9fee1c; font-weight: 600; }
.period-tabs button:hover { color: var(--accent); }
.chart-container { height: 177px; margin: 0 21px; position: relative; }
#equity-chart { width: calc(100% - 28px); height: 100%; overflow: visible; }
#chart-grid line { stroke: var(--divider); stroke-dasharray: 4 5; stroke-width: 1; }
#chart-grid text { fill: var(--muted); font-size: var(--font-small); }
.chart-y-label { position: absolute; right: 0; transform: translateY(-50%); color: var(--muted); font-size: var(--font-caption); pointer-events: none; }
.chart-tooltip { position: absolute; background: var(--surface-solid); border: 1px solid var(--divider); border-radius: 8px; padding: 7px 10px; pointer-events: none; box-shadow: var(--shadow); font-size: var(--font-small); top: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-labels { display: flex; justify-content: space-between; gap: 8px; margin: 10px 100px 0 24px; color: var(--muted); font-size: var(--font-caption); }
.chart-footnote { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--font-caption); margin: 18px 21px 14px; }
.chart-footnote .icon { width: 11px; height: 11px; }
.bot-panel { padding-bottom: 15px; }
.bot-panel .panel-heading { padding-bottom: 13px; }
.status-badge { color: var(--positive); background: var(--positive-soft); font-size: var(--font-caption); padding: 3px 6px; }
.status-badge .status-dot { width: 4px; height: 4px; }
.status-badge.paused { color: #ad7941; background: #f0c87824; }
.status-badge.paused .status-dot { background: #bb8a45; }
.bot-identity { text-align: center; }
.bot-avatar { width: 52px; height: 52px; display: grid; place-items: center; background: linear-gradient(145deg, #f2f7ff, #d4e3ff); box-shadow: 0 4px 10px #5a87d212, inset 0 1px 0 #fff; border-radius: 16px; margin: 0 auto 10px; color: #5382e8; position: relative; }
.bot-avatar > .icon { width: 29px; height: 29px; }
.bot-signal { position: absolute; right: -1px; bottom: 0; border: 3px solid var(--surface-solid); width: 12px; height: 12px; border-radius: 50%; background: #58ad94; }
.bot-signal.paused { background: #bd904e; }
.bot-identity h3 { font-size: var(--font-section); font-weight: 550; }
.bot-identity p { font-size: var(--font-caption); color: var(--muted); margin-top: 3px; }
.bot-tags { display: flex; justify-content: center; gap: 6px; margin: 12px 10px 14px; }
.bot-tags span { padding: 3px 7px; border-radius: 5px; background: #91a7c60c; border: 1px solid var(--divider); color: var(--muted); font-size: var(--font-caption); display: inline-flex; align-items: center; gap: 3px; }
.bot-tags .icon { width: 10px; height: 10px; }
.bot-tags b { font-weight: 500; }
.bot-details { margin: 0 21px; border-top: 1px solid var(--divider); padding: 12px 0; display: grid; gap: 7px; }
.bot-details > div { display: flex; justify-content: space-between; font-size: var(--font-small); gap: 10px; }
.bot-details > div > span:first-child { color: var(--muted); }
.bot-details strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.bot-toggle { display: flex; width: calc(100% - 42px); margin: 0 21px; min-height: 35px; border-radius: 8px; background: var(--input); font-size: var(--font-small); padding: 7px 15px; }
.bot-toggle .icon { width: 12px; height: 12px; }
.bot-toggle:hover { background: var(--accent-soft); }
.bot-toggle.is-paused { color: var(--accent); background: var(--accent-soft); }
.bot-note { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: var(--font-caption); color: var(--muted); margin-top: 8px; }
.bot-note .icon { width: 10px; height: 10px; }
.heading-inline { display: flex; align-items: center; gap: 8px; }
.count-badge { background: var(--input); color: var(--muted); border: 1px solid var(--divider); font-size: var(--font-caption); padding: 2px 5px; border-radius: 5px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: var(--font-caption); font-weight: 450; padding: 10px 14px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: #a5b4c604; }
td { padding: 14px; border-bottom: 1px solid var(--divider); font-size: var(--font-small); }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 21px; }
th:last-child, td:last-child { padding-right: 21px; text-align: right; }
td small { display: block; font-size: var(--font-caption); color: var(--muted); margin-top: 3px; }
tbody tr:hover { background: var(--hover); }
.asset-cell { display: flex; align-items: center; gap: 9px; }
.asset-cell strong { font-weight: 590; }
.asset-logo { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 10px; flex-shrink: 0; font-weight: 650; font-size: var(--font-section); }
.blue { color: #577ddd; background: #e5ecff; }
.purple { color: #8a6cc7; background: #eee8fb; }
.teal { color: #51a49b; background: #def1ed; }
.orange { color: #be9462; background: #f8ecdf; }
.green { color: #278a69; background: #e3f3ed; }
[data-theme="dark"] .asset-logo, [data-theme="dark"] .soft-icon { filter: brightness(.85); }
.value-cell { font-weight: 550; }
.positions-panel td { padding-top: 11px; padding-bottom: 11px; }
.positions-panel th, .positions-panel td { padding-left: 11px; padding-right: 11px; }
.positions-panel td:first-child, .positions-panel th:first-child { padding-left: 21px; }
.positions-panel td:last-child, .positions-panel th:last-child { padding-right: 21px; }
.activity-panel .panel-heading { padding-bottom: 9px; }
.activity-list { padding: 0 20px; }
.activity-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 9px; row-gap: 5px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.activity-icon.buy { color: #359d8a; background: #59b49914; }
.activity-icon.sell { color: #7a86b8; background: #8793c913; }
.activity-icon.buy .icon { transform: rotate(135deg); }
.activity-icon .icon { width: 14px; height: 14px; }
.activity-item strong { display: block; font-size: var(--font-small); font-weight: 550; }
.activity-item p { font-size: var(--font-caption); color: var(--muted); margin-top: 4px; }
.activity-price { grid-column: 2; font-size: var(--font-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.activity-footer { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: var(--font-caption); color: var(--muted); text-decoration: none; border-top: 1px solid var(--divider); padding: 13px; }
.activity-footer:hover { color: var(--accent); }
.activity-footer .icon { width: 13px; height: 13px; }
.dashboard-footer { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--font-caption); color: var(--muted); }
.dashboard-footer > span { display: flex; align-items: center; gap: 5px; }
.dashboard-footer .status-dot { width: 4px; height: 4px; background: #7c93b4; }
.footer-dot { margin: 0 5px; opacity: .6; }

/* Portfolio, strategy and settings */
.portfolio-summary { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 24px; }
.allocation-panel { display: flex; justify-content: space-between; align-items: center; padding: 28px; gap: 20px; }
.allocation-panel .muted { font-size: var(--font-body); }
.portfolio-total { font-size: 35px; letter-spacing: -1px; font-weight: 550; margin: 10px 0 8px; white-space: nowrap; }
.portfolio-total > span { font-size: var(--font-small); color: var(--muted); letter-spacing: 0; }
.allocation-values { display: flex; gap: 35px; margin-top: 28px; }
.allocation-values span { display: block; font-size: var(--font-small); color: var(--muted); margin-bottom: 5px; }
.allocation-values strong { font-size: var(--font-body); font-weight: 500; }
.allocation-chart { height: 166px; width: 166px; flex-shrink: 0; border-radius: 50%; padding: 21px; background: conic-gradient(#688aeb 0% 36.891%, transparent 36.891% 37.291%, #a38acb 37.291% 60.837%, transparent 60.837% 61.237%, #66b8ad 61.237% 69.392%, transparent 69.392% 69.792%, #ddbb8b 69.792% 74.349%, transparent 74.349% 74.749%, #c8d4e6 74.749% 99.6%, transparent 99.6%); transform: rotate(-90deg); }
.allocation-chart > div { width: 100%; height: 100%; background: var(--surface-solid); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotate(90deg); }
.allocation-chart span { font-size: 36px; line-height: 1.3; font-weight: 500; }
.allocation-chart small { color: var(--muted); font-size: var(--font-small); }
.allocation-legend { padding: 24px; }
.allocation-legend h2 { margin-bottom: 17px; }
.allocation-legend > div { display: flex; align-items: center; gap: 8px; font-size: var(--font-small); padding: 6px 0; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.blue { background: #688aeb; }.legend-dot.purple { background: #a38acb; }.legend-dot.teal { background: #66b8ad; }.legend-dot.orange { background: #ddbb8b; }.legend-dot.cash { background: #c8d4e6; }
.allocation-legend strong { font-weight: 550; min-width: 47px; }
.allocation-legend div > span:not(.legend-dot) { color: var(--muted); font-size: var(--font-small); }
.allocation-legend b { margin-left: auto; font-weight: 500; font-size: var(--font-small); }
.allocation-legend > small { font-size: var(--font-caption); color: var(--muted); display: block; margin-top: 13px; }
.inline-search, .search-field { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1px solid var(--divider); border-radius: 9px; padding: 7px 10px; color: var(--muted); }
.inline-search .icon { width: 14px; height: 14px; }
.inline-search input, .search-field input { width: 100%; border: 0; background: transparent; color: var(--text); min-width: 0; }
.inline-search input { font-size: var(--font-small); max-width: 180px; }
input::placeholder { color: var(--muted); opacity: 1; }
.info-box { padding: 16px; border: 1px solid var(--divider); border-radius: 12px; color: var(--muted); font-size: var(--font-small); display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; background: var(--input); }
.info-box > .icon { width: 17px; height: 17px; margin-top: 1px; }
.portfolio-info { margin-top: 20px; }
.strategy-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 22px; }
.strategy-form-panel .panel-heading { border-bottom: 1px solid var(--divider); padding: 23px 25px; }
#strategy-form { padding: 0 25px 24px; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin: 25px 0 17px; }
.form-section-title > span { font-size: var(--font-small); color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 6px; }
.form-section-title h3 { font-size: var(--font-body); font-weight: 550; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; font-size: var(--font-small); gap: 8px; }
.field input, .field select { width: 100%; min-height: 41px; border-radius: 9px; padding: 10px 12px; background: var(--input); color: var(--text); border: 1px solid var(--divider); font-size: var(--font-body); }
.field small { color: var(--muted); font-size: var(--font-caption); line-height: 1.5; }
.indicator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.indicator-grid > div { background: var(--input); border: 1px solid var(--divider); border-radius: 10px; padding: 13px; }
.indicator-grid .icon { color: var(--accent); width: 18px; height: 18px; margin-bottom: 10px; }
.indicator-grid strong, .indicator-grid span { display: block; font-size: var(--font-small); font-weight: 500; }
.indicator-grid span { font-size: var(--font-caption); color: var(--muted); margin-top: 4px; font-weight: 400; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--divider); }
.form-footer p { font-size: var(--font-small); color: var(--muted); max-width: 270px; }
.form-footer .button { font-size: var(--font-small); flex-shrink: 0; }
.strategy-info { margin-top: 20px; font-size: var(--font-small); }
.operation-filters { display: flex; gap: 5px; }
.operation-filters button { border: 1px solid transparent; background: none; border-radius: 8px; padding: 8px 11px; color: var(--muted); font-size: var(--font-small); }
.operation-filters button.active { background: var(--accent-soft); color: var(--accent); }
.operation-filters button span { background: var(--input); border-radius: 4px; padding: 1px 4px; font-size: var(--font-caption); margin-left: 4px; }
.side-pill { display: inline-block; padding: 4px 8px; font-size: var(--font-caption); border-radius: 5px; }
.side-pill.buy { background: var(--positive-soft); color: var(--positive); }
.side-pill.sell { background: var(--accent-soft); color: var(--accent); }
.operations-table td { padding-top: 19px; padding-bottom: 19px; }
.operations-table td strong { font-weight: 500; }
.reason-cell { color: var(--muted); font-size: var(--font-caption); white-space: normal; min-width: 140px; }
.simulated-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--font-caption); }
.simulated-state .status-dot { width: 4px; height: 4px; background: #8b9eb9; }
.table-footer { display: flex; justify-content: space-between; gap: 12px; padding: 17px 22px; border-top: 1px solid var(--divider); font-size: var(--font-small); color: var(--muted); }
.empty-state { padding: 32px 20px; text-align: center; font-size: var(--font-body); color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.settings-panel { padding: 0 25px 10px; }
.settings-panel .panel-heading { padding-left: 0; padding-right: 0; }
.settings-panel .panel-heading > .icon { color: var(--muted); }
.settings-panel > .muted { font-size: var(--font-small); }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 24px 0 30px; }
.theme-option { border: 1px solid var(--divider); padding: 8px; border-radius: 12px; background: var(--input); }
.theme-option[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-preview { display: block; height: 80px; border-radius: 7px; position: relative; overflow: hidden; }
.light-preview { background: #dce7f6; }.dark-preview { background: #192b49; }.system-preview { background: linear-gradient(90deg, #dce7f6 50%, #192b49 50%); }
.theme-preview i { position: absolute; left: 5%; top: 10%; height: 80%; width: 23%; border: 1px solid #ffffff44; border-radius: 5px; background: #ffffff26; }
.theme-preview b { position: absolute; left: 34%; top: 15%; height: 20%; width: 60%; border-radius: 4px; background: #ffffff40; }
.theme-preview em { position: absolute; left: 34%; top: 45%; height: 43%; width: 60%; border-radius: 4px; background: #ffffff40; }
.theme-option > span:last-child { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; font-size: var(--font-small); padding-bottom: 3px; }
.theme-option .icon { width: 13px; height: 13px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--divider); padding: 22px 0; }
.setting-row strong { font-size: var(--font-small); font-weight: 550; }
.setting-row p { font-size: var(--font-small); color: var(--muted); margin-top: 5px; }
.switch { border: 0; background: #9caabd5e; padding: 3px; border-radius: 30px; height: 25px; width: 44px; flex-shrink: 0; transition: background .2s; }
.switch span { width: 19px; height: 19px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 2px 5px #2b425420; transition: transform .2s; }
.switch[aria-checked="true"] { background: #4779ed; }
.switch[aria-checked="true"] span { transform: translateX(19px); }
.profile-panel { padding: 28px; text-align: center; }
.profile-avatar { width: 58px; height: 58px; font-size: 19px; margin: 0 auto 15px; }
.profile-panel h2 { font-size: 19px; font-weight: 550; }
.profile-panel > p { font-size: var(--font-small); color: var(--muted); margin: 5px 0 14px; }
.profile-panel .demo-badge { font-size: var(--font-caption); letter-spacing: .1px; }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; text-align: left; gap: 14px; padding: 23px 0; margin-top: 23px; border-top: 1px solid var(--divider); }
.profile-details > span { font-size: var(--font-small); color: var(--muted); }
.profile-details > strong { text-align: right; font-size: var(--font-small); font-weight: 500; }
.profile-panel .button { width: 100%; font-size: var(--font-small); }
.settings-note { color: var(--muted); font-size: var(--font-small); line-height: 1.8; padding: 15px 9px; }

/* Keep larger type comfortable inside controls and supporting content. */
.sidebar > .brand, .workspace-selector, .primary-nav, .sidebar-bottom { flex-shrink: 0; }
.sidebar-bottom { padding-top: 24px; }
.sidebar-user > div:not(.avatar) { min-width: 0; }
.metric-label { align-items: flex-start; }
.metric-value { white-space: normal; }
.metric-value > span { display: inline-block; }
.metric-bottom { row-gap: 8px; }
.panel-heading { flex-wrap: wrap; }
.period-tabs button { min-width: 34px; min-height: 34px; }
.bot-toggle { min-height: 44px; }
.bot-details > div { flex-wrap: wrap; row-gap: 3px; }
.chart-container { min-height: 190px; }
.chart-footnote { align-items: flex-start; }
.chart-footnote .icon { margin-top: 3px; }
.positions-panel table { min-width: 690px; }
.allocation-panel { flex-wrap: wrap; }
.allocation-values { flex-wrap: wrap; gap: 16px 24px; }
.allocation-legend > div { flex-wrap: wrap; }
.allocation-legend div > span:not(.legend-dot) { flex: 1; min-width: 100px; }
.profile-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.profile-details > strong { overflow-wrap: anywhere; }
.inline-search input { min-height: 28px; }
.form-footer { flex-wrap: wrap; }
.login-footer { padding: 18px 0; }
.preview-card-bottom { flex-wrap: wrap; gap: 8px; }
.dashboard-footer { padding: 14px 0; flex-wrap: wrap; }
.dashboard-footer > span { flex-wrap: wrap; }

/* Native dialogs supply focus trapping and Escape handling. */
.app-dialog { padding: 26px; width: min(490px, calc(100vw - 32px)); max-height: calc(100svh - 50px); border-radius: 22px; color: var(--text); background: var(--surface); }
.app-dialog::backdrop { background: #172c514d; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-header h2 { font-size: 18px; font-weight: 550; letter-spacing: -.3px; }
.search-field { padding: 13px; }
.search-field input { font-size: var(--font-body); }
.search-results { margin-top: 15px; }
.search-result { display: flex; gap: 12px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--divider); padding: 13px 4px; }
.search-result:hover { background: var(--hover); }
.search-result > span > strong { display: block; font-size: var(--font-body); font-weight: 550; }
.search-result small { display: block; font-size: var(--font-small); color: var(--muted); }
.search-result > strong { font-size: var(--font-body); font-weight: 500; margin-left: auto; }
.search-result > .icon { width: 14px; height: 14px; color: var(--muted); }
.dialog-footnote { color: var(--muted); font-size: var(--font-small); margin-top: 18px; }
.notification-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.notification-item:last-child { border: 0; }
.notification-item strong { font-size: var(--font-body); font-weight: 550; }
.notification-item p { font-size: var(--font-small); color: var(--muted); margin: 5px 0 10px; }
.notification-item small { font-size: var(--font-caption); color: var(--muted); }
.dialog-copy { color: var(--muted); font-size: var(--font-body); line-height: 1.8; margin-bottom: 18px; }
.app-dialog > .button { margin-top: 22px; width: 100%; }

/* Reduced effects retain the same hierarchy and readable surfaces. */
html[data-reduce-transparency="true"] .glass, html[data-reduce-transparency="true"] .panel { background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (prefers-reduced-transparency: reduce) { .glass, .panel { background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@supports not (backdrop-filter: blur(10px)) { .glass { background: var(--surface-solid); } }

@media (min-width: 1081px) {
  .nav-item { font-size: var(--font-body); }
  .workspace-selector strong { font-size: var(--font-body); }
  .workspace-selector span, .sidebar-user strong { font-size: var(--font-small); }
  .sidebar-user span { font-size: var(--font-caption); }
  .sidebar-user { gap: 7px; }
  .metric-label { font-size: var(--font-body); }
  .metric-bottom { font-size: var(--font-small); }
  .change-pill { font-size: var(--font-small); }
  .panel-heading h2, .allocation-legend h2 { font-size: var(--font-section); }
  .panel-subtitle { font-size: var(--font-small); }
  .chart-legend, .period-change, .chart-labels { font-size: var(--font-small); }
  .period-tabs button { font-size: var(--font-small); padding: 4px 7px; }
  .chart-footnote { font-size: var(--font-caption); }
  th { font-size: var(--font-small); }
  td { font-size: var(--font-small); }
  td small { font-size: var(--font-caption); }
  .bot-details > div { font-size: var(--font-small); }
  .bot-tags span { font-size: var(--font-caption); }
  .bot-identity p { font-size: var(--font-small); }
  .bot-note { font-size: var(--font-caption); }
  .activity-item strong, .activity-price { font-size: var(--font-small); }
  .activity-item p, .activity-footer { font-size: var(--font-small); }
  .dashboard-footer { font-size: var(--font-caption); }
}
@media (min-width: 1600px) { .dashboard-main { padding-left: 40px; padding-right: 40px; }.topbar { margin-left: 40px; margin-right: 40px; }.chart-container { height: 220px; }.bot-details { padding: 18px 0; gap: 10px; }.bot-identity { padding-top: 8px; }.bot-tags { margin-bottom: 20px; } }
@media (max-width: 1250px) { .app-layout { grid-template-columns: 272px minmax(0,1fr); }.sidebar { padding-left: 12px; padding-right: 12px; }.sidebar > .brand { margin-left: 6px; }.sidebar-user { gap: 5px; }.sidebar-user span { font-size: var(--font-caption); }.dashboard-main { padding: 24px 22px 0; }.topbar { margin: 0 22px; }.metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.metric-card { padding: 14px; }.metric-label { font-size: var(--font-small); }.metric-bottom { font-size: var(--font-caption); gap: 4px; }.metric-value { font-size: 23px; }.metric-value > span { font-size: var(--font-caption); margin-left: 4px; }.main-grid { grid-template-columns: minmax(0, 1.95fr) minmax(260px, 1fr); gap: 16px; }.positions-panel .asset-cell { gap: 6px; }.positions-panel th, .positions-panel td { padding-left: 8px; padding-right: 8px; }.positions-panel td small { font-size: var(--font-caption); }.positions-panel .asset-logo { width: 25px; height: 25px; border-radius: 7px; font-size: var(--font-body); }.chart-toolbar { align-items: flex-start; }.period-tabs { gap: 0; }.period-tabs button { padding: 4px 5px; }.period-profit { font-size: 20px; }.portfolio-total { font-size: 27px; }.allocation-chart { width: 135px; height: 135px; padding: 17px; }.allocation-panel { padding: 22px; }.allocation-values { gap: 20px; }.login-main { gap: 60px; }.sidebar-note p { font-size: var(--font-caption); } }
@media (max-width: 1080px) { .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.metric-value { font-size: 28px; }.metric-bottom { font-size: var(--font-small); }.metric-label { font-size: var(--font-body); }.main-grid { grid-template-columns: minmax(0,1fr); }.chart-toolbar { flex-direction: column; gap: 10px; }.chart-container { height: 152px; }.lower-grid { grid-template-columns: 1fr; }.activity-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }.activity-item { flex-wrap: wrap; border-bottom: 0; }.activity-price { margin-left: 0; }.activity-footer { padding: 10px; }.date-chip { display: none; }.portfolio-summary, .settings-grid { grid-template-columns: 1fr; }.allocation-chart { width: 160px; height: 160px; }.strategy-grid { grid-template-columns: 1fr; }.strategy-grid > div:last-child { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }.strategy-info { margin-top: 0; }.dashboard-footer > span:last-child { display: none; }.login-main { gap: 45px; }.login-intro h1 { font-size: 61px; }.login-card { padding: 30px 25px; }.preview-balance { font-size: 26px; }.preview-balance > span:first-child { font-size: 19px; }.preview-profit { font-size: var(--font-caption); } }
@media (max-width: 860px) { .app-layout { display: block; }.sidebar { position: fixed; left: 0; top: 12px; width: 272px; height: calc(100dvh - 24px); min-height: 0; margin: 0 0 0 12px; transform: translateX(-115%); transition: transform .22s ease; background: var(--surface); overflow-y: auto; }.sidebar.is-open { transform: translateX(0); }.sidebar-scrim { position: fixed; z-index: 19; inset: 0; background: #172c5140; backdrop-filter: blur(3px); border: 0; }.sidebar-bottom { padding-top: 30px; }.sidebar-note { margin-top: 20px; }.menu-button { display: inline-flex; margin-left: -7px; }.topbar { height: 70px; }.metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.metric-value { font-size: 23px; }.metric-label { font-size: var(--font-small); }.metric-bottom { font-size: var(--font-caption); }.metric-value > span { font-size: var(--font-caption); }.main-grid { grid-template-columns: minmax(0,1fr); }.lower-grid { grid-template-columns: 1fr; }.login-main { gap: 35px; }.login-intro h1 { font-size: 51px; letter-spacing: -2.5px; }.login-description { font-size: var(--font-body); }.login-card { padding: 29px 23px; }.login-card h2 { font-size: 23px; }.eyebrow { font-size: var(--font-caption); letter-spacing: 1.1px; }.preview-card { padding: 16px; }.preview-balance { font-size: 24px; }.preview-balance > span:first-child { font-size: 17px; }.preview-profit { display: none; }.login-header { min-height: 90px; }.preview-label { font-size: var(--font-small); }.login-intro { padding-bottom: 10px; } }
@media (max-width: 660px) { body { min-width: 360px; }.dashboard-main { padding: 23px 17px 0; }.topbar { margin: 0 17px; gap: 5px; height: 65px; }.topbar-actions { gap: 3px; }.search-trigger { padding: 8px; }.search-trigger span, .search-trigger kbd, .topbar-divider { display: none; }.topbar .icon-button { width: 32px; height: 34px; }.breadcrumb { font-size: var(--font-small); gap: 7px; }.breadcrumb > span { display: none; }.breadcrumb > .icon { display: none; }.avatar-small { width: 29px; height: 29px; margin-left: 4px; }.page-heading { align-items: flex-start; gap: 10px; margin-bottom: 23px; }.page-heading h1 { font-size: 28px; }.page-heading > div > p:last-child { font-size: var(--font-small); max-width: 230px; line-height: 1.6; }.greeting { font-size: var(--font-caption) !important; letter-spacing: 1.2px; }.heading-actions { margin-top: 24px; }.demo-mode { font-size: var(--font-caption); gap: 4px; padding: 6px 7px; border-radius: 7px; }.demo-mode .status-dot { width: 4px; height: 4px; }.metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }.metric-card { padding: 12px 14px; border-radius: 15px; }.metric-label { font-size: var(--font-small); }.soft-icon { width: 23px; height: 23px; }.soft-icon .icon { width: 14px; height: 14px; }.metric-value { font-size: 24px; margin: 9px 0 10px; }.metric-value > span { font-size: var(--font-caption); }.metric-value > .percent-sign { font-size: 21px; }.metric-value > .metric-fraction { font-size: var(--font-small); margin-left: 10px; }.metric-bottom { font-size: var(--font-caption); gap: 4px; }.change-pill { font-size: var(--font-caption); padding: 3px 4px; }.win-segments { gap: 2px; }.win-segments i { width: 4px; height: 10px; }.main-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }.panel { border-radius: 16px; }.panel-heading { padding: 19px 18px; }.chart-panel .panel-heading { padding-bottom: 15px; }.chart-toolbar { flex-direction: row; padding: 0 18px 14px; gap: 8px; align-items: flex-start; }.period-profit { font-size: 21px; }.period-tabs { gap: 0; padding: 2px; }.period-tabs button { font-size: var(--font-caption); padding: 4px 5px; min-height: 25px; }.period-change { font-size: var(--font-caption); }.chart-container { height: 174px; margin: 0 18px; }.chart-labels { margin-left: 18px; margin-right: 65px; font-size: var(--font-caption); }.chart-footnote { margin-left: 18px; margin-right: 18px; }.bot-panel { padding-bottom: 16px; }.bot-identity { padding-top: 0; }.bot-details { padding: 16px 0; gap: 10px; }.bot-identity h3 { font-size: var(--font-section); }.bot-identity p { font-size: var(--font-small); }.bot-tags { margin: 14px 0; }.bot-tags span { font-size: var(--font-caption); }.bot-details > div { font-size: var(--font-small); }.bot-toggle { min-height: 41px; font-size: var(--font-small); }.bot-note { margin-top: 11px; font-size: var(--font-caption); }.positions-panel table { min-width: 620px; }.positions-panel td small { font-size: var(--font-caption); }.positions-panel td { font-size: var(--font-small); padding-top: 14px; padding-bottom: 14px; }.activity-list { display: block; }.activity-item { flex-wrap: nowrap; border-bottom: 1px solid var(--divider); padding: 17px 0; }.activity-price { margin-left: 0; font-size: var(--font-small); }.activity-item strong { font-size: var(--font-small); }.activity-item p { font-size: var(--font-caption); }.activity-footer { padding: 15px; font-size: var(--font-small); }.dashboard-footer { padding: 8px 0 20px; font-size: var(--font-caption); }.portfolio-summary { gap: 15px; }.allocation-panel { gap: 10px; padding: 22px 18px; }.portfolio-total { font-size: 25px; }.portfolio-total > span { display: none; }.allocation-chart { width: 116px; height: 116px; padding: 15px; }.allocation-values { gap: 16px; margin-top: 20px; }.allocation-values strong { font-size: var(--font-small); }.allocation-values span { font-size: var(--font-caption); }.allocation-legend { padding: 23px; }.allocation-legend div { font-size: var(--font-body); }.allocation-legend div > span:not(.legend-dot) { font-size: var(--font-small); }.inline-search { max-width: 155px; }.portfolio-summary + .panel .heading-inline { flex-wrap: wrap; gap: 5px; }.form-grid { grid-template-columns: 1fr; gap: 17px; }.strategy-grid > div:last-child { display: block; }.strategy-info { margin-top: 15px; }#strategy-form { padding: 0 20px 20px; }.indicator-grid { gap: 8px; }.indicator-grid > div { padding: 11px 8px; }.indicator-grid strong { font-size: var(--font-caption); }.form-footer { flex-direction: column; align-items: stretch; }.form-footer p { max-width: none; }.page-heading > .button { padding: 8px 11px; min-height: 36px; font-size: var(--font-caption); margin-top: 15px; }.page-heading > .button .icon { width: 14px; height: 14px; }.operations-panel .panel-heading { flex-direction: column; align-items: stretch; gap: 14px; }.operations-panel .inline-search { max-width: none; }.operation-filters { gap: 10px; }.operations-table { min-width: 850px; }.theme-options { gap: 9px; }.theme-preview { height: 64px; }.theme-option { padding: 6px; }.settings-panel { padding: 0 20px 5px; }.setting-row { gap: 15px; }.setting-row p { font-size: var(--font-caption); }.login-page { padding: 0 23px; }.login-header { min-height: 90px; }.login-header .brand { font-size: 26px; }.preview-label { display: none; }.login-main { grid-template-columns: 1fr; gap: 36px; padding: 30px 0 45px; max-width: 430px; }.login-intro { text-align: center; }.eyebrow { justify-content: center; font-size: var(--font-caption); }.login-intro h1 { font-size: 53px; margin: 20px 0; line-height: 1.06; letter-spacing: -2.6px; }.login-description { font-size: var(--font-body); }.login-visual { display: none; }.login-card { justify-self: center; max-width: 380px; padding: 30px 27px; }.login-card h2 { font-size: 25px; }.login-card > p { font-size: var(--font-body); }.login-card .demo-badge { margin-top: 3px; }.login-card .login-access-note { font-size: var(--font-small); }.login-divider { margin-top: 22px; }.login-footer { min-height: 65px; font-size: var(--font-caption); flex-wrap: wrap; gap: 12px; justify-content: space-between; }.login-footer > div > span:last-child, .login-footer .footer-separator { display: none; }.version { font-size: var(--font-caption); }.app-dialog { padding: 22px; }.dialog-header h2 { font-size: var(--font-section); } }
@media (max-width: 390px) { .metric-value { font-size: 21px; }.metric-card { padding-left: 11px; padding-right: 11px; }.metric-label { font-size: var(--font-caption); }.metric-bottom { font-size: var(--font-caption); }.chart-toolbar { flex-direction: column; }.period-tabs { align-self: flex-start; margin-top: 0; }.page-heading h1 { font-size: 26px; }.page-heading > div > p:last-child { max-width: 205px; }.allocation-chart { width: 100px; height: 100px; padding: 13px; }.portfolio-total { font-size: 22px; } }


/* Reflow compact screens instead of shrinking the text. */
@media (max-width: 660px) {
  .page-heading { flex-wrap: wrap; }
  .page-heading > div:first-child { width: 100%; }
  .page-heading > div > p:last-child { max-width: none; }
  .heading-actions, .page-heading > .button { margin-top: 0; }
  .chart-toolbar { flex-direction: column; gap: 14px; }
  .period-tabs { align-self: flex-start; }
  .chart-labels { margin-right: 72px; gap: 4px; }
  .chart-labels > span:nth-child(2), .chart-labels > span:nth-child(4) { display: none; }
  .activity-item { grid-template-columns: 28px minmax(0, 1fr); }
  .activity-price { margin-left: 0; }
  .inline-search { max-width: none; width: 100%; }
  .inline-search input { max-width: none; }
  .indicator-grid { grid-template-columns: 1fr; }
  .indicator-grid > div { padding: 16px; }
  .login-main { padding-top: 24px; }
  .login-card { padding: 30px 22px; }
  .login-disclaimer p span { font-size: var(--font-caption); }
  .login-footer { gap: 14px; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .metric-card { padding: 16px 18px; }
  .metric-value { font-size: 30px; }
  .metric-value > .percent-sign { font-size: 25px; }
  .metric-label { font-size: var(--font-small); }
  .metric-bottom { font-size: var(--font-caption); }
  .allocation-panel { justify-content: center; row-gap: 24px; }
  .allocation-panel > div:first-child { width: 100%; }
  .portfolio-total { font-size: 30px; }
  .allocation-chart { width: 145px; height: 145px; padding: 18px; }
}
