/* VeriQX — Exact Hyperliquid Visual Design System (Measured Live DOM Tokens 2026-12-07)
 * Canvas: #0d171c | Panel: #0f1a1f | Inset: #192327 / #262f33 | Borders: #273035 / #313b40
 * Text: #f6fefd | Muted: #949e9c | Mint Accent: #50d2c1 / #97fce4 (text-on-accent: #04060c)
 * Bid Green: #20a97f | Ask Coral: #ed7088 | Teal Badge: #0e3530 | Density: 12px tabular-nums
 */

:root {
  --hl-bg: #0d171c;
  --hl-surface: #0f1a1f;
  --hl-surface-deep: #0b1418;
  --hl-surface-inset: #192327;
  --hl-surface-elev: #262f33;
  --hl-border: #273035;
  --hl-border-subtle: #1c272c;
  --hl-border-strong: #313b40;
  --hl-border-dotted: #657072;
  --hl-text: #f6fefd;
  --hl-text-secondary: #d1d9db;
  --hl-text-muted: #949e9c;
  --hl-text-faint: #657072;
  --hl-accent: #97fce4;
  --hl-accent-soft: #50d2c1;
  --hl-accent-hover: #2db8a8;
  --hl-accent-text: #04060c;
  --hl-badge-bg: #0e3530;
  --hl-green: #20a97f;
  --hl-green-bar: rgba(32, 169, 127, 0.16);
  --hl-green-soft: rgba(32, 169, 127, 0.10);
  --hl-red: #ed7088;
  --hl-red-bar: rgba(237, 112, 136, 0.16);
  --hl-red-soft: rgba(237, 112, 136, 0.10);
  --hl-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --hl-radius-sm: 6px;
  --hl-radius-md: 8px;
}

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

html, body {
  background: var(--hl-bg);
  color: var(--hl-text);
  font-family: var(--hl-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

.num, td, .ob-row, .metric-val, .tk-val, input[type="text"], input[type="number"] {
  font-variant-numeric: tabular-nums;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #273035; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b474d; }

/* ================= TOP NAVIGATION BAR (52px) ================= */
.hl-navbar {
  height: 52px;
  background: var(--hl-bg);
  border-bottom: 1px solid var(--hl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.hl-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hl-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.hl-brand-wordmark {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--hl-text);
}

.hl-brand-tag {
  font-size: 10px;
  color: var(--hl-accent-soft);
  background: var(--hl-badge-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.hl-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hl-nav-item {
  font-size: 12px;
  font-weight: 400;
  color: var(--hl-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}

.hl-nav-item:hover { color: var(--hl-text); }
.hl-nav-item.active { color: var(--hl-accent-soft); font-weight: 500; }

.hl-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hl-wallet-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--hl-radius-sm);
  border: 1px solid var(--hl-border-strong);
  background: var(--hl-surface-inset);
  color: var(--hl-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.12s, background 0.12s;
}

.hl-wallet-btn:hover { border-color: var(--hl-accent-soft); }

.hl-wallet-btn.primary {
  background: var(--hl-accent-soft);
  border-color: var(--hl-accent-soft);
  color: var(--hl-accent-text);
  font-weight: 600;
}

.hl-wallet-btn.primary:hover { background: var(--hl-accent-hover); }

.hl-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--hl-radius-sm);
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  color: var(--hl-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hl-icon-btn:hover {
  border-color: var(--hl-border-strong);
  color: var(--hl-text);
}

/* ================= MINT-TEAL TESTNET BANNER ================= */
.hl-banner {
  background: var(--hl-accent-soft);
  color: var(--hl-accent-text);
  padding: 7px 14px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hl-banner a {
  text-decoration: underline;
  font-weight: 600;
  color: var(--hl-accent-text);
}

.hl-banner-close {
  background: none;
  border: none;
  color: var(--hl-accent-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.75;
}
.hl-banner-close:hover { opacity: 1; }

/* ================= MAIN 3-COLUMN HYPERLIQUID GRID ================= */
.hl-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px 298px;
  grid-template-rows: auto auto;
  gap: 4px;
  padding: 4px;
  min-height: calc(100vh - 122px);
}

.hl-panel {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Left Top (Market Header + Chart) */
.hl-left-top {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Order Book Middle Column */
.hl-book-col {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 590px;
}

/* Right Column (Order Ticket + Unified Account Summary spans BOTH rows!) */
.hl-right-col {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Bottom Tables Panel spans Chart + Order Book columns (exact Hyperliquid geometry!) */
.hl-bottom-col {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  min-height: 290px;
}

/* ================= MARKET STATS RIBBON (52px) ================= */
.hl-panel.hl-market-bar {
  height: 54px;
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: visible;
}

.hl-pair-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px 4px 0;
  border-radius: 4px;
  white-space: nowrap;
}

.hl-pair-trigger:hover { background: rgba(255, 255, 255, 0.03); }

.hl-pair-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--hl-text);
  letter-spacing: -0.01em;
}

.hl-lev-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--hl-badge-bg);
  color: var(--hl-accent-soft);
}

.hl-stats-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hl-stats-strip::-webkit-scrollbar { display: none; }

.hl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.hl-stat-lbl {
  font-size: 11px;
  color: var(--hl-text-muted);
  border-bottom: 1px dotted var(--hl-border-dotted);
  width: fit-content;
  cursor: help;
}

.hl-stat-lbl.plain { border-bottom: none; cursor: default; }

.hl-stat-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--hl-text);
}

.txt-green { color: var(--hl-green) !important; }
.txt-red { color: var(--hl-red) !important; }
.txt-mint { color: var(--hl-accent-soft) !important; }
.txt-muted { color: var(--hl-text-muted) !important; }

/* Market Selector Popover */
.hl-market-dropdown {
  position: absolute;
  top: 52px;
  left: 8px;
  width: 560px;
  max-width: calc(100vw - 24px);
  background: #111d22;
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  z-index: 90;
  display: none;
  flex-direction: column;
}
.hl-market-dropdown.open { display: flex; }

.hl-md-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hl-border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.hl-md-search input {
  flex: 1;
  background: var(--hl-surface-deep);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
  height: 30px;
  padding: 0 10px;
  outline: none;
}
.hl-md-search input:focus { border-color: var(--hl-accent-soft); }

.hl-md-table {
  width: 100%;
  border-collapse: collapse;
}
.hl-md-table th {
  text-align: left;
  font-weight: 400;
  color: var(--hl-text-muted);
  font-size: 11px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--hl-border-subtle);
}
.hl-md-table th.r, .hl-md-table td.r { text-align: right; }
.hl-md-table td {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(39, 48, 53, 0.35);
}
.hl-md-table tr:hover td { background: rgba(80, 210, 193, 0.07); }

/* ================= CHART PANEL ================= */
.hl-chart-panel {
  flex: 1;
  min-height: 532px;
}

.hl-tabs-bar {
  height: 38px;
  border-bottom: 1px solid var(--hl-border);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 4px;
  flex-shrink: 0;
}

.hl-tabs-group {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.hl-tabs-group::-webkit-scrollbar { display: none; }

.hl-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 10px;
  color: var(--hl-text-muted);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}

.hl-tab:hover { color: var(--hl-text); }
.hl-tab.active {
  color: var(--hl-text);
  border-bottom-color: var(--hl-accent-soft);
}

.hl-chart-toolbar {
  height: 36px;
  border-bottom: 1px solid var(--hl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: var(--hl-surface);
}

.hl-tf-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hl-tf-btn {
  background: none;
  border: none;
  color: var(--hl-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.hl-tf-btn:hover { color: var(--hl-text); background: rgba(255, 255, 255, 0.04); }
.hl-tf-btn.active { color: var(--hl-accent-soft); font-weight: 500; }

.hl-toolbar-sep {
  width: 1px;
  height: 16px;
  background: var(--hl-border);
  margin: 0 6px;
}

.hl-chart-body {
  display: flex;
  flex: 1;
  min-height: 422px;
  position: relative;
  background: var(--hl-surface-deep);
}

.hl-draw-rail {
  width: 38px;
  border-right: 1px solid var(--hl-border-subtle);
  background: var(--hl-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
  flex-shrink: 0;
}

.hl-rail-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: none;
  border: none;
  color: var(--hl-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hl-rail-btn:hover, .hl-rail-btn.active {
  color: var(--hl-text);
  background: rgba(255, 255, 255, 0.05);
}

.hl-chart-canvas-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
  min-height: 422px;
}

.hl-ohlc-legend {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  pointer-events: none;
  background: rgba(11, 20, 24, 0.72);
  padding: 2px 6px;
  border-radius: 4px;
}

.hl-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hl-green);
  display: inline-block;
  box-shadow: 0 0 6px rgba(32, 169, 127, 0.8);
}

.hl-chart-footer {
  height: 30px;
  border-top: 1px solid var(--hl-border-subtle);
  background: var(--hl-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: var(--hl-text-muted);
}

.hl-chart-alt-pane {
  display: none;
  flex: 1;
  padding: 14px;
  overflow: auto;
  background: var(--hl-surface-deep);
}
.hl-chart-alt-pane.active { display: block; }

/* ================= ORDER BOOK COLUMN (272px) ================= */
.hl-ob-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 28px;
  height: 38px;
  border-bottom: 1px solid var(--hl-border);
}

.hl-ob-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--hl-text-muted);
  cursor: pointer;
  font-size: 12px;
}
.hl-ob-tab.active {
  color: var(--hl-text);
  border-bottom-color: var(--hl-accent-soft);
}

.hl-ob-controls {
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hl-mini-select {
  background: transparent;
  border: none;
  color: var(--hl-text);
  font-size: 11px;
  cursor: pointer;
  outline: none;
}
.hl-mini-select option { background: #111d22; color: var(--hl-text); }

.hl-ob-header {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  column-gap: 6px;
  padding: 4px 10px 6px;
  font-size: 11px;
  color: var(--hl-text-muted);
}
.hl-ob-header span:nth-of-type(2),
.hl-ob-header span:nth-of-type(3) { text-align: right; }

.hl-ob-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.hl-ob-asks {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.hl-ob-bids {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ob-row {
  position: relative;
  height: 22px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  column-gap: 6px;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.ob-row:hover { background: rgba(255, 255, 255, 0.04); }
.ob-row span { position: relative; z-index: 2; }
.ob-row span:nth-of-type(1) { text-align: left; }
.ob-row span:nth-of-type(2),
.ob-row span:nth-of-type(3) { text-align: right; color: var(--hl-text-secondary); }

.ob-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  z-index: 1;
  transition: width 0.15s ease;
}
.ob-bar.ask { background: var(--hl-red-bar); }
.ob-bar.bid { background: var(--hl-green-bar); }

.hl-spread-row {
  height: 26px;
  background: #142026;
  border-top: 1px solid var(--hl-border-subtle);
  border-bottom: 1px solid var(--hl-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--hl-text-secondary);
}

.hl-trades-list {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}
.hl-trades-list.active { display: flex; }

/* ================= RIGHT ORDER TICKET (298px) ================= */
.hl-ticket {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hl-mode-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.hl-mode-pill {
  height: 29px;
  border-radius: var(--hl-radius-sm);
  border: 1px solid var(--hl-border);
  background: var(--hl-surface-inset);
  color: var(--hl-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.hl-mode-pill:hover { border-color: var(--hl-border-strong); background: var(--hl-surface-elev); }

.hl-otype-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--hl-border);
  height: 32px;
  position: relative;
}

.hl-otype-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--hl-text-muted);
  cursor: pointer;
  font-size: 12px;
}
.hl-otype-tab.active {
  color: var(--hl-text);
  border-bottom-color: var(--hl-accent-soft);
}

.hl-pro-menu {
  position: absolute;
  top: 33px;
  right: 0;
  width: 170px;
  background: #111d22;
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 4px;
}
.hl-pro-menu.open { display: flex; }
.hl-pro-menu button {
  text-align: left;
  background: none;
  border: none;
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--hl-text-secondary);
  cursor: pointer;
}
.hl-pro-menu button:hover { background: var(--hl-surface-inset); color: var(--hl-text); }

.hl-side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--hl-surface-inset);
  border-radius: var(--hl-radius-md);
  padding: 2px;
  height: 34px;
}

.hl-side-btn {
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--hl-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.hl-side-btn.buy.active {
  background: var(--hl-accent-soft);
  color: var(--hl-accent-text);
  font-weight: 600;
}
.hl-side-btn.sell.active {
  background: var(--hl-red);
  color: var(--hl-accent-text);
  font-weight: 600;
}

.hl-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.5;
}

.hl-kv-k { color: var(--hl-text-muted); }
.hl-kv-k.dotted { border-bottom: 1px dotted var(--hl-border-dotted); cursor: help; }
.hl-kv-v { color: var(--hl-text); font-weight: 500; }

.hl-input-box {
  height: 36px;
  background: var(--hl-surface-deep);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}
.hl-input-box:focus-within { border-color: var(--hl-accent-soft); }

.hl-input-label {
  color: var(--hl-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.hl-input-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  text-align: right;
  color: var(--hl-text);
  font-size: 12px;
  font-weight: 500;
}

.hl-mid-btn {
  background: none;
  border: none;
  color: var(--hl-accent-soft);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
}
.hl-mid-btn:hover { text-decoration: underline; }

/* Exact Hyperliquid 5-Dot Mint Percentage Slider */
.hl-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hl-slider-track {
  flex: 1;
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.hl-slider-track input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--hl-surface-elev);
  border-radius: 2px;
  outline: none;
  position: relative;
  z-index: 3;
}

.hl-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hl-bg);
  border: 2px solid var(--hl-accent-soft);
  cursor: pointer;
}

.hl-slider-dots {
  position: absolute;
  left: 2px;
  right: 2px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.hl-slider-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475459;
}

.hl-pct-box {
  width: 56px;
  height: 28px;
  background: var(--hl-surface-deep);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
  display: flex;
  align-items: center;
  padding: 0 7px;
  gap: 3px;
}
.hl-pct-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  text-align: right;
  font-size: 12px;
}

.hl-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hl-text-secondary);
  cursor: pointer;
  user-select: none;
}

.hl-check input {
  accent-color: var(--hl-accent-soft);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.hl-cta-primary {
  height: 38px;
  width: 100%;
  border-radius: var(--hl-radius-md);
  border: none;
  background: var(--hl-accent-soft);
  color: var(--hl-accent-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.hl-cta-primary:hover { background: var(--hl-accent-hover); }
.hl-cta-primary.sell-mode { background: var(--hl-red); }
.hl-cta-primary.sell-mode:hover { background: #e2667e; }

.hl-dw-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--hl-border-subtle);
}

.hl-btn-solid {
  height: 34px;
  border-radius: var(--hl-radius-md);
  border: none;
  background: var(--hl-accent-soft);
  color: var(--hl-accent-text);
  font-weight: 600;
  cursor: pointer;
}
.hl-btn-solid:hover { background: var(--hl-accent-hover); }

.hl-btn-outline {
  height: 34px;
  border-radius: var(--hl-radius-md);
  border: 1px solid var(--hl-accent-soft);
  background: transparent;
  color: var(--hl-accent-soft);
  font-weight: 500;
  cursor: pointer;
}
.hl-btn-outline:hover { background: rgba(80, 210, 193, 0.08); }

.hl-acct-summary {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hl-acct-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--hl-text);
  margin-bottom: 2px;
}

/* ================= BOTTOM WORKSPACE TABLES ================= */
.hl-table-wrap {
  flex: 1;
  overflow: auto;
}

.hl-table {
  width: 100%;
  border-collapse: collapse;
}

.hl-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 400;
  color: var(--hl-text-muted);
  padding: 9px 12px;
  border-bottom: 1px solid var(--hl-border-subtle);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--hl-surface);
}

.hl-table th.r, .hl-table td.r { text-align: right; }

.hl-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(39, 48, 53, 0.35);
  color: var(--hl-text-secondary);
  white-space: nowrap;
}

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

.hl-empty-row {
  padding: 28px 16px;
  color: var(--hl-text-muted);
  font-size: 12px;
}

.hl-pill-sm {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--hl-badge-bg);
  color: var(--hl-accent-soft);
  font-weight: 500;
}

.hl-pill-red {
  background: rgba(237, 112, 136, 0.15);
  color: var(--hl-red);
}

.hl-act-btn {
  background: var(--hl-surface-inset);
  border: 1px solid var(--hl-border);
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--hl-text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.hl-act-btn:hover { border-color: var(--hl-accent-soft); color: var(--hl-accent-soft); }

/* ================= FOOTER STATUS BAR (28px) ================= */
.hl-footer {
  height: 28px;
  background: var(--hl-bg);
  border-top: 1px solid var(--hl-border-subtle);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--hl-text-muted);
}

.hl-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--hl-badge-bg);
  color: var(--hl-green);
  font-size: 11px;
  font-weight: 500;
}

.hl-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hl-footer-links a:hover { color: var(--hl-text); }

/* ================= MODALS & TOASTS ================= */
.hl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(2px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hl-modal-backdrop.open { display: flex; }

.hl-modal {
  width: 440px;
  max-width: 100%;
  background: #111d22;
  border: 1px solid var(--hl-border-strong);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.hl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hl-modal-head h3 { font-size: 15px; font-weight: 600; }

.hl-toast-wrap {
  position: fixed;
  bottom: 38px;
  right: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hl-toast {
  background: #132229;
  border: 1px solid var(--hl-accent-soft);
  color: var(--hl-text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 360px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.hl-toast.err { border-color: var(--hl-red); }

@media (max-width: 1120px) {
  .hl-workspace {
    grid-template-columns: 1fr 272px;
  }
  .hl-right-col {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hl-bottom-col {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
}

@media (max-width: 780px) {
  .hl-nav-links { display: none; }
  .hl-workspace { grid-template-columns: 1fr; }
  .hl-left-top, .hl-book-col, .hl-bottom-col, .hl-right-col {
    grid-column: 1 / 2;
    grid-row: auto;
  }
  .hl-right-col { grid-template-columns: 1fr; }
}
