:root {
  color-scheme: dark;
  --bg: #0f172a;
  --card: #111827;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --accent-ink: #022c13;
  --accent-alt: #3b82f6;
  --surface: #0b1220;
  --border: #1f2937;
  --chip-border: #334155;
  --danger: #f87171;
  --shadow-soft: 0 24px 60px -32px rgba(6, 12, 24, 0.85);
  --shadow-light: 0 16px 40px -28px rgba(6, 12, 24, 0.7);
  --card-section-bg: #1b243a;
  --table-row: color-mix(
    in srgb,
    var(--surface) 72%,
    rgba(255, 255, 255, 0.18)
  );
  --table-row-alt: color-mix(
    in srgb,
    var(--surface) 60%,
    rgba(59, 130, 246, 0.32)
  );
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-ink: #f8fafc;
  --accent-alt: #16a34a;
  --surface: #ffffff;
  --border: #d8dee9;
  --chip-border: #cbd5f5;
  --danger: #dc2626;
  --shadow-soft: 0 28px 64px -38px rgba(15, 23, 66, 0.35);
  --shadow-light: 0 18px 36px -26px rgba(15, 23, 66, 0.25);
  --card-section-bg: #f9f9f9;
  --table-row: color-mix(in srgb, var(--surface) 94%, rgba(59, 130, 246, 0.16));
  --table-row-alt: color-mix(
    in srgb,
    var(--surface) 86%,
    rgba(37, 99, 235, 0.28)
  );
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, Segoe UI, Arial;
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 90%, transparent) 0%,
      color-mix(in srgb, var(--bg) 82%, transparent) 60%,
      color-mix(in srgb, var(--bg) 92%, transparent) 100%
    ),
    var(--bg);
  color: var(--ink);
  transition: background 0.6s ease, color 0.6s ease;
}
.site-header {
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  border-bottom: 1px solid
    color-mix(in srgb, var(--border) 65%, transparent 35%);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -32px rgba(15, 23, 42, 0.55);
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 20px;
  min-height: 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-logo {
  display: block;
  height: 90px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 640px) {
  .brand-logo {
    height: 48px;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.currency-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 65%, var(--accent) 20%);
  border-radius: 999px;
  padding: 8px 16px;
  background: color-mix(
    in srgb,
    var(--surface) 88%,
    rgba(37, 99, 235, 0.08) 12%
  );
  transition: border-color 0.3s ease, background 0.3s ease;
}
.currency-control:focus-within {
  border-color: var(--accent);
  background: color-mix(
    in srgb,
    var(--surface) 85%,
    rgba(37, 99, 235, 0.16) 15%
  );
}
.currency-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.currency-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.currency-select {
  min-width: 150px;
  border: none;
  background: transparent;
  padding: 0 22px 0 4px;
  font: inherit;
  color: var(--ink);
  appearance: none;
}
.currency-select:focus-visible {
  outline: none;
}
.currency-caret {
  position: absolute;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.currency-control:hover .currency-caret {
  border-color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-tab {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}
.nav-tab:hover,
.nav-tab:focus-visible {
  color: var(--ink);
  outline: none;
}
.nav-tab.is-active {
  color: var(--ink);
}
.nav-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 999px 999px 0 0;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 65%, var(--accent) 35%);
  background: color-mix(
    in srgb,
    var(--surface) 85%,
    rgba(37, 99, 235, 0.08) 15%
  );
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}
.currency-select:focus-visible {
  outline: none;
}
.currency-select-wrap:hover .currency-select {
  color: var(--ink);
}
.currency-select-wrap:hover .currency-caret {
  border-color: var(--accent);
}
.currency-control:hover {
  border-color: var(--accent);
}
.currency-control:hover .currency-label {
  color: var(--ink);
}
.theme-toggle.is-day {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border) 40%);
  color: var(--accent);
  background: color-mix(
    in srgb,
    var(--surface) 82%,
    rgba(37, 99, 235, 0.14) 18%
  );
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.theme-icon {
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .site-nav {
    order: 3;
    justify-content: center;
    gap: 18px;
  }
  .header-actions {
    justify-content: space-between;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}
.article-card {
  margin-top: 0;
  overflow: hidden;
  position: relative;
}
.blog-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted) 12%);
}
.blog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.blog-nav {
  align-self: start;
}
.blog-nav-title {
  margin: 0 0 6px;
  font-size: 16px;
}
.blog-nav-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.blog-nav-note code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 12px;
}
.blog-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-nav-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
  background: color-mix(in srgb, var(--card) 90%, rgba(59, 130, 246, 0.08));
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.blog-nav-btn:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border) 40%);
}
.blog-nav-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--card) 85%, rgba(37, 99, 235, 0.18));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent 60%);
}
.blog-nav-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-alt) 80%, transparent 20%);
  outline-offset: 2px;
}
.blog-nav-meta {
  font-size: 12px;
  color: var(--muted);
}
.blog-content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-content-area.is-loading {
  position: relative;
}
.blog-content-area.is-loading::after {
  content: "文章加载中…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent 18%);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.blog-content-area.is-loading > * {
  opacity: 0.35;
  pointer-events: none;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-card .article-meta {
  background: var(--card-section-bg, #f9f9f9);
  margin: -20px -20px 0;
  padding: 16px 18px 6px;
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--border) 35%, transparent 65%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-alt) 15%, transparent 85%);
  color: color-mix(in srgb, var(--accent-alt) 85%, var(--ink) 15%);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.article-meta-note {
  font-size: 12px;
  color: var(--muted);
}
.article-card .card-section-title {
  margin: 0 -20px 14px;
  padding: 10px 18px 12px;
  background: var(--card-section-bg, #f9f9f9);
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 color-mix(in srgb, var(--border) 35%, transparent 65%);
}
.article-card .card-section-title .title-note {
  white-space: normal;
}
.article-card[hidden] {
  display: none;
}
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-nav {
    position: static;
  }
}
@media (max-width: 640px) {
  .blog-layout {
    gap: 12px;
  }
  .blog-nav {
    order: -1;
  }
  .blog-nav-note {
    margin-bottom: 10px;
  }
  .blog-nav-list {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    margin-right: 0;
    padding-right: 0;
    gap: 10px;
  }
  .blog-nav-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }
  .blog-content-area {
    gap: 16px;
  }
  .article-card {
    border-radius: 18px;
  }
  .article-card .article-meta {
    margin: -16px -16px 0;
    padding: 14px 16px 6px;
    border-radius: 18px 18px 0 0;
  }
  .article-card .card-section-title {
    margin: 0 -16px 12px;
    padding: 10px 16px 12px;
  }
  .article-body pre {
    padding: 8px;
    font-size: 12px;
  }
}
.article-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.article-body h4 {
  margin: 8px 0 4px;
  font-size: 15px;
}
.article-body ul {
  margin: 0;
  padding-left: 20px;
}
.article-body code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 4px;
  padding: 0 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-body pre {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 13px;
  line-height: 1.4;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.article-body pre code {
  padding: 0;
  background: transparent;
  display: block;
  white-space: inherit;
}
.param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent 40%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  box-shadow: inset 0 0 0 1px transparent, var(--shadow-light);
}
.form-field:focus-within {
  border-color: var(--accent);
  background: color-mix(
    in srgb,
    var(--surface) 80%,
    rgba(37, 99, 235, 0.12) 20%
  );
  box-shadow: inset 0 0 0 1px
      color-mix(in srgb, var(--accent) 60%, transparent 40%),
    var(--shadow-soft);
}
.field-label {
  font-size: 14px;
  font-weight: 600;
}
.field-note {
  font-size: 12px;
  color: var(--muted);
}
.form-field input {
  width: 100%;
}
.result-summary {
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.summary-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.summary-highlight {
  background: color-mix(
    in srgb,
    var(--surface) 94%,
    rgba(34, 197, 94, 0.12) 6%
  );
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  box-shadow: var(--shadow-light);
}
.summary-title {
  font-size: 13px;
  color: var(--muted);
}
.summary-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}
.summary-value.summary-accent {
  color: var(--accent);
}
.summary-value.summary-negative {
  color: var(--danger);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.summary-label {
  color: var(--muted);
  font-size: 13px;
}
.summary-figure {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.summary-figure.positive {
  color: var(--accent);
}
.summary-figure.negative {
  color: var(--danger);
}
.result-message {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.card-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-section-bg, #f9f9f9);
  margin: -18px -20px 14px;
  padding: 12px 18px;
  border-radius: 18px 18px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 color-mix(in srgb, var(--border) 35%, transparent 65%);
}
.card-section-title .title-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-section-title .title-note {
  margin: 0;
  font-size: 12px;
  color: color-mix(in srgb, var(--muted) 70%, var(--ink) 30%);
  white-space: nowrap;
  margin-left: auto;
}
.card-section-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card-title-actions {
  display: none;
}
.card-section-title--with-action {
  align-items: center;
}
.card-section-title--with-action .icon-btn {
  margin-left: auto;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--chip-border) 70%, transparent 30%);
  background: color-mix(in srgb, var(--surface) 88%, transparent 12%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  box-shadow: var(--shadow-light);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover,
.icon-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent 82%);
  color: var(--accent-ink);
}
.icon-btn .icon-chevron {
  position: relative;
  width: 16px;
  height: 16px;
}
.icon-btn .icon-chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  transform: translate(-50%, -35%);
}
.panel-head {
  margin: 28px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wrap {
  max-width: 900px;
  margin: 0px auto;
  padding: 0 16px;
}
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 20px;
  padding: 20px 24px;
  border-radius: 24px;
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface) 90%, transparent 10%) 0%,
      color-mix(in srgb, var(--surface) 80%, rgba(59, 130, 246, 0.12)) 100%
    ),
    color-mix(in srgb, var(--surface) 84%, transparent 16%);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  box-shadow: 0 24px 60px -36px rgba(15, 23, 42, 0.48);
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(34, 197, 94, 0.2),
      transparent 55%
    );
  pointer-events: none;
  opacity: 0.75;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.topbar-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.topbar-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 65%, var(--accent) 35%);
}
.topbar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, rgba(59, 130, 246, 0.22));
  color: color-mix(in srgb, var(--accent) 65%, var(--ink) 35%);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent 68%);
  box-shadow: 0 18px 42px -28px rgba(59, 130, 246, 0.5);
}
.topbar-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 82%, transparent 18%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent 82%);
}
h1 {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 92%, var(--accent) 8%);
  text-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}
@media (max-width: 640px) {
  .topbar {
    padding: 16px 18px;
    margin: 15px 0 18px;
    align-items: flex-start;
  }
  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .topbar-badge {
    width: 100%;
    justify-content: center;
  }
  h1 {
    font-size: 22px;
  }
}
.card {
  background: color-mix(in srgb, var(--card) 94%, transparent 6%);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent 40%);
  border-radius: 20px;
  padding: 20px;
  margin-top: 18px;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  box-shadow: var(--shadow-soft);
}
.card:hover {
  box-shadow: 0 24px 52px -32px rgba(37, 99, 235, 0.45);
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.symbol-row {
  align-items: stretch;
}
#symbolInput {
  flex: 1 1 240px;
  min-width: 200px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip-border) 65%, transparent 35%);
  background: color-mix(in srgb, var(--surface) 88%, transparent 12%);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: var(--shadow-light);
}
.chip:hover,
.chip:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 16px 36px -26px rgba(34, 197, 94, 0.55);
}
.chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}
.quote-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent 12%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-light);
}
.quote-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.quote-label {
  font-size: 13px;
  color: var(--muted);
}
.quote-value {
  font-size: 26px;
  font-weight: 600;
}
.quote-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quote-status {
  font-size: 12px;
}
.btn {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 92%, transparent) 0%,
    color-mix(in srgb, var(--accent-alt) 70%, transparent 30%) 100%
  );
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-light);
}
.btn.secondary {
  background: color-mix(in srgb, var(--surface) 88%, transparent 12%);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--chip-border) 65%, transparent 35%);
  box-shadow: none;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -24px rgba(37, 99, 235, 0.45);
}
.btn.secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}
input {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--chip-border) 65%, transparent 35%);
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  color: var(--ink);
  border-radius: 12px;
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease,
    box-shadow 0.3s ease;
  font: inherit;
  box-shadow: inset 0 0 0 1px transparent;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--accent) 65%, transparent 35%);
}
select:not(.currency-select) {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--chip-border) 65%, transparent 35%);
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  color: var(--ink);
  border-radius: 12px;
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease,
    box-shadow 0.3s ease;
  font: inherit;
  appearance: none;
  background-image: linear-gradient(
      45deg,
      transparent 0,
      transparent 50%,
      var(--muted) 50%,
      var(--muted) 60%,
      transparent 60%,
      transparent 100%
    ),
    linear-gradient(
      -45deg,
      transparent 0,
      transparent 50%,
      var(--muted) 50%,
      var(--muted) 60%,
      transparent 60%,
      transparent 100%
    );
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 7px 5px, 7px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  box-shadow: inset 0 0 0 1px transparent;
}
select:not(.currency-select):focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--accent) 65%, transparent 35%);
}
.calc-card {
  margin-top: 0;
}
.calc-grid {
  margin-top: 12px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-field label {
  font-size: 14px;
  color: var(--muted);
}
.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-unit input {
  width: 100%;
  padding-right: 48px;
}
.input-with-unit .unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  opacity: 0.85;
}
.input-with-unit.has-stepper input {
  padding-right: 78px;
}
.input-with-unit.has-stepper .unit {
  right: 48px;
}
.input-stepper {
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.step-btn {
  width: 24px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  color: color-mix(in srgb, var(--muted) 85%, var(--ink) 15%);
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.step-btn:hover,
.step-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent 85%);
  color: var(--accent);
}
.date-picker {
  position: relative;
  width: 100%;
}
.date-picker input[type="date"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--chip-border) 65%, transparent 35%);
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 0 1px transparent;
}
.date-trigger:hover,
.date-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px
      color-mix(in srgb, var(--accent) 60%, transparent 40%),
    var(--shadow-light);
}
.date-trigger .date-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent 35%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
}
.date-trigger .date-icon::before {
  content: "📅";
}
.date-trigger .date-text {
  flex: 1;
  text-align: left;
  font-size: 13px;
  color: var(--ink);
}
.date-picker.has-value .date-text {
  font-weight: 600;
}
.date-picker:not(.has-value) .date-text {
  color: var(--muted);
}
.date-picker.has-value .date-icon {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent 40%);
  color: var(--accent);
}
.date-panel {
  position: fixed;
  min-width: 221px;
  background: color-mix(in srgb, var(--surface) 95%, #e8effd 25%);
  border: 0px solid color-mix(in srgb, var(--border) 50%, transparent 50%);
  border-radius: 18px;
  box-shadow: 0 28px 60px -26px rgba(15, 23, 42, 0.55),
    0 18px 36px -20px rgba(34, 197, 94, 0.18),
    0 -6px 12px -4px rgba(15, 23, 42, 0.15);
  padding: 12px 12px 14px;
  z-index: 2000;
  display: grid;
  gap: 10px;
  opacity: 0;
  overflow: visible;
  transform-origin: top center;
  transform: scaleY(0.75);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-size: 0.68rem;
}
.date-panel.is-open {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}
.date-panel.is-opening-above {
  transform-origin: bottom center;
  transform: scaleY(0.75);
}
.date-panel.is-opening-above.is-open {
  transform: scaleY(1);
}
.date-panel[hidden] {
  display: none;
}
.date-panel::after {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--arrow-left, 24px);
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: inherit;
  border: none;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.35);
  z-index: 1;
}
.date-panel::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(var(--arrow-left, 24px) - 1px);
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--border) 50%, transparent 50%);
  z-index: 0;
}
.date-panel.is-above::after {
  top: auto;
  bottom: -8px;
  transform: rotate(225deg);
}
.date-panel.is-above::before {
  top: auto;
  bottom: -9px;
  transform: rotate(225deg);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--border) 45%, transparent 55%);
}
.calendar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 1em;
}
.calendar-title-year,
.calendar-title-month {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.3s ease, color 0.3s ease;
}
.calendar-title-year:hover,
.calendar-title-year:focus-visible,
.calendar-title-month:hover,
.calendar-title-month:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent 88%);
}
.calendar-title-year.is-active,
.calendar-title-month.is-active {
  background: color-mix(in srgb, var(--accent) 15%, transparent 85%);
  color: var(--accent);
}
.calendar-title-separator {
  color: var(--muted);
  font-size: 12px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-nav button {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent 50%);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  color: color-mix(in srgb, var(--ink) 85%, var(--muted) 15%);
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.calendar-nav button:hover,
.calendar-nav button:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent 82%);
  color: var(--accent-ink);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.85em;
  color: var(--muted);
  gap: 5px;
  padding-bottom: 4px;
}
.calendar-weekdays span {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.date-panel.is-month-view .calendar-weekdays,
.date-panel.is-year-view .calendar-weekdays {
  display: none;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-grid.is-month-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 6px;
}
.calendar-grid.is-year-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 6px;
}
.calendar-cell {
  padding: 7px 0;
  border-radius: 10px;
  border: none;
  background: color-mix(in srgb, var(--surface) 96%, transparent 4%);
  color: color-mix(in srgb, var(--ink) 88%, var(--muted) 12%);
  font: inherit;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.calendar-grid.is-month-grid .calendar-cell,
.calendar-grid.is-year-grid .calendar-cell {
  padding: 8px 0;
  font-size: 1em;
}
.date-panel.is-year-view .calendar-cell.is-muted {
  color: color-mix(in srgb, var(--muted) 60%, transparent 40%);
}
.calendar-cell.is-muted {
  color: color-mix(in srgb, var(--muted) 70%, transparent 30%);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
}
.calendar-cell:hover,
.calendar-cell:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--accent) 16%, transparent 84%);
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -18px rgba(34, 197, 94, 0.45);
}
.calendar-cell.is-selected {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 18px 36px -22px rgba(34, 197, 94, 0.55);
}
.calendar-cell.is-today:not(.is-selected) {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent 55%);
}
.calc-actions {
  margin-top: 12px;
}
.calc-result-card {
  margin-top: 16px;
}
.calc-metrics {
  margin-top: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-label {
  font-size: 13px;
  color: var(--muted);
}
.metric-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.metric-value.positive {
  color: var(--accent);
}
.metric-value.negative {
  color: var(--danger);
}
.result-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-details.collapsed {
  display: none;
}
.details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.details-head h4 {
  margin: 0;
  font-size: 16px;
}
.small-text {
  font-size: 12px;
}
.link-btn {
  border: none;
  background: none;
  padding: 4px 6px;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.4s ease, background 0.4s ease;
}
.link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.table-container {
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.table-scroll {
  overflow-x: auto;
}
.dca-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.dca-table thead {
  background: color-mix(in srgb, var(--surface) 80%, transparent 20%);
}
.dca-table th,
.dca-table td {
  padding: 12px 16px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--border) 55%, transparent 45%);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
.dca-table th.align-left,
.dca-table td.align-left {
  text-align: left;
}
.dca-table th.align-center,
.dca-table td.align-center {
  text-align: center;
}
.dca-table th.align-right,
.dca-table td.align-right {
  text-align: right;
}
.dca-table tbody tr:nth-child(odd) {
  background: var(--table-row);
}
.dca-table tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}
.dca-table th.cell-index,
.dca-table td.cell-index {
  width: 64px;
}
.dca-table td.cell-index {
  color: color-mix(in srgb, var(--muted) 35%, var(--ink) 65%);
  font-weight: 600;
}
.sort-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.header-label {
  display: block;
  font-weight: 600;
}
.dca-table th.align-left .sort-btn {
  justify-content: flex-start;
}
.dca-table th.align-right .sort-btn {
  justify-content: flex-end;
}
.sort-btn .sort-indicator {
  font-size: 11px;
  opacity: 0.6;
}
.sort-btn:not(.is-active) .sort-indicator {
  opacity: 0.2;
}
.sort-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.sort-btn:hover .sort-indicator,
.sort-btn.is-active .sort-indicator {
  opacity: 1;
}
.table-container .empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
}
.table-container.collapsed tr.is-extra {
  display: none;
}
.table-container.collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--surface) 92%, transparent 8%) 85%
  );
}
.chart-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
#chartTooltip {
  position: absolute;
  pointer-events: none;
  background: color-mix(
    in srgb,
    var(--surface) 72%,
    rgba(206, 206, 207, 0.6) 90%
  );
  color: var(--ink);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  max-width: 220px;
  line-height: 1.5;
  transition: opacity 0.18s ease, left 0.18s ease, top 0.18s ease,
    transform 0.18s ease;
  transform: translate(0px, 0px);
  will-change: left, top, transform, opacity;
}
.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: var(--shadow-light);
}
.legend-item .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-item .swatch.swatch-invested {
  background: var(--accent-alt);
}
.legend-item .swatch.swatch-value {
  background: var(--accent);
}
.legend-item.is-active {
  border-color: var(--accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 15%, transparent 85%);
}
.legend-item:not(.is-active) {
  opacity: 0.6;
}
.legend-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#resultChart {
  width: 100%;
  max-width: 100%;
  height: 260px;
  background: color-mix(in srgb, var(--surface) 85%, transparent 15%);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent 45%);
  border-radius: 20px;
  cursor: crosshair;
  box-shadow: var(--shadow-light);
}
.site-footer {
  margin-top: 72px;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent 35%);
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
  padding: 36px 0 48px;
  transition: background 0.6s ease, border-color 0.6s ease;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-disclaimer {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 94%, var(--muted) 6%);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  color: color-mix(in srgb, var(--muted) 75%, var(--ink) 25%);
}
.footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.footer-link {
  color: color-mix(in srgb, var(--accent) 65%, var(--ink) 35%);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
  outline: none;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .site-footer {
    margin-top: 48px;
    padding: 28px 0 36px;
  }
  .footer-disclaimer {
    font-size: 13px;
    line-height: 1.6;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.scroll-controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent 35%);
  background: color-mix(
    in srgb,
    var(--surface) 90%,
    rgba(37, 99, 235, 0.18) 10%
  );
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  transition: transform 0.4s ease, background 0.4s ease, opacity 0.4s ease,
    box-shadow 0.4s ease;
  backdrop-filter: blur(6px);
  opacity: 0.75;
}
.scroll-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(37, 99, 235, 0.45);
}
.scroll-btn:active {
  transform: translateY(1px);
}
.scroll-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.scroll-controls.hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.end {
  justify-content: flex-end;
}
.note {
  margin-top: 6px;
}
.muted {
  color: var(--muted);
  margin-left: 6px;
}
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  transition: background 0.6s ease, border-color 0.6s ease;
}
.calendar-title-month:disabled {
  cursor: default;
  background: none;
  color: var(--muted);
}
.card-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.intro-card .card-section-title {
  margin-bottom: 20px;
}
.intro-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 15px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 92%, var(--muted) 8%);
}
.intro-body > p {
  margin: 7px;
}
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-item {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, rgba(59, 130, 246, 0.12));
}
.feature-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.guide-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 90%, rgba(34, 197, 94, 0.12));
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent 40%);
}
.step-index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.step-content h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.case-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.case-item {
  padding: 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 90%, rgba(59, 130, 246, 0.14));
  border: 1px solid color-mix(in srgb, var(--border) 62%, transparent 38%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-highlight {
  font-size: 18px;
}
.case-item p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 92%, var(--muted) 8%);
  line-height: 1.6;
}
.case-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.case-points li {
  margin-bottom: 6px;
}
.faq-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.faq-item {
  padding: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, rgba(148, 163, 184, 0.12));
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent 40%);
}
.faq-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .intro-body {
    font-size: 14px;
  }
  .feature-grid {
    gap: 14px;
  }
  .guide-step {
    flex-direction: column;
  }
  .step-index {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
  }
  .case-item {
    padding: 16px;
  }
  .faq-item {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  /* For most cards, stack and hide the small note */
  .card:not(:has(.symbol-row, .param-grid, #resultSummary))
    .card-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card:not(:has(.symbol-row, .param-grid, #resultSummary))
    .card-section-title
    .title-main {
    width: 100%;
  }
  .card:not(:has(.symbol-row, .param-grid, #resultSummary))
    .card-section-title
    .title-main
    h1,
  .card:not(:has(.symbol-row, .param-grid, #resultSummary))
    .card-section-title
    .title-main
    h3 {
    font-size: 22px;
    line-height: 1.35;
    margin: 0;
  }
  .card:not(:has(.symbol-row, .param-grid, #resultSummary))
    .card-section-title
    .title-note {
    display: none;
  }

  /* Topbar large heading tweak stays */
  .topbar-title {
    align-items: flex-start;
    gap: 4px;
  }
  .topbar-title h1 {
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
  }
}

/* Mobile header compaction without affecting desktop */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 0px;
    flex-wrap: wrap;
  }
  /* Enlarge logo a bit more */
  .brand-logo {
    height: 63px;
  }
  .site-nav {
    order: 3;
    justify-content: center;
    gap: 18px;
    flex-basis: 100%;
    width: 100%;
  }
  .header-actions {
    order: 2;
    justify-content: flex-end;
    gap: 11px;
    flex: 1 1 auto;
  }
  .currency-control {
    flex: 0 1 auto;
    max-width: 280px;
    padding: 3px 8px;
  }
  .currency-label {
    display: none;
  }
  .currency-select {
    min-width: 88px;
    font-size: 14px;
  }
  .theme-toggle {
    width: 30px;
    height: 30px;
    background: transparent;
    border-color: color-mix(in srgb, var(--border) 70%, transparent 30%);
  }
  .nav-tab {
    padding: 0px 10px 3px 10px;
  }
}
