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

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

:root {
  --bg-primary:     oklch(0.18 0.003 250);
  --bg-secondary:   oklch(0.235 0.004 250);
  --bg-tertiary:    oklch(0.295 0.005 250);
  --bg-input:       oklch(0.22 0.004 250);
  --border:         oklch(0.32 0.004 250);
  --text-primary:   oklch(0.97 0.002 250);
  --text-secondary: oklch(0.78 0.003 250);
  --text-muted:     oklch(0.58 0.004 250);

  --green:     oklch(0.74 0.16 150);
  --green-bg:  oklch(0.74 0.16 150 / 0.10);
  --red:       oklch(0.66 0.20 27);
  --red-bg:    oklch(0.66 0.20 27 / 0.10);

  --blue:      oklch(0.70 0.13 250);
  --accent:    oklch(0.88 0.013 250);
  --accent-dk: oklch(0.62 0.012 250);
  --yellow:    oklch(0.82 0.13 75);

  --metal-hi:  oklch(0.97 0.003 250);
  --metal-lo:  oklch(0.34 0.004 250);

  --font:       'Geist', ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  --font-mono:  var(--font);
  --font-serif: var(--font);

  --film-020: rgba(255,255,255,0.02);
  --film-025: rgba(255,255,255,0.025);
  --film-030: rgba(255,255,255,0.03);
  --film-035: rgba(255,255,255,0.035);
  --film-040: rgba(255,255,255,0.04);
  --film-045: rgba(255,255,255,0.045);
  --film-050: rgba(255,255,255,0.05);
  --film-055: rgba(255,255,255,0.055);
  --film-060: rgba(255,255,255,0.06);
  --film-070: rgba(255,255,255,0.07);
  --film-080: rgba(255,255,255,0.08);
  --film-090: rgba(255,255,255,0.09);
  --film-100: rgba(255,255,255,0.1);
  --film-120: rgba(255,255,255,0.12);
  --film-140: rgba(255,255,255,0.14);
  --film-150: rgba(255,255,255,0.15);
  --film-160: rgba(255,255,255,0.16);
  --film-180: rgba(255,255,255,0.18);
}

html, body {
  color-scheme: dark;
  height: 100%;
  font-family: var(--font);
  font-size: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

*, *::before, *::after { font-variant-numeric: tabular-nums !important; }
button, input, select, textarea { font-family: inherit; }

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 36px 32px;
  width: 400px;
  max-width: 92vw;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.auth-hint {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

#keys-form input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--film-060);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-body input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#keys-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
}

.modal-body input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

#keys-form input::placeholder {
  color: var(--text-muted);
}

.auth-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
  text-align: center;
}

.auth-status {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
  text-align: center;
}

.auth-status.validating { color: var(--yellow); }
.auth-status.success    { color: var(--green); }

.btn-primary {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  margin-top: 4px;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font);
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm svg { flex-shrink: 0; display: block; }

.btn-sm:hover { background: var(--bg-input); color: var(--text-primary); }
.btn-sm:focus { outline: none; box-shadow: none; }
.btn-sm:focus-visible { outline: 1px solid var(--accent); }

.btn-admin {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.3);
  font-weight: 700;
}
.btn-admin:hover {
  background: rgba(240, 180, 41, 0.1);
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.5);
}

.btn-krytes-home {
  color: #ea3943;
  border-color: rgba(234, 57, 67, 0.35);
}

.btn-krytes-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(234, 57, 67, 0.08), rgba(234, 57, 67, 0.18));
  border: 1px solid rgba(234, 57, 67, 0.45);
  color: #ea3943;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.btn-krytes-back .kb-arrow {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.btn-krytes-back .kb-icon {
  opacity: 0;
  transform: translateX(-4px) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-krytes-back .kb-label {
  position: relative;
  z-index: 1;
}
.btn-krytes-back:hover {
  background: linear-gradient(135deg, rgba(234, 57, 67, 0.18), rgba(255, 95, 80, 0.32));
  border-color: rgba(234, 57, 67, 0.85);
  color: #ff5f50;
  box-shadow: 0 0 0 1px rgba(234, 57, 67, 0.15), 0 4px 14px -4px rgba(234, 57, 67, 0.55);
  transform: translateY(-0.5px);
}
.btn-krytes-back:hover .kb-arrow {
  transform: translateX(-3px);
}
.btn-krytes-back:hover .kb-icon {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.btn-krytes-back:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(234, 57, 67, 0.2);
}

.user-info-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-name {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  color: #ea3943;
  border-color: rgba(234, 57, 67, 0.3);
  font-size: 10px;
  padding: 2px 8px;
}
.btn-logout:hover {
  background: rgba(234, 57, 67, 0.1);
  border-color: rgba(234, 57, 67, 0.5);
}

.btn-tiny {
  padding: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.btn-tiny:hover {
  background: rgba(74,158,255,0.1);
  color: var(--accent);
  border-color: rgba(74,158,255,0.5);
}

#terminal {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

#terminal.hidden {
  display: none;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.top-bar-merged {
  height: 38px;
  gap: 12px;
}
.top-bar-merged .top-bar-left {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.top-bar-left, .top-bar-center, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pair-search-wrap {
  position: relative;
  display: inline-block;
}
.pair-search {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 22px 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  min-width: 130px;
  width: 130px;
}
.pair-search:focus {
  outline: none;
  border-color: var(--accent, #2962ff);
  cursor: text;
}
.pair-search-caret {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.16s ease, color 0.16s;
}
.pair-search-wrap.is-open .pair-search-caret {
  transform: translateY(-50%) rotate(180deg);
  color: var(--text-secondary);
}
.pair-dropdown {
  display: none;
  position: fixed;
  z-index: 9999;
  background: var(--bg-secondary, #1e222d);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: 352px;
  padding: 0 0 5px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.25);
}
.pair-dropdown.open { display: block; }
.pair-dropdown::-webkit-scrollbar { width: 8px; }
.pair-dropdown::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 4px; border: 2px solid var(--bg-secondary);
}

.pair-dd-group {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 9px 12px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pair-dd-group + .pair-dd-group { padding-top: 4px; }
.pair-dd-tabs { display: flex; gap: 2px; padding: 10px 8px 4px; position: sticky; top: 0; z-index: 2; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.pair-dd-top {
  flex: 0 0 auto; display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; margin-left: 2px;
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-muted); cursor: pointer;
}
.pair-dd-top:hover { color: var(--text-primary); border-color: var(--accent, #2962ff); }
.pair-dd-top .kico { width: 13px; height: 13px; }
.pair-dropdown.is-scrolled .pair-dd-top { display: inline-flex; }
.pair-dd-tab { flex: 1 1 0; min-width: 0; background: transparent; border: 0; border-radius: 4px; padding: 5px 4px; font-size: 11px; font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-dd-tab:hover { background: var(--film-035); color: var(--text-primary); }
.pair-dd-tab.active { background: var(--film-050); color: var(--text-primary); }
.pair-dd-tab-n { margin-left: 5px; font-size: 9px; font-weight: 500; opacity: 0.65; font-family: var(--font-mono); }
.pair-dd-group-n { letter-spacing: 0.04em; opacity: 0.7; }

.pair-dd-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 10px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.1s;
}
.pair-dd-item:hover { background: var(--film-035); }
.pair-dd-item.is-active {
  background: var(--film-060);
  border-left-color: var(--accent, #2962ff);
}
.pair-dd-item.is-current .pair-dd-pair::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent, #2962ff);
  margin-left: 6px;
  align-self: center;
  flex: 0 0 auto;
}

.pair-dd-fav {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  color: var(--text-muted);
  opacity: 0.55;
  transition: color 0.14s, opacity 0.14s;
}
.pair-dd-fav svg { width: 12px; height: 12px; }
.pair-dd-fav:hover { opacity: 1; color: var(--orange, #f0b429); }
.pair-dd-fav.on { opacity: 1; color: var(--orange, #f0b429); }

.pair-dd-tile {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.01em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--tint) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--tint) 32%, transparent);
  color: var(--tint);
  overflow: hidden;
}
.pair-dd-tile.has-logo {
  position: relative;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.pair-dd-logo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}
.pair-dd-item.t0 { --tint: oklch(0.70 0.13 250); }
.pair-dd-item.t1 { --tint: oklch(0.73 0.11 190); }
.pair-dd-item.t2 { --tint: oklch(0.69 0.13 300); }
.pair-dd-item.t3 { --tint: oklch(0.77 0.12 80);  }
.pair-dd-item.t4 { --tint: oklch(0.69 0.14 20);  }
.pair-dd-item.t5 { --tint: oklch(0.73 0.12 150); }

.pair-dd-name { min-width: 0; }
.pair-dd-pair {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
}
.pair-dd-base { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.pair-dd-quote { font-size: 10.5px; color: var(--text-muted); }
.pair-dd-hl { color: var(--accent, #2962ff); font-weight: 700; }
.pair-dd-nomarket {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 1px;
}
.pair-dd-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  opacity: 0.75;
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pair-dd-px { text-align: right; font-family: var(--font-mono); }
.pair-dd-last {
  font-size: 11.5px;
  line-height: 14px;
  min-height: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.pair-dd-chg {
  font-size: 10px;
  line-height: 12px;
  min-height: 12px;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.pair-dd-chg.up { color: var(--green); }
.pair-dd-chg.down { color: var(--red); }
.pair-dd-chg.flat { color: var(--text-muted); }
@keyframes pairTickUp {
  from { color: var(--green); }
  to { color: var(--text-secondary); }
}
@keyframes pairTickDown {
  from { color: var(--red); }
  to { color: var(--text-secondary); }
}
.pair-dd-last.tick-up-a,
.pair-dd-last.tick-up-b { animation: pairTickUp 0.7s ease-out; }
.pair-dd-last.tick-down-a,
.pair-dd-last.tick-down-b { animation: pairTickDown 0.7s ease-out; }

.pair-dd-empty {
  padding: 22px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.pair-dd-empty-q {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.pair-dd-hint {
  display: flex; gap: 12px; justify-content: center;
  padding: 7px 12px 3px;
  margin-top: 3px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.65;
}
.pair-dd-hint kbd {
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 3px;
  margin-right: 3px;
}
body.chart-light .pair-dd-item:hover { background: rgba(0,0,0,0.04); }
body.chart-light .pair-dd-item.is-active { background: rgba(0,0,0,0.06); }
body.chart-light .pair-dropdown {
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
}

.current-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.price-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.price-change.up { color: var(--green); }
.price-change.down { color: var(--red); }

.exchange-badge {
  background: var(--blue);
  color: white;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.exchange-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  background: var(--film-025);
  border: 1px solid var(--film-080);
  border-radius: 6px;
  padding: 0 4px 0 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.exchange-chip:hover {
  background: var(--film-040);
  border-color: var(--film-140);
}
.exchange-chip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2962ff, #1c54e3);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  font-family: var(--font);
}
img.exchange-chip-mark {
  background: none;
  object-fit: cover;
  padding: 0;
}

.exchange-selector-wrap {
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
}
.exchange-select {
  background: transparent;
  color: var(--text-primary);
  padding: 0 14px 0 4px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23a3a8b3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.exchange-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}
.exchange-select option:disabled { color: var(--text-muted); }
.exchange-status {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.exchange-chip-divider {
  width: 1px;
  height: 14px;
  background: var(--film-080);
  margin: 0 4px;
}
.leverage-badge {
  background: transparent;
  border: none;
  color: var(--yellow);
  padding: 0 6px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  letter-spacing: 0;
}
.leverage-badge:hover { color: #ffce5a; }
.leverage-badge.is-fitted { border-bottom: 1px dashed currentColor; cursor: help; }

.grid-toggle {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.grid-btn {
  padding: 3px 7px;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.1s;
}

.grid-btn:hover { color: var(--text-secondary); }
.grid-btn.active { background: var(--blue); color: white; }

.top-section {
  flex-shrink: 0;
  position: relative;
}

.top-section.collapsed .top-bar,
.top-section.collapsed .ticker-bar-wrap {
  display: none;
}

.top-section.collapsed .top-section-toggle {
  border-bottom: 1px solid var(--border);
}

.top-section.collapsed .top-section-toggle svg {
  transform: rotate(180deg);
}

.top-section-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 10px;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.top-section-toggle:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.top-section-toggle svg {
  transition: transform 0.15s;
}

.tib-inline {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tib-inline::-webkit-scrollbar { display: none; }
.tib-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 8px 0 4px;
  flex-shrink: 0;
}
.tib-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tib-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.tib-value {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}
.ticker-bar-wrap { display: none !important; }

.chart-type-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 10px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  height: 20px;
  box-sizing: border-box;
}

.timeframe-bar {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 24px;
  padding: 0 8px 0 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.timeframe-bar::-webkit-scrollbar { display: none; }
.timeframe-bar > * { flex-shrink: 0; }

.tf-btn {
  padding: 2px 7px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  font-family: var(--font);
  border-radius: 2px;
  transition: all 0.1s;
}

.tf-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.tf-btn.active { background: var(--blue); color: white; }
.tf-separator { color: var(--text-muted); margin: 0 4px; font-size: 10px; }

.tf-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
}

.main-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.resize-handle-v {
  width: 5px;
  cursor: col-resize;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  transition: background 0.15s;
}

.resize-handle-v::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -3px;
  width: 11px;
}

.resize-handle-v:hover,
.resize-handle-v.active {
  background: var(--accent);
}

#resize-right-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 33px;
  box-sizing: border-box;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}
.main-layout:has(#chart-grid[style*="c9"]) #resize-right-panel::after { height: 18px; }

.resize-handle-h {
  height: 5px;
  cursor: row-resize;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  transition: background 0.15s;
}

.resize-handle-h::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -3px;
  height: 11px;
}

.resize-handle-h:hover,
.resize-handle-h.active {
  background: var(--accent);
}

body.resizing-col { cursor: col-resize !important; }
body.resizing-row { cursor: row-resize !important; }
body.resizing-col *, body.resizing-row * { cursor: inherit !important; -webkit-user-select: none !important; user-select: none !important; }

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 360px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 13px; font-weight: 600; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 12px 16px;
}

.modal-body label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  margin-top: 8px;
}

.modal-body label:first-child { margin-top: 0; }

.settings-modal-v2 {
  width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--film-060);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px var(--film-030) inset;
  overflow: hidden;
}

.settings-modal-v2 .modal-header {
  flex: 0 0 auto;
  padding: 16px 20px;
  border-bottom: 1px solid var(--film-040);
  background: linear-gradient(180deg, var(--film-020) 0%, transparent 100%);
}

.settings-modal-v2 .modal-header h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.settings-modal-v2 .modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.15s;
}

.settings-modal-v2 .modal-close:hover {
  background: var(--film-060);
  color: var(--text-primary);
}

.settings-modal-v2 .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 20px 0;
}

.settings-section {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--film-040);
}

.settings-section:last-of-type {
  border-bottom: none;
}

.settings-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.settings-field.full {
  margin-top: 10px;
}

.settings-field label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 5px;
  margin-top: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-field input {
  height: 36px;
  font-size: 13px;
  padding: 0 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.settings-field input:hover {
  border-color: var(--film-120);
}

.settings-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74,158,255,0.12);
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  min-height: 32px;
}

.drw-tpl-wrap > #btn-drw-templates { display: none !important; }
.top-bar-right > .drw-tpl-wrap { margin-left: -6px; }

.settings-action-row {
  margin-top: 6px;
}
.settings-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-secondary, #181a20);
  border: 1px solid var(--border, #2a2d35);
  border-radius: 6px;
  color: var(--text-primary, #d1d4dc);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.settings-action-btn:hover {
  background: rgba(41, 98, 255, 0.08);
  border-color: rgba(41, 98, 255, 0.4);
}
.settings-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #2962ff);
}
.settings-action-label {
  flex: 1;
  font-weight: 500;
}
.settings-action-status {
  font-size: 11px;
  color: var(--text-muted, #6b7280);
  font-family: var(--font-mono);
}

.settings-switch {
  position: relative;
  width: 36px;
  height: 20px;
  cursor: pointer;
  display: inline-block;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: 0.2s;
}

.settings-switch-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.2s;
}

.settings-switch input:checked + .settings-switch-slider {
  background: var(--blue);
  border-color: var(--blue);
}

.settings-switch input:checked + .settings-switch-slider::before {
  transform: translateX(16px);
  background: white;
}

.lang-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--bg-3, #1a1f2a);
  border: 1px solid var(--border, #2a2f3a);
  border-radius: 6px;
  padding: 2px;
}
.lang-toggle .lang-btn {
  background: transparent;
  color: var(--text-muted, #8a93a6);
  border: 0;
  padding: 4px 12px;
  font: 600 11px/1 'Geist', system-ui, sans-serif;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 120ms, color 120ms;
}
.lang-toggle .lang-btn:hover {
  color: var(--text, #d4d9e3);
}
.lang-toggle .lang-btn.is-active {
  background: var(--blue, #3b82f6);
  color: #fff;
}

.margin-mode-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--bg-3, #1a1f2a);
  border: 1px solid var(--border, #2a2f3a);
  border-radius: 6px;
  padding: 2px;
  width: 200px;
}
.margin-mode-toggle .mm-btn {
  background: transparent;
  color: var(--text-muted, #8a93a6);
  border: 0;
  padding: 4px 12px;
  font: 600 11px/1 'Geist', system-ui, sans-serif;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 120ms, color 120ms;
  flex: 1 1 0;
  text-align: center;
}
.margin-mode-toggle .mm-btn:hover:not(.mm-disabled) {
  color: var(--text, #d4d9e3);
}
.margin-mode-toggle .mm-btn.active {
  background: var(--blue, #3b82f6);
  color: #fff;
}
.margin-mode-toggle .mm-btn.mm-disabled {
  color: #555;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.55;
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cc-row > input[type="color"] {
  display: none;
}

.cc-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--film-120);
  transition: border-color 0.15s, transform 0.15s;
}

.cc-pick:hover .cc-dot {
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

#cc-dot-up { background: var(--green, #16c784); }
#cc-dot-down { background: var(--red, #ea3943); }

.cc-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--film-150);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.cc-swatch:hover {
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.1);
}
#swatch-up { background: #16c784; }
#swatch-down { background: #ea3943; }
#swatch-bg { background: #0d1117; }

.cc-txt {
  font-size: 11px;
  font-weight: 600;
}

.cc-txt.up { color: var(--green, #16c784); }
.cc-txt.down { color: var(--red, #ea3943); }

.cc-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1px solid var(--film-080);
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 2px;
  transition: all 0.15s;
}

.cc-reset:hover {
  color: var(--text-secondary);
  border-color: var(--film-150);
  background: var(--film-040);
}

#cc-popup {
  background: var(--bg-secondary, #1a1d23);
  border: 1px solid var(--border, #30363d);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  width: 180px;
}

.cc-popup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.cc-popup-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.1s, transform 0.1s;
}
.cc-popup-swatch:hover {
  border-color: #fff;
  transform: scale(1.15);
}

.cc-popup-hex-row {
  display: flex;
  gap: 4px;
}

.cc-popup-hex {
  width: 100%;
  background: var(--bg-primary, #0d1117);
  border: 1px solid var(--border, #30363d);
  color: var(--text, #e6edf3);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  box-sizing: border-box;
}
.cc-popup-hex:focus {
  outline: none;
  border-color: var(--accent, #7c3aed);
}

.api-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.api-status-badge.checking {
  color: var(--yellow);
  background: rgba(255,193,7,0.1);
}

.api-status-badge.connected {
  color: var(--green);
  background: var(--green-bg);
}

.api-status-badge.error {
  color: var(--red);
  background: var(--red-bg);
}

.api-status-badge.no-keys {
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

.api-check-btn {
  background: var(--film-040);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.api-check-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,158,255,0.06);
}

.api-check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-save-btn {
  width: 100%;
  margin-top: 16px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  margin-bottom: 14px;
  box-shadow: 0 -14px 18px -10px rgba(0, 0, 0, 0.55);
}

.scroll-hint {
  position: sticky;
  bottom: 0;
  height: 40px;
  margin-top: -40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.scroll-hint.sh-on { opacity: 1; }
.scroll-hint-pill {
  pointer-events: none;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
  animation: sh-bob 1.7s ease-in-out infinite;
}
.scroll-hint.sh-on .scroll-hint-pill { pointer-events: auto; }
.scroll-hint.sh-on .scroll-hint-pill:hover {
  animation-play-state: paused;
  filter: brightness(1.15);
}
@keyframes sh-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint-pill { animation: none; }
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.status-dot.connected { background: var(--green); }
.status-sep { color: var(--text-muted); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-primary); }
}

.kico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.kico-lg { width: 1.15em; height: 1.15em; }
.kico[data-icon="crown"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294zM5 21h14'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294zM5 21h14'/%3E%3C/svg%3E");
}
.kico[data-icon="info"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4m0-4h.01'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4m0-4h.01'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="rocket"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09'/%3E%3Cpath d='M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09'/%3E%3Cpath d='M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="wand-sparkles"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21.64 3.64l-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72M14 7l3 3M5 6v4m14 4v4M10 2v2M7 8H3m18 8h-4M11 3H9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21.64 3.64l-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72M14 7l3 3M5 6v4m14 4v4M10 2v2M7 8H3m18 8h-4M11 3H9'/%3E%3C/svg%3E");
}
.kico[data-icon="triangle-alert"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01'/%3E%3C/svg%3E");
}
.kico[data-icon="wrench"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z'/%3E%3C/svg%3E");
}
.kico[data-icon="book-open"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z'/%3E%3C/svg%3E");
}
.kico[data-icon="clipboard-list"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m4 7h4m-4 5h4m-8-5h.01M8 16h.01'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m4 7h4m-4 5h4m-8-5h.01M8 16h.01'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="life-buoy"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.93 4.93l4.24 4.24m5.66 0l4.24-4.24m-4.24 9.9l4.24 4.24m-9.9-4.24l-4.24 4.24'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.93 4.93l4.24 4.24m5.66 0l4.24-4.24m-4.24 9.9l4.24 4.24m-9.9-4.24l-4.24 4.24'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="x"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}
.kico[data-icon="arrow-up"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l7-7l7 7m-7 7V5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l7-7l7 7m-7 7V5'/%3E%3C/svg%3E");
}
.kico[data-icon="bell"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.268 21a2 2 0 0 0 3.464 0m-10.47-5.674A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.268 21a2 2 0 0 0 3.464 0m-10.47-5.674A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326'/%3E%3C/svg%3E");
}
.kico[data-icon="bell-off"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.268 21a2 2 0 0 0 3.464 0M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742M2 2l20 20M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.268 21a2 2 0 0 0 3.464 0M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742M2 2l20 20M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05'/%3E%3C/svg%3E");
}
.kico[data-icon="lock"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="lock-open"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.9-1'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.9-1'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="eye"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="eye-off"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242'/%3E%3Cpath d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242'/%3E%3Cpath d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="settings"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="square-check"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E");
}
.kico[data-icon="square"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect width='18' height='18' x='3' y='3' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' rx='2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect width='18' height='18' x='3' y='3' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' rx='2'/%3E%3C/svg%3E");
}
.kico[data-icon="pencil"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4'/%3E%3C/svg%3E");
}
.kico[data-icon="trash-2"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}
.kico[data-icon="star"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
}
.kico[data-icon="star-filled"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2523000' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2523000' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
}
.kico[data-icon="check"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.kico[data-icon="ban"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M4.929 4.929L19.07 19.071'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M4.929 4.929L19.07 19.071'/%3E%3C/g%3E%3C/svg%3E");
}

.notify-container {
  position: fixed;
  top: 48px;
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notify-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: var(--font);
  pointer-events: auto;
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.notify-toast.notify-visible {
  transform: translateX(0);
  opacity: 1;
}

.notify-toast.notify-out {
  transform: translateX(calc(100% + 20px));
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.5, 0, 0.8, 0.3), opacity 0.25s ease;
}

.notify-count {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--film-080);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.notify-success { border-left: 3px solid var(--green); }
.notify-error   { border-left: 3px solid var(--red); }
.notify-warning { border-left: 3px solid var(--yellow); }

.notify-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.notify-success .notify-icon { color: var(--green); }
.notify-error   .notify-icon { color: var(--red); }
.notify-warning .notify-icon { color: var(--yellow); }

.notify-body {
  flex: 1;
  min-width: 0;
}

.notify-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.notify-msg {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-word;
}

.notify-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}

.notify-close:hover { color: var(--text-primary); }

body.chart-light {
  color-scheme: light;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f6f8;
  --bg-tertiary: #e8ebef;
  --bg-input: #ffffff;
  --bg-panel: #ffffff;
  --bg-popover: #ffffff;
  --border: #d0d4db;
  --text: #0d0e12;
  --text-primary: #0d0e12;
  --text-secondary: #1f2329;
  --text-muted: #4a5260;
  --green: #00a854;
  --green-bg: #00a85418;
  --red: #d92e44;
  --red-bg: #d92e4418;
  --blue: #2563eb;
  --accent: #2563eb;
  --yellow: #b8780b;
  --metal-hi: #ffffff;
  --metal-lo: #c2c6cd;

  --film-020: rgba(13,14,18,0.02);
  --film-025: rgba(13,14,18,0.025);
  --film-030: rgba(13,14,18,0.03);
  --film-035: rgba(13,14,18,0.035);
  --film-040: rgba(13,14,18,0.04);
  --film-045: rgba(13,14,18,0.045);
  --film-050: rgba(13,14,18,0.055);
  --film-055: rgba(13,14,18,0.06);
  --film-060: rgba(13,14,18,0.065);
  --film-070: rgba(13,14,18,0.08);
  --film-080: rgba(13,14,18,0.09);
  --film-090: rgba(13,14,18,0.105);
  --film-100: rgba(13,14,18,0.12);
  --film-120: rgba(13,14,18,0.15);
  --film-140: rgba(13,14,18,0.175);
  --film-150: rgba(13,14,18,0.19);
  --film-160: rgba(13,14,18,0.205);
  --film-180: rgba(13,14,18,0.235);
}

body.chart-light ::-webkit-scrollbar-track { background: #eef0f3; }
body.chart-light ::-webkit-scrollbar-thumb { background: #c0c5cd; }
body.chart-light ::-webkit-scrollbar-thumb:hover { background: #9aa0aa; }
@supports not selector(::-webkit-scrollbar) {
  body.chart-light { scrollbar-color: #c0c5cd #eef0f3; }
}

body.chart-light .modal-overlay,
body.chart-light .drw-modal-overlay { background: rgba(0,0,0,0.35); }
body.chart-light .drw-modal,
body.chart-light .modal-content,
body.chart-light .ind-settings-pop,
body.chart-light .drw-ctx-menu,
body.chart-light .chart-ctx-menu,
body.chart-light .drawing-ctx-menu,
body.chart-light .ctx-menu,
body.chart-light .ema-popover,
body.chart-light .vp-popover,
body.chart-light .cds-popover,
body.chart-light .ohlc-tooltip,
body.chart-light .notification,
body.chart-light .tb-flyout,
body.chart-light .drw-color-presets,
body.chart-light .wl-add-results,
body.chart-light .pos-tooltip,
body.chart-light #wl-add-dialog,
body.chart-light .vp-pop-content,
body.chart-light .cds-pop-content {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
  box-shadow: 0 8px 24px rgba(15, 20, 30, 0.12);
}

body.chart-light .ind-settings-pop label,
body.chart-light .drw-modal label,
body.chart-light .modal-content label,
body.chart-light .ema-popover *,
body.chart-light .vp-popover *,
body.chart-light .ohlc-tooltip * { color: var(--text-primary); }

body.chart-light input,
body.chart-light select,
body.chart-light textarea {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border);
}
body.chart-light input::placeholder,
body.chart-light textarea::placeholder { color: var(--text-muted); }

body.chart-light .drw-btn-ghost,
body.chart-light .modal-btn-ghost,
body.chart-light .cs-btn-ghost {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
body.chart-light .drw-btn-primary,
body.chart-light .modal-btn-primary,
body.chart-light .cs-btn-primary {
  background: var(--accent);
  color: #ffffff;
}

body.chart-light .tb-btn { color: var(--text-secondary); }
body.chart-light .tb-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
body.chart-light .tb-btn.is-active { background: var(--accent); color: #ffffff; }

body.chart-light .pos-tab,
body.chart-light .ot-tab { color: var(--text-secondary); }
body.chart-light .pos-tab.active,
body.chart-light .ot-tab.active { color: var(--text-primary); }
body.chart-light .modal-order-item:hover,
body.chart-light .wl-item:hover,
body.chart-light .wl-item.active { background: var(--bg-tertiary); }
body.chart-light .wl-section-name { color: var(--text-muted); background: var(--bg-tertiary); }

body.chart-light .panel-controls,
body.chart-light .watchlist,
body.chart-light .order-book-panel,
body.chart-light .status-bar { background: var(--bg-primary); color: var(--text-primary); }
body.chart-light .section-header,
body.chart-light .watchlist-header,
body.chart-light .watchlist-table-header,
body.chart-light .position-table-head,
body.chart-light .order-table-head,
body.chart-light .order-history-head,
body.chart-light .modal-order-head { color: var(--text-secondary); background: var(--bg-secondary); }

body.chart-light #drawing-favorites-bar,
body.chart-light .drw-toolbar,
body.chart-light .price-time-label {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

body.chart-light .click-mode-badge { color: #ffffff; }

body.chart-light .modal-content {
  background: #ffffff;
  border-color: #d5d8de;
}
body.chart-light .settings-modal-v2 {
  border-color: #d5d8de;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.03) inset;
}
body.chart-light .settings-modal-v2 .modal-header {
  border-bottom-color: #e3e6eb;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
}
body.chart-light .settings-modal-v2 .modal-header h3 { color: #1a1d26; }
body.chart-light .settings-modal-v2 .modal-close { color: #4a5568; }
body.chart-light .settings-modal-v2 .modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: #1a1d26;
}
body.chart-light .settings-section { border-bottom-color: #e3e6eb; }
body.chart-light .settings-section-title { color: #4a5568; }
body.chart-light .settings-field label { color: #6b7280; }
body.chart-light .settings-field input {
  background: #ffffff;
  border-color: #d5d8de;
  color: #1a1d26;
}
body.chart-light .settings-field input:hover { border-color: #b6bcc6; }
body.chart-light .settings-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
body.chart-light .settings-toggle-row { color: #1a1d26; }
body.chart-light .settings-toggle-row span { color: #1a1d26; }
body.chart-light .settings-switch-slider {
  background: #d5d8de;
  border-color: #c0c4cc;
}
body.chart-light .settings-switch-slider::before { background: #ffffff; }
body.chart-light .settings-switch input:checked + .settings-switch-slider {
  background: #2563eb;
  border-color: #2563eb;
}
body.chart-light .settings-row > span { color: #1a1d26; }
body.chart-light .cc-swatch { border-color: rgba(0,0,0,0.18); }
body.chart-light .cc-swatch:hover { border-color: rgba(0,0,0,0.38); }
body.chart-light .cc-dot { border-color: rgba(0,0,0,0.15); }
body.chart-light .cc-pick:hover .cc-dot { border-color: rgba(0,0,0,0.3); }
body.chart-light .cc-reset {
  border-color: rgba(0,0,0,0.12);
  color: #6b7280;
}
body.chart-light .cc-reset:hover {
  color: #1a1d26;
  border-color: rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.04);
}
body.chart-light #cc-popup {
  background: #ffffff;
  border-color: #d5d8de;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
body.chart-light .cc-popup-swatch:hover { border-color: #1a1d26; }
body.chart-light .cc-popup-hex {
  background: #f5f6f8;
  border-color: #d5d8de;
  color: #1a1d26;
}
body.chart-light .api-check-btn {
  background: rgba(0,0,0,0.03);
  border-color: #d5d8de;
  color: #4a5568;
}
body.chart-light .api-check-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
}
body.chart-light .settings-save-btn {
  background: #2563eb;
  color: #ffffff;
}

body.chart-light .drw-modal-overlay { background: rgba(20,24,32,0.35); }
body.chart-light .drw-modal {
  background: #ffffff;
  border-color: #d5d8de;
  color: #1a1d26;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}
body.chart-light .drw-modal-head { border-bottom-color: #e3e6eb; }
body.chart-light .drw-modal-title { color: #1a1d26; }
body.chart-light .drw-modal-close { color: #6b7280; }
body.chart-light .drw-modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: #1a1d26;
}
body.chart-light .drw-modal-foot { border-top-color: #e3e6eb; }
body.chart-light .drw-field { border-bottom-color: #eef0f3; }
body.chart-light .drw-field > label { color: #6b7280; }
body.chart-light .drw-field-check > label { color: #1a1d26; }
body.chart-light .drw-color-swatch { border-color: rgba(0,0,0,0.18); }
body.chart-light .drw-hex,
body.chart-light .drw-select,
body.chart-light .drw-text {
  background: #f5f6f8;
  border-color: #d5d8de;
  color: #1a1d26;
}
body.chart-light .drw-hex:focus,
body.chart-light .drw-select:focus,
body.chart-light .drw-text:focus {
  border-color: #FFA629;
  outline: 0;
}
body.chart-light .drw-range-val { color: #6b7280; }

body.chart-light .drw-modal,
body.chart-light .settings-modal-v2 { color-scheme: light; }

body.chart-light .exchange-chip {
  background: #f5f6f8;
  border-color: #d0d4db;
}
body.chart-light .exchange-chip:hover {
  background: #e8ebef;
  border-color: #b9bfc9;
}
body.chart-light .exchange-chip-divider { background: #d0d4db; }
body.chart-light .exchange-select { background: transparent; }

body.chart-light .drw-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: transparent;
}
body.chart-light .drw-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 3px; background: #d8dbe2;
}
body.chart-light .drw-range::-moz-range-track {
  height: 4px; border-radius: 3px; background: #d8dbe2;
}
body.chart-light .drw-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: #FFA629; border: none; cursor: pointer;
}
body.chart-light .drw-range::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%; background: #FFA629; border: none; cursor: pointer;
}

body.chart-light .lang-toggle,
body.chart-light .margin-mode-toggle {
  background: #e8eaee;
  border-color: #d5d8de;
}
body.chart-light .lang-toggle .lang-btn,
body.chart-light .margin-mode-toggle .mm-btn {
  color: #4a5160;
}
body.chart-light .lang-toggle .lang-btn:hover,
body.chart-light .margin-mode-toggle .mm-btn:hover:not(.mm-disabled) {
  color: #1f2329;
}
body.chart-light .lang-toggle .lang-btn.is-active,
body.chart-light .margin-mode-toggle .mm-btn.active {
  background: var(--blue, #3b82f6);
  color: #fff;
}
body.chart-light .margin-mode-toggle .mm-btn.mm-disabled {
  color: #9aa1ad;
}
body.chart-light .drw-section-title {
  color: #6b7280;
  border-top-color: #e3e6eb;
}
body.chart-light .drw-fib-row { color: #1a1d26; }
body.chart-light .drw-btn-ghost {
  color: #1a1d26;
  border-color: #d5d8de;
}
body.chart-light .drw-btn-ghost:hover { background: rgba(0,0,0,0.04); }
body.chart-light .drw-btn-primary { color: #1a1d26; }

body.chart-light .drw-tpl-dropdown {
  background: #ffffff;
  border-color: #d5d8de;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
body.chart-light .drw-tpl-dd-head { color: #6b7280; }
body.chart-light .drw-tpl-item { color: #1a1d26; }
body.chart-light .drw-tpl-item:hover { background: #f0f1f4; color: #1a1d26; }
body.chart-light .drw-tpl-count {
  color: #4a5568;
  background: #ebedf0;
}
body.chart-light .drw-tpl-empty { color: #8b95a5; }
body.chart-light .drw-tpl-dd-sep { background: #e3e6eb; }
body.chart-light .drw-tpl-dd-btn { color: #1a1d26; }
body.chart-light .drw-tpl-dd-btn:hover { background: #f0f1f4; color: #FFA629; }
body.chart-light .drw-tpl-row { border-bottom-color: #eef0f3; }
body.chart-light .drw-tpl-row > div { color: #1a1d26; }
body.chart-light .drw-tpl-row-head,
body.chart-light .drw-tpl-row-head > div { color: #6b7280; }
body.chart-light .drw-tpl-actions button {
  border-color: rgba(0,0,0,0.12);
  color: #6b7280;
}

body.chart-light .drw-menu {
  background: #ffffff;
  border-color: #d5d8de;
  color: #1a1d26;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
body.chart-light .drw-menu-sep { background: #e3e6eb; }
body.chart-light .drw-menu-item { color: #1a1d26; }
body.chart-light .drw-menu-item:hover { background: #f0f1f4; color: #1a1d26; }
body.chart-light .drw-menu-shortcut { color: #8b95a5; }
body.chart-light .drw-tpl-caret { color: #6b7280; }
body.chart-light .drw-tpl-menu {
  background: #ffffff;
  border-color: #d5d8de;
  color: #1a1d26;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
body.chart-light .drw-tpl-item { color: #1a1d26; }
body.chart-light .drw-tpl-item:hover { background: #f0f1f4; color: #1a1d26; }
body.chart-light .drw-tpl-del { color: #8b95a5; }
body.chart-light .drw-toast {
  background: #ffffff;
  color: #1a1d26;
  border-color: rgba(255,166,41,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

body.chart-light .chart-ctx-menu {
  background: #ffffff !important;
  border-color: #d5d8de !important;
  color: #1a1d26 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important;
}
body.chart-light .chart-ctx-menu .ctx-item { color: #1a1d26; }
body.chart-light .chart-ctx-menu .ctx-item:hover { background: #f0f1f4; }
body.chart-light .chart-ctx-menu .ctx-sep { background: #e3e6eb; }
body.chart-light .chart-ctx-menu .ctx-submenu {
  background: #ffffff;
  border-color: #d5d8de;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
body.chart-light .chart-ctx-menu .ctx-price-header { color: #1a1d26; }

body.chart-light .modal-overlay { background: rgba(20,24,32,0.35); }
body.chart-light .modal-box {
  background: #ffffff;
  border-color: #d5d8de;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}
body.chart-light .modal-box .modal-header { color: #1a1d26; border-bottom-color: #e3e6eb; }
body.chart-light .modal-alert-item { color: #1a1d26; }
body.chart-light .modal-alert-item:hover { background: rgba(0,0,0,0.04); }
body.chart-light .tg-status-row,
body.chart-light .tg-desc { color: #4a5568; }

body.chart-light .left-toolbar {
  background: #ffffff !important;
  border-right-color: #e3e6eb !important;
}
body.chart-light .tb-div { background: #e3e6eb; }
body.chart-light .tb-div-strong { background: #d5d8de; }
body.chart-light .tb-btn { color: #6b7280; }
body.chart-light .tb-btn:hover { background: #f0f1f4; color: #1a1d26; }
body.chart-light .tb-btn.is-active { background: #ebedf0; color: #d97706; }
body.chart-light .tb-btn[data-tip]::after {
  background: #1a1d26;
  color: #ffffff;
}
body.chart-light .tb-flyout {
  background: #ffffff;
  border-color: #d5d8de;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

body.chart-light #fav-color-picker {
  background: #ffffff !important;
  border-color: #d5d8de !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
}
body.chart-light #drawing-favorites-bar {
  background: #ffffff !important;
  border-color: #d5d8de !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
}
body.chart-light #drawing-favorites-bar .fav-drag-handle { color: #8b95a5; }
body.chart-light #drawing-favorites-bar .fav-tool-btn { color: #6b7280; }
body.chart-light #drawing-favorites-bar .fav-tool-btn:hover { background: #f0f1f4 !important; color: #1a1d26 !important; }

body.chart-light .hotkeys-modal-content {
  border-color: #d5d8de;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
body.chart-light .hotkeys-modal-content .modal-header {
  border-bottom-color: #e3e6eb;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
}
body.chart-light .hotkeys-modal-content .modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: #1a1d26;
}
body.chart-light .hk-category {
  color: #6b7280;
  border-bottom-color: #e3e6eb;
}
body.chart-light .hk-row { border-bottom-color: #eef0f3; }
body.chart-light .hk-row:hover { background: rgba(0,0,0,0.03); }
body.chart-light .hk-action-name { color: #1a1d26; }
body.chart-light .hk-shortcut-display {
  color: #4a5568;
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
body.chart-light .hk-change-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #4a5568;
}
body.chart-light .hk-change-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #1a1d26;
  border-color: rgba(0,0,0,0.18);
}
body.chart-light .hotkeys-footer { border-top-color: #e3e6eb; }

.hotkeys-modal-content {
  width: 480px;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid var(--film-060);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px var(--film-030) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hotkeys-modal-content .modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--film-040);
  background: linear-gradient(180deg, var(--film-020) 0%, transparent 100%);
  flex-shrink: 0;
}

.hotkeys-modal-content .modal-header h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hotkeys-modal-content .modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.15s;
}

.hotkeys-modal-content .modal-close:hover {
  background: var(--film-060);
  color: var(--text-primary);
}

.hotkeys-search-wrap {
  padding: 12px 20px 8px;
  flex-shrink: 0;
}

.hotkeys-search-wrap input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.hotkeys-search-wrap input:focus {
  border-color: var(--accent);
}

.hotkeys-search-wrap input::placeholder {
  color: var(--text-muted);
}

.hotkeys-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 12px;
  max-height: 50vh;
}

.hk-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--film-030);
}

.hk-category:first-child {
  padding-top: 4px;
}

.hk-row {
  display: flex;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--film-020);
  gap: 8px;
  transition: background 0.1s;
}

.hk-row:hover {
  background: var(--film-020);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

.hk-row.hk-capturing {
  background: rgba(74, 158, 255, 0.08);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
  border-bottom-color: transparent;
}

.hk-action-name {
  flex: 1;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
}

.hk-shortcut-display {
  min-width: 80px;
  text-align: center;
  font-size: 11px;
  font-family: var(--font);
  color: var(--text-secondary);
  background: var(--film-040);
  border: 1px solid var(--film-060);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

.hk-shortcut-display.hk-waiting {
  color: var(--accent);
  background: rgba(74, 158, 255, 0.08);
  border-color: rgba(74, 158, 255, 0.2);
  animation: hk-pulse 1s ease-in-out infinite;
}

@keyframes hk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hk-change-btn {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--film-040);
  border: 1px solid var(--film-080);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.hk-change-btn:hover {
  background: var(--film-080);
  color: var(--text-primary);
  border-color: var(--film-120);
}

.hk-clear-btn {
  font-size: 13px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.hk-clear-btn:hover {
  background: rgba(234, 57, 67, 0.1);
  color: var(--red);
}

.hotkeys-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--film-040);
  flex-shrink: 0;
}

.hotkeys-reset-btn {
  font-size: 11px;
  padding: 5px 12px;
  background: rgba(234, 57, 67, 0.08);
  border: 1px solid rgba(234, 57, 67, 0.15);
  border-radius: 6px;
  color: var(--red);
  cursor: pointer;
  transition: all 0.15s;
}

.hotkeys-reset-btn:hover {
  background: rgba(234, 57, 67, 0.15);
}

.hotkeys-hint {
  font-size: 10px;
  color: var(--text-muted);
}

.ema-pop {
  position: fixed;
  z-index: 10000;
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  font: 12px/1.4 var(--font, 'Geist', system-ui, sans-serif);
  color: var(--text-primary);
  padding: 6px 0;
  -webkit-user-select: none;
  user-select: none;
}

.ema-pop.ind-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.ind-modal {
  width: min(720px, 94vw);
  height: min(560px, 86vh);
  background: var(--bg-primary, #131722);
  border: 1px solid var(--border, #2a2e38);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text-primary, #d1d4dc);
}
.ind-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #2a2e38);
}
.ind-modal-title { font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ind-modal-close {
  background: none;
  border: none;
  color: var(--text-muted, #787b86);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
}
.ind-modal-close:hover { color: var(--text-primary, #d1d4dc); }
.ind-modal-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px;
  padding: 8px 12px;
  border: 1px solid var(--border, #2a2e38);
  border-radius: 8px;
  color: var(--text-muted, #787b86);
}
.ind-modal-search .ind-search {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary, #d1d4dc);
  font: inherit;
  font-size: 13px;
}
.ind-modal-body { flex: 1; display: flex; min-height: 0; }
.ind-sidebar {
  width: 168px;
  flex: 0 0 168px;
  overflow-y: auto;
  border-right: 1px solid var(--border, #2a2e38);
  padding: 6px 0 12px;
}
.ind-side-sec {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #787b86);
  padding: 12px 16px 4px;
}
.ind-side-item {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}
.ind-side-item:hover { background: var(--film-040); }
.ind-side-item.is-active {
  background: var(--film-070);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent, #2962ff);
}
.ind-main { flex: 1; min-width: 0; overflow-y: auto; }
.ind-list { list-style: none; margin: 0; padding: 6px 0; }
.ind-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
}
.ind-row.ind-row-custom { cursor: default; }
.ind-row:hover { background: var(--film-040); }
.ind-row-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ind-row-sub { font-size: 11px; color: var(--text-muted, #787b86); }
.ind-row-add {
  color: var(--text-secondary, #9aa0ad);
  font-size: 15px;
  flex: 0 0 auto;
  transition: color 0.1s;
}
.ind-row-add:hover { color: var(--accent, #2962ff); }
.ind-row .ema-pop-tog { flex: 0 0 auto; }
.ind-row-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ind-row-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.ind-empty { padding: 26px 16px; text-align: center; color: var(--text-muted, #787b86); font-size: 13px; }
.ind-modal-foot {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border, #2a2e38);
}
@media (max-width: 600px) {
  .ind-modal { width: 96vw; height: 88vh; }
  .ind-sidebar { width: 116px; flex-basis: 116px; }
  .ind-row-sub { display: none; }
}
.ema-pop-head {
  padding: 4px 12px 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.ema-pop-list { list-style: none; margin: 0; padding: 4px 0; }
.ema-pop-empty {
  padding: 8px 12px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 11px;
}
.ema-pop-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 12px;
}
.ema-pop-item:hover { background: var(--bg-tertiary); }
.ema-pop-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ema-pop-label { flex: 1 1 auto; }
.ema-pop-rm {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-muted); padding: 2px 6px;
  font-size: 16px; line-height: 1; border-radius: 3px;
}
.ema-pop-rm:hover { background: var(--red, #ea3943); color: #fff; }

.ema-pop-builtin { border-bottom: 1px solid var(--border); }
.ema-pop-tog {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 16px;
  cursor: pointer;
  flex: none;
}
.ema-pop-tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.ema-pop-tog-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input, #2a2d35);
  border: 1px solid var(--border, #3a3d45);
  border-radius: 9px;
  transition: background 0.15s, border-color 0.15s;
}
.ema-pop-tog-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 1px;
  top: 1px;
  background: var(--text-muted, #a0a0a0);
  border-radius: 50%;
  transition: transform 0.18s ease, background 0.18s;
}
.ema-pop-tog input:checked + .ema-pop-tog-slider {
  background: var(--accent, #2962ff);
  border-color: var(--accent, #2962ff);
}
.ema-pop-tog input:checked + .ema-pop-tog-slider::before {
  transform: translateX(13px);
  background: #fff;
}
.ema-pop-foot {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px 4px;
  border-top: 1px solid var(--border);
}
.ema-pop-btn {
  flex: 1 1 auto; min-width: 60px; white-space: nowrap;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 5px 8px; border-radius: 4px;
  font-size: 11px; cursor: pointer;
}
.ema-pop-btn:hover { background: var(--bg-tertiary); }
.ema-pop-btn-del { color: var(--red, #ea3943); }

.chart-indicator-legend {
  position: absolute;
  top: 28px; left: 10px;
  max-width: calc(100% - 20px);
  display: flex; flex-direction: column; gap: 1px;
  z-index: 5;
  pointer-events: none;
  font: 11px/1.4 var(--font-mono);
  color: var(--text-secondary);
  -webkit-user-select: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.chart-ohlc {
  position: absolute;
  top: 6px; left: 10px;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  font: 11px/1.4 var(--font-mono);
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  -webkit-user-select: none;
  user-select: none;
}
.chart-ohlc:empty { display: none; }
.chart-ohlc .ohlc-k { color: var(--text-muted); margin-right: 2px; }
.chart-ohlc .ohlc-v { color: var(--text-primary); }

.chart-ind-row { display: inline-flex; align-items: center; gap: 6px; }
.chart-ind-dot { display: none; }
.chart-ind-name { font-weight: 500; }
.chart-ind-val { color: var(--text-primary); }
.chart-ind-btn, .chart-ind-toggle {
  pointer-events: auto; cursor: pointer;
  background: transparent; border: 0; padding: 0 2px;
  font-size: 11px; line-height: 1; color: var(--text-secondary);
}
.chart-ind-btn { opacity: .45; transition: opacity .1s; }
.chart-ind-row:hover .chart-ind-btn { opacity: .8; }
.chart-ind-btn:hover { opacity: 1; color: var(--text-primary); }
.chart-ind-toggle {
  opacity: .65;
  align-self: flex-start;
  font-size: 16px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-primary);
}
.chart-ind-toggle:hover { opacity: 1; background: var(--film-080); }
.chart-bg-light .chart-indicator-legend { color: #39414f; text-shadow: 0 1px 2px rgba(255,255,255,0.65); }
.chart-bg-light .chart-indicator-legend .chart-ind-val { color: #10141c; }
.chart-bg-light .chart-ohlc { color: #39414f; text-shadow: 0 1px 2px rgba(255,255,255,0.65); }
.chart-bg-light .chart-ohlc .ohlc-k { color: #5a6474; }
.chart-bg-light .chart-ohlc .ohlc-v { color: #10141c; }
.chart-bg-light .chart-indicator-legend .chart-ind-btn { color: #39414f; }
.chart-bg-light .chart-indicator-legend .chart-ind-btn:hover { color: #10141c; }
.chart-bg-light .chart-indicator-legend .chart-ind-toggle { color: #10141c; }
.chart-bg-light .chart-indicator-legend .chart-ind-toggle:hover { background: rgba(0,0,0,0.08); }
.chart-bg-dark .chart-indicator-legend { color: #9aa3b2; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.chart-bg-dark .chart-indicator-legend .chart-ind-val { color: #e6eaf2; }
.chart-bg-dark .chart-ohlc { color: #9aa3b2; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.chart-bg-dark .chart-ohlc .ohlc-k { color: #787b86; }
.chart-bg-dark .chart-ohlc .ohlc-v { color: #e6eaf2; }
.chart-bg-dark .chart-indicator-legend .chart-ind-btn { color: #9aa3b2; }
.chart-bg-dark .chart-indicator-legend .chart-ind-btn:hover { color: #e6eaf2; }
.chart-bg-dark .chart-indicator-legend .chart-ind-toggle { color: #e6eaf2; }
.chart-bg-light .ksim-watermark { color: #0b0e14; opacity: 0.15; }
.chart-bg-dark .ksim-watermark { color: #f2f5fa; opacity: 0.13; }

.vp-settings-pop {
  position: fixed;
  width: 280px;
  background: #181a20;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 10003;
  font-size: 12px;
  color: #d1d4dc;
  -webkit-user-select: none;
  user-select: none;
}
.vp-pop-head {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-weight: 600;
  border-bottom: 1px solid #2a2d35;
  background: #1e2127;
  border-radius: 6px 6px 0 0;
}
.vp-pop-x {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.vp-pop-x:hover { color: #fff; }
.vp-pop-body {
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
}
.vp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.vp-row span:first-child { color: #aab; font-size: 11px; }
.vp-row-note {
  display: block;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.4;
  padding: 2px 0 4px;
}
.vp-row input[type="number"], .vp-row select {
  width: 100px;
  background: #0e1014;
  color: #d1d4dc;
  border: 1px solid #2a2d35;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
}
.vp-row input[type="range"] { width: 100px; }
.vp-row input[type="color"] {
  width: 36px;
  height: 22px;
  border: 1px solid #2a2d35;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.vp-row input[type="checkbox"] { margin-right: 6px; }
.vp-rng-val {
  display: inline-block;
  min-width: 26px;
  text-align: right;
  color: #d1d4dc;
  font-size: 11px;
  margin-left: 4px;
}
.vp-pop-foot {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #2a2d35;
  background: #1a1d23;
  border-radius: 0 0 6px 6px;
}
.vp-pop-rm {
  background: #3a1a1a;
  border: 1px solid #ea3943;
  color: #ea3943;
  border-radius: 3px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 11px;
}
.vp-pop-rm:hover { background: #ea3943; color: #fff; }
.vp-pop-ok {
  margin-left: auto;
  background: #2962ff;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 11px;
}
.vp-pop-ok:hover { background: #1c54e3; }
.vp-pop-sec {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6f7480;
  padding: 6px 0 2px;
  margin-top: 2px;
  border-top: 1px solid #2a2d35;
}
.vp-pop-body > .vp-pop-sec:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.sess-pop { width: 320px; }
.sess-body { max-height: 66vh; }
.sess-block {
  border: 1px solid #2a2d35;
  border-radius: 5px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
}
.sess-head { grid-template-columns: auto 1fr auto; }
.sess-name {
  background: #0e1014;
  color: #d1d4dc;
  border: 1px solid #2a2d35;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
  min-width: 0;
}
.sess-win { display: inline-flex; align-items: center; gap: 4px; color: #6f7480; font-size: 11px; }
.sess-win input[type="time"] {
  background: #0e1014;
  color: #d1d4dc;
  border: 1px solid #2a2d35;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 11px;
}
.sess-flags { grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.sess-flags label { display: inline-flex; align-items: center; font-size: 10px; color: #aab; }
.sess-flags input[type="checkbox"] { margin-right: 3px; }
.sess-note { color: #6b7280; font-size: 10px; line-height: 1.4; padding-top: 2px; }
.vp-pop-reset {
  background: transparent;
  border: 1px solid #2a2d35;
  color: #aab;
  border-radius: 3px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 11px;
}
.vp-pop-reset:hover { background: #2a2d35; color: #fff; }

#chart-display-modal.modal-overlay {
  background: transparent;
  pointer-events: none;
}
#chart-display-modal .chart-display-box {
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

#alerts-modal.modal-overlay,
#orders-modal.modal-overlay,
#positions-modal.modal-overlay {
  background: transparent;
}
#alerts-modal .modal-box,
#orders-modal .modal-box,
#positions-modal .modal-box {
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
#positions-modal .modal-box { max-width: 460px; }

.chart-display-box {
  width: 480px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  background: #1a1d23;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2d35;
  flex-shrink: 0;
}
.modal-head h3 {
  font-size: 13px;
  font-weight: 600;
  color: #d1d4dc;
  margin: 0;
}
.modal-x {
  background: none;
  border: none;
  color: #787b86;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.modal-x:hover { color: #d1d4dc; }

.cds-tabs {
  display: flex;
  border-bottom: 1px solid #2a2d35;
  flex-shrink: 0;
  background: #161920;
}
.cds-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #787b86;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  padding: 8px 4px;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cds-tab:hover { color: #d1d4dc; }
.cds-tab.is-active {
  color: #d1d4dc;
  border-bottom-color: #2962ff;
}

.cds-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.cds-pane { display: none; }
.cds-pane.is-active { display: block; }

.cds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  gap: 12px;
  font-size: 12px;
  color: #d1d4dc;
  min-height: 34px;
}
.cds-row:hover { background: var(--film-030); }
.cds-row span:first-child { flex: 1; color: #d1d4dc; }

.cds-pair-row .cds-pair-left,
.cds-pair-row .cds-pair-right {
  width: 36px;
  height: 24px;
  padding: 0;
  border: 1px solid #2a2d35;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
.cds-pair-row .cds-pair-left { margin-right: 4px; }

.cds-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #d1d4dc;
  font-size: 12px;
  flex: 1;
}
.cds-check input[type="checkbox"] { accent-color: #2962ff; cursor: pointer; }

.cds-row input[type="number"],
.cds-row select {
  background: #0e1014;
  color: #d1d4dc;
  border: 1px solid #2a2d35;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
  font-family: inherit;
  width: 80px;
}
.cds-row select.cds-w { width: 56px; }
.cds-row input[type="number"]:focus,
.cds-row select:focus {
  outline: none;
  border-color: #2962ff;
}
.cds-row select { width: 110px; }

.cds-row input[type="color"] {
  width: 36px;
  height: 24px;
  border: 1px solid #2a2d35;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
}

.cds-row input[type="range"] {
  flex: 1;
  max-width: 120px;
  accent-color: #2962ff;
}
.cds-rng-val {
  display: inline-block;
  min-width: 26px;
  text-align: right;
  color: #787b86;
  font-size: 11px;
  margin-left: 4px;
}

.cds-foot {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #2a2d35;
  background: #161920;
  flex-shrink: 0;
  justify-content: flex-end;
}
.cds-ok {
  background: #2962ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 18px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: background 0.15s;
}
.cds-ok:hover { background: #1c54e3; }

.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9998;
  background: linear-gradient(180deg, #1a1d23, #131519);
  border: 1px solid #2a2d35;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  color: #d1d4dc;
  padding: 10px 12px;
  animation: pwa-banner-in 0.28s ease-out;
}
@keyframes pwa-banner-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.pwa-install-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-install-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: none;
}
.pwa-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
}
.pwa-install-text strong {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.pwa-install-share {
  display: inline-block;
  color: #2962ff;
  font-weight: 700;
  margin: 0 2px;
}
.pwa-install-close {
  background: transparent;
  border: 0;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.pwa-install-close:hover { color: #d1d4dc; }

.cs-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998;
}
.cs-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: min(640px, 92vw); max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  font-family: var(--font);
}
.cs-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.cs-modal-title { font-weight: 600; color: var(--text-primary); }
.cs-modal-close {
  background: none; border: none; color: var(--text-secondary);
  font-size: 18px; cursor: pointer; padding: 2px 8px;
}
.cs-modal-close:hover { color: var(--text-primary); }
.cs-modal-body { padding: 14px 16px; overflow: auto; flex: 1 1 auto; }
.cs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cs-row label { min-width: 100px; color: var(--text-secondary); font-size: 13px; }
.cs-row input[type="text"], .cs-row input[type="color"] {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-primary);
  padding: 6px 10px; font-size: 13px;
}
.cs-row input[type="text"] { flex: 1 1 auto; }
.cs-row input[type="color"] { width: 38px; height: 30px; padding: 2px; cursor: pointer; }
.cs-row-code { flex-direction: column; align-items: stretch; gap: 6px; }
.cs-row-code label { min-width: auto; }
.cs-row textarea, #cs-code {
  width: 100%;
  min-height: 240px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #e6edf3;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.45;
  resize: vertical;
}
.cs-code-wrap { position: relative; }
.cs-code-wrap #cs-code { display: block; }
.cs-jump-btn {
  position: absolute; right: 22px;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  background: rgba(30, 35, 45, 0.92);
  border: 1px solid #3d4452; border-radius: 6px;
  color: #c9d1d9; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.cs-jump-btn[hidden] { display: none; }
.cs-jump-btn:hover { color: #ffffff; border-color: var(--accent, #FFA629); }
.cs-jump-top { top: 8px; }
.cs-jump-end { bottom: 12px; }
#cs-code::-webkit-scrollbar { width: 14px; height: 14px; }
#cs-code::-webkit-scrollbar-track { background: #161b22; border-radius: 0 4px 4px 0; }
#cs-code::-webkit-scrollbar-thumb {
  background: #4a5260; min-height: 48px;
  border: 2px solid transparent; border-radius: 7px; background-clip: padding-box;
}
#cs-code::-webkit-scrollbar-thumb:hover { background: #6b7385; border-width: 1px; background-clip: padding-box; }
#cs-code::-webkit-scrollbar-thumb:active { background: var(--accent, #FFA629); border-width: 1px; background-clip: padding-box; }
#cs-code::-webkit-scrollbar-corner { background: #161b22; }
.cs-modal-body::-webkit-scrollbar { width: 12px; }
.cs-modal-body::-webkit-scrollbar-track { background: var(--bg-secondary); }
.cs-modal-body::-webkit-scrollbar-thumb {
  background: #3d4452; min-height: 48px;
  border: 2px solid transparent; border-radius: 6px; background-clip: padding-box;
}
.cs-modal-body::-webkit-scrollbar-thumb:hover { background: #5a6375; background-clip: padding-box; }
body.chart-light .cs-modal-body::-webkit-scrollbar-track { background: var(--bg-secondary); }
body.chart-light .cs-modal-body::-webkit-scrollbar-thumb { background: #b4bac4; background-clip: padding-box; }
body.chart-light .cs-modal-body::-webkit-scrollbar-thumb:hover { background: #8a919c; background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) {
  #cs-code { scrollbar-width: auto; scrollbar-color: #4a5260 #161b22; }
  .cs-modal-body { scrollbar-width: auto; scrollbar-color: #3d4452 var(--bg-secondary); }
  body.chart-light .cs-modal-body { scrollbar-color: #b4bac4 var(--bg-secondary); }
}
body.chart-light .cs-row textarea, body.chart-light #cs-code {
  background: #ffffff;
  color: #1f2328;
  border-color: #858d98;
}
body.chart-light #cs-code:focus { border-color: var(--accent, #FFA629); outline: none; box-shadow: 0 0 0 2px rgba(255, 166, 41, 0.18); }
body.chart-light #cs-code::-webkit-scrollbar-track,
body.chart-light #cs-code::-webkit-scrollbar-corner { background: #eef0f3; }
body.chart-light #cs-code::-webkit-scrollbar-thumb { background: #b4bac4; background-clip: padding-box; }
body.chart-light #cs-code::-webkit-scrollbar-thumb:hover { background: #8a919c; background-clip: padding-box; }
body.chart-light .cs-jump-btn {
  background: rgba(255, 255, 255, 0.96);
  border-color: #858d98;
  color: #3b424c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
body.chart-light .cs-jump-btn:hover { color: #1f2328; border-color: var(--accent, #FFA629); }
@supports not selector(::-webkit-scrollbar) {
  body.chart-light #cs-code { scrollbar-color: #b4bac4 #eef0f3; }
}
.cs-hint {
  background: var(--bg-tertiary);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.cs-hint h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
}
.cs-hint h4:not(:first-of-type) { margin-top: 10px; }
.cs-hint code {
  background: var(--film-060);
  padding: 1px 4px; border-radius: 3px;
  font-family: ui-monospace, monospace; font-size: 11px;
}
.cs-hint ul { margin: 4px 0 0; padding-left: 18px; }
.cs-hint li { margin: 2px 0; }
.cs-hint-link {
  background: none; border: none; padding: 0;
  color: var(--accent, #FFA629); cursor: pointer;
  font: inherit; text-decoration: underline;
}
.cs-hint-link:hover { filter: brightness(1.15); }
.cs-modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 16px; border-top: 1px solid var(--border);
}
.cs-btn {
  padding: 7px 14px; border-radius: 4px;
  border: 1px solid var(--border); cursor: pointer;
  font-size: 13px; font-family: var(--font);
}
.cs-btn-ghost { background: var(--bg-tertiary); color: var(--text-primary); }
.cs-btn-ghost:hover { background: var(--bg-hover, var(--bg-tertiary)); border-color: var(--accent); }
.cs-btn-primary { background: var(--accent, #FFA629); color: #0d0d10; border-color: var(--accent, #FFA629); font-weight: 600; }
.cs-btn-primary:hover { filter: brightness(1.05); }
.cs-btn-danger { background: rgba(234, 57, 67, 0.15); color: #ea3943; border-color: #ea3943; }
.cs-btn-danger:hover { background: rgba(234, 57, 67, 0.25); }

.ema-pop-section {
  padding: 6px 12px 2px;
  font-size: 10.5px; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  list-style: none;
}
.ema-pop-btn-sm {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 14px; line-height: 1;
  cursor: pointer; padding: 2px 6px;
}
.ema-pop-btn-sm:hover { color: var(--text-primary); }

.cs-help-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.cs-help {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: min(820px, 94vw); max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  font-family: var(--font);
}
.cs-help-body { line-height: 1.55; color: var(--text-primary); }
.cs-help-body h3 { margin: 16px 0 6px; font-size: 14px; color: var(--accent, #FFA629); }
.cs-help-body h3:first-child { margin-top: 0; }
.cs-help-body p, .cs-help-body ul, .cs-help-body ol { margin: 4px 0 8px; font-size: 13px; }
.cs-help-body ul, .cs-help-body ol { padding-left: 22px; }
.cs-help-body li { margin: 2px 0; }
.cs-help-body code {
  background: var(--film-070);
  padding: 1px 5px; border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #ffd479;
}
.cs-help-btn {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 50%;
  width: 22px; height: 22px; font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 0; line-height: 1;
  margin-right: 8px;
}
.cs-help-btn:hover { color: var(--accent, #FFA629); border-color: var(--accent, #FFA629); }
.cs-ex {
  margin: 6px 0 10px; border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
}
.cs-ex-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-tertiary); padding: 6px 10px;
  font-size: 12px; color: var(--text-secondary);
}
.cs-ex-copy { padding: 3px 10px; font-size: 11px; }
.cs-ex-code {
  margin: 0; padding: 10px 12px;
  background: #0d1117; color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

.sltp-pct-pop {
  position: fixed; z-index: 10000;
  background: var(--bg-secondary);
  border: 1px solid var(--accent, #FFA629);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-family: var(--font);
  min-width: 220px;
}
.sltp-pct-head {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}
.sltp-pct-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
}
.sltp-pct-buttons button {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}
.sltp-pct-buttons button:hover:not(:disabled) {
  background: var(--accent, #FFA629);
  color: #0d0d10;
  border-color: var(--accent, #FFA629);
}
.sltp-pct-buttons button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sltp-pct-budget {
  color: var(--accent, #FFA629);
  font-weight: 600;
  margin-left: 4px;
}
.sltp-pct-cancel {
  width: 100%;
  margin-top: 8px;
  padding: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
}

.tvcp-swatch {
  display: inline-block;
  width: 28px;
  height: 22px;
  border: 1px solid #2a2e39;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background: #FFA629;
  vertical-align: middle;
  box-sizing: border-box;
  transition: transform 0.08s ease;
}
.tvcp-swatch:hover { transform: scale(1.05); border-color: #2962FF; }
body.chart-light .tvcp-swatch { border-color: #d1d4dc; }

.tvcp-pop {
  position: fixed;
  z-index: 100000;
  display: none;
  background: #1e222d;
  border: 1px solid #2a2e39;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  -webkit-user-select: none;
  user-select: none;
  font-family: inherit;
}
body.chart-light .tvcp-pop { background: #ffffff; border-color: #d1d4dc; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

.tvcp-grid {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  grid-auto-rows: 18px;
  gap: 2px;
}
.tvcp-sw {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  box-sizing: border-box;
}
.tvcp-sw:hover { border-color: #2962FF; transform: scale(1.1); }
.tvcp-sw.on { border-color: #2962FF; box-shadow: 0 0 0 1px #2962FF inset; }

.tvcp-sep {
  height: 1px;
  background: #2a2e39;
  margin: 8px 0 6px;
}
body.chart-light .tvcp-sep { background: #e0e3eb; }

.tvcp-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid #2a2e39;
  border-radius: 3px;
  cursor: pointer;
  color: #d1d4dc;
}
.tvcp-add:hover { background: #2a2e39; color: #fff; }
body.chart-light .tvcp-add { border-color: #d1d4dc; color: #434651; }
body.chart-light .tvcp-add:hover { background: #f0f3fa; color: #131722; }

.tvcp-opacity { margin-top: 8px; }
.tvcp-opacity-label {
  display: block;
  font-size: 11px;
  color: #787b86;
  margin-bottom: 4px;
}
.tvcp-opacity-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tvcp-opacity-range {
  flex: 1;
  height: 12px;
  margin: 0;
  cursor: pointer;
  background: linear-gradient(to right, transparent, currentColor);
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, rgba(41, 98, 255, 0), rgba(41, 98, 255, 1));
  border-radius: 6px;
}
.tvcp-opacity-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #2962FF;
  cursor: pointer;
}
.tvcp-opacity-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #2962FF;
  cursor: pointer;
}
.tvcp-opacity-num {
  width: 38px;
  background: #131722;
  border: 1px solid #2a2e39;
  border-radius: 3px;
  color: #d1d4dc;
  padding: 2px 4px;
  font-size: 11px;
  text-align: right;
}
body.chart-light .tvcp-opacity-num { background: #f8f9fd; border-color: #d1d4dc; color: #131722; }
.tvcp-opacity-pct { font-size: 11px; color: #787b86; }

body.chart-light .chart-display-box {
  background: #ffffff;
  border-color: #d5d8de;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
body.chart-light .chart-display-box .modal-head { border-bottom-color: #e3e6eb; }
body.chart-light .chart-display-box .modal-head h3 { color: var(--text-primary); }
body.chart-light .chart-display-box .modal-x { color: var(--text-muted); }
body.chart-light .chart-display-box .modal-x:hover { color: var(--text-primary); }
body.chart-light .cds-tabs {
  background: #f5f6f8;
  border-bottom-color: #e3e6eb;
}
body.chart-light .cds-tab { color: var(--text-muted); }
body.chart-light .cds-tab:hover { color: var(--text-primary); }
body.chart-light .cds-tab.is-active {
  color: var(--text-primary);
  border-bottom-color: #2563eb;
}
body.chart-light .cds-row { color: var(--text-primary); }
body.chart-light .cds-row:hover { background: rgba(0,0,0,0.035); }
body.chart-light .cds-row span:first-child { color: var(--text-primary); }
body.chart-light .cds-check { color: var(--text-primary); }
body.chart-light .cds-row input[type="number"],
body.chart-light .cds-row select {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #d5d8de;
}
body.chart-light .cds-row input[type="number"]:focus,
body.chart-light .cds-row select:focus { border-color: #2563eb; }
body.chart-light .cds-pair-row .cds-pair-left,
body.chart-light .cds-pair-row .cds-pair-right,
body.chart-light .cds-row input[type="color"] { border-color: #d5d8de; }
body.chart-light .cds-rng-val { color: var(--text-muted); }
body.chart-light .cds-foot {
  background: #f5f6f8;
  border-top-color: #e3e6eb;
}
body.chart-light .cds-ok { background: #2563eb; color: #ffffff; }
body.chart-light .cds-ok:hover { background: #1c54e3; }

body.chart-light .vp-settings-pop {
  background: #ffffff;
  border-color: #d5d8de;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
body.chart-light .vp-pop-head {
  background: #f5f6f8;
  border-bottom-color: #e3e6eb;
  color: var(--text-primary);
}
body.chart-light .vp-pop-x { color: var(--text-muted); }
body.chart-light .vp-pop-x:hover { color: var(--text-primary); }
body.chart-light .vp-row { color: var(--text-primary); }
body.chart-light .vp-row span:first-child { color: var(--text-muted); }
body.chart-light .vp-row-note { color: var(--text-muted); }
body.chart-light .vp-row input[type="number"],
body.chart-light .vp-row select {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #d5d8de;
}
body.chart-light .vp-row input[type="color"] { border-color: #d5d8de; }
body.chart-light .sess-block { border-color: #e3e6eb; }
body.chart-light .sess-name,
body.chart-light .sess-win input[type="time"] {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #d5d8de;
}
body.chart-light .sess-win { color: var(--text-muted); }
body.chart-light .sess-flags label { color: var(--text-muted); }
body.chart-light .sess-note { color: var(--text-muted); }
body.chart-light .vp-rng-val { color: var(--text-primary); }
body.chart-light .vp-pop-sec {
  color: var(--text-muted);
  border-top-color: #e3e6eb;
}
body.chart-light .vp-pop-foot {
  background: #f5f6f8;
  border-top-color: #e3e6eb;
}
body.chart-light .vp-pop-rm {
  background: #fdeaec;
  border-color: #d92e44;
  color: #d92e44;
}
body.chart-light .vp-pop-rm:hover { background: #d92e44; color: #ffffff; }
body.chart-light .vp-pop-reset {
  border-color: #d5d8de;
  color: var(--text-muted);
}
body.chart-light .vp-pop-reset:hover {
  background: #f0f1f4;
  color: var(--text-primary);
}
body.chart-light .vp-pop-ok { background: #2563eb; color: #ffffff; }
body.chart-light .vp-pop-ok:hover { background: #1c54e3; }

.cc-row > .tvcp-swatch { width: 28px; height: 22px; }
.vp-row .tvcp-swatch { width: 32px; height: 22px; }
.cds-row .tvcp-swatch { width: 32px; height: 22px; }
.cs-row .tvcp-swatch { width: 38px; height: 30px; }
.cds-pair-left.tvcp-swatch, .cds-pair-right.tvcp-swatch { width: 32px; height: 22px; }

.btn-sm.mode-soon { opacity: .5; cursor: not-allowed; }
.btn-sm.mode-soon .mode-soon-badge {
  margin-left: 5px; font-size: 9px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #f5c542; opacity: .9;
}

.krytes-announce-bar {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: #3d2a10; color: #f5c542;
  border-bottom: 1px solid #6b4a15;
  padding: 4px 34px; font-size: 12px; line-height: 1.4;
  text-align: center; flex: 0 0 auto; z-index: 30;
}
.krytes-announce-text { display: inline-block; max-width: 100%; }
.krytes-announce-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #f5c542;
  font-size: 13px; line-height: 1; cursor: pointer; padding: 2px 6px;
  opacity: .7; transition: opacity .12s;
}
.krytes-announce-close:hover { opacity: 1; }
.krytes-announce-act{margin-left:12px;padding:3px 12px;border-radius:6px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer}
.krytes-announce-act:hover{background:var(--film-080)}

.newex-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 34px 5px 12px;
  position: relative;
  background: #12233a;
  color: #7fb3e8;
  font-size: 12.5px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(127, 179, 232, 0.25);
}
.newex-banner-x {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #7fb3e8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.newex-banner-x:hover { background: rgba(127, 179, 232, 0.15); color: #a9cdf2; }

.newex-banner-help {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(127, 179, 232, 0.55);
  background: transparent;
  color: #7fb3e8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.newex-banner-help:hover { background: rgba(127, 179, 232, 0.18); color: #a9cdf2; border-color: #a9cdf2; }

.mexc-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 16px;
}
.mexc-guide-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #12161d;
  border: 1px solid #263243;
  border-radius: 14px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  color: #d7dee8;
}
.mexc-guide-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8b98a8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mexc-guide-x:hover { background: #1d2530; color: #e6eaf2; }
.mexc-guide-eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #f5c542;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mexc-guide-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #f2f5f9;
}
.mexc-guide-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #b7c1cd; }
.mexc-guide-lead b { color: #e6eaf2; }
.mexc-guide-sub { font-size: 12.5px; font-weight: 600; color: #9fb0c2; margin-bottom: 8px; }
.mexc-guide-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.62;
  color: #cdd6e0;
}
.mexc-guide-steps li { margin-bottom: 3px; }
.mexc-guide-steps b { color: #f2f5f9; }
.mexc-guide-note {
  font-size: 12px;
  line-height: 1.5;
  color: #e9c98a;
  background: rgba(245, 197, 66, 0.09);
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.mexc-guide-soon {
  font-size: 11.5px;
  color: #8b98a8;
  text-align: center;
  font-style: italic;
}
@media (max-width: 768px) {
  .mexc-guide-box { max-width: 100%; padding: 20px 16px 16px; }
}

.copy-overlay { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); padding: 16px; }
.copy-box { position: relative; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: #12161d; border: 1px solid #263243; border-radius: 14px; padding: 20px 22px 18px; box-shadow: 0 18px 60px rgba(0,0,0,0.6); color: #d7dee8; }
.copy-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: #8b98a8; font-size: 22px; line-height: 1; cursor: pointer; }
.copy-x:hover { background: #1d2530; color: #e6eaf2; }
.copy-title { font-size: 18px; font-weight: 700; color: #f2f5f9; margin-bottom: 6px; }
.copy-note { font-size: 11.5px; color: #e9c98a; background: rgba(245,197,66,0.09); border: 1px solid rgba(245,197,66,0.25); border-radius: 8px; padding: 7px 10px; margin-bottom: 14px; }
.copy-note-live { color: #7fe0ab; background: rgba(53,208,127,0.10); border-color: rgba(53,208,127,0.30); }
.copy-loading, .copy-err { font-size: 13px; color: #9fb0c2; padding: 12px 0; }

body.trade-locked .order-type-section,
body.trade-locked .sl-tp-section,
body.trade-locked .calculator,
body.trade-locked .trade-buttons,
body.trade-locked .all-trade-buttons,
body.trade-locked .partial-close-section,
body.trade-locked .action-buttons,
body.trade-locked .info-section { opacity: 0.35; pointer-events: none; user-select: none; filter: grayscale(0.5); }
.trade-lock-note { margin: 8px 10px 4px; padding: 10px 12px; border: 1px solid rgba(245,197,66,0.35); background: rgba(245,197,66,0.07); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #e9c98a; }
.trade-lock-note b { font-size: 12.5px; color: #f2d288; }
.trade-lock-note .tlock-cta { align-self: flex-start; text-decoration: none; color: #0b0e14; background: #f5c542; border: none; font-weight: 600; }
.copy-inline { padding: 0; overflow-y: auto; height: 100%; box-sizing: border-box; }
.copy-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0; padding: 3px 8px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.copy-note-slim { display: inline-block; margin-bottom: 0; padding: 4px 10px; font-size: 11px; }
.copy-summary { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
.copy-lk-link {
  margin-left: auto; text-decoration: none; white-space: nowrap;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--text-muted); background: none; border: none; padding: 0;
}
.copy-lk-link:hover { color: var(--text-primary); text-decoration: underline; background: none; }
.copy-feed { display: flex; flex-direction: column; }
.copy-trow {
  display: grid; grid-template-columns: 116px 1.3fr 1fr 78px 76px 1.2fr;
  gap: 6px; align-items: center; padding: 3px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 10px; color: var(--text-primary);
}
.copy-trow:last-child { border-bottom: none; }
.copy-trow:hover { background: var(--film-030); }
.copy-thead {
  position: sticky; top: 0; z-index: 3;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}
.copy-thead:hover { background: var(--bg-tertiary); }
.copy-trow > span:nth-child(1), .copy-trow > span:nth-child(5) { font-family: var(--font-mono); }
@media (max-width: 900px) { .copy-trow { grid-template-columns: 100px 1.2fr 84px 74px; } .copy-trow span:nth-child(5), .copy-trow span:nth-child(6) { display: none; } }
.copy-err { color: #ea8a8a; }
.copy-sec { border-top: 1px solid #1e2733; padding: 14px 0 4px; }
.copy-sec:first-child { border-top: none; padding-top: 4px; }
.copy-sec-h { font-size: 13px; font-weight: 700; color: #7fb3e8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.copy-sec-h2 { color: #8b98a8; margin-top: 14px; }
.copy-sub { font-size: 12.5px; color: #b7c1cd; margin-bottom: 8px; }
.copy-btn { border: 1px solid #33465c; background: #1a2432; color: #d7dee8; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; cursor: pointer; }
.copy-btn:hover { background: #22303f; }
.copy-btn-primary { background: #1e6bea; border-color: #1e6bea; color: #fff; font-weight: 600; }
.copy-btn-primary:hover { background: #2a78f5; }
.copy-btn-primary:disabled { opacity: 0.5; cursor: default; }
.copy-btn-sm { padding: 4px 9px; font-size: 11.5px; }
.copy-btn-warn { border-color: #b3492f; color: #ffb59f; background: transparent; }
.copy-btn-warn:hover { background: rgba(179,73,47,0.15); }
.copy-code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.copy-code { font-family: var(--font); font-size: 14px; color: #f5c542; background: #0e1520; border: 1px solid #263243; border-radius: 6px; padding: 5px 10px; letter-spacing: 1px; }
.copy-followers { font-size: 12px; color: #9fb0c2; }
.copy-frow { padding: 2px 0; color: #b7c1cd; }
.copy-inp { width: 100%; box-sizing: border-box; background: #0e1520; border: 1px solid #33465c; border-radius: 7px; color: #e6eaf2; padding: 7px 9px; font-size: 13px; margin-bottom: 8px; }
.copy-inp-num { text-align: right; }
.copy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.copy-field { display: flex; flex-direction: column; gap: 3px; }
.copy-flabel { font-size: 10.5px; color: #8b98a8; }
.copy-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: #b7c1cd; margin: 6px 0 10px; cursor: pointer; }
.copy-consent input { margin-top: 2px; }
.copy-msg { font-size: 12px; color: #ea8a8a; min-height: 14px; }
.copy-srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #1a222d; }
.copy-srow-main { font-size: 12.5px; }
.copy-badge { display: inline-block; font-size: 9px; padding: 0 5px; border-radius: 4px; margin: 0; text-transform: uppercase; font-family: var(--font-mono); }
.copy-st-active, .copy-act-placed { background: rgba(53,208,127,0.16); color: #35d07f; }
.copy-act-dry_run { background: rgba(128,140,160,0.18); color: #97a3b5; }
.copy-st-paused, .copy-act-skipped, .copy-act-auto_pause, .copy-act-reduced { background: rgba(245,197,66,0.16); color: #f5c542; }
.copy-st-stopped, .copy-act-error, .copy-act-kicked { background: rgba(234,57,67,0.16); color: #ea6b6b; }
.copy-act-closed { background: rgba(102,157,246,0.16); color: #7ba7f0; }
.copy-act-added { background: rgba(53,208,127,0.10); color: #6fd7a3; }
.copy-act-protected { background: rgba(102,157,246,0.10); color: #9dbcf2; }
.copy-act-signal { background: rgba(178,132,246,0.14); color: #c3a3f2; }
.copy-trow-dry { opacity: 0.62; }
.copy-trow-new { animation: copyRowIn .45s ease-out; }
@keyframes copyRowIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .copy-trow-new { animation: none; } }
.copy-pill { font-size: 11px; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.copy-pill-live { background: rgba(53,208,127,0.14); color: #35d07f; border: 1px solid rgba(53,208,127,0.35); }
.copy-pill-dry { background: rgba(245,197,66,0.12); color: #f5c542; border: 1px solid rgba(245,197,66,0.3); }
.copy-dim { color: #8b98a8; }
.copy-arow { font-size: 11.5px; padding: 2px 0; color: #cdd6e0; }
@media (max-width: 768px) { .copy-box { max-width: 100%; padding: 18px 14px; } .copy-grid { grid-template-columns: repeat(2, 1fr); } }

body.amounts-hidden #balance-value,
body.amounts-hidden #panel-balance,
body.amounts-hidden #panel-unrealized-pnl,
body.amounts-hidden #calc-risk-usd,
body.amounts-hidden .position-item .pos-size,
body.amounts-hidden .position-item .pos-margin,
body.amounts-hidden .position-item .pos-volume,
body.amounts-hidden .position-item .pos-realized,
body.amounts-hidden .position-item .pos-pnl,
body.amounts-hidden .position-item .pos-liq,
body.amounts-hidden #status-balance,
body.amounts-hidden #mqt-balance,
body.amounts-hidden .api-status-badge .api-bal,
body.amounts-hidden #income-list .income-item .income-amount,
body.amounts-hidden #open-orders-list .order-item .order-volume,
body.amounts-hidden #open-orders-list .order-item .order-qty,
body.amounts-hidden #open-orders-list .order-item .order-size {
  position: relative;
  color: transparent !important;
  text-shadow: none !important;
}
body.amounts-hidden #balance-value::after,
body.amounts-hidden #panel-balance::after,
body.amounts-hidden #panel-unrealized-pnl::after,
body.amounts-hidden #calc-risk-usd::after,
body.amounts-hidden .position-item .pos-size::after,
body.amounts-hidden .position-item .pos-margin::after,
body.amounts-hidden .position-item .pos-volume::after,
body.amounts-hidden .position-item .pos-realized::after,
body.amounts-hidden .position-item .pos-pnl::after,
body.amounts-hidden .position-item .pos-liq::after,
body.amounts-hidden #status-balance::after,
body.amounts-hidden #mqt-balance::after,
body.amounts-hidden .api-status-badge .api-bal::after,
body.amounts-hidden #income-list .income-item .income-amount::after,
body.amounts-hidden #open-orders-list .order-item .order-volume::after,
body.amounts-hidden #open-orders-list .order-item .order-qty::after,
body.amounts-hidden #open-orders-list .order-item .order-size::after {
  content: "•••";
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  color: var(--text-secondary, #b2b5be);
  pointer-events: none;
}
body.amounts-hidden #panel-balance::after,
body.amounts-hidden #panel-unrealized-pnl::after,
body.amounts-hidden #calc-risk-usd::after {
  text-align: right;
}
body.amounts-hidden .position-item .pos-size::after,
body.amounts-hidden .position-item .pos-margin::after,
body.amounts-hidden .position-item .pos-volume::after,
body.amounts-hidden .position-item .pos-realized::after,
body.amounts-hidden .position-item .pos-pnl::after,
body.amounts-hidden .position-item .pos-liq::after,
body.amounts-hidden .api-status-badge .api-bal::after,
body.amounts-hidden #income-list .income-item .income-amount::after,
body.amounts-hidden #open-orders-list .order-item .order-volume::after,
body.amounts-hidden #open-orders-list .order-item .order-qty::after,
body.amounts-hidden #open-orders-list .order-item .order-size::after {
  display: flex; align-items: center; justify-content: center;
}
#calc-deposit-row { position: relative; }
body.amounts-hidden #calc-deposit-input { color: transparent !important; }
body.amounts-hidden #calc-deposit-row::after {
  content: "•••";
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #b2b5be);
  pointer-events: none;
}
.amt-eye {
  background: none; border: 0; padding: 0 2px; cursor: pointer; line-height: 0;
  color: var(--text-muted, #787b86);
}
.amt-eye:hover { color: var(--text-primary, #d1d4dc); }
.amt-eye .eye-off { display: none; }
body.amounts-hidden .amt-eye .eye-on { display: none; }
body.amounts-hidden .amt-eye .eye-off { display: inline; }

body.ktut-active.trade-locked .order-type-section,
body.ktut-active.trade-locked .sl-tp-section,
body.ktut-active.trade-locked .calculator,
body.ktut-active.trade-locked .trade-buttons,
body.ktut-active.trade-locked .all-trade-buttons,
body.ktut-active.trade-locked .partial-close-section,
body.ktut-active.trade-locked .action-buttons,
body.ktut-active.trade-locked .info-section {
  opacity: 1; pointer-events: auto; user-select: auto; filter: none;
}

.user-name { display: none; }

.user-info-wrap { position: relative; }
.user-info-wrap.is-staff .user-avatar {
  box-shadow: 0 0 0 2px var(--yellow), 0 0 10px -2px var(--yellow);
}
.user-info-wrap.is-staff.is-dev .user-avatar {
  box-shadow: 0 0 0 2px #ff8288, 0 0 10px -2px #ff8288;
}
body.chart-light .user-info-wrap.is-staff.is-dev .user-avatar {
  box-shadow: 0 0 0 2px #b02330, 0 0 10px -2px #b02330;
}
#btn-tutorial .btk-icon { display: none; }

.user-crown {
  position: absolute;
  left: calc(8px + 1px + 3px + 11px);
  transform: translateX(-50%);
  top: -2px;
  width: 11px;
  height: 11px;
  color: var(--yellow);
  pointer-events: none;
  z-index: 2;
}
.user-info-wrap.is-dev .user-crown { color: #ff8288; }

#user-trigger .krsoc-cnt {
  top: auto;
  right: auto;
  left: 16px;
  bottom: -2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 14px;
  box-shadow: 0 0 0 2px var(--bg-primary, #0b0e13);
}
body.chart-light .user-info-wrap.is-dev .user-crown { color: #b02330; }

.tf-select { position: relative; display: inline-flex; }
.tf-chip {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 20px; padding: 1px 4px; box-sizing: border-box;
  min-width: 62px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 2px;
  font-size: 10px; font-family: var(--font);
  cursor: pointer; outline: none; white-space: nowrap;
}
.tf-chip:hover { color: var(--text-primary); }
.tf-select.open .tf-chip { color: var(--text-primary); }
.tf-chip-label { font-weight: 600; }
.tf-chip-caret { flex-shrink: 0; opacity: .7; transition: transform .12s ease; }
.tf-select.open .tf-chip-caret { transform: rotate(180deg); }

.tf-menu {
  display: none; position: fixed; z-index: 4000;
  min-width: 176px; max-height: 70vh; overflow-y: auto;
  padding: 6px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.tf-menu.open { display: block; }
.tf-group + .tf-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.tf-group-title {
  padding: 2px 4px 4px; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; color: var(--text-secondary); text-transform: uppercase;
}
.tf-group-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tf-menu .tf-btn { width: 100%; justify-content: center; text-align: center; }

.user-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 7px 0 3px; margin: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary); cursor: pointer; outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.user-trigger:hover {
  background: var(--film-100);
  border-color: var(--film-180);
  color: var(--text-primary);
}
.user-info-wrap.open .user-trigger {
  background: var(--film-100);
  border-color: var(--accent);
  color: var(--text-primary);
}
.user-trigger:focus-visible { outline: 1px solid rgba(41, 98, 255, 0.6); outline-offset: 1px; }
.user-caret { flex-shrink: 0; transition: transform .12s ease, color .12s ease; }
.user-info-wrap.open .user-caret { transform: rotate(180deg); }

.user-menu {
  display: none; position: fixed; z-index: 4000;
  min-width: 184px; padding: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.user-menu.open { display: block; }
.um-name {
  padding: 4px 6px 6px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu .btn-sm {
  display: flex; align-items: center; gap: 7px;
  width: 100%; height: 26px; margin: 0; padding: 0 6px;
  border: 0; background: none; border-radius: 3px;
  font-size: 11px; color: var(--text-primary); text-decoration: none;
  justify-content: flex-start; text-align: left;
}
.user-menu .btn-sm:hover { background: var(--bg-tertiary); }
.user-menu .um-demo { color: #f5c542; font-weight: 600; }
.user-menu .btn-call .call-stack { margin-left: auto; }

.btn-krytes-back .kb-icon { opacity: 1; transform: none; }
.btn-krytes-back .kb-arrow { width: 0; opacity: 0; overflow: hidden; transition: width .18s ease, opacity .18s ease; }
.btn-krytes-back:hover .kb-arrow { width: 9px; opacity: 1; }
.btn-krytes-back .kb-labels { display: grid; }
.btn-krytes-back .kb-labels > .kb-label { grid-area: 1 / 1; }
.btn-krytes-back .kb-hover { opacity: 0; }
.btn-krytes-back:hover .kb-rest { opacity: 0; }
.btn-krytes-back:hover .kb-hover { opacity: 1; }

.btc-label { display: none; }
.user-menu .btc-label { display: inline; }

.tib-inline { overflow-x: visible; }
.tib-item {
  flex-direction: column; align-items: flex-start;
  gap: 0; padding: 0 7px; line-height: 1.16;
}
.tib-label { letter-spacing: .3px; }
.tib-sep { height: 22px; }

@media (max-width: 1300px) {
  .tib-item { padding: 0 5px; }
  .tib-label { font-size: 8px; letter-spacing: .2px; }
  .tib-sep { margin: 0 5px 0 3px; }
}
@media (max-width: 1150px) {
  .tib-item { padding: 0 4px; }
  .tib-value { font-size: 10px; }
}

.top-bar-merged { height: auto; min-height: 38px; }
.top-bar-merged .top-bar-left { flex-wrap: wrap; overflow: visible; }
.tib-inline { flex: 1 1 auto; flex-wrap: wrap; row-gap: 2px; }
.tib-item { flex: 1 1 auto; min-width: max-content; }
#ticker-funding-countdown { display: inline-block; min-width: 68px; }

#ticker-info-bar[hidden],
#current-price[hidden],
#price-change[hidden] { display: none !important; }

.tf-corner { display: none; }

@media (min-width: 1025px) {
  .top-bar-merged { display: none; }
  .timeframe-bar { padding-left: 0; }
  .tf-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    align-self: stretch;
    position: relative;
    border-right: 1px solid var(--border);
  }
  .tf-corner img {
    width: 17px;
    height: 17px;
    opacity: 0.45;
    filter: grayscale(1);
    transition: opacity 0.18s ease, filter 0.18s ease;
  }
  .tf-corner:hover img { opacity: 1; filter: none; }
  .tf-corner::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 2px var(--bg-secondary);
    transition: background 0.18s ease;
    display: none;
  }
  a.tf-corner { text-decoration: none; color: inherit; cursor: pointer; }
  .tf-corner::before {
    content: '↗';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 9px;
    line-height: 1;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .tf-corner:hover::before,
  .tf-corner:focus-visible::before { opacity: 1; }
  .tf-corner.st-partial::after { background: var(--yellow); display: block; }
  .tf-corner.st-down::after { background: var(--red); display: block; }
  .tf-corner:not(.connected)::after { background: var(--red); display: block; }
  .tf-corner-tip {
    display: none; position: fixed; z-index: 10060;
    min-width: 230px; padding: 8px 10px; border-radius: 8px;
    background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary);
    font-family: var(--font-mono); font-size: 11px; line-height: 1.5; white-space: nowrap; text-align: left;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  }
  .tf-corner-tip.show { display: block; }
  .tf-corner-tip b { display: block; font-weight: 600; font-size: 10px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
  .tf-corner-tip-state { display: flex; align-items: center; gap: 6px; }
  .tf-corner-tip-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex: none; }
  .tf-corner-tip.st-ok .tf-corner-tip-state::before { background: var(--green); }
  .tf-corner-tip.st-partial .tf-corner-tip-state::before { background: var(--yellow); }
  .tf-corner-tip.st-down .tf-corner-tip-state::before, .tf-corner-tip:not(.connected) .tf-corner-tip-state::before { background: var(--red); }
  .tf-corner-tip-link { display: block; margin-top: 4px; color: var(--accent); }
  .timeframe-bar {
    height: auto;
    min-height: 34px;
    overflow-x: visible;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  #tf-select { display: none; }
  .timeframe-bar > .top-bar-right { margin-left: auto; flex: 0 0 auto; }
}

.top-bar-right .tb-btn.tb-top { width: 30px; height: 30px; border-radius: 7px; flex: 0 0 auto; }
.top-bar-right .tb-btn.tb-top::before { inset: 2px; border-radius: 7px; }
.top-bar-right .tb-btn.tb-top .ico { width: 17px; height: 17px; }
#btn-feedback { color: #ffd23f; border-color: rgba(255, 210, 63, .55); background: rgba(255, 210, 63, .10); }
#btn-feedback:hover { color: #ffe45c; border-color: rgba(255, 210, 63, .85); background: rgba(255, 210, 63, .2); }
#btn-idea { color: #b196ff; border-color: rgba(177, 150, 255, .5); background: rgba(177, 150, 255, .10); }
#btn-idea:hover { color: #cbb8ff; border-color: rgba(177, 150, 255, .85); background: rgba(177, 150, 255, .2); }
.user-menu .um-idea { display: none; color: #b196ff; font-weight: 600; }
.user-menu .um-refresh, .user-menu .um-settings { display: none; }
.user-menu .um-refresh .ico, .user-menu .um-settings .ico { width: 13px; height: 13px; flex: 0 0 auto; }
.user-menu .um-idea .ico { width: 13px; height: 13px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1320px) {
  #btn-idea { display: none; }
  .user-menu .um-idea { display: flex; }
}

.user-menu .um-guide, .user-menu .um-help { font-weight: 600; }
.user-menu .um-guide { color: #35d07f; }
.user-menu .um-help { color: #ffd400; }
.user-menu .um-guide .ico, .user-menu .um-help .ico { width: 13px; height: 13px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.user-menu #btn-training::before, .user-menu #btn-tutorial::before { display: none; }
.user-menu #btn-training:hover, .user-menu #btn-tutorial:hover { background: var(--bg-tertiary); }

.user-menu .um-social, .user-menu .um-bot { font-weight: 600; }
.user-menu .um-social { color: #7aa2f7; }
.user-menu .um-bot { color: #4FC3D9; }
.user-menu .um-social .ico { width: 13px; height: 13px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.user-menu .um-bot .ico { width: 13px; height: 13px; flex: 0 0 auto; color: #4FC3D9; stroke: #4FC3D9; }
.user-menu #btn-social:hover { background: var(--bg-tertiary); }
body.chart-light .user-menu .um-bot .ico { color: #1E8FA8; stroke: #1E8FA8; }
.user-menu .krsoc-cnt { position: static; margin-left: auto; box-shadow: none; }
.user-trigger { position: relative; }
.user-trigger .krsoc-cnt {
  position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 4px; background: #d8b46b; color: #14110a;
  font: 600 9.5px/15px var(--font-mono);
  text-align: center; box-shadow: 0 0 0 2px var(--bg-primary); pointer-events: none;
}
