:root {
  --ml-color-bg: #f4f5f0;
  --ml-color-surface: #ffffff;
  --ml-color-surface-strong: #ffffff;
  --ml-color-surface-muted: #eef1eb;
  --ml-color-border: #d8ddd4;
  --ml-color-border-strong: #c8cfc4;
  --ml-color-text: #111513;
  --ml-color-text-muted: #5f665f;
  --ml-color-text-soft: #7a8379;
  --ml-color-brand: #0a8b66;
  --ml-color-brand-accent: #0f7655;
  --ml-color-focus: #0d8d68;
  --ml-color-focus-soft: rgba(13, 141, 104, 0.18);
  --ml-color-brand-ink: #eefbf6;
  --ml-color-success: #0c9b46;
  --ml-color-danger: #a11d2f;
  --ml-shadow-sm: 0 10px 28px rgba(18, 26, 24, 0.05);
  --ml-shadow-md: 0 20px 44px rgba(18, 26, 24, 0.08);
  --ml-shadow-lg: 0 26px 72px rgba(18, 26, 24, 0.12);
  --ml-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --ml-radius-sm: 14px;
  --ml-radius-md: 22px;
  --ml-radius-lg: 30px;
  --ml-space-1: 4px;
  --ml-space-2: 8px;
  --ml-space-3: 12px;
  --ml-space-4: 16px;
  --ml-space-5: 20px;
  --ml-space-6: 24px;
  --ml-space-7: 32px;
  --ml-space-8: 40px;
  --ml-space-9: 52px;
  --ml-font-sans: "SF Pro Text", "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ml-font-size-xs: 12px;
  --ml-font-size-sm: 14px;
  --ml-font-size-md: 16px;
  --ml-font-size-lg: 18px;
  --ml-font-size-xl: 24px;
  --ml-font-size-2xl: 34px;
}

* {
  box-sizing: border-box;
}

html,
body,
#react-entry-point {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--ml-font-sans);
  background:
    linear-gradient(180deg, rgba(232, 238, 229, 0.88) 0%, rgba(244, 245, 240, 0.96) 140px, var(--ml-color-bg) 140px);
  color: var(--ml-color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: rgba(27, 99, 173, 0.16);
}

button {
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  min-height: 44px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: var(--ml-shadow-md);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ml-color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ml-color-focus-soft);
}

.is-positive {
  color: var(--ml-color-success);
}

.is-negative {
  color: var(--ml-color-danger);
}

input,
textarea {
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

input:hover,
textarea:hover {
  border-color: var(--ml-color-border-strong);
}

input:focus,
textarea:focus {
  border-color: var(--ml-color-focus);
  box-shadow: 0 0 0 4px var(--ml-color-focus-soft);
}

.Select.is-focused:not(.is-open) > .Select-control,
.Select.has-value.is-focused > .Select-control {
  border-color: var(--ml-color-focus) !important;
  box-shadow: 0 0 0 4px var(--ml-color-focus-soft) !important;
}

.Select-menu-outer {
  border: 1px solid rgba(201, 211, 225, 0.92);
  box-shadow: var(--ml-shadow-md);
}

.app-shell {
  min-height: 100vh;
}

.app-shell-frame {
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.app-shell-main {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-4);
  min-width: 0;
  padding: 0 clamp(16px, 2vw, 28px) clamp(32px, 4vw, 48px);
}

.app-page-container {
  width: min(100%, 1780px);
  margin: 0 auto;
  min-width: 0;
}

.ml-analysis-page {
  min-width: 0;
}

.ml-compact-page {
  min-width: 0;
}

.ml-page-header,
.ml-page-section {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.96) 0%, rgba(255, 255, 255, 0.99) 100%);
  border: 1px solid rgba(201, 211, 225, 0.72);
  border-radius: var(--ml-radius-md);
  box-shadow: var(--ml-shadow-inset), var(--ml-shadow-sm);
}

.ml-page-header {
  padding: clamp(18px, 3vw, 26px);
}

.ml-page-header-copy {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-2);
  max-width: 72ch;
}

.ml-page-header-eyebrow {
  font-size: var(--ml-font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ml-color-text-soft);
}

.ml-page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ml-color-text);
}

.ml-page-description {
  margin: 0;
  font-size: var(--ml-font-size-md);
  line-height: 1.6;
  color: var(--ml-color-text-muted);
}

.ml-page-section {
  padding: clamp(16px, 2.8vw, 24px);
}

.ml-page-section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--ml-space-4);
}

.ml-page-section-title {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ml-color-text);
}

.ml-page-section-description {
  margin: 0;
  font-size: var(--ml-font-size-sm);
  line-height: 1.55;
  color: var(--ml-color-text-muted);
  max-width: 72ch;
}

.ml-page-section-body {
  min-width: 0;
}

.ml-page-section-summary .ml-page-section-header {
  margin-bottom: var(--ml-space-3);
}

.ml-page-section-controls .ml-page-section-body,
.ml-page-section-results .ml-page-section-body,
.ml-page-section-details .ml-page-section-body {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-4);
}

.ml-analysis-layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: var(--ml-space-5);
  align-items: start;
  min-width: 0;
}

.ml-analysis-sidebar,
.ml-analysis-results {
  min-width: 0;
}

.ml-analysis-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-4);
}

.ml-analysis-results {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-4);
}

.ml-analysis-sidebar .ml-card,
.ml-analysis-sidebar .ml-table-section,
.ml-analysis-sidebar .ml-summary-card {
  margin-bottom: 0;
}

.ml-analysis-sidebar .Select,
.ml-analysis-sidebar input,
.ml-analysis-sidebar textarea,
.ml-analysis-sidebar button {
  max-width: 100%;
}

.ml-analysis-sidebar .Select {
  width: 100% !important;
  min-width: 0 !important;
}

.ml-analysis-sidebar input,
.ml-analysis-sidebar textarea {
  width: 100%;
}

.app-shell-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  background: #d6ff00;
  color: #111513;
  font-size: 14px;
  font-weight: 600;
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 21, 19, 0.06);
}

.app-navbar-core,
.app-navbar-subnav {
  width: min(100%, 1780px);
  margin: 0 auto;
  padding-left: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
}

.app-navbar-core {
  display: grid;
  grid-template-columns: auto minmax(260px, 640px) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
}

.app-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ml-color-text);
}

.app-navbar-brand-mark,
.app-shell-mobile-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d8d68 0%, #086448 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.app-navbar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-navbar-brand-title,
.app-shell-mobile-brand-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.04em;
  color: var(--ml-color-text);
}

.app-navbar-brand-kicker,
.app-shell-mobile-brand-kicker {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ml-color-text-soft);
}

.app-navbar-search,
.app-shell-mobile-search,
.market-home-side-search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(17, 21, 19, 0.1);
  color: var(--ml-color-text-soft);
  box-shadow: 0 8px 24px rgba(17, 21, 19, 0.04);
}

.app-navbar-search {
  min-width: 0;
}

.app-navbar-search-icon,
.market-home-side-search-icon {
  font-size: 22px;
  line-height: 1;
}

.app-navbar-search-text,
.market-home-side-search-text {
  font-size: 15px;
  font-weight: 520;
}

.app-navbar-utilities {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.app-navbar-utility-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.app-navbar-utility-link {
  text-decoration: none;
  color: var(--ml-color-text);
  font-size: 15px;
  font-weight: 650;
}

.app-navbar-utility-link:hover,
.app-navbar-utility-link:focus-visible {
  color: #0d6e52;
}

.app-navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  background: #1f2937;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.app-navbar-subnav {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-top: 1px solid rgba(17, 21, 19, 0.05);
  border-bottom: 3px solid #0d8d68;
}

.app-navbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-navbar-links::-webkit-scrollbar {
  display: none;
}

.app-navbar-links a {
  white-space: nowrap;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.app-nav-link {
  text-decoration: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.app-nav-link-desktop {
  padding: 10px 16px;
  color: var(--ml-color-text);
  border: 1px solid transparent;
}

.app-nav-link-desktop:hover,
.app-nav-link-desktop:focus-visible {
  background: rgba(13, 141, 104, 0.08);
  color: #0d6e52;
}

.app-nav-link-desktop.is-active {
  background: #0c7f5c;
  color: #ffffff;
}

#app-shell-menu-button {
  display: none;
}

.app-shell-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 12, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 39;
}

.app-shell-mobile-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.app-shell-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(92vw, 380px);
  padding: 22px;
  background: #f8f9f5;
  box-shadow: var(--ml-shadow-lg);
  border-left: 1px solid rgba(17, 21, 19, 0.08);
  transform: translateX(108%);
  visibility: hidden;
  transition: transform 180ms ease;
  z-index: 40;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-shell-mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.app-shell-mobile-drawer-header,
.app-shell-mobile-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-shell-mobile-brand {
  justify-content: flex-start;
}

.app-shell-mobile-search {
  margin: 20px 0 16px;
}

.app-shell-mobile-utility-links,
.app-shell-mobile-links {
  display: grid;
  gap: 10px;
}

.app-shell-mobile-utility-links {
  margin-bottom: 20px;
}

.app-shell-mobile-utility-links a,
.app-nav-link-mobile {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(17, 21, 19, 0.08);
  background: #ffffff;
  text-decoration: none;
  color: var(--ml-color-text);
  font-weight: 650;
}

.app-nav-link-mobile.is-active {
  background: #0c7f5c;
  color: #ffffff;
  border-color: #0c7f5c;
}

.app-shell-mobile-links a,
.app-navbar-links a,
#app-shell-menu-button,
#app-shell-drawer-close-button {
  touch-action: manipulation;
}

.market-home {
  padding-top: 8px;
}

.market-home-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.market-home-left-rail,
.market-home-right-rail,
.market-home-main {
  min-width: 0;
}

.market-home-left-rail,
.market-home-right-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.market-home-rail-card,
.market-home-panel,
.market-home-hero-card,
.market-home-side-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 21, 19, 0.08);
  border-radius: 24px;
  box-shadow: var(--ml-shadow-sm);
}

.market-home-rail-card,
.market-home-panel,
.market-home-side-card {
  padding: 18px;
}

.market-home-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.market-home-rail-label,
.market-home-panel-eyebrow {
  margin: 0 0 12px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ml-color-text-soft);
}

.market-home-rail-links {
  display: grid;
  gap: 8px;
}

.market-home-rail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--ml-color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.market-home-rail-link:hover,
.market-home-rail-link:focus-visible {
  background: rgba(12, 127, 92, 0.08);
}

.market-home-rail-link.is-active {
  background: rgba(12, 127, 92, 0.12);
  color: #0d6e52;
}

.market-home-note-text {
  margin: 0;
  line-height: 1.6;
  color: var(--ml-color-text-muted);
}

.market-home-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.market-home-hero-card {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(13, 141, 104, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 251, 247, 0.98) 100%);
}

.market-home-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.market-home-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-home-hero-account {
  font-size: 16px;
  font-weight: 650;
  color: var(--ml-color-text-muted);
}

.market-home-hero-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--ml-color-text);
}

.market-home-hero-balance {
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 760;
}

.market-home-hero-change {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ml-color-text-muted);
}

.market-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 360px;
}

.market-home-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 21, 19, 0.05);
  border: 1px solid rgba(17, 21, 19, 0.08);
  font-size: 14px;
  font-weight: 650;
}

.market-home-pill-accent {
  background: #f7c76f;
  border-color: #f7c76f;
}

.market-home-chart-card {
  border-top: 1px solid rgba(17, 21, 19, 0.08);
  padding-top: 24px;
}

.market-home-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.market-home-chart-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--ml-color-text);
  font-size: 14px;
  font-weight: 700;
}

.market-home-chart-tab.is-active {
  background: rgba(12, 127, 92, 0.1);
  color: #0d6e52;
}

.market-home-chart-stage {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 249, 243, 0.96) 100%);
  border: 1px solid rgba(17, 21, 19, 0.08);
}

.market-home-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 21, 19, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 19, 0.05) 1px, transparent 1px);
  background-size: 100% 74px, 110px 100%;
}

.market-home-chart-line {
  position: absolute;
  inset: 24px 24px 20px;
  background:
    linear-gradient(180deg, rgba(12, 127, 92, 0.14) 0%, rgba(12, 127, 92, 0) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 360' preserveAspectRatio='none'%3E%3Cpath d='M0 290 L70 272 L120 276 L180 250 L240 258 L320 252 L390 218 L450 208 L520 214 L610 196 L690 160 L740 118 L780 146 L860 140 L960 104' fill='none' stroke='%230c7f5c' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 290 L70 272 L120 276 L180 250 L240 258 L320 252 L390 218 L450 208 L520 214 L610 196 L690 160 L740 118 L780 146 L860 140 L960 104 L960 360 L0 360 Z' fill='rgba(12,127,92,0.10)'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.market-home-chart-price-badge {
  position: absolute;
  top: 26px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: #0c7f5c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.market-home-chart-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.market-home-metric {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 21, 19, 0.07);
  background: rgba(255, 255, 255, 0.92);
}

.market-home-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ml-color-text-soft);
}

.market-home-metric-value {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--ml-color-text);
}

.market-home-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.market-home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-home-panel-title,
.market-home-side-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ml-color-text);
}

.market-home-side-title {
  font-size: 24px;
}

.market-home-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(12, 127, 92, 0.08);
  color: #0d6e52;
  font-size: 14px;
  font-weight: 700;
}

.market-home-module-table {
  display: grid;
  gap: 12px;
}

.market-home-module-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(17, 21, 19, 0.08);
  text-decoration: none;
  color: var(--ml-color-text);
  background: #ffffff;
}

.market-home-module-row:hover,
.market-home-module-row:focus-visible {
  border-color: rgba(12, 127, 92, 0.22);
  box-shadow: 0 18px 30px rgba(17, 21, 19, 0.06);
}

.market-home-module-name {
  font-size: 20px;
  font-weight: 720;
}

.market-home-module-summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ml-color-text-muted);
}

.market-home-module-open {
  font-size: 14px;
  font-weight: 700;
  color: #0d6e52;
}

.market-home-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-home-lane-card {
  display: flex;
  align-items: center;
  min-height: 108px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243, 247, 244, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(17, 21, 19, 0.08);
  text-decoration: none;
  color: var(--ml-color-text);
  font-size: 18px;
  font-weight: 700;
}

.market-home-side-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-home-watchlist {
  display: grid;
  gap: 12px;
}

.market-home-watch-row {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr auto;
  gap: 12px;
  align-items: center;
}

.market-home-watch-symbol {
  font-size: 22px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.market-home-watch-name {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ml-color-text-muted);
}

.market-home-watch-mini {
  height: 42px;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 42' preserveAspectRatio='none'%3E%3Cpath d='M0 29 L30 26 L52 30 L78 18 L104 21 L128 16 L150 20 L180 10' fill='none' stroke='%230c9b46' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.market-home-watch-price-block {
  text-align: right;
}

.market-home-watch-price {
  font-size: 18px;
  font-weight: 700;
}

.market-home-watch-change {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.market-home-news-list {
  display: grid;
  gap: 10px;
}

.market-home-news-item {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 21, 19, 0.08);
  color: var(--ml-color-text);
  text-decoration: none;
  line-height: 1.55;
}

.ml-card,
.ml-table-section,
.ml-summary-card {
  background: linear-gradient(180deg, var(--ml-color-surface) 0%, var(--ml-color-surface-strong) 100%);
  border: 1px solid rgba(201, 211, 225, 0.72);
}

.ml-card,
.ml-table-section {
  box-shadow: var(--ml-shadow-inset), var(--ml-shadow-sm);
}

.ml-card,
.ml-table-section {
  overflow: hidden;
}

.ml-chart-card {
  min-width: 0;
  position: relative;
}

.ml-chart-card::before,
.ml-table-section::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 95, 165, 0.12) 0%, rgba(31, 95, 165, 0.01) 100%);
}

.ml-table-section {
  min-width: 0;
}

.ml-section-header {
  align-items: flex-end;
}

.ml-section-title {
  letter-spacing: -0.02em;
}

.ml-summary-grid {
  align-items: stretch;
}

.ml-summary-card {
  min-width: 0;
}

.ml-status {
  min-height: 24px;
  padding-left: 2px;
}

.ml-status:not(:empty) {
  padding: 12px 14px;
  background: rgba(245, 248, 252, 0.88);
  border: 1px solid rgba(201, 211, 225, 0.72);
  border-radius: 14px;
  box-shadow: var(--ml-shadow-inset);
}

.ml-status a {
  color: var(--ml-color-focus);
}

.ml-status:empty {
  min-height: 12px;
}

.ml-loading-wrap {
  min-width: 0;
}

.ml-loading > div {
  min-width: 0;
}

.dash-table-container .dash-spreadsheet-container {
  border-radius: var(--ml-radius-sm);
}

.dash-table-container .dash-spreadsheet-container,
.dash-table-container .dash-spreadsheet-inner {
  background: transparent;
}

.dash-table-container .dash-spreadsheet-inner th {
  background: #edf3f9;
}

.js-plotly-plot .plotly .modebar {
  opacity: 0.75;
}

.ml-chart-card .js-plotly-plot,
.ml-chart-card .plot-container,
.ml-chart-card .svg-container {
  min-width: 0 !important;
}

.ml-chart-card .main-svg {
  border-radius: 12px;
}

@media (max-width: 1280px) {
  .app-navbar-core {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-navbar-utilities {
    display: none;
  }

  .app-navbar-links-desktop {
    display: none;
  }

  #app-shell-menu-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .app-shell-mobile-overlay,
  .app-shell-mobile-drawer {
    display: block;
  }
}

@media (max-width: 1180px) {
  .app-navbar {
    position: static;
  }

  .app-navbar-core {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ml-analysis-layout {
    grid-template-columns: 1fr;
  }

  .market-home-grid,
  .market-home-panels {
    grid-template-columns: 1fr;
  }

  .market-home-main {
    order: 1;
  }

  .market-home-right-rail {
    order: 2;
  }

  .market-home-left-rail {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .market-home-hero-head,
  .market-home-panel-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .ml-page-header,
  .ml-page-section {
    padding: var(--ml-space-4);
  }

  .ml-page-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .app-shell-announcement {
    min-height: 54px;
    padding: 8px 14px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .app-navbar-core {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .app-navbar-brand-copy,
  .app-navbar-search {
    display: none;
  }

  .market-home {
    padding-top: 0;
  }

  .market-home-hero-card,
  .market-home-panel,
  .market-home-side-card,
  .market-home-rail-card {
    padding: 16px;
    border-radius: 20px;
  }

  .market-home-left-rail {
    display: flex;
    flex-direction: column;
  }

  .market-home-chart-foot,
  .market-home-lane-grid {
    grid-template-columns: 1fr;
  }

  .market-home-module-row,
  .market-home-watch-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .market-home-watch-price-block {
    text-align: left;
  }

  .market-home-chart-stage {
    min-height: 250px;
  }

  body {
    background: linear-gradient(180deg, #edf2ea 0%, var(--ml-color-bg) 160px);
  }

  .ml-analysis-control-panel {
    padding: var(--ml-space-4);
  }

  .ml-analysis-control-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: var(--ml-space-3) !important;
  }

  .ml-analysis-control-row > div,
  .ml-analysis-control-row > button {
    width: 100%;
    max-width: 100%;
  }

  .ml-analysis-control-row label {
    white-space: normal;
  }

  .ml-analysis-layout,
  .ml-analysis-sidebar,
  .ml-analysis-results {
    gap: var(--ml-space-4);
  }

  .ml-analysis-results .ml-summary-grid {
    grid-template-columns: 1fr;
  }

  .ml-analysis-results .ml-card,
  .ml-analysis-results .ml-table-section,
  .ml-analysis-results .ml-summary-card {
    padding-left: var(--ml-space-3);
    padding-right: var(--ml-space-3);
  }

  .app-shell-mobile-drawer {
    width: min(92vw, 360px);
    padding: var(--ml-space-5);
  }

  .app-shell-mobile-search {
    min-height: 48px;
  }

  .app-navbar-links a,
  .app-shell-mobile-links a,
  #app-shell-menu-button,
  #app-shell-drawer-close-button {
    min-height: 46px;
  }

  .ml-card,
  .ml-table-section,
  .ml-summary-card {
    border-radius: 18px;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .app-shell .Select {
    min-width: 0 !important;
    max-width: 100%;
  }

  .app-shell .Select-control,
  .app-shell .Select-placeholder,
  .app-shell .Select-value-label {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  button,
  .app-shell-mobile-overlay,
  .app-shell-mobile-drawer {
    transition: none !important;
  }

  button:hover,
  .ml-button-secondary:hover {
    transform: none;
  }
}
