body.portal-stock main { min-width: 0; }
body.portal-stock .portal-settings { margin-inline: 16px; }
html[data-portal-layout="mobile"] body.portal-stock header { padding: 10px 14px; height: auto; flex-wrap: wrap; }
html[data-portal-layout="mobile"] body.portal-stock .page { padding: 18px 14px; }
html[data-portal-layout="mobile"] body.portal-stock .page-heading { display: block; }
html[data-portal-layout="mobile"] body.portal-stock .actions { flex-wrap: wrap; justify-content: flex-start; }
html[data-portal-layout="mobile"] body.portal-stock :is(.metrics, .depot-cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-portal-layout="mobile"] body.portal-stock :is(.split, #fields, .personal-fields) { grid-template-columns: minmax(0, 1fr); }
html[data-portal-layout="mobile"] body.portal-stock .metric { padding: 12px; overflow-wrap: anywhere; }
html[data-portal-layout="mobile"] body.portal-stock .metric strong { font-size: clamp(16px, 5vw, 23px); }
html[data-portal-layout="mobile"] body.portal-stock .depot-cards { grid-template-columns: minmax(0, 1fr); }
html[data-portal-layout="tablet"] body.portal-stock :is(.metrics, .depot-cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-portal-layout="tablet"] body.portal-stock .split { grid-template-columns: minmax(0, 1fr); }
html[data-portal-theme="dark"] { color-scheme: dark; }
html[data-portal-theme="dark"] body { background: #14221f; color: #e5f3ec; }
html[data-portal-theme="dark"] :is(main, .panel, .metric, .depot-card, header, dialog, .login-card, tr, td, th) {
  background: #1d302a;
  color: #e5f3ec;
  --ink: #e5f3ec;
  --muted: #b4cabf;
  --line: #526b60;
  --green: #81dec1;
}
.analysis-cards { display: none; }
html[data-portal-layout="mobile"] .analysis-table { display: none; }
html[data-portal-layout="mobile"] .analysis-cards { display: grid; gap: 10px; padding: 12px; }
.analysis-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.analysis-card h3 { margin: 0 0 6px; }
.analysis-card a { color: inherit; }
.analysis-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.analysis-card dd { margin: 2px 0 0; font-weight: 650; }
.analysis-card dt { color: var(--muted); }
.stock-point-picker { display: grid; gap: 6px; }
.stock-point-picker input { width: 100%; }
.stock-point-picker + output { display: block; font-size: .85rem; overflow-wrap: anywhere; }
html[data-portal-layout="mobile"] .stock-page :is(.weight-fields, .metrics) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-portal-layout="mobile"] .stock-page .metric { overflow-wrap: anywhere; }
