/* Yummy trader cabinet: operational navigation and purple visual language. */
:root {
  --canvas: #f6f6fb;
  --paper: #fff;
  --ink: #303244;
  --muted: #9193a6;
  --line: #e9e9f2;
  --lime: #7962e9;
  --purple: #7962e9;
  --purple-dark: #6852cf;
  --purple-soft: #f0edfc;
  --nav: #242641;
  --nav-muted: #a6a7be;
  --radius: 8px;
  --shadow: 0 3px 14px #24264104;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: 0;
}

body { background: var(--canvas); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #a391ed; }
.sidebar {
  width: 222px;
  background: #242641;
  padding: 21px 13px 15px;
  color: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #515471 transparent;
}
.sidebar .brand { padding: 0 12px 21px; font-size: 27px; letter-spacing: -.9px; font-weight: 650; gap: 9px; }
.sidebar .brand-symbol { background: #826bf0; color: #fff; width: 30px; height: 32px; border-radius: 7px; font-size: 25px; font-weight: 750; line-height: 1; display: grid; place-items: center; letter-spacing: -1px; }
.sidebar .brand-symbol .icon { color: #fff; }
.sidebar .brand-dot { color: #b6a5ff; }
.sidebar .nav-label { color: #9092ac; font-size: 10px; letter-spacing: 1.1px; font-weight: 500; padding: 0 12px; margin: 14px 0 8px; }
.sidebar .nav-item { color: #b8b9cc; font-size: 12px; font-weight: 450; min-height: 35px; padding: 9px 11px; gap: 10px; border-radius: 5px; margin: 2px 0; line-height: 1.3; }
.sidebar .nav-item:hover { background: #343652; color: #fff; }
.sidebar .nav-item.active { background: linear-gradient(100deg,#8069f0,#6554c4); color: #fff; font-weight: 500; box-shadow: 0 2px 8px #17182c20; }
.sidebar .nav-item.active .nav-active-dot { background: #d5cbff; width: 4px; height: 4px; }
.sidebar .nav-item .icon { width: 15px; height: 15px; opacity: .85; }
.sidebar .nav-count { color: #c5c6d8; background: #ffffff0c; font-size: 10px; border-radius: 4px; padding: 1px 5px; }
.sidebar .nav-item.active .nav-count { color: #fff; background: #ffffff1c; }
.sidebar .sidebar-bottom { padding-top: 20px; margin-top: auto; }
.sidebar-note { color: #a5a7c0; padding: 0 11px 10px; font-size: 10px; line-height: 1.6; }
.sidebar-note p { color: #787d9f; font-size: 9px; line-height: 1.6; margin-top: 5px; }
.sidebar-bottom > .nav-item { border-top: 1px solid #ffffff0b; border-radius: 0; padding-top: 13px; margin-top: 7px; }
.sidebar-bottom .avatar { width: 26px; height: 26px; border-radius: 5px; background: #393b5a; color: #cdc6ed; font-size: 9px; }
.main { margin-left: 222px; min-width: 0; }
.topbar { background: #fff; height: 66px; border-color: #e9e9f2; padding: 0 30px; gap: 20px; }
.breadcrumb { color: #999bad; font-size: 12px; gap: 10px; }
.breadcrumb strong { color: #66697e; font-weight: 450; }
.top-actions { color: #7f829a; font-size: 12px; gap: 17px; }
.top-actions .avatar { color: #7968b9; background: #f0edfa; border: 1px solid #ebe6f7; width: 31px; height: 31px; border-radius: 6px; }
.trader-status { display: inline-flex; align-items: center; gap: 7px; color: #6a6c82; font-size: 11px; white-space: nowrap; }
.trader-status button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e6e5ef; background: #fff; border-radius: 5px; font-size: 11px; color: #64677e; padding: 7px 10px; }
.trader-status .status-dot { box-shadow: none; height: 5px; width: 5px; margin-right: 0; background: #67b891; }
.trader-status.paused .status-dot { background: #a6a8b9; }
.trader-status .switch { margin-left: 3px; }
.top-balance { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #eeedf5; padding-left: 17px; }
.top-balance span, .top-balance small { color: #a0a2b3; font-size: 9px; font-weight: 400; }
.top-balance strong { font-size: 12px; color: #62657e; font-weight: 550; font-variant-numeric: tabular-nums; }
.topbar .icon-button { border-color: #e9e8f2; color: #9193aa; }
.notification-button > span { background: #947ddf; }
.icon-button { border-radius: 5px; border-color: #e4e4ee; color: #9698ad; }
.icon-button:hover { background: #f5f3fc; color: #7b65d3; }
.content { max-width: 1720px; padding: 28px 30px 36px; }
.page-header { margin-bottom: 22px; gap: 20px; align-items: center; }
.eyebrow { font-size: 9px; color: #a5a6b7; font-weight: 500; letter-spacing: 1.4px; margin-bottom: 6px; }
h1 { color: #55576d; font-size: 29px; line-height: 1.24; letter-spacing: -.65px; font-weight: 500; }
.subtitle { color: #9597aa; font-size: 12px; margin-top: 8px; line-height: 1.65; }
.heading-dot { background: #9885de; width: 6px; height: 6px; }
.page-context-badge { color: #8e79d0; background: #eeebfa; border: 1px solid #e7e1f7; display: inline-flex; align-items: center; padding: 4px 7px; font-size: 9px; border-radius: 4px; letter-spacing: .5px; margin-left: 10px; vertical-align: middle; }
.button { font-size: 12px; border-radius: 5px; padding: 10px 14px; font-weight: 500; }
.button.primary { color: #fff; background: #7962e9; border-color: #7962e9; box-shadow: 0 2px 4px #7561d811; }
.button.primary:hover { background: #6d57d9; border-color: #6d57d9; filter: none; }
.button.secondary { color: #767990; background: #fff; border-color: #dfdfea; }
.button.ghost { color: #8d7ac4; }
.button.small { font-size: 11px; padding: 7px 10px; }
.text-button, .text-link { color: #826cda; }
.button.danger { color: #bb6970; border-color: #f0dcdf; background: #fcf3f4; }
.panel { border: 1px solid #e9e9f2; border-radius: 8px; box-shadow: 0 3px 13px #24264103; }
.panel-head { padding: 20px 21px 17px; }
.panel-title { color: #62657c; font-size: 14px; font-weight: 550; letter-spacing: -.1px; }
.panel-sub { color: #a2a3b4; font-size: 11px; line-height: 1.65; }
.panel-body { padding: 0 21px 21px; }
.section-head h2, .section-head h3 { color: #676a80; font-weight: 550; }
.filters-row { gap: 12px; margin-bottom: 19px; }
.filter-date-label { color: #a2a3b6; font-size: 11px; }
.segmented { border: 1px solid #e7e6ef; border-radius: 6px; background: #ededf5; padding: 3px; }
.segmented button { color: #999aaf; font-size: 11px; padding: 7px 12px; border-radius: 4px; }
.segmented button.active { color: #7863ce; box-shadow: 0 1px 3px #26234309; }
.select-wrap select { color: #83859b; font-size: 11px; border-color: #e1e1ec; border-radius: 5px; padding: 10px 29px 10px 11px; }
.date-range input { color: #7a7d92; border-color: #e1e1ec; }
.trade-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.trade-summary-card { background: #fff; border: 1px solid #e9e9f2; border-radius: 7px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.trade-summary-card .label, .trade-summary-card > span { color: #a0a1b3; font-size: 11px; display: flex; gap: 7px; align-items: center; }
.trade-summary-card .value, .trade-summary-card > strong { color: #64677f; font-size: 23px; font-weight: 500; letter-spacing: -.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.trade-summary-card .value small, .trade-summary-card > strong small { font-size: 11px; font-weight: 400; color: #a2a3b4; letter-spacing: 0; }
.trade-summary-card .sub, .trade-summary-card > small { font-size: 10px; color: #aaabbb; line-height: 1.6; }
.trade-summary-card:first-child { border-top: 2px solid #9b86e9; padding-top: 15px; }
.trade-summary-card .icon { height: 14px; width: 14px; color: #a298c7; }
.trade-workspace-intro { background: #eeebfa; border: 1px solid #e5def8; color: #8b7bb3; border-radius: 6px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 18px; line-height: 1.6; }
.trade-workspace-intro strong { font-weight: 500; color: #7d65bc; }
.trade-workspace-intro .icon { width: 16px; height: 16px; }
.trade-workspace-intro .button { margin-left: auto; }
.trade-toolbar, .table-toolbar { border-color: #ededf4; padding: 15px 20px; gap: 12px; }
.trade-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.search-box { max-width: 360px; }
.search-input { border-color: #e3e2ee; color: #74778e; font-size: 12px; border-radius: 5px; padding-top: 10px; padding-bottom: 10px; }
.search-input::placeholder { color: #adaec0; }
.search-box > .icon { color: #acadc0; }
.table-toolbar .tabs button, .trade-tabs button { font-size: 12px; color: #a4a4b7; padding: 11px 0; }
.tabs button.active, .trade-tabs button.active { color: #8069db; border-bottom-color: #8a74e2; }
.count-pill { background: #f0eef8; color: #9990b9; font-size: 10px; }
.table-wrap { scrollbar-width: thin; scrollbar-color: #d9d4e9 #f7f6fb; }
.trader-table .data-table { min-width: 1080px; }
.data-table th { background: #fbfbfe; color: #9696ac; border-color: #ecebf4; font-size: 10px; text-transform: uppercase; letter-spacing: .65px; font-weight: 500; padding: 13px 16px; }
.data-table td { font-size: 12px; color: #7c7f96; border-color: #efedf5; padding: 16px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 21px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 21px; }
.data-table tbody tr.clickable:hover { background: #fbfaff; }
.data-table tbody tr.clickable:focus-visible { outline-color: #9a83e1; }
.data-table .cell-stack strong { color: #6c6f85; font-size: 12px; font-weight: 500; }
.data-table .cell-stack .muted { color: #aaaabd; font-size: 10px; }
.data-table .cell-stack { gap: 6px; }
.trade-id { color: #7762c5; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11px; font-weight: 500; }
.trade-direction { color: #8b8da5; font-size: 10px; display: inline-flex; align-items: center; gap: 4px; }
.trade-amount { font-size: 13px; font-weight: 500; color: #656a83; font-variant-numeric: tabular-nums; }
.trade-inline-metrics { font-size: 10px; color: #a7a5ba; display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.trade-inline-metrics strong { color: #8a76bb; font-weight: 500; }
.method-pill { border-radius: 4px; background: #f1eff8; color: #8c83a9; font-size: 10px; padding: 5px 7px; }
.badge { font-size: 10px; border-radius: 4px; padding: 4px 7px; background: #f1f0f7; color: #9693aa; }
.badge.success { background: #edf6f1; color: #70a18a; }
.badge.warning { background: #fcf5e9; color: #bf9a57; }
.badge.danger { background: #fbf0f2; color: #c28a92; }
.badge.neutral { background: #f1f1f7; color: #9b9bad; }
.badge.purple, .badge.dispute { background: #f0ebfa; color: #9b7ebf; }
.switch { background: #deddea; }
.switch[aria-checked="true"] { background: #9d87e2; }
.table-footer { color: #acabbc; border-color: #edebf5; padding: 14px 21px; font-size: 11px !important; }
.pagination button { background: #fff; border-color: #e7e4ef; color: #9d94b3; border-radius: 4px; }
.pagination button.active { background: #f0ecfa; border-color: #ded5f3; color: #927bc6; }
.empty-state { color: #a9a6bb; padding: 55px 24px; }
.empty-state strong { color: #87839f; font-size: 15px; font-weight: 500; }
.empty-state .icon { color: #c2bbd6; }
.kpi-grid { gap: 14px; margin-bottom: 21px; }
.kpi-card { border-radius: 7px; border-color: #e8e6f2; padding: 18px 18px 15px; min-height: 152px; background: #fff; }
.kpi-card.hero, .kpi-card.green { background: #f4f1fd; border-color: #e6def7; }
.kpi-card.hero .kpi-value { color: #8264c4; }
.kpi-label { font-size: 11px; color: #9c98af; }
.kpi-icon.icon { color: #b2a6d1; }
.kpi-value { color: #74718c; font-size: 27px; font-weight: 500; letter-spacing: -.8px; }
.kpi-value small { color: #b1a9c1; font-size: 11px; }
.kpi-sub { color: #afa8bd; font-size: 10px; line-height: 1.55; }
.kpi-bottom { color: #b1a9bd; font-size: 10px; }
.kpi-bottom .badge { font-size: 9px; }
.sparkline polyline { stroke: #a391d5; }
.method-summary-note { background: #f7f5fb; color: #9691a6; border-radius: 5px; font-size: 10px; }
.method-row { border-color: #f0ecf7; }
.method-row:hover .method-info strong { color: #947dc2; }
.method-info strong { color: #757086; font-size: 12px; }
.method-info span, .method-value span { color: #a19aad; font-size: 10px; }
.progress { background: #efebf5; }
.progress .fill { background: #ac98d5; }
.conv-value { color: #9c86bf; font-size: 12px; }
.conversion .tiny { color: #a19aaf; font-size: 10px; }
.stat-pair strong, .summary-row strong, .funnel-row strong { color: #76718b; font-weight: 500; }
.stat-pair span, .stat-pair small, .summary-row, .funnel-row { color: #9b95aa; }
.chart-legend { color: #9998ad; }
.chart-legend span:first-child .legend-dot { background: #ad95d7 !important; }
.chart-legend span:nth-child(2) .legend-dot { background: #e8dff4 !important; }
.chart-tooltip { background: #716082; }
.chart-wrap svg text { fill: #a3a3b6; }
.attention-strip { border-radius: 6px; background: #faf6ef; border-color: #efe7d9; color: #a18a63; font-size: 12px; }
.attention-strip strong { font-weight: 450; }
.attention-strip .text-button { color: #967b54; }
.notice, .active-filter { background: #f4eff9; border-color: #e9e0f1; color: #8b7b9d; border-radius: 6px; font-size: 12px; }
.notice strong { color: #897499; font-weight: 500; }
.notice.warning { color: #b3966c; border-color: #f3e8d7; background: #fcf8f0; }
.notice.warning strong { color: #a98a60; }
.demo-banner { background: #f4eff9; border-color: #ece2f4; color: #9d89ac; border-radius: 6px; }
.demo-banner strong { color: #8e759f; }
.demo-banner p { color: #a89bb2; }
.formula-grid code { color: #9e84af; background: #f9f4fc; border-radius: 4px; }
.formula-grid strong { color: #8b759d; }
.formula-grid p { color: #a796b4; }
.queue-summary .panel { border-radius: 7px; }
.queue-card { color: #917ca1; }
.queue-card > span { color: #a18ead; }
.queue-card > strong { font-size: 26px; font-weight: 500; color: #8d789c; }
.queue-card > strong small, .queue-card p { color: #a895b5; }
.dispute-reason { color: #997dae; font-size: 11px; line-height: 1.65; }
.dispute-timeline { border-left: 1px solid #f0e4f7; margin: 15px 5px; padding: 0 0 0 17px; color: #a58bb5; font-size: 11px; }
.dispute-timeline > div { padding: 10px 0; }
.dispute-timeline strong { display: block; color: #9277a3; font-weight: 500; margin-bottom: 4px; }
.group-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tool-card { border: 1px solid #e8e5f1; background: #fff; border-radius: 7px; padding: 20px; min-width: 0; box-shadow: 0 2px 10px #36244902; }
.tool-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tool-card h3 { color: #70647f; font-size: 14px; font-weight: 500; }
.tool-card p { color: #9b8fa8; font-size: 12px; line-height: 1.75; margin-top: 6px; }
.tool-card .summary-row { border-color: #f0eaf6; }
.tool-card footer { border-top: 1px solid #f0eaf6; margin-top: 17px; padding-top: 14px; display: flex; justify-content: space-between; gap: 8px; }
.tools-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.tools-summary > div, .tools-summary > section { background: #fff; border: 1px solid #e8e3f1; border-radius: 7px; padding: 18px 20px; }
.tools-summary span, .tools-summary small { display: block; font-size: 11px; color: #a18eaf; line-height: 1.7; }
.tools-summary strong { display: block; font-size: 25px; color: #877199; font-weight: 500; letter-spacing: -.5px; margin: 8px 0 3px; }
.tool-list { display: flex; flex-direction: column; gap: 0; }
.tool-list > div, .tool-list > label { border-top: 1px solid #eee7f5; padding: 12px 0; color: #9580a6; font-size: 12px; line-height: 1.6; }
.tool-list label { display: flex; align-items: center; gap: 9px; }
.tool-list input[type="checkbox"] { width: 14px; height: 14px; min-height: 0; accent-color: #c1a8d7; }
.ledger .data-table th { color: #9b82ad; }
.profile-form { max-width: 720px; }
.profile-form .field { margin-bottom: 8px; }
.profile-form .button { margin-top: 15px; }
.overlay { background: #30233d50; }
.drawer, .modal { box-shadow: 0 15px 60px #3725421c; }
.modal-backdrop { background: #30233d65; }
.drawer-header, .drawer-footer, .modal-header, .modal-footer { border-color: #ece4f4; }
.drawer-header h2, .modal-header h2 { color: #766387; font-weight: 500; }
.drawer-content .section-head h3, .drawer-content h3 { color: #8f78a2; }
.drawer-hero strong { color: #8a739e; }
.drawer-metrics > div { background: #fcf7ff; border-color: #f0e4f8; border-radius: 6px; }
.drawer-metrics span { color: #a38bb5; }
.drawer-metrics strong { color: #8f76a5; font-weight: 500; }
.drawer-metrics small { color: #a78eb9; }
.detail-list, .detail-row { border-color: #f0e6f7; }
.detail-row { color: #a58ab8; font-size: 12px; }
.detail-row strong { color: #9073a6; }
.drawer-operation { border-color: #f0e5f7; }
.drawer-operation:hover { background: #fdf9ff; }
.op-amount { color: #8b6fa0; font-weight: 500; }
.field label { color: #8b739f; font-size: 12px; font-weight: 450; }
.field input, .field select, .field textarea { color: #8b739f; border-color: #ecdef5; border-radius: 5px; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #bca6cc; }
.form-intro, .modal-body p { color: #a58bb8; }
.toast { border-color: #e2cff260; background: #79598f; color: #fff; border-radius: 6px; box-shadow: 0 7px 30px #54336322; }
.app-footer { color: #afa0bc; border-color: #f0e5f7; font-size: 10px; padding: 18px 30px; }
.explanation-note { color: #a895b9; }
.bank-logo { border-radius: 6px; }

@media (min-width: 1600px) {
  .content { padding: 30px 36px 40px !important; }
  .main > .topbar { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .sidebar { width: 222px; padding: 20px 13px 15px; }
  .main { margin-left: 222px; }
  .content { padding: 26px 24px 34px; }
  .topbar { padding: 0 24px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trade-summary-grid { gap: 12px; }
  .trade-summary-card { padding: 15px; }
  .trade-summary-card .value, .trade-summary-card > strong { font-size: 21px; }
  .top-actions { gap: 12px; }
  .top-balance { padding-left: 12px; }
}
@media (max-width: 900px) {
  .sidebar { width: 222px; transform: translateX(-100%); box-shadow: 12px 0 45px #28213e22; }
  .sidebar.open, .sidebar.mobile-open, body.menu-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 62px; padding: 0 22px; }
  .content { padding: 25px 22px 32px; }
  .trade-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .tools-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toast { left: 50%; }
  .breadcrumb { font-size: 11px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .sidebar { padding-top: 15px; padding-bottom: 11px; }
  .sidebar .brand { padding-bottom: 13px; }
  .sidebar .nav-label { margin-top: 10px; margin-bottom: 6px; }
  .sidebar .nav-item { min-height: 32px; padding-top: 8px; padding-bottom: 8px; }
  .sidebar .sidebar-bottom { padding-top: 10px; }
  .sidebar-note p { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 15px; gap: 9px; height: 59px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .breadcrumb > span { display: none; }
  .breadcrumb strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions { gap: 8px; }
  .top-actions > .trader-status, .top-actions > .top-balance { display: flex; }
  .trader-status { font-size: 9px; gap: 4px; }
  .trader-status button { font-size: 9px; padding: 6px 7px; gap: 4px; }
  .trader-status button .icon { width: 12px; height: 12px; }
  .top-balance { display: none !important; }
  .top-actions .avatar { width: 27px; height: 27px; font-size: 9px; }
  .content { padding: 21px 15px 28px; }
  .page-header { gap: 15px; margin-bottom: 18px; }
  h1, .page-header h1 { font-size: 25px; letter-spacing: -.4px; }
  .subtitle { font-size: 11px; }
  .header-actions { flex-wrap: wrap; }
  .header-actions .button { font-size: 11px; padding: 9px 11px; }
  .trade-summary-grid { gap: 10px; margin-bottom: 17px; }
  .trade-summary-card { padding: 14px; gap: 6px; border-radius: 6px; }
  .trade-summary-card .label, .trade-summary-card > span { font-size: 10px; }
  .trade-summary-card .value, .trade-summary-card > strong { font-size: 21px; }
  .trade-summary-card .sub, .trade-summary-card > small { font-size: 9px; }
  .trade-summary-card:first-child { padding-top: 13px; }
  .trade-workspace-intro { font-size: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .trade-workspace-intro .button { margin-left: 24px; }
  .panel { border-radius: 6px; }
  .panel-head { padding: 17px 15px 14px; }
  .panel-title { font-size: 13px; }
  .panel-sub { font-size: 10px; }
  .panel-body { padding: 0 15px 18px; }
  .table-toolbar, .trade-toolbar { padding: 13px 15px; gap: 10px; }
  .trade-toolbar .search-box { width: 100%; max-width: none; min-width: 180px; }
  .table-toolbar .tabs button, .trade-tabs button { font-size: 11px; }
  .tabs { gap: 18px; }
  .data-table th { font-size: 9px; padding: 12px 13px; }
  .data-table td { font-size: 11px; padding: 14px 13px; }
  .data-table .cell-stack strong { font-size: 11px; }
  .data-table td:first-child, .data-table th:first-child { padding-left: 15px; }
  .data-table td:last-child, .data-table th:last-child { padding-right: 15px; }
  .table-footer { padding: 13px 15px; font-size: 10px !important; }
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 15px 13px; min-height: 144px; border-radius: 6px; }
  .kpi-value { font-size: 24px !important; }
  .kpi-label { font-size: 10px; }
  .kpi-sub { font-size: 9px; }
  .time-value { font-size: 23px !important; }
  .kpi-bottom .badge { font-size: 8px; }
  .group-cards { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { padding: 17px; }
  .tools-summary { gap: 10px; }
  .tools-summary > div, .tools-summary > section { padding: 15px; }
  .tools-summary strong { font-size: 21px; }
  .tools-summary span, .tools-summary small { font-size: 10px; }
  .drawer-header, .drawer-footer { padding-left: 20px; padding-right: 20px; }
  .drawer-content { padding: 20px; }
  .drawer-metrics strong { font-size: 21px; }
  .modal { border-radius: 8px; }
  .field label { font-size: 11px; }
  .field input, .field select { font-size: 12px; }
  .app-footer { padding: 17px 15px; font-size: 9px; }
  .attention-strip { font-size: 10px; border-radius: 6px; }
  .notice, .active-filter { font-size: 11px; }
}
@media (max-width: 380px) {
  .trader-status button { max-width: 110px; }
  .top-actions .avatar { display: none; }
  .trade-summary-card .value, .trade-summary-card > strong { font-size: 19px; }
  .tools-summary { grid-template-columns: 1fr; }
}
/* Integration details for the original trader navigation and operational table. */
.sidebar-caption{font-size:9px;letter-spacing:1.7px;color:#8588a8;padding:0 12px;margin:-12px 0 4px}.sidebar-demo{font-size:10px;color:#979ab8;padding:9px 10px;line-height:1.6}.sidebar-demo .status-dot{height:4px;width:4px}.trader-status{border:1px solid #e6e5ef;border-radius:5px;background:#fff;padding:8px 10px;color:#70728d}.trader-status .icon{height:12px;width:12px;color:#a1a3b6}.trader-status:hover{background:#f6f4fc}.statistics-tabs{display:flex;gap:26px;margin:0 0 22px;border-bottom:1px solid #e7e4f0}.statistics-tabs button{padding:9px 0 13px;font-size:12px}.trader-table .data-table td:last-child,.trader-table .data-table th:last-child{position:sticky;right:0;background:#fff;box-shadow:-6px 0 10px #24264106;z-index:1;min-width:95px;padding:12px}.trader-table .data-table th:last-child{background:#fbfbfe}.trader-table .data-table tbody tr:hover td:last-child{background:#fbfaff}.trade-direction .icon{height:11px;width:11px}.trade-summary-card .value.danger{color:#c27582}.trade-summary-card .value.success{color:#72a18f}.trade-summary-card .value.warning{color:#b89a65}.dispute-link{margin-top:20px;font-size:12px}.dispute-link .icon{width:14px;height:14px}.dispute-reason{color:#b48ba7;font-size:9px!important;white-space:normal;max-width:180px}.trader-table td>.tiny{display:block;margin-top:7px;white-space:normal;font-size:9px}.sidebar nav{flex:none}.avatar[data-nav]{border:1px solid #ebe6f7;cursor:pointer}.tool-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.tool-card-stats div{display:flex;flex-direction:column;gap:7px;min-width:0}.tool-card-stats strong{font-size:17px;font-weight:500;color:#77718d}.tool-card-stats span,.tool-card-stats small{font-size:10px;color:#aaa4b8}.tool-checkbox input[type=checkbox]{width:14px!important;height:14px!important;min-height:0!important;flex-shrink:0;accent-color:#7962e9}.group-members{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}.field-error:empty{display:none}.tool-card-stats strong{overflow-wrap:anywhere}.profile-form>.button{margin-top:18px}.demo-banner .badge{display:inline-flex}.queue-card .warning-text{color:#bf9a57}
@media(max-width:640px){.trader-status{font-size:10px;padding:7px}.sidebar-caption{font-size:9px}.statistics-tabs{gap:17px}.statistics-tabs button{font-size:10px}.trade-summary-card .value{white-space:normal;overflow-wrap:anywhere}.tool-card-stats{grid-template-columns:1fr 1fr}.trader-table .data-table td:last-child,.trader-table .data-table th:last-child{min-width:78px;padding:10px}.trader-table .data-table td:last-child .button{font-size:10px;padding:6px}.topbar .breadcrumb>span:first-of-type{display:none}.sidebar nav{padding-bottom:4px}}
