/* Candliq · 캔들릭 Standard Web Stylesheet (FastAPI Edition) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg-main: #17171C;
  --bg-sidebar: #1B1C22;
  --bg-elevated: #1F2028;
  --bg-input: #24252D;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-mid: rgba(255, 255, 255, 0.12);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #8B95A1;
  --text-dim: #6B7684;
  --accent-blue: #3182F6;
  --fac-pos-bg: rgba(240, 68, 82, 0.14);
  --fac-pos-fg: #FCA5A5;
  --fac-neg-bg: rgba(49, 130, 246, 0.14);
  --fac-neg-fg: #93C5FD;
  --candliq-pw-left: 50%;
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
}

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

/* ====== App Layout ====== */
.candliq-layout {
  display: flex;
  min-height: 100dvh;
  width: 100%;
  background: var(--bg-main);
}

/* ====== Left Sidebar (Fixed & Independently Scrollable) ====== */
.candliq-sidebar {
  width: 292px;
  min-width: 292px;
  max-width: 292px;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100dvh;
  z-index: 1200;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}


.sb-inner {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)) 16px;
  min-height: max-content;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-inner > * {
  flex-shrink: 0;
}

body.candliq-ptr-sb-pulling .sb-inner {
  transform: translate3d(0, var(--candliq-ptr-sb-pull, 0px), 0);
  transition: none;
}

body.candliq-ptr-sb-refreshing .sb-inner {
  transform: translate3d(0, 44px, 0);
}

.sb-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sb-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 900;
  color: #F8FAFC;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sb-brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  margin-left: 1px;
}



.sb-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #6B7684;
  letter-spacing: 0.02em;
  margin: 6px 0 6px 2px;
}

.sb-label-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  margin: 13px 0;
  width: 100%;
}

/* Search Box & Suggestions */
.sb-search-wrap {
  position: relative;
}

.sb-search-input {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 12px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #F2F4F6;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sb-search-input::placeholder {
  color: #6B7684;
}

.sb-search-input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  background: #282A34;
}

.sb-search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.sb-search-clear.is-visible {
  display: inline-flex;
}

.sb-sug-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sb-sug-caption {
  font-size: 11px;
  color: #6B7684;
  margin: 2px 0 2px 2px;
}

.sb-sug-btn {
  width: 100%;
  min-height: 35px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #23252F;
  color: #E5E8EB;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.sb-sug-btn:hover,
.sb-sug-btn.is-active {
  background: rgba(49, 130, 246, 0.18);
  border-color: rgba(49, 130, 246, 0.55);
  color: #FFFFFF;
}

.sb-sug-meta {
  font-size: 11px;
  font-weight: 500;
  color: #8B95A1;
  flex-shrink: 0;
}

/* Watchlist */
.sb-fav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-fav-empty {
  font-size: 12px;
  color: #6B7684;
  padding: 6px 2px;
}

.sb-fav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
}

.sb-dots {
  flex: 0 0 66px;
  width: 66px;
  display: flex;
  align-items: center;
  gap: 3.8px;
  height: 34px;
  padding-left: 2px;
  white-space: nowrap;
}

.sb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes candliq-dot-pulse {
  0%, 100% { background-color: rgba(148, 163, 184, 0.16); transform: scale(0.92); }
  50% { background-color: rgba(148, 163, 184, 0.62); transform: scale(1.06); }
}

.sb-dot-loading {
  background-color: rgba(148, 163, 184, 0.22);
  animation: candliq-dot-pulse 1.25s ease-in-out infinite;
}
.sb-dot-loading:nth-child(2) { animation-delay: 0.15s; }
.sb-dot-loading:nth-child(3) { animation-delay: 0.30s; }
.sb-dot-loading:nth-child(4) { animation-delay: 0.45s; }
.sb-dot-loading:nth-child(5) { animation-delay: 0.60s; }
.sb-dot-loading:nth-child(6) { animation-delay: 0.75s; }

.sb-fav-pick {
  flex: 1 1 auto;
  min-width: 0;
  height: 33px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.sb-fav-pick:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

.sb-fav-pick.is-selected {
  background: var(--accent-blue);
  color: #FFFFFF;
  font-weight: 700;
}

.sb-fav-del {
  flex: 0 0 32px;
  width: 32px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sb-fav-del:hover {
  background: rgba(239, 68, 68, 0.24);
}

.sb-fav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
  min-height: 24px;
}

.sb-edit-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #8B95A1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 4px;
  margin-left: -4px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.sb-edit-text-btn:hover {
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
}

.sb-edit-text-btn.is-editing {
  color: #60A5FA;
  font-weight: 700;
}

.sb-scan-ts {
  font-size: 11px;
  color: #6B7684;
  text-align: right;
  margin: 0;
}

.sb-secondary-btn {
  width: 100%;
  height: 35px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03);
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.sb-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Segmented Controls, Toggles & Slider */
.sb-field {
  margin-bottom: 11px;
}

.sb-field-lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #CBD5E1;
  margin-bottom: 5px;
}

.seg-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #14151A;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.seg-btn {
  height: 29px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8B95A1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.seg-btn.is-active {
  background: #2B2E3B;
  color: #F8FAFC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  cursor: pointer;
  user-select: none;
}

.sb-toggle-txt {
  font-size: 12.8px;
  color: #CBD5E1;
  font-weight: 500;
}

.sb-switch {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: #323644;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.16s ease;
  flex-shrink: 0;
}

.sb-switch::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.16s ease;
}

.sb-switch.is-on {
  background: var(--accent-blue);
}

.sb-switch.is-on::after {
  transform: translateX(17px);
}

.sb-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #CBD5E1;
  margin: 6px 2px 4px 2px;
}

.sb-slider-val {
  color: #7DD3FC;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sb-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.sb-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-blue) 0%,
    var(--accent-blue) var(--range-pct, 42.86%),
    rgba(255, 255, 255, 0.11) var(--range-pct, 42.86%),
    rgba(255, 255, 255, 0.11) 100%
  );
}

.sb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--accent-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease;
}

.sb-range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.sb-range::-moz-range-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.sb-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent-blue);
}

.sb-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--accent-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Bottom Group (Terms + Guide + Support) */
.sb-bottom-group {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-bottom-expander {
  border: 1px solid rgba(250, 250, 250, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sb-bottom-expander:hover {
  border-color: rgba(250, 250, 250, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.sb-bottom-expander summary {
  list-style: none;
  min-height: 41px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  color: #94A3B8;
  user-select: none;
}

.sb-bottom-expander summary::-webkit-details-marker {
  display: none;
}

.sb-bottom-expander summary:hover {
  color: #CBD5E1;
}

.sb-exp-chev {
  width: 16px;
  height: 16px;
  color: #CBD5E1;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.sb-bottom-expander[open] .sb-exp-chev {
  transform: rotate(90deg);
}

.sb-exp-body {
  padding: 6px 14px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.8px;
  color: #94A3B8;
  line-height: 1.58;
}

.sb-exp-body strong {
  color: #CBD5E1;
  display: block;
  margin-top: 8px;
  margin-bottom: 3px;
}

.sb-exp-body strong:first-child {
  margin-top: 2px;
}

.sb-exp-body ul {
  margin: 0;
  padding-left: 16px;
}

.sb-exp-body a {
  color: #7DD3FC;
  text-decoration: underline;
}

.sb-pc-support-link,
.sb-pc-support-link:visited {
  width: 100%;
  min-height: 41px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid rgba(250, 250, 250, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sb-pc-support-link:hover {
  border-color: rgba(250, 250, 250, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.sb-pc-support-chev {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #CBD5E1;
}

.sb-pc-support-label {
  font-size: 12px;
  font-weight: 400;
  color: #94A3B8;
  line-height: 1.55;
  transition: color 0.15s ease;
}

.sb-pc-support-link:hover .sb-pc-support-label {
  color: #CBD5E1;
}

/* ====== Main Content Area ====== */
.candliq-main {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 292px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg-main);
  transition: margin-left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}


.candliq-container {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 28px calc(108px + env(safe-area-inset-bottom, 0px)) 28px;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.candliq-right-rail {
  display: none;
  flex: 0 0 188px;
  width: 188px;
  padding: 18px 14px 96px 0;
  align-self: stretch;
}

@media (min-width: 1260px) {
  .candliq-right-rail.has-ad {
    display: block;
  }
  body.candliq-has-right-ad .candliq-floating-dock {
    left: calc(50% + 52px);
  }
}

body.candliq-ptr-pulling .candliq-container {
  transform: translate3d(0, var(--candliq-ptr-pull, 0px), 0);
  transition: none;
}

body.candliq-ptr-refreshing .candliq-container {
  transform: translate3d(0, 44px, 0);
}

/* ====== Global Market Strip (Single-Line Leftward Marquee on PC & Mobile) ====== */
.mkt-strip {
  padding: 6px 0 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
}
@keyframes candliq-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.mkt-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  animation: candliq-marquee 30s linear infinite;
  will-change: transform;
}
.mkt-track:hover,
.mkt-track:active {
  animation-play-state: paused;
}
.mkt-set,
.mkt-set-dup {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}
.mkt-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 0;
  border-left: none;
}
.mkt-item {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 2px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mkt-spark { flex: 0 0 60px; height: 30px; }
.mkt-info { min-width: 0; white-space: nowrap; }
.mkt-name { font-size: 11.8px; font-weight: 600; color: #B0B8C1; line-height: 1.25; }
.mkt-val-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; white-space: nowrap; margin-top: 2px; }
.mkt-val { font-size: 14px; font-weight: 700; color: #F2F4F6; letter-spacing: -0.01em; }
.mkt-chg { font-size: 12px; font-weight: 600; }

/* ====== Sticky Symbol Header ====== */
.flat-header-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-main);
  padding-top: 8px;
  margin-bottom: 16px;
}

.flat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 2px 0 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-main);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #E5E8EB;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 2px;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.20);
}


.sym-title {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sym-code {
  font-size: 14px;
  font-weight: 500;
  color: #8B95A1;
  margin-left: 2px;
}

.fav-star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6B7684;
  padding: 0;
  transition: transform 0.14s ease, color 0.14s ease, background-color 0.14s ease;
  flex-shrink: 0;
}

.fav-star-btn:hover { background: rgba(255, 255, 255, 0.07); color: #CBD5E1; }
.fav-star-btn:active { transform: scale(0.9); }
.fav-star-btn.is-fav { color: #FACC15; }
.fav-star-btn.is-fav svg { fill: #FACC15; stroke: #FACC15; }

.tf-jump-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #E2E8F0;
  text-decoration: none;
  transition: background-color 0.14s ease;
}

.tf-jump-chip:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #7DD3FC;
}

.delay-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.delay-badge.is-live {
  background: rgba(34, 197, 94, 0.13);
  color: #86EFAC;
}

.delay-badge.is-delayed {
  background: rgba(250, 204, 21, 0.14);
  color: #FDE047;
}

/* ====== Dashboard Signal & Indicator Grid ====== */
.svg-ic { display: inline-flex; align-items: center; vertical-align: -2px; margin-right: 5px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.hairline { height: 1px; background: rgba(255, 255, 255, 0.07); margin: 16px 0; }
.meta-chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: #B0B8C1; }
.signal-flat { padding: 4px 0 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 18px; }
.signal-top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.signal-title { font-size: 22px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.025em; line-height: 1.25; }
.signal-desc { font-size: 14px; font-weight: 400; color: #B0B8C1; line-height: 1.5; margin: 4px 0 14px 0; word-break: keep-all; }
.signal-notice { font-size: 11.5px; color: #6B7684; text-align: right; margin-top: 12px; line-height: 1.45; word-break: keep-all; }
.opinion-pill { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.regime-tag { display: inline-block; font-size: 12px; font-weight: 500; color: #8B95A1; margin-left: 6px; }
.strip-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.strip-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.strip-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 4px 0 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 20px; }
.strip-cell { padding: 2px 16px; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.strip-cell:first-child { padding-left: 0; border-left: none; }
.val-k { font-size: 12px; font-weight: 500; color: #8B95A1; margin-bottom: 4px; }
.val-v { font-size: 15px; font-weight: 700; color: #F2F4F6; letter-spacing: -0.01em; }
.val-v-lg { font-size: 22px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.025em; line-height: 1.2; }
.val-s { font-size: 12px; color: #8B95A1; margin-top: 3px; line-height: 1.4; word-break: keep-all; }
.fac-wrap { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 5px; }
.fac-chip { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 500; padding: 1.5px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.045); color: #94A3B8; line-height: 1.45; }
.fac-pos { background: var(--fac-pos-bg); color: var(--fac-pos-fg); }
.fac-neg { background: var(--fac-neg-bg); color: var(--fac-neg-fg); }
.ind-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ind-row { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ind-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ind-name { font-size: 14px; font-weight: 600; color: #E5E8EB; letter-spacing: -0.01em; }
.ind-w { font-size: 11.5px; color: #6B7684; font-weight: 500; margin-left: 4px; }
.ind-score { font-size: 13px; font-weight: 700; white-space: nowrap; }
.ind-sub-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 5px; }
.ind-val { font-size: 12.5px; color: #B0B8C1; font-weight: 500; word-break: keep-all; overflow-wrap: break-word; }
.ind-detail { font-size: 12px; color: #6B7684; text-align: right; word-break: keep-all; overflow-wrap: break-word; }
.small-muted { font-size: 12px; color: #8B95A1; }

.multi-tf-grid { display: grid; gap: 26px 28px; align-items: stretch; margin-bottom: 18px; }
.multi-tf-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.multi-tf-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.multi-tf-card { display: flex; flex-direction: column; height: 100%; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.multi-tf-card .strip-3 { flex: 1 0 auto; align-items: start; }
.multi-tf-card .strip-3 .val-v { white-space: nowrap; font-size: 13.5px; }

.ov-rec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.ov-rec-btn {
  background: #1F2028;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.ov-rec-btn:hover {
  background: rgba(49, 130, 246, 0.18);
  border-color: rgba(49, 130, 246, 0.65);
  color: #93C5FD;
}

.warn-card {
  margin: 14px 0 18px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.10);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #FDE047;
  font-size: 13.5px;
}

/* ====== Indicator Info Button (i) & Floating Popover ====== */
.val-k, .ind-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.ind-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.08);
  color: #94A3B8;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.ind-info-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.ind-info-btn:hover,
.ind-info-btn.is-open {
  color: #E0F2FE;
  border-color: rgba(125, 211, 252, 0.72);
  background: rgba(56, 189, 248, 0.20);
}

.candliq-info-pop {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 2200;
  width: max-content;
  max-width: min(304px, calc(100vw - 24px));
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(24, 27, 36, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  color: #CBD5E1;
  font-size: 12.5px;
  line-height: 1.56;
  word-break: keep-all;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 0.13s ease, transform 0.13s ease, visibility 0.13s ease;
}

.candliq-info-pop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.candliq-info-pop-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

/* ====== Interactive Chart Toolbar & Container ====== */
.candliq-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 2px 0;
  padding: 0 2px;
}

.chart-tb-hint {
  font-size: 11.5px;
  color: #6B7684;
  user-select: none;
}

.chart-tb-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.chart-tb-btn {
  height: 26px;
  min-width: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #1F2028;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chart-tb-btn:hover {
  background: #282B36;
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.chart-tb-btn:active {
  transform: scale(0.95);
}

.candliq-chart-wrap {
  width: 100%;
  min-height: 580px;
  margin-top: 2px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.candliq-chart-wrap .js-plotly-plot,
.candliq-chart-wrap .plot-container,
.candliq-chart-wrap svg,
.candliq-chart-wrap .nsewdrag {
  touch-action: pan-y !important;
}

.candliq-chart-wrap.touch-hover-hidden .hoverlayer,
.candliq-chart-wrap.touch-hover-hidden .spikeline {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.candliq-chart-wrap .hoverlayer path.spikeline,
.candliq-chart-wrap .hoverlayer line {
  stroke: rgba(148, 163, 184, 0.42) !important;
  stroke-width: 1px !important;
  stroke-dasharray: 3, 3 !important;
}

/* ====== Responsive Web Ad Slots (Hidden when unconfigured or ?ios_app=1) ====== */
.candliq-ad-slot {
  display: none;
  position: relative;
  margin: 14px auto 6px auto;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  overflow: hidden;
}

.candliq-ad-slot.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.candliq-ad-mid-slot,
.candliq-ad-btm-slot {
  width: 100%;
  margin: 0 0 16px 0;
  padding: 6px 12px 8px 12px;
  max-height: 114px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.candliq-ad-badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4E5663;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

/* Official AdSense fixed-height responsive horizontal leaderboard (prevents 280px auto-billboard) */
ins.adsbygoogle.candliq-adsense-horiz {
  display: inline-block !important;
  width: 320px !important;
  height: 50px !important;
  max-height: 50px !important;
}

@media (min-width: 520px) {
  ins.adsbygoogle.candliq-adsense-horiz {
    width: 468px !important;
    height: 60px !important;
    max-height: 60px !important;
  }
}

@media (min-width: 820px) {
  ins.adsbygoogle.candliq-adsense-horiz {
    width: 728px !important;
    height: 90px !important;
    max-height: 90px !important;
  }
}

.candliq-ad-btm-slot {
  margin: 18px 0 6px 0;
}

/* Compact sidebar banner (placed neatly right above 설정) */
#candliq-ad-sidebar {
  width: 100%;
  margin: 10px 0 2px 0;
  padding: 6px 6px 7px 6px;
  max-height: 84px;
}

ins.adsbygoogle.candliq-adsense-sb {
  display: inline-block !important;
  width: 234px !important;
  height: 60px !important;
  max-height: 60px !important;
}

/* Desktop Right Sticky 160x600 Skyscraper Ad */
.candliq-ad-right-slot {
  position: sticky;
  top: 18px;
  width: 174px;
  margin: 0;
  padding: 8px 6px 10px 6px;
  min-height: 622px;
  max-height: 632px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

ins.adsbygoogle.candliq-adsense-sky {
  display: inline-block !important;
  width: 160px !important;
  height: 600px !important;
  max-height: 600px !important;
}

/* ====== Legal Disclaimer Footer ====== */
.disclaimer-box {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #6B7684;
  line-height: 1.62;
  word-break: keep-all;
}

.disclaimer-box a {
  color: #94A3B8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer-box a:hover {
  color: #E2E8F0;
}

.web-footer-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #8B95A1;
}

.web-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 500;
}

.web-footer-links a:hover {
  color: #F8FAFC;
  text-decoration: underline;
}

/* ====== Floating 6-Timeframe Dock ====== */
.candliq-floating-dock {
  position: fixed;
  left: calc(50% + 146px);
  transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 20px);
  z-index: 950;
  background: rgba(27, 28, 34, 0.96);
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}


.dock-tf-btn {
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 30px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.14);
  color: #CBD5E1;
  opacity: 0.74;
  transition: transform 0.1s ease, opacity 0.14s ease, box-shadow 0.14s ease;
}

.dock-tf-btn:active {
  transform: scale(0.94);
}

.dock-tf-btn.is-selected {
  opacity: 1;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.dock-tf-btn.is-disabled,
.dock-tf-btn:disabled {
  background: rgba(148, 163, 184, 0.08) !important;
  color: #64748B !important;
  opacity: 0.46;
  font-weight: 600;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* ====== Floating Refresh FAB (Desktop) ====== */
@keyframes candliq-refresh-spin {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.42, 0.0, 0.08, 1.0);
  }
  86% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#candliq-fab-refresh {
  position: fixed;
  right: 20px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2B2D36;
  color: #F2F4F6;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20100;
  padding: 0;
  user-select: none;
  outline: none;
  overflow: hidden;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

#candliq-fab-refresh:hover:not(.is-cooldown) {
  background: #363945;
  transform: scale(1.05);
}

#candliq-fab-refresh:active:not(.is-cooldown) {
  transform: scale(0.94);
}

#candliq-fab-refresh.is-cooldown {
  cursor: not-allowed;
  border-color: rgba(56, 189, 248, 0.38);
  background: #22252F;
}

#candliq-fab-refresh .candliq-refresh-ring {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#candliq-fab-refresh.is-spinning {
  border-color: rgba(56, 189, 248, 0.65);
  background: #252936;
}

#candliq-fab-refresh.is-spinning .candliq-refresh-ring {
  animation: candliq-refresh-spin 1.08s infinite;
}

#candliq-fab-refresh .candliq-refresh-svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke: #F2F4F6;
  transition: stroke 0.18s ease, opacity 0.18s ease;
}

#candliq-fab-refresh.is-cooldown:not(.is-spinning) .candliq-refresh-svg {
  stroke: rgba(148, 163, 184, 0.38);
}

#candliq-fab-refresh.is-spinning .candliq-refresh-svg {
  stroke: #38BDF8;
  opacity: 1;
}

#candliq-fab-refresh.is-spinning .candliq-refresh-cd {
  opacity: 0;
}

#candliq-fab-refresh .candliq-refresh-cd {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #7DD3FC;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

/* ====== Wave Loader, Topbar, Pinwheel, Modal & Toast ====== */
@keyframes candliq-ios-bounce {
  0% { transform: translate3d(0, 0.00px, 0) scale(1.0000, 1.0000); }
  4% { transform: translate3d(0, 1.13px, 0) scale(1.0135, 0.9797); }
  8% { transform: translate3d(0, 3.35px, 0) scale(1.0402, 0.9397); }
  13% { transform: translate3d(0, 5.00px, 0) scale(1.0600, 0.9100); }
  17% { transform: translate3d(0, -3.94px, 0) scale(1.0120, 0.9842); }
  22% { transform: translate3d(0, -10.88px, 0) scale(0.9748, 1.0417); }
  27% { transform: translate3d(0, -14.27px, 0) scale(0.9566, 1.0698); }
  32% { transform: translate3d(0, -15.39px, 0) scale(0.9506, 1.0791); }
  36% { transform: translate3d(0, -15.50px, 0) scale(0.9500, 1.0800); }
  41% { transform: translate3d(0, -14.14px, 0) scale(0.9569, 1.0696); }
  46% { transform: translate3d(0, -10.04px, 0) scale(0.9777, 1.0384); }
  51% { transform: translate3d(0, -3.22px, 0) scale(1.0123, 0.9865); }
  55% { transform: translate3d(0, 4.20px, 0) scale(1.0500, 0.9300); }
  60% { transform: translate3d(0, -0.94px, 0) scale(1.0059, 0.9961); }
  65% { transform: translate3d(0, -2.64px, 0) scale(0.9914, 1.0179); }
  69% { transform: translate3d(0, -2.80px, 0) scale(0.9900, 1.0200); }
  75% { transform: translate3d(0, -1.40px, 0) scale(0.9950, 1.0100); }
  81% { transform: translate3d(0, 0.00px, 0) scale(1.0000, 1.0000); }
  100% { transform: translate3d(0, 0.00px, 0) scale(1.0000, 1.0000); }
}

#candliq-dim-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(12, 13, 18, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

body.candliq-dim-loading #candliq-dim-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.candliq-wave-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8.6px;
  width: 88px;
  height: 95px;
}

.candliq-candle-slot {
  position: relative;
  width: 17.4px;
  height: 55px;
}
.candliq-candle-slot.s1 { transform: translateY(8.2px); --cc-clr: #D1706A; }
.candliq-candle-slot.s2 { transform: translateY(0px);   --cc-clr: #7FB3DB; }
.candliq-candle-slot.s3 { transform: translateY(-8.2px); --cc-clr: #6CA68D; }

.candliq-candle-anim {
  position: relative;
  width: 17.4px;
  height: 55px;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: candliq-ios-bounce 1.36s linear infinite;
}
.candliq-candle-anim.b1 { animation-delay: 0s; }
.candliq-candle-anim.b2 { animation-delay: 0.12s; }
.candliq-candle-anim.b3 { animation-delay: 0.24s; }

.candliq-candle-anim .cc-wick {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3.7px;
  height: 55px;
  margin-left: -1.85px;
  border-radius: 999px;
  background: var(--cc-clr);
}

.candliq-candle-anim .cc-body {
  position: absolute;
  left: 0;
  top: 50%;
  width: 17.4px;
  height: 34.8px;
  margin-top: -17.4px;
  border-radius: 999px;
  background: var(--cc-clr);
}

@keyframes candliq-pw-rotate {
  0% { transform: translate3d(-50%, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-50%, 0, 0) rotate(360deg); }
}

#candliq-ios-pinwheel {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: var(--candliq-pw-left, 50%);
  width: 28px;
  height: 28px;
  z-index: 22000;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -14px, 0) scale(0.65);
  transition: opacity 0.18s ease;
}

#candliq-ios-pinwheel svg {
  width: 100%;
  height: 100%;
  display: block;
}

#candliq-ios-pinwheel.is-spinning {
  opacity: 1;
  top: calc(22px + env(safe-area-inset-top, 0px));
  animation: candliq-pw-rotate 0.85s steps(12, end) infinite;
}

#candliq-limit-toast {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate3d(-50%, -12px, 0);
  z-index: 30000;
  background: rgba(30, 32, 42, 0.96);
  color: #F8FAFC;
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#candliq-limit-toast.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

/* First-visit Disclaimer Modal */
#candliq-disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(10, 12, 18, 0.76);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#candliq-disclaimer-modal.is-open {
  display: flex;
}

.candliq-modal-card {
  width: 100%;
  max-width: 470px;
  background: #1E2029;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 24px 22px 20px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.candliq-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 12px;
}

.candliq-modal-list {
  margin: 0 0 18px 0;
  padding-left: 18px;
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.65;
}

.candliq-modal-list li {
  margin-bottom: 8px;
}

.candliq-modal-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.candliq-modal-btn:hover {
  background: #2563EB;
}

/* ====== Mobile Drawer & Responsive Breakpoints ====== */
.candliq-sb-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .candliq-main {
    margin-left: 0 !important;
  }

  .candliq-floating-dock {
    left: 50% !important;
  }

  .candliq-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1200;
    -webkit-overflow-scrolling: touch;
    width: min(304px, 86vw);
    min-width: 0;
    max-width: 86vw;
    transform: translateX(-104%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.6);
  }

  .sb-inner {
    min-height: max-content;
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  body.candliq-sb-open .candliq-sidebar {
    transform: translateX(0);
  }

  .candliq-sb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: block;
  }

  body.candliq-sb-open .candliq-sb-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 2px;
  }

  .candliq-container {
    padding: 10px 15px calc(112px + env(safe-area-inset-bottom, 0px)) 15px;
  }

  .mkt-strip {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    padding: 8px 0 12px 0;
    margin-bottom: 8px;
    min-height: 52px;
    overflow-x: hidden;
  }
  .mkt-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    animation: candliq-marquee 24s linear infinite;
  }
  .mkt-track:hover, .mkt-track:active { animation-play-state: paused; }
  .mkt-set, .mkt-set-dup {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
  }
  .mkt-col {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
    border-left: none;
  }
  .mkt-item {
    flex: 0 0 auto;
    padding: 2px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .flat-header { padding: 2px 0 11px 0; gap: 7px 10px; align-items: center; }
  .sym-title { font-size: 21px; }
  .sym-code { font-size: 12.5px; }
  .delay-badge { font-size: 10.5px; padding: 2px 7px; }
  .hdr-brand-hide-m { display: none !important; }
  .strip-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 6px 0 14px 0; }
  .strip-4 .strip-cell { border-left: none; padding: 4px 0; }
  .val-v-lg { font-size: 18px; }
  .multi-tf-grid, .multi-tf-grid.cols-2, .multi-tf-grid.cols-3,
  .ind-table, .strip-2, .strip-3 { grid-template-columns: 1fr; gap: 12px; }
  .strip-2 .strip-cell, .strip-3 .strip-cell { border-left: none; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .strip-2 .strip-cell:first-child, .strip-3 .strip-cell:first-child { border-top: none; padding-top: 0; }
  .signal-title { font-size: 19px; }
  .ov-rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .candliq-chart-wrap { min-height: 460px; }
  .dock-tf-btn { padding: 4px 8px; font-size: 11.4px; min-height: 29px; }
  #candliq-fab-refresh { display: none !important; }
}

/* ====== iOS Native WKWebView Mode (?ios_app=1) ====== */
body.candliq-ios-app::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg-main);
  z-index: 26000;
  pointer-events: none;
}

body.candliq-ios-app .candliq-sidebar,
body.candliq-ios-app .candliq-sb-backdrop,
body.candliq-ios-app .mobile-menu-btn,
body.candliq-ios-app #candliq-fab-refresh,
body.candliq-ios-app .candliq-ad-slot,
body.candliq-ios-app .candliq-right-rail,
body.candliq-ios-app .web-footer-links {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ====== Standalone Content Pages (/privacy, /support, /guide) ====== */
.standalone-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 64px 20px;
}

.standalone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.standalone-back-btn {
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.standalone-back-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.standalone-card {
  padding: 26px 24px;
  background: #1B1D26;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #E2E8F0;
  line-height: 1.75;
  margin-bottom: 18px;
}

.standalone-card h1 {
  font-size: 24px;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 6px 0;
}

.standalone-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: #F8FAFC;
  margin: 22px 0 8px 0;
}

.standalone-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 18px 0 6px 0;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 6px;
}

.form-select,
.form-input,
.form-textarea {
  width: 100%;
  background: #12141C;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  color: #F8FAFC;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: #38BDF8;
}

.form-primary-btn {
  width: 100%;
  min-height: 45px;
  border: none;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.form-primary-btn:hover {
  background: #2563EB;
}

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

body.candliq-ios-app .candliq-main {
  margin-left: 0 !important;
}
body.candliq-ios-app .candliq-floating-dock {
  left: 50% !important;
}


/* Hide browser native search cancel icon so only our clean custom clear button appears */
.sb-search-input::-webkit-search-cancel-button,
.sb-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* ====== Inline Sidebar Stock Explorer (종목 탐색) ====== */
.sb-scr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.sb-scr-regs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sb-scr-reg {
  outline: none;
  padding: 2.5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #8B95A1;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.sb-scr-reg:hover {
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.18);
}

.sb-scr-reg.is-active {
  background: #2B2E39;
  border-color: rgba(255, 255, 255, 0.22);
  color: #F8FAFC;
  font-weight: 600;
}

.sb-screener-wrap {
  display: flex;
  flex-direction: column;
}

.sb-scr-top-tag {
  font-size: 10px;
  font-weight: 700;
  color: #38BDF8;
  margin-left: 3px;
  letter-spacing: 0.02em;
}

@keyframes sb-scr-lbl-roll {
  0% { opacity: 0; transform: translate3d(0, 7px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.sb-scr-rolling {
  display: inline-block;
  animation: sb-scr-lbl-roll 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sb-scr-row-cascade {
  0% {
    opacity: 0;
    transform: translate3d(0, 9px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.sb-scr-row.is-cascading {
  animation: sb-scr-row-cascade 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.sb-scr-dd {
  position: relative;
  margin-bottom: 6px;
}

.sb-scr-dd-btn {
  outline: none;
  width: 100%;
  height: 33px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #1D1F28;
  color: #F1F5F9;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.sb-scr-dd-btn:hover {
  background: #242733;
  border-color: rgba(255, 255, 255, 0.18);
}

.sb-scr-dd.is-open .sb-scr-dd-btn {
  border-color: rgba(56, 189, 248, 0.55);
  background: #242733;
}

.sb-scr-dd-chev {
  width: 15px;
  height: 15px;
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform 0.16s ease, color 0.16s ease;
}

.sb-scr-dd.is-open .sb-scr-dd-chev {
  transform: rotate(180deg);
  color: #7DD3FC;
}

.sb-scr-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 60;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border-radius: 10px;
  background: #1B1D26;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.62);
}

.sb-scr-dd.is-open .sb-scr-dd-menu {
  display: grid;
}

.sb-scr-tab {
  outline: none;
  padding: 7px 6px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sb-scr-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #E2E8F0;
}

.sb-scr-tab.is-active {
  background: rgba(49, 130, 246, 0.22);
  border-color: rgba(56, 189, 248, 0.52);
  color: #F8FAFC;
  font-weight: 600;
}

.sb-scr-note {
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-bottom: 6px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #94A3B8;
  font-size: 11px;
  line-height: 1.42;
  word-break: keep-all;
}

.sb-scr-list {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-scr-row {
  flex: 0 0 auto;
  flex-shrink: 0;
  outline: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #E5E8EB;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.sb-scr-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.sb-scr-row.is-selected {
  background: rgba(49, 130, 246, 0.20);
}

.sb-scr-rank {
  flex: 0 0 18px;
  width: 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.sb-scr-rank.is-top3 {
  color: #38BDF8;
  font-weight: 800;
}

.sb-scr-left {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.sb-scr-name {
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-scr-chg {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.sb-scr-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6.5px;
  border-radius: 5px;
  white-space: nowrap;
}

@keyframes sb-scr-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sb-scr-skel-row {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 7px;
  pointer-events: none;
}

.sb-scr-skel-bar,
.sb-scr-skel-pill {
  display: inline-block;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.08) 25%,
    rgba(148, 163, 184, 0.19) 50%,
    rgba(148, 163, 184, 0.08) 75%
  );
  background-size: 200% 100%;
  animation: sb-scr-shimmer 1.35s ease-in-out infinite;
}

.sb-scr-skel-pill {
  flex-shrink: 0;
  width: 52px;
  height: 19px;
}

.sb-scr-empty {
  font-size: 11.5px;
  color: #8B95A1;
  padding: 14px 4px;
  text-align: center;
}

.sb-scr-retry-btn {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #222530;
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sb-scr-retry-btn:hover {
  background: #2C303E;
}

.sb-scr-caption {
  margin-top: 6px;
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.4;
  word-break: keep-all;
}

/* ====== /stocks SEO Directory Grid ====== */
.seo-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 8px;
}

.seo-dir-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #161820;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: border-color 0.13s ease, background-color 0.13s ease;
}

.seo-dir-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: #1D202B;
}

.seo-dir-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #F1F5F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-dir-meta {
  font-size: 11.5px;
  color: #64748B;
}
/* ====== v55 4-Pillar Enhancements ====== */
body.candliq-ios-app .web-only-ctrl {
  display: none !important;
}

/* Header Share Button (matches .fav-star-btn) */
.hdr-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6B7684;
  padding: 0;
  margin-left: -3px;
  transition: transform 0.14s ease, color 0.14s ease, background-color 0.14s ease;
  flex-shrink: 0;
}

.hdr-share-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #7DD3FC;
}

.hdr-share-btn:active {
  transform: scale(0.9);
}

/* Watchlist Backup & Restore Inline Box */
.sb-fav-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sb-fav-act-dot {
  color: #4B5563;
  font-size: 11px;
  user-select: none;
}

.sb-edit-text-btn.is-active-panel {
  color: #7DD3FC;
  font-weight: 700;
}

.sb-fav-sync-box {
  margin-top: 7px;
  padding: 10px 10px;
  border-radius: 9px;
  background: #14161E;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.sb-sync-desc {
  font-size: 11px;
  color: #8B95A1;
  line-height: 1.45;
  margin-bottom: 8px;
  word-break: keep-all;
}

.sb-sync-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 6px;
}

.sb-sync-btn {
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #1F222D;
  color: #CBD5E1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.13s ease, border-color 0.13s ease, color 0.13s ease;
}

.sb-sync-btn:hover {
  background: #282C3A;
  color: #FFFFFF;
}

.sb-sync-btn.is-primary {
  background: rgba(49, 130, 246, 0.18);
  border-color: rgba(56, 189, 248, 0.42);
  color: #E0F2FE;
}

.sb-sync-btn.is-primary:hover {
  background: rgba(49, 130, 246, 0.28);
}

.sb-sync-inp-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-sync-inp {
  flex: 1 1 auto;
  min-width: 0;
  height: 29px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #1D1F28;
  color: #F1F5F9;
  font-size: 11.5px;
  outline: none;
}

.sb-sync-inp:focus {
  border-color: rgba(56, 189, 248, 0.55);
}

.sb-sync-apply {
  flex: 0 0 auto;
  height: 29px;
  padding: 0 10px;
  border-radius: 7px;
  border: none;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sb-sync-apply:hover {
  background: #2563EB;
}

/* Chart Toolbar Overlays (매물대 / 피보나치 / 비교) */
.candliq-chart-toolbar {
  flex-wrap: wrap;
}

.chart-tb-left {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chart-cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.34);
  color: #99F6E4;
  line-height: 1.25;
}

.chart-cmp-clear {
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 13px;
  line-height: 1;
  padding: 0 1px;
  cursor: pointer;
}

.chart-cmp-clear:hover {
  color: #FFFFFF;
}

.chart-tb-sep {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0 2px;
  flex-shrink: 0;
}

.chart-ov-btn.is-active {
  background: rgba(49, 130, 246, 0.22);
  border-color: rgba(56, 189, 248, 0.58);
  color: #F8FAFC;
}

#btn-ov-cmp.is-active {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.55);
  color: #CCFBF1;
}

.chart-cmp-dd {
  position: relative;
  display: inline-flex;
}

#btn-ov-cmp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-cmp-chev {
  width: 12px;
  height: 12px;
  opacity: 0.78;
  transition: transform 0.15s ease;
}

.chart-cmp-dd.is-open .chart-cmp-chev {
  transform: rotate(180deg);
}

.chart-cmp-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1050;
  width: 214px;
  padding: 6px;
  border-radius: 10px;
  background: #1B1D26;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  flex-direction: column;
  gap: 3px;
}

.chart-cmp-dd.is-open .chart-cmp-menu {
  display: flex;
}

.chart-cmp-opt {
  width: 100%;
  padding: 6.5px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.chart-cmp-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.chart-cmp-opt.is-active {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.42);
  color: #CCFBF1;
}

.chart-cmp-custom {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-cmp-inp {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #13151D;
  color: #F8FAFC;
  font-size: 11.5px;
  outline: none;
}

.chart-cmp-inp:focus {
  border-color: rgba(45, 212, 191, 0.55);
}

.chart-cmp-go {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: none;
  background: #0D9488;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.chart-cmp-go:hover {
  background: #0F766E;
}

/* Toast Tones & Clickable Alert Toast */
#candliq-limit-toast {
  max-width: calc(100vw - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}

#candliq-limit-toast.tone-info {
  border-color: rgba(56, 189, 248, 0.48);
}

#candliq-limit-toast.tone-ok {
  border-color: rgba(34, 197, 94, 0.48);
}

#candliq-limit-toast.is-clickable {
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 760px) {
  .chart-tb-hint {
    display: none;
  }
  .chart-tb-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
  }
  .chart-tb-btn {
    padding: 0 7.5px;
    font-size: 11.5px;
    height: 26px;
  }
  .chart-cmp-menu {
    right: auto;
    left: 0;
  }
}
