
  .adm-embed { font-size: 13px; color: var(--fg); }
  .adm-embed .ph { margin-bottom: 12px; } .adm-embed .ph h1 { font-size: 16px; font-weight: 500; margin: 2px 0 0; } .adm-embed .eyebrow { font-size: 11.5px; color: var(--mu); }
  .adm-embed .hc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
  .adm-embed .hh { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13.5px; font-weight: 500; }
  .adm-embed .scroll-x { overflow-x: auto; } .adm-embed table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .adm-embed th { text-align: left; color: var(--mu); font-weight: 400; padding: 8px; border-bottom: 1px solid #1C1C1C; } .adm-embed td { padding: 8px; border-bottom: 1px solid #161616; }
  .adm-embed .r { text-align: right; } .adm-embed .mu, .adm-embed .note, .adm-embed .small { color: var(--mu); font-size: 12px; } .adm-embed .neg, .adm-embed .st-far { color: #E0703A; } .adm-embed .st-eq { color: var(--lime); } .adm-embed .st-near { color: #D9A54A; }
  .adm-embed .instbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .adm-embed .instbar a { padding: 5px 12px; border-radius: 999px; border: 1px solid #262626; color: var(--t2); text-decoration: none; font-size: 12px; } .adm-embed .instbar a[aria-current=true] { color: var(--fg); background: #161616; }
  .adm-embed textarea { width: 100%; min-height: 80px; background: #111110; border: 1px solid #262626; border-radius: 10px; color: var(--fg); padding: 10px; font-family: inherit; margin: 8px 0; box-sizing: border-box; }
  .adm-embed .btn { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid #2A2A2A; background: #151515; color: var(--fg); cursor: pointer; font-family: inherit; font-size: 12px; } .adm-embed .btn.pri { background: var(--lime); color: #050505; border-color: var(--lime); }
  .adm-embed .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; } .adm-embed .kpis > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .adm-embed .kv2 b { font-size: 20px; font-weight: 300; display: block; }
  .adm-embed .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; } .adm-embed .lvtag { font-size: 12px; } .adm-embed .bar1 { height: 4px; background: #1A1A1A; border-radius: 99px; } .adm-embed .bar1 i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
  .adm-embed .formrow { display: block; } .adm-embed .today { color: var(--t2); font-size: 12.5px; margin-bottom: 10px; } .adm-embed .today .k { color: var(--mu); margin-right: 6px; }
  .dg-spin { width:14px; height:14px; border-radius:50%; border:2px solid #2A2A2A; border-top-color: var(--lime); animation: dgspin .8s linear infinite; display:inline-block; flex-shrink:0; }
  @keyframes dgspin { to { transform: rotate(360deg); } }
  :root {
    --bg: #030303;
    --card: #0D0D0D;
    --tile: #141414;
    --tile-hover: #1A1A1A;
    --line: #1A1A1A;
    --line2: #272727;
    --fg: #F2F2EE;
    --t2: #A3A3A3;
    --mu: #6B6B6B;
    --lime: #C9E26B;
    --olive: #6A7847;
    --glow: #2C3B1A;
    --copper: #7A5636;
    --cr: #E0703A;
    --hvl: #D9A54A;
    --radius-card: 16px;
    --radius-tile: 12px;
    --sidebar-w: 224px;
    --topbar-h: 64px;
    --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
  }

  .num, .mono {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-sans);
  }
  .code-mono {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
  }
  .tnum {
    font-variant-numeric: tabular-nums;
  }

  button, input, select, textarea {
    font-family: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
    background: none;
    border: none;
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; }

  /* App Shell */
  .app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg);
  }

  /* Sidebar */
  .sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 30;
    user-select: none;
  }

  .brand-wrap {
    padding: 16px 16px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tile);
    border: 1px solid var(--line2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    line-height: 1.15;
  }

  .brand-sub {
    font-size: 10.5px;
    color: var(--mu);
    line-height: 1.2;
    margin-top: 1px;
  }

  .brand-wave {
    width: 100%;
    height: 16px;
    padding: 0 12px;
    margin-bottom: 6px;
    opacity: 0.7;
  }

  .nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 12px;
  }

  .nav-section-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--mu);
    text-transform: uppercase;
    padding: 8px 10px 6px;
  }

  .nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--t2);
    font-size: 13.5px;
    font-weight: 400;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    text-align: left;
    margin-bottom: 2px;
  }

  .nav-item:hover {
    background: var(--card);
    color: var(--fg);
  }

  .nav-item.active {
    background: var(--tile);
    color: var(--fg);
    border-color: var(--line2);
    font-weight: 500;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
  }

  .nav-item.active svg {
    opacity: 1;
    color: var(--fg);
  }

  .nav-item .nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--lime);
    font-variant-numeric: tabular-nums;
  }

  .nav-chevron {
    width: 14px !important;
    height: 14px !important;
    color: var(--mu);
    transition: transform 0.18s;
  }

  .nav-chevron.open {
    transform: rotate(180deg);
  }

  .nav-sublist {
    display: none;
    padding: 2px 0 6px 26px;
  }

  .nav-sublist.open {
    display: block;
  }

  .nav-subitem {
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    font-size: 12.5px;
    color: var(--mu);
    border-radius: 8px;
    display: block;
    transition: color 0.15s, background 0.15s;
    margin-bottom: 1px;
  }

  .nav-subitem:hover {
    color: var(--fg);
    background: var(--card);
  }

  .nav-subitem.active {
    color: var(--lime);
    background: rgba(201, 226, 107, 0.06);
  }

  .sidebar-footer {
    padding: 8px 12px 14px;
    border-top: 1px solid var(--line);
  }

  .pro-pill {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--t2);
    background: var(--tile);
    border: 1px solid var(--line2);
    padding: 2px 6px;
    border-radius: 6px;
  }

  /* Main Area */
  .main-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  /* Topbar */
  .topbar {
    height: var(--topbar-h);
    padding: 0 24px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    background: rgba(3, 3, 3, 0.92);
    backdrop-filter: blur(10px);
    z-index: 20;
  }

  .topbar-left {
    min-width: 0;
  }

  .page-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fg);
    line-height: 1.2;
  }

  .page-subtitle {
    font-size: 11.5px;
    color: var(--mu);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Asset Dropdown Pill */
  .asset-select-wrap {
    position: relative;
  }

  .pill-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line2);
    color: var(--fg);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s, background 0.15s;
  }

  .pill-btn:hover {
    border-color: #3A3A3A;
    background: var(--tile);
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line2);
    color: var(--t2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }

  .icon-btn:hover {
    color: var(--fg);
    border-color: #3A3A3A;
    background: var(--tile);
  }

  .icon-btn .notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
  }

  .avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--lime);
    color: #030303;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: opacity 0.15s;
  }

  .avatar-btn:hover {
    opacity: 0.9;
  }

  .lang-switch {
    display: inline-flex;
    background: var(--card);
    border: 1px solid var(--line2);
    border-radius: 10px;
    padding: 2px;
    height: 34px;
    align-items: center;
  }

  .lang-btn {
    height: 28px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--mu);
    transition: background 0.15s, color 0.15s;
  }

  .lang-btn:hover { color: var(--fg); }
  .lang-btn.active {
    background: var(--tile);
    color: var(--fg);
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 286px;
    max-height: 390px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line2);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 50;
  }

  .dropdown-menu.open { display: block; }

  .dropdown-group-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mu);
    padding: 8px 10px 4px;
  }

  .dropdown-item {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--t2);
    text-align: left;
    white-space: nowrap;
  }

  .dropdown-item-left {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dropdown-item:hover { background: var(--tile); color: var(--fg); }
  .dropdown-item.active { background: var(--tile); color: var(--lime); }

  /* Content Container */
  .content-area {
    padding: 16px 24px 18px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 1;
  }

  /* Cards & Tiles */
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 18px 20px;
  }

  .tile {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius-tile);
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
  }

  .tile-interactive:hover {
    border-color: var(--line2);
    background: var(--tile-hover);
  }

  /* Segmented Control */
  .seg-group {
    display: inline-flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 3px;
    gap: 2px;
  }

  .seg-btn {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--mu);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }

  .seg-btn:hover { color: var(--t2); }
  .seg-btn.active {
    background: var(--tile);
    color: var(--fg);
    border: 1px solid var(--line2);
  }

  /* Badges */
  .badge-lime {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(44, 59, 26, 0.55);
    color: var(--lime);
    border: 1px solid rgba(201, 226, 107, 0.14);
  }

  .badge-cr {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(224, 112, 58, 0.14);
    color: var(--cr);
    border: 1px solid rgba(224, 112, 58, 0.3);
  }

  .badge-hvl {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(217, 165, 74, 0.14);
    color: var(--hvl);
    border: 1px solid rgba(217, 165, 74, 0.3);
  }

  .badge-muted {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    background: var(--tile);
    color: var(--t2);
    border: 1px solid var(--line2);
  }

  /* Buttons */
  .btn-primary {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--lime);
    color: #030303;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.15s;
  }
  .btn-primary:hover { opacity: 0.9; }

  .btn-secondary {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--tile);
    border: 1px solid var(--line2);
    color: var(--fg);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.15s, border-color 0.15s;
  }
  .btn-secondary:hover { background: var(--tile-hover); border-color: #3A3A3A; }

  /* Today Screen (Slide 15 — 1:1) */
  .today-hero-card {
    padding: 18px 20px 14px;
    margin-bottom: 14px;
  }

  .today-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  .hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--fg);
  }

  .hero-sub {
    font-size: 12.5px;
    color: var(--mu);
    margin-top: 3px;
  }

  .main-chart-box {
    width: 100%;
    position: relative;
    height: 280px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 108px;
    grid-template-rows: 280px;
    align-items: stretch;
    overflow: hidden;
  }

  .chart-y-gutter {
    position: relative;
    height: 100%;
    padding-right: 10px;
  }

  .chart-y-tick {
    position: absolute;
    right: 10px;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #8A8A86;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .chart-plot-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .chart-plot-wrap svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .chart-dot-marker {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .chart-pills-gutter {
    position: relative;
    height: 100%;
    padding-left: 10px;
  }

  .level-pill {
    position: absolute;
    left: 10px;
    right: 0;
    height: 25px;
    transform: translateY(-50%);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid currentColor;
    font-variant-numeric: tabular-nums;
  }

  /* Stats strip cleanly BELOW chart lines */
  .chart-stats-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 10px 108px 10px 56px;
    font-size: 12.5px;
    color: var(--mu);
  }

  .chart-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .chart-stat-sep {
    width: 1px;
    height: 12px;
    background: var(--line2);
  }

  .chart-stat-val {
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }

  .chart-stat-val.lime { color: var(--lime); }

  /* White Time Range Slider (Slide 15 exact look) */
  .range-slider-wrap {
    padding: 0 108px 4px 56px;
    position: relative;
  }

  .range-track {
    height: 14px;
    border-radius: 99px;
    background: #141414;
    border: 1px solid var(--line);
    position: relative;
    cursor: pointer;
  }

  .range-thumb {
    position: absolute;
    top: -1px;
    height: 14px;
    border-radius: 99px;
    background: var(--fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: grab;
    box-shadow: 0 0 12px rgba(242, 242, 238, 0.2);
    transition: left 0.12s ease-out;
  }

  .range-thumb:active { cursor: grabbing; }

  .range-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #030303;
  }

  .range-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 108px 2px 56px;
    font-size: 12px;
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    color: #9A9A95;
  }

  /* 4-Column Bottom Row (Slide 15) */
  .today-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  .widget-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .widget-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .widget-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--tile);
    border: 1px solid var(--line2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t2);
    flex-shrink: 0;
  }

  .widget-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg);
    white-space: nowrap;
  }
  .widget-head .seg-btn { padding: 3px 7px; font-size: 11px; }

  /* Stacked ES/NQ/GC cards */
  .mini-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
  }

  .mini-asset-card {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
  }

  .mini-asset-card:hover {
    border-color: var(--line2);
    background: #101010;
  }

  .mini-asset-card.active {
    border-color: var(--line2);
    background: #101010;
  }

  .mini-asset-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .ticker-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--tile);
    border: 1px solid var(--line2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--t2);
    font-family: var(--font-mono);
    flex-shrink: 0;
  }

  .mini-asset-card.active .ticker-box {
    color: var(--lime);
    border-color: rgba(201, 226, 107, 0.35);
    background: rgba(44, 59, 26, 0.45);
  }

  .mini-spark-wrap {
    height: 28px;
    width: 100%;
    margin-top: 10px;
  }

  /* CME Volume Widget */
  .cme-kpi-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .cme-big-val {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .dot-matrix-wrap {
    height: 88px;
    width: 100%;
    margin-bottom: 14px;
  }

  .oi-tile {
    margin-top: auto;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
  }

  /* Day Range Widget (exact photo 1 & Slide 15) */
  .range-arc-row {
    display: grid;
    grid-template-columns: minmax(58px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 4px 0;
  }

  .range-kv {
    border-left: 1.5px solid var(--lime);
    padding-left: 9px;
    min-width: 0;
  }

  .range-kv-label {
    font-size: 11px;
    color: var(--mu);
    line-height: 1.25;
    white-space: nowrap;
  }

  .range-kv-val {
    font-size: clamp(13px, 1.05vw, 16px);
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--fg);
    margin-top: 3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
  }

  .range-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
  }

  .range-tile {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 13px;
  }

  .range-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--fg);
    margin-bottom: 10px;
  }

  .range-tile-val {
    font-size: clamp(15px, 1.18vw, 17.5px);
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--fg);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
  }

  .range-tile-sub {
    font-size: 11px;
    color: var(--mu);
    text-align: right;
    margin-top: 2px;
  }

  /* Reports list in Column 4 */
  .report-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  .report-mini-row {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    flex: 1;
  }

  .report-mini-row:hover {
    border-color: var(--line2);
    background: var(--tile-hover);
  }

  /* Markets Grid (18 Assets — Page 17 exact 6x3 layout) */
  .markets-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .filter-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
  }

  .chip-btn {
    padding: 6px 13px;
    border-radius: 10px;
    font-size: 13px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--mu);
    transition: all 0.15s;
  }

  .chip-btn:hover { color: var(--fg); }
  .chip-btn.active {
    background: var(--tile);
    color: var(--fg);
    border-color: var(--line2);
    font-weight: 500;
  }

  .markets-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
  }

  .market-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 238px;
  }

  .market-card:hover {
    border-color: var(--line2);
    background: #101010;
    transform: translateY(-1px);
  }

  .market-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
  }

  .market-card-sym {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.2;
    white-space: nowrap;
  }

  .market-card-sub {
    font-size: 11px;
    color: var(--mu);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-card-spark {
    flex: 1;
    min-height: 112px;
    width: 100%;
    margin: 12px 0;
    position: relative;
  }

  .market-card-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .market-card-price {
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 500;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: -0.015em;
  }

  .market-card-pct {
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .hvl-pill-sm {
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Tables */
  .table-wrap {
    width: 100%;
    overflow-x: auto;
  }

  table.dg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  table.dg-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    color: var(--mu);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }

  table.dg-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    white-space: nowrap;
  }

  table.dg-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
  }

  table.dg-table tbody tr:last-child td {
    border-bottom: none;
  }

  /* Chart Screen (Slide 16 — 1:1) */
  .chart-screen-layout {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 268px;
    gap: 14px;
    align-items: stretch;
    min-height: calc(100vh - var(--topbar-h) - 38px);
  }

  .draw-strip {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .draw-strip-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .draw-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tile);
    border: 1px solid var(--line);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }

  .draw-btn:hover { background: var(--tile-hover); color: var(--fg); border-color: var(--line2); }
  .draw-btn.active { background: var(--glow); color: var(--lime); border-color: rgba(201, 226, 107, 0.4); }

  .chart-card-main {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .chart-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .chart-canvas-grid {
    flex: 1;
    min-height: 440px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 104px;
    grid-template-rows: 1fr;
    position: relative;
    overflow: hidden;
  }

  .chart-vol-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 104px;
    height: 62px;
    align-items: end;
    margin-top: 6px;
  }

  .chart-time-axis {
    display: flex;
    justify-content: space-between;
    padding: 8px 104px 0 56px;
    font-size: 11.5px;
    color: #8A8A86;
    font-variant-numeric: tabular-nums;
  }

  .chart-right-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .chart-side-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 15px 16px;
  }

  .layer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
  }

  .layer-row.off span { color: var(--mu); }

  .view-opt-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
  }

  .view-pill {
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    color: var(--t2);
    border: 1px solid transparent;
    transition: all 0.15s;
  }
  .view-pill:hover { color: var(--fg); }
  .view-pill.active {
    background: var(--tile);
    border-color: var(--line2);
    color: var(--fg);
    font-weight: 500;
  }

  /* Switch Toggle */
  .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }
  .toggle-row:last-child { border-bottom: none; }

  .switch {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #242421;
    border: 1px solid #30302B;
    position: relative;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0;
  }

  .switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8A8A82;
    transition: transform 0.18s, background 0.18s;
  }

  .switch.on { background: var(--lime); border-color: var(--lime); }
  .switch.on::after { transform: translateX(16px); background: #080807; }

  /* Instrument Detail (Slides 18-21 — 1:1) */
  .inst-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .inst-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .inst-page-shell {
    min-height: calc(100vh - var(--topbar-h) - 34px);
    display: flex;
    flex-direction: column;
  }

  .inst-overview-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(360px, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
  }

  .metrics-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .metric-card-6 {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
  }

  .exp-ribbon {
    display: grid;
    grid-template-columns: repeat(10, minmax(92px, 1fr));
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 14px;
    background: #090909;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
  }

  .exp-tile {
    background: var(--card);
    border: 1px solid #1E1E1E;
    border-radius: 11px;
    padding: 10px 13px;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
  }

  .exp-tile:hover { border-color: #2E2E2E; background: var(--tile); }
  .exp-tile.active { border-color: #363636; background: var(--tile); }

  .inst-two-col {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(380px, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .gex-bar-col:hover rect { filter: brightness(1.35); }

  .cme-two-col {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .scenario-row {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
  }

  /* Reports Hub (Page 22 exact: 3 top + 2 bottom full-height layout) */
  .reports-shell {
    min-height: calc(100vh - var(--topbar-h) - 36px);
    display: flex;
    flex-direction: column;
  }

  .reports-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    flex: 1;
    margin-bottom: 14px;
  }

  .reports-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    flex: 1;
  }

  .report-hub-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    min-height: 320px;
  }

  .report-hub-card:hover { border-color: var(--line2); background: #101010; }

  .report-kpi-val {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
  }

  .report-kpi-sub {
    font-size: 11.5px;
    color: var(--mu);
    margin-top: 3px;
  }

  .report-chart-slot {
    flex: 1;
    min-height: 150px;
    width: 100%;
    position: relative;
    margin: 4px 0;
  }

  .report-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
  }

  .nav-sublist {
    border-left: 1px solid #242424;
    margin-left: 19px;
    padding-left: 12px !important;
  }
  .nav-subitem {
    position: relative;
  }
  .nav-subitem::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 9px;
    height: 1px;
    background: #242424;
  }

  /* Journal Grids */
  .kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }

  .cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 14px;
  }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  .cal-cell {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .cal-cell.pos { border-color: rgba(201, 226, 107, 0.35); background: rgba(44, 59, 26, 0.28); }
  .cal-cell.neg { border-color: rgba(224, 112, 58, 0.35); background: rgba(224, 112, 58, 0.10); }
  .cal-cell.empty { background: transparent; border-color: transparent; }

  /* Cabinet Layout */
  .cabinet-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  /* Inputs */
  .dg-input, .dg-select, .dg-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s;
  }
  .dg-input, .dg-select, .dg-textarea {
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  }
  .dg-input::placeholder, .dg-textarea::placeholder {
    color: #555550;
  }
  .dg-input:focus, .dg-select:focus, .dg-textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(201, 226, 107, 0.14);
  }
  .dg-input.is-error, .dg-textarea.is-error {
    border-color: var(--cr) !important;
    box-shadow: 0 0 0 2px rgba(224, 112, 58, 0.16) !important;
  }
  .dg-field-err {
    color: var(--cr);
    font-size: 11.5px;
    margin-top: 5px;
    line-height: 1.35;
  }
  .dg-input:disabled, .dg-textarea:disabled, .dg-select:disabled {
    background: #0A0A0A;
    border-color: #1B1B1B;
    color: #555550;
    opacity: 0.55;
    cursor: not-allowed;
  }
  /* Page 05 Switch disabled + Checkbox indeterminate */
  .switch.disabled {
    background: #141414 !important;
    border-color: #1D1D1D !important;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
  .switch.disabled::after {
    background: #3A3A36 !important;
  }
  .al-chk.partial {
    background: var(--lime);
    border-color: var(--lime);
    color: #080807;
  }
  /* Page 05 Password Eye Wrapper */
  .dg-pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .dg-pwd-wrap .dg-input {
    padding-right: 38px;
  }
  .dg-pwd-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--mu);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    cursor: pointer;
    transition: color 120ms ease, background 120ms ease;
  }
  .dg-pwd-eye:hover {
    color: var(--fg);
    background: rgba(255,255,255,0.05);
  }
  /* Page 05 Custom Select ("Селект" / "Селект открыт") */
  .dg-csel {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
  }
  .dg-csel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--fg);
    padding: 0 12px;
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    white-space: nowrap;
    overflow: hidden;
  }
  .dg-csel-btn:hover {
    border-color: #363632;
  }
  .dg-csel.open .dg-csel-btn,
  .dg-csel-btn:focus-visible {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 2px rgba(201, 226, 107, 0.14);
  }
  .dg-csel-lbl {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }
  .dg-csel-chev {
    flex-shrink: 0;
    color: var(--t2);
    display: inline-flex;
    align-items: center;
    transition: transform 150ms ease, color 150ms ease;
  }
  .dg-csel.open .dg-csel-chev {
    transform: rotate(180deg);
    color: var(--fg);
  }
  .dg-csel.is-disabled .dg-csel-btn {
    background: #0A0A0A;
    border-color: #1B1B1B;
    color: #555550;
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
  }
  .dg-csel-menu {
    position: fixed;
    z-index: 10050;
    background: #0B0B0B;
    border: 1px solid #272727;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .dg-csel-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--t2);
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 110ms ease, color 110ms ease;
  }
  .dg-csel-opt:hover, .dg-csel-opt.focused {
    background: #151515;
    color: var(--fg);
  }
  .dg-csel-opt.selected {
    background: #191919;
    color: var(--fg);
  }
  .dg-csel-opt-chk {
    color: var(--lime);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }
  /* Page 05 Stepper ("Число со степпером") */
  .dg-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .dg-step-btn {
    width: 38px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--line2);
    background: #101010;
    color: var(--t2);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
  }
  .dg-step-btn:hover {
    border-color: #3A3A36;
    color: var(--fg);
    background: #161616;
  }
  .dg-step-btn:active {
    border-color: var(--lime);
    color: var(--lime);
  }
  .dg-stepper .dg-input {
    text-align: center;
    flex: 1;
    min-width: 0;
  }
  /* Page 05 Unit Suffix ("Цена 6 812.00 пт") */
  .dg-unit-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .dg-unit-wrap .dg-input {
    padding-right: 34px;
  }
  .dg-unit-lbl {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--mu);
    pointer-events: none;
  }
  /* Page 05 Textarea Counter ("46 / 500") */
  .dg-ta-wrap {
    position: relative;
    width: 100%;
  }
  .dg-ta-count {
    font-size: 11px;
    color: var(--mu);
    text-align: right;
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
  }
  /* Page 05 Date Picker Popover ("Дата") */
  .dg-dp-pop {
    position: fixed;
    z-index: 10060;
    width: 268px;
    background: #0B0B0B;
    border: 1px solid #272727;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  }
  .dg-dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: var(--fg);
  }
  .dg-dp-nav {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--line2);
    background: #121212;
    color: var(--t2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dg-dp-nav:hover { border-color: var(--lime); color: var(--fg); }
  .dg-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
  }
  .dg-dp-dow {
    font-size: 11px;
    color: var(--mu);
    padding: 4px 0 6px;
  }
  .dg-dp-day {
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 110ms ease, color 110ms ease;
  }
  .dg-dp-day:hover { background: #191919; }
  .dg-dp-day.muted { color: #4A4A46; }
  .dg-dp-day.active {
    background: var(--lime) !important;
    color: #080807 !important;
    font-weight: 600;
  }

  /* Modal Overlay */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
  }

  .modal-backdrop.open { display: flex; }

  .modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line2);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  }

  .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .modal-title {
    font-size: 16px;
    font-weight: 600;
  }

  /* Notifications Popover */
  .notif-popover {
    position: fixed;
    top: 60px;
    right: 22px;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: var(--card);
    border: 1px solid var(--line2);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 90;
  }
  .notif-popover.open { display: block; }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--tile);
    border: 1px solid rgba(201, 226, 107, 0.45);
    color: var(--fg);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 200;
  }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* Mobile Bottom Dock */
  .mobile-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line2);
    z-index: 60;
    padding: 4px 6px;
  }

  .dock-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10.5px;
    color: var(--mu);
    border-radius: 10px;
  }

  .dock-btn.active { color: var(--lime); }

  /* Widget Data Animations */
  @keyframes dotRise {
    0% { opacity: 0; transform: translateY(5px) scale(0.6); }
    100% { opacity: var(--dot-op, 0.9); transform: translateY(0) scale(1); }
  }
  .cme-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: dotRise 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .cme-col:hover circle {
    filter: brightness(1.45);
  }
  @keyframes arcDraw {
    from { stroke-dashoffset: 160; }
    to { stroke-dashoffset: 0; }
  }
  .arc-line {
    stroke-dasharray: 160;
    animation: arcDraw 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @media (prefers-reduced-motion: reduce) {
    .cme-dot, .arc-line { animation: none !important; }
  }
  /* live refresh of an open screen: no replay of the entry animations */
  .dg-still .cme-dot, .dg-still .arc-line { animation: none !important; }
  .dg-still .cme-dot { opacity: var(--dot-op, 0.9); }

  /* Clickable event rows on Pre-market report */
  .event-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 8px;
    margin: 0 -8px;
    border-radius: 9px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    text-decoration: none;
    color: var(--fg);
    transition: background 0.15s, color 0.15s;
  }
  .event-link-row:last-child { border-bottom: none; }
  .event-link-row:hover {
    background: var(--tile);
  }
  .event-link-row .ev-arrow {
    opacity: 0;
    color: var(--lime);
    font-size: 11px;
    transition: opacity 0.15s;
    margin-left: 4px;
  }
  .event-link-row:hover .ev-arrow { opacity: 1; }
  .event-link-row:hover .ev-title { color: var(--lime); }

  /* Progress bar */
  .progress-track {
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: var(--bg);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--lime);
  }

  /* Responsive Breakpoints */
  @media (max-width: 1180px) {
    .today-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .markets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .chart-screen-layout { grid-template-columns: 44px minmax(0, 1fr); }
    .chart-right-stack { grid-column: 1 / -1; }
    .inst-overview-grid, .inst-two-col, .cme-two-col { grid-template-columns: 1fr; }
    .metrics-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cal-layout { grid-template-columns: 1fr; }
  }

  /* Universal Table Horizontal Scroll Wrapper */
  .dg-tbl-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rob-mob-estop {
    display: none;
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(224,112,58,0.45);
    background: rgba(224,112,58,0.12);
    color: var(--cr);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* ===== TABLET 768px (Master PDF Pages 34-37: 68px icon rail + 2-col grids + 3-col markets) ===== */
  @media (max-width: 1024px) and (min-width: 681px) {
    :root { --sidebar-w: 68px; }
    .brand-text, .nav-label, .nav-badge, .nav-chevron, .nav-section-label,
    .pro-pill, .nav-sublist, .brand-wave, .adm-owner-pill, .adm-sub-tree {
      display: none !important;
    }
    .brand-wrap { justify-content: center; padding: 14px 8px; }
    .nav-item { justify-content: center; padding: 10px; }
    .sidebar-footer { padding: 10px 8px; }
    .sidebar-footer .nav-item { justify-content: center; }
    .content-area { padding: 16px 16px 28px; }
    .today-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .markets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; min-height: auto; }
    .reports-row-3, .reports-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .prop-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .chart-screen-layout { grid-template-columns: 1fr !important; }
    .draw-strip { flex-direction: row; overflow-x: auto; justify-content: flex-start; }
    /* Collapse wide asymmetric split grids cleanly on tablet */
    #appMain [style*="minmax(0,1.72fr)"],
    #appMain [style*="minmax(0,1.45fr)"],
    #appMain [style*="minmax(0,2.1fr)"],
    #appMain [style*="minmax(0,1.65fr)"],
    #appMain [style*="minmax(0,1.7fr)"] {
      grid-template-columns: 1fr !important;
    }
    #appMain [style*="repeat(4,minmax(0,1fr))"],
    #appMain [style*="repeat(4, minmax(0, 1fr))"] {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .modal-box, .modal-card { max-width: calc(100vw - 32px) !important; max-height: 90dvh; overflow-y: auto; }
  }

  /* ===== MOBILE 390px (Master PDF Pages 38-40 & Robot MT5 Page 6) ===== */
  @media (max-width: 680px) {
    html, body, .app-shell, .main-col, .content-area {
      max-width: 100vw !important;
      overflow-x: hidden !important;
    }
    .sidebar { display: none !important; }
    .mobile-dock {
      display: flex !important;
      padding-bottom: max(6px, env(safe-area-inset-bottom));
    }
    .rob-mob-estop { display: flex !important; }
    .content-area { padding: 12px 10px 84px !important; }
    .topbar {
      padding: 0 10px !important;
      height: 56px !important;
      gap: 6px !important;
    }
    .topbar-left { min-width: 0; flex: 1; overflow: hidden; }
    .page-title {
      font-size: 16px !important;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .page-subtitle, .lang-switch, #topAdminBadge, #topRobotPing { display: none !important; }
    .topbar-right { gap: 5px !important; flex-shrink: 0; }
    #topJournalActions .btn-secondary, #topJournalActions .btn-primary,
    #topExportLevelsBtn, #topReportActions button {
      height: 30px !important;
      padding: 0 9px !important;
      font-size: 11.5px !important;
    }
    .markets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; min-height: auto; gap: 8px !important; }
    .today-grid-4, .reports-row-3, .reports-row-2, .metrics-grid-6, .cabinet-layout,
    .cab-shell, .cab-gloss-grid, .j-cal-layout, .j-lim-grid, .ev-layout,
    .adm-grid-main, .rob-risk-grid, .prop-cards-grid, .inst-overview-grid,
    .inst-two-col, .cme-two-col, .cal-layout, .chart-screen-layout {
      grid-template-columns: 1fr !important;
    }
    .kpi-grid-4, .adm-kpi-6 {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
    }
    /* Collapse inline multi-column grids safely on mobile without breaking 7-col calendars */
    #appMain [style*="repeat(4,minmax(0,1fr))"],
    #appMain [style*="repeat(4, minmax(0, 1fr))"] {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
    }
    #appMain [style*="repeat(3,1fr)"],
    #appMain [style*="repeat(3, 1fr)"],
    #appMain [style*="repeat(3,minmax(0,1fr))"],
    #appMain [style*="repeat(3, minmax(0, 1fr))"],
    #appMain [style*="minmax(0,1.72fr)"],
    #appMain [style*="minmax(0,1.45fr)"],
    #appMain [style*="minmax(0,2.1fr)"],
    #appMain [style*="minmax(0,1.65fr)"],
    #appMain [style*="minmax(0,1.7fr)"],
    #appMain [style*="minmax(0,1.25fr)"],
    #appMain [style*="1fr 1fr"],
    .modal-box [style*="1fr 1fr"],
    .modal-box [style*="1.25fr 1fr 0.85fr"],
    .modal-box [style*="minmax(0,1.65fr)"],
    .modal-box [style*="minmax(0,1.25fr)"] {
      grid-template-columns: 1fr !important;
    }
    .rob-tabs-bar {
      flex-wrap: wrap !important;
      gap: 8px !important;
    }
    .rob-tabs-bar > div {
      overflow-x: auto;
      scrollbar-width: none;
      max-width: 100%;
    }
    .rob-tabs-bar > div::-webkit-scrollbar { display: none; }
    .cab-nav {
      display: flex !important;
      flex-direction: row !important;
      overflow-x: auto !important;
      gap: 6px !important;
      padding: 8px !important;
      scrollbar-width: none;
    }
    .cab-nav::-webkit-scrollbar { display: none; }
    .cab-nav-item { white-space: nowrap; flex-shrink: 0; }
    .main-chart-box {
      grid-template-columns: 40px minmax(0, 1fr) 78px !important;
      grid-template-rows: 220px !important;
      height: 220px !important;
    }
    .level-pill { font-size: 10px; height: 22px; }
    .chart-stats-strip, .range-slider-wrap, .range-time-row {
      padding-left: 6px;
      padding-right: 6px;
    }
    .draw-strip { flex-direction: row; overflow-x: auto; justify-content: flex-start; }
    .notif-popover {
      right: 8px !important;
      left: 8px !important;
      width: auto !important;
      max-width: calc(100vw - 16px) !important;
    }
    .modal-backdrop { align-items: flex-end !important; padding: 0 !important; }
    .modal-box, .modal-card {
      width: 100% !important;
      max-width: 100vw !important;
      border-radius: 18px 18px 0 0 !important;
      max-height: 90dvh !important;
      overflow-y: auto !important;
      padding: 16px 14px 22px !important;
    }
    .card { padding: 14px 14px !important; }
    .prop-wiz-steps { gap: 6px; font-size: 11px; overflow-x: auto; }
  }

  /* === JOURNAL BLOCK (PDF PAGES 28-31) === */
  .j-shell {
    min-height: calc(100vh - var(--topbar-h) - 36px);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .j-eq-card {
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    min-height: 306px;
  }
  .j-seg {
    display: inline-flex;
    background: #141414;
    border: 1px solid #222;
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
  }
  .j-seg button {
    border: none;
    background: transparent;
    color: var(--mu);
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
  }
  .j-seg button.active {
    background: #22231E;
    color: var(--fg);
  }
  .j-lvl-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .j-lvl-hvl { background: rgba(217,165,74,0.14); color: #D9A54A; border: 1px solid rgba(217,165,74,0.28); }
  .j-lvl-cr  { background: rgba(224,112,58,0.14); color: #E0703A; border: 1px solid rgba(224,112,58,0.28); }
  .j-trade-row:hover td { background: rgba(255,255,255,0.025); }
  .j-lvl-ps  { background: rgba(201,226,107,0.13); color: #C9E26B; border: 1px solid rgba(201,226,107,0.28); }

  /* Page 29 Calendar */
  .j-cal-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    min-height: 0;
  }
  .j-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }
  .j-cal-body {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(98px, 1fr));
    gap: 8px;
  }
  .j-cal-cell {
    background: #090909;
    border: 1px solid #161616;
    border-radius: 11px;
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .15s, background .15s;
  }
  .j-cal-cell.muted-day { background: #080808; border-color: #131313; }
  .j-cal-cell.pos { background: #161F0C; border-color: #2A3B17; cursor: pointer; }
  .j-cal-cell.pos:hover { border-color: rgba(201,226,107,0.58); background: #1C2710; }
  .j-cal-cell.neg { background: #22120B; border-color: #3A1F13; cursor: pointer; }
  .j-cal-cell.neg:hover { border-color: rgba(224,112,58,0.55); background: #2B170E; }
  .j-cal-cell.today { border: 1px solid #C9E26B; background: #0B0D08; }

  /* Page 30 Limits */
  .j-lim-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
  }
  .j-rule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #181818;
  }
  .j-rule-row:last-of-type { border-bottom: none; }
  .j-rule-input {
    width: 134px;
    height: 34px;
    background: #111111;
    border: 1px solid #242424;
    border-radius: 9px;
    color: var(--fg);
    padding: 0 11px;
    font-size: 13px;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    outline: none;
  }
  .j-rule-input:focus { border-color: var(--olive); }
  .j-lock-card {
    background: #120E0B;
    border: 1px solid rgba(224,112,58,0.34);
    border-radius: 14px;
    padding: 16px 18px;
  }
  .j-status-ok { background: rgba(201,226,107,0.12); color: #C9E26B; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }
  .j-status-lock { background: rgba(224,112,58,0.16); color: #E0703A; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }
  .j-status-skip { background: rgba(217,165,74,0.14); color: #D9A54A; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }

  /* Page 31 Modals */
  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
  .dg-textarea { resize: none; }
  .modal-card { padding: 24px 26px; }
  .j-cal-cell.clickable { cursor: pointer; }
  .j-cal-cell.clickable:hover { border-color: rgba(201,226,107,0.45); }
  .j-side-toggle {
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 0;
    gap: 6px;
    height: 40px;
    align-items: center;
  }
  .j-side-toggle button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--mu);
    font-size: 13px;
    padding: 0 16px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
  }
  .j-side-toggle button.active { background: #181915; border-color: #2A2C25; color: var(--fg); }
  .j-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 12.5px;
  }
  .j-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 600;
  }
  .j-step-num.done { background: var(--lime); color: #050505; }
  .j-step-num.idle { background: #1D1D1D; color: var(--mu); }
  .j-step-line { flex: 1; height: 1px; background: #242424; }
  .j-map-row {
    display: grid;
    grid-template-columns: 1fr 22px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  .j-map-src {
    height: 38px;
    background: #111111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--fg);
  }
  /* Page 33 Events */
  .ev-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 14px;
    min-height: 0;
  }
  .ev-cc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    border-radius: 5px;
    background: #141414;
    border: 1px solid #222;
    font-size: 10.5px;
    color: var(--t2);
    font-variant-numeric: tabular-nums;
  }
  .ev-dots { display: inline-flex; gap: 4px; align-items: center; }
  .ev-dot { width: 5.5px; height: 5.5px; border-radius: 50%; background: #262624; }
  .ev-dot.hi { background: #E0703A; }
  .ev-dot.md { background: #D9A54A; }
  .ev-dot.lo { background: #7D7D76; }
  .ev-row-link { color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .ev-row-link .ev-ext { opacity: 0; font-size: 11px; color: var(--lime); transition: opacity .15s; }
  tr.ev-click-row:hover td { background: rgba(255,255,255,0.025); }
  tr.ev-click-row:hover .ev-row-link { color: var(--lime); }
  tr.ev-click-row:hover .ev-ext { opacity: 1; }
  .ev-cc-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #111111;
    border: 1px solid #262626;
    border-radius: 11px;
    padding: 8px;
    display: flex;
    gap: 6px;
    z-index: 30;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  }
  .ev-cc-chip {
    border: 1px solid #262626;
    background: #161616;
    color: var(--mu);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
  }
  .ev-cc-chip.on { background: #202516; border-color: rgba(201,226,107,0.45); color: var(--lime); }

  /* Page 41 Notifications Popover */
  .notif-popover {
    width: 392px !important;
    padding: 16px !important;
    border-radius: 16px !important;
    background: #0D0D0D !important;
    border: 1px solid #222 !important;
    box-shadow: 0 18px 48px rgba(0,0,0,0.72) !important;
  }
  .notif-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
  }
  .notif-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--mu);
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
  }
  .notif-tab:hover { color: var(--fg); }
  .notif-tab.active {
    background: #1B1B19;
    border-color: #2A2A26;
    color: var(--fg);
  }
  .notif-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 11px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    border: 1px solid transparent;
  }
  .notif-item.unread {
    background: #141412;
    border-color: #1F1F1C;
  }
  .notif-item:hover {
    background: #1A1A17;
    border-color: #2A2A26;
  }
  .notif-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #181816;
    border: 1px solid #242420;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .notif-unread-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px rgba(201,226,107,0.7);
    flex-shrink: 0;
  }
  .notif-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #181818;
  }
  /* Page 42 Alerts Modal */
  .al-ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
  .al-ch-card {
    background: #111110;
    border: 1px solid #20201D;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .al-chk {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid #2D2D29;
    background: #121210;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .14s;
    color: #050505;
    padding: 0;
  }
  .al-chk.on {
    background: var(--lime);
    border-color: var(--lime);
  }
  .al-chk:hover { border-color: rgba(201,226,107,0.6); }
  .al-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .al-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--mu);
    padding: 8px 6px 10px;
    border-bottom: 1px solid #1C1C19;
  }
  .al-table td {
    padding: 12px 6px;
    border-bottom: 1px solid #171715;
    vertical-align: middle;
  }
  .al-table tr:last-child td { border-bottom: none; }
  /* Page 42 Export Levels Modal */
  .exp-fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .exp-fmt-card {
    background: #111110;
    border: 1px solid #20201D;
    border-radius: 12px;
    padding: 13px 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .15s, background .15s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .exp-fmt-card:hover { background: #151513; border-color: #2E2E29; }
  .exp-fmt-card.active { border-color: rgba(201,226,107,0.8); background: #14170F; }
  .exp-chk-lbl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--fg);
    cursor: pointer;
    user-select: none;
  }
  /* Page 43 Search Command Palette (⌘K) */
  .cmd-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1C1C19;
  }
  .cmd-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--fg);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    caret-color: var(--lime);
  }
  .cmd-input::placeholder { color: #5E5E5A; }
  .cmd-esc {
    border: 1px solid #262622;
    background: #141412;
    color: var(--mu);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
  }
  .cmd-sec-lbl {
    font-size: 11px;
    color: #5E5E5A;
    padding: 10px 16px 5px;
  }
  .cmd-row {
    width: 100%;
    border: none;
    background: transparent;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .1s;
  }
  .cmd-row:hover, .cmd-row.active { background: #181816; }
  .cmd-ico {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #141412;
    border: 1px solid #22221E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mu);
    flex-shrink: 0;
  }
  .cmd-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid #181816;
    font-size: 11.5px;
    color: #5E5E5A;
  }
  /* === CABINET BLOCK (PDF PAGES 44-51) === */
  .cab-shell {
    min-height: calc(100vh - var(--topbar-h) - 36px);
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }
  .cab-nav-card {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .cab-nav-btn {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--t2);
    padding: 9px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: all .14s;
    margin-bottom: 3px;
  }
  .cab-nav-btn:hover { color: var(--fg); background: #141412; }
  .cab-nav-btn.active { background: #151513; border-color: #262622; color: var(--fg); }
  .cab-nav-btn svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.78; }
  .cab-nav-btn.active svg { opacity: 1; }
  .cab-logout-btn {
    margin-top: 12px;
    padding: 10px 12px;
    border: none;
    border-top: 1px solid #1A1A17;
    background: transparent;
    color: #E0703A;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
  }
  .cab-logout-btn:hover { color: #F28B59; }
  .cab-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .cab-danger-strip {
    background: #130E0B;
    border: 1px solid rgba(224,112,58,0.28);
    border-radius: 12px;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .cab-btn-danger {
    border: 1px solid rgba(224,112,58,0.45);
    background: rgba(224,112,58,0.10);
    color: #E0703A;
    height: 32px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }
  .cab-btn-danger:hover { background: rgba(224,112,58,0.20); }
  .cab-pro-card {
    background: #0F120C;
    border: 1px solid rgba(201,226,107,0.38);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .cab-ai-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 6px 0 12px;
    min-height: 260px;
  }
  .cab-msg-u {
    align-self: flex-end;
    background: #171715;
    border: 1px solid #252521;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--fg);
    max-width: 78%;
  }
  .cab-msg-a {
    align-self: flex-start;
    background: #111110;
    border: 1px solid #1E1E1B;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 13px;
    color: var(--fg);
    line-height: 1.55;
    max-width: 82%;
  }
  .cab-lang-card {
    width: 100%;
    background: #111110;
    border: 1px solid #20201D;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    margin-bottom: 8px;
    transition: all .14s;
  }
  .cab-lang-card.active { border-color: rgba(201,226,107,0.75); background: #14170F; }
  .cab-pill-opt {
    border: 1px solid transparent;
    background: transparent;
    color: var(--mu);
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
  }
  .cab-pill-opt.active { background: #1A1A18; border-color: #2A2A26; color: var(--fg); }
  .cab-lesson-card {
    background: #0D0D0D;
    border: 1px solid #1C1C19;
    border-radius: 13px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 112px;
  }
  .cab-lesson-card:hover { border-color: rgba(201,226,107,0.45); background: #121210; }
  .cab-gloss-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }
  .cab-gloss-item {
    padding: 13px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid #181816;
    border-radius: 10px;
    cursor: pointer;
    transition: background .14s;
  }
  .cab-gloss-item:hover { background: #141412; }
  .cab-gloss-item:hover .gloss-open-hint { opacity: 1; }
  .gloss-open-hint { opacity: 0; font-size: 11.5px; color: var(--lime); transition: opacity .14s; }
  body.ui-compact .card { padding: 12px 14px !important; }
  body.ui-compact .dg-table td { padding: 7px 6px !important; }
  body.ui-compact .kpi-grid-4, body.ui-compact .j-shell, body.ui-compact .cab-main { gap: 9px !important; }
  body.ui-mono-tone {
    --lime: #EAEAE4;
    --cr: #7E7E78;
    --hvl: #B8B8B0;
  }
  body.ui-reduce-motion *, body.ui-reduce-motion *::before, body.ui-reduce-motion *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  /* === ADMIN PANEL (PDF PAGES 52-57) === */
  .adm-owner-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(224,112,58,0.12);
    border: 1px solid rgba(224,112,58,0.30);
    color: #E0703A;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin: 4px 12px 10px;
  }
  .adm-hidden-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(224,112,58,0.11);
    border: 1px solid rgba(224,112,58,0.28);
    color: #E0703A;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .adm-kpi-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .adm-grid-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 14px;
    min-height: 0;
  }
  .adm-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .adm-run-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mu);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .14s;
  }
  .adm-run-btn:hover { color: var(--lime); border-color: #262622; background: #161614; }
  .adm-param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #181816;
    font-size: 12.5px;
  }
  .adm-param-row:last-child { border-bottom: none; }
  .adm-param-inp {
    width: 74px;
    height: 28px;
    background: #111110;
    border: 1px solid #22221E;
    border-radius: 7px;
    color: var(--fg);
    padding: 0 9px;
    font-size: 12px;
    font-family: inherit;
    text-align: center;
    outline: none;
  }
  .adm-param-inp:focus { border-color: var(--olive); }
  /* === ROBOT MT5 SUB-SECTION (DeltaGEX_Robot_MT5.pdf) === */
  .rob-sub-nav {
    display: flex;
    flex-direction: column;
    margin: 2px 0 4px 20px;
    padding-left: 12px;
    border-left: 1px solid #22221E;
    gap: 2px;
  }
  .rob-sub-btn {
    border: none;
    background: transparent;
    color: var(--mu);
    font-size: 12.5px;
    padding: 6px 8px;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color .14s;
  }
  .rob-sub-btn:hover { color: var(--fg); }
  .rob-sub-btn.active { color: var(--fg); font-weight: 500; }
  .rob-tabs-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #181816;
    padding-bottom: 8px;
    gap: 12px;
  }
  .rob-tab {
    border: none;
    background: transparent;
    color: var(--mu);
    font-size: 13px;
    padding: 6px 12px 10px;
    margin-bottom: -9px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color .14s, border-color .14s;
  }
  .rob-tab:hover { color: var(--fg); }
  .rob-tab.active { color: var(--fg); border-bottom-color: var(--lime); }
  /* Prop Accounts (DeltaGEX_Robot_MT5_Prop_Accounts.pdf Pages 2-6) */
  .prop-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
  }
  @media (max-width: 1120px) { .prop-cards-grid { grid-template-columns: 1fr; } }
  .prop-acc-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 140ms ease, background 140ms ease;
    cursor: pointer;
  }
  .prop-acc-card:hover {
    border-color: #2E3422;
  }
  .prop-acc-card.trading {
    border-color: rgba(201, 226, 107, 0.42);
    background: linear-gradient(180deg, rgba(201,226,107,0.03) 0%, var(--card) 55%);
  }
  .prop-pill-phase {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(217,165,74,0.14);
    color: var(--hvl);
  }
  .prop-pill-trading {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(201,226,107,0.16);
    color: var(--lime);
  }
  .prop-pill-demo {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: #1B1B19;
    color: var(--t2);
  }
  .prop-bar {
    height: 4px;
    border-radius: 999px;
    background: #1C1C1A;
    overflow: hidden;
    margin-top: 6px;
  }
  .prop-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 220ms ease;
  }
  .prop-days-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .prop-day-sq {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #1E1E1C;
    border: 1px solid #2A2A27;
  }
  .prop-day-sq.done {
    background: var(--lime);
    border-color: var(--lime);
  }
  .prop-wiz-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 18px;
  }
  .prop-wiz-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--mu);
    white-space: nowrap;
  }
  .prop-wiz-step.active { color: var(--fg); }
  .prop-wiz-step.done { color: var(--t2); }
  .prop-wiz-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #2E2E2B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    color: var(--mu);
    flex-shrink: 0;
  }
  .prop-wiz-step.active .prop-wiz-num {
    border-color: var(--lime);
    color: var(--lime);
  }
  .prop-wiz-step.done .prop-wiz-num {
    background: var(--lime);
    border-color: var(--lime);
    color: #080807;
    font-weight: 600;
  }
  .prop-wiz-line {
    flex: 1;
    height: 1px;
    background: #22221F;
  }
  .prop-wiz-line.done { background: rgba(201,226,107,0.45); }
  .prop-phase-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
  }
  .prop-phase-tbl th {
    text-align: left;
    font-weight: 400;
    color: var(--mu);
    font-size: 11px;
    padding: 0 6px 8px;
    border-bottom: 1px solid var(--line);
  }
  .prop-phase-tbl td {
    padding: 8px 6px;
    border-bottom: 1px solid #161614;
    vertical-align: middle;
  }
  .prop-phase-inp {
    width: 72px;
    height: 32px;
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: 8px;
    padding: 0 8px;
    color: var(--fg);
    font-size: 12.5px;
    text-align: center;
  }
  .prop-phase-inp:focus {
    outline: none;
    border-color: var(--lime);
  }
  .rob-paper-banner {
    background: rgba(217,165,74,0.08);
    border: 1px solid rgba(217,165,74,0.34);
    border-radius: 11px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #E8C57B;
  }
  .rob-unit-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .rob-unit-wrap input {
    width: 100%;
    height: 38px;
    background: #111110;
    border: 1px solid #22221E;
    border-radius: 10px;
    color: var(--fg);
    padding: 0 32px 0 12px;
    font-size: 13px;
    font-family: inherit;
    text-align: right;
    outline: none;
    font-variant-numeric: tabular-nums;
  }
  .rob-unit-wrap input:focus { border-color: var(--olive); }
  .rob-unit-lbl {
    position: absolute;
    right: 11px;
    font-size: 12px;
    color: var(--mu);
    pointer-events: none;
  }
  .rob-ping-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--t2);
    white-space: nowrap;
  }
  .rob-risk-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.45fr);
    gap: 14px;
    flex: 1;
    min-height: 0;
  }
  @media (max-width: 1180px) {
    .adm-kpi-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-grid-main, .rob-risk-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 960px) {
    .cab-shell { grid-template-columns: 1fr; }
    .cab-gloss-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 1024px) {
    .j-cal-layout, .j-lim-grid, .ev-layout { grid-template-columns: 1fr; }
  }


  /* ===== Chart screen (Chart UX v1): Lightweight Charts card, drawing strip, side panel ===== */
  .cx-mount { min-width: 0; }
  .cx { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: stretch; height: calc(100vh - var(--topbar-h) - 34px); min-height: 520px; position: relative; user-select: none; -webkit-user-select: none; }
  .cx input { user-select: text; -webkit-user-select: text; }
  .cx.cx-panel-on { grid-template-columns: 52px minmax(0, 1fr) 262px; }
  .cx-tools { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .cx-tools::-webkit-scrollbar { display: none; }
  .cx-tool { position: relative; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #A3A3A3; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; }
  .cx-tool:hover { background: var(--tile-hover); color: var(--fg); }
  .cx-tool.on { background: #1A1F10; border-color: #3A3A3A; color: var(--lime); }
  .cx-corner { position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; }
  .cx-corner::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 0; height: 0; border-left: 4px solid transparent; border-bottom: 4px solid #5A5A5A; }
  .cx-tsep { width: 24px; height: 1px; background: #222; margin: 3px 0; flex: none; }
  .cx-grow { flex: 1; }
  .cx-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 8px; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
  .cx-top { display: flex; align-items: center; gap: 8px; min-height: 34px; flex-wrap: nowrap; overflow: hidden; }
  .cx-asset { height: 34px; padding: 0 12px; background: var(--tile); border-color: var(--line2); white-space: nowrap; flex: none; }
  .cx-asset-n { color: var(--t2); font-weight: 400; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .cx-tfs { gap: 2px; flex: none; }
  .cx-tfmore { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px; }
  .cx-vsep { width: 1px; height: 20px; background: #262626; margin: 0 2px; flex: none; }
  .cx-ib { height: 32px; min-width: 32px; padding: 0 7px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #A3A3A3; display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; transition: background .15s, color .15s, border-color .15s; font-size: 12.5px; }
  .cx-ib:hover { background: var(--tile); color: var(--fg); }
  .cx-ib.on { background: #181818; border-color: #3A3A3A; color: var(--fg); }
  .cx-ib.cx-panelbtn.on { background: #1A1F10; border-color: #3A4A20; color: var(--lime); }
  .cx-ib.dis { color: #4A4A4A; pointer-events: none; }
  .cx-ib.cx-txt span { white-space: nowrap; }
  .cx-tico { display: block; border-radius: 3px; flex: none; }
  .cx-now { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
  .cx-now #cxNowP { font-size: 13px; font-weight: 500; }
  .cx-pct { font-size: 11px; }
  .cx-mu { color: var(--mu); }
  .cx-n { font-variant-numeric: tabular-nums; }
  .cx-n.up, .cx .up { color: var(--lime); }
  .cx-n.dn, .cx .dn { color: var(--cr); }
  .cx-grid { flex: 1; min-height: 0; margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 8px; }
  .cx-grid.l2h { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-grid.l2v { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-grid.l3l { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-grid.l3l .cx-stage { grid-row: 1 / 3; }
  .cx-grid.l3r { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-stage { position: relative; min-height: 0; border-radius: 6px; overflow: hidden; }
  .cx-grid:not(.l1) .cx-stage { box-shadow: inset 0 0 0 1px rgba(201, 226, 107, .45); border-radius: 8px; }
  .cx-grid:not(.l1) .cx-chart { inset: 1px; }
  .cx-cell { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #1E1E1E; border-radius: 8px; overflow: hidden; }
  .cx-cell-h { flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px; border-bottom: 1px solid #161616; overflow: hidden; }
  .cx-cell-a { height: 26px; padding: 0 8px; border-radius: 8px; background: var(--tile); border: 1px solid var(--line2); color: var(--fg); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; flex: none; }
  .cx-cell-tf { flex: none; padding: 2px; }
  .cx-cell-tf .seg-btn { padding: 3px 7px; font-size: 11px; }
  .cx-cell-p { font-size: 12px; white-space: nowrap; }
  .cx-cell-sw { height: 26px; min-width: 26px; }
  .cx-cell-b { position: relative; flex: 1; min-height: 0; }
  .cx-cell-c { position: absolute; inset: 0; }
  .cx-cell-lg { position: absolute; left: 6px; top: 4px; z-index: 3; display: flex; gap: 8px; align-items: center; font-size: 11px; white-space: nowrap; pointer-events: none; max-width: calc(100% - 90px); overflow: hidden; }
  .cx-cell-lg .cx-lg-ohlc { gap: 4px; }
  .cx-lg-tg { pointer-events: auto; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 6px; color: #8A8A8A; font-size: 10.5px; }
  .cx-lg-tg:hover, .cx-lg-tg.on { background: #181818; color: var(--fg); }
  .cx-side-x { margin-left: auto; height: 26px; min-width: 26px; }
  .cx-chart { position: absolute; inset: 0; touch-action: none; }
  .cx-chart[data-cur="crosshair"] canvas { cursor: crosshair !important; }
  .cx-chart[data-cur="pointer"] canvas { cursor: pointer !important; }
  .cx-chart[data-cur="grab"] canvas { cursor: grab !important; }
  .cx-legend { position: absolute; left: 8px; top: 6px; z-index: 3; display: flex; flex-direction: column; gap: 1px; pointer-events: none; max-width: calc(100% - 110px); }
  .cx-lg-row { display: flex; align-items: center; gap: 10px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 12px; white-space: nowrap; }
  .cx-lg-main { flex-wrap: nowrap; overflow: hidden; }
  .cx-lg-sym { color: var(--fg); }
  .cx-lg-ohlc, .cx-lg-vol { display: inline-flex; gap: 5px; align-items: center; }
  .cx-lg-ohlc i, .cx-lg-vol i { font-style: normal; color: var(--mu); }
  .cx-lg-ind { font-size: 11.5px; pointer-events: auto; align-self: flex-start; gap: 8px; }
  .cx-lg-ind:hover { background: #141414; box-shadow: inset 0 0 0 1px #262626; }
  .cx-lg-ind.off .cx-lg-name, .cx-lg-ind.off .cx-n { color: #5A5A5A; }
  .cx-lg-dash { width: 10px; height: 2px; border-radius: 1px; flex: none; }
  .cx-lg-name { color: #DADADA; }
  .cx-lg-act { display: none; gap: 2px; margin-left: 2px; }
  .cx-lg-ind:hover .cx-lg-act { display: inline-flex; }
  .cx-lg-act button { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: #8A8A8A; border-radius: 5px; }
  .cx-lg-act button:hover { color: var(--fg); background: #1E1E1E; }
  .cx-rt { position: absolute; z-index: 3; right: 96px; bottom: 40px; width: 30px; height: 30px; border-radius: 9px; background: #181818; border: 1px solid #3A3A3A; color: var(--fg); display: none; align-items: center; justify-content: center; }
  .cx-rt.on { display: inline-flex; }
  .cx-rt:hover { border-color: var(--lime); color: var(--lime); }
  .cx-mini { position: absolute; z-index: 4; display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: #0D0D0D; box-shadow: inset 0 0 0 1px #2A2A2A, 0 10px 30px rgba(0, 0, 0, .6); }
  .cx-mini[hidden] { display: none; }
  .cx-mini button { height: 26px; min-width: 26px; padding: 0 4px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #BDBDBD; font-size: 10px; }
  .cx-mini button:hover { background: #181818; color: var(--fg); }
  .cx-mini button.on { color: var(--lime); }
  .cx-mini-w { min-width: 34px !important; }
  .cx-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
  .cx-text-in { position: absolute; z-index: 5; height: 24px; width: 220px; padding: 0 8px; border-radius: 6px; background: #151515; border: 1px solid var(--lime); color: var(--fg); font: 11px var(--font-sans); outline: none; }
  .cx-text-in[hidden] { display: none; }
  .cx-load { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; gap: 10px; color: var(--mu); font-size: 13px; background: #0D0D0D; }
  .cx-load.on { display: flex; }
  .cx-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; margin-top: 6px; font-size: 11.5px; }
  .cx-bot-l, .cx-bot-r { display: flex; align-items: center; gap: 2px; min-width: 0; }
  .cx-bot-l { overflow-x: auto; scrollbar-width: none; }
  .cx-bot-l::-webkit-scrollbar { display: none; }
  .cx-rng { padding: 4px 8px; border-radius: 7px; color: #8A8A8A; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; flex: none; }
  .cx-rng:hover { color: var(--fg); }
  .cx-rng.on { background: #181818; color: var(--fg); box-shadow: inset 0 0 0 1px #262626; }
  .cx-auto.on { background: #1A1F10; color: var(--lime); box-shadow: none; }
  .cx-clock span { font-variant-numeric: tabular-nums; }
  .cx-mbar { display: none; }
  .cx-side { display: none; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .cx.cx-panel-on .cx-side { display: flex; }
  .cx-sc { padding: 14px 16px !important; }
  .cx-sc-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--fg); }
  .cx-sc-h svg { color: var(--t2); }
  .cx-cnt { margin-left: auto; font-size: 11px; font-weight: 400; }
  .cx-sc .layer-row { font-size: 12px; padding: 6px 0; border-bottom: 1px solid #161616; }
  .cx-sc .layer-row:last-child { border-bottom: none; }
  .cx-drow { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #161616; border-radius: 6px; cursor: pointer; }
  .cx-drow:hover, .cx-drow.sel { background: #141414; }
  .cx-dn { display: flex; flex-direction: column; gap: 1px; font-size: 12px; min-width: 0; }
  .cx-dn .cx-mu { font-size: 10.5px; }
  .cx-dact { margin-left: auto; display: inline-flex; gap: 4px; }
  .cx-dact button { color: #6E6E6E; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
  .cx-dact button:hover, .cx-dact button.on { color: var(--fg); }
  .cx-empty { font-size: 12px; color: var(--mu); padding: 8px 0; line-height: 1.45; }
  .cx-tzs { display: inline-flex; gap: 2px; }
  .cx-pop { position: fixed; z-index: 80; display: none; min-width: 180px; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 48px rgba(0, 0, 0, .85); }
  .cx-pop.open { display: block; }
  .cx-pop-t { font-size: 10.5px; color: var(--mu); padding: 6px 8px 6px; letter-spacing: .04em; }
  .cx-pop-note { font-size: 10.5px; color: var(--mu); padding: 6px 8px 2px; white-space: normal; max-width: 240px; line-height: 1.4; }
  .cx-mi { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 12px; color: #BDBDBD; white-space: nowrap; text-align: left; }
  .cx-mi:hover { background: #181818; color: var(--fg); }
  .cx-mi.on { background: #181818; color: var(--fg); }
  .cx-mi-ck { margin-left: auto; color: var(--lime); display: inline-flex; }
  .cx-kbd { margin-left: auto; font-size: 10px; color: #5A5A5A; padding-left: 14px; }
  .cx-msep { height: 1px; background: #1E1E1E; margin: 4px 6px; }
  .cx-types { width: 240px; }
  .cx-assets { width: 290px; }
  .cx-assets .dropdown-item { width: 100%; }
  .cx-pal { display: flex; gap: 4px; flex-wrap: wrap; max-width: 150px; }
  .cx-pal button { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
  .cx-pal button.on, .cx-pal button:hover { background: #1E1E1E; }
  .cx-gotom { display: flex; flex-direction: column; gap: 8px; padding: 4px; width: 220px; }
  .cx-date, .cx-num { height: 34px; border-radius: 9px; background: var(--tile); border: 1px solid var(--line2); color: var(--fg); padding: 0 10px; font: 13px var(--font-sans); color-scheme: dark; }
  .cx-go { height: 32px; }
  .cx-indm { display: flex; flex-direction: column; max-height: 80vh; }
  .cx-indm-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; font-size: 17px; }
  .cx-indm-s { margin: 0 20px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--tile); border: 1px solid var(--line2); }
  .cx-indm-s input { flex: 1; background: transparent; border: none; outline: none; color: var(--fg); font: 13px var(--font-sans); }
  .cx-indm-b { display: flex; margin-top: 12px; min-height: 0; overflow: hidden; }
  .cx-indm-tabs { width: 170px; flex: none; padding: 4px 10px 12px; border-right: 1px solid #1C1C1C; display: flex; flex-direction: column; gap: 2px; }
  .cx-indm-tabs button { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 12px; color: #9A9A9A; text-align: left; }
  .cx-indm-tabs button.on { background: #181818; color: var(--fg); }
  .cx-indm-l { flex: 1; padding: 0 12px 12px; overflow-y: auto; max-height: 56vh; }
  .cx-indm-i { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #161616; cursor: pointer; border-radius: 6px; }
  .cx-indm-i:hover { background: #141414; }
  .cx-star { color: #3A3A3A; display: inline-flex; }
  .cx-star.on { color: var(--lime); }
  .cx-star.on svg path { fill: var(--lime); }
  .cx-badge { width: 22px; height: 22px; border-radius: 6px; background: #151515; box-shadow: inset 0 0 0 1px #262626; display: flex; align-items: center; justify-content: center; color: var(--t2); flex: none; }
  .cx-indm-t { display: flex; flex-direction: column; gap: 1px; font-size: 12px; min-width: 0; }
  .cx-indm-t .cx-mu { font-size: 11px; }
  .cx-onchip { margin-left: auto; white-space: nowrap; }
  .cx-isf { display: flex; flex-direction: column; gap: 10px; }
  .cx-isf label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--t2); }
  .cx-isf .cx-num { width: 110px; }
  .cx-vw-row { display: inline-flex; align-items: center; gap: 8px; }
  .cx-isf .cx-vw-row .cx-num { width: 76px; }
  .cx-vw-note { font-size: 12px; line-height: 1.45; }
  .cx-lg-iv { display: inline-flex; gap: 4px; align-items: center; }
  .cx-lg-iv i { font-style: normal; color: var(--mu); }
  .cx-pal-in { max-width: none; }
  .cx-isb { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
  .cx-sheet { display: none; }
  body.cx-full .sidebar, body.cx-full .topbar, body.cx-full .mobile-dock { display: none !important; }
  body.cx-full .content-area { padding: 12px !important; }
  body.cx-full .cx { height: calc(100vh - 24px); height: calc(100dvh - 24px); }

  .cx-w1 .cx-asset-n, .cx-w1 .cx-now .cx-mu { display: none; }
  .cx-w2 .cx-ib.cx-txt span, .cx-w2 .cx-now .cx-pct { display: none; }
  @media (min-width: 1025px) { .cx-w3 .cx-now { display: none; } }
  .cx-w2 .cx-bot .cx-goto span { display: none; }
  @media (max-width: 1024px) {
    .cx, .cx.cx-panel-on { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
    .cx-tools { display: none; }
    .cx-card { padding: 10px 10px 8px; }
    .cx-grid { flex: none; display: flex; flex-direction: column; }
    .cx-stage { flex: none; height: 62vh; min-height: 380px; }
    .cx-grid.l2v .cx-stage { height: 46vh; min-height: 340px; }
    .cx-cell { flex: none; height: 40vh; min-height: 320px; }
    .cx-dsk { display: none !important; }
    .cx-mbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 2px; margin-top: 8px; border-top: 1px solid #1C1C1C; }
    .cx-mbar .cx-ib { height: 38px; min-width: 38px; }
    .cx-mbar .cx-ib.on { background: #1A1F10; border-color: #3A4A20; color: var(--lime); }
    .cx-side { overflow: visible; }
    .cx-rt { right: 80px; }
    .cx-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; pointer-events: none; }
    .cx-sheet.open { transform: translateY(0); visibility: visible; transition: transform .22s ease; pointer-events: auto; }
    .cx-sheet-in { background: #0D0D0D; border-radius: 18px 18px 0 0; box-shadow: 0 -1px 0 #262626, 0 -18px 40px rgba(0, 0, 0, .7); padding: 10px 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .cx-grab { width: 36px; height: 4px; border-radius: 9px; background: #333; margin: 0 auto 10px; }
    .cx-sheet-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
    .cx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .cx-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line); color: var(--t2); font-size: 11px; }
    .cx-tile.on { box-shadow: inset 0 0 0 1px #3A4A20; color: var(--lime); }
    .cx-sheet-f { display: flex; justify-content: space-between; margin-top: 12px; }
    body.cx-full .cx-stage { height: calc(100dvh - 150px); }
  }
  @media (max-width: 680px) {
    .cx-card { padding: 8px 8px 6px; border-radius: 14px; }
    .cx-top { gap: 6px; }
    .cx-asset { height: 32px; padding: 0 9px; font-size: 12.5px; }
    .cx-tfs .seg-btn { padding: 4px 8px; }
    .cx-stage { height: 58vh; min-height: 320px; }
    .cx-now { font-size: 11px; gap: 5px; }
    .cx-now #cxNowP { font-size: 12.5px; }
    .cx-now .cx-pct { display: none; }
    .cx-legend { left: 2px; max-width: calc(100% - 80px); }
    .cx-lg-main .cx-lg-vol, .cx-lg-main > .cx-n, .cx-lg-ind, .cx-lg-tg, .cx-mb-lay { display: none !important; }
    .cx-lg-row { font-size: 11px; gap: 6px; }
    .cx-lg-ohlc { gap: 3px; }
    .cx-bot { height: auto; flex-wrap: wrap; row-gap: 4px; }
    .cx-bot-r { margin-left: auto; }
    .cx-sheet { bottom: 62px; }
    .cx-indm-b { flex-direction: column; }
    .cx-indm-tabs { width: auto; flex-direction: row; border-right: none; border-bottom: 1px solid #1C1C1C; padding: 0 12px 8px; overflow-x: auto; }
    .cx-indm-tabs button { gap: 8px; white-space: nowrap; }
    .cx-indm-l { max-height: 52vh; }
  }
