body.no-scroll { overflow: hidden; touch-action: none; }

/* .wrap 宽度见 brand-theme.css 流体自适应 */

.head { margin-bottom: 14px; }
.head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.head-main { min-width: 0; flex: 1; }
.head h1 {
  margin: 4px 0;
  font-weight: 700;
}
.kicker {
  margin: 0;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.panel {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.panel-title { margin: 0 0 10px; font-size: 15px; font-weight: 600; }

.license-panel { border-color: rgba(20, 184, 166, 0.32); }

/* ── 会员 / 激活码（license-zone） ── */
.license-zone {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-color: rgba(20, 184, 166, 0.32);
}

.license-zone.hidden { display: none; }

.license-zone.lz-collapsed { padding: 8px 14px; }
.license-zone.lz-collapsed:not(.lz-pin-extra) {
  display: none;
  margin-bottom: 0;
}
.license-zone .license-key-row:first-child {
  margin-top: 0;
}

.lz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.lz-tier {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.lz-tier.hidden { display: none; }

.lz-tier[data-tier="std"] {
  color: #5eead4;
  font-weight: 600;
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.32);
}

html[data-theme="light"] .lz-tier[data-tier="std"] {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
}

.lz-tier[data-tier="pro"] {
  color: #fbbf24;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.45);
}

html[data-theme="light"] .lz-tier[data-tier="pro"] {
  color: #b45309;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
}

.lz-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.license-preview {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.license-zone.lz-collapsed .license-key-row {
  display: none;
}

.license-zone:not(.lz-collapsed) .license-key-row .license-preview {
  display: none;
}

.license-key-row {
  margin-top: 8px;
}

.device-code-display {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 0;
  background: transparent;
  border: none;
}

.license-key-row #licenseKey {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  height: var(--input-h, 40px);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

.lz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.lz-action-btn {
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 4px 0;
  white-space: nowrap;
}

.license-zone.lz-collapsed .lz-extra { display: none; }

.license-zone.lz-collapsed.lz-pin-extra .hint.lz-extra {
  display: block;
  margin-top: 8px;
}

.license-zone.lz-pin-extra .hint.lz-extra {
  color: var(--lock-text, #be123c);
  font-weight: 600;
}

.license-zone .hint.lz-extra {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

#licenseBar.license-highlight {
  animation: licensePulse 1.2s ease-out 2;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.55);
}

@keyframes licensePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.65); }
}

/* 授权条（折叠后 · 旧版兼容） */
.license-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  font-size: 13px;
}
.license-bar.hidden { display: none; }
.quota-brief {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--quota-text);
  font-weight: 500;
}
.license-auto-hint { color: var(--muted); white-space: nowrap; font-size: 12px; }
.license-auto-hint.hidden { display: none; }
.license-bar-actions { display: flex; gap: 6px; flex-shrink: 0; }
.link-btn {
  border: none;
  background: none;
  padding: 6px 10px;
  color: var(--accent2);
  font-size: 13px;
  cursor: pointer;
}

#licenseCard.license-collapsed { display: none; }

.license-row { display: flex; gap: 10px; }
#licenseKey {
  flex: 1;
  min-width: 0;
  height: var(--input-h);
  padding: 0 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}
.license-status { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* 搜索区：代码 + 年数并排，高度一致 */
.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.code-field { flex: 1; min-width: 0; }
.mode-field { width: 108px; flex-shrink: 0; }
.quarters-field { width: 96px; flex-shrink: 0; }
.years-field { width: 84px; flex-shrink: 0; }

#analysisMode, #quarters, #years {
  width: 100%;
  height: var(--input-h);
  padding: 0 8px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

#stockCode {
  width: 100%;
  height: var(--input-h);
  padding: 0 12px;
  font-size: 18px;
  letter-spacing: 0.1em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}
#stockCode.input-error { border-color: var(--err); box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.15); }

.field-hint { margin: 5px 0 0; font-size: 12px; color: var(--err); }
.field-hint.hidden { display: none; }

.btn-primary, .btn-secondary {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-primary {
  width: 100%;
  min-height: 44px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: #042f2e;
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary.is-loading {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #f1f5f9;
}
.btn-secondary {
  height: var(--input-h);
  padding: 0 14px;
  flex-shrink: 0;
  background: var(--surface-mid);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 14px;
}
.hint { margin: 0.625rem 0 0; font-size: 0.875rem; color: var(--muted); text-align: left; }

/* 加载层 */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.loading-card {
  width: min(100%, 340px);
  padding: 26px 20px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  color-scheme: light;
  --text: #0f172a;
  --muted: #64748b;
  border: 1px solid rgba(15, 118, 110, 0.18);
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}
.loading-title { margin: 12px 0 6px; font-size: 16px; color: #0f172a; }
.loading-title strong { color: #0f766e; letter-spacing: 0.08em; }
.loading-stage { margin: 0 0 14px; color: #0284c7; font-size: 14px; min-height: 1.4em; }
.loading-hint { margin: 12px 0 0; font-size: 12px; color: #64748b; line-height: 1.45; }
.progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-mid);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.35s ease;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  background: #fef2f2;
  border: 2px solid #dc2626;
  color: #7f1d1d;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}
.error-box .error-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #991b1b;
}
.error-box .error-detail {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #7f1d1d;
}
html[data-theme="dark"] .error-box {
  background: rgba(127, 29, 29, 0.45);
  border-color: #f87171;
  color: #fecaca;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .error-box .error-title {
  color: #fee2e2;
}
html[data-theme="dark"] .error-box .error-detail {
  color: #fecaca;
}
.hidden { display: none !important; }

.summary-panel {
  border-top: 3px solid rgba(251, 191, 36, 0.55);
}

.summary-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.summary-brand-mark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fff3b0, #ff9999);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.summary-tier-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}

.summary-panel h2 { margin: 0 0 8px; font-size: 1.15rem; word-break: break-all; }
.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.summary-head > div { flex: 1; min-width: 0; }
.summary-head .headline { margin: 0; }
.btn-export {
  flex-shrink: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(14, 165, 233, 0.45);
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-export:disabled { opacity: 0.55; cursor: not-allowed; }
.headline { color: var(--accent2); margin: 0 0 12px; font-size: 14px; }
.summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  text-align: center;
  padding: 11px 6px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
}
.stat span { display: block; font-size: 1.35rem; font-weight: 700; }
.stat small { color: var(--muted); font-size: 11px; }
.stat.pass span { color: var(--pass); }
.stat.fail span { color: var(--fail); }

.exec-summary {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.06), transparent);
}

.exec-grade-card {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.exec-grade-label {
  font-size: 12px;
  color: var(--muted);
}

.exec-grade {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.exec-grade.grade-good { color: #10b981; }
.exec-grade.grade-ok { color: #38bdf8; }
.exec-grade.grade-warn { color: #fbbf24; }
.exec-grade.grade-bad { color: #f43f5e; }

.exec-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.exec-col-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.exec-col-title.warn { color: var(--fail); }

.exec-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

.exec-list li { margin-bottom: 4px; }

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

.disclaimer { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.company-profile {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel, rgba(255, 255, 255, 0.02));
}

.company-profile-heading {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent2, #0369a1);
}

.company-milestones-heading {
  margin: 14px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.company-intro p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  text-align: justify;
}

.company-intro p:last-child { margin-bottom: 0; }

.company-milestones {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

.company-milestones li { margin-bottom: 6px; }

.company-profile-meta {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.section-divider {
  margin: 8px 0 14px;
  padding: 14px 0 4px;
  border-top: 2px solid rgba(14, 116, 144, 0.35);
}
.section-divider-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent2, #0369a1);
}

.report-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.report-tab {
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.report-tab.active {
  background: rgba(14, 116, 144, 0.18);
  border-color: rgba(14, 116, 144, 0.45);
  color: var(--text);
  font-weight: 600;
}
.quarterly-summary { margin-bottom: 12px; }
.quarterly-charts { display: flex; flex-direction: column; gap: 12px; }
.charts-grid figure.hidden { display: none !important; }

.charts-grid { display: flex; flex-direction: column; gap: 12px; }
.charts-grid figure { margin: 0; }
.charts-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}
.charts-grid figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--input-bg);
}
.step-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.step-title { font-weight: 600; flex: 1; font-size: 14px; line-height: 1.35; }
.step-result {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  max-width: 42%;
  line-height: 1.3;
  text-align: right;
}
.step-pass { font-size: 17px; flex-shrink: 0; }
.step-pass.ok { color: var(--pass); }
.step-pass.bad { color: var(--fail); }
.step-comment { color: var(--text, #334155); font-size: 13px; line-height: 1.65; margin: 0 0 8px; }

.metrics-mini, .eval-table {
  width: 100%;
  min-width: 260px;
  border-collapse: collapse;
  font-size: 12px;
}
.metrics-mini th, .metrics-mini td,
.eval-table th, .eval-table td {
  border: 1px solid var(--border);
  padding: 5px 7px;
  white-space: nowrap;
}
.eval-table th { background: var(--input-bg); color: var(--muted); }
.eval-table .ok { color: var(--pass); }
.eval-table .bad { color: var(--fail); }

.lock-banner {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--lock-bg);
  border: 1px solid var(--lock-border);
  color: var(--lock-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.foot { margin-top: 20px; text-align: center; }
.foot-note { font-size: 12px; color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .license-key-row {
    flex-wrap: wrap;
  }
  .license-key-row .lz-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .license-preview {
    width: 100%;
  }
  .license-auto-hint {
    width: 100%;
    text-align: right;
  }
}

@media (min-width: 640px) {
  .years-field { width: 96px; }
  .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 宽屏布局（字号由 html rem 自动缩放，此处只调结构） ── */
@media (min-width: 768px) {
  .main-tabs {
    max-width: 36rem;
    gap: 0.75rem;
  }
  .main-tab {
    flex: 0 1 auto;
    min-width: 11rem;
  }
  .btn-primary {
    width: auto;
    min-width: 14rem;
  }
  .confirm-row,
  .screener-toolbar-run {
    display: flex;
    justify-content: flex-start;
  }
  .screener-toolbar-run .screener-run {
    width: auto;
    min-width: 14rem;
  }
  .search-fields { gap: 1rem; }
  .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .screener-results:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(22rem, 1.25fr);
    gap: 1.25rem;
    align-items: start;
  }
  .screener-results-nav,
  .screener-result-title,
  .screener-zero-hint,
  .screener-disc {
    grid-column: 1 / -1;
  }
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pro-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#searchPanel.hidden {
  display: none;
}

body.is-reading:not(.license-panel-open) #licenseCard,
body.is-reading:not(.license-panel-open) #licenseBar {
  display: none;
}

.reading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(17, 24, 39, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .reading-bar {
  background: rgba(255, 255, 255, 0.94);
}

.reading-bar.hidden {
  display: none;
}

.reading-bar-main {
  min-width: 0;
  flex: 1;
}

.reading-bar-main strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-bar-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.reading-bar-actions .link-btn {
  min-height: 40px;
  padding: 8px 10px;
}

/* ── 专业版 ── */
.pro-upsell {
  margin: 8px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
  border: 1px dashed rgba(20, 184, 166, 0.35);
  border-radius: var(--radius);
}

.pro-panel {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--card-solid) 48px);
}

.pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #92400e;
  background: rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  vertical-align: middle;
}

html[data-theme="dark"] .pro-tag {
  color: #fde68a;
}

.pro-summary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sub-title {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.pro-chart {
  margin: 8px 0 12px;
  text-align: center;
}

.pro-chart img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pro-table .pro-subject-row td {
  background: rgba(20, 184, 166, 0.08);
}

.pro-subject-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 4px;
  vertical-align: middle;
}

.pro-price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.pro-price-card {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-solid);
  text-align: center;
}

.pro-price-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.pro-price-label {
  font-size: 12px;
  color: var(--muted);
}

.pro-price-buy { border-color: rgba(34, 197, 94, 0.45); }
.pro-price-sell { border-color: rgba(239, 68, 68, 0.45); }

.pro-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.pro-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.pro-feature-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.pro-section-card {
  margin-top: 4px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
}

.pro-section-card .sub-title {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.pro-score-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pro-score-badge {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 165, 233, 0.08);
}

.pro-score-grade {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.pro-score-total {
  font-size: 1.35rem;
  font-weight: 600;
}

.pro-score-total small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.pro-grade-a { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.1); }
.pro-grade-b { border-color: rgba(14, 165, 233, 0.45); background: rgba(14, 165, 233, 0.1); }
.pro-grade-c { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.pro-grade-d { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }

.pro-score-summary,
.pro-score-mos {
  flex: 1 1 220px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.pro-metric-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.pro-analysis-subtitle {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.pro-analysis-overview {
  margin-bottom: 14px;
}

.pro-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.pro-metric-card {
  padding: 10px 8px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-solid);
}

.pro-metric-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pro-metric-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.pro-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.pro-highlight-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-solid);
  border-left-width: 3px;
}

.pro-highlight-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.5;
}

.pro-highlight-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.pro-hc-good { border-left-color: #22c55e; }
.pro-hc-good .pro-highlight-tag { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.pro-hc-warn { border-left-color: #f59e0b; }
.pro-hc-warn .pro-highlight-tag { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.pro-hc-ref { border-left-color: #3b82f6; }
.pro-hc-ref .pro-highlight-tag { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.pro-hc-moat { border-left-color: #a855f7; }
.pro-hc-moat .pro-highlight-tag { background: rgba(168, 85, 247, 0.12); color: #7e22ce; }
.pro-hc-val { border-left-color: #14b8a6; }
.pro-hc-val .pro-highlight-tag { background: rgba(20, 184, 166, 0.12); color: #0f766e; }
.pro-hc-quality { border-left-color: #6366f1; }
.pro-hc-quality .pro-highlight-tag { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.pro-hc-risk { border-left-color: #ef4444; }
.pro-hc-risk .pro-highlight-tag { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }

html[data-theme="dark"] .pro-hc-good .pro-highlight-tag { color: #86efac; }
html[data-theme="dark"] .pro-hc-warn .pro-highlight-tag { color: #fcd34d; }
html[data-theme="dark"] .pro-hc-ref .pro-highlight-tag { color: #93c5fd; }
html[data-theme="dark"] .pro-hc-moat .pro-highlight-tag { color: #d8b4fe; }
html[data-theme="dark"] .pro-hc-val .pro-highlight-tag { color: #5eead4; }
html[data-theme="dark"] .pro-hc-quality .pro-highlight-tag { color: #a5b4fc; }
html[data-theme="dark"] .pro-hc-risk .pro-highlight-tag { color: #fca5a5; }

.pro-analysis-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-analysis-section {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-solid);
}

.pro-section-head {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.pro-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 12px;
}

.pro-kv-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pro-kv-label {
  font-size: 11px;
  color: var(--muted);
}

.pro-kv-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.pro-section-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border-radius: 6px;
  border-left: 3px solid rgba(20, 184, 166, 0.5);
}

.pro-analysis-footer {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.55;
}

.pro-highlight {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid var(--border);
}

.pro-hi-good { border-color: rgba(34, 197, 94, 0.5); color: #15803d; }
.pro-hi-warn { border-color: rgba(245, 158, 11, 0.5); color: #b45309; }
.pro-hi-ref { border-color: rgba(59, 130, 246, 0.45); color: #1d4ed8; }
html[data-theme="dark"] .pro-hi-good { color: #86efac; }
html[data-theme="dark"] .pro-hi-warn { color: #fcd34d; }
html[data-theme="dark"] .pro-hi-ref { color: #93c5fd; }
.pro-hi-moat { border-color: rgba(168, 85, 247, 0.5); color: #7e22ce; }
html[data-theme="dark"] .pro-hi-moat { color: #d8b4fe; }
.pro-moat-overall { margin: 0 0 10px; font-size: 15px; }

.pro-analysis-p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.pro-group-title {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* 选股 Tab · 响应式（rem 随屏宽自动缩放，宽屏默认桌面布局） */
.main-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.main-tab {
  flex: 1;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-solid);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.main-tab.active {
  border-color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent);
}
.view-panel.hidden { display: none !important; }
.screener-panel {
  width: 100%;
}
.screener-lead {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}
.screener-toolbar-top {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr);
  gap: 0.875rem;
  align-items: center;
  margin: 0 0 0.875rem;
}
.screener-toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.screener-toolbar-top .screener-add,
.screener-toolbar-top .screener-clear { flex: 0 0 auto; }
.screener-clear {
  color: var(--muted);
  border-color: var(--border);
}
.screener-results-nav {
  margin: 0 0 0.5rem;
}
.screener-back,
.screener-return {
  font-size: 1rem;
  padding: 0.375rem 0;
}
.screener-return-row {
  margin: 0 0 10px;
}
.screener-return-row.hidden { display: none; }

/* 顶栏设置菜单（设备码 · 激活码） */
.head-menu-wrap {
  position: relative;
}
.head-menu-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.head-menu-btn:hover,
.head-menu-btn[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.head-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: min(280px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-solid);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
html[data-theme="light"] .head-menu-panel {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.head-menu-section {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.head-menu-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.head-menu-device-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.head-menu-device-row .device-code-display {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
}
.head-menu-action {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  color: var(--accent2);
  font-size: 14px;
  padding: 8px 0 4px;
  cursor: pointer;
}
.head-menu-action:hover {
  color: var(--accent);
}
.head-menu-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
}
.screener-template-select {
  width: 100%;
  min-width: 0;
  height: var(--input-h);
  font-size: 1rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg, var(--card-solid));
  color: inherit;
}
.screener-toolbar-run {
  margin: 0.875rem 0 0.5rem;
}
.screener-toolbar-run .screener-run {
  width: 100%;
}
.screener-conditions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  width: 100%;
}
.screener-cond-row {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 5rem minmax(6rem, 1fr) 2.75rem;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .screener-cond-row {
  background: rgba(15, 23, 42, 0.03);
}
.screener-cond-row select,
.screener-cond-row input {
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  height: var(--input-h);
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg, var(--card-solid));
  color: inherit;
}
.screener-cond-row .cond-field,
.screener-cond-row .cond-op,
.screener-cond-row .cond-value,
.screener-cond-row .cond-remove {
  min-width: 0;
}
.screener-cond-row .cond-op { text-align: center; font-size: 1.125rem; }
.screener-cond-row .cond-remove {
  font-size: 1.375rem;
  line-height: 1;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  align-self: center;
}
.screener-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 6px;
}
.screener-toolbar .field {
  flex: 1 1 140px;
  min-width: 120px;
}
.screener-toolbar select {
  width: 100%;
  font-size: 16px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg, var(--card-solid));
  color: inherit;
}
.screener-add { flex: 0 0 auto; }
.screener-run { flex: 0 0 auto; min-width: 100px; }
.screener-cond-summary { margin: 0 0 0.5rem; font-size: 0.875rem; }
.screener-results { margin-top: 1rem; width: 100%; }
.screener-result-title {
  margin: 0 0 0.875rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
}
.screener-applied-card,
.screener-companies-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
  margin-bottom: 0.875rem;
}
.screener-block-title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.screener-stats-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.screener-zero-hint {
  margin: 0 0 0.875rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: var(--radius-sm);
}
.screener-zero-hint.hidden {
  display: none;
}
.screener-redundant-hint {
  margin: 0 0 0.875rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-sm);
}
.screener-redundant-hint.hidden {
  display: none;
}
.screener-hit-count {
  color: var(--fail);
  font-weight: 700;
}
.screener-preset-name {
  padding: 0 0 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 600;
}
.screener-applied-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.screener-applied-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.screener-applied-item:last-child { border-bottom: none; }
.screener-applied-main { flex: 1; min-width: 0; }
.screener-applied-main strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.125rem;
}
.screener-applied-detail {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
.screener-applied-count {
  flex: 0 0 auto;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fail);
}
.screener-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.screener-result-table th,
.screener-result-table td {
  padding: 0.75rem 0.625rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.screener-result-table th {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 500;
}
.screener-name-cell { min-width: 8rem; }
.screener-co-name { font-weight: 600; }
.screener-co-code { font-size: 0.875rem; color: var(--muted); margin-top: 0.125rem; }
.screener-up { color: #ef4444; }
.screener-down { color: #22c55e; }
html[data-theme="light"] .screener-up { color: #dc2626; }
html[data-theme="light"] .screener-down { color: #16a34a; }
.screener-disc { margin-top: 0.5rem; font-size: 0.875rem; }
.screener-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.screener-controls .field {
  flex: 1 1 140px;
  min-width: 120px;
}
.screener-controls select,
.screener-controls input {
  width: 100%;
  font-size: 16px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg, var(--card-solid));
  color: inherit;
}
.screener-run { flex: 0 0 auto; min-width: 88px; }
.screener-meta { margin: 0.25rem 0 0.75rem; text-align: left; }
.screener-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.screener-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.screener-table th,
.screener-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.screener-table th {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.03);
}
.screener-table .moat-cell { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
.screener-disc { margin-top: 10px; }

@media (max-width: 767px) {
  .screener-toolbar-top {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .screener-run, .screener-add { width: 100%; }
}

@media (max-width: 560px) {
  .main-tab { font-size: 0.875rem; padding: 0 0.375rem; }
  .screener-toolbar { flex-direction: column; align-items: stretch; }
  .screener-toolbar-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .screener-toolbar-btns .screener-add,
  .screener-toolbar-btns .screener-clear {
    width: 100%;
  }
  .screener-template-select {
    width: 100%;
    height: 2.5rem;
    font-size: 0.9375rem;
  }
  .screener-lead { font-size: 0.8125rem; }
  .screener-conditions {
    gap: 6px;
  }
  .screener-cond-row {
    grid-template-columns: minmax(0, 1fr) 2.75rem minmax(3.5rem, 4.5rem) 2rem;
    gap: 0.35rem;
    padding: 0.5rem 0.5rem;
  }
  html[data-theme="light"] .screener-cond-row {
    background: rgba(15, 23, 42, 0.03);
  }
  .screener-cond-row select,
  .screener-cond-row input {
    height: 2.35rem;
    min-height: 2.35rem;
    font-size: 0.875rem;
    padding: 0 0.4rem;
  }
  .screener-cond-row .cond-remove {
    width: 2rem;
    height: 2rem;
    font-size: 1.125rem;
  }
}

/* ── 手机端选股结果：业务特例（共享贴边规则见 responsive-layout.css §5.7） ── */
@media (max-width: 767px) {
  .panel.screener-panel {
    padding-block: 10px 12px;
    border-bottom: none;
  }

  .screener-cond-row {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    width: calc(100% + 2 * var(--page-gutter));
    box-sizing: border-box;
  }

  .screener-applied-card,
  .screener-companies-card {
    padding: 0.75rem 0;
    margin-bottom: 0.625rem;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .screener-companies-card {
    border-bottom: none;
    margin-bottom: 0;
  }

  .screener-block-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .screener-stats-label {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
  }

  .screener-table-wrap {
    border-bottom: none;
  }

  .screener-result-table {
    font-size: 0.9375rem;
    table-layout: fixed;
    width: 100%;
  }

  .screener-result-table th,
  .screener-result-table td {
    padding: 0.625rem 0.35rem;
    white-space: normal;
    word-break: break-word;
  }

  .screener-result-table th:first-child,
  .screener-result-table td:first-child {
    width: 38%;
  }

  .screener-name-cell {
    min-width: 0;
  }

  .screener-result-table th:nth-child(2),
  .screener-result-table td:nth-child(2),
  .screener-result-table th:nth-child(3),
  .screener-result-table td:nth-child(3) {
    white-space: nowrap;
    text-align: right;
    width: 22%;
  }

  .screener-result-table th:last-child,
  .screener-result-table td:last-child {
    white-space: nowrap;
    width: 18%;
    text-align: center;
  }

  .screener-disc {
    padding-inline: 0;
  }
}

/* ── 股民体验：试用徽章 / 最近分析 / 报告摘要 ── */
.trial-pill {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(234, 88, 12, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
}

.trial-pill.hidden {
  display: none;
}

.recent-stocks {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.recent-stocks.hidden {
  display: none;
}

.recent-label {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.recent-stocks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recent-chip {
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.1);
  color: var(--text);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-chip:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: rgba(20, 184, 166, 0.55);
}

.report-meta {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.summary-head .headline {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 640px) {
  .summary-head {
    flex-direction: column;
    gap: 10px;
  }

  .summary-actions {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
  }

  .summary-actions .btn-export {
    flex: 1;
  }
}

