:root {
  --bg: #070d16;
  --bg-2: #0c1421;
  --bg-3: #101a2b;
  --panel: rgba(16, 26, 43, 0.78);
  --panel-strong: rgba(20, 32, 52, 0.94);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(143, 178, 229, 0.18);
  --line-strong: rgba(128, 169, 239, 0.34);
  --text: #f8fbff;
  --muted: #aab7c9;
  --subtle: #73839c;
  --blue: #63a8ff;
  --cyan: #67e8f9;
  --green: #83e6a7;
  --yellow: #dfcf6f;
  --red: #ff6f74;
  --orange: #ff9b43;
  --purple: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Pretendard", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(99, 168, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(131, 230, 167, 0.12), transparent 28%),
    radial-gradient(circle at 76% 72%, rgba(167, 139, 250, 0.12), transparent 32%),
    linear-gradient(180deg, #07101b 0%, #09111d 44%, #060b13 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #4f9cff, #78c6ff);
  color: #06101e;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(79, 156, 255, 0.22);
}

button:hover,
.primary-link:hover,
.secondary-link:hover,
.link-list a:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

input {
  width: 100%;
  border: 1px solid rgba(143, 178, 229, 0.18);
  background: rgba(5, 12, 22, 0.72);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
  font-weight: 850;
}

input::placeholder {
  color: rgba(170, 183, 201, 0.58);
}

input:focus {
  border-color: rgba(99, 168, 255, 0.8);
  box-shadow: 0 0 0 5px rgba(99, 168, 255, 0.12);
}

.app-shell {
  width: min(calc(100vw - 40px), 3200px);
  margin: 0 auto;
  padding: 20px 0 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 -10px 18px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(143, 178, 229, 0.08);
  background: rgba(7, 13, 22, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #0d1a2c;
  border: 1px solid rgba(99, 168, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 14px 36px rgba(0,0,0,0.32);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 850;
}

.header-actions > a {
  padding: 10px 12px;
  border-radius: 999px;
}

.header-actions > a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.header-login-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(131, 230, 167, 0.38);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06101e;
  box-shadow: 0 12px 28px rgba(103, 232, 249, 0.14);
}

.login-page {
  scroll-margin-top: 92px;
  margin: 20px 0 28px;
}

.login-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 4%, rgba(126, 231, 166, 0.13), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(99, 168, 255, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    var(--panel);
}

.login-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.login-panel .section-title {
  margin-bottom: 0;
  align-items: flex-start;
}

.login-panel .section-title h2 {
  margin-top: 8px;
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.login-panel .section-title p {
  max-width: 820px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 800;
}

.login-panel .icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-top: 2px;
}

.login-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: 20px;
}

.login-provider-card {
  display: flex;
  min-height: 286px;
  padding: 26px;
  border: 1px solid rgba(143, 178, 229, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.82), rgba(5, 12, 22, 0.68));
  flex-direction: column;
  justify-content: space-between;
}

.login-provider-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.login-button-stack {
  width: min(100%, 440px);
  margin-top: 22px;
}

.login-provider-card .google-box {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  overflow: hidden;
}

.login-provider-card .google-box > div,
.login-provider-card .google-box iframe {
  max-width: 100% !important;
}

.login-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.login-status-grid .hint {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(126, 231, 166, 0.12);
  border-radius: 14px;
  background: rgba(126, 231, 166, 0.06);
  color: rgba(216, 227, 243, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.otp-form-body {
  margin-top: 24px;
}

.hero {
  display: block;
  margin: 22px 0 24px;
}

.hero.hero-live-only {
  min-height: auto;
}

.hero-copy,
.live-board,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 4.2vw, 88px);
  border-radius: var(--radius-xl);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -150px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 168, 255, 0.28), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  color: var(--green);
  font-weight: 950;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin-bottom: 18px;
}

h1 {
  max-width: 1120px;
  font-size: clamp(54px, 5.3vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.075em;
  word-break: keep-all;
}

.subtitle {
  margin-top: 24px;
  max-width: 980px;
  color: var(--muted);
  font-size: clamp(19px, 1.45vw, 27px);
  line-height: 1.58;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 950;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.primary-link {
  color: #06101e;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 18px 44px rgba(103, 232, 249, 0.18);
}

.secondary-link {
  color: var(--text);
  border: 1px solid rgba(143, 178, 229, 0.26);
  background: rgba(255, 255, 255, 0.055);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.trust-row div,
.market-card,
.feed-item,
.kv,
.ticker-item,
.flow-row {
  border: 1px solid rgba(143, 178, 229, 0.12);
  background: rgba(5, 12, 22, 0.42);
}

.trust-row div {
  border-radius: 22px;
  padding: 18px;
}

.trust-row strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.trust-row span {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-weight: 850;
}

.live-board {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 0;
}

.hero.hero-live-only .live-board {
  min-height: 0;
}

.live-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(143, 178, 229, 0.14);
  font-size: 18px;
}

.live-board-head > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(131, 230, 167, 0.12);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.market-card {
  border-radius: 22px;
  padding: 18px;
}

.market-card .market-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.market-card strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.market-card .price {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--text);
}

.market-card .change,
.market-card .source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.market-card.up .change {
  color: var(--green);
}

.market-card.up .price {
  color: var(--green);
  text-shadow: 0 0 26px rgba(126, 231, 166, 0.14);
}

.market-card.down .change {
  color: var(--red);
}

.market-card.down .price {
  color: var(--red);
  text-shadow: 0 0 26px rgba(255, 107, 107, 0.14);
}

.live-feed {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
}

.feed-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--blue);
}

.feed-dot.up,
.feed-dot.ready,
.feed-dot.secure {
  background: var(--green);
}

.feed-dot.down {
  background: var(--red);
}

.feed-dot.ai {
  background: var(--purple);
}

.feed-item strong {
  font-size: 15px;
}

.feed-item span,
.board-footnote,
.hint,
.notice-line,
.section-title p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.board-footnote {
  margin-top: auto;
  padding-top: 18px;
  color: var(--subtle);
}

.env-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 168, 255, 0.28);
  background: rgba(99, 168, 255, 0.11);
  color: #a7ceff;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 950;
  white-space: nowrap;
}

.badge.muted {
  color: var(--muted);
  border-color: rgba(170, 183, 201, 0.18);
  background: rgba(170, 183, 201, 0.075);
}

.card {
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 0;
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 24px;
}

.workspace-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.workspace-sidebar {
  border: 1px solid rgba(143, 178, 229, 0.16);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(6, 12, 22, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.workspace-main {
  min-width: 0;
  display: block;
}

.workspace-main .tab-panel.active {
  display: grid;
  gap: 22px;
}

.nasdaq-board-section {
  margin-top: 30px;
  min-height: 62vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 2.2vw, 42px);
  background:
    radial-gradient(circle at 12% 0%, rgba(131, 230, 167, 0.14), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(99, 168, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(19, 31, 50, 0.92), rgba(9, 15, 25, 0.96));
  box-shadow: var(--shadow);
}

.nasdaq-board-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(143, 178, 229, 0.14);
}

.nasdaq-board-toolbar h2 {
  font-size: clamp(34px, 3.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.nasdaq-board-toolbar p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.nasdaq-board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nasdaq-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.nasdaq-quote-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: start;
  width: 100%;
  min-height: 176px;
  padding: 24px;
  border: 1px solid rgba(143, 178, 229, 0.13);
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  background: rgba(5, 12, 22, 0.48);
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nasdaq-quote-card:hover {
  transform: translateY(-2px);
  border-color: rgba(131, 230, 167, 0.32);
  background: rgba(9, 19, 32, 0.78);
}

.nasdaq-quote-card .quote-symbol {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.nasdaq-quote-card .quote-name {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nasdaq-quote-card .quote-price {
  grid-column: 1 / -1;
  font-size: 40px;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--text);
}

.nasdaq-quote-card .quote-change {
  justify-self: end;
  color: var(--muted);
  font-weight: 950;
}

.nasdaq-quote-card.up .quote-change {
  color: var(--green);
}

.nasdaq-quote-card.up .quote-price {
  color: var(--green);
  text-shadow: 0 0 28px rgba(126, 231, 166, 0.14);
}

.nasdaq-quote-card.down .quote-change {
  color: var(--red);
}

.nasdaq-quote-card.down .quote-price {
  color: var(--red);
  text-shadow: 0 0 28px rgba(255, 107, 107, 0.14);
}

.nasdaq-quote-card .quote-meta,
.nasdaq-quote-card .quote-status {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.nasdaq-quote-card .quote-status {
  justify-self: end;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toss-live-card {
  display: grid;
  gap: 18px;
}

.toss-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.toss-live-grid h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.orderbook-rows {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(143, 178, 229, 0.12);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.46);
}

.orderbook-rows strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.orderbook-rows div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 850;
}

.orderbook-rows.ask span {
  color: var(--red);
}

.orderbook-rows.bid span {
  color: var(--green);
}

.sidebar-kicker {
  padding: 6px 4px 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.warning-card {
  border-color: rgba(255, 155, 67, 0.28);
  background: linear-gradient(180deg, rgba(255, 155, 67, 0.11), rgba(16, 26, 43, 0.78));
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.045em;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 168, 255, 0.14);
  color: #dcecff;
  font-weight: 950;
  flex: 0 0 auto;
}

.auth-card {
  margin-top: 0;
}

.auth-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.workspace-sidebar .auth-grid,
.workspace-sidebar .inline-form,
.workspace-sidebar .profile-card {
  grid-template-columns: 1fr;
  flex-direction: column;
}

.workspace-sidebar .auth-card,
.workspace-sidebar .profile-card {
  padding: 20px;
}

.workspace-sidebar .section-title {
  margin-bottom: 16px;
}

.workspace-sidebar .section-title h2 {
  font-size: 24px;
}

.workspace-sidebar .section-title p,
.workspace-sidebar .hint,
.workspace-sidebar label {
  font-size: 13px;
}

.workspace-sidebar .inline-form {
  display: grid;
}

.google-box,
.apple-login-button,
.otp-box,
.search-row,
.inline-form {
  width: 100%;
}

.apple-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #05070b;
  color: #fff;
  box-shadow: none;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.apple-login-button span {
  font-size: 20px;
  line-height: 1;
}

.otp-box label,
.card label {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin: 14px 0 8px;
}

.inline-form,
.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  min-height: 66px;
  font-size: 20px;
}

.search-row button {
  min-width: 150px;
}

.ghost {
  background: rgba(255, 255, 255, 0.055);
  color: #b9d8ff;
  border: 1px solid rgba(99, 168, 255, 0.22);
  box-shadow: none;
}

.ghost.danger,
.danger {
  color: #ffb4b7;
  border-color: rgba(255, 111, 116, 0.26);
  background: rgba(255, 111, 116, 0.1);
}

.danger-solid {
  color: #100a05;
  background: linear-gradient(135deg, var(--orange), #ff704b);
}

.profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.workspace-sidebar .profile-actions {
  justify-content: flex-start;
}

.tabs {
  position: static;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  margin: 0;
  border: 1px solid rgba(143, 178, 229, 0.17);
  border-radius: 24px;
  background: rgba(6, 12, 22, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24);
}

.tab {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  justify-content: flex-start;
  text-align: left;
  border-radius: 18px;
}

.tab.active {
  color: #07101b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

#dataResult.result-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

#dataResult .data-card {
  grid-column: span 4;
}

#dataResult .data-card.full-card {
  grid-column: 1 / -1;
}

#dataResult .data-card.wide-card {
  grid-column: span 6;
}

.market-overview {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(131, 230, 167, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(30, 44, 66, 0.95), rgba(14, 22, 36, 0.96));
}

.market-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.market-overview-head h3 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.06em;
  margin: 4px 0 6px;
}

.market-overview-head p {
  color: var(--muted);
  font-weight: 900;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.quote-box {
  min-width: 220px;
  text-align: right;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(143, 178, 229, 0.16);
  background: rgba(5, 12, 22, 0.36);
}

.quote-box strong {
  display: block;
  font-size: clamp(32px, 4.8vw, 54px);
  letter-spacing: -0.05em;
}

.quote-box span {
  display: block;
  margin-top: 5px;
  font-weight: 1000;
}

.quote-box.positive span {
  color: var(--green);
}

.quote-box.positive strong {
  color: var(--green);
  text-shadow: 0 0 30px rgba(126, 231, 166, 0.14);
}

.quote-box.negative span {
  color: var(--red);
}

.quote-box.negative strong {
  color: var(--red);
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.14);
}

.market-key-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.market-key {
  border: 1px solid rgba(143, 178, 229, 0.11);
  background: rgba(5, 12, 22, 0.34);
  border-radius: 18px;
  padding: 15px;
  min-height: 86px;
}

.market-key span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 8px;
}

.market-key strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  word-break: break-word;
}

.data-status-line {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.focus-board {
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 168, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(30, 44, 66, 0.94), rgba(14, 22, 36, 0.96));
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.signal-tile {
  min-height: 142px;
  border: 1px solid rgba(143, 178, 229, 0.12);
  background: rgba(5, 12, 22, 0.35);
  border-radius: 22px;
  padding: 16px;
}

.signal-tile span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(99, 168, 255, 0.1);
  color: #bdd8ff;
  font-size: 12px;
  font-weight: 1000;
}

.signal-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.signal-tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.signal-tile.good {
  border-color: rgba(131, 230, 167, 0.22);
  background: linear-gradient(180deg, rgba(36, 76, 61, 0.42), rgba(5, 12, 22, 0.36));
}

.signal-tile.good span,
.signal-tile.good strong {
  color: var(--green);
}

.signal-tile.warn {
  border-color: rgba(244, 214, 112, 0.23);
  background: linear-gradient(180deg, rgba(89, 76, 36, 0.34), rgba(5, 12, 22, 0.36));
}

.signal-tile.warn span,
.signal-tile.warn strong {
  color: var(--yellow);
}

.signal-tile.bad {
  border-color: rgba(255, 92, 92, 0.22);
  background: linear-gradient(180deg, rgba(88, 40, 48, 0.38), rgba(5, 12, 22, 0.36));
}

.signal-tile.bad span,
.signal-tile.bad strong {
  color: #ff9a9a;
}

.signal-tile.muted {
  opacity: 0.72;
}

.dataset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-weight: 950;
}

.dataset-head span,
.dataset-head b {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(99, 168, 255, 0.1);
  color: #bdd8ff;
  font-size: 12px;
}

.dataset-head b {
  background: rgba(131, 230, 167, 0.1);
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid rgba(143, 178, 229, 0.11);
  background: rgba(5, 12, 22, 0.34);
  border-radius: 18px;
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  word-break: break-word;
}

.mini-rows {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(143, 178, 229, 0.1);
  border-radius: 17px;
  background: rgba(7, 15, 27, 0.42);
}

.mini-row strong,
.mini-row b {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.mini-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.mini-row b {
  color: #9fd0ff;
  white-space: nowrap;
}

.data-empty {
  border: 1px dashed rgba(143, 178, 229, 0.18);
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  font-weight: 900;
  line-height: 1.55;
  background: rgba(7, 15, 27, 0.34);
}

.data-empty small {
  display: block;
  margin-top: 6px;
  color: inherit;
  opacity: 0.85;
}

.data-empty.error {
  color: #ff8d8d;
  border-color: rgba(255, 100, 100, 0.22);
  background: rgba(255, 76, 76, 0.08);
}

#analysisResult .analysis-card {
  display: grid;
  gap: 18px;
}

.notice-line {
  border-top: 1px solid rgba(143, 178, 229, 0.14);
  margin-top: 18px;
  padding-top: 16px;
  text-align: center;
}

.data-card h3,
.analysis-card h3,
.history-card h3 {
  font-size: 24px;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kv {
  border-radius: 18px;
  padding: 15px;
}

.kv span {
  display: block;
  color: var(--subtle);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 7px;
}

.kv strong {
  font-size: 20px;
  word-break: break-word;
}

.ticker-list {
  display: grid;
  gap: 12px;
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-radius: 22px;
}

.ticker-item strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.flow-card {
  border: 1px solid rgba(131, 230, 167, 0.28);
  background:
    radial-gradient(circle at 88% 14%, rgba(131, 230, 167, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(43, 92, 75, 0.46), rgba(16, 26, 43, 0.86));
}

.flow-row {
  padding: 17px;
  border-radius: 22px;
  margin-top: 12px;
}

.flow-row h3 {
  margin-top: 8px;
}

.bar {
  height: 13px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(223, 207, 111, 0.35);
  margin: 12px 0;
}

.bar > i {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: inherit;
}

.pre {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(5, 12, 22, 0.64);
  border: 1px solid rgba(143, 178, 229, 0.1);
  border-radius: 20px;
  padding: 18px;
  color: #cbd5e1;
  font: 700 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 34px 0 20px;
  padding: 22px 4px 0;
  border-top: 1px solid rgba(143, 178, 229, 0.12);
  color: var(--subtle);
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #9fd0ff;
  font-weight: 950;
}

@media (min-width: 1600px) {
  .site-header {
    padding: 14px 18px;
    border-radius: 24px;
    border: 1px solid rgba(143, 178, 229, 0.1);
    background: rgba(7, 13, 22, 0.64);
  }

  .hero {
    grid-template-columns: minmax(0, 1.42fr) minmax(620px, 0.58fr);
  }

  .live-board {
    min-height: 500px;
  }

  .workspace-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .card {
    padding: 30px;
  }

  .section-title h2 {
    font-size: clamp(30px, 2vw, 42px);
  }

  #dataResult .data-card {
    grid-column: span 3;
  }

  #dataResult .data-card.wide-card {
    grid-column: span 4;
  }

  .market-overview-head h3 {
    font-size: clamp(58px, 4vw, 92px);
  }
}

@media (min-width: 2200px) {
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(680px, 0.5fr);
  }

  .workspace-shell {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .market-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.policy-page {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: 34px 0 80px;
}

.policy-page .brand {
  display: inline-flex;
  margin-bottom: 26px;
}

.policy-card h1 {
  margin: 6px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.07em;
}

.policy-card h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.policy-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.75;
}

.history-toolbar {
  display: flex;
  justify-content: flex-end;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  border: 1px solid rgba(143, 178, 229, 0.12);
  border-radius: 18px;
  background: rgba(5, 12, 22, 0.42);
  padding: 16px;
  color: #b9d8ff;
  font-weight: 950;
  transition: transform 0.16s ease, background 0.16s ease;
}

.rail-checklist {
  display: grid;
  gap: 10px;
}

.rail-checklist span {
  position: relative;
  padding: 13px 14px 13px 36px;
  border: 1px solid rgba(143, 178, 229, 0.12);
  border-radius: 16px;
  background: rgba(5, 12, 22, 0.42);
  color: var(--muted);
  font-weight: 850;
}

.rail-checklist span::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  transform: translateY(-50%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(8, 15, 27, 0.96);
  border: 1px solid rgba(99, 168, 255, 0.24);
  color: var(--text);
  font-weight: 950;
  box-shadow: var(--shadow);
  z-index: 50;
}

.hidden {
  display: none !important;
}

.loading {
  opacity: 0.72;
  pointer-events: none;
}

.error-text {
  color: var(--red);
  font-weight: 950;
}

.success-text {
  color: var(--green);
  font-weight: 950;
}

@media (max-width: 1320px) {
  .workspace-shell {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }

  .market-key-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .live-board {
    min-height: 520px;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }

  .tabs {
    position: sticky;
    top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 999px;
  }

  .tab {
    justify-content: center;
    text-align: center;
  }

  .workspace-sidebar .auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-panel .auth-grid {
    grid-template-columns: 1fr;
  }

  .login-button-stack {
    width: 100%;
    max-width: 460px;
  }

  .nasdaq-board-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nasdaq-board-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }

  .site-header {
    position: static;
  }

  .header-actions > a {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-login-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .login-page {
    scroll-margin-top: 18px;
    margin: 12px 0 18px;
  }

  .login-panel {
    border-radius: 24px;
    padding: 22px;
  }

  .login-panel-head {
    flex-direction: column;
  }

  .login-panel .section-title h2 {
    font-size: 34px;
  }

  .login-panel .section-title p {
    font-size: 15px;
  }

  .login-provider-card {
    min-height: auto;
    padding: 18px;
  }

  .login-status-grid {
    grid-template-columns: 1fr;
  }

  .login-button-stack {
    max-width: 100%;
  }

  .apple-login-button {
    min-height: 50px;
    font-size: 15px;
  }

  .hero-copy,
  .live-board,
  .card {
    border-radius: 24px;
    padding: 22px;
  }

  .hero {
    margin-top: 12px;
  }

  .trust-row,
  .market-strip,
  .auth-grid,
  .result-grid,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  #dataResult.result-grid {
    grid-template-columns: 1fr;
  }

  #dataResult .data-card,
  #dataResult .data-card:nth-child(1),
  #dataResult .data-card:nth-child(2) {
    grid-column: auto;
  }

  .workspace-sidebar .auth-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    align-items: stretch;
  }

  .market-overview-head {
    flex-direction: column;
  }

  .quote-box {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .market-key-grid,
  .signal-board {
    grid-template-columns: 1fr;
  }

  .nasdaq-board-section {
    border-radius: 24px;
    padding: 22px;
  }

  .nasdaq-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nasdaq-quote-card {
    min-height: 112px;
    padding: 14px;
  }

  .nasdaq-quote-card .quote-symbol {
    font-size: 20px;
  }

  .nasdaq-quote-card .quote-price {
    font-size: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border-radius: 22px;
  }

  .tab {
    padding: 12px 7px;
    font-size: 13px;
  }

  .inline-form,
  .search-row {
    flex-direction: column;
  }
}
