:root {
  color-scheme: light;
  --bg: #f9fafb;             /* Pure modern light background */
  --surface: #ffffff;        /* Pure white for cards/panels */
  --surface-alt: #f3f4f6;    /* Warm/soft gray for sub-elements */
  --ink: #1f2937;            /* Deep charcoal text */
  --text: #4b5563;           /* Standard dark gray text */
  --muted: #9ca3af;          /* Light gray for secondary metadata */
  --border: #e5e7eb;         /* Soft thin border line */
  --border-focus: #7B61FF;   
  
  /* Brand Finexa Palette */
  --primary: #7B61FF;        /* Lavender purple */
  --primary-light: rgba(123, 97, 255, 0.08);
  --blue: #0099FF;           /* Electric blue */
  --blue-light: rgba(0, 153, 255, 0.08);
  --green: #29CC6A;          /* Emerald green */
  --green-light: rgba(41, 204, 106, 0.08);
  --red: #FC5555;            /* Salmon red */
  --red-light: rgba(252, 85, 85, 0.08);
  
  /* Aliases to support existing JS variable bindings */
  --good: var(--green);
  --bad: var(--red);
  --neutral: #6b7280;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 30px rgba(123, 97, 255, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: min(1320px, calc(100vw - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(123, 97, 255, 0.3);
}

.brand-name {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--surface-alt);
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(123, 97, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Shell & Layout
   ========================================================================== */
.app-layout {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: start;
}

.shell {
  flex-grow: 1;
  min-width: 0;
  padding: 40px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  padding: 24px 0 12px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--ink);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero-title {
    white-space: nowrap;
  }
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text);
  max-width: 680px;
  line-height: 1.6;
}

.hero-ad-slot {
  width: min(680px, 100%);
  min-height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  overflow: hidden;
}

.hero-ad-slot iframe,
.hero-ad-slot ins {
  max-width: 100%;
}

.coupang-disclosure {
  width: min(680px, 100%);
  margin: -8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   Summary Cards
   ========================================================================== */
.summary-section {
  display: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.summary-card span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-card strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Main Workspace Layout
   ========================================================================== */
.main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-panel .news-list-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
}

.news-panel .news-list {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: none;
  height: 960px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Panel Header */
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-head h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Legend */
.legend {
  display: flex;
  gap: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-stock {
  background: linear-gradient(135deg, #5e7188 0%, #4d7c79 100%);
}

.legend-area {
  background: #cbd5e1;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Heatmap Component
   ========================================================================== */
.heatmap-panel {
  min-height: clamp(720px, calc(100vh - 180px), 980px);
}

.heatmap {
  position: relative;
  flex: 1 1 auto;
  min-height: 600px;
  background: #f8fafc;
  padding: 8px;
  overflow: hidden;
}

.tile {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(15, 23, 42, 0.06);
  filter: saturate(0.84) brightness(0.98);
}

.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 23, 42, 0.12) 100%);
  z-index: 1;
  pointer-events: none;
}

.tile:hover {
  transform: scale(1.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 22px rgba(15, 23, 42, 0.1);
  filter: saturate(0.9) brightness(1.01);
  z-index: 5;
}

.tile.is-selected {
  outline: 2px solid rgba(31, 41, 55, 0.34);
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 4px rgba(148, 163, 184, 0.18), 0 12px 24px rgba(15, 23, 42, 0.12);
  z-index: 4;
}

.tile strong {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(9px, 0.95vw, 12px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.26);
  line-height: 1.2;
}

.tile span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(16px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.26);
  align-self: flex-end;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   Detail / Chart Side Panel
   ========================================================================== */
.detail-panel {
  max-width: 100%;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

/* Sentiment colors for details */
.pill.good {
  background: var(--green-light);
  color: var(--green);
  border-color: rgba(41, 204, 106, 0.2);
}

.pill.bad {
  background: var(--red-light);
  color: var(--red);
  border-color: rgba(252, 85, 85, 0.2);
}

.pill.neutral {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

/* Metric Cards */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-alt);
  gap: 1px;
}

.metric-card {
  background: var(--surface);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-val {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Spark Chart */
.spark-wrap {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chart-mode-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  padding: 3px;
}

.chart-mode-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.chart-mode-button.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.canvas-container {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Related News List */
.news-list-wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.news-date-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
}

.news-date-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.news-date-control select {
  min-width: 128px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.news-all-button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.news-all-button:hover {
  border-color: rgba(123, 97, 255, 0.32);
  color: var(--primary);
  transform: translateY(-1px);
}

.news-all-button.is-active {
  background: rgba(123, 97, 255, 0.09);
  border-color: rgba(123, 97, 255, 0.28);
  color: var(--primary);
}

/* Custom Scrollbar for News List */
.news-list::-webkit-scrollbar {
  width: 6px;
}
.news-list::-webkit-scrollbar-track {
  background: transparent;
}
.news-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.news-item.good {
  background: #e6f9ed;
  border-color: rgba(41, 204, 106, 0.25);
}

.news-item.bad {
  background: #fdebeb;
  border-color: rgba(252, 85, 85, 0.25);
}

.news-item.neutral {
  background: var(--surface-alt);
  border-color: var(--border);
}

.news-item:hover {
  transform: translateX(2px);
  border-color: var(--primary);
}

.news-item a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.news-item a:hover {
  color: var(--primary);
}

.news-item p {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Footer & Risk Disclosure
   ========================================================================== */
.risk-disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.disclosure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.disclosure-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.disclosure-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.disclosure-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(123, 97, 255, 0.22);
  flex: 0 0 auto;
}

.disclosure-brand div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.disclosure-brand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disclosure-brand strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.disclosure-brand strong::before {
  content: "⚠️";
  margin-right: 8px;
  font-size: 13px;
}

.disclosure-main p {
  max-width: none;
  font-size: 11px;
  color: var(--text);
  line-height: 1.6;
  flex: 1 1 auto;
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.disclosure-grid article {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  background: var(--surface-alt);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 10px;
  padding: 8px;
}

.disclosure-grid article span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
}

.disclosure-grid article p {
  font-size: 10px;
  color: var(--text);
  line-height: 1.6;
}

.site-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.site-info div {
  background: #f8fafc;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 10px;
  padding: 12px;
}

.site-info strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.site-info p,
.site-info a {
  color: var(--text);
  font-size: 11px;
  line-height: 1.7;
}

.site-info a,
.policy-content a,
.policy-home-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.site-info a:hover,
.policy-content a:hover,
.policy-home-link:hover {
  text-decoration: underline;
}

.policy-home-link {
  border: 1px solid rgba(123, 97, 255, 0.24);
  border-radius: 999px;
  background: var(--primary-light);
  padding: 8px 14px;
  font-size: 13px;
}

.policy-page {
  width: min(880px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.policy-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 5vw, 44px);
}

.policy-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-content h1 {
  color: var(--ink);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  margin-top: 8px;
}

.policy-updated {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.policy-content section {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 24px;
}

.policy-content h2 {
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 10px;
}

.policy-content p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.right-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Firebase Status Banner & Badges
   ========================================================================== */
.status-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: none;
  transition: all 0.3s ease;
}

.status-banner.warning {
  display: block;
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: #d97706;
}

.status-banner.error {
  display: block;
  background: rgba(252, 85, 85, 0.08);
  border-bottom: 1px solid rgba(252, 85, 85, 0.2);
  color: var(--red);
}

.status-banner-content {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background-color: var(--muted);
  display: inline-block;
  animation: statusPulse 2s infinite;
}

.status-banner.warning .status-indicator-dot {
  background-color: #f59e0b;
}

.status-banner.error .status-indicator-dot {
  background-color: var(--red);
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  transition: all 0.2s ease;
}

.status-badge.connected {
  color: var(--green);
  background: var(--green-light);
  border-color: rgba(41, 204, 106, 0.2);
}

.status-badge.quota-exceeded {
  color: var(--red);
  background: var(--red-light);
  border-color: rgba(252, 85, 85, 0.2);
}

.status-badge.error {
  color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.nav-actions .status-badge {
  display: none;
}

@keyframes statusPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  .app-layout {
    flex-direction: column;
  }
  .shell {
    order: 1;
  }
  .main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .news-panel .news-list {
    height: 480px;
  }
  .hero {
    text-align: center;
    align-items: center;
    padding: 20px 0;
  }
  .hero-desc {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide link center on mobile */
  }
  
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .disclosure-grid {
    grid-template-columns: 1fr;
  }

  .site-info {
    grid-template-columns: 1fr;
  }

  .disclosure-header,
  .disclosure-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-tools {
    width: 100%;
  }

  .news-date-control {
    flex: 1 1 auto;
  }

  .news-date-control select {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .risk-disclosure {
    padding: 20px;
  }

  .disclosure-brand {
    align-items: flex-start;
  }

  .disclosure-logo {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .disclosure-brand strong {
    font-size: 19px;
  }

  .disclosure-grid article {
    grid-template-columns: 28px 1fr;
    padding: 12px;
  }
}
