:root,
[data-theme="dark"] {
  --bg: #131722;
  --panel: #1e222d;
  --panel-2: #2a2e39;
  --border: #2a2e39;
  --text: #d1d4dc;
  --muted: #787b86;
  --accent: #2962ff;
  --accent-soft: rgba(41, 98, 255, 0.18);
  --up: #089981;
  --down: #f23645;
  --hover: #2a2e39;
  --grid: rgba(42, 46, 57, 0.6);
  --input: #131722;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --gold: #d4a514;
  --gold-soft: rgba(212, 165, 20, 0.16);
  --scroll: #363a45;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ffffff;
  --panel: #f8f9fd;
  --panel-2: #eef0f6;
  --border: #e0e3eb;
  --text: #131722;
  --muted: #6a6d78;
  --accent: #2962ff;
  --accent-soft: rgba(41, 98, 255, 0.12);
  --up: #089981;
  --down: #f23645;
  --hover: #eef0f6;
  --grid: rgba(224, 227, 235, 0.7);
  --input: #ffffff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --gold: #b8860b;
  --gold-soft: rgba(184, 134, 11, 0.14);
  --scroll: #c9cdd6;
  color-scheme: light;
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover {
  scrollbar-color: var(--scroll) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}
:hover::-webkit-scrollbar-thumb {
  background: var(--scroll);
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font:
    13px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Ubuntu,
    "Helvetica Neue",
    Arial,
    sans-serif;
  overflow: hidden;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.hidden {
  display: none !important;
}
.spacer {
  flex: 1;
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.muted {
  color: var(--muted);
}

/* top bar */
.topbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
  overflow-y: hidden;
}
.topbar::-webkit-scrollbar {
  height: 0;
}
.brand {
  display: flex;
  align-items: center;
  padding: 0 8px 0 2px;
}
.sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 6px;
  flex: none;
}
.tb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}
.tb:hover,
.tb.active {
  background: var(--hover);
}
.tb.on {
  color: var(--accent);
}
.tb.icon {
  padding: 0 7px;
}
select.tb {
  appearance: none;
  padding-right: 22px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 14px,
    calc(100% - 8px) 14px;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
select.tb option {
  background: var(--panel);
}
.tb.check {
  gap: 5px;
  color: var(--muted);
}
.symbol-btn {
  font-weight: 600;
  font-size: 14px;
}
.tf-group {
  display: flex;
  gap: 1px;
  flex: none;
}
.tf-group button {
  height: 32px;
  min-width: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 0 6px;
}
.tf-group button:hover {
  background: var(--hover);
}
.tf-group button.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.tf-custom {
  width: 46px;
  height: 28px;
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input);
  padding: 0 6px;
  text-align: center;
  flex: none;
}
.status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  margin: 0 6px 0 8px;
  flex: none;
}
.status.ok {
  background: var(--up);
}
.status.warn {
  background: #f7a600;
}
.status.bad {
  background: var(--down);
}

/* main layout */
.main {
  display: flex;
  height: calc(100% - 44px);
}
.drawbar {
  width: 44px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
  gap: 2px;
  flex: none;
}
.drawbar button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drawbar button:hover {
  background: var(--hover);
}
.drawbar button.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.drawbar hr {
  width: 24px;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.grid {
  flex: 1;
  display: grid;
  gap: 1px;
  background: var(--border);
  min-height: 0;
}
.side {
  width: 300px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex: none;
  background: var(--bg);
}

/* chart panes */
.pane {
  position: relative;
  background: var(--bg);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.pane.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  pointer-events: none;
  z-index: 5;
}
.grid[data-count="1"] .pane.active::after {
  display: none;
}
.pane .chart {
  position: absolute;
  inset: 0;
}
.legend {
  position: absolute;
  left: 8px;
  top: 6px;
  z-index: 4;
  pointer-events: none;
  font-size: 12px;
  max-width: calc(100% - 90px);
}
.legend .row {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}
.legend .title {
  font-weight: 600;
  font-size: 13px;
  pointer-events: auto;
  cursor: pointer;
}
.legend .ohlc span {
  margin-right: 6px;
}
.legend .ohlc b {
  font-weight: 400;
  color: var(--muted);
  margin-right: 2px;
}
.legend .ind {
  pointer-events: auto;
  border-radius: 3px;
  padding: 0 4px 0 2px;
}
.legend .ind:hover {
  background: var(--panel);
}
.legend .ind .name {
  color: var(--muted);
}
.legend .ind .acts {
  display: none;
  gap: 2px;
}
.legend .ind:hover .acts {
  display: inline-flex;
}
.legend .ind .acts button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0 2px;
  color: var(--muted);
  height: 18px;
}
.legend .ind .acts button:hover {
  color: var(--text);
}
.legend .ind .acts svg {
  width: 14px;
  height: 14px;
}
.legend .note {
  color: #f7a600;
  font-size: 11px;
  pointer-events: auto;
  white-space: normal;
  max-width: 420px;
}
.pane-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  z-index: 3;
  pointer-events: none;
  text-align: center;
  padding: 20px;
}
.replay-bar {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: var(--shadow);
}
.replay-bar button,
.replay-bar select {
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0 8px;
}
.replay-bar button:hover {
  background: var(--hover);
}
.replay-bar .hint {
  color: var(--muted);
  padding: 0 6px;
}

/* tabs and panels */
.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 6px;
  height: 38px;
  flex: none;
}
.tabs button {
  border: 0;
  background: transparent;
  height: 30px;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button:hover {
  background: var(--hover);
  color: var(--text);
}
.tabs button.active {
  color: var(--text);
  background: var(--hover);
}
.tabs .icon {
  padding: 0 6px;
}
.tab-body {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.bottom {
  height: 320px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex: none;
  background: var(--bg);
}
.bottom.collapsed {
  height: 39px;
}
.bottom.collapsed .tab-body {
  display: none;
}
.bottom.collapsed #bottomToggle svg {
  transform: rotate(180deg);
}
.pad {
  padding: 10px 12px;
}
.row-flex {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.field {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
}
.field > input,
.field > select {
  min-width: 70px;
}
input.in,
select.in,
textarea.in,
.field input,
.field select {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input);
  padding: 0 7px;
  color: var(--text);
}
textarea.in {
  height: auto;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  width: 100%;
  resize: vertical;
  tab-size: 2;
}
.btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--hover);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(1.1);
}
.btn.small {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}
.btn.danger {
  color: var(--down);
}
.link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.hint-text {
  color: var(--muted);
  font-size: 12px;
}

/* tables */
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.t th {
  position: sticky;
  top: 0;
  background: var(--bg);
  text-align: right;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
}
table.t td {
  text-align: right;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.t th:first-child,
table.t td:first-child,
table.t .l {
  text-align: left;
}
table.t tbody tr {
  cursor: pointer;
}
table.t tbody tr:hover {
  background: var(--hover);
}

/* watchlist */
.wl-head {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.wl-head select {
  flex: 1;
}
.wl-row {
  display: grid;
  grid-template-columns: 1fr auto 64px 18px;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.wl-row:hover {
  background: var(--hover);
}
.wl-row.current {
  background: var(--accent-soft);
}
.wl-row .sym {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wl-row .ex {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.wl-row .px {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.wl-row .chg {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.wl-row .x {
  opacity: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}
.wl-row:hover .x {
  opacity: 1;
}
.wl-row .x svg {
  width: 14px;
  height: 14px;
}

/* cards in side panel */
.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px;
  background: var(--panel);
}
.card .top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: start;
}
.card .sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.impact-High {
  color: var(--down);
}
.impact-Medium {
  color: #f7a600;
}
.impact-Low {
  color: var(--muted);
}
.impact-Holiday {
  color: var(--muted);
}

/* stats grid */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.stat .k {
  color: var(--muted);
  font-size: 11px;
}
.stat .v {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.tester {
  display: grid;
  grid-template-columns: minmax(330px, 420px) 1fr;
  height: 100%;
}
.tester .left {
  border-right: 1px solid var(--border);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px;
}
.tester .right {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 10px;
}
.rule {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px;
}
.rule select,
.rule input {
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input);
  padding: 0 5px;
  max-width: 150px;
}
.rule input.num {
  width: 70px;
}
.rule .x {
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
h4 {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.equity {
  height: 150px;
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
}
.next-step {
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding: 4px 10px;
}

/* heatmap */
.heatmap-wrap {
  position: relative;
  height: 100%;
}
.heatmap-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  display: grid;
  place-items: start center;
  padding-top: 9vh;
}
.modal-card {
  width: min(560px, 94vw);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.modal-head button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.modal-body {
  padding: 12px 14px;
  overflow: auto;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.search-in {
  width: 100%;
  height: 38px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input);
  padding: 0 12px;
  color: var(--text);
}
.list {
  margin-top: 8px;
}
.list .item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.list .item:hover,
.list .item.sel {
  background: var(--hover);
}
.list .item .meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.list .group {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 10px 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid .field input,
.form-grid .field select {
  width: 100%;
}

/* toasts */
.toasts {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  max-width: 360px;
  animation: in 0.2s ease-out;
}
.toast.err {
  border-left-color: var(--down);
}
.toast.alert {
  border-left-color: #f7a600;
}
@keyframes in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .side {
    display: none;
  }
  .bottom {
    height: 45%;
  }
}

/* PTQ connector */
.ptq-box { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--panel); }
.ptq-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.ptq-box p { margin: 6px 0; }
.ptq-verdict { display: inline-block; margin: 8px 0; padding: 4px 10px; border-radius: 4px; font-weight: 600; background: var(--hover); }
.ptq-verdict.up { color: var(--up); } .ptq-verdict.down { color: var(--down); } .ptq-verdict.warn { color: #f7a600; }
.ptq-arm { margin-top: 10px; border-left: 2px solid var(--accent); padding: 4px 10px; }
.ptq-arm ol { margin: 6px 0; padding-left: 18px; } .ptq-arm li { margin: 4px 0; }
.ptq-box code, .ptq-arm code, .tester code { background: var(--hover); padding: 1px 4px; border-radius: 3px; font-size: 12px; }
.ptq-box table.t td { white-space: normal; }
.ptq-box .stats { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

/* news */
a.card.news { display: block; color: inherit; text-decoration: none; }
a.card.news:hover { border-color: var(--accent); }
.news-title { font-weight: 600; line-height: 1.35; }
.news-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
/* seasonals */
.seas { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); height: 100%; }
.seas-left { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); }
.seas-chart { flex: 1; min-height: 160px; position: relative; }
.seas-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 12px; font-size: 12px; }
.seas-legend i { display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; }
.seas-right { overflow: auto; }
.seas-table td, .seas-table th { padding: 4px 5px; font-size: 11px; text-align: center; }
.seas-table td.l, .seas-table th:first-child { text-align: left; }
.seas-sum td { font-weight: 600; border-top: 1px solid var(--border); }
/* financials */
.fin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.fin-stats div { display: flex; flex-direction: column; }
.fin-bars { display: flex; gap: 10px; align-items: flex-end; height: 150px; margin: 12px 0 4px; }
.fin-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.fin-stack { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fin-bar { width: 38%; border-radius: 3px 3px 0 0; min-height: 1px; }
.fin-bar.rev { background: var(--accent); } .fin-bar.ni { background: var(--up); } .fin-bar.ni.neg { background: var(--down); }
.fin-col .sub { font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.replay-bar.follower { pointer-events: none; opacity: .8; }

/* gold: bonus quant features and the PTQ / Academy links */
.gold-box { border: 1.5px solid var(--gold); border-radius: 8px; padding: 10px 12px; background: var(--panel); box-shadow: 0 0 0 3px var(--gold-soft); }
.gold-box { min-width: 0; overflow-x: auto; }
.gold-box table.t td, .gold-box table.t th, .tester .right table.t td, .tester .right table.t th { white-space: normal; }
.gold-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.gold-badge { background: var(--gold); color: #1a1405; font-weight: 700; font-size: 11px; padding: 1px 7px; border-radius: 3px; letter-spacing: .03em; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1405; font-weight: 600; }
.btn.gold:hover { filter: brightness(1.08); }
.gold-text { color: var(--gold) !important; }
#tQuant, #tPtq { margin-top: 4px; }
table.t.heat td { text-align: center; } table.t.heat td.base { outline: 2px solid var(--gold); outline-offset: -2px; font-weight: 700; }
.ptq-verdict.warn { color: #f7a600; }
/* Academy ribbon, in PTQ's own CTA language (part-timequant.com Academy card) */
@property --academy-sheen-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes academy-border-sheen { to { --academy-sheen-angle: 360deg; } }
.ribbon { height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #f6f6f8; border-bottom: 1px solid rgba(8, 126, 229, 0.35); box-shadow: 0 3px 22px rgba(8, 126, 229, 0.28); position: relative; z-index: 3; color: #0b0b10; font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; white-space: nowrap; overflow: hidden; }
.ribbon > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; flex: 1; color: #3b3f4b; }
.ribbon > span:nth-child(2) b { color: #0b0b10; font-weight: 600; }
.ribbon-badge { flex: none; background: #087ee5; color: #fff; font-family: "Fragment Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; padding: 6px 13px; border-radius: 20px; }
.ribbon-cta, .btn.academy { flex: none; position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; background: #dc2626; color: #fff; font-weight: 600; text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 0; }
.ribbon-cta:hover, .btn.academy:hover { filter: brightness(0.93); color: #fff; }
.ribbon-cta::after, .btn.academy::after { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--academy-sheen-angle), transparent 0deg, transparent 230deg, #8b7cff 265deg, #b6eaff 292deg, #fff 310deg, #0a8cff 335deg, transparent 360deg); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; animation: academy-border-sheen 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ribbon-cta::after, .btn.academy::after { animation: none; --academy-sheen-angle: 135deg; } }
.ribbon-terms { flex: none; color: #087ee5; font-size: 12px; }
.ribbon-x { flex: none; border: 0; background: transparent; color: #5b5f6b; font-size: 18px; cursor: pointer; }
.ribbon-x:hover { color: #0b0b10; }
body.has-ribbon .main { height: calc(100% - 90px); }

/* PTQ: its own brand, from part-timequant.com's dark appearance (globals.css, 29 Sep 2026):
   near-black ground with rose/cyan/peach glows, glass panels, Instrument Sans with an
   Instrument Serif italic accent, Fragment Mono eyebrows, blue pill buttons. */
.ptq-brand {
  --bg: #0d0e12;
  --panel: rgba(23, 24, 29, 0.72);
  --panel-2: #1c1d23;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f5f7;
  --muted: #a4a9b4;
  --accent: #3aa1ff;
  --accent-soft: rgba(58, 161, 255, 0.14);
  --up: #4cc38a;
  --down: #ff7a7a;
  --hover: rgba(255, 255, 255, 0.06);
  --input: #17181d;
  --scroll: rgba(255, 255, 255, 0.18);
  color-scheme: dark;
  color: #c9ccd3;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}
.ptq-ground, .ptq-box.ptq-brand, .tester.ptq-brand {
  background:
    radial-gradient(520px 320px at -6% -20%, rgba(255, 122, 217, 0.26), transparent 70%),
    radial-gradient(620px 380px at 108% 20%, rgba(94, 231, 255, 0.2), transparent 70%),
    radial-gradient(520px 300px at 46% 130%, rgba(255, 179, 107, 0.2), transparent 70%),
    #0d0e12;
}
.ptq-box.ptq-brand { position: relative; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 18px 24px 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.ptq-tab { min-height: 100%; background: #0d0e12; }
.pad.ptq-tab { padding: 12px 18px; display: flex; justify-content: center; align-items: flex-start; }
.pad.ptq-tab > .ptq-box { width: 100%; max-width: 1040px; }
.ptq-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ptq-logo { display: inline-flex; align-items: center; gap: 8px; color: #f4f5f7; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.ptq-logo-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #1c1d24; color: #f4f5f7; border: 1px solid rgba(255, 255, 255, 0.1); }
.ptq-eyebrow { font-family: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a4a9b4; }
.ptq-status { display: inline-flex; align-items: center; gap: 7px; font-family: "Fragment Mono", ui-monospace, monospace; font-size: 11px; color: #a4a9b4; }
.ptq-status i { width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 8px rgba(76, 195, 138, 0.7); }
.ptq-title { margin: 0 0 8px; color: #f4f5f7; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ptq-title em { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: #9ccfff; }
.ptq-lead { margin: 0 0 16px; max-width: 640px; font-size: 14px; line-height: 1.55; color: #c9ccd3; }
.ptq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; align-content: center; }
#tPtq, .pad.ptq-tab { container: ptqhost / inline-size; }
.ptq-box.ptq-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 28px; }
@container ptqhost (min-width: 760px) { .ptq-box.ptq-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.ptq-steps li { display: flex; gap: 12px; align-items: baseline; padding: 9px 14px; border-radius: 16px; background: rgba(23, 24, 29, 0.72); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); }
.ptq-steps span { flex: none; font-family: "Fragment Mono", ui-monospace, monospace; font-size: 11px; color: #6cb8ff; letter-spacing: 0.1em; }
.ptq-steps b { display: block; color: #f4f5f7; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.ptq-steps p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #a4a9b4; }
.ptq-actions { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: flex-start; margin: 0 0 12px; }
.ptq-action { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.ptq-action > span { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.04em; color: #a4a9b4; padding-left: 4px; }
.btn.ptq-outline, .ptq-brand .btn.ptq-outline { display: inline-flex; align-items: center; gap: 6px; background: rgba(58, 161, 255, 0.12); border: 1px solid rgba(58, 161, 255, 0.55); color: #9ccfff; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 9px 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.btn.ptq-outline:hover, .ptq-brand .btn.ptq-outline:hover { background: rgba(58, 161, 255, 0.2); color: #fff; }
.ptq-foot { margin: 0; font-size: 12px; color: #8d929e; }
.ptq-brand p { color: #c9ccd3; }
.ptq-brand .hint-text, .ptq-brand .muted { color: #a4a9b4; }
.ptq-brand .ptq-foot { color: #8d929e; }
.ptq-brand .link, .ptq-brand a:not(.btn) { color: #6cb8ff; }
.ptq-brand .btn { text-decoration: none; border-radius: 999px; }
.btn.ptq, .ptq-brand .btn.ptq { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #0467cc; border: 1px solid #0467cc; color: #fff; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 9px 20px; }
.btn.ptq:hover, .ptq-brand .btn.ptq:hover { background: #0a78e6; border-color: #0a78e6; color: #fff; }
.btn.ptq-ghost, .ptq-brand .btn.ptq-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #f4f5f7; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 9px 20px; }
.btn.ptq-ghost:hover, .ptq-brand .btn.ptq-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.ptq-brand .btn.small { font-size: 12px; padding: 4px 14px; }
.ptq-brand .btn.danger { background: rgba(255, 122, 122, 0.12); border: 1px solid rgba(255, 122, 122, 0.4); color: #ff7a7a; }
.ptq-brand .btn.danger:hover { background: rgba(255, 122, 122, 0.2); }
.ptq-brand .stat { background: rgba(23, 24, 29, 0.72); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; }
.ptq-brand .ptq-verdict { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 4px 14px; font-family: "Fragment Mono", ui-monospace, monospace; font-size: 12px; font-weight: 400; }
.ptq-brand .ptq-verdict.up { color: #4cc38a; background: rgba(76, 195, 138, 0.14); border-color: rgba(76, 195, 138, 0.35); }
.ptq-brand .ptq-verdict.down { color: #ff7a7a; background: rgba(255, 122, 122, 0.12); border-color: rgba(255, 122, 122, 0.4); }
.ptq-brand .ptq-verdict.warn { color: #e8b949; background: rgba(232, 185, 73, 0.14); border-color: rgba(232, 185, 73, 0.4); }
.ptq-brand .ptq-arm { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(58, 161, 255, 0.45); border-radius: 16px; background: rgba(58, 161, 255, 0.08); }
.ptq-brand code { background: rgba(255, 255, 255, 0.08); color: #f4f5f7; font-family: "Fragment Mono", ui-monospace, monospace; border-radius: 6px; padding: 1px 6px; }
.ptq-brand table.t th { background: transparent; font-family: "Fragment Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8d929e; font-weight: 400; }
.ptq-brand table.t td { border-bottom-color: rgba(255, 255, 255, 0.08); }
.ptq-brand h4 { font-family: "Fragment Mono", ui-monospace, monospace; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: #a4a9b4; margin: 16px 0 8px; }
.tester.ptq-brand .left { border-right-color: rgba(255, 255, 255, 0.1); }
.tabs button[data-tab="ptq"] { color: #6cb8ff; font-weight: 600; }

/* 트뷰나인: 설정 창 오른쪽 아래 작은 라이선스 ? */
.lic-q {
  width: 18px;
  height: 18px;
  align-self: flex-end;
  margin-left: 2px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
}
.lic-q:hover { opacity: 1; color: inherit; }
.lic-box {
  margin: 10px 0 0;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
/* 트뷰나인: 지구본 언어 버튼 */
.lang-btn { position: relative; }
.lang-btn .lang-tag {
  position: absolute;
  right: 1px;
  bottom: 1px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
}

/* 트뷰나인: 관심종목 앞 동그라미 로고 (그림이 없으면 첫 글자) */
.wl-row .sym { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wl-logo {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--h, 210) 45% 42%);
}
.wl-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.wl-logo.has-img { color: transparent; background: #fff; }
.wl-logo.is-coin.has-img { background: transparent; }
.wl-logo.is-coin img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }

/* ===== 트뷰나인: 트레이딩뷰 느낌 (어두운 화면) ===== */
:root,
[data-theme="dark"] {
  --bg: #0f0f0f;
  --panel: #0f0f0f;
  --panel-2: #1e1e1e;
  --border: #2e2e2e;
  --text: #dbdbdb;
  --muted: #8c8c8c;
  --hover: #1f1f1f;
  --grid: rgba(255, 255, 255, 0.05);
  --input: #1a1a1a;
  --accent-soft: rgba(41, 98, 255, 0.14);
}
[data-theme="dark"] .topbar { background: #0f0f0f; border-bottom: 4px solid #000; }
[data-theme="dark"] .side { border-left: 4px solid #000; }
[data-theme="dark"] .drawbar { border-right: 4px solid #000; }
[data-theme="dark"] .bottom { border-top: 4px solid #000; }
.symbol-btn { background: var(--panel-2); border-radius: 8px; padding: 0 12px; }
.tb { border-radius: 6px; }
.tb:hover { background: var(--hover); }
/* 관심종목 표 */
.wl-cols, .wl-row { grid-template-columns: minmax(64px, 1fr) auto 60px 12px; column-gap: 6px; } /* 10/15 사용자: 체인지 칸 뺌 */
.wl-row .sym { overflow: visible; }
.wl-row { font-size: 12px; }
.wl-cols {
  display: grid;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.wl-cols span:not(:first-child) { text-align: right; }
.wl-row { font-size: 12.5px; padding: 6px 10px; border-bottom: 1px solid #1a1a1a; }
.wl-row .px, .wl-row .chg { text-align: right; font-variant-numeric: tabular-nums; }
.wl-row.current { background: transparent; box-shadow: inset 0 0 0 1px #5d5d5d; border-radius: 6px; }
.wl-row .ex { display: none; }
/* 아래 종목 카드 */
.wl-card { padding: 14px 14px 18px; border-top: 4px solid #000; }
.wl-card:empty { display: none; }
.wl-card-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wl-logo.big { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
.wl-card-sub { color: var(--muted); font-size: 12px; margin: 6px 0 10px; }
.wl-card-px { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wl-card-chg { font-size: 14px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wl-card-chg.up { color: var(--up); }
.wl-card-chg.down { color: var(--down); }

/* 트뷰나인: 범례 숫자 폭 고정 (값이 바뀔 때 버튼이 움직이지 않게) */
.legend .vals { font-variant-numeric: tabular-nums; }
.legend.sub .ind .acts { display: inline-flex; visibility: hidden; }
.legend.sub .ind:hover .acts { visibility: visible; }
/* 트뷰나인 회원 버튼·로그인 창 */
.tv9-acct { border: 1px solid var(--border); border-radius: 999px; padding: 0 12px; font-weight: 600; }
.tv9-login { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; }
.tv9-login form { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: grid; gap: 10px; width: min(320px, 92vw); }
.tv9-login input { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--input); color: var(--text); }
.tv9-login .row { display: flex; gap: 8px; justify-content: flex-end; }
.tv9-login .err { color: var(--down); min-height: 1em; }
/* 트뷰나인 모듈 탭 */
.tv9-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tv9-gad { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tv9-gad canvas { width: 240px; height: 240px; image-rendering: pixelated; border-radius: 8px; background: #0b0f14; }

/* 시그널 웹훅 탭 (modules/hooks) */
.tv9-hooks { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.tv9-hooks-new { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.tv9-hooks-new .in { width: 100%; max-width: 560px; }
.tv9-hooks-new .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tv9-hooks-packs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.tv9-hooks-packs label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.tv9-hooks-h { font-size: 12px; color: var(--muted); }

/* 언어 고르기 (지구본) */
.lang-menu { position: fixed; z-index: 1000; display: flex; flex-direction: column; min-width: 120px; padding: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); }
.lang-menu button { text-align: left; padding: 6px 10px; border: 0; background: transparent; color: var(--text); border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; }
.lang-menu button:hover { background: var(--hover); }
.lang-menu button.on { color: var(--accent); font-weight: 600; }

/* ===== 트뷰나인 2026-10-14: 구독서버(C9 Terminal) 모양으로 통일 =====
   사용자: "어떤 건 둥글고 어떤 건 각지고", "버튼 색 마음에 안 듦", "UI는 구독서버가 더 좋다".
   구독서버 다크 값: 바탕 #0e0e10 · 카드 #17171a · 옅은 칸 #222226 · 선 #2a2a2e · 글자 #f3f1ee · 흐린 글자 #9a968f · 오름 #4ade80 · 내림 #ff6b55.
   버튼·탭·선택칸·입력칸은 전부 알약(999px), 고른 탭·주 버튼은 어두운 알약(#2a2a2e) + 흰 글자. 흰 바탕 버튼 금지. */
[data-theme="dark"] {
  --bg: #0e0e10;
  --panel: #17171a;
  --panel-2: #222226;
  --border: #2a2a2e;
  --text: #f3f1ee;
  --muted: #9a968f;
  --hover: #222226;
  --input: #17171a;
  --accent: #f3f1ee;
  --accent-soft: #2a2a2e;
  /* 오름·내림(캔들) 색은 원래 것 그대로 — 사용자 10/14 "캔들 색은 아까가 더 좋음" */
  --scroll: #2a2a2e;
}
html,
body {
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
/* 위쪽 막대: 검은 띠·굵은 칸 경계 없앰, 버튼 사이 간격 */
[data-theme="dark"] .topbar { background: var(--bg); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .side { border-left: 1px solid var(--border); }
[data-theme="dark"] .bottom { border-top: 0; }
.topbar { height: 52px; gap: 6px; padding: 0 12px; }
.main { height: calc(100% - 52px); }
.sep { display: none; }
/* 모든 알약 버튼 (위쪽 막대) */
.tb,
select.tb {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: transparent;
  color: #d6d6db;
  font-size: 13px;
  font-weight: 500;
}
select.tb { padding-right: 26px; background-position: calc(100% - 14px) 14px, calc(100% - 10px) 14px; }
.tb:hover,
select.tb:hover { background-color: var(--panel-2); color: var(--text); }
.tb.on,
.tb.active { background-color: var(--panel-2); color: var(--text); border-color: #3a3a40; }
.tb.icon { width: 32px; padding: 0; justify-content: center; border-color: transparent; }
.tb.icon:hover { border-color: var(--border); }
.tb.check { color: #d6d6db; }
.tb.check input { accent-color: var(--text); }
.tb svg { width: 16px; height: 16px; }
/* 종목 버튼: 구독서버 "BTCUSDT +0.58%" 알약 */
.symbol-btn { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--text); }
/* 봉 단위: 한 덩어리 알약 안의 알약들 (구독서버 Desk·Now 탭 묶음) */
.tf-group { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.tf-group button { height: 26px; min-width: 34px; padding: 0 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; }
.tf-group button:hover { background: var(--panel-2); color: var(--text); }
.tf-group button.active { background: var(--border); color: var(--text); }
.tf-custom { height: 32px; width: 54px; margin-left: 0; border-radius: 999px; background: var(--panel); border-color: var(--border); }
/* 로그인·등급 버튼: 어두운 알약 (흰 버튼 금지 — 사용자 10/14) */
.tb.tv9-acct { background: var(--panel-2); color: var(--text); border-color: #3a3a40; font-weight: 600; }
.tb.tv9-acct:hover { background: var(--border); }
/* 페이지 탭 줄 (차트 위): 구독서버 Desk · Now · Market 묶음 */
.tabs.tv9-nav {
  height: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 8px 10px;
  padding: 4px;
  width: max-content;
  max-width: calc(100% - 20px);
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  scrollbar-width: none;
}
.tabs.tv9-nav::-webkit-scrollbar { display: none; }
.tabs.tv9-nav button { height: 30px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; }
.tabs.tv9-nav button:hover { background: var(--panel-2); color: var(--text); }
.tabs.tv9-nav button.active { background: var(--border); color: var(--text); }
.tabs.tv9-nav .nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; flex: none; }
/* 페이지 모드: 탭 화면이 차트 자리를 다 씀 */
.bottom.collapsed { display: none; }
.center.page-mode .grid { display: none; }
.center.page-mode .bottom { flex: 1; height: auto; min-height: 0; }
.bottom .tab-body { padding: 0 10px 10px; }
/* 오른쪽 탭 (관심종목·알림·일정·뉴스): 같은 알약 묶음 */
#sideTabs { height: auto; margin: 8px; padding: 4px; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; }
#sideTabs button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
#sideTabs button.active { background: var(--border); color: var(--text); }
/* 그리기 도구 펼침 칸 (위쪽 "그리기" 버튼 아래) */
.drawbar-pop {
  position: fixed;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 560px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.drawbar-pop button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: #d6d6db; cursor: pointer; display: grid; place-items: center; }
.drawbar-pop button:hover { background: var(--panel-2); color: var(--text); }
.drawbar-pop button.active { background: var(--border); color: var(--text); }
.drawbar-pop hr { width: 1px; height: 20px; border: 0; background: var(--border); margin: 0 4px; }
/* 안쪽 버튼·입력칸·선택칸도 알약 */
.btn { border-radius: 999px; padding-left: 14px; padding-right: 14px; }
.btn.primary { background: var(--panel-2); border-color: #3a3a40; color: var(--text); font-weight: 600; }
.btn.primary:hover { background: var(--border); border-color: #4a4a50; }
.in, select.in, input.num, .search-in, select:not(.tb) { border-radius: 999px; }
textarea { border-radius: 14px; }
.tv9-login form, .lang-menu, .modal-card { border-radius: 18px; }
.lang-menu button { border-radius: 999px; }
.lang-menu button.on { color: var(--text); background: var(--border); }

/* 로고: 흰 네모가 되지 않게 */
.brand rect { fill: var(--panel-2); }
.brand path { stroke: var(--text); }
/* 관심종목: 글꼴이 바뀌어 이름과 가격이 붙던 것 → 칸 폭 고정, 긴 이름은 … */
.wl-cols, .wl-row { grid-template-columns: minmax(0, 1fr) 72px 58px 8px; column-gap: 4px; }
.wl-row { padding-left: 8px; padding-right: 6px; }
.wl-row .sym { overflow: clip; overflow-clip-margin: 26px; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } /* 10/15 신호 점 빛이 잘리지 않게 */
.wl-row, .wl-cols { font-variant-numeric: tabular-nums; }
.wl-row > :nth-child(2), .wl-cols > :nth-child(2) { text-align: right; }

/* 차트 우클릭 메뉴 (chartmenu.js) — 구독서버 차트 메뉴 모양 */
.tv9-ctx { position: fixed; z-index: 1000; width: 250px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 13px; }
.tv9-ctx[hidden] { display: none; }
.tv9-ctx > button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.tv9-ctx > button:hover { background: var(--panel-2); }
.tv9-ctx-sep { display: block; height: 1px; margin: 6px 4px; background: var(--border); }
.tv9-ctx-lab { margin: 6px 10px 4px; font-size: 11px; color: var(--muted); }
.tv9-ctx-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 4px; }
.tv9-ctx-row button { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: #d6d6db; cursor: pointer; font-size: 12px; }
.tv9-ctx-row button:hover { background: var(--panel-2); }
.tv9-ctx-row button.is-on { background: var(--border); color: var(--text); border-color: #3a3a40; }
.tv9-ctx-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tv9-ctx-row i + i { margin-right: 3px; }
.tv9-ctx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 0 10px 4px; }
.tv9-ctx-col { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: #d6d6db; }
.tv9-ctx-col input[type="color"] { width: 26px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; }
.tv9-ctx-chk { display: flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 12px; color: #d6d6db; cursor: pointer; }
.tv9-ctx-chk input { accent-color: #9a968f; }
/* 우클릭 메뉴 좁게 (사용자 10/14: 마우스 올렸을 때 강조가 너무 길다) */
.tv9-ctx { width: 190px; padding: 5px; }
.tv9-ctx > button { padding: 6px 9px; font-size: 13px; }
.tv9-ctx-grid { grid-template-columns: 1fr; gap: 3px; padding: 0 9px 4px; }
.tv9-ctx-row { padding: 0 5px 4px; }
.tv9-ctx-row button { padding: 0 8px; }
.tv9-ctx-chk { padding: 3px 9px; }
.tv9-ctx { width: 214px; }
.tv9-ctx-grid { grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.tv9-ctx-chks { display: grid; grid-template-columns: 1fr 1fr; padding: 0 0 2px; }
.tv9-ctx-chks .tv9-ctx-chk { padding: 3px 9px; }
/* 우클릭 메뉴: 누르는 영역은 체크·글자·색 칸까지만 (빈칸은 안 눌림) — 사용자 10/14 */
.tv9-ctx > button { display: block; width: fit-content; max-width: 100%; }
.tv9-ctx-chk { width: fit-content; }
.tv9-ctx-chks { justify-items: start; }
.tv9-ctx-col { width: fit-content; justify-content: flex-start; gap: 6px; }
.tv9-ctx-grid { justify-items: start; }
.tv9-ctx { width: 236px; }
.tv9-ctx-col span, .tv9-ctx-chk { white-space: nowrap; }

/* 우클릭 메뉴 불투명도 막대: 누르는 영역은 글자·막대·숫자까지만 */
.tv9-ctx-rng { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 2px 9px; font-size: 12px; color: #d6d6db; white-space: nowrap; }
.tv9-ctx-rng span { width: 34px; }
.tv9-ctx-rng input { width: 120px; accent-color: #9a968f; }
.tv9-ctx-rng em { font-style: normal; width: 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 리플레이 시작 봉 고르기: 마우스를 따라오는 세로선, 오른쪽(아직 안 보일 봉)은 어둡게 */
.replay-cut { position: absolute; top: 0; z-index: 4; pointer-events: none; }
.multi-zones { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.replay-cut-line { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-left: 2px solid #5aa9ff; }
.replay-cut-shade { position: absolute; left: 2px; right: 0; top: 0; bottom: 0; background: rgba(14, 14, 16, 0.55); }
/* 사용자 10/14: 종목 같이·비교 버튼 일단 숨김 (기능 코드는 남김) */
#compareBtn, .tb.check:has(#syncSymbol) { display: none !important; }

/* ===== 구독서버 버튼 세부 (10/14 측정값): 위가 밝은 1px 그라데이션 테두리 + 그림자 — "아이폰처럼" =====
   묶음 칸: 채움 #1b1b1f, 테두리 흰 26%→6%. 고른 버튼: 채움 #2a2a30, 테두리 흰 36%→8%, 그림자 0 2px 8px 검정 30%. */
.tf-group,
.tabs.tv9-nav,
#sideTabs {
  border: 1px solid transparent;
  background: linear-gradient(#1b1b1f, #1b1b1f) padding-box, linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)) border-box;
}
.tf-group button,
.tabs.tv9-nav button,
#sideTabs button,
.tv9-ctx-row button,
.drawbar-pop button {
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.tf-group button.active,
.tabs.tv9-nav button.active,
#sideTabs button.active,
.tv9-ctx-row button.is-on,
.drawbar-pop button.active,
.tb.on,
.tb.tv9-acct,
.lang-menu button.on {
  border: 1px solid transparent;
  background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)) border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--text);
}
/* 페이지 탭: 봉 단위 버튼과 같은 크기 (사용자 10/14 "타임프레임 크기 정도로") */
.tabs.tv9-nav { padding: 3px; margin: 6px 10px; }
.tabs.tv9-nav button { height: 26px; padding: 0 12px; font-size: 13px; }
.tabs.tv9-nav .nav-sep { height: 14px; margin: 0 4px; }
#sideTabs button { height: 26px; font-size: 13px; }

/* 종목 버튼 옆 등락 % */
.sym-chg { margin-left: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* 페이지 탭 (10/14 고침): 차트 칸을 숨기면(display:none) 차트 크기가 0 으로 남아 "차트" 로 돌아올 때 깨짐
   → 차트는 그대로 두고, 탭 화면을 같은 자리에 위로 덮음 */
.center { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.center > .tv9-tools { grid-row: 1; }
/* 10/14 사용자: 페이지 탭은 첫 줄(위쪽 막대), 차트 도구는 둘째 줄 */
.topbar .tabs.tv9-nav { margin: 0 0 0 6px; max-width: none; }
.tv9-tools { display: flex; align-items: center; gap: 6px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; }
.tv9-tools::-webkit-scrollbar { display: none; }
.tv9-tools .tb { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.center > #grid { grid-row: 2; grid-column: 1; }
.center > #bottom { grid-row: 2; grid-column: 1; z-index: 3; height: auto; min-height: 0; background: var(--bg); }
.center.page-mode .grid { display: grid; }
/* 탭 화면이 차트 이름 줄(범례)보다 위에 오게 */
.center > #bottom { z-index: 30; }

/* 시그널 가격 변동률 랭킹 (modules/rank) — 구독서버 Desk 랭킹 모양 */
.tv9-rank { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; margin: 4px 0; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); }
.tv9-rank-h { display: flex; align-items: baseline; gap: 12px; }
.tv9-rank-h h2 { margin: 0; font-size: 20px; font-weight: 500; }
/* 10/23 사용자 "글씨가 두 번" · "BTCUSDT · 1–20 도 빼도 될 듯": 팝업 제목(시그널 수익 랭킹)만 남기고 안쪽 제목 줄 숨김 */
.tv9-desk-pop .tv9-rank-h, .tv9-desk-pop .tv9-rank > h2 { display: none; }.tv9-rank-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tv9-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(#1b1b1f, #1b1b1f) padding-box, linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)) border-box; }
.tv9-seg button, .tv9-pill { height: 26px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.tv9-pill { border-color: var(--border); }
.tv9-seg button:hover, .tv9-pill:hover { color: var(--text); background: var(--panel-2); }
.tv9-seg button.active, .tv9-pill.active { color: var(--text); background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)) border-box; border-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.tv9-rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-items: start; }
.tv9-rank-card { border: 1px solid var(--border); border-radius: 12px; padding: 8px 6px 6px; background: var(--bg); }
.tv9-rank-card header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 6px 6px; }
.tv9-rank-card header b { font-size: 13px; font-weight: 600; }
.tv9-rank-card header small { color: var(--muted); font-size: 11px; }
.tv9-rank-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 64px; gap: 6px; align-items: center; width: 100%; padding: 3px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 12px; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.tv9-rank-row:hover { background: var(--panel-2); }
.tv9-rank-row .set { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv9-rank-row .d { color: var(--muted); }
.tv9-rank-row .p { text-align: right; }
.tv9-rank-row .g { font-style: normal; font-weight: 700; font-size: 11px; color: var(--muted); }
.tv9-rank-row .g-S { color: #f0b90b; }
.tv9-rank-row .g-A { color: #9b8cff; }
.tv9-rank-row .g-B { color: #4ade80; }
.tv9-rank-row .g-C { color: var(--muted); }
/* 10/23 키트 계산 · 랭킹 계산 · Expert 자동 맞춤 결과 팝업 (calc-pop.js) = 랭킹 전체 팝업과 같은 카드 · 줄 */
.tv9-rank-grid.one { grid-template-columns: 1fr; }
.tv9-calc-pop .tv9-rank-row { padding: 6px 8px; font-size: 12.5px; }
.tv9-rank-row.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent); }
.tv9-calc-note { margin: 10px 2px 0; }
/* 시그널팩 기록 (차트 오른쪽 위) */
.tv9-pack-hud { position: absolute; top: 8px; right: 90px; z-index: 6; display: flex; gap: 8px; align-items: center; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(14, 14, 16, 0.85); font-size: 12px; font-variant-numeric: tabular-nums; }
.tv9-pack-hud small { color: var(--muted); }
.tv9-pack-hud label { display: inline-flex; gap: 3px; align-items: center; width: fit-content; color: #d6d6db; cursor: pointer; }
.tv9-pack-hud input { accent-color: #9a968f; margin: 0; }
/* 인기종목 (modules/rank Desk) */
.tv9-hot { margin-bottom: 10px; }
.tv9-hot-list { max-height: 330px; overflow-y: auto; }
.tv9-hot-row { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) 140px 80px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tv9-hot-row:hover { background: var(--panel-2); }
.tv9-hot-row.on { background: #2a2a30; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.tv9-hot-row .n { color: var(--muted); }
.tv9-hot-row .px { text-align: right; }
.tv9-hot-row > span:last-child { text-align: right; }
.tv9-hot-row .star { width: fit-content; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0; }
.tv9-hot-row .star.on { color: #f0b90b; }

/* ===== 10/14 리플레이 바 · 펼침 메뉴 다듬기 (사용자: 각지거나 글씨 안 보이게 하지 말 것, 부드럽게) ===== */
.replay-bar {
  bottom: 40px; gap: 8px; padding: 6px 8px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(rgba(27, 27, 31, 0.96), rgba(27, 27, 31, 0.96)) padding-box, linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)) border-box;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
  animation: tv9-pop 0.18s ease-out;
}
.replay-bar .hint { color: var(--muted); font-size: 12px; padding: 0 4px 0 8px; }
.replay-bar .rp-ctl { display: inline-flex; gap: 4px; align-items: center; }
.replay-bar .rp-ic { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 999px; border: 1px solid transparent; color: #d6d6db; background: transparent; transition: background 0.15s, color 0.15s, transform 0.1s; }
.replay-bar .rp-ic svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.replay-bar .rp-ic:hover { background: var(--panel-2); color: var(--text); }
.replay-bar .rp-ic:active { transform: scale(0.94); }
.replay-bar .rp-play { width: 38px; height: 38px; color: var(--text); background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)) border-box; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.replay-bar .rp-play svg { width: 16px; height: 16px; }
.replay-bar .rp-speed { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #141417; border: 1px solid var(--border); }
.replay-bar .rp-speed button { height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background 0.15s, color 0.15s; }
.replay-bar .rp-speed button:hover { color: var(--text); }
.replay-bar .rp-speed button.on { color: var(--text); background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)) border-box; }
.replay-bar .rp-pill { height: 30px; padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: #d6d6db; font-size: 12px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.replay-bar .rp-pill svg { width: 13px; height: 13px; }
.replay-bar .rp-pill:hover { background: var(--panel-2); color: var(--text); }
.replay-bar .rp-exit svg { fill: currentColor; stroke: none; }
.replay-bar label.hint { display: inline-flex; gap: 4px; align-items: center; width: fit-content; }

/* 펼침 메뉴 공통: 둥글게, 읽히는 색, 부드럽게 나타남 */
@keyframes tv9-pop { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tv9-pop-c { from { opacity: 0; transform: translate(-50%, 4px) scale(0.98); } to { opacity: 1; transform: translateX(-50%); } }
.replay-bar { animation-name: tv9-pop-c; }
.drawbar-pop:not(.hidden), .tv9-ctx:not([hidden]), .lang-menu, .c9-add-menu, .tv9-login form, .modal-card { animation: tv9-pop 0.16s ease-out; }
.drawbar-pop, .tv9-ctx, .lang-menu, .c9-add-menu { border: 1px solid transparent; background: linear-gradient(#1b1b1f, #1b1b1f) padding-box, linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)) border-box; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.lang-menu { border-radius: 16px; padding: 6px; }
.tv9-ctx { border-radius: 16px; }
.tv9-ctx > button, .lang-menu button { transition: background 0.12s, color 0.12s; }
/* 선택칸(select) 펼친 목록: 어두운 바탕에 밝은 글자 (흰 바탕·안 보이는 글자 금지) */
select, select.tb, select.in { color-scheme: dark; }
select option, select optgroup { background: #1b1b1f; color: #f3f1ee; }
select option:checked { background: #2a2a30; color: #ffffff; }
/* 모달·카드·입력칸 모서리 */
.modal-card { border-radius: 18px; border: 1px solid transparent; background: linear-gradient(#17171a, #17171a) padding-box, linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)) border-box; }
.modal .list .item { border-radius: 10px; transition: background 0.12s; }
.search-in { border-radius: 999px; padding-left: 16px; }
/* 버튼 공통 부드럽게 */
.tb, .btn, .tf-group button, .tabs button, .tv9-seg button, .tv9-pill { transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s; }

/* 10/14 차트 엔진 교체: 구독서버 엔진 캔버스 */
.c9-chart canvas { display: block; }
.legend .c9-stat { display: flex; gap: 8px; align-items: center; width: fit-content; margin: 2px 0 4px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(14, 14, 16, 0.85); pointer-events: auto; font-variant-numeric: tabular-nums; }
.legend .c9-stat .up { color: var(--up); }
.legend .c9-stat .down { color: var(--down); }
.legend .c9-stat small { color: var(--muted); }
.legend .c9-stat .c9-stat-num { display: inline-flex; gap: 8px; align-items: center; margin-left: 2px; }
/* 토글: 작은 알약 스위치 + 이름, 켜지면 밝게 */
.legend .c9-stat .c9-tg { display: inline-flex; gap: 5px; align-items: center; width: fit-content; color: #8a8a93; cursor: pointer; user-select: none; }
.legend .c9-stat .c9-tg input { display: none; }
.legend .c9-stat .c9-tg i { position: relative; width: 22px; height: 12px; border-radius: 999px; background: #0e0e10; border: 1px solid rgba(255,255,255,0.12); transition: background .15s; }
.legend .c9-stat .c9-tg i::after { content: ""; position: absolute; top: 1px; left: 1px; width: 8px; height: 8px; border-radius: 50%; background: #55555c; transition: transform .15s, background .15s; }
.legend .c9-stat .c9-tg.on { color: #e8e8ed; }
.legend .c9-stat .c9-tg.on i { background: #8e8e96; border-color: rgba(255,255,255,0.35); }
.legend .c9-stat .c9-tg.on i::after { transform: translateX(10px); background: #ffffff; }
.tv9-hot-cols { display: grid; grid-template-columns: 58px minmax(0, 1fr) 140px 80px; gap: 8px; margin: 4px 8px 2px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.tv9-hot-cols span { text-align: right; }
.tv9-hot-cols { grid-template-columns: minmax(0, 1fr) 140px 80px; }
.tv9-hot-row b .nm { margin-left: 6px; font-weight: 400; color: var(--muted); font-size: 12px; }
/* 키트 계산: 야후(미국 주식) 목록은 USDT 시장 규칙상 숨김 */
.tv9-kit #elon-yahoo-movers { display: none; }
/* 키트 계산 = 트뷰나인 모양 (알약, 흰 바탕·흰 테두리 없음) */
.tv9-kit .elon-find-cursor { display: none !important; }
.tv9-kit .elon-find-field input, .tv9-kit #elon-find { border-radius: 999px !important; background: #1b1b1f !important; border: 1px solid rgba(255,255,255,0.08) !important; padding: 8px 16px !important; color: #e8e8ed; }
/* 북마크: 따로 떨어진 동그라미 대신 검색칸 안 오른쪽에 아이콘만 */
.tv9-kit .elon-add { position: relative; grid-template-columns: minmax(0, 1fr); }
.tv9-kit .elon-find-field input, .tv9-kit #elon-find { padding-right: 44px !important; }
.tv9-kit .elon-fav { position: absolute; right: 18px; top: calc(50% - 4px); transform: translateY(-50%); width: 28px; min-height: 28px; border: 0 !important; border-radius: 999px !important; background: transparent !important; }
.tv9-kit .elon-fav:not(:disabled):hover { background: #2a2a30 !important; color: #e8e8ed; }
.tv9-kit .elon-row { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #1b1b1f; border: 1px solid rgba(255,255,255,0.06); width: fit-content; }
.tv9-kit .elon-chip { border-radius: 999px !important; border: 0 !important; background: transparent !important; color: #9a9aa3 !important; padding: 5px 14px !important; box-shadow: none !important; }
.tv9-kit .elon-chip.is-on { background: #2a2a30 !important; color: #fff !important; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.35) !important; }
.tv9-kit .elon-box, .tv9-kit .term-box { border-radius: 18px; }
.tv9-ctx-row i.tv9-ctx-empty { border: 1px dashed #6b6b73; width: 8px; height: 8px; box-sizing: border-box; }
.tv9-ctx-row button.tv9-ctx-mini { height: 28px; padding: 0 10px; font-size: 11px; color: #9a9aa3; border: 1px dashed #3a3a40 !important; border-radius: 999px !important; width: fit-content; }
.legend .c9-stat .c9-kit { padding-left: 8px; border-left: 1px solid var(--border); color: #c8c8cf; }

/* 봉 단위 한 칸 + 세로 펼침 목록 (10/14 사용자) */
.tf-group { padding: 0; }
.tf-group .tf-cur { display: inline-flex; align-items: center; gap: 8px; height: 30px; min-width: 64px; padding: 0 12px 0 14px; border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 600; background: transparent; border: 0; cursor: pointer; }
.tf-group .tf-cur svg { color: var(--muted); transition: transform .15s; }
.tf-group.open .tf-cur svg { transform: rotate(180deg); }
.tf-group .tf-cur:hover { background: var(--panel-2); }
.tf-list { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(#1b1b1f, #1b1b1f) padding-box, linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)) border-box; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.tf-list[hidden] { display: none; }
.tf-list button { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.tf-list button:hover { background: var(--panel-2); color: var(--text); }
.tf-list button.active { background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)) border-box; color: var(--text); }
.tf-list .tf-custom { width: auto; height: 28px; margin-top: 2px; padding: 0 12px; font-size: 13px; }
/* 10/14 사용자: 차트 위 켜기/끄기는 토글 대신 체크박스 */
.legend .c9-stat .c9-tg i { box-sizing: border-box; width: 13px; height: 13px; border-radius: 3px; background: #1c1c20; border: 1px solid rgba(255,255,255,0.22); transition: background .15s, border-color .15s; }
.legend .c9-stat .c9-tg i::after { content: ""; position: absolute; top: 1px; left: 3.5px; width: 3px; height: 6px; border: solid transparent; border-width: 0 1.6px 1.6px 0; border-radius: 0; background: none; transform: rotate(45deg); transition: none; }
.legend .c9-stat .c9-tg:hover i { border-color: rgba(255,255,255,0.4); }
.legend .c9-stat .c9-tg.on { color: #c8c8cf; }
.legend .c9-stat .c9-tg.on i { background: #3a3a42; border-color: rgba(255,255,255,0.3); }
.legend .c9-stat .c9-tg.on i::after { transform: rotate(45deg); background: none; border-color: #d6d6db; }
#tfItems { display: flex; flex-direction: column; gap: 2px; }
.tf-list button.mine { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tf-list .tf-del { width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 999px; color: #6b6b73; font-size: 13px; }
.tf-list .tf-del:hover { background: #3a3a42; color: #e8e8ed; }
/* 그린 선 우클릭: 색 동그라미 + 직접 고르기 */
.tv9-ctx-sw { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px 6px; align-items: center; }
.tv9-ctx-sw button { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35); cursor: pointer; }
.tv9-ctx-sw button.is-on { border-color: #d6d6db; }
.tv9-ctx-sw-own { position: relative; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; cursor: pointer; background: conic-gradient(#f23645, #ffeb3b, #22ab94, #2962ff, #9c27b0, #f23645); }
.tv9-ctx-sw-own input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tv9-ctx > button:disabled { color: var(--muted); cursor: default; background: transparent; }
.tv9-ctx > button small { display: block; font-size: 11px; color: var(--muted); }
/* 10/14 사용자: 지표 이름 옆 톱니가 눈·X 보다 커 보여 줄임 */

/* 알림 창 (10/14 간단하게) */
.al-simple .rules { margin: 10px 0 4px; }
.al-simple .al-more { margin-bottom: 10px; }
.al-hook { margin: 10px 0 4px; }
.al-hook summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.al-hook[open] summary { color: var(--text); }
.al-hook .row-flex { margin-top: 6px; }
/* Cloud 탭 (modules/cloud) */
.cl-wrap { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 30px; max-width: 1100px; }
.cl-box { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.cl-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cl-h h3 { margin: 0; font-size: 16px; }
.cl-h .muted, .cl-row .muted { color: var(--muted); font-size: 12px; }
.cl-row { display: grid; grid-template-columns: 2em 8em minmax(0, 1fr) 4em 5em 2em; gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--border); font-size: 13px; cursor: pointer; border-radius: 8px; }
.cl-row.is-kit { grid-template-columns: 2em 8em minmax(0, 1fr) 4em 5em 6em 6em 5em 2em; }
.cl-row:hover:not(.cl-head) { background: var(--panel-2); }
.cl-row.cl-head { cursor: default; color: var(--muted); font-size: 11px; border-top: 0; }
.cl-n { color: var(--muted); }
.cl-pack { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8c8cf; }
.cl-row .up { color: var(--up); }
.cl-row .down { color: var(--down); }
.cl-x { width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.cl-x:hover { background: #3a3a42; color: var(--text); }
.cl-empty { margin: 6px 4px; font-size: 13px; }
.al-simple .rule .num { width: 120px; }
.al-simple .al-fixed { display: inline-flex; align-items: center; padding: 0 8px; }
/* 관심종목 보기 순서 (10/14): 목록 고르기 옆 작은 칸 */
.wl-head select.wl-sort { flex: none; width: auto; min-width: 0; padding-right: 22px; }
/* 알림 종류 딱지 (가격·수평선·추세선·레이·브러시) */
.al-kind { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #2a2a30; color: #c8c8cf; vertical-align: 1px; }
.al-kind.k-pencil { background: rgba(156, 39, 176, 0.22); color: #d8a8e0; }
.al-kind.k-hline, .al-kind.k-trend, .al-kind.k-ray { background: rgba(41, 98, 255, 0.2); color: #9db4ff; }
.al-kind.k-old { background: transparent; border: 1px solid #3a3a42; color: var(--muted); }
/* 회원 (구독서버 회원 창): 위쪽 슬롯은 트뷰나인 알약, 흰 바탕 버튼 금지 (사용자 10/14) */
.tv9-auth-slot { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tv9-auth-slot .auth-btn, .tv9-auth-slot .auth-who { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255,255,255,0.36), rgba(255,255,255,0.08)) border-box; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tv9-auth-slot .auth-btn.ghost { background: transparent; border-color: var(--border); color: #c8c8cf; font-weight: 500; }
/* 10/15 사용자 "회원 로그인 마우스 올리면 글씨 안 보임": 구독서버 :hover 가 글씨만 검정(!important)으로 바꾸고 바탕은 그대로 어두워서 → 바탕 조금 밝게 + 글씨 흰색 */
.tv9-auth-slot .auth-btn:hover { background: linear-gradient(#34343a, #34343a) padding-box, linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.12)) border-box; color: #fff !important; }
.tv9-auth-slot .auth-btn.ghost:hover { background: var(--panel-2); color: #fff !important; }
.tv9-auth-slot .auth-plan-chip { font-style: normal; font-size: 11px; color: #9a9aa3; }
.auth-modal .auth-action.primary { background: #3a3a42 !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.18) !important; }
.auth-modal .auth-action.primary:hover { background: #4a4a52 !important; }
/* 우클릭 메뉴: 불투명도 막대 줄이 1~2px 넘쳐 가로 스크롤 생기던 것 */
.tv9-ctx { overflow-x: hidden; }
.tv9-ctx-rng { box-sizing: border-box; max-width: 100%; }
.tv9-ctx-rng input[type="range"] { min-width: 0; }
/* 둘째 줄 선택칸 알약 (pillselect.js) */
.pill-sel { display: inline-flex; align-items: center; gap: 8px; }
.pill-sel svg { width: 9px; height: 9px; color: var(--muted); transition: transform .15s; }
.pill-sel.open svg { transform: rotate(180deg); }
.pill-sel-list button { white-space: nowrap; }
/* NOW: 위쪽 종목 칸·기본/Premium 차트 버튼이 네모 → 트뷰나인 알약 (사용자 10/14) */
.tv9-now .focus-favs { display: flex; flex-wrap: wrap; gap: 4px; }
.tv9-now .focus-favs button, .tv9-now button.prem-open { border-radius: 999px !important; border: 1px solid var(--border) !important; background: transparent !important; color: #c8c8cf !important; padding: 4px 12px !important; font-family: inherit !important; font-size: 12px !important; }
.tv9-now .focus-favs button:hover, .tv9-now button.prem-open:hover { background: #2a2a30 !important; color: #fff !important; }
.tv9-now .focus-favs button.is-on { background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255,255,255,0.36), rgba(255,255,255,0.08)) border-box !important; border-color: transparent !important; color: #fff !important; }
/* 모든 선택칸 알약 (pillselect.js) */
button.pill-sel { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: #d6d6db; font: inherit; font-size: 13px; cursor: pointer; text-align: left; max-width: 100%; }
button.pill-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.pill-sel:hover { background: var(--panel-2); color: var(--text); }
button.pill-sel:disabled { opacity: .5; cursor: default; }
.pill-sel-list { overflow-y: auto; z-index: 3000; }
.pill-sel-list .pill-sel-grp { margin: 6px 10px 2px; font-size: 11px; color: var(--muted); }
.wl-head button.pill-sel { flex: none; width: auto; }
.wl-head button.pill-sel#wlSel, .wl-head button.pill-sel:first-child { flex: 1; }
/* 둘째 줄 = 차트 바탕색 (우클릭에서 바탕을 바꾸면 같이) */
.tv9-tools { background: var(--chart-bg, #121214); }
/* 관심종목 머리줄: 목록 고르기·+목록·지우기 뺌 (10/14 사용자), 보기 순서 칸만 */
.wl-head > select, .wl-head > button:not(.wl-sort) { display: none !important; }
.wl-head > button.pill-sel.wl-sort { display: inline-flex !important; flex: 1; }
/* 즐겨찾기 별 */
.wl-row .wl-star { opacity: 0; flex: none; margin: 0 2px 0 -4px; width: 16px; height: 20px; padding: 0; border: 0; background: transparent; color: #6b6b73; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wl-row .wl-star svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wl-row:hover .wl-star, .wl-row .wl-star.on { opacity: 1; }
.wl-row .wl-star.on { color: #ffb000; }
.wl-row .wl-star.on svg { fill: currentColor; }
/* 별: 자리 차지하지 않게 왼쪽 여백에 겹침 */
.wl-row { position: relative; padding-left: 13px !important; }
.wl-row .wl-star { position: absolute; left: 1px; top: 50%; transform: translateY(-50%); margin: 0 !important; width: 14px !important; height: 14px !important; }
.wl-row .wl-star svg { width: 11px !important; height: 11px !important; }
/* 그린 선 우클릭: 알림 추가 옆 휴지통 */
.tv9-ctx-drow { display: flex; align-items: stretch; gap: 4px; }
.tv9-ctx-drow > button { border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; padding: 7px 10px; text-align: left; font: inherit; }
.tv9-ctx-drow > button[data-act="dalert"] { flex: 1; }
.tv9-ctx-drow > button:hover:not(:disabled) { background: var(--panel-2); }
.tv9-ctx-drow > button:disabled { color: var(--muted); cursor: default; }
.tv9-ctx-drow > button small { display: block; font-size: 11px; color: var(--muted); }
.tv9-ctx-del { flex: none; width: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; color: #9a9aa3 !important; }
.tv9-ctx-del:hover { color: #f23645 !important; }
.tv9-ctx-del svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 리플레이 봉 고르기: 마우스 = 재생 버튼 모양 (10/14 사용자) */
.replay-picking, .replay-picking canvas { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23121214' fill-opacity='0.85' stroke='%23e8e8ed' stroke-width='1.6'/%3E%3Cpath d='M10 8l6 4-6 4z' fill='%23e8e8ed'/%3E%3C/svg%3E") 12 12, pointer !important; }
/* 차트 저장(북마크) 켜지면 즐겨찾기 별처럼 노랑 (10/14 사용자) */
.tv9-cloud-btn svg { fill: none; stroke: currentColor; }
.tv9-cloud-btn.on { color: #ffb000 !important; }
.tv9-cloud-btn.on svg { fill: #ffb000; stroke: #ffb000; }
.tv9-cloud-btn.on span { color: #e8e8ed; }
/* 종(신호 알림) 켜지면 노랑 (10/14 사용자) */
#alertBtn svg { fill: none; }
#alertBtn.on { color: #ffb000 !important; }
#alertBtn.on svg { fill: #ffb000; stroke: #ffb000; }
#alertBtn.on span { color: #e8e8ed; }
/* Desk 랭킹 줄 북마크 (Cloud 시그널 랭킹) */
.tv9-rank-li { display: flex; align-items: stretch; }
.tv9-rank-li .tv9-rank-row { flex: 1; min-width: 0; }
.tv9-rank-pin { flex: none; width: 24px; border: 0; background: transparent; color: #5a5a62; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tv9-rank-pin svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tv9-rank-pin:hover { color: #e8e8ed; }
.tv9-rank-pin.on { color: #ffb000; }
.tv9-rank-pin.on svg { fill: #ffb000; }
.cl-row.is-rank { grid-template-columns: 2em 8em minmax(0, 1fr) 4em 6em 6em 5em 2em; }
/* 오른쪽 위 알림 칸 (modules/trays) */
.tv9-tray-btn { position: relative; }
.tv9-tray-btn svg { fill: none; }
.tv9-tray-btn.has { color: #e8e8ed; }
.tv9-tray-btn.open { background: var(--panel-2); border-color: var(--border); }
.tv9-tray-n { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: #f23645; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 15px; text-align: center; box-sizing: border-box; }
.tv9-tray-n[hidden] { display: none; }
.tv9-tray { position: fixed; z-index: 2500; width: 380px; max-height: min(520px, calc(100vh - 80px)); overflow-y: auto; overflow-x: hidden; padding: 8px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(#1b1b1f, #1b1b1f) padding-box, linear-gradient(rgba(255,255,255,0.26), rgba(255,255,255,0.06)) border-box; box-shadow: 0 12px 30px rgba(0,0,0,0.5); font-size: 13px; }
.tv9-tray-h { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.tv9-tray-h small { color: var(--muted); font-size: 11px; }
.tv9-tray-list { list-style: none; margin: 0; padding: 0; }
.tv9-tray-list > .empty { padding: 14px 8px; color: var(--muted); }
.tv9-tray-item .row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 10px; }
.tv9-tray-item .row:hover { background: #24242a; }
.tv9-tray-item .chk { flex: none; width: 14px; height: 14px; padding: 0; border-radius: 3px; border: 1px solid rgba(255,255,255,0.25); background: #1c1c20; cursor: pointer; position: relative; }
.tv9-tray-item .chk.on { background: #3a3a42; }
.tv9-tray-item .chk.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #d6d6db; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.tv9-tray-item .lab { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8e8ed; }
.tv9-tray-item .lab .n { display: inline-block; margin-left: 6px; min-width: 16px; padding: 0 5px; border-radius: 999px; background: #f23645; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.tv9-tray-item .caret { flex: none; width: 22px; height: 22px; border: 0; border-radius: 999px; background: transparent; color: #9a9aa3; cursor: pointer; }
.tv9-tray-item .caret:hover { background: #2a2a30; color: #fff; }
.tv9-tray-item .pill { flex: none; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: #c8c8cf; font-size: 11px; cursor: pointer; }
.tv9-tray-item .pill:hover { background: #2a2a30; color: #fff; }
.tv9-tray-item .pill.del:hover { color: #f23645; }
.tv9-tray-log { list-style: none; margin: 0 0 6px 26px; padding: 0; border-left: 1px solid var(--border); }
.tv9-tray-log li { display: grid; grid-template-columns: 78px 34px minmax(0, 1fr); gap: 6px; padding: 3px 8px; font-size: 12px; color: #9a9aa3; }
.tv9-tray-log li.unread { color: #e8e8ed; }
.tv9-tray-log li.empty { display: block; color: var(--muted); }
.tv9-tray-log .k.up { color: var(--up); }
.tv9-tray-log .k.down { color: var(--down); }
.tv9-tray-log .k.tp { color: #ffb000; }
.tv9-tray-log .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 즐겨찾기 별: 작고 로고에 겹치던 것 → 제 칸(왼쪽 18px), 별 14px (10/14 사용자) */
.wl-row { padding-left: 22px !important; }
.wl-row .wl-star { left: 3px !important; width: 18px !important; height: 18px !important; }
.wl-row .wl-star svg { width: 14px !important; height: 14px !important; stroke-width: 1.6 !important; }
.wl-row .wl-star:not(.on) { opacity: 0; color: #8a8a93; }
.wl-row:hover .wl-star:not(.on) { opacity: .9; }
/* 지표 이름 옆: 눈 → 톱니 → X, 눈·톱니 같은 크기로 보이게 (10/14 사용자) */
.legend .ind .acts { display: inline-flex; align-items: center; gap: 2px; }
.legend .ind .acts button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; }
.legend .ind .acts [data-act="hide"] svg { width: 15px; height: 15px; }
.legend .ind .acts [data-act="settings"] svg { width: 12px; height: 12px; }
.legend .ind .acts [data-act="remove"] svg { width: 11px; height: 11px; }
.legend .ind .acts [data-act="hide"].is-off { color: #e8e8ed; }
/* NOW FOCUS "지금은 기다리기" = 흰색 (10/14 사용자, 롱·숏 색은 그대로) */
.tv9-now .focus-do.is-wait, .tv9-now .focus-do.is-wait .focus-guide-act { color: #c8c8cf !important; }
/* 종목 찾기 (간단) */
.sc-simple { display: flex; flex-direction: column; gap: 10px; }
.sc-top { display: flex; gap: 8px; align-items: center; }
.sc-top input { width: 240px; border-radius: 999px; padding: 6px 14px; }
.sc-seg, .sc-presets { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: #1b1b1f; border: 1px solid rgba(255,255,255,0.06); width: fit-content; }
.sc-seg button, .sc-presets button { height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #9a9aa3; font-size: 13px; cursor: pointer; }
.sc-seg button:hover, .sc-presets button:hover { color: #fff; }
.sc-seg button.on, .sc-presets button.on { background: #2a2a30; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.35); }
.sc-simple .hint-text { margin: 0; }
/* 차트 개수 칸 모양 아이콘 */
.ps-ico { width: 16px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; margin-right: 8px; vertical-align: -1px; }
.ps-ico-wrap { display: inline-flex; font-style: normal; }
.ps-ico-wrap .ps-ico { margin-right: 0; }
.pill-sel-list button { display: flex; align-items: center; }
/* 지표 창 (10/14): 칸 + 카드 */
.ind-pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; max-height: calc(100vh - 220px); overflow-y: auto; padding: 4px 2px; }
.ind-pick .ip-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ip-col h4 { margin: 0 0 8px; font-size: 13px; color: #e8e8ed; display: flex; align-items: baseline; gap: 8px; }
.ip-col h4 small { color: var(--muted); font-weight: 400; font-size: 11px; }
.ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ip-card { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; cursor: pointer; background: #17171a; transition: background .12s, border-color .12s; }
.ip-card:hover { background: #1f1f24; border-color: #3a3a40; }
.ip-card.on { border-color: rgba(255,176,0,0.55); background: #201d16; }
.ip-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ip-top b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-chk { flex: none; width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.25); position: relative; }
.ip-card.on .ip-chk { background: #ffb000; border-color: #ffb000; }
.ip-card.on .ip-chk::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 3px; height: 7px; border: solid #121214; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.ip-lock { margin-left: auto; font-style: normal; font-size: 10px; color: #ffb000; }
.ip-styles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ip-styles button { height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: #9a9aa3; font-size: 11px; cursor: pointer; }
.ip-styles button:hover { color: #fff; border-color: #4a4a52; }
.ip-styles button.on { background: #ffb000; border-color: #ffb000; color: #121214; font-weight: 600; }
.ip-small .ip-top b { font-weight: 500; }
@media (max-width: 800px) { .ind-pick { grid-template-columns: 1fr; } }
.ip-grid { align-items: start; }
/* 가상 자동매매 (modules/whatif) */
.wi { padding: 14px 18px 30px; max-width: 1100px; display: flex; flex-direction: column; gap: 12px; }
.wi h2 { margin: 0; font-size: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wi h2 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.wi-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wi-form label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #c8c8cf; padding: 4px 6px 4px 12px; border-radius: 999px; background: #1b1b1f; border: 1px solid var(--border); }
.wi-form input { width: 80px; height: 26px; border-radius: 999px; border: 1px solid var(--border); background: #121214; color: var(--text); padding: 0 10px; font: inherit; }
.wi-form small { color: var(--muted); }
.wi-btn { height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255,255,255,0.36), rgba(255,255,255,0.08)) border-box; color: #fff; cursor: pointer; }
.wi-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.wi-big > div { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wi-big span { font-size: 12px; color: var(--muted); }
.wi-big b { font-size: 20px; }
.wi-big em { font-style: normal; font-size: 12px; color: #9a9aa3; }
.wi-big .warn { border-color: rgba(242,54,69,0.4); }
.wi-curve { width: 100%; height: 120px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.wi-curve polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.wi-curve polyline.up { stroke: var(--up); }
.wi-curve polyline.down { stroke: var(--down); }
.wi-curve .base { stroke: rgba(255,255,255,0.15); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.wi .up { color: var(--up); }
.wi .down { color: var(--down); }
.wi-tbl { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; }
.wi-tbl table { width: 100%; }
.wi-tbl th { position: sticky; top: 0; background: var(--panel); }
/* 차트 칸 경계 끌기 (10/14) */
.grid { position: relative; }
.grid-split { position: absolute; z-index: 20; }
.grid-split.is-col { top: 0; bottom: 0; width: 6px; cursor: col-resize; }
.grid-split.is-row { left: 0; right: 0; height: 6px; cursor: row-resize; }
.grid-split::after { content: ""; position: absolute; background: transparent; transition: background .12s; }
.grid-split.is-col::after { left: 2px; top: 0; bottom: 0; width: 2px; }
.grid-split.is-row::after { top: 2px; left: 0; right: 0; height: 2px; }
.grid-split:hover::after, .grid-split.drag::after { background: #ffb000; }
.center.page-mode .grid-split { display: none; }
/* 고른 차트 칸 표시: 흰 테두리 → 옅은 호박색 (10/14 사용자) */
.pane.active::after { border-color: rgba(255, 176, 0, 0.35) !important; }
.grid-split.is-col { z-index: 21; }
/* 지표 창 3칸 탭 + 즐겨찾기 별 */
.ip-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ip-head .search-in { flex: 1; margin: 0 !important; }
.ip-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #1b1b1f; border: 1px solid rgba(255,255,255,0.06); flex: none; }
.ip-tabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #9a9aa3; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ip-tabs button:hover { color: #fff; }
.ip-tabs button.on { background: #2a2a30; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.35); }
.ip-star { margin-left: auto; flex: none; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #5a5a62; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ip-star svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ip-star:hover { color: #e8e8ed; }
.ip-star.on { color: #ffb000; }
.ip-star.on svg { fill: #ffb000; }
.ip-lock + .ip-star { margin-left: 6px; }
.ip-empty { grid-column: 1 / -1; padding: 40px 10px; text-align: center; color: var(--muted); font-size: 13px; }

/* 10/14 사용자: 알림·저장은 둘째 줄 맨 오른쪽 */

#chartTools #alertBtn { margin-left: auto; }
/* 10/14 사용자: 관심종목 "종목 넣기" 칸 뺌 */
#wlAdd, #wlAdd + * { }
.side div:has(> #wlAdd) { display: none !important; }
/* 관심종목 칸 쌓기 (최근 본 · 즐겨찾기 · 인기 · 상승 · 하락) */
.wl-sec { border-top: 1px solid var(--border); }
.wl-sec-h { margin: 0; padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: #9a9aa3; cursor: pointer; display: flex; align-items: baseline; gap: 6px; }
.wl-sec-h small { color: #5a5a62; font-weight: 400; }
.wl-sec-h:hover { color: #e8e8ed; }
.wl-sec.is-top .wl-sec-h { color: #e8e8ed; }
.wl-sec-empty { padding: 4px 14px 8px; font-size: 12px; color: var(--muted); }
/* 알림 탭: 신호 알림 칸 */
.sig-box { margin: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.sig-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sig-h b { font-size: 13px; }
.sig-h small { color: var(--muted); flex: 1 1 100%; order: 3; }
.sig-h .btn { margin-left: auto; }
.sig-last { color: #c8c8cf; line-height: 1.5; }
.sig-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid var(--border); }
.sig-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-row small { color: var(--muted); }
/* 오른쪽 칸 북마크 탭 (Cloud 목록을 좁게) */
.cl-side .cl-wrap { padding: 8px; gap: 8px; }
.cl-side .cl-box { padding: 10px; border-radius: 12px; }
.cl-side .cl-h { flex-direction: column; gap: 2px; }
.cl-side .cl-h h3 { font-size: 13px; }
.cl-side .cl-head { display: none; }
.cl-side .cl-row, .cl-side .cl-row.is-kit, .cl-side .cl-row.is-rank { grid-template-columns: minmax(0, 1fr) auto auto 18px; gap: 6px; font-size: 12px; padding: 6px 4px; }
.cl-side .cl-row > .cl-n, .cl-side .cl-row > .muted { display: none; }
.cl-side .cl-row > b { grid-column: 1; }
.cl-side .cl-row > .cl-pack { grid-column: 1 / -1; grid-row: 2; font-size: 11px; color: var(--muted); }
/* 시장 변화 우클릭 메뉴 색 */
.pulse-ctx .tv9-c.up, .pulse-ctx .plus { color: var(--up) !important; }
.pulse-ctx .tv9-c.down, .pulse-ctx .minus { color: var(--down) !important; }
.pulse-ctx .tv9-c.mid { color: #9a9aa3 !important; }
/* 지표 창: 왼쪽 세로 메뉴 + 오른쪽 목록 (시그널·기능·하단·기타) */
.ip-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.ip-nav { display: flex; flex-direction: column; gap: 4px; padding-right: 12px; border-right: 1px solid var(--border); }
.ip-nav button { text-align: left; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #9a9aa3; font-size: 13px; cursor: pointer; }
.ip-nav button:hover { background: #1f1f24; color: #fff; }
.ip-nav button.on { background: #2a2a30; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.ip-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ip-main .search-in { margin: 0 !important; }
.ip-main .ind-pick { display: flex; flex-direction: column; gap: 18px; }
.ip-main .ip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ip-main .ip-col h4 { position: sticky; top: 0; background: var(--panel); padding: 4px 0; z-index: 1; }
@media (max-width: 900px) { .ip-wrap { grid-template-columns: 1fr; } .ip-nav { flex-direction: row; border-right: 0; } .ip-main .ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 키트 계산 최근 목록 (10/14): 화살표 없앰, 한 줄, 펼친 칸 둥글게, X */
.tv9-kit .elon-recent .elon-caret { display: none !important; }
.tv9-kit .elon-recent > .elon-rank-row { grid-template-columns: 2em minmax(0, 1fr) minmax(8em, 1.4fr) auto 5em 22px; align-items: center; border-radius: 10px; }
.tv9-kit .elon-recent > .elon-rank-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv9-kit .elon-recent-more { border: 1px solid var(--border) !important; border-radius: 12px; overflow: hidden; margin: 2px 0 10px; padding: 0 !important; }
.tv9-kit .elon-recent-more .elon-table th:first-child, .tv9-kit .elon-recent-more .elon-table td:first-child { padding-left: 12px; }
.tv9-kit-x { width: 22px; height: 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.tv9-kit-x:hover { background: #3a3a42; color: #fff; }
/* 지표 카드: 별(즐겨찾기) 왼쪽, 체크박스 오른쪽 (10/14 사용자) */
.ip-top .ip-star { order: -1; margin-left: -4px !important; }
.ip-top .ip-chk { order: 3; margin-left: auto; }
.ip-top .ip-lock { order: 2; margin-left: auto; }
.ip-top .ip-lock ~ .ip-chk { margin-left: 6px; }
.ip-top:has(.ip-lock) .ip-chk { margin-left: 8px; }
/* 10/14 사용자: 신호 알림 칸 설명·시험 울림·마지막 신호 줄 뺌 */
.sig-box .sig-h small, .sig-box [data-sig-test], .sig-box .sig-last { display: none !important; }
.sig-onoff { color: var(--muted); }
.sig-onoff.on { color: var(--up); border-color: rgba(34,171,148,0.5); }
.al-x { width: 24px; height: 24px; flex: none; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.al-x:hover { background: #3a3a42; color: #f23645; }
.wi-host .wi { padding: 4px 2px 10px; max-height: calc(100vh - 200px); overflow-y: auto; }
/* 10/14 사용자: 오늘의 탐색(구독서버 NOW 규칙) 칸 숨김 → 종목 찾기 위젯으로 대체 */
#elon-pulse-explore { display: none !important; }
/* 봉 단위 칸 = 하이킨 아시 같은 알약 테두리 (10/14 사용자) */
#chartTools .tf-group { background: transparent !important; border: 1px solid var(--border) !important; border-radius: 999px; height: 32px; padding: 0; }
#chartTools .tf-group .tf-cur { height: 30px; font-weight: 500; color: #d6d6db; }
#chartTools .tf-group:hover { background: var(--panel-2) !important; }
/* 10/14 사용자: Cloud·북마크 칸 제목 옆 설명 뺌 */
.cl-h > .muted, .cl-h small { display: none !important; }
/* 10/14 사용자: 넣은 기능의 설명 문구는 다 뺌 (쓸 줄 앎) */
.ip-col h4 small, .wi > .hint-text, .al-simple .hint-text, .tv9-tray-h small, .sc-simple #scHint, .sig-box .hint-text { display: none !important; }
/* 10/14 사용자: 종목 찾기는 위젯으로 → 위쪽 탭 숨김 */
#bottomTabs [data-tab="screener"] { display: none !important; }
/* 알림 켜짐/멈춤 = 체크박스 (10/14 사용자) */
.al-chk { flex: none; width: 16px; height: 16px; padding: 0; border-radius: 4px; border: 1px solid rgba(255,255,255,0.25); background: #1c1c20; cursor: pointer; position: relative; }
.al-chk:hover { border-color: rgba(255,255,255,0.45); }
.al-chk.on { background: #3a3a42; border-color: rgba(255,255,255,0.35); }
.al-chk.on::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #e8e8ed; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
/* 켜짐·꺼짐 색 구분 (10/14 사용자): 켜짐 = 호박색, 꺼짐 = 회색 */
.al-chk.on, .tv9-tray-item .chk.on { background: #ffb000 !important; border-color: #ffb000 !important; }
.al-chk.on::after, .tv9-tray-item .chk.on::after { border-color: #121214 !important; }
.tv9-tray-btn { color: #6b6b73; }
.tv9-tray-btn.has { color: #ffb000 !important; }
.tv9-tray-btn.has svg { stroke: #ffb000; }
.tv9-tray-item:has(.chk:not(.on)) .lab { color: #6b6b73; }
.al-card:has(.al-chk:not(.on)), .sig-row:has(.al-chk:not(.on)) { opacity: .55; }
/* 10/14 사용자: 알림 탭 "새 알림" 버튼 뺌 */
#alNew { display: none !important; }
/* 10/14 사용자: 별은 즐겨찾기 칸에서만 늘 보이고, 다른 칸(최근 본·인기·상승·하락)은 마우스 올릴 때만 */
.wl-row:not([data-kind="fav"]) .wl-star.on { opacity: 0; }
.wl-row:not([data-kind="fav"]):hover .wl-star { opacity: .9; }
/* 알림 칸: 이름을 눌러도 펼침 */
.tv9-tray-item .lab { cursor: pointer; }
.tv9-tray-item .row:hover .lab { color: #fff; }
.tv9-tray-item .row:hover .caret { color: #fff; }
/* 지표·위젯 미리보기 (10/14): 카드에 마우스를 올리면 옆에 뜨는 작은 창 */
.ip-preview { position: fixed; z-index: 3000; width: 420px; height: 250px; border-radius: 12px; overflow: hidden; pointer-events: none; background: #121214; border: 1px solid #3a3a40; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.ip-preview .c9-chart { position: absolute; inset: 0; }
.ip-preview canvas { width: 100%; height: 100%; }
/* 오른쪽 칸 "지표" 탭 (10/14, 구독서버 오른쪽 지표 패널) */
.isd { padding: 4px 0 12px; }
.isd-h { margin: 0; padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: #9a9aa3; border-top: 1px solid var(--border); }
.isd-h:first-child { border-top: 0; }
.isd-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; border-radius: 8px; margin: 0 4px; }
.isd-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isd-row:hover { background: #1f1f24; }
.isd-row.on { color: #ffb000; }
.isd-row.on .ip-chk { background: #ffb000; border-color: #ffb000; }
.isd-row.on .ip-chk::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 3px; height: 7px; border: solid #121214; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
/* 10/14 사용자: 위쪽 동그라미 상태 점 뺌 */
#status { display: none !important; }
/* 10/14 사용자: 북마크 탭 줄 왼쪽 노란 북마크 아이콘 */
.cl-side .cl-row > b { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cl-side .cl-row > b::before { content: ""; flex: none; width: 12px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1.5 1.5A1 1 0 0 1 2.5.5h7a1 1 0 0 1 1 1v12L6 10.6 1.5 13.5z' fill='%23ffb000'/%3E%3C/svg%3E") no-repeat center / contain; }
/* 10/14 사용자: 신호 알림 줄 왼쪽 채운 종 아이콘 (체크박스는 다른 알림처럼 주황) */
.sig-row .sig-bell { flex: none; width: 14px; height: 14px; fill: #ffb000; stroke: #ffb000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 10/14 사용자: 알림 탭 3칸 (신호 · 그리기툴 · 시장조건) */
.al-box .al-card { margin: 0 0 6px; }
.al-box .al-card:last-child { margin-bottom: 0; }
.al-empty { color: var(--muted); padding: 2px; }
.sig-box[data-fold] > .sig-h { cursor: pointer; user-select: none; }
.sig-box[data-fold] > .sig-h::after { content: ""; margin-left: auto; width: 7px; height: 7px; border: solid #9a9aa3; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.sig-box[data-fold].is-fold > .sig-h::after { transform: rotate(-45deg); }
.sig-box[data-fold].is-fold > :not(.sig-h) { display: none !important; }
/* 10/14 사용자: 북마크 줄 분봉 · % · × 칸 맞춤 (분봉 = 2칸, % = 3칸, × = 4칸 고정) */
.cl-side .cl-row, .cl-side .cl-row.is-kit, .cl-side .cl-row.is-rank { grid-template-columns: minmax(0, 1fr) 30px auto 18px; align-items: center; }
.cl-side .cl-row > .cl-tf { grid-column: 2; grid-row: 1; text-align: right; font-size: 12px; font-weight: 600; }
.cl-side .cl-row > .cl-pct { grid-row: 1; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-side .cl-row.is-kit { grid-template-columns: minmax(0, 1fr) 30px auto auto 18px; }
.cl-side .cl-row > :last-child { grid-column: -2; grid-row: 1; justify-self: center; width: 18px; height: 18px; display: grid; place-items: center; }
.cl-side .cl-row > b { grid-row: 1; }
.cl-side .cl-row > .cl-pct { grid-column: 3; }
.cl-side .cl-row > .cl-pct + .cl-pct { grid-column: 4; }
.cl-side .cl-row, .cl-side .cl-row.is-rank { grid-template-columns: minmax(0, 1fr) 30px 58px 18px !important; }
.cl-side .cl-row.is-kit { grid-template-columns: minmax(0, 1fr) 30px 58px 58px 18px !important; }
/* 10/14: 오른쪽 칸 탭 5개 (관심종목·알림·NOW·북마크·지표) 한 줄에 */
#sideTabs { overflow: hidden; }
#sideTabs button { padding: 0 9px !important; font-size: 12.5px !important; flex: 0 1 auto; white-space: nowrap; }
/* 10/14: 알림 탭 시장 조건(NOW 우클릭) · 최근 기록 × */
.al-kind.k-mkt { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.pw-log { font-size: 12px; margin-top: 3px; color: #c8c8cf; }
.pw-log.is-new { color: #fff; }
.al-log .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.al-log-h { display: flex; justify-content: flex-end; padding: 4px 10px 0; }
/* 10/15 우클릭 맨 위 키트 계산 */
.tv9-ctx .tv9-ctx-kit { font-weight: 700; color: #fbbf24; }
/* 10/15 시장 조건 알림: 숏 = 빨강, 롱 = 초록 */
.toast .tv9-c.down { color: var(--down); font-weight: 600; }
.toast .tv9-c.up { color: var(--up); font-weight: 600; }
.pw-log .up { color: var(--up); }
.pw-log .down { color: var(--down); }

/* 10/15 오른쪽 칸 "멀티" 탭 (Multi-X 다수결 기록) */
.ml-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; }
.ml-head b { font-size: 12.5px; }
.ml-head small { color: var(--muted); }
.ml-pin { margin-left: auto; position: relative; display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: #8a8a93; cursor: pointer; user-select: none; } /* NO-RE·NO-TP 체크박스와 같은 모양 */
.ml-pin input { display: none; }
.ml-pin i { position: relative; box-sizing: border-box; width: 13px; height: 13px; border-radius: 3px; background: #1c1c20; border: 1px solid rgba(255,255,255,0.22); transition: background .15s, border-color .15s; }
.ml-pin i::after { content: ""; position: absolute; top: 1px; left: 3.5px; width: 3px; height: 6px; border: solid transparent; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.ml-pin:hover i { border-color: rgba(255,255,255,0.4); }
.ml-pin.on { color: #c8c8cf; }
.ml-pin.on i { background: #3a3a42; border-color: rgba(255,255,255,0.3); }
.ml-pin.on i::after { border-color: #d6d6db; }
.ml-head .btn { margin-left: auto; }
.ml-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 30px 28px 30px auto; gap: 6px; align-items: center; padding: 6px 10px; border-bottom: 1px solid #1a1a1a; font-size: 12px; cursor: pointer; }
.ml-row:hover { background: var(--hover); }
.ml-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-row.is-cur { box-shadow: inset 0 0 0 1px #5d5d5d; border-radius: 6px; }
.ml-row.is-fresh .ml-t { color: #f7a600; }
.ml-t, .ml-tf, .ml-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.ml-side { font-weight: 700; }
.ml-side.up { color: var(--up); }
.ml-side.down { color: var(--down); }
.ml-px { text-align: right; font-variant-numeric: tabular-nums; }

/* 멀티 탭 = 지금 차트의 Multi-X 신호 목록 */
.ml-row { grid-template-columns: 96px 44px 40px 1fr !important; }
.ml-side.lv { color: #f7a600; }
/* 10/15 사용자: 오른쪽 칸 알림 탭 뺌 (화면 알림·알림 저장은 그대로) */
#sideTabs [data-tab="alerts"] { display: none !important; }

/* 10/15 관심종목 신호 숫자 (로고 옆) */
.wl-sig { --k: calc(var(--g, 1) / 9); --c: 255, 59, 59; position: relative; z-index: 2; display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; font-style: normal; background: rgb(var(--c)); transform: translateY(-6px); box-shadow: 0 0 3px 1px rgba(var(--c), calc(0.2 + var(--k) * 0.8)), 0 0 calc(4px + var(--k) * 10px) calc(var(--k) * 4px) rgba(var(--c), calc(var(--k) * 0.85)), 0 0 calc(var(--k) * 26px) calc(var(--k) * 6px) rgba(var(--c), calc(var(--k) * 0.5)); } /* --g = 신호 낸 팩 수 1~9, 클수록 밝게 */
.wl-sig.up { --c: 38, 214, 140; }
.wl-sig.mix { --c: 247, 166, 0; } /* 롱만 초록 · 숏만 빨강 · 섞이면 주황 */
/* 10/15 사용자: 둘째 줄 차트 도구 = 위쪽 페이지 탭 모양 (묶음 하나 + 테두리 없는 버튼) */
.tv9-toolgroup { display: flex; align-items: center; gap: 2px; padding: 3px; flex: none; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(#1b1b1f, #1b1b1f) padding-box, linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)) border-box; }
.tv9-toolgroup.is-right { margin-left: auto; }
.tv9-toolgroup:empty { display: none; }
#chartTools .tv9-toolgroup #alertBtn { margin-left: 0; }
.tv9-toolgroup .tb { height: 26px; padding: 0 12px; border: 1px solid transparent; background: transparent; box-shadow: none; color: var(--muted); font-size: 13px; }
.tv9-toolgroup .tb:hover { background: var(--panel-2); color: var(--text); }
.tv9-toolgroup .tf-group { border: 0; background: transparent; padding: 0; }
.tv9-toolgroup .tf-group .tf-cur { height: 26px; }
.tv9-toolgroup .tb.on,
.tv9-toolgroup .tb.active { border: 1px solid transparent; background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)) border-box; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); color: var(--text); }
.wl-rk { flex: none; min-width: 16px; margin-right: -2px; font-size: 11px; font-weight: 600; color: #6b6b73; text-align: right; font-variant-numeric: tabular-nums; } /* 10/15 순위 번호 */
/* 10/15 거래소 연결 창 (modules/exch): 위쪽 막대 아래 오른쪽에 뜸 */
.tv9-exch-panel { position: fixed !important; top: 52px !important; right: 12px !important; z-index: 1200 !important; }
.tv9-exch-btn.is-live { color: var(--up) !important; }
.wi-curve-box { position: relative; } /* 10/15 사용자: 그래프에 며칠간 거래했는지 */
.wi-curve-box .wi-days { position: absolute; top: 8px; left: 12px; font-size: 12px; font-weight: 600; color: #b8b8c0; pointer-events: none; }
/* 10/15 매매 박스 · 트레일링 스탑 (modules/exch/live.js): 거래소를 연결했을 때만 */
/* 10/15 사용자 "기본으로 켜놔봐 매매박스": 매매 박스는 늘 보임 (트레일링 스탑만 거래소 연결 때) */
body:not(.is-exch-on) .tv9-trail { display: none !important; }
.tv9-trail { gap: 5px !important; cursor: pointer; user-select: none; }
.tv9-trail > input[type="checkbox"] { display: none; }
.tv9-trail > i { position: relative; box-sizing: border-box; width: 13px; height: 13px; border-radius: 3px; background: #1c1c20; border: 1px solid rgba(255,255,255,0.22); }
.tv9-trail > i::after { content: ""; position: absolute; top: 1px; left: 3.5px; width: 3px; height: 6px; border: solid transparent; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.tv9-trail.on > i { background: #3a3a42; border-color: rgba(255,255,255,0.3); }
.tv9-trail.on > i::after { border-color: #d6d6db; }
.tv9-trail [data-trail-pct] { width: 46px; height: 20px; padding: 0 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: #202024; color: var(--text); font-size: 12px; }
.tv9-ctx-bk { display: block; padding: 0; background: none; border: 0; box-shadow: none; position: static; }
.tv9-live-dock { --bg: transparent; --fg: #e8e8ed; --dim: transparent; --mute: #9a968f; border: 0 !important; padding: 0 !important; }
/* 10/15 위젯 칸 자리 (side.css 가 뜨기 전에도 같은 폭) */
#c9-side-r { display: none; }
@media (min-width: 1700px) { #c9-side-r { display: flex; width: 260px; flex: none; padding: 8px; min-height: 0; border-right: 1px solid var(--border); } }
/* 10/15 사용자: 위쪽 Cloud 탭은 "복구" 전까지 숨김 (북마크 탭·저장 버튼은 그대로) */
#bottomTabs [data-mtab="cloud"] { display: none !important; }
/* 10/15 간단 매매 박스 (modules/exch/live.js) — 3칸 × 2줄 + 배율 막대 */
.tv9-tb { padding: 8px !important; border-radius: 12px; border: 1px solid #2f2f35 !important; background: rgba(22, 22, 26, 0.92) !important; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); width: 220px !important; min-width: 0 !important; font-size: 12px; }
.tv9-tb-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.tv9-tb button { height: 26px; padding: 0 6px; border-radius: 8px; border: 1px solid #34343a; background: transparent; color: #b8b8c0; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tv9-tb .tv9-tb-tog:hover { color: #fff; background: #26262b; }
.tv9-tb .tv9-tb-tog.is-on { color: #fff; background: #2b2b31; border-color: #45454c; }
.tv9-tb .tv9-tb-buy, .tv9-tb .tv9-tb-sell { height: 32px; font-size: 13px; font-weight: 700; }
.tv9-tb .tv9-tb-buy { color: var(--up); border-color: color-mix(in srgb, var(--up) 55%, transparent); background: color-mix(in srgb, var(--up) 12%, transparent); }
.tv9-tb .tv9-tb-sell { color: var(--down); border-color: color-mix(in srgb, var(--down) 55%, transparent); background: color-mix(in srgb, var(--down) 12%, transparent); }
.tv9-tb .tv9-tb-buy:hover { background: color-mix(in srgb, var(--up) 22%, transparent); }
.tv9-tb .tv9-tb-sell:hover { background: color-mix(in srgb, var(--down) 22%, transparent); }
.tv9-tb-qty { display: flex; }
.tv9-tb-qty input, .tv9-tb-price { width: 100%; min-width: 0; height: 32px; box-sizing: border-box; padding: 0 6px; border-radius: 8px; border: 1px solid #34343a; background: #1c1c20; color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.tv9-tb-price { height: 26px; margin-top: 5px; font-size: 12px; }
.tv9-tb-lev { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #8a8a93; font-size: 11px; cursor: default; }
.tv9-tb-lev input { flex: 1; accent-color: #d6d6db; height: 14px; }
.tv9-tb-lev b { min-width: 36px; text-align: right; color: #fff; font-size: 12px; }
.tv9-tb-msg { display: block; margin-top: 4px; color: #8a8a93; font-size: 11px; min-height: 0; }
.tv9-tb-msg:empty { display: none; }
/* 구독서버 박스 규칙(.term-live-dock input … !important)보다 앞서게 */
.term-winbox .term-live-dock.tv9-tb { width: 220px !important; max-width: calc(100% - 8px) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-qty input,
.term-winbox .term-live-dock.tv9-tb input.tv9-tb-price { height: 32px !important; padding: 0 6px !important; border: 1px solid #34343a !important; border-radius: 8px !important; background: #1c1c20 !important; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; text-align: center !important; width: 100% !important; }
.term-winbox .term-live-dock.tv9-tb input.tv9-tb-price { height: 26px !important; font-size: 12px !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev input[type="range"] { -webkit-appearance: auto !important; appearance: auto !important; background: transparent !important; border: 0 !important; height: 16px !important; padding: 0 !important; accent-color: #d6d6db; }
/* 10/15 지표 창 왼쪽 줄: 위 지표 · 아래 마켓 (반씩) */
.ip-nav { display: grid !important; grid-template-rows: 1fr 1fr; gap: 0 !important; }
.ip-nav-g { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.ip-nav-g + .ip-nav-g { border-top: 1px solid var(--border); padding-top: 10px; }
.ip-nav-g h5 { margin: 2px 12px 6px; font-size: 11px; font-weight: 600; color: #6b6b73; letter-spacing: .02em; }
.ip-mk-card { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ip-mk-card .ip-top { display: flex; align-items: center; gap: 8px; }
.ip-mk-card .ip-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-mk-price { font-style: normal; font-size: 12px; color: #c8c8cf; white-space: nowrap; }
.ip-mk-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #8a8a93; }
.ip-mk-sub b { font-size: 12px; }
.ip-mk-sub b.up { color: var(--up); } .ip-mk-sub b.down { color: var(--down); }
@media (max-width: 900px) { .ip-nav { display: flex !important; } .ip-nav-g { flex-direction: row; } .ip-nav-g h5 { display: none; } .ip-nav-g + .ip-nav-g { border-top: 0; padding-top: 0; } }
/* 10/15 사용자 "매매 박스 고정 + 테두리 다 빼": 차트 칸 왼쪽 아래 고정, 박스·버튼·입력 테두리 없음 */
.term-winbox .term-live-dock.tv9-tb { left: var(--tb-l, 8px) !important; right: var(--tb-r, auto) !important; top: var(--tb-t, auto) !important; bottom: var(--tb-b, 28px) !important; cursor: default !important; zoom: 1 !important; border: 0 !important; box-shadow: none !important; }
.term-winbox .term-live-dock.tv9-tb .ios-dock-grip { display: none !important; }
.term-winbox .term-live-dock.tv9-tb button { border: 0 !important; background: #222227; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-tog.is-on { background: #34343a; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-buy { background: color-mix(in srgb, var(--up) 18%, transparent) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-sell { background: color-mix(in srgb, var(--down) 18%, transparent) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-qty input,
.term-winbox .term-live-dock.tv9-tb input.tv9-tb-price { border: 0 !important; background: #1c1c20 !important; }
/* 10/15 사용자 "있는 듯 없는 듯, 크기도 조금 큼": 작게 · 바탕 거의 투명 · 평소 흐리고 마우스 올리면 또렷 */
.term-winbox .term-live-dock.tv9-tb { width: 168px !important; padding: 4px !important; background: transparent !important; backdrop-filter: none !important; opacity: .45; transition: opacity .15s; }
.term-winbox .term-live-dock.tv9-tb:hover, .term-winbox .term-live-dock.tv9-tb:focus-within { opacity: 1; background: rgba(18, 18, 20, 0.6) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-grid { gap: 3px; }
.term-winbox .term-live-dock.tv9-tb button { height: 20px; padding: 0 4px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: rgba(255, 255, 255, 0.05); color: #9a9aa3; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-tog.is-on { background: rgba(255, 255, 255, 0.12); color: #e8e8ed; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-buy, .term-winbox .term-live-dock.tv9-tb .tv9-tb-sell { height: 24px; font-size: 11.5px; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-buy { background: color-mix(in srgb, var(--up) 14%, transparent) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-sell { background: color-mix(in srgb, var(--down) 14%, transparent) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-qty input { height: 24px !important; border-radius: 6px !important; font-size: 11.5px !important; background: rgba(255, 255, 255, 0.05) !important; }
.term-winbox .term-live-dock.tv9-tb input.tv9-tb-price { height: 20px !important; font-size: 10.5px !important; margin-top: 3px; background: rgba(255, 255, 255, 0.05) !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev { margin-top: 4px; gap: 6px; font-size: 10px; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev input[type="range"] { height: 12px !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev b { min-width: 28px; font-size: 10.5px; }
/* 10/15 좁은 차트 칸(520px 이하): 제목 = 종목·봉·종가만, 통계 = 톱니(토글 접기) + 숫자 */
.pane { container-type: inline-size; container-name: pane; }
.c9-tgs { display: contents; }
.legend .c9-stat .c9-tg-more { display: none; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: #8a8a93; cursor: pointer; align-items: center; justify-content: center; }
.legend .c9-stat .c9-tg-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.legend .c9-stat .c9-tg-more:hover { color: #fff; }
@container pane (max-width: 520px) {
  .legend .lg-ex, .legend .ohlc .lg-ohl { display: none; }
  .legend .c9-stat .c9-tg-more { display: inline-flex; }
  .legend:not(.stat-open) .c9-tgs { display: none; }
  .legend.stat-open .c9-stat { flex-wrap: wrap; }
  .legend.stat-open .c9-tg-more { color: #fff; }
}
/* 10/15 사용자 "배율 버튼이 너무 밝아": 배율 막대 손잡이·줄을 어둡게 */
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev input[type="range"] { -webkit-appearance: none !important; appearance: none !important; height: 12px !important; background: transparent !important; cursor: pointer; }
.tv9-tb-lev input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.tv9-tb-lev input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border-radius: 50%; background: #6b6b73; border: 0; }
.tv9-tb-lev input[type="range"]:hover::-webkit-slider-thumb { background: #9a9aa3; }
.tv9-tb-lev b[data-tb-lev-v] { cursor: text; border-radius: 4px; padding: 0 3px; }
.tv9-tb-lev b[data-tb-lev-v]:hover { background: rgba(255, 255, 255, 0.08); }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev input.tv9-tb-lev-in { width: 38px !important; height: 18px !important; padding: 0 3px !important; border: 0 !important; border-radius: 4px !important; background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; font-size: 10.5px !important; text-align: right; -moz-appearance: textfield; }
.tv9-tb-lev-in::-webkit-inner-spin-button { -webkit-appearance: none; }
/* 10/15 사용자 "새로고침 때 전략 시험·모의 매매 탭이 떴다 사라짐": 모듈(kit·whatif)이 나중에 숨기던 것을 처음부터 숨김 */
#bottomTabs [data-tab="tester"], #bottomTabs [data-tab="paper"] { display: none !important; }
/* 10/15 사용자 "배율 입력이 두 겹": 입력 중에는 숫자 칸 바탕·여백을 없애고 입력칸 하나만 */
.tv9-tb-lev b[data-tb-lev-v]:has(input), .tv9-tb-lev b[data-tb-lev-v]:has(input):hover { background: transparent; padding: 0; }
/* 10/15 사용자 "누르면 박스가 살짝 움직임": 숫자 칸 크기를 고정해 입력칸으로 바뀌어도 막대·박스가 안 밀림 */
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev b[data-tb-lev-v] { flex: none; box-sizing: border-box; width: 36px; min-width: 36px; height: 18px; line-height: 18px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: flex-end; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev input.tv9-tb-lev-in { width: 100% !important; height: 18px !important; margin: 0 !important; box-sizing: border-box; }
.isd-h2 { margin: 10px 12px 4px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; font-weight: 600; color: #6b6b73; } /* 10/15 "기본 지표" 소제목 */
/* 10/15 가상 매매: 물어보는 창 · 박스 위 PAPER 표시 */
.tv9-paper-ask { padding: 4px 2px; font-size: 14px; line-height: 1.5; }
.tv9-paper-ask .tv9-paper-sub { margin-top: 6px; color: #8a8a93; font-size: 12px; }
.tv9-paper-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.tv9-paper-btns button { height: 32px; padding: 0 16px; border-radius: 999px; border: 0; background: #26262b; color: #c8c8cf; font-size: 13px; cursor: pointer; }
.tv9-paper-btns button.is-yes { background: #34343a; color: #fff; font-weight: 600; }
.tv9-paper-btns button:hover { background: #3a3a42; color: #fff; }
.term-winbox .term-live-dock.tv9-tb.is-paper::before { content: "PAPER"; display: block; margin: 0 0 3px 2px; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #f7a600; opacity: .8; }
/* 10/15 Exit(청산) 버튼: 배율 막대 왼쪽 */
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev .tv9-tb-exit { flex: none; height: 18px; padding: 0 7px; border-radius: 5px; font-size: 10px; font-weight: 700; color: #c8c8cf; background: rgba(255, 255, 255, 0.07); }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev .tv9-tb-exit:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
/* 10/15 진입 라벨 아래 "청산 Esc" 안내 */
.tv9-exit-hint { position: fixed; z-index: 1500; pointer-events: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 8px; border-radius: 6px; background: rgba(28, 28, 32, 0.92); color: #c8c8cf; font-size: 11px; font-weight: 500; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.tv9-exit-hint[hidden] { display: none; }
.tv9-exit-hint kbd { padding: 1px 6px; border-radius: 4px; background: #3a3a42; color: #fff; font: 600 10.5px/1.4 inherit; }
.tv9-ctx-grid.is-3 { grid-template-columns: repeat(3, auto) !important; justify-content: space-between; gap: 3px 10px; } /* 10/15 바탕·격자·현재가 한 줄 */
/* 10/15 사용자: 위쪽 NOW·마켓·만들기·자동매매 탭 숨김 (오른쪽 NOW 탭·지표 창 마켓·거래소 연결/매매 박스에서 관리). 코드는 그대로 */
#bottomTabs [data-mtab="now"], #bottomTabs [data-mtab="shop"], #bottomTabs [data-mtab="studio"], #bottomTabs [data-mtab="trade"] { display: none !important; }
/* 10/15 트레일 칩 (박스 Exit 옆), 둘째 줄 트레일링 스탑은 숨김 */
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev .tv9-tb-trail { flex: none; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 700; color: #8a8a93; background: rgba(255, 255, 255, 0.05); }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-lev .tv9-tb-trail.is-on { color: #f7a600; background: rgba(247, 166, 0, 0.14); }
.tv9-tb-trail b { font-weight: 700; }
.tv9-tb-trail .tv9-tb-lev-in { width: 30px !important; }
#chartTools .tv9-trail { display: none !important; }
/* 10/16 오른쪽 패널 = 구독서버 차트 창 패널 모양 */
.isd-top { display: flex; justify-content: center; margin: 4px 0 10px; }
.isd-all { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(rgba(255,255,255,0.30), rgba(255,255,255,0.07)) border-box; color: #e8e8ed; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.isd-all:hover { color: #fff; background: linear-gradient(#34343a, #34343a) padding-box, linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.1)) border-box; }
.isd-all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.isd-ph { margin: 6px 12px 0; font-size: 14px; font-weight: 600; color: #e8e8ed; }
.isd-ph3 { margin-top: 14px; }
.isd .isd-ph ~ .isd-ph:not(.isd-ph3) { margin-top: 18px; }
.isd-pn { margin: 2px 12px 6px; font-size: 13px; color: #8a8a93; line-height: 1.4; }
.isd .isd-row { justify-content: space-between; line-height: 1.35; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: #c9c9d1; border: 1px solid transparent; }
.isd .isd-row:hover { background: #1f1f24; }
.isd .isd-row.on { color: #fff; background: linear-gradient(#2a2a30, #2a2a30) padding-box, linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.07) 55%, rgba(255,255,255,0.14)) border-box; }
.isd .isd-x { flex: none; font-style: normal; font-size: 12px; color: #8a8a93; font-family: ui-monospace, monospace; }
.isd .isd-row.on .isd-x { color: #fff; }
.isd .ip-lock { flex: none; font-size: 12px; }
/* 10/16 가상 자동매매 계산 설명 ? (마우스 올리면) */
.wi-q { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 999px; border: 1px solid #3a3a40; color: #9a9aa3; font-size: 11px; font-weight: 700; cursor: help; vertical-align: middle; }
.wi-q:hover, .wi-q:focus { color: #fff; border-color: #6a6a73; outline: none; }
.wi-tip { display: none; position: absolute; left: 0; top: 24px; z-index: 50; width: min(440px, 80vw); padding: 12px 14px; border-radius: 12px; background: #1b1b1f; border: 1px solid #34343a; box-shadow: 0 12px 30px rgba(0,0,0,0.5); color: #c9c9d1; font-size: 12px; font-weight: 400; line-height: 1.55; text-align: left; white-space: normal; }
.wi-tip b { color: #fff; }
.wi-q:hover .wi-tip, .wi-q:focus .wi-tip { display: block; }
/* 10/16 봉 단위 오른쪽 불러온 봉 수 (누르면 500·1천·2천·5천·1만봉 고르기) */
.tf-bars-box { margin-left: 4px; }
.tf-bars-box[hidden] { display: none; }
.tf-group .tf-cur.tf-bars { height: 26px; min-width: 0; gap: 6px; padding: 0 10px 0 12px; background: #1b1b1f; border: 1px solid #26262c; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-group .tf-cur.tf-bars:hover { color: var(--text); background: #222228; }
/* 10/16 사용자: 종목 버튼이 검색창처럼 보이게 이름 왼쪽 돋보기 */
.symbol-btn .sym-search { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; margin-right: 2px; }
.symbol-btn:hover .sym-search { stroke: var(--text); }
/* 10/16 사용자 "차트뷰어 상단을 구독서버 차트 창처럼 깔끔·정갈·일체형": 도구 줄 + 차트를 한 창(테두리 하나)으로,
   알약 묶음·그라데이션 테두리·그림자 없이 평평한 글자 버튼, 고른 것만 옅은 사각 바탕, 묶음 사이는 얇은 세로선 */
.center { margin: 6px 6px 6px 0; border: 1px solid #24242a; border-radius: 10px; overflow: hidden; background: var(--chart-bg, #121214); }
.tv9-tools { gap: 2px; padding: 5px 8px; min-height: 0; border-bottom: 1px solid #1f1f24; background: var(--chart-bg, #121214); }
.tv9-toolgroup { gap: 1px; padding: 0; border: 0; border-radius: 0; background: none; }
.tv9-toolgroup + .tv9-toolgroup:not(.is-right) { margin-left: 6px; padding-left: 8px; border-left: 1px solid #26262c; }
.tv9-toolgroup .tb { height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; }
.tv9-toolgroup .tb:hover { background: #1f1f24; }
.tv9-toolgroup .tb.on,
.tv9-toolgroup .tb.active { background: #26262c; border-color: transparent; box-shadow: none; color: var(--text); }
#chartTools .tf-group { border: 0 !important; border-radius: 6px; height: 26px; }
#chartTools .tf-group .tf-cur { height: 26px; min-width: 0; padding: 0 8px 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--text); }
#chartTools .tf-group:hover { background: transparent !important; }
#chartTools .tf-group .tf-cur:hover { background: #1f1f24; }
.tf-bars-box { margin-left: 0; padding-right: 8px; margin-right: 6px; border-right: 1px solid #26262c; border-radius: 0 !important; }
.tf-group .tf-cur.tf-bars { height: 26px; padding: 0 8px; background: transparent; border: 0; border-radius: 6px; color: var(--muted); font-size: 12.5px; }
.tf-group .tf-cur.tf-bars:hover { background: #1f1f24; color: var(--text); }
.tf-list { border-radius: 8px; }
.tf-list button { border-radius: 6px; }
/* 차트 위 켜기·끄기 줄도 떠 있는 알약 대신 평평하게 */
.legend .c9-stat { margin: 2px 0 4px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; }
#chartTools .tf-bars-box { border-right: 1px solid #26262c !important; border-radius: 0 !important; padding-right: 8px; margin-right: 6px; }
/* 10/16 지표 패널 = 차트 창 안 오른쪽 칸 (가격축 위 구석 화살표로 열고 닫음), 바탕은 차트와 같게 */
.center { position: relative; grid-template-columns: minmax(0, 1fr) auto; }
.center > .tv9-tools { grid-column: 1 / -1; }
.center > #bottom { grid-column: 1 / -1; }
.ind-dock { grid-row: 2; grid-column: 2; display: none; width: 236px; min-height: 0; overflow-y: auto; border-left: 1px solid #1f1f24; background: var(--chart-bg, #121214); scrollbar-width: thin; }
.center.dock-open > .ind-dock { display: block; }
.center.page-mode > .ind-dock, .center.page-mode > .ind-dock-btn { display: none !important; }
.ind-dock .isd { padding: 8px 10px 14px; }
.ind-dock-btn { position: absolute; right: 6px; z-index: 6; width: 20px; height: 22px; display: grid; place-items: center; padding: 0; border: 1px solid #26262c; border-radius: 5px; background: var(--chart-bg, #121214); cursor: pointer; }
.ind-dock-btn svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.ind-dock-btn:hover { background: #1f1f24; }
.ind-dock-btn:hover svg { stroke: var(--text); }
/* 10/17 사용자 "펼치고 접는 버튼은 한 자리에 고정": 열려도 같은 자리(패널 오른쪽 위 구석) */
.center.dock-open > .ind-dock-btn { right: 6px; }
.center.dock-open > .ind-dock-btn svg { transform: rotate(180deg); }
/* 10/16 매매 박스 손잡이 (박스가 버튼으로 꽉 차 있어 잡을 곳이 없었음) */
/* 10/16 전체화면: 위쪽 막대·양옆 칸 숨기고 차트 창만 */
body.chart-full .topbar, body.chart-full aside.side, body.chart-full #c9-side-r { display: none !important; }
body.chart-full section.center { margin: 0; border-radius: 0; border: 0; }
/* 10/16 사용자: 코인 오토·Lab 같은 페이지 탭에서는 차트 도구 줄(봉 단위·지표·그리기 등) 숨김 */
.center.page-mode > .tv9-tools { display: none !important; }
/* 10/16 Desk 검색 결과 이름 왼쪽 즐겨찾기 별 */
#deskList .item .star { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 8px 0 0; vertical-align: -1px; }
#deskList .item .star.on { color: #f0b90b; }
/* 10/16 우클릭 "새 창으로 열기" — 떠 있는 차트 창 · 아래 줄로 내리기 */
.fc-win { position: fixed; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); overflow: hidden; min-width: 320px; min-height: 220px; }
.fc-win[hidden] { display: none; }
.fc-head { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 12px; cursor: move; user-select: none; border-bottom: 1px solid var(--border); flex: none; }
.fc-title { font-size: 13px; }
.fc-tfs { display: inline-flex; gap: 2px; margin-right: auto; }
.fc-tfs button { padding: 2px 9px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.fc-tfs button.on { background: var(--panel-2); color: var(--text); }
.fc-btn { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.fc-btn:hover { background: var(--panel-2); color: var(--text); }
.fc-body { position: relative; flex: 1; min-height: 0; }
.fc-pane { position: absolute; inset: 0; }
.fc-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; z-index: 6; background: linear-gradient(135deg, transparent 50%, var(--muted) 50%, var(--muted) 58%, transparent 58%, transparent 70%, var(--muted) 70%, var(--muted) 78%, transparent 78%); opacity: 0.6; }
.fc-dock { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2000; display: flex; gap: 6px; max-width: calc(100vw - 32px); overflow-x: auto; }
.fc-dock[hidden] { display: none; }
.fc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.fc-chip span { color: var(--muted); }
.fc-chip i { font-style: normal; color: var(--muted); padding: 0 4px; }
.fc-chip i:hover { color: var(--text); }
/* 10/16 거래소 연결 '연결 확인' 결과가 계좌 줄 격자(1fr auto)에 끼어 글자가 세로로 쌓이던 것 → 한 줄 전체 */
.term-acc-list li.term-check-host { display: block; grid-column: 1 / -1; white-space: normal; word-break: keep-all; }
.term-acc-list li.term-check-host p { margin: 6px 0 4px; line-height: 1.5; }
.term-acc-list li.term-check-host .term-check-list { margin: 0; padding-left: 16px; }
.term-acc-list { max-height: 28em; }
/* 10/16 거래소 연결 '수정' (지우지 않고 이름·키만 바꿈) */
.term-acc-edit { display: grid; gap: 6px; padding: 8px 0 4px; }
.term-acc-edit .term-input { width: 100%; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 12px; box-sizing: border-box; }
.term-acc-edit .term-tool { justify-self: end; }
.term-acc-edit-msg { margin: 0; font-size: 12px; color: var(--muted); }
.term-acc-edit-msg.is-fail { color: #f6465d; }
/* 10/16 '수정' 칸이 창 높이에 잘리던 것: 창 전체가 내려가며 보이게 */
.term-accounts-panel { max-height: calc(100vh - 70px); overflow-y: auto; }
.term-accounts-panel .term-acc-list { max-height: none; overflow: visible; }
/* 10/16 계좌 줄: 정보 | 연결 확인 · 수정 · × 를 한 줄에 (두 칸 격자라 버튼이 두 줄로 흩어지던 것) */
.term-accounts-panel .term-acc-list li:not(.term-check-host) { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; padding: 6px 0; }
.term-accounts-panel .term-acc-list li:not(.term-check-host) > .term-tool { min-height: 28px; height: 28px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; font-size: 12px; color: #c9c9d1; }
.term-accounts-panel .term-acc-list li:not(.term-check-host) > .term-tool:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.term-accounts-panel .term-acc-list .term-acc-row { min-width: 0; text-align: left; }
.term-accounts-panel .term-acc-list .term-acc-row > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-accounts-panel .term-acc-list .term-acc-row > span + span { color: #9a968f; font-size: 12px; }
.term-accounts-panel .term-acc-list .term-acc-del { width: 28px; height: 28px; border-radius: 999px; }
/* 10/16 시작할 때 "바로 이전 포지션부터 매매를 적용할까요?" (modules/trial/join.js) */
.tv9-join { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); }
.tv9-join-card { position: relative; width: min(420px, calc(100vw - 32px)); padding: 20px 20px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); }
.tv9-join-card b { display: block; font-size: 15px; padding-right: 24px; }
.tv9-join-card p { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tv9-join-card .up { color: var(--up, #26a69a); }
.tv9-join-card .down { color: var(--down, #ef5350); }
.tv9-join-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tv9-join-btns button { flex: 1; min-width: 140px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.tv9-join-btns button[data-j="1"] { background: var(--panel-2); font-weight: 600; }
.tv9-join-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
/* 10/17 매매 박스 자리 옮기기 < > (끌기 손잡이 대신) */
.tv9-tb-move { display: flex; justify-content: center; gap: 6px; margin: -2px 0 3px; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-mv { width: 22px; height: 14px !important; padding: 0 !important; display: grid; place-items: center; font-size: 13px !important; line-height: 1; border-radius: 999px !important; background: rgba(255, 255, 255, 0.04) !important; color: #6a6a72 !important; }
.term-winbox .term-live-dock.tv9-tb .tv9-tb-mv:hover { background: rgba(255, 255, 255, 0.12) !important; color: #e8e8ed !important; }

/* 10/17 거래소 연결 창 다듬기 (사용자 "글씨 크기·디테일 허접하지 않게") */
.term-accounts-panel .term-acc-list .term-acc-row { display: grid; gap: 3px; padding: 6px 4px !important; }
.term-acc-name { display: flex !important; align-items: center; gap: 7px; min-width: 0; font-size: 13px; }
.term-acc-name b { font-weight: 600; color: #e8e8ed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-acc-name em { font-style: normal; font-size: 11px; color: #8a8a93; flex: none; }
.term-acc-dot { width: 7px; height: 7px; border-radius: 50%; background: #55555d; flex: none; }
.term-acc-dot.is-on { background: #2ebd85; box-shadow: 0 0 0 3px rgba(46, 189, 133, 0.15); }
.term-acc-sub { display: flex !important; align-items: center; gap: 6px; font-size: 11px !important; color: #8a8a93 !important; font-variant-numeric: tabular-nums; }
.term-acc-chip { font-style: normal; font-family: Inter, system-ui, sans-serif; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #9a9aa3; }
.term-acc-chip.is-live { background: rgba(46, 189, 133, 0.12); color: #2ebd85; }
.term-acc-list li.term-check-host { margin: 2px 0 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.term-check-sum { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.term-check-sum b { font-size: 13px; font-weight: 700; }
.term-check-sum.is-ok b { color: #2ebd85; }
.term-check-sum.is-fail b { color: #f6465d; }
.term-check-sum span { color: #c9c9d1; }
.term-check-sum em { margin-left: auto; font-style: normal; font-size: 11px; color: #6a6a72; }
.term-acc-list li.term-check-host .term-check-list { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.35; }
.term-accounts-panel .term-acc-list .term-check-list li { display: grid; grid-template-columns: 16px auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #c9c9d1; }
.term-check-list li:first-child { border-top: 0; }
.term-check-list li i { font-style: normal; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; }
.term-check-list li.is-ok i { background: rgba(46, 189, 133, 0.15); color: #2ebd85; }
.term-check-list li.is-skip i { background: rgba(255, 255, 255, 0.06); color: #8a8a93; }
.term-check-list li.is-fail i { background: rgba(246, 70, 93, 0.15); color: #f6465d; }
.term-check-list li span { white-space: nowrap; }
.term-check-list li b { font-weight: 500; text-align: right; color: #e8e8ed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; }
.term-check-list li.is-skip b { color: #6a6a72; font-family: inherit; }
.term-check-list li.is-fail b, .term-check-list li.is-fail span { color: #f6465d; }
.term-check-note { margin: 8px 0 0 !important; font-size: 11px; color: #6a6a72; }
.term-acc-name .term-auto-dry { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; border: 0 !important; background: rgba(255, 176, 0, 0.12) !important; color: #ffb000 !important; flex: none; }
.term-check-list li span { color: #9a9aa3; }

/* 10/17 거래소 연결 창: 확인 결과 칸이 숨김인데 빈 막대로 보이던 것 */
.term-acc-list li.term-check-host[hidden] { display: none !important; }
/* 10/17 거래소 연결 창 아래: 봇 상태 (SKHYNIX+SAMSUNG · 라이브봇) */
.tv9-bots { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tv9-bots[hidden] { display: none; }
.tv9-bot { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; row-gap: 2px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #c9c9d1; font: inherit; font-size: 12px; text-align: left; }
button.tv9-bot { cursor: pointer; }
button.tv9-bot:hover { background: rgba(255, 255, 255, 0.07); }
.tv9-bot i { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: #55555d; }
.tv9-bot.is-on i { background: #2ebd85; box-shadow: 0 0 0 3px rgba(46, 189, 133, 0.15); }
.tv9-bot b { font-size: 12.5px; font-weight: 600; color: #e8e8ed; white-space: nowrap; }
.tv9-bot span { grid-column: 2; color: #9a9aa3; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv9-bot em { grid-column: 3; grid-row: 1 / 3; font-style: normal; color: #6a6a72; font-size: 15px; }
/* 10/17 우클릭 메뉴 시장 조건 알림: 켜져 있으면 색 (pulse 의 --accent 가 메뉴(body 아래)에선 비어 있어 꺼진 것처럼 보이던 것) */
.pulse-ctx .pulse-ctx-radar.is-on { color: #ffb000 !important; }
/* 10/17 사용자 "색 주변 네모 배경은 뭐냐": 레이더 칸의 왼쪽 줄·바탕 없앰 */
.pulse-ctx .pulse-ctx-radar { border-left: 0 !important; background: none !important; }
.pulse-ctx .pulse-ctx-bell.is-on { color: #ffb000 !important; }
.pulse-ctx .pulse-ctx-bell.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #ffb000; vertical-align: 1px; }

/* 10/17 거래소 연결: 연결 확인 → 정지·재생, 계좌 줄 누르면 확인 결과 펼침 */
.term-accounts-panel .term-acc-list li:not(.term-check-host) > .term-acc-pause { display: inline-flex; align-items: center; gap: 5px; }
.term-accounts-panel .term-acc-list li:not(.term-check-host) > .term-acc-pause.is-paused { color: #ffb000; border-color: rgba(255, 176, 0, 0.4); background: rgba(255, 176, 0, 0.08); }
.term-accounts-panel .term-acc-list .term-acc-row { cursor: pointer; }
/* 10/17 알림 칸 창 머리 오른쪽 스피커 (그 종류 소리만 끔) */
.tv9-tray-h { flex-direction: row !important; align-items: center; justify-content: space-between; }
.tv9-tray-ht { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tv9-tray-mute { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #9a9aa3; cursor: pointer; flex: none; }
.tv9-tray-mute:hover { background: rgba(255, 255, 255, 0.07); color: #e8e8ed; }
.tv9-tray-mute svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv9-tray-mute.is-muted { color: #f23645; }
/* 10/18 사용자 "간격 · 배치 · 순서 편하게": 오른쪽 줄 = [매매 단추 3개] | [알림·소리 · 사진·내려받기] | [언어·테마·설정] | [회원] — 묶음 사이 구분선 */
.topbar > .tr9-pill { order: 20; }
.topbar > .tv9-tray-btn { order: 30; }
.topbar > #logBtn { order: 31; }
.topbar > #snapBtn { order: 32; }
.topbar > #csvBtn { order: 33; }
.topbar > #langBtn { order: 40; }
.topbar > #themeBtn { order: 41; }
.topbar > #settingsBtn { order: 42; }
.topbar > .tv9-auth-slot { order: 50; }
.topbar > #status { order: 60; }
.topbar > .tr9-pill { margin: 0 1px; }
.topbar > .tr9-pill-manual { margin-right: 8px; }
.topbar > .tv9-tray-btn, .topbar > #langBtn { position: relative; }
.topbar > .tv9-tray-btn:not(.tv9-tray-btn ~ .tv9-tray-btn) { margin-left: 8px; }
.topbar > #langBtn { margin-left: 8px; }
.topbar > #langBtn::before, .topbar > .tv9-tray-btn:not(.tv9-tray-btn ~ .tv9-tray-btn)::before { content: ""; position: absolute; left: -5px; top: 22%; height: 56%; border-left: 1px solid #2a2a30; }
.topbar > .tv9-auth-slot { margin-left: 8px; padding-left: 10px; border-left: 1px solid #2a2a30; display: inline-flex; align-items: center; gap: 10px; }
/* 10/18 오른쪽 줄이 넘쳐 로그아웃이 잘리던 것: 매매 단추 글씨·여백 줄임 */
.topbar > .tr9-pill { font-size: 12px; padding: 4px 10px; gap: 5px; }
.topbar > .tv9-auth-slot { gap: 8px; white-space: nowrap; }
/* 화면이 좁으면 매매 단추는 손익만 (넣은 돈·%는 마우스 올리면) */
@media (max-width: 1800px) { .topbar .tr9-amt, .topbar .tr9-pill > em { display: none; } } /* 10/21 금액이 숨으면 "데모 전체" 글자만 남던 것도 숨김 */
/* 10/18 사용자 "간격이 좀 넓음, 특히 오른쪽": 아이콘·회원 칸 사이 좁힘 */
.topbar > .tb.icon { margin-left: 0; margin-right: 0; padding-left: 5px; padding-right: 5px; min-width: 0; }
.topbar > .tv9-auth-slot { gap: 6px; margin-left: 6px; padding-left: 8px; }
.topbar > .tv9-auth-slot > * { margin-left: 0 !important; margin-right: 0 !important; }
.topbar > .tv9-auth-slot button, .topbar > .tv9-auth-slot a { padding-left: 8px; padding-right: 8px; }
/* 10/18 휴대폰: 위 줄이 옆으로 숨어 자동매매·규칙매매·수동매매·로그인이 안 보이던 것 → 두 줄로 (종목·탭 / 매매 단추·아이콘·로그인), 캡처·CSV 는 휴대폰에서 뺌 */
@media (max-width: 900px) {
  .topbar { height: auto !important; min-height: 44px; flex-wrap: wrap; row-gap: 4px; padding-top: 4px !important; padding-bottom: 4px !important; overflow: visible; }
  .topbar::before { content: ""; order: 10; flex-basis: 100%; height: 0; }
  .topbar > #snapBtn, .topbar > #csvBtn, .topbar > .spacer { display: none !important; }
  .topbar > .tr9-pill { height: 26px; padding: 0 6px; font-size: 11px; margin: 0 !important; }
  .topbar { column-gap: 3px !important; }
  .topbar > .tr9-pill em { display: none; }
  .topbar > .tb.icon { padding-left: 2px; padding-right: 2px; width: 26px; min-width: 0; }
  .topbar > #themeBtn { display: none !important; }
  .topbar > #langBtn, .topbar > .tv9-tray-btn { margin-left: 0 !important; }
  .topbar > #langBtn::before, .topbar > .tv9-tray-btn::before { display: none; }
  .topbar > .tr9-pill-manual { margin-right: 2px; }
  .topbar > .tv9-auth-slot { margin-left: auto !important; padding-left: 4px !important; border-left: 0 !important; font-size: 11.5px; }
  .topbar > .tv9-auth-slot button, .topbar > .tv9-auth-slot a { padding-left: 4px !important; padding-right: 4px !important; }
}
/* 10/18 휴대폰: 오른쪽 칸(관심종목·멀티·현재·북마크·매매)이 숨어서 못 쓰던 것 → 차트 아래로 내려 세로로 이어 봄 (화면 전체가 위아래로 넘어감, 옆으로는 안 넘침) */
@media (max-width: 900px) {
  html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  .main { flex-direction: column; height: auto !important; }
  .main > .center { height: 64vh; min-height: 360px; margin: 4px !important; flex: none; }
  .main > .side { display: flex !important; width: auto; height: 80vh; margin: 0 4px 8px; border-left: 0; border: 1px solid #24242a; border-radius: 10px; overflow: hidden; }
}

/* 10/18 잠금 자물쇠 */
.ip-lock { display: inline-flex; align-items: center; }
.ip-lock svg { width: 12px; height: 12px; fill: none; stroke: #8a8a93; stroke-width: 2; stroke-linecap: round; }
.tv9-ctx-del.is-on { color: #ffb000 !important; }
.tv9-ctx-drow > button.tv9-ctx-del { flex: none; height: 32px; }
.tv9-ctx-drow > button.tv9-ctx-del:disabled { opacity: 0.35; }
/* 10/18 종 칸 아래 그리기 알림 (구분선) */
.tv9-tray-sub { margin: 8px 0 4px; padding: 8px 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tv9-tray-item .lab b { font-weight: 600; }
/* 10/18 멀티 탭 머리: Multi-X 글자 없이 종목 · 봉 · 개수만 흰색 */
.ml-head .ml-what { color: #fff !important; font-weight: 600; }
/* 10/18 멀티 탭 봇 만들기 (Trade 탭 작은 봇 만들기와 같은 모양) */
.ml-bot { flex: none; padding: 3px 10px; font-size: 11.5px; font-weight: 500; border: 1px solid #34343b; background: #1c1c21; color: var(--text); border-radius: 999px; cursor: pointer; }
.ml-bot:hover { border-color: #4a4a52; }
/* 10/19 우클릭: 랭킹 계산 전체 › */
.tv9-ctx .tv9-ctx-more span { margin-left: 4px; }
.tv9-ctx .tv9-ctx-more span { font-size: 15px; line-height: 1; opacity: .8; }

/* 10/20 매매 박스 끌어 옮기기 */
.term-winbox .term-live-dock.tv9-tb { cursor: grab !important; }
.term-winbox .term-live-dock.tv9-tb.is-drag { cursor: grabbing !important; opacity: 1 !important; user-select: none; }
.term-winbox .term-live-dock.tv9-tb button, .term-winbox .term-live-dock.tv9-tb input { cursor: pointer; }

/* 10/22 사용자: 관심종목 위 종목 검색칸 (돋보기) */
.wl-find { display: flex; align-items: center; gap: 8px; height: 32px; margin: 8px 8px 4px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; cursor: text; }
.wl-find:focus-within { border-color: #5a5a62; background: var(--panel-2); }
.wl-find svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.wl-find:focus-within svg { stroke: var(--text); }
.wl-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.wl-find input::-webkit-search-cancel-button { display: none; }
.wl-found { padding: 4px 0; }
.wl-found-it { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 7px 12px; cursor: pointer; }
.wl-found-it b { font-size: 13px; }
.wl-found-it span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-found-it small { color: #6b6b73; font-size: 11px; }
.wl-found-it:hover, .wl-found-it.sel { background: var(--hover); }
.wl-found-none { padding: 12px; color: var(--muted); font-size: 12px; }

/* 10/22 주간 사용량 (modules/account mountUsage) */
.tv9-use { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; margin-right: 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; white-space: nowrap; cursor: default; }
.tv9-use i { position: relative; width: 34px; height: 5px; border-radius: 999px; background: #2a2a30; overflow: hidden; flex: none; }
.tv9-use i::after { content: ""; position: absolute; inset: 0; width: calc(var(--r) * 100%); border-radius: 999px; background: #4f7cff; }
.tv9-use.warn { color: #ffd25e; } .tv9-use.warn i::after { background: #f5b301; }
.tv9-use.full { color: #ff8a8a; border-color: rgba(255, 90, 90, .45); } .tv9-use.full i::after { background: #ff5a5a; }
@media (max-width: 720px) { .tv9-use span { display: none; } .tv9-use { padding: 0 8px; } }
.topbar > .tv9-use { order: 49; margin: 0 0 0 10px; } /* 10/22 회원 칸 바로 왼쪽 (위쪽 줄은 order 로 자리를 정함) */
.tv9-use[hidden] { display: none; } /* 10/22 운영진·로그인 안 함 = 안 보임 (display 가 hidden 을 덮던 것) */
@media (max-width: 1499px) { .topbar > .tv9-use:not(.warn):not(.full) { display: none; } } /* 10/22 좁은 화면은 위쪽 줄이 넘침 → 80% 넘을 때만, 평소엔 내 정보 창 줄로 */

/* 10/22 사용자 "매매박스 드래그 손모양 아이콘이 너무 밝아 약간 그레이로" · "아까 느낌에서 색만 회색": 기본 손 커서 모양(가는 검은 테두리)에 채움만 회색 (잡을 때 조금 더 진하게) */
.term-winbox .term-live-dock.tv9-tb { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'%23c3c7ce'%20stroke%3D'%23000'%20stroke-width%3D'1'%20stroke-linejoin%3D'round'%20d%3D'M8.5%2011.5V5.2a1.25%201.25%200%200%201%202.5%200V10.5V3.7a1.25%201.25%200%200%201%202.5%200V10.5V4.7a1.25%201.25%200%200%201%202.5%200V11V7.2a1.25%201.25%200%200%201%202.5%200V14.5c0%203.6-2.4%206.5-6%206.5h-1.2c-2%200-3.3-.8-4.5-2.2L4.2%2014.6a1.3%201.3%200%200%201%201.9-1.8L8.5%2015z'%2F%3E%3C%2Fsvg%3E") 12 11, grab !important; }
.term-winbox .term-live-dock.tv9-tb.is-drag { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'%23a3a9b3'%20stroke%3D'%23000'%20stroke-width%3D'1'%20stroke-linejoin%3D'round'%20d%3D'M8.5%2011.5V5.2a1.25%201.25%200%200%201%202.5%200V10.5V3.7a1.25%201.25%200%200%201%202.5%200V10.5V4.7a1.25%201.25%200%200%201%202.5%200V11V7.2a1.25%201.25%200%200%201%202.5%200V14.5c0%203.6-2.4%206.5-6%206.5h-1.2c-2%200-3.3-.8-4.5-2.2L4.2%2014.6a1.3%201.3%200%200%201%201.9-1.8L8.5%2015z'%2F%3E%3C%2Fsvg%3E") 12 11, grabbing !important; }
.term-winbox .term-live-dock.tv9-tb button, .term-winbox .term-live-dock.tv9-tb input { cursor: pointer !important; }
/* 10/23 설정 있는 시그널팩(Expert) 톱니 창 */
.tv9-pp { display: grid; gap: 10px; min-width: 300px; }
.tv9-pp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.tv9-pp-row .in { width: 150px; height: 32px; border-radius: 999px; padding: 0 12px; }
.tv9-pp-row input[type="checkbox"] { width: 16px; height: 16px; }
.tv9-pp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.tv9-pp-btns .tb { height: 32px; padding: 0 16px; border-radius: 999px; }
.tv9-pp-save { background: var(--accent); color: var(--bg); border-color: transparent; }
html[data-ui="v2"] .tv9-pp-save { background: var(--v2-blue) !important; color: #fff !important; }
/* 10/23 Expert 자동 맞춤 결과 */
.tv9-pp-note { margin: 8px 4px 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

/* 10/23 저장한 차트: 북마크 뒤 수익률 · 며칠 */
.cl-row.is-chart { grid-template-columns: 2em 8em minmax(0, 1fr) 4em 9em 5em 2em; }
.cl-since { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.cl-since small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.cl-side .cl-row.is-chart { grid-template-columns: minmax(0, 1fr) 30px auto 18px; }
.cl-side .cl-since { margin-right: 6px; }
.cl-side .cl-row.is-chart { column-gap: 10px; }
.cl-side .cl-row.is-chart .cl-x { width: 18px; height: 18px; padding: 0; }

/* 10/23 새로고침 때 마지막 탭이 열리기 전 차트가 잠깐 보이던 것 */
.center.tab-boot > #grid, .center.tab-boot > .tv9-tools, .center.tab-boot > .ind-dock, .center.tab-boot > .ind-dock-btn { visibility: hidden; }
/* 10/23 매매 박스 맨 위: 지금 주문이 나가는 계좌 (실계좌는 빨간 점 · 데모는 회색) */
.tv9-tb-acct { display: flex; align-items: center; justify-content: center; gap: 4px; margin: -1px 0 4px; font-size: 10.5px; line-height: 14px; color: #a8a8b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv9-tb-acct em { font-style: normal; color: #6f6f78; }
.tv9-tb-acct .tv9-tb-ai { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 999px; font: 700 8px/1 Arial, sans-serif; font-style: normal; background: rgba(255, 255, 255, 0.1); color: #c9c9d1; }
.tv9-tb-acct.is-live { color: #f3c2c6; }
.tv9-tb-acct.is-live .tv9-tb-ai { background: rgba(240, 68, 82, 0.22); color: #ff8a94; }
/* 10/23 매매 박스 계좌 글자 = 누르면 계좌 고르기 */
button.tv9-tb-acct { width: 100%; border: 0; background: transparent; font: inherit; font-size: 10.5px; cursor: pointer; padding: 1px 4px; border-radius: 999px; }
button.tv9-tb-acct:hover { background: rgba(255, 255, 255, 0.06); }
.tv9-tb-chev { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.tv9-tb-pick { position: fixed; z-index: 3000; min-width: 210px; max-width: 280px; padding: 5px; border-radius: 12px; background: #1b1b20; border: 1px solid #2a2a31; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; gap: 2px; }
.tv9-tb-pick-it { display: grid; grid-template-columns: 18px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: #e8e8ed; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.tv9-tb-pick-it:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); }
.tv9-tb-pick-it.on { background: rgba(255, 255, 255, 0.08); }
.tv9-tb-pick-it:disabled { opacity: .45; cursor: default; }
.tv9-tb-pick-it .tv9-tb-ai { grid-row: span 2; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; font: 700 9px/1 Arial, sans-serif; font-style: normal; background: rgba(240, 68, 82, 0.22); color: #ff8a94; }
.tv9-tb-pick-it.is-demo .tv9-tb-ai { background: rgba(255, 255, 255, 0.1); color: #c9c9d1; }
.tv9-tb-pick-it b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv9-tb-pick-it small { grid-column: 2; color: #8a8a93; font-size: 10.5px; }
.tv9-tb-ok { grid-row: 1 / span 2; grid-column: 3; width: 14px; height: 14px; fill: none; stroke: #e8e8ed; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tv9-tb-pick-add { margin-top: 2px; padding: 8px 9px; border: 0; border-top: 1px solid #2a2a31; border-radius: 0 0 9px 9px; background: transparent; color: #9a9aa3; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.tv9-tb-pick-add:hover { color: #e8e8ed; }
/* 10/23 사용자 "저장한 차트 배열 맞춰라": 오른쪽 북마크 줄 = 종목 · 봉 · 북마크 뒤(수익률+며칠, 한 줄) · ✕ 칸을 고정 (수익률이 ✕ 밑으로 겹치던 것) */
.cl-side .cl-row.is-chart { grid-template-columns: minmax(0, 1fr) 30px 98px 18px !important; column-gap: 8px; }
.cl-side .cl-row.is-chart > .cl-tf { grid-column: 2; grid-row: 1; }
.cl-side .cl-row.is-chart > .cl-since { grid-column: 3; grid-row: 1; margin: 0; white-space: nowrap; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-side .cl-row.is-chart > .cl-since small { font-weight: 400; color: var(--muted); margin-left: 3px; }
.cl-side .cl-row.is-chart > .cl-x { grid-column: 4; grid-row: 1; }
/* 10/23 차트 진입 라벨 오른쪽 정리 ✕ */
.tv9-pos-x { position: absolute; z-index: 25; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 4px; display: grid; place-items: center; background: rgba(20, 20, 24, 0.9); color: #f5b400; box-shadow: inset 0 0 0 1px rgba(245, 180, 0, 0.7); cursor: pointer; }
.tv9-pos-x:hover { background: #e5484d; color: #fff; box-shadow: none; }
.tv9-pos-x svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.tv9-pos-x[hidden] { display: none; }

/* 10/24 사용자 "북마크 시그널이랑 키트 필요없을 듯": 북마크 탭에서 키트 칸을 빼서 키트 결과 줄의 북마크 단추도 숨김 */
[data-elon-book],
[data-elon-fav] {
  display: none !important;
}

/* 10/24 사용자 "내 정보 프로필 사진 왜 이러냐": 사진 칸 기본 모양이 빠져 글자·버튼이 그냥 늘어서 보였음 → 동그란 사진 + 이름 + 알약 단추 */
.tv9-avh { display: flex; align-items: center; gap: 14px; padding: 4px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.tv9-avh-pic { position: relative; flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font: inherit; }
.tv9-avh-pic > span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.tv9-avh-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tv9-avh-pic > img.ok { opacity: 1; }
.tv9-avh-pic > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.15s; }
.tv9-avh-pic:hover > i { opacity: 1; }
.tv9-avh-pic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; }
.tv9-avh-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tv9-avh-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv9-avh-t span { display: flex; gap: 6px; }
.tv9-avh-t span button { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.tv9-avh-t span button:hover { color: var(--text); background: var(--hover); }

/* 10/24 둘째 줄 "자동매매 추천" 단추 + 펼침 목록 (키트 · 랭킹 · 역추세 계산) */
.tv9-rec { position: relative; display: inline-flex; }
.tv9-rec-car { width: 0; height: 0; margin-left: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.7; transition: transform 0.15s; }
.tv9-rec-btn[aria-expanded="true"] .tv9-rec-car { transform: rotate(180deg); }
.tv9-rec-menu { position: fixed; z-index: 900; min-width: 160px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.tv9-rec-menu[hidden] { display: none; }
.tv9-rec-menu button { text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tv9-rec-menu button:hover { background: var(--hover); }

/* 10/24 사용자 "일관성이 없는데 오른쪽(자동매매 추천) 같은 느낌이 좋아": 봉 단위·봉 수·차트 모양 등 모든 펼침 목록(.tf-list)을
   자동매매 추천 목록과 같은 모양으로 (판 색 · 얇은 테두리 · 둥근 12px · 줄 8px 12px · 글자 진하게) — 밝은 화면(v2-auto)보다 우선 */
.tf-list.tf-list.tf-list { gap: 2px; padding: 6px; min-width: 160px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); }
.tf-list.tf-list.tf-list button { height: auto; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 13px; font-weight: 500; }
.tf-list.tf-list.tf-list button:hover { background: var(--hover); color: var(--text); }
.tf-list.tf-list.tf-list button.active { background: var(--hover); color: var(--text); font-weight: 700; }
.tf-list.tf-list.tf-list .tf-custom { height: 32px; margin-top: 4px; border-radius: 8px; }
