/* Finviz-inspired Financial Terminal Theme (Elite Dark + Classic Light) */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Finviz Elite Dark Palette */
  --bg-body: #11141c;
  --bg-panel: #181c26;
  --bg-panel-alt: #1e2330;
  --bg-elevated: #232938;
  --bg-nav: #131c2e;
  --bg-subbar: #172033;
  --border: #2a3142;
  --border-strong: #374157;

  --text-primary: #edf1f7;
  --text-secondary: #9aa5b8;
  --text-muted: #6f7c91;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.16);

  /* Signature Finviz Semantic Colors */
  --up: #26c260;
  --up-bg: rgba(38, 194, 96, 0.14);
  --down: #f24957;
  --down-bg: rgba(242, 73, 87, 0.15);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.15);

  /* Finviz Heatmap Scale */
  --heat-n3: #e02d38;
  --heat-n2: #b83842;
  --heat-n1: #7d3c47;
  --heat-0: #3d4354;
  --heat-p1: #2f6c4a;
  --heat-p2: #288d4c;
  --heat-p3: #22b855;

  --shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] {
  /* Finviz Classic Light Palette */
  --bg-body: #eef1f6;
  --bg-panel: #ffffff;
  --bg-panel-alt: #f6f8fb;
  --bg-elevated: #edf0f6;
  --bg-nav: #1c2c4c;
  --bg-subbar: #24365a;
  --border: #d6dde8;
  --border-strong: #bcc7d8;

  --text-primary: #141c2b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.1);

  --up: #0f8a3c;
  --up-bg: rgba(15, 138, 60, 0.12);
  --down: #d42a34;
  --down-bg: rgba(212, 42, 52, 0.11);
  --warn: #b45309;
  --warn-bg: rgba(180, 83, 9, 0.12);

  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

/* Navbar (Always signature Finviz deep navy) */
.fv-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  border-bottom: 1px solid #253451;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.fv-nav-inner,
.fv-subbar-inner,
.fv-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 14px;
}

.fv-nav-inner {
  min-height: 50px;
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.fv-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fv-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.fv-logo-mark {
  background: linear-gradient(135deg, #22c55e, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.fv-logo-accent {
  color: #4ade80;
}

.fv-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6e2f5;
  font-size: 11px;
  font-weight: 600;
}

.fv-session-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.fv-session-pill .dot.open {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.fv-session-pill .dot.extended {
  background: #f59e0b;
}

.fv-clock {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9bb0d1;
  font-variant-numeric: tabular-nums;
}

.fv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fv-nav-link {
  color: #c2d1e8;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.fv-nav-link:hover,
.fv-nav-link.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.fv-nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.fv-control-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fv-mini-label {
  font-size: 11px;
  color: #9bb0d1;
}

.fv-outlook-bar .fv-mini-label {
  color: var(--text-secondary);
}

.fv-select {
  background: rgba(255, 255, 255, 0.09);
  color: #eef4ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  cursor: pointer;
}

.fv-outlook-bar .fv-select {
  background: var(--bg-panel);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.fv-btn {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.fv-btn-primary {
  background: #22a952;
  color: #ffffff;
  border-color: #29c360;
}

.fv-btn-primary:hover {
  background: #1d9648;
}

.fv-btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fv-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2ecff;
  border-color: rgba(255, 255, 255, 0.18);
}

.fv-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.fv-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
  width: 30px;
  padding: 5px 0;
  text-align: center;
}

.fv-btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
}

.fv-btn-mobile {
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.45);
}

.fv-btn-mobile:hover {
  background: rgba(59, 130, 246, 0.36);
}

/* Mobile Native Bottom Tab Bar (Hidden on desktop, shown on <= 768px) */
.fv-mobile-tabbar {
  display: none;
}

/* Install App Modal */
.fv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 120;
}

.fv-modal-backdrop.open {
  display: flex;
}

.fv-modal {
  width: 100%;
  max-width: 500px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.fv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-panel-alt);
  border-bottom: 1px solid var(--border);
}

.fv-modal-title-group {
  display: flex;
  align-items: center;
  gap: 11px;
}

.fv-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.fv-modal-head h3 {
  font-size: 14.5px;
  font-weight: 800;
}

.fv-modal-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.fv-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.fv-modal-body {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fv-install-url-box {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.fv-install-k {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 700;
}

.fv-install-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fv-install-url-row code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--up);
  word-break: break-all;
}

.fv-native-install-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 6px;
}

.fv-install-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fv-step-card {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.fv-step-os {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.fv-step-card ol {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.fv-install-tip {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Subbar */
.fv-subbar {
  background: var(--bg-subbar);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fv-subbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.fv-quick-tickers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fv-quick-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6e2f5;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.fv-quick-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

.fv-quick-pill.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.fv-quick-pill .chg-up { color: #4ade80; font-family: var(--font-mono); }
.fv-quick-pill .chg-down { color: #fb7185; font-family: var(--font-mono); }
.fv-quick-pill.active .chg-up,
.fv-quick-pill.active .chg-down { color: #fff; }

.fv-status-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #9bb0d1;
}

.fv-mode-badge {
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.fv-mode-badge.live {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.fv-mode-badge.sim {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Main Container */
.fv-container {
  padding-top: 12px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ticker Strip (7 US Indices, Stocks & ETFs) */
.fv-ticker-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

/* Macro Strip (USD/KRW & WTI Crude Oil) */
.fv-macro-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fv-macro-card-mini {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
}

.fv-macro-card-mini::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #38bdf8;
}

.fv-macro-card-mini[data-id="WTI"]::before {
  background: #f59e0b;
}

.fv-macro-card-mini:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.fv-macro-card-mini.active {
  border-color: var(--accent);
  background: var(--bg-panel-alt);
  box-shadow: 0 0 0 1px var(--accent);
}

.fv-mc-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fv-mc-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.fv-mc-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
}

.fv-mc-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.fv-macro-card-mini[data-id="WTI"] .fv-mc-code {
  color: #f59e0b;
}

.fv-mc-price {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fv-mc-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fv-mc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 110px;
}

.fv-mc-spark {
  width: 112px;
  height: 28px;
}

.fv-mc-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.fv-ticker-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
}

.fv-ticker-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-strong);
}

.fv-ticker-card.is-up::before { background: var(--up); }
.fv-ticker-card.is-down::before { background: var(--down); }

.fv-ticker-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.fv-ticker-card.active {
  border-color: var(--accent);
  background: var(--bg-panel-alt);
  box-shadow: 0 0 0 1px var(--accent);
}

.fv-tc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}

.fv-tc-sym {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.fv-tc-kr {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-tc-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
}

.fv-tc-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.fv-tc-chg {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fv-tc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fv-tc-spark {
  flex: 1;
  height: 22px;
}

.fv-tc-sig {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.up { color: var(--up); }
.down { color: var(--down); }

/* Generic Panel */
.fv-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fv-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  background: var(--bg-panel-alt);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.fv-panel-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.fv-panel-sub {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* Overview 2-Col Grid */
.fv-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.fv-chart-panel {
  display: flex;
  flex-direction: column;
}

.fv-chart-header {
  align-items: flex-start;
}

.fv-chart-symbol-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fv-chart-symbol {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.fv-chart-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.fv-sector-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.fv-chart-price-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.fv-big-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fv-big-change {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fv-chart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fv-segmented {
  display: inline-flex;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}

.fv-segmented button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.fv-segmented button:hover {
  color: var(--text-primary);
}

.fv-segmented button.active {
  background: var(--accent);
  color: #ffffff;
}

.fv-overlay-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.fv-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
}

.fv-check input {
  accent-color: var(--accent);
  cursor: pointer;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
}
.swatch.sma20 { background: #f59e0b; }
.swatch.sma50 { background: #38bdf8; }
.swatch.sma200 { background: #c084fc; }
.swatch.levels { background: #22c55e; border-top: 1px dashed #f24957; }
.swatch.rsi { background: #a78bfa; }

.fv-hover-hud {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.fv-canvas-wrap {
  position: relative;
  width: 100%;
  height: 375px;
  background: var(--bg-panel);
}

#mainChartCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.fv-zoom-group button {
  min-width: 28px;
  font-family: var(--font-mono);
}

.fv-metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  background: var(--bg-panel-alt);
}

.fv-metric-cell {
  padding: 7px 10px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fv-metric-cell:last-child {
  border-right: none;
}

.fv-metric-k {
  font-size: 10.5px;
  color: var(--text-muted);
}

.fv-metric-v {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Right Column: Heatmap + Market Pulse */
.fv-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fv-heat-legend {
  display: flex;
  gap: 3px;
}

.hl-box {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 2px;
}
.hl-n3 { background: var(--heat-n3); }
.hl-n1 { background: var(--heat-n1); }
.hl-0  { background: var(--heat-0); }
.hl-p1 { background: var(--heat-p1); }
.hl-p3 { background: var(--heat-p3); }

/* Authentic Finviz Treemap Mosaic (7 US Equity/Index/ETF Assets) */
.fv-heatmap-grid {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 116px 112px;
  gap: 4px;
  background: #0d1017;
}

[data-theme="light"] .fv-heatmap-grid {
  background: #1f2937;
}

.fv-heat-tile {
  border-radius: 3px;
  padding: 9px 10px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.fv-heat-tile:hover {
  filter: brightness(1.1);
  z-index: 2;
}

.fv-heat-tile.active {
  box-shadow: inset 0 0 0 2px #ffffff;
}

/* Treemap proportions (7 Assets: 2 Indices + 5 Stocks/ETF) */
.fv-heat-tile[data-id="SP500"]  { grid-column: 1 / 7; grid-row: 1; }
.fv-heat-tile[data-id="NDX100"] { grid-column: 7 / 13; grid-row: 1; }
.fv-heat-tile[data-id="NVDA"]   { grid-column: 1 / 4; grid-row: 2; }
.fv-heat-tile[data-id="GOOGL"]  { grid-column: 4 / 7; grid-row: 2; }
.fv-heat-tile[data-id="TSLA"]   { grid-column: 7 / 9; grid-row: 2; }
.fv-heat-tile[data-id="IQQ"]    { grid-column: 9 / 11; grid-row: 2; }
.fv-heat-tile[data-id="JOBY"]   { grid-column: 11 / 13; grid-row: 2; }

.fv-ht-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.fv-ht-top > div {
  min-width: 0;
  width: 100%;
}

.fv-ht-sym {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.fv-heat-tile[data-id="JOBY"] .fv-ht-sym,
.fv-heat-tile[data-id="IQQ"] .fv-ht-sym,
.fv-heat-tile[data-id="TSLA"] .fv-ht-sym { font-size: 12px; }

.fv-ht-name {
  font-size: 10.5px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-ht-chg {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fv-heat-tile[data-id="JOBY"] .fv-ht-chg,
.fv-heat-tile[data-id="IQQ"] .fv-ht-chg,
.fv-heat-tile[data-id="TSLA"] .fv-ht-chg { font-size: 13px; }

.fv-ht-price {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

/* Market Pulse Panel */
.fv-sentiment-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fv-pulse-body {
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fv-regime-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.fv-regime-badge.bullish { background: var(--up-bg); color: var(--up); }
.fv-regime-badge.neutral { background: var(--accent-soft); color: var(--accent); }
.fv-regime-badge.caution { background: var(--down-bg); color: var(--down); }

.fv-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fv-score-gauge {
  flex: 1;
}

.fv-score-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.fv-score-label strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.fv-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.fv-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f24957 0%, #f59e0b 48%, #26c260 100%);
  transition: width 0.35s ease;
}

.fv-breadth-box {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 10px;
  text-align: center;
  min-width: 82px;
}

.fv-breadth-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.fv-breadth-box strong {
  font-family: var(--font-mono);
  font-size: 14px;
}

.fv-pulse-summary {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.fv-alloc-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
}

.fv-alloc-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Screener Table */
.fv-table-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.fv-table-scroll {
  overflow-x: auto;
}

.fv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.fv-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-panel-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.fv-table th:hover {
  color: var(--text-primary);
}

.fv-table th.num,
.fv-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.fv-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}

.fv-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.fv-table tbody tr:hover {
  background: var(--bg-panel-alt);
}

.fv-table tbody tr.active {
  background: var(--accent-soft);
}

.fv-tbl-sym {
  font-weight: 800;
  color: var(--accent);
}

.fv-tbl-sub {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Range Bar (52W) */
.fv-range-bar-wrap {
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fv-range-track {
  position: relative;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 99px;
}

.fv-range-dot {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-panel);
  transform: translateX(-50%);
}

.fv-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Signal Badges */
.fv-signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sig-strong-buy { background: rgba(34, 197, 94, 0.22); color: var(--up); border: 1px solid rgba(34, 197, 94, 0.4); }
.sig-accumulate { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.sig-hold       { background: rgba(245, 158, 11, 0.16); color: var(--warn); border: 1px solid rgba(245, 158, 11, 0.35); }
.sig-caution    { background: rgba(242, 73, 87, 0.18); color: var(--down); border: 1px solid rgba(242, 73, 87, 0.38); }

[data-theme="light"] .sig-accumulate { color: #1d4ed8; }

/* Section 3: Daily Outlook & Action Plan */
.fv-outlook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.fv-outlook-bar-left,
.fv-outlook-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fv-section-heading {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fv-engine-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.fv-filter-pills {
  display: inline-flex;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
}

.fv-filter-pills button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.fv-filter-pills button.active {
  background: var(--accent);
  color: #ffffff;
}

/* Macro Strategy Card */
.fv-macro-card {
  margin-bottom: 12px;
}

.fv-macro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding: 14px 16px;
}

.fv-macro-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.fv-macro-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.fv-macro-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.fv-macro-alloc {
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 5px;
  background: var(--bg-panel-alt);
  border-left: 3px solid var(--up);
}

.fv-macro-checklist {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
}

.fv-checklist-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  color: var(--text-primary);
}

.fv-macro-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fv-macro-checklist li {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.fv-macro-checklist li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Per-Asset Outlook Cards Grid */
.fv-outlook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fv-outlook-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s;
}

.fv-outlook-card.focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.fv-oc-head {
  padding: 11px 14px;
  background: var(--bg-panel-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.fv-oc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fv-oc-sym {
  font-size: 15px;
  font-weight: 900;
}

.fv-oc-kr {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.fv-oc-price-group {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.fv-oc-price {
  font-size: 14px;
  font-weight: 800;
}

.fv-oc-body {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.fv-oc-summary {
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--bg-panel-alt);
  border-left: 3px solid var(--accent);
}

/* Price Zones Ladder */
.fv-zones-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.fv-zone-box {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 7px;
  text-align: center;
}

.fv-zone-box.z-sl   { border-top: 2px solid var(--down); }
.fv-zone-box.z-sup  { border-top: 2px solid var(--up); }
.fv-zone-box.z-res  { border-top: 2px solid var(--warn); }
.fv-zone-box.z-tgt  { border-top: 2px solid var(--accent); }

.fv-zone-k {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.fv-zone-v {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Horizon Tabs (Short/Mid/Long) */
.fv-horizon-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fv-horizon-item {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.fv-horizon-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 5px;
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Catalysts vs Risks */
.fv-cr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fv-cr-box {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
}

.fv-cr-title {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.fv-cr-title.bull { color: var(--up); }
.fv-cr-title.bear { color: var(--down); }

.fv-cr-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fv-cr-box li {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.42;
  padding-left: 10px;
  position: relative;
}

.fv-cr-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Action Plan Box */
.fv-action-box {
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 9px 11px;
  background: var(--bg-panel-alt);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fv-action-heading {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
}

.fv-action-line {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.48;
}

.fv-action-line strong {
  color: var(--text-primary);
}

/* Personal Strategy Memo */
.fv-memo-box {
  border-top: 1px dashed var(--border);
  padding-top: 9px;
}

.fv-memo-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.fv-memo-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.fv-memo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.fv-input,
.fv-textarea {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-family: var(--font-sans);
}

.fv-input:focus,
.fv-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.fv-textarea {
  resize: vertical;
  min-height: 46px;
}

.fv-memo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.fv-memo-saved {
  font-size: 10.5px;
  color: var(--text-muted);
}

.fv-btn-xs {
  padding: 3px 9px;
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
}

.fv-btn-xs:hover {
  background: var(--accent-hover);
}

/* Bottom Grid: News & Automation */
.fv-bottom-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
}

.fv-news-list {
  max-height: 330px;
  overflow-y: auto;
}

.fv-news-row {
  display: grid;
  grid-template-columns: 76px 76px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.fv-news-row:hover {
  background: var(--bg-panel-alt);
}

.fv-news-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.fv-news-ticker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  text-align: center;
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.fv-news-link {
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv-news-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.fv-sent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fv-sent-dot.positive { background: var(--up); }
.fv-sent-dot.negative { background: var(--down); }
.fv-sent-dot.neutral  { background: var(--text-muted); }

.fv-auto-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fv-auto-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.fv-auto-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.fv-auto-val {
  font-size: 12px;
  color: var(--text-primary);
}

.fv-code-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--up);
}

.fv-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Toast Notification */
.fv-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #3b82f6;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.fv-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .fv-nav-links { display: none; }
  .fv-clock { display: none; }
  .fv-ticker-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv-overview-grid { grid-template-columns: 1fr; }
  .fv-outlook-grid { grid-template-columns: 1fr; }
  .fv-macro-grid { grid-template-columns: 1fr; }
  .fv-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }
  .fv-navbar {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .fv-nav-inner {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px 8px;
  }
  .fv-logo {
    font-size: 13px;
    gap: 5px;
  }
  .fv-logo-mark {
    padding: 2px 5px;
    font-size: 10px;
  }
  .fv-nav-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .fv-session-pill,
  .fv-control-group,
  #btnRefreshAll {
    display: none;
  }
  #btnUpdateBriefing {
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .fv-btn-mobile {
    padding: 4px 6px;
    font-size: 10.5px;
  }
  .fv-btn-icon {
    width: 26px;
    padding: 4px 0;
    font-size: 11px;
  }
  .fv-heatmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, 88px);
  }
  .fv-heat-tile[data-id="SP500"]  { grid-column: 1; grid-row: 1; }
  .fv-heat-tile[data-id="NDX100"] { grid-column: 2; grid-row: 1; }
  .fv-heat-tile[data-id="NVDA"]   { grid-column: 1; grid-row: 2; }
  .fv-heat-tile[data-id="GOOGL"]  { grid-column: 2; grid-row: 2; }
  .fv-heat-tile[data-id="TSLA"]   { grid-column: 1; grid-row: 3; }
  .fv-heat-tile[data-id="IQQ"]    { grid-column: 2; grid-row: 3; }
  .fv-heat-tile[data-id="JOBY"]   { grid-column: 1 / 3; grid-row: 4; flex-direction: row; align-items: center; }
  .fv-macro-strip { grid-template-columns: 1fr; }
  .fv-subbar-inner {
    padding: 4px 10px;
  }
  .fv-quick-tickers {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 2px;
  }
  .fv-quick-pill {
    flex-shrink: 0;
  }
  .fv-status-meta {
    display: none;
  }
  .fv-container {
    padding: 10px 10px 24px;
  }
  .fv-canvas-wrap {
    height: 310px;
  }
  .fv-ticker-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-zones-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-cr-grid { grid-template-columns: 1fr; }
  .fv-install-steps { grid-template-columns: 1fr; }

  /* Native Mobile App Tab Switching */
  .fv-mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(19, 28, 46, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #263654;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .fv-mtab {
    background: transparent;
    border: none;
    color: #93a7c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: color 0.15s;
  }

  .fv-mtab-icon {
    font-size: 16px;
    line-height: 1.1;
  }

  .fv-mtab-label {
    font-size: 10.5px;
    font-weight: 700;
  }

  .fv-mtab.active {
    color: #4ade80;
  }

  /* Show only active mobile app tab's sections */
  body[data-mobile-tab="quotes"] #overview,
  body[data-mobile-tab="quotes"] #outlook,
  body[data-mobile-tab="quotes"] #news { display: none; }

  body[data-mobile-tab="chart"] #tickerStrip,
  body[data-mobile-tab="chart"] #macroStrip,
  body[data-mobile-tab="chart"] .fv-right-col,
  body[data-mobile-tab="chart"] #screener,
  body[data-mobile-tab="chart"] #outlook,
  body[data-mobile-tab="chart"] #news { display: none; }

  body[data-mobile-tab="heatmap"] #tickerStrip,
  body[data-mobile-tab="heatmap"] #macroStrip,
  body[data-mobile-tab="heatmap"] .fv-chart-panel,
  body[data-mobile-tab="heatmap"] #screener,
  body[data-mobile-tab="heatmap"] #outlook,
  body[data-mobile-tab="heatmap"] #news { display: none; }

  body[data-mobile-tab="outlook"] #tickerStrip,
  body[data-mobile-tab="outlook"] #macroStrip,
  body[data-mobile-tab="outlook"] #overview,
  body[data-mobile-tab="outlook"] #screener,
  body[data-mobile-tab="outlook"] #news { display: none; }

  body[data-mobile-tab="news"] #tickerStrip,
  body[data-mobile-tab="news"] #macroStrip,
  body[data-mobile-tab="news"] #overview,
  body[data-mobile-tab="news"] #screener,
  body[data-mobile-tab="news"] #outlook { display: none; }

  .fv-toast {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    text-align: center;
  }
}
