@font-face {
  font-family: 'Pretendard Variable';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* 토스 디자인 시스템 값 */
:root {
  --grey-50: #f9fafb;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-300: #d1d6db;
  --grey-400: #b0b8c1;
  --grey-500: #8b95a1;
  --grey-600: #6b7684;
  --grey-700: #4e5968;
  --grey-800: #333d4b;
  --grey-900: #191f28;
  --blue: #3182f6;
  --blue-strong: #1b64da;
  --blue-weak: #e8f3ff;

  --bg: var(--grey-100);
  --surface: #ffffff;
  --fill: var(--grey-100);
  --fill-strong: var(--grey-200);
  --text-1: var(--grey-900);
  --text-2: var(--grey-700);
  --text-3: var(--grey-500);
  --line: var(--grey-200);
  --grid: var(--grey-100);

  --up: #f04452;
  --down: #3182f6;
  --up-weak: #ffeeee;
  --down-weak: #e8f3ff;
  --neutral-weak: var(--grey-100);
  --up-text: #e42939;
  --down-text: #1b64da;

  --ma5: #f5a623;
  --ma20: #12b886;
  --ma60: #9c5de6;
  --ma120: #8b95a1;
  --macd-signal: #f5a623;
  --crosshair: #8b95a1;
  --pill: #4e5968;
  --pill-text: #ffffff;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0e11;
    --surface: #18181d;
    --fill: #24242b;
    --fill-strong: #2f2f37;
    --text-1: #f2f4f6;
    --text-2: #b0b8c1;
    --text-3: #7e8590;
    --line: #2a2a31;
    --grid: #212127;
    --up: #f25866;
    --down: #4c94fb;
    --up-weak: rgba(242, 88, 102, 0.16);
    --down-weak: rgba(76, 148, 251, 0.16);
    --neutral-weak: #24242b;
    --up-text: #ff6d7a;
    --down-text: #6aa8ff;
    --blue: #4c94fb;
    --blue-strong: #6aa8ff;
    --blue-weak: rgba(76, 148, 251, 0.16);
    --ma120: #7e8590;
    --crosshair: #7e8590;
    --pill: #e5e8eb;
    --pill-text: #191f28;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e0e11;
  --surface: #18181d;
  --fill: #24242b;
  --fill-strong: #2f2f37;
  --text-1: #f2f4f6;
  --text-2: #b0b8c1;
  --text-3: #7e8590;
  --line: #2a2a31;
  --grid: #212127;
  --up: #f25866;
  --down: #4c94fb;
  --up-weak: rgba(242, 88, 102, 0.16);
  --down-weak: rgba(76, 148, 251, 0.16);
  --neutral-weak: #24242b;
  --up-text: #ff6d7a;
  --down-text: #6aa8ff;
  --blue: #4c94fb;
  --blue-strong: #6aa8ff;
  --blue-weak: rgba(76, 148, 251, 0.16);
  --ma120: #7e8590;
  --crosshair: #7e8590;
  --pill: #e5e8eb;
  --pill-text: #191f28;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum';
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.up {
  color: var(--up-text);
}
.down {
  color: var(--down-text);
}
.flat {
  color: var(--text-2);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 위 막대 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}
.brand svg {
  width: 22px;
  height: 22px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 440px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--fill);
}
.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  flex: none;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  height: 100%;
  font-size: 15px;
}
.search-box input::placeholder {
  color: var(--text-3);
}
.search-box input::-webkit-search-cancel-button {
  display: none;
}
.search-box kbd {
  font-family: inherit;
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  line-height: 20px;
}
.search-list {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  max-height: min(420px, 70vh);
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.search-list li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
}
.search-list li button[aria-selected='true'],
.search-list li button:hover {
  background: var(--fill);
}
.search-list .s-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-list .s-meta {
  color: var(--text-3);
  font-size: 13px;
  white-space: nowrap;
}
.search-empty {
  padding: 14px 12px;
  color: var(--text-3);
  font-size: 13px;
}
.top-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex: none;
}
.top-link {
  color: var(--text-2);
  font-weight: 700;
  padding: 8px 4px;
}
.top-link .short {
  display: none;
}
.top-link:hover {
  color: var(--text-1);
}

/* ---------- 화면 틀 ---------- */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}
.panel + .panel {
  margin-top: 16px;
}
.block-title,
.panel-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.block-head .more {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}
.caption {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ---------- 첫 화면 ---------- */
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}
.home .panel + .panel {
  margin-top: 0;
}
.home-main,
.home-side {
  display: grid;
  gap: 16px;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.market-tile {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: var(--fill);
  min-width: 0;
}
.market-tile:hover {
  background: var(--fill-strong);
}
.mt-name {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 700;
}
.mt-price {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-change {
  font-size: 13px;
  font-weight: 700;
}
.mt-spark {
  display: block;
  width: 100%;
  height: 36px;
  margin: 10px 0 8px;
}
.mt-signal {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-list li + li {
  border-top: 1px solid var(--line);
}
.stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.stock-row:hover .sr-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sr-name {
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-sub {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-spark {
  width: 72px;
  height: 28px;
}
.sr-right {
  text-align: right;
}
.sr-price {
  display: block;
  font-weight: 700;
  white-space: nowrap;
}
.sr-chg {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.sr-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-2);
  min-width: 0;
}
.sr-signal span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty {
  padding: 8px 0 4px;
  color: var(--text-2);
}
.empty p + p {
  margin-top: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.chip:hover {
  background: var(--fill-strong);
  color: var(--text-1);
}
.chip[aria-pressed='true'] {
  background: var(--blue-weak);
  color: var(--blue-strong);
}
.chip-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.term-rows li + li {
  border-top: 1px solid var(--line);
}
.term-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-align: left;
}
.term-row .tr-text {
  flex: 1;
  min-width: 0;
}
.term-row .tr-name {
  display: block;
  font-weight: 700;
}
.term-row .tr-short {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}
.term-row svg.chev {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex: none;
}
.term-row:hover .tr-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 종목 화면 ---------- */
.stock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
  align-items: start;
}
.col-main,
.col-side {
  min-width: 0;
}
.quote-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.q-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.q-meta {
  font-size: 13px;
  color: var(--text-3);
}
.q-price {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.q-change {
  font-weight: 700;
  margin-top: 2px;
}
.q-change .q-change-label {
  color: var(--text-3);
  font-weight: 500;
  margin-right: 4px;
}
.q-asof {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--text-2);
  font-weight: 700;
  flex: none;
}
.star svg {
  width: 18px;
  height: 18px;
}
.star[aria-pressed='true'] {
  color: var(--blue-strong);
  background: var(--blue-weak);
}
.star[aria-pressed='true'] svg path {
  fill: currentColor;
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--fill);
  margin-top: 20px;
}
.seg button {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  color: var(--text-3);
  font-weight: 700;
  white-space: nowrap;
}
.seg button[aria-selected='true'] {
  background: var(--surface);
  color: var(--text-1);
}
.seg button:hover:not([aria-selected='true']) {
  color: var(--text-1);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.legend .lg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 21px;
}
.legend.keys {
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 14px;
  margin-top: 4px;
}
.legend .lg-ma {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.legend .lg-ma i {
  width: 10px;
  height: 2px;
  border-radius: 2px;
  display: inline-block;
}
.legend .lg-ma i.dash {
  background: repeating-linear-gradient(90deg, var(--text-3) 0 3px, transparent 3px 6px);
}
.legend .lg-ma i.tri {
  width: 0;
  height: 0;
  border-radius: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--up);
  background: none;
}
.legend .lg-ma b {
  color: var(--text-2);
  font-weight: 700;
}
.legend .lg-date {
  color: var(--text-1);
  font-weight: 700;
}
.legend .lg-ohlc {
  white-space: nowrap;
}
.legend .lg-ohlc b {
  color: var(--text-2);
  font-weight: 700;
}
.legend .lg-break {
  flex-basis: 100%;
  height: 0;
}

.chart {
  position: relative;
  margin: 8px -8px 0 0;
  user-select: none;
  -webkit-user-select: none;
}
.chart-canvas {
  display: block;
  touch-action: pan-y;
  outline: none;
}
.chart-canvas:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.numbers .rows {
  margin-top: 8px;
}
.num-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 0;
}
.num-row + .num-row {
  border-top: 1px solid var(--line);
}
.num-row.clickable {
  cursor: pointer;
}
.num-row.now .nr-label,
.num-row.now .nr-value {
  color: var(--blue-strong);
}
.num-row.clickable:hover .nr-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nr-label {
  font-weight: 700;
}
.nr-cap {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-3);
  margin-top: -2px;
}
.nr-value {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.nr-bar {
  grid-column: 1 / -1;
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--fill);
  margin: 6px 0 2px;
}
.nr-bar .zone {
  position: absolute;
  top: 0;
  bottom: 0;
}
.nr-bar .zone.hot {
  background: var(--up-weak);
  right: 0;
  border-radius: 0 3px 3px 0;
}
.nr-bar .zone.cold {
  background: var(--down-weak);
  left: 0;
  border-radius: 3px 0 0 3px;
}
.nr-bar .dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--text-1);
  border: 3px solid var(--surface);
}
.nr-ends {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}
.sub-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  margin: 24px 0 0;
}
.sub-head:first-child {
  margin-top: 0;
}
.ma-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.ma-cell {
  font-size: 13px;
  color: var(--text-3);
}
.ma-cell b {
  display: block;
  font-size: 15px;
}
.ma-cell i {
  display: inline-block;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}

/* 풀이 */
.verdict-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 700;
}
.verdict-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-top: 4px;
}
.verdict-title.neutral {
  color: var(--text-1);
}
.gauge {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--fill);
  margin: 20px 0 6px;
}
.gauge .fillbar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}
.gauge .fillbar.up {
  background: var(--up);
}
.gauge .fillbar.down {
  background: var(--down);
}
.gauge .mid {
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--fill-strong);
  border-radius: 1px;
}
.gauge .dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--text-1);
  border: 3px solid var(--surface);
}
.gauge-ends {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}
.counts {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}
.counts b {
  font-size: 15px;
  margin-left: 4px;
}
.headline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.65;
}
.partial-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.signals {
  margin-top: 8px;
}
.sig-group + .sig-group {
  margin-top: 8px;
}
.sig-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  padding: 20px 0 4px;
}
.sig + .sig {
  border-top: 1px solid var(--line);
}
.sig-head {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-align: left;
}
.sig-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.sig-icon svg {
  width: 18px;
  height: 18px;
}
.sig-icon.up {
  background: var(--up-weak);
  color: var(--up);
}
.sig-icon.down {
  background: var(--down-weak);
  color: var(--down);
}
.sig-icon.neutral {
  background: var(--neutral-weak);
  color: var(--text-2);
}
.sig-title {
  display: block;
  font-weight: 700;
  line-height: 1.45;
}
.sig-desc {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 1px;
}
.sig-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag.up {
  background: var(--up-weak);
  color: var(--up-text);
}
.tag.down {
  background: var(--down-weak);
  color: var(--down-text);
}
.tag.neutral {
  background: var(--neutral-weak);
  color: var(--text-2);
}
.sig.open .sig-head .sig-title {
  color: var(--text-1);
}
.sig-body {
  padding: 0 0 20px 48px;
}
.sig-body p + p,
.sig-body p + .stat,
.sig-body .stat + p {
  margin-top: 12px;
}
.sig-body .why {
  color: var(--text-2);
}
.sig-body .caution {
  color: var(--text-2);
}
.sig-body .caution b {
  color: var(--text-1);
  margin-right: 6px;
}
.stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--fill);
}
.stat-title {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 700;
}
.stat-main {
  margin-top: 2px;
}
.stat-main b {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-right: 6px;
}
.stat-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--fill-strong);
  margin: 10px 0 8px;
}
.stat-bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
}
.stat-bar span.up {
  background: var(--up);
}
.stat-bar span.down {
  background: var(--down);
}
.stat-bar span.neutral {
  background: var(--text-3);
}
.stat-bar i {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--text-1);
  border-radius: 1px;
}
.stat-cap {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}
.sig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-soft {
  background: var(--fill);
  color: var(--text-2);
}
.btn-soft:hover {
  background: var(--fill-strong);
  color: var(--text-1);
}
.btn-blue {
  background: var(--blue-weak);
  color: var(--blue-strong);
}
.btn-blue:hover {
  filter: brightness(0.97);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  height: 56px;
  border-radius: 16px;
  font-size: 16px;
  width: 100%;
}
.btn-primary:hover {
  background: var(--blue-strong);
}
.more-btn {
  width: 100%;
  margin-top: 8px;
}
.chart-jump {
  display: none;
}

.disclaimer {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  padding: 16px 8px 0;
}

/* 불러오는 중 */
.skel {
  background: var(--fill);
  border-radius: 8px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
  }
}
.error-box {
  padding: 8px 0;
}
.error-box p {
  color: var(--text-2);
  margin: 4px 0 16px;
}

/* ---------- 용어 사전 ---------- */
.terms-page {
  max-width: 760px;
  margin: 0 auto;
}
.terms-page .panel-title {
  margin-bottom: 4px;
}
.terms-group + .terms-group {
  margin-top: 16px;
}
.terms-group h2 {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ---------- 아래에서 올라오는 창 ---------- */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sheet-wrap[hidden] {
  display: none;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
}
.sheet-fig {
  background: var(--fill);
  border-radius: 16px;
  padding: 12px 8px;
  margin-bottom: 20px;
}
.sheet-fig svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
}
.sheet h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.sheet .sheet-short {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 2px;
}
.sheet .sheet-body {
  margin-top: 16px;
  color: var(--text-2);
}
.sheet .sheet-body p + p {
  margin-top: 10px;
}
.sheet .btn-primary {
  margin-top: 24px;
}
.term-link {
  color: var(--text-1);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--grey-400);
  text-underline-offset: 3px;
}

/* 그림 색 */
.fig .fu {
  fill: var(--up);
}
.fig .fd {
  fill: var(--down);
}
.fig .fu-s {
  stroke: var(--up);
  stroke-width: 1.5;
}
.fig .fd-s {
  stroke: var(--down);
  stroke-width: 1.5;
}
.fig .fu-soft {
  fill: var(--up);
  opacity: 0.35;
}
.fig .fd-soft {
  fill: var(--down);
  opacity: 0.35;
}
.fig .fl {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.fig .fl-text {
  stroke: var(--text-1);
}
.fig .fl-text2 {
  stroke: var(--text-3);
}
.fig .fl-up {
  stroke: var(--up);
}
.fig .fl-down {
  stroke: var(--down);
}
.fig .fl-ma5 {
  stroke: var(--ma5);
}
.fig .fl-ma20 {
  stroke: var(--ma20);
}
.fig .fl-ma60 {
  stroke: var(--ma60);
}
.fig .fl-ma120 {
  stroke: var(--ma120);
}
.fig .fl-signal {
  stroke: var(--macd-signal);
}
.fig .fl-dash {
  stroke-dasharray: 5 4;
}
.fig .fl-band {
  fill: none;
  stroke: var(--blue);
  stroke-opacity: 0.5;
  stroke-width: 1.2;
}
.fig .fband {
  fill: var(--blue);
  fill-opacity: 0.08;
}
.fig .fz-up {
  fill: var(--up);
  fill-opacity: 0.08;
}
.fig .fz-down {
  fill: var(--down);
  fill-opacity: 0.08;
}
.fig .fh {
  stroke: var(--text-3);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.fig .fh-up {
  stroke: var(--up);
}
.fig .fh-down {
  stroke: var(--down);
}
.fig .fbox {
  fill: var(--text-3);
  fill-opacity: 0.1;
  stroke: var(--text-3);
  stroke-opacity: 0.4;
}
.fig .ft {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-2);
}
.fig .ft-text2 {
  fill: var(--text-3);
}
.fig .ft-up {
  fill: var(--up);
}
.fig .ft-down {
  fill: var(--down);
}
.fig .ft-neutral {
  fill: var(--text-3);
}
.fig .ft-ma5 {
  fill: var(--ma5);
}
.fig .ft-ma20 {
  fill: var(--ma20);
}
.fig .ft-ma60 {
  fill: var(--ma60);
}
.fig .ft-ma120 {
  fill: var(--ma120);
}
.fig .fm-up {
  fill: var(--up-weak);
}
.fig .fm-down {
  fill: var(--down-weak);
}
.fig .fm-neutral {
  fill: var(--surface);
}
.fig .ftm {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
}
.fig .ftm-up {
  fill: var(--up);
}
.fig .ftm-down {
  fill: var(--down);
}
.fig .ftm-neutral {
  fill: var(--text-2);
}
.fig .fdot-up {
  fill: var(--up);
}
.fig .fdot-down {
  fill: var(--down);
}

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .home {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 한 줄일 때는 차트 → 풀이 → 신호 → 수치 순서 */
  .stock-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .col-main,
  .col-side {
    display: contents;
  }
  .stock-grid .panel + .panel {
    margin-top: 0;
  }
  #chart-panel {
    order: 1;
  }
  #verdict {
    order: 2;
  }
  #lens {
    order: 3;
  }
  #signals {
    order: 4;
  }
  #news {
    order: 5;
  }
  #numbers {
    order: 6;
  }
  .stock-grid .disclaimer {
    order: 7;
    padding-top: 0;
  }
  .chart-jump {
    display: inline-flex;
  }
}
@media (max-width: 720px) {
  .topbar-inner {
    padding: 0 16px;
    gap: 12px;
    height: 56px;
  }
  .brand span {
    display: none;
  }
  .top-links {
    gap: 10px;
  }
  .top-link .long {
    display: none;
  }
  .top-link .short {
    display: inline;
  }
  .search-box kbd {
    display: none;
  }
  .search-box {
    height: 40px;
  }
  .search-list {
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
  }
  main {
    padding: 0 0 48px;
  }
  .panel {
    border-radius: 0;
    padding: 20px 16px;
  }
  .panel + .panel,
  .stock-grid,
  .home,
  .home-main,
  .home-side {
    gap: 12px;
  }
  .panel + .panel {
    margin-top: 12px;
  }
  .stock-grid .panel + .panel {
    margin-top: 0;
  }
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .q-price {
    font-size: 28px;
  }
  .seg button {
    font-size: 13px;
  }
  .chart {
    margin-right: -4px;
  }
  .sig-body {
    padding-left: 0;
  }
  .ma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-row {
    grid-template-columns: minmax(0, 1fr) 56px auto;
    gap: 12px;
  }
  .sr-spark {
    width: 56px;
  }
  .sheet-wrap {
    place-items: end stretch;
    padding: 0;
  }
  .sheet {
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .disclaimer {
    padding: 16px 16px 0;
  }
}

/* 잠깐 뜨는 알림 */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  background: var(--grey-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  #toast {
    transition: none;
  }
}

/* ---------- 비밀번호 ---------- */
.login-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login {
  width: min(360px, 100%);
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 24px 24px;
}
.login-logo {
  width: 40px;
  height: 40px;
  display: block;
}
.login-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 4px;
}
.login-input {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--fill);
  padding: 0 16px;
  font-size: 20px;
  letter-spacing: 0.2em;
  outline: none;
}
.login-input:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.login-input:placeholder-shown {
  letter-spacing: 0;
  font-size: 17px;
}
.login-err {
  min-height: 22px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--up-text);
}
.login .btn-primary:disabled {
  opacity: 0.6;
}

/* ---------- 경제학 연구로 보면 ---------- */
.lens-list {
  margin-top: 8px;
}
.lens-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}
.lens-row + .lens-row {
  border-top: 1px solid var(--line);
}
.lens-title {
  display: block;
  font-weight: 700;
}
.lens-title b {
  margin-left: 4px;
}
.lens-text {
  display: block;
  color: var(--text-2);
  margin-top: 2px;
}
.res-cite {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.lens-foot {
  margin-top: 8px;
}

/* 신호 풀이 속 연구 칸 */
.res {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.res-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.res p {
  color: var(--text-2);
}
.tag.lv-strong {
  background: var(--blue-weak);
  color: var(--blue-strong);
}
.tag.lv-medium,
.tag.lv-mixed {
  background: var(--fill);
  color: var(--text-2);
}
.tag.lv-weak {
  background: var(--fill);
  color: var(--text-3);
}

/* ---------- 뉴스·리포트 풀이 ---------- */
.seg-sm {
  margin-top: 16px;
}
.seg-sm button {
  height: 34px;
  font-size: 15px;
}
.news-body {
  margin-top: 8px;
}
.empty-line {
  padding: 16px 0 4px;
}
.nw + .nw {
  border-top: 1px solid var(--line);
}
.nw-head {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  display: block;
}
.nw-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.45;
}
.nw.open .nw-title {
  -webkit-line-clamp: unset;
}
.nw-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}
.nw-body {
  padding: 0 0 18px;
}
.nw-preview {
  color: var(--text-2);
  margin-bottom: 12px;
}
.btn-md {
  height: 44px;
  font-size: 15px;
  border-radius: 12px;
  width: 100%;
}
.paste {
  margin-top: 12px;
}
.paste textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--fill);
  padding: 14px 16px;
  font: inherit;
  color: var(--text-1);
  resize: vertical;
  min-height: 120px;
  outline: none;
  margin-bottom: 10px;
}
.paste textarea:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.paste textarea::placeholder {
  color: var(--text-3);
}
.paste-result {
  margin-top: 16px;
}
.ana-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--fill);
  color: var(--text-2);
  font-weight: 700;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--fill-strong);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}
.ana-error {
  color: var(--up-text);
  margin-bottom: 10px;
}
.ana-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ana-headline {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 10px;
}
.ana-range {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--fill);
}
.ana-range-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 700;
}
.ana-range-top b {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.rbar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--fill-strong);
  margin: 12px 0 4px;
}
.rbar-zero {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--text-3);
  border-radius: 1px;
}
.rbar-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}
.rbar-seg.up {
  background: var(--up);
}
.rbar-seg.down {
  background: var(--down);
}
.rbar-seg.neutral {
  background: var(--text-3);
}
.rbar-now {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--text-1);
  border: 2px solid var(--surface);
}
.rbar-ends {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.ana-range .caption + .caption {
  margin-top: 4px;
}
.ana-report {
  margin-top: 12px;
  padding: 4px 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.ana-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  margin: 16px 0 4px;
}
.ana p {
  color: var(--text-1);
}
.ana-list li {
  position: relative;
  padding-left: 14px;
  color: var(--text-2);
}
.ana-list li + li {
  margin-top: 4px;
}
.ana-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}
.ana-list li b {
  color: var(--text-1);
  margin-right: 4px;
}
.ana .ana-foot {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
}
.ana .ana-foot + .ana-foot {
  margin-top: 4px;
}
.ana .more {
  display: inline-block;
  margin-top: 10px;
}

/* ---------- 연구로 보는 차트 ---------- */
.research-page .panel + .panel {
  margin-top: 16px;
}
.rs-row {
  padding: 14px 0;
}
.rs-row + .rs-row {
  border-top: 1px solid var(--line);
}
.rs-name {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.rs-row p {
  color: var(--text-2);
}
.rs-studies {
  margin-top: 8px;
}
.rs-studies li {
  padding: 10px 0;
  color: var(--text-2);
}
.rs-studies li + li {
  border-top: 1px solid var(--line);
}
.rs-studies b {
  color: var(--text-1);
  margin-right: 6px;
}
.rs-guide {
  margin: 12px 0 0;
  padding-left: 20px;
}
.rs-guide li {
  padding: 4px 0;
}
.rs-sources {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.rs-sources li {
  padding: 3px 0;
}
@media (max-width: 720px) {
  .research-page .panel + .panel {
    margin-top: 12px;
  }
}
.sig-body .res + p {
  margin-top: 12px;
}

/* ---------- 공부하기 ---------- */
.nowrap { white-space: nowrap; }
.learn-page .panel + .panel,
.article-page .panel + .panel { margin-top: 16px; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.lesson-row .tr-text { flex: 1; min-width: 0; }
.lesson-row .tr-name, .column-card .tr-name { display: block; font-weight: 700; }
.lesson-row .tr-short, .column-card .tr-short { display: block; font-size: 13px; color: var(--text-3); }
.lesson-row:hover .tr-name, .column-card:hover .tr-name { text-decoration: underline; text-underline-offset: 3px; }
.lesson-no { width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); flex: none; }
.column-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.column-card { display: block; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.column-thumb { display: block; background: var(--fill); border-radius: 10px; padding: 6px; margin-bottom: 10px; }
.column-thumb svg { display: block; width: 100%; height: auto; }
.article { padding-top: 20px; }
.art-kind { font-size: 13px; color: var(--text-3); font-weight: 700; margin-top: 16px; }
.art-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-top: 4px; }
.art-lead { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-top: 10px; }
.art-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.art-h { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; margin: 36px 0 8px; }
.art-p { font-size: 16px; line-height: 1.8; color: var(--text-1); }
.art-p + .art-p { margin-top: 14px; }
.art-list { margin: 8px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.8; }
.art-list li + li { margin-top: 6px; }
.art-fig { margin: 20px 0; }
.art-fig-box { background: var(--fill); border-radius: 16px; padding: 12px 8px; }
.art-fig-box svg { display: block; width: 100%; height: auto; max-height: 240px; }
.art-fig figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }
.art-live-chart { position: relative; min-height: 300px; }
.art-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.art-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.art-note { margin: 20px 0; padding: 16px 18px; border-radius: 16px; background: var(--fill); }
.art-note b { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.art-note p { font-size: 15px; line-height: 1.75; color: var(--text-1); }
.art-quote { margin: 24px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--text-1); font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: -0.01em; }
.art-studies, .art-res { margin: 16px 0; }
.art-studies .res-title { margin-bottom: 2px; }
.art-studies .rs-studies, .art-res .rs-studies { margin-top: 4px; }
.rs-studies .res-cite { margin-top: 2px; }
.art-fact { margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; line-height: 1.7; }
.art-fact-label { display: block; font-size: 13px; font-weight: 700; color: var(--blue-strong); margin-bottom: 2px; }
.sheet-more { display: block; margin-top: 16px; font-weight: 700; color: var(--blue-strong); }
@media (max-width: 720px) {
  .column-grid { grid-template-columns: minmax(0, 1fr); }
  .learn-page .panel + .panel, .article-page .panel + .panel { margin-top: 12px; }
  .art-title { font-size: 24px; }
}
@media (max-width: 720px) {
  .column-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px; }
  .column-thumb { grid-row: span 2; margin: 0; padding: 4px; }
}

/* ---------- 분봉 버튼이 늘어서 좁은 화면에서도 한 줄에 들어가게 ---------- */
.seg button { min-width: 0; padding: 0 2px; }
@media (max-width: 420px) {
  .seg:not(.seg-sm) button { font-size: 13px; letter-spacing: -0.02em; }
}

/* ---------- AI로 더 쉽게 설명 ---------- */
.explain { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.explain .caption { margin-top: 6px; }
.explain-btn { width: 100%; }
.explain-box .ana-headline { margin-top: 4px; }
.explain-label { font-size: 13px; font-weight: 700; color: var(--blue-strong); }
.explain-p { margin-top: 8px; line-height: 1.75; }
.explain-analogy { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--fill); line-height: 1.7; }
.explain-analogy b { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 2px; }
.explain-box .caution { margin-top: 12px; font-size: 14px; color: var(--text-2); line-height: 1.65; }
.explain-box .caution b { display: block; font-size: 13px; color: var(--text-1); margin-bottom: 2px; }
.explain-box .ana-foot { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ---------- 관심 종목 새 신호 ---------- */
.alert-list { margin-top: 8px; }
.alert-list li + li { border-top: 1px solid var(--line); }
.alert-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; }
.alert-row:hover .sig-title { text-decoration: underline; text-underline-offset: 3px; }
.alert-text { min-width: 0; }
.new-dot { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px; background: var(--blue-weak); color: var(--blue-strong); }
#notify-panel .chip-sm[aria-pressed='true'] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- 좁은 휴대폰에서 위 메뉴가 화면 밖으로 밀리지 않게 ---------- */
.search { min-width: 0; }
.search-box input { min-width: 0; width: 100%; }
@media (max-width: 420px) {
  .topbar-inner { gap: 10px; padding: 0 12px; }
  .top-links { gap: 2px; }
  .top-link { padding: 8px 5px; font-size: 15px; }
  .search-box { padding: 0 10px; }
  .search-box input::placeholder { font-size: 14px; }
}
