:root {
  --bg: #f4f4f0;
  --surface: #fbfbf8;
  --surface-strong: #ffffff;
  --text: #161712;
  --muted: #77786f;
  --line: #dedfd7;
  --accent: #263f2d;
  --accent-soft: #e3eadf;
  --positive: #287447;
  --negative: #a64035;
  --sidebar: #1b211c;
  --sidebar-text: #f6f6f0;
  --shadow: 0 18px 45px rgba(22, 23, 18, .06);
}

[data-theme="dark"] {
  --bg: #111310;
  --surface: #171a16;
  --surface-strong: #1d211c;
  --text: #f1f2eb;
  --muted: #999d91;
  --line: #2c312b;
  --accent: #a9c8a5;
  --accent-soft: #263329;
  --positive: #71b889;
  --negative: #df8479;
  --sidebar: #0b0d0b;
  --shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-launch-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #1b211c;
  color: #f6f6f0;
  opacity: 1;
  visibility: visible;
  transition: opacity .38s ease, visibility .38s ease;
}
.app-launch-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.launch-brand { display: grid; justify-items: center; gap: 12px; animation: launch-in .5s ease both; }
.launch-icon {
  width: 86px;
  height: 86px;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.launch-brand strong { margin-top: 5px; font: 700 25px/1.1 Manrope, sans-serif; letter-spacing: -.035em; }
.launch-brand small { color: rgba(246,246,240,.54); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes launch-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .app-launch-screen, .launch-brand { transition: none; animation: none; }
}
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); padding: 32px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; font-family: Manrope, sans-serif; font-weight: 700; font-size: 19px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; font-family: Manrope; }
.main-nav { display: grid; gap: 7px; margin-top: 52px; }
.nav-item { color: rgba(246,246,240,.58); background: transparent; border: 0; border-radius: 10px; padding: 12px 14px; text-align: left; display: flex; gap: 13px; align-items: center; transition: .2s ease; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; display: grid; gap: 8px; }
.sidebar-note .eyebrow { color: rgba(255,255,255,.46); }
.sidebar-note strong { font-family: Manrope; font-size: 17px; }
.sidebar-note small { color: rgba(255,255,255,.5); }
.mini-progress { height: 3px; background: rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; }
.mini-progress span { height: 100%; width: 0; display: block; background: #b6ceb2; transition: width .4s ease; }
.main-content { min-width: 0; padding: 38px clamp(25px, 4vw, 64px) 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.date-label, .eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; margin: 0 0 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 600 clamp(24px, 3vw, 34px)/1.2 Manrope, sans-serif; margin-bottom: 0; letter-spacing: -.035em; }
h2 { font: 600 20px/1.25 Manrope, sans-serif; margin-bottom: 0; letter-spacing: -.025em; }
h3 { font: 600 16px/1.3 Manrope, sans-serif; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.notification-button { position:relative; }.notification-button #notificationBadge { position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; padding:0 4px; border:2px solid var(--bg); border-radius:99px; display:grid; place-items:center; background:var(--negative); color:white; font:600 8px Manrope; }.notification-button #notificationBadge[hidden] { display:none; }
.account-button { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.account-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.account-button.signed-in .account-dot { background: var(--positive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--positive) 16%, transparent); }
.primary-button, .secondary-button, .ghost-button, .icon-button, .mobile-brand { border: 0; border-radius: 10px; }
.primary-button { background: var(--accent); color: var(--surface-strong); padding: 12px 17px; font-weight: 600; }
[data-theme="dark"] .primary-button { color: #152017; }
.secondary-button { background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 11px 15px; }
.ghost-button { color: var(--muted); background: transparent; padding: 11px 15px; }
.icon-button { width: 42px; height: 42px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.mobile-brand { display: none; }
.view { display: none; animation: appear .25s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: .2; transform: translateY(4px); } }
.hero-card { min-height: 265px; background: var(--accent); color: var(--surface-strong); border-radius: 20px; padding: 34px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
[data-theme="dark"] .hero-card { color: #162118; }
.hero-card .eyebrow { color: currentColor; opacity: .55; }
.hero-value { font: 600 clamp(40px, 6vw, 62px)/1.15 Manrope; letter-spacing: -.055em; margin: 10px 0; }
.return-line { font-size: 13px; opacity: .68; }
.return-line span { font-weight: 600; }
.daily-return-card { width: fit-content; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 10px; margin: 12px 0 8px; padding: 9px 12px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 11px; background: color-mix(in srgb, currentColor 7%, transparent); }
.daily-return-card .daily-return-label { grid-column: 1 / -1; color: currentColor; font-size: 9px; font-weight: 700; letter-spacing: .09em; opacity: .62; text-transform: uppercase; }
.daily-return-card strong { font: 600 14px Manrope, sans-serif; }
.daily-return-card > span:last-child { font-size: 12px; font-weight: 600; }
.hero-meta { position: absolute; top: 36px; right: 36px; text-align: right; display: grid; gap: 4px; }
.hero-meta span { font-size: 11px; opacity: .58; text-transform: uppercase; letter-spacing: .1em; }
.quote-status { border: 0; background: transparent; color: inherit; opacity: .62; padding: 5px 0; font-size: 10px; text-align: right; }
.quote-status:hover { opacity: 1; }
.sparkline { position: absolute; height: 120px; bottom: 0; left: 0; right: 0; color: currentColor; opacity: .82; }
.sparkline canvas { width: 100% !important; height: 100% !important; }
.chart-ranges { position: absolute; left: 30px; bottom: 12px; z-index: 3; display: flex; gap: 4px; }
.chart-ranges button { border: 0; border-radius: 6px; padding: 4px 7px; background: transparent; color: currentColor; opacity: .55; font-size: 9px; }
.chart-ranges button:hover, .chart-ranges button.active { background: rgba(255,255,255,.15); opacity: 1; }
[data-theme="dark"] .chart-ranges button:hover, [data-theme="dark"] .chart-ranges button.active { background: rgba(20,32,23,.12); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; margin-top: 18px; }
.panel, .insight-card, .table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 24px rgba(22,23,18,.025); }
.panel { padding: 25px; }
.panel-header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header { margin-bottom: 21px; }
.text-button { border: 0; padding: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.holding-row { display: grid; grid-template-columns: 1.5fr .7fr .8fr; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.holding-company { display: flex; align-items: center; gap: 12px; }
.company-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.holding-company strong, .holding-value strong { display: block; font-size: 14px; }
.holding-company span, .holding-value span { color: var(--muted); font-size: 11px; }
.holding-value { text-align: right; }
.holding-performance { display: grid; justify-items: end; gap: 2px; }
.holding-performance small { color: var(--muted); font-size: 9px; line-height: 1.25; }
.holding-performance small b { font-weight: 600; }
.day-change { font-size: 10px; margin-top: 2px; }
.return-positive { color: var(--positive) !important; }
.return-negative { color: var(--negative) !important; }
.budget-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.budget-panel .panel-header { grid-column: 1/-1; }
.budget-ring { --progress: 0deg; width: 125px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress), var(--accent-soft) 0); display: grid; place-items: center; }
.budget-ring::before { content: ""; position: absolute; width: 95px; aspect-ratio: 1; background: var(--surface); border-radius: 50%; }
.budget-ring { position: relative; }
.budget-ring div { position: relative; text-align: center; display: grid; }
.budget-ring strong { font: 600 22px Manrope; }
.budget-ring span { font-size: 10px; color: var(--muted); }
.budget-stats { display: grid; gap: 16px; }
.budget-stats div { display: grid; gap: 3px; }
.budget-stats span { color: var(--muted); font-size: 11px; }
.budget-stats strong { font-size: 14px; }
.activity-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-item div { display: grid; gap: 3px; }
.activity-item span, .activity-item time { color: var(--muted); font-size: 11px; }
.activity-item strong { font-size: 13px; }
.insight-card { padding: 25px; display: flex; gap: 17px; background: var(--accent-soft); border-color: transparent; }
.insight-icon { width: 37px; height: 37px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: var(--surface); display: grid; place-items: center; }
.insight-card p { color: var(--muted); line-height: 1.55; font-size: 13px; margin-bottom: 0; }
.section-heading { margin: 6px 0 22px; }
.section-copy { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.table-card { overflow: hidden; }
.performance-card { margin-bottom:18px; padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.performance-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }.performance-header p { margin:6px 0 0; color:var(--muted); font-size:10px; }.performance-header p a { color:inherit; }.performance-controls { display:flex; gap:8px; }.performance-controls select { width:auto; min-width:135px; }
.performance-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:20px 0 12px; }.performance-stats div { padding:12px 14px; background:var(--bg); border-radius:10px; display:grid; gap:4px; }.performance-stats span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.07em; }.performance-stats strong { font:600 17px Manrope; }
.performance-chart-wrap { height:230px; }.performance-chart-wrap canvas { width:100% !important; height:100% !important; }.performance-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:12px; }.performance-legend { display:flex; gap:14px; color:var(--muted); font-size:9px; }.performance-legend span { display:flex; align-items:center; gap:5px; }.performance-legend i { width:15px; height:2px; display:block; }.portfolio-line { background:var(--accent); }.benchmark-line { background:#9aa79b; }
.performance-ranges { display:flex; gap:3px; }.performance-ranges button { border:0; border-radius:6px; background:transparent; color:var(--muted); padding:5px 8px; font-size:9px; }.performance-ranges button.active { background:var(--accent-soft); color:var(--accent); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; background: var(--surface); }
th, td { padding: 17px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 600; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.candidate-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 22px; }
.candidate-top { display: flex; justify-content: space-between; gap: 10px; }
.candidate-card p { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 58px; }
.delete-link { color: var(--muted); background: transparent; border: 0; font-size: 11px; padding: 0; }
.empty-state { min-height: 330px; border: 1px dashed var(--line); border-radius: 16px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-state span { font-size: 34px; }
.empty-state h3 { color: var(--text); margin: 13px 0 4px; }
.empty-state p { font-size: 13px; }
.empty-state.compact { min-height: 230px; }
.empty-state[hidden] { display:none; }
.ai-disclaimer { display: flex; align-items: center; gap: 11px; background: var(--accent-soft); border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; }
.ai-disclaimer > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 11px; font-weight: 700; }
.ai-disclaimer p { margin: 0; color: var(--muted); font-size: 11px; }
.strategy-tabs { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 5px 0 18px; }
.strategy-tab { min-width: 175px; border: 0; border-radius: 8px; padding: 10px 14px; background: transparent; color: var(--muted); display: flex; justify-content: center; gap: 8px; }
.strategy-tab span { opacity: .7; font-size: 10px; align-self: center; }
.strategy-tab.active { background: var(--accent); color: var(--surface-strong); box-shadow: var(--shadow); }
[data-theme="dark"] .strategy-tab.active { color: #142017; }
.ai-status { min-height: 20px; color: var(--muted); font-size: 11px; text-align: right; }
.ai-candidate-list { display: grid; gap: 10px; }
.ai-candidate-row { display: grid; grid-template-columns: 42px minmax(160px, 1.25fr) .75fr .65fr .75fr 30px; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; transition: .2s ease; }
.ai-candidate-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.candidate-rank { width: 29px; height: 29px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 12px Manrope; }
.candidate-name strong, .candidate-metric strong { display: block; font-size: 13px; }
.candidate-name span, .candidate-metric span { color: var(--muted); font-size: 10px; }
.risk-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 5px; }
.risk-lav { background: var(--positive); }.risk-mellem { background: #c08a27; }.risk-høj { background: var(--negative); }
.detail-button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.saved-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 45px 0 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.journal-intro { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 20px 22px; margin-bottom: 18px; border-radius: 15px; background: var(--accent-soft); }
.journal-intro p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.journal-progress { min-width: 90px; text-align: right; display: grid; }
.journal-progress strong { font: 600 20px Manrope; }.journal-progress span { color: var(--muted); font-size: 10px; }
.journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.journal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 21px; display: grid; gap: 18px; }
.journal-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.journal-company { display: flex; align-items: center; gap: 11px; }.journal-company h3 { margin: 0 0 3px; }.journal-company p { margin: 0; color: var(--muted); font-size: 10px; }
.journal-status { padding: 5px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 9px; white-space: nowrap; }
.journal-status.review { background: color-mix(in srgb, #c08a27 16%, var(--surface)); color: #a16d13; }
.journal-summary { color: var(--muted); font-size: 12px; line-height: 1.55; min-height: 38px; margin: 0; }
.journal-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.journal-completion { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }.journal-completion-bar { width: 100px; height: 3px; border-radius: 5px; background: var(--line); overflow: hidden; }.journal-completion-bar span { display: block; height: 100%; background: var(--accent); }
.journal-dialog { width: min(720px, calc(100vw - 30px)); }
.journal-ticker { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.journal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.journal-form-grid label { font-size: 11px; color: var(--muted); display: grid; gap: 7px; }.journal-form-grid .full { grid-column: 1/-1; }
.journal-meta { min-height: 16px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.back-button { border: 0; background: transparent; color: var(--muted); padding: 0; margin-bottom: 20px; font-size: 11px; }
.position-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.position-identity { display: flex; align-items: center; gap: 14px; }.position-logo { width: 52px; height: 52px; font-size: 14px; }.position-identity h2 { font-size: 27px; }.position-identity p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.position-identity p a { color: inherit; }
.position-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.position-stats article { min-width: 0; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 5px; }.position-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }.position-stats strong { font: 600 15px Manrope; white-space: nowrap; }.position-stats small { color: var(--muted); font-size: 9px; }
.position-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.position-thesis { min-height: 62px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.position-journal-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0; }.position-journal-facts div { padding: 11px; background: var(--bg); border-radius: 9px; display: grid; gap: 4px; }.position-journal-facts span, .position-plan span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }.position-journal-facts strong { font-size: 11px; }
.position-plan { display: grid; gap: 15px; }.position-plan div { padding-bottom: 13px; border-bottom: 1px solid var(--line); }.position-plan div:last-child { border: 0; padding-bottom: 0; }.position-plan p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 5px 0 0; }
.position-history { margin-top: 18px; }.position-table-heading { padding: 21px 21px 0; }
.research-center { margin-top:18px; }
.research-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.research-header p { margin:5px 0 0; color:var(--muted); font-size:10px; }
.research-empty { display:flex; align-items:center; gap:14px; padding:26px 4px 5px; color:var(--muted); }
.research-empty[hidden] { display:none; }
.research-empty > span { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); font-size:20px; }
.research-empty strong { color:var(--text); }.research-empty p { margin:5px 0 0; font-size:11px; line-height:1.5; }
.research-content { padding-top:20px; display:grid; gap:18px; }.research-content[hidden] { display:none; }
.research-summary { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }.research-summary h3 { margin:5px 0 7px; font-size:20px; }.research-summary p { max-width:780px; margin:0; color:var(--muted); font-size:12px; line-height:1.65; }
.research-risk { padding:7px 11px; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:10px; white-space:nowrap; }
.research-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }.research-metrics article { min-width:0; padding:14px; border-radius:11px; background:var(--bg); display:grid; gap:5px; overflow-wrap:anywhere; }.research-metrics span { color:var(--muted); font-size:9px; text-transform:uppercase; }.research-metrics strong { font:600 13px Manrope; }.research-metrics small { color:var(--muted); font-size:8px; line-height:1.35; }
.research-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }.research-columns article { min-width:0; padding:17px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }.research-columns ul { margin:12px 0 0; padding-left:18px; color:var(--muted); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }.research-columns li + li { margin-top:7px; }
.research-calendar { display:grid; grid-template-columns:minmax(180px,230px) minmax(0,1fr); gap:18px; padding:16px; border-radius:11px; background:var(--accent-soft); }.research-calendar div { min-width:0; display:grid; gap:4px; }.research-calendar span { color:var(--muted); font-size:9px; text-transform:uppercase; }.research-calendar strong { font-size:12px; overflow-wrap:anywhere; }.research-calendar p { min-width:0; margin:0; font-size:11px; line-height:1.55; overflow-wrap:anywhere; }
.research-sources { padding-top:14px; border-top:1px solid var(--line); display:flex; gap:12px; align-items:flex-start; }.research-sources > span { color:var(--muted); font-size:9px; text-transform:uppercase; }.research-sources div { display:flex; flex-wrap:wrap; gap:7px; }.research-sources a { color:var(--accent); font-size:9px; }
.company-link { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; font-weight: inherit; }
.risk-overview { display: grid; grid-template-columns: minmax(300px, 1.35fr) repeat(3, minmax(130px, .65fr)); gap: 12px; margin-bottom: 18px; }
.risk-score-card, .risk-key-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 20px; }
.risk-score-card { display: flex; align-items: center; gap: 17px; }.risk-score-card h3 { margin: 0 0 5px; }.risk-score-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.risk-score-ring { --score: 0deg; flex: 0 0 auto; width: 88px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) var(--score), var(--accent-soft) 0); display: grid; place-items: center; position: relative; }.risk-score-ring::before { content:""; position:absolute; width:68px; aspect-ratio:1; background:var(--surface); border-radius:50%; }.risk-score-ring div { position:relative; display:flex; align-items:baseline; }.risk-score-ring strong { font:600 23px Manrope; }.risk-score-ring span { color:var(--muted); font-size:9px; }
.risk-key-card { display: grid; align-content: center; gap: 5px; }.risk-key-card > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }.risk-key-card strong { font: 600 17px Manrope; overflow: hidden; text-overflow: ellipsis; }.risk-key-card b { color: var(--muted); font-size: 10px; font-weight: 500; }
.risk-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }.risk-tabs { display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:9px; }.risk-tabs button { border:0; border-radius:6px; padding:6px 8px; color:var(--muted); background:transparent; font-size:9px; }.risk-tabs button.active { background:var(--accent); color:var(--surface); }
.risk-distribution { display:grid; gap:15px; }.distribution-row { display:grid; grid-template-columns:minmax(90px, 1fr) 2fr auto; align-items:center; gap:12px; }.distribution-label strong { display:block; font-size:12px; }.distribution-label span { color:var(--muted); font-size:9px; }.distribution-bar { height:6px; background:var(--accent-soft); border-radius:10px; overflow:hidden; }.distribution-bar span { display:block; height:100%; background:var(--accent); border-radius:inherit; }.distribution-weight { font-size:11px; font-weight:600; }
.stress-grid { display:grid; gap:10px; }.stress-grid div { padding:14px; border-radius:10px; background:var(--bg); display:grid; grid-template-columns:auto 1fr; gap:4px 12px; align-items:center; }.stress-grid span { color:var(--negative); font-weight:600; font-size:12px; }.stress-grid strong { text-align:right; font-size:13px; color:var(--negative); }.stress-grid small { grid-column:1/-1; color:var(--muted); font-size:9px; }.stress-note { margin:15px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.risk-findings-panel { margin-top:18px; }.risk-findings { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.risk-finding { padding:15px; border:1px solid var(--line); border-radius:11px; }.risk-finding span { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-size:11px; }.risk-finding strong { display:block; margin:10px 0 5px; font-size:12px; }.risk-finding p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.ai-loading { min-height: 310px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); text-align: center; }
.loading-orb { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analysis-dialog { width: min(690px, calc(100vw - 28px)); }
.analysis-content { padding: 30px; }
.analysis-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.analysis-top h2 { font-size: 26px; }
.analysis-score { min-width: 64px; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--accent-soft); display: grid; place-content: center; text-align: center; }
.analysis-score strong { font: 600 18px Manrope; }.analysis-score span { color: var(--muted); font-size: 8px; }
.analysis-summary { color: var(--muted); line-height: 1.65; font-size: 14px; margin: 22px 0; }
.analysis-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.analysis-fact { background: var(--bg); border-radius: 10px; padding: 13px; display: grid; gap: 4px; }
.analysis-fact span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.analysis-fact strong { font-size: 12px; }
.analysis-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-top: 23px; }
.analysis-columns h3 { margin-bottom: 10px; }.analysis-columns ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-list { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.source-list a { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; }
.analysis-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
dialog { width: min(560px, calc(100vw - 30px)); border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface-strong); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
dialog::backdrop { background: rgba(14, 17, 14, .52); backdrop-filter: blur(5px); }
.dialog-form { padding: 27px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 23px; }
.close-button { border: 0; background: transparent; color: var(--muted); font-size: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { font-size: 11px; color: var(--muted); display: grid; gap: 7px; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.auth-dialog { width: min(440px, calc(100vw - 30px)); }
.auth-copy { color: var(--muted); font-size: 13px; line-height: 1.55; margin: -10px 0 21px; }
.auth-message { min-height: 18px; color: var(--muted); font-size: 11px; margin: 14px 0 0; }
.auth-message.error { color: var(--negative); }
.auth-message.success { color: var(--positive); }
.auth-actions { justify-content: space-between; }
.toast { position: fixed; right: 25px; bottom: 25px; background: var(--text); color: var(--bg); padding: 13px 17px; border-radius: 10px; font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.empty-portfolio-onboarding { margin-bottom:18px; padding:22px; border:1px solid var(--line); border-radius:16px; background:var(--surface); display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:17px; box-shadow:var(--shadow); }
.empty-portfolio-onboarding[hidden] { display:none; }
.empty-portfolio-onboarding .onboarding-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:13px; background:var(--accent-soft); color:var(--accent); font-size:21px; }
.empty-portfolio-onboarding h2 { margin:4px 0; font-size:19px; }.empty-portfolio-onboarding p { margin:0; max-width:680px; color:var(--muted); font-size:11px; line-height:1.5; }
.position-actions, .transaction-heading-actions, .transaction-row-actions { display:flex; align-items:center; gap:8px; }
.realized-summary { display:grid; text-align:right; }.realized-summary span { color:var(--muted); font-size:9px; text-transform:uppercase; }.realized-summary strong { font-size:13px; }
.transaction-row-actions button { border:0; background:transparent; color:var(--muted); padding:3px; font-size:10px; }.transaction-row-actions .delete-transaction { color:var(--negative); }
.trade-form-message { min-height:16px; margin:12px 0 -10px; color:var(--muted); font-size:10px; }.trade-form-message.error { color:var(--negative); }
.settings-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:18px; }
.settings-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; }.settings-form-grid .full { grid-column:1/-1; }.settings-form-grid label { display:grid; gap:7px; color:var(--muted); font-size:10px; }
.settings-help { margin:16px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.account-settings-card { align-content:start; display:grid; gap:17px; }.account-settings-card > div:first-child { padding-bottom:14px; border-bottom:1px solid var(--line); }.account-settings-card p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.account-detail { display:grid; gap:4px; }.account-detail span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.07em; }.account-detail strong { font-size:12px; overflow-wrap:anywhere; }.settings-logout { color:var(--negative); }
.ai-quota-card { display:grid; gap:8px; padding:14px; border-radius:11px; background:var(--bg); }.ai-quota-card > div:first-child { display:flex; justify-content:space-between; gap:10px; }.ai-quota-card span, .ai-quota-card small { color:var(--muted); font-size:9px; }.ai-quota-card strong { font-size:11px; }.ai-quota-bar { height:5px; overflow:hidden; border-radius:99px; background:var(--line); }.ai-quota-bar span { display:block; width:0; height:100%; background:var(--accent); transition:.25s; }
.notification-settings { display:grid; gap:12px; margin-top:20px; padding:17px; border-radius:12px; background:var(--bg); }.notification-settings h3 { margin:4px 0 0; font-size:15px; }.notification-settings > label:not(.check-setting) { display:grid; gap:7px; color:var(--muted); font-size:10px; }.check-setting { display:grid; grid-template-columns:18px 1fr; align-items:start; gap:8px; }.check-setting input { width:16px; height:16px; margin-top:1px; accent-color:var(--accent); }.check-setting span { display:grid; gap:3px; }.check-setting strong { font-size:10px; }.check-setting small, #browserNotificationStatus { color:var(--muted); font-size:8px; line-height:1.4; }
.notification-dialog { width:min(620px,calc(100vw - 30px)); }.notification-dialog-copy { margin:5px 0 0; color:var(--muted); font-size:10px; }.notification-list { display:grid; gap:8px; max-height:55vh; overflow-y:auto; }.notification-item { display:grid; grid-template-columns:34px 1fr auto; align-items:start; gap:11px; padding:13px; border:1px solid var(--line); border-radius:11px; }.notification-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:13px; }.notification-copy strong { display:block; font-size:11px; }.notification-copy p { margin:4px 0; color:var(--muted); font-size:9px; line-height:1.45; }.notification-copy span { color:var(--muted); font-size:8px; }.dismiss-notification { border:0; background:transparent; color:var(--muted); font-size:16px; }.notification-item.urgent { border-color:color-mix(in srgb,var(--negative) 35%,var(--line)); }.notification-item.urgent .notification-icon { background:color-mix(in srgb,var(--negative) 12%,var(--surface)); color:var(--negative); }
.calendar-heading-actions { display:flex; gap:9px; }.calendar-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }.calendar-stats article { padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); display:grid; gap:5px; }.calendar-stats span { color:var(--muted); font-size:9px; text-transform:uppercase; }.calendar-stats strong { font:600 15px Manrope; }
.calendar-panel { padding:18px; }.calendar-toolbar { display:grid; grid-template-columns:38px 1fr 38px; align-items:center; gap:12px; margin-bottom:15px; }.calendar-toolbar h2 { text-align:center; font-size:18px; }.calendar-weekdays, .calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }.calendar-weekdays span { padding:7px; color:var(--muted); text-align:center; font-size:8px; text-transform:uppercase; }.calendar-day { min-width:0; min-height:88px; padding:8px; border-top:1px solid var(--line); border-left:1px solid var(--line); background:var(--surface); }.calendar-day:nth-child(7n) { border-right:1px solid var(--line); }.calendar-day:nth-last-child(-n+7) { border-bottom:1px solid var(--line); }.calendar-day.outside { opacity:.38; }.calendar-day.today .calendar-day-number { background:var(--accent); color:var(--surface); }.calendar-day-number { width:23px; height:23px; border-radius:50%; display:grid; place-items:center; font-size:9px; }.calendar-day-events { display:grid; gap:3px; margin-top:5px; }.calendar-event-pill { overflow:hidden; padding:4px 5px; border-radius:5px; background:var(--accent-soft); color:var(--accent); font-size:7px; text-overflow:ellipsis; white-space:nowrap; }.calendar-event-pill.Udbytte { background:color-mix(in srgb,#b68b2f 15%,var(--surface)); color:#9a711c; }
.upcoming-events-panel { margin-top:16px; }.calendar-filters { display:flex; gap:5px; }.calendar-filters button { border:0; border-radius:99px; padding:6px 9px; background:var(--bg); color:var(--muted); font-size:8px; }.calendar-filters button.active { background:var(--accent); color:var(--surface); }.upcoming-events { display:grid; gap:8px; margin-top:16px; }.upcoming-event { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:13px; padding:13px; border:1px solid var(--line); border-radius:11px; }.event-date { display:grid; justify-items:center; padding-right:12px; border-right:1px solid var(--line); }.event-date strong { font:600 19px Manrope; }.event-date span { color:var(--muted); font-size:8px; text-transform:uppercase; }.event-copy { min-width:0; }.event-copy strong { display:block; font-size:11px; }.event-copy p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.45; }.event-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }.event-meta span, .event-meta a { font-size:8px; color:var(--muted); }.event-actions { display:grid; justify-items:end; gap:7px; }.event-type { padding:5px 7px; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:8px; }.delete-event { border:0; background:transparent; color:var(--negative); font-size:8px; }
.news-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }.news-stats article { padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); display:grid; gap:5px; }.news-stats span { color:var(--muted); font-size:9px; text-transform:uppercase; }.news-stats strong { font:600 16px Manrope; }.news-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:15px; border-bottom:1px solid var(--line); }.news-filters { display:flex; gap:8px; }.news-filters select { width:auto; min-width:150px; }.news-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }.news-card { min-width:0; padding:17px; border:1px solid var(--line); border-radius:13px; display:grid; gap:12px; background:var(--surface); }.news-card.unread { border-left:3px solid var(--accent); }.news-card-top { display:flex; justify-content:space-between; gap:10px; }.news-company { display:flex; gap:9px; align-items:center; }.news-company .company-logo { width:32px; height:32px; }.news-company strong { display:block; font-size:10px; }.news-company span { color:var(--muted); font-size:8px; }.news-impact { height:max-content; padding:5px 7px; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:8px; white-space:nowrap; }.news-impact.Høj { background:color-mix(in srgb,var(--negative) 12%,var(--surface)); color:var(--negative); }.news-card h3 { margin:0; font-size:15px; line-height:1.35; }.news-card > p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }.news-relevance { padding:10px; border-radius:9px; background:var(--bg); font-size:9px; line-height:1.45; }.news-relevance span { display:block; margin-bottom:3px; color:var(--muted); font-size:7px; text-transform:uppercase; }.news-card-footer { display:flex; justify-content:space-between; align-items:center; gap:9px; padding-top:10px; border-top:1px solid var(--line); }.news-tags { display:flex; flex-wrap:wrap; gap:5px; }.news-tags span { color:var(--muted); font-size:8px; }.news-source { color:var(--accent); font-size:9px; white-space:nowrap; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 28px 14px; align-items: center; }
  .brand > span:last-child, .nav-item > span:last-child, .sidebar-note { display: none; }
  .main-nav { width: 100%; }
  .nav-item { justify-content: center; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: repeat(2, 1fr); }
  .position-stats { grid-template-columns: repeat(3, 1fr); }
  .risk-overview { grid-template-columns: 1fr 1fr; }.risk-score-card { grid-column:1/-1; }.risk-layout { grid-template-columns:1fr; }
  .performance-header { align-items:stretch; }.performance-controls { flex-direction:column; }
  .settings-layout { grid-template-columns:1fr; }
}

@media (max-width: 650px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 68px; padding: 8px 12px; }
  .sidebar .brand { display: none; }
  .main-nav { margin: 0; display: grid; grid-template-columns: repeat(9, minmax(48px, 1fr)); overflow-x:auto; }
  .nav-item { display: grid; justify-items: center; gap: 2px; padding: 5px; font-size: 9px; }
  .nav-item > span:last-child { display: inline; }
  .nav-icon { font-size: 16px; }
  .main-content { padding: 23px 18px 92px; }
  .topbar { margin-bottom: 23px; }
  .topbar h1 { font-size: 22px; }
  .date-label { display: none; }
  .mobile-brand { display: none; }
  .primary-button { padding: 11px 13px; }
  .primary-button span { display: none; }
  .account-button { width: 42px; padding: 0; justify-content: center; }
  .account-button #accountButtonText { display: none; }
  .hero-card { min-height: 235px; padding: 25px; }
  .hero-meta { top: auto; bottom: 19px; right: 24px; z-index: 2; }
  .hero-value { font-size: 39px; }
  .dashboard-grid { gap: 13px; margin-top: 13px; }
  .panel { padding: 20px; }
  .budget-panel { grid-template-columns: 1fr 1fr; }
  .candidate-grid { grid-template-columns: 1fr; }
  .strategy-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.strategy-tab { min-width: 0; display: grid; gap: 2px; }
  .ai-candidate-row { grid-template-columns: 32px 1fr auto; gap: 10px; }.ai-candidate-row .candidate-metric:nth-of-type(2), .ai-candidate-row .candidate-metric:nth-of-type(3) { display: none; }
  .analysis-facts, .analysis-columns { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .journal-grid { grid-template-columns: 1fr; }.journal-intro { grid-template-columns: auto 1fr; }.journal-progress { grid-column: 2; text-align: left; }.journal-form-grid { grid-template-columns: 1fr; }.journal-form-grid .full { grid-column: auto; }
  .position-heading { align-items: flex-start; }.position-stats { grid-template-columns: repeat(2, 1fr); }.position-layout { grid-template-columns: 1fr; }.position-journal-facts { grid-template-columns: 1fr; }
  .research-header { display:grid; }.research-metrics { grid-template-columns:repeat(2,1fr); }.research-columns { grid-template-columns:1fr; }.research-calendar { grid-template-columns:1fr; }
  .risk-overview { grid-template-columns:1fr 1fr; }.risk-key-card { padding:15px; }.risk-tabs { overflow-x:auto; max-width:180px; }.distribution-row { grid-template-columns:1fr auto; }.distribution-bar { grid-column:1/-1; grid-row:2; }.risk-findings { grid-template-columns:1fr; }
  .performance-header { display:grid; }.performance-controls { display:grid; grid-template-columns:1fr; }.performance-controls select { width:100%; }.performance-stats { grid-template-columns:1fr; }.performance-chart-wrap { height:200px; }.performance-footer { align-items:flex-end; }.performance-legend { display:grid; gap:5px; }
  .section-heading { align-items: flex-end; }
  .empty-portfolio-onboarding { grid-template-columns:auto 1fr; }.empty-portfolio-onboarding .primary-button { grid-column:1/-1; }
  .position-actions { display:grid; }.transaction-heading-actions { align-items:flex-end; }.transaction-row-actions { display:grid; }
  .settings-form-grid { grid-template-columns:1fr; }.settings-form-grid .full { grid-column:auto; }
  .calendar-heading-actions { display:grid; }.calendar-stats { grid-template-columns:1fr; }.calendar-day { min-height:62px; padding:4px; }.calendar-event-pill { font-size:0; width:7px; height:7px; padding:0; border-radius:50%; }.calendar-weekdays span { padding:4px; }.calendar-filters { max-width:190px; overflow-x:auto; }.upcoming-event { grid-template-columns:48px 1fr; }.event-actions { grid-column:2; display:flex; justify-content:space-between; width:100%; }
  .news-stats { grid-template-columns:1fr; }.news-toolbar { align-items:stretch; display:grid; }.news-filters { display:grid; grid-template-columns:1fr; }.news-filters select { width:100%; }.news-grid { grid-template-columns:1fr; }
}

/* Professional layout refresh — shared hierarchy across every view */
:root {
  --content-max: 1380px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --space-page: clamp(24px, 3.2vw, 52px);
}

body { line-height: 1.5; }
.app-shell { grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { padding: 28px 20px 22px; border-right: 1px solid rgba(255,255,255,.06); }
.brand { padding: 4px 10px; font-size: 18px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.main-nav { gap: 4px; margin-top: 38px; }
.nav-item { min-height: 44px; padding: 10px 12px; border-radius: 11px; font-size: 13px; font-weight: 500; }
.nav-item:nth-child(4), .nav-item:nth-child(7), .nav-item:nth-child(9) { margin-top: 10px; }
.nav-item:nth-child(4)::before, .nav-item:nth-child(7)::before, .nav-item:nth-child(9)::before { content:""; position:absolute; left:12px; right:12px; margin-top:-28px; border-top:1px solid rgba(255,255,255,.07); }
.nav-item { position: relative; }
.nav-icon { opacity: .78; font-size: 15px; }
.sidebar-note { padding: 16px; border-radius: 13px; }

.main-content { width: 100%; padding: 0 var(--space-page) 72px; }
.topbar { position: sticky; z-index: 12; top: 0; min-height: 102px; margin: 0 calc(var(--space-page) * -1) 30px; padding: 20px var(--space-page); background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); backdrop-filter: blur(16px); }
.topbar > div:first-of-type { min-width: 0; }
.top-actions { flex-wrap: wrap; justify-content: flex-end; }
.view { width: min(100%, var(--content-max)); margin-inline: auto; }
h1 { font-size: clamp(25px, 2.4vw, 36px); }
h2 { font-size: 21px; }
.date-label, .eyebrow { font-size: 10px; letter-spacing: .14em; }
.section-heading { align-items: flex-end; margin: 0 0 24px; padding: 3px 2px 0; }
.section-heading h2 { font-size: clamp(23px, 2.2vw, 30px); }
.section-copy { max-width: 680px; font-size: 13px; line-height: 1.6; }

.panel, .insight-card, .table-card, .performance-card, .candidate-card, .journal-card,
.risk-score-card, .risk-key-card, .news-stats article, .calendar-stats article {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 1px rgba(22,23,18,.025), 0 12px 35px rgba(22,23,18,.035);
}
.panel { padding: clamp(22px, 2.2vw, 30px); }
.panel-header { margin-bottom: 24px; }
.panel-header h2 { font-size: 19px; }
.primary-button, .secondary-button, .ghost-button { min-height: 42px; border-radius: 11px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(22,23,18,.09); }
.primary-button:disabled, .secondary-button:disabled { transform:none; box-shadow:none; cursor:not-allowed; opacity:.55; }
.text-button { font-size: 12px; font-weight: 500; }

.hero-card { min-height: 292px; padding: clamp(28px, 3vw, 42px); border-radius: 22px; }
.hero-value { font-size: clamp(44px, 5.5vw, 72px); margin-top: 16px; }
.hero-meta { top: 42px; right: 42px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(310px, .72fr); gap: 20px; margin-top: 20px; }
.holding-row { grid-template-columns: minmax(190px,1.5fr) minmax(120px,.75fr) minmax(130px,.85fr); padding: 18px 0; }
.holding-company strong, .holding-value strong { font-size: 14px; }
.holding-company span, .holding-value span { font-size: 11px; }
.activity-item { padding: 16px 0; }
.insight-card { padding: 28px; }
.budget-panel { min-height: 275px; }

.performance-card { padding: 28px; }
.performance-stats { gap: 12px; }
.performance-stats div { padding: 16px; }
.performance-stats span { font-size: 10px; }
.performance-stats strong { font-size: 20px; }
.performance-chart-wrap { height: 270px; }

.table-card { background: var(--surface); }
.table-scroll { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
table { min-width: 760px; }
th { position: sticky; top: 0; z-index: 1; padding-top: 15px; padding-bottom: 15px; font-size: 9px; background: var(--surface); }
td { padding-top: 18px; padding-bottom: 18px; font-size: 12px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 42%, transparent); }

.ai-disclaimer { padding: 15px 18px; margin-bottom: 20px; }
.ai-disclaimer p { font-size: 12px; line-height: 1.5; }
.ai-candidate-list { gap: 12px; }
.ai-candidate-row { min-height: 76px; padding: 18px 20px; }
.candidate-name strong, .candidate-metric strong { font-size: 13px; }
.candidate-name span, .candidate-metric span { font-size: 10px; }
.candidate-grid, .journal-grid { gap: 18px; }
.candidate-card, .journal-card { padding: 24px; }
.candidate-card p, .journal-summary { font-size: 12px; line-height: 1.65; }
.journal-intro { padding: 23px 25px; margin-bottom: 20px; }

.position-heading { margin-bottom: 24px; }
.position-stats { gap: 12px; margin-bottom: 20px; }
.position-stats article { padding: 19px; border-radius: 14px; }
.position-stats span { font-size: 9px; }
.position-stats strong { font-size: 16px; }
.position-layout, .risk-layout { gap: 20px; }
.research-center { margin-top: 20px; overflow: hidden; }
.research-content, .research-content * { min-width: 0; }
.research-summary p { font-size: 13px; line-height: 1.7; }
.research-metrics { gap: 11px; }
.research-metrics article { padding: 16px; }
.research-columns { gap: 16px; }
.research-columns article { padding: 21px; overflow: hidden; }
.research-columns ul { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; }
.research-columns li { max-width: 100%; }
.research-calendar { align-items:start; padding: 20px; }
.research-calendar p, .research-calendar strong { overflow-wrap: anywhere; word-break: break-word; }
.research-sources { display:grid; grid-template-columns:auto minmax(0,1fr); }
.research-sources div { min-width:0; }
.research-sources a { display:inline-flex; max-width:100%; padding:6px 9px; border-radius:8px; background:var(--bg); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.risk-overview { gap: 14px; margin-bottom: 20px; }
.risk-score-card, .risk-key-card { padding: 23px; }
.risk-key-card strong { font-size: 18px; }
.risk-findings { gap: 12px; }
.risk-finding { padding: 18px; }
.stress-grid div { padding: 16px; }

.calendar-stats, .news-stats { gap: 12px; margin-bottom: 20px; }
.calendar-stats article, .news-stats article { min-height: 86px; padding: 18px 20px; justify-content:center; }
.calendar-stats span, .news-stats span { font-size: 9px; letter-spacing:.08em; }
.calendar-stats strong, .news-stats strong { font-size: 18px; }
.calendar-panel { padding: 24px; }
.calendar-day { min-height: 108px; padding: 9px; }
.calendar-event-pill { padding: 5px 6px; font-size: 8px; }
.upcoming-event { padding: 16px; }
.event-copy strong { font-size: 12px; }
.event-copy p { font-size: 10px; }

.news-panel { padding: 24px; }
.news-grid { gap: 16px; margin-top: 20px; }
.news-card { padding: 21px; gap: 14px; border-radius: 15px; }
.news-card h3 { font-size: 16px; line-height: 1.45; }
.news-card > p { font-size: 11px; line-height: 1.65; }
.news-relevance { padding: 13px; font-size: 10px; line-height: 1.55; }
.news-source { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.settings-layout { gap: 20px; }
.settings-form-grid { gap: 17px; }
.settings-form-grid label, .journal-form-grid label { font-size: 11px; }
input, select, textarea { min-height: 44px; padding: 12px 13px; transition: border-color .15s ease, box-shadow .15s ease; }
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
dialog { border-radius: 20px; }
.dialog-form { padding: 30px; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { padding: 24px 14px; align-items:center; }
  .brand > span:last-child, .nav-item > span:last-child, .sidebar-note { display:none; }
  .brand { padding:0; }
  .main-nav { width:100%; margin-top:32px; }
  .nav-item { justify-content:center; }
  .nav-item::before { display:none; }
  .dashboard-grid { grid-template-columns:1fr; }
  .budget-panel { min-height:0; }
  .position-stats { grid-template-columns:repeat(3,1fr); }
  .risk-overview { grid-template-columns:1fr 1fr; }
  .risk-score-card { grid-column:1/-1; }
  .risk-layout, .settings-layout { grid-template-columns:1fr; }
}

@media (max-width: 700px) {
  :root { --space-page: 16px; }
  .app-shell { display:block; }
  .sidebar { position:fixed; z-index:30; inset:auto 0 0; width:100%; height:72px; padding:7px 8px max(7px,env(safe-area-inset-bottom)); border-right:0; border-top:1px solid rgba(255,255,255,.08); align-items:stretch; }
  .sidebar .brand, .sidebar-note { display:none; }
  .main-nav { display:flex; width:100%; margin:0; gap:3px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
  .main-nav::-webkit-scrollbar { display:none; }
  .nav-item { flex:0 0 70px; min-height:56px; display:grid; place-items:center; align-content:center; gap:2px; padding:5px 3px; font-size:9px; }
  .nav-item > span:last-child { display:block; }
  .nav-item:nth-child(4), .nav-item:nth-child(7), .nav-item:nth-child(9) { margin-top:0; }
  .main-content { padding:0 var(--space-page) 96px; }
  .topbar { min-height:82px; margin:0 calc(var(--space-page) * -1) 22px; padding:13px var(--space-page); }
  .topbar h1 { max-width:150px; font-size:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .date-label { display:none; }
  .account-button { width:40px; padding:0; justify-content:center; }
  .account-button #accountButtonText { display:none; }
  .top-actions { gap:6px; flex-wrap:nowrap; }
  .icon-button { width:40px; height:40px; }
  #openTradeButton { width:40px; padding:0; font-size:0; }
  #openTradeButton span { display:inline; font-size:18px; margin:auto; }
  .section-heading, .position-heading { display:grid; align-items:start; gap:14px; }
  .section-heading > button, .section-heading > .calendar-heading-actions { justify-self:start; }
  .section-heading h2 { font-size:24px; }
  .hero-card { min-height:248px; padding:25px 22px; }
  .hero-value { font-size:clamp(36px,11vw,48px); }
  .daily-return-card { margin-top:10px; }
  .hero-meta { position:static; margin-top:18px; text-align:left; }
  .quote-status { text-align:left; }
  .sparkline { height:92px; opacity:.55; }
  .dashboard-grid { gap:14px; }
  .panel, .performance-card, .news-panel, .calendar-panel { padding:19px; border-radius:15px; }
  .panel-header { align-items:flex-start; margin-bottom:19px; }
  .holding-row { grid-template-columns:1fr auto; gap:9px; padding:16px 0; }
  .holding-row .holding-value:nth-child(2) { display:none; }
  .budget-panel { grid-template-columns:1fr; gap:20px; }
  .budget-panel .panel-header { grid-column:auto; }
  .budget-ring { margin:auto; }
  .performance-header, .performance-footer { display:grid; align-items:start; }
  .performance-controls { display:grid; width:100%; }
  .performance-controls select { width:100%; }
  .performance-stats { grid-template-columns:1fr 1fr; }
  .performance-stats div:last-child { grid-column:1/-1; }
  .performance-chart-wrap { height:210px; }
  .candidate-grid, .journal-grid, .news-grid, .research-columns { grid-template-columns:1fr; }
  .ai-candidate-row { grid-template-columns:32px minmax(0,1fr) auto; gap:9px; padding:15px; }
  .ai-candidate-row .candidate-metric:nth-of-type(2), .ai-candidate-row .candidate-metric:nth-of-type(3) { display:none; }
  .journal-intro { grid-template-columns:auto 1fr; padding:19px; }
  .journal-progress { grid-column:2; text-align:left; }
  .position-actions { display:flex; flex-wrap:wrap; }
  .position-stats { grid-template-columns:1fr 1fr; }
  .position-layout { grid-template-columns:1fr; }
  .position-journal-facts, .research-calendar { grid-template-columns:1fr; }
  .research-header, .research-summary { display:grid; }
  .research-metrics { grid-template-columns:1fr 1fr; }
  .research-sources { grid-template-columns:1fr; }
  .risk-overview { grid-template-columns:1fr 1fr; }
  .risk-score-card { grid-column:1/-1; }
  .risk-tabs { max-width:180px; overflow:auto; }
  .risk-findings { grid-template-columns:1fr; }
  .calendar-stats, .news-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .calendar-stats article, .news-stats article { min-height:76px; padding:13px 10px; }
  .calendar-stats strong, .news-stats strong { font-size:14px; overflow-wrap:anywhere; }
  .calendar-day { min-height:62px; padding:4px; }
  .calendar-event-pill { width:7px; height:7px; padding:0; border-radius:50%; font-size:0; }
  .calendar-filters { max-width:190px; overflow:auto; }
  .upcoming-event { grid-template-columns:46px 1fr; }
  .event-actions { grid-column:2; display:flex; justify-content:space-between; width:100%; }
  .news-toolbar, .news-filters { display:grid; }
  .news-filters select { width:100%; }
  .news-card-footer { align-items:flex-end; }
  .settings-form-grid, .journal-form-grid, .form-grid { grid-template-columns:1fr; }
  .settings-form-grid .full, .journal-form-grid .full, .form-grid .full { grid-column:auto; }
  .dialog-form, .analysis-content { padding:22px; }
  .toast { left:16px; right:16px; bottom:88px; text-align:center; }
}

/* Compact top navigation */
.app-shell { display:block; min-height:100vh; }
.sidebar {
  position:sticky; top:0; z-index:40; width:100%; height:70px; padding:0 max(20px,calc((100vw - var(--content-max)) / 2));
  display:flex; flex-direction:row; align-items:center; justify-content:space-between;
  background:var(--sidebar); border:0; border-bottom:1px solid rgba(255,255,255,.08);
}
.sidebar .brand { padding:0; }
.sidebar .brand { border-radius:11px; transition:opacity .15s ease, transform .15s ease; }
.sidebar .brand:hover { opacity:.86; transform:translateY(-1px); }
.sidebar .brand:focus-visible { outline:2px solid #b6ceb2; outline-offset:5px; }
.sidebar .brand > span:last-child { display:inline; }
.sidebar .brand-mark { width:36px; height:36px; }
.menu-toggle {
  min-width:104px; height:42px; padding:0 14px; border:1px solid rgba(255,255,255,.17); border-radius:11px;
  display:flex; align-items:center; justify-content:center; gap:10px; background:rgba(255,255,255,.07); color:var(--sidebar-text);
  font-size:12px; font-weight:600; transition:.18s ease;
}
.menu-toggle:hover, .sidebar.menu-open .menu-toggle { background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.28); }
.menu-toggle-icon { width:17px; display:grid; gap:4px; }
.menu-toggle-icon i { width:17px; height:1.5px; display:block; border-radius:2px; background:currentColor; transition:.18s ease; }
.sidebar.menu-open .menu-toggle-icon i:nth-child(1) { transform:translateY(5.5px) rotate(45deg); }
.sidebar.menu-open .menu-toggle-icon i:nth-child(2) { opacity:0; }
.sidebar.menu-open .menu-toggle-icon i:nth-child(3) { transform:translateY(-5.5px) rotate(-45deg); }
.sidebar .main-nav {
  position:absolute; top:calc(100% + 10px); right:max(20px,calc((100vw - var(--content-max)) / 2)); width:min(390px,calc(100vw - 32px));
  margin:0; padding:13px; display:grid; grid-template-columns:1fr 1fr; gap:5px;
  background:var(--sidebar); border:1px solid rgba(255,255,255,.12); border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.28); opacity:0; visibility:hidden; transform:translateY(-8px) scale(.985);
  transform-origin:top right; transition:opacity .18s ease, transform .18s ease, visibility .18s; max-height:calc(100vh - 96px); overflow-y:auto;
}
.sidebar.menu-open .main-nav { opacity:1; visibility:visible; transform:none; }
.sidebar:not(.menu-open) .main-nav,
.sidebar:not(.menu-open) .main-nav * { pointer-events:none !important; }
.sidebar.menu-open .main-nav,
.sidebar.menu-open .main-nav * { pointer-events:auto; }
.sidebar .nav-item { min-height:48px; margin:0; padding:11px 12px; justify-content:flex-start; display:flex; color:rgba(246,246,240,.7); }
.sidebar .nav-item::before { display:none; }
.sidebar .nav-item:hover, .sidebar .nav-item.active { background:rgba(255,255,255,.1); color:#fff; }
.sidebar .nav-item > span:last-child { display:inline; }
.sidebar .sidebar-note {
  position:absolute; top:calc(100% + 10px); right:max(20px,calc((100vw - var(--content-max)) / 2)); z-index:1;
  width:min(364px,calc(100vw - 58px)); margin:294px 13px 0 0; padding:15px 16px;
  opacity:0; visibility:hidden; transform:translateY(-8px); transition:opacity .18s ease, transform .18s ease, visibility .18s;
  display:grid; background:color-mix(in srgb,var(--sidebar) 92%,white); pointer-events:none;
}
.sidebar.menu-open .sidebar-note { opacity:1; visibility:visible; transform:none; pointer-events:auto; }
.sidebar.menu-open .main-nav { padding-bottom:112px; }
.main-content { padding-top:0; }
.topbar { top:70px; }

@media (max-width:700px) {
  .sidebar { position:sticky; inset:auto; top:0; width:100%; height:62px; padding:0 14px; display:flex; align-items:center; }
  .sidebar .brand { display:flex; }
  .sidebar .brand > span:last-child { display:inline; font-size:16px; }
  .sidebar .brand-mark { width:32px; height:32px; }
  .menu-toggle { min-width:88px; height:38px; padding:0 12px; }
  .sidebar .main-nav { top:calc(100% + 8px); right:10px; width:calc(100vw - 20px); grid-template-columns:1fr 1fr; padding:10px; max-height:calc(100vh - 82px); }
  .sidebar .nav-item { flex:initial; min-height:46px; display:flex; justify-content:flex-start; padding:9px 10px; font-size:10px; }
  .sidebar .sidebar-note { top:calc(100% + 8px); right:10px; width:calc(100vw - 40px); margin:274px 10px 0 0; }
  .sidebar.menu-open .main-nav { padding-bottom:108px; }
  .main-content { padding-bottom:36px; }
  .topbar { top:62px; }
}

/* Candidate research pipeline */
.candidate-heading { align-items:center; }
.candidate-heading .section-copy { max-width:620px; margin-top:7px; }
.candidate-heading-actions { display:flex; align-items:center; gap:9px; }
.compare-candidates-button span { min-width:20px; height:20px; display:inline-grid; place-items:center; margin-left:5px; border-radius:50%; background:var(--accent-soft); font-size:8px; }
.compare-candidates-button:disabled { opacity:.45; cursor:not-allowed; }
.candidate-pipeline-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0 14px; }
.candidate-pipeline-stats > div { display:flex; align-items:center; justify-content:space-between; min-height:62px; padding:14px 16px; border:1px solid var(--line); border-radius:13px; background:var(--surface); }
.candidate-pipeline-stats span { color:var(--muted); font-size:10px; }
.candidate-pipeline-stats strong { font-size:18px; }
.candidate-pipeline { display:grid; grid-template-columns:repeat(5,minmax(270px,1fr)); gap:12px; padding:2px 2px 14px; overflow-x:auto; scroll-snap-type:x proximity; }
.pipeline-column { min-height:310px; padding:10px; border:1px solid var(--line); border-radius:16px; background:color-mix(in srgb,var(--surface) 74%,var(--bg)); scroll-snap-align:start; }
.pipeline-column > header { display:flex; align-items:center; justify-content:space-between; padding:8px 8px 12px; }
.pipeline-column > header span { font-size:11px; font-weight:650; }
.pipeline-column > header strong, .pipeline-count { min-width:26px; height:26px; display:grid; place-items:center; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:10px; }
.pipeline-column-body { display:grid; gap:10px; align-content:start; }
.pipeline-card { padding:16px; border-radius:13px; box-shadow:0 8px 24px rgba(16,36,24,.035); }
.pipeline-card.compare-selected { border-color:color-mix(in srgb,var(--accent) 52%,var(--line)); box-shadow:0 0 0 2px var(--accent-soft); }
.candidate-compare-toggle { display:flex; align-items:center; justify-content:flex-end; gap:5px; margin:-4px 0 8px; color:var(--muted); font-size:8px; cursor:pointer; }
.candidate-compare-toggle input { width:14px; height:14px; accent-color:var(--accent); }
.pipeline-card .candidate-top { align-items:flex-start; }
.pipeline-card h3 { margin:3px 0 0; font-size:15px; }
.risk-pill { padding:5px 7px; border-radius:99px; background:var(--accent-soft); color:var(--muted); font-size:8px; white-space:nowrap; }
.risk-høj { background:rgba(174,75,58,.1); color:var(--negative); }
.risk-lav { background:rgba(42,122,75,.1); color:var(--positive); }
.pipeline-card .candidate-thesis { min-height:0; margin:14px 0; display:-webkit-box; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.candidate-metrics { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:0; }
.candidate-metrics > div:last-child { grid-column:1/-1; }
.candidate-metrics div { min-width:0; padding:9px; border-radius:9px; background:var(--bg); }
.candidate-metrics dt { color:var(--muted); font-size:8px; }
.candidate-metrics dd { margin:3px 0 0; overflow:hidden; font-size:10px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.candidate-price-alert { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:9px; margin-top:10px; padding:10px; border-radius:9px; background:var(--bg); }
.candidate-price-alert > span { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:var(--surface); color:var(--muted); font-size:10px; }
.candidate-price-alert strong, .candidate-price-alert small { display:block; }
.candidate-price-alert strong { font-size:9px; }
.candidate-price-alert small { margin-top:2px; color:var(--muted); font-size:7px; line-height:1.4; }
.candidate-price-alert.reached { background:color-mix(in srgb,var(--positive) 11%,var(--surface)); }
.candidate-price-alert.reached > span, .candidate-price-alert.reached strong { color:var(--positive); }
.candidate-price-alert.waiting > span { color:#956711; }
.candidate-price-alert.incomplete { opacity:.72; }
.candidate-price-update { width:100%; margin-top:6px; padding:5px 0; border:0; background:transparent; color:var(--accent); font-size:8px; text-align:left; }
.candidate-decision-ready { display:grid; grid-template-columns:26px minmax(0,1fr); align-items:center; gap:8px; margin-top:10px; padding:9px; border-radius:9px; background:color-mix(in srgb,var(--positive) 9%,var(--surface)); }
.candidate-decision-ready > span { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:var(--surface); color:var(--positive); font-size:9px; }
.candidate-decision-ready strong,.candidate-decision-ready small { display:block; }
.candidate-decision-ready strong { color:var(--positive); font-size:8px; }
.candidate-decision-ready small { margin-top:2px; color:var(--muted); font-size:7px; }
.candidate-decision-dialog { width:min(780px,calc(100vw - 24px)); }
.candidate-decision-form .dialog-header p { max-width:620px; margin:6px 0 0; color:var(--muted); font-size:9px; line-height:1.5; }
.candidate-decision-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:18px 0; }
.candidate-decision-summary > div { padding:11px; border-radius:9px; background:var(--bg); }
.candidate-decision-summary span,.candidate-decision-summary strong { display:block; }
.candidate-decision-summary span { color:var(--muted); font-size:7px; }
.candidate-decision-summary strong { margin-top:4px; overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.decision-impact-preview { margin:14px 0; padding:11px 13px; border-radius:9px; background:var(--accent-soft); color:var(--muted); font-size:9px; line-height:1.5; }
.decision-impact-preview.warning { background:color-mix(in srgb,var(--negative) 9%,var(--surface)); color:var(--negative); }
.decision-checklist { display:grid; gap:8px; margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; }
.decision-checklist legend { padding:0 6px; color:var(--muted); font-size:8px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.decision-checklist label { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; gap:9px; cursor:pointer; }
.decision-checklist input { margin-top:2px; accent-color:var(--accent); }
.decision-checklist strong,.decision-checklist small { display:block; }
.decision-checklist strong { font-size:9px; }
.decision-checklist small { margin-top:2px; color:var(--muted); font-size:8px; line-height:1.4; }
.decision-disclaimer { display:flex; align-items:center; gap:9px; margin-top:12px; padding:10px 12px; border-radius:9px; background:var(--bg); }
.decision-disclaimer > span { width:20px; height:20px; display:grid; place-items:center; flex:0 0 auto; border:1px solid var(--muted); border-radius:50%; color:var(--muted); font-size:8px; }
.decision-disclaimer p { margin:0; color:var(--muted); font-size:8px; line-height:1.45; }
@media(max-width:700px){.candidate-decision-summary{grid-template-columns:1fr 1fr}.candidate-decision-form .dialog-actions{display:grid;grid-template-columns:1fr}.candidate-decision-form .dialog-actions button{width:100%}}
.candidate-risk-note { margin-top:10px; padding:10px; border-left:2px solid var(--negative); border-radius:0 8px 8px 0; background:rgba(174,75,58,.055); }
.candidate-risk-note span { color:var(--negative); font-size:8px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.candidate-risk-note p { min-height:0; margin:4px 0 0; display:-webkit-box; overflow:hidden; font-size:9px; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:pre-line; }
.candidate-status-label { display:grid; gap:5px; margin-top:12px; color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.candidate-status-label select { width:100%; min-height:36px; padding:0 9px; font-size:10px; }
.candidate-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:10px; }
.candidate-card-actions button { min-width:0; min-height:34px; padding:7px; font-size:9px; }
.candidate-card-actions .delete-link { grid-column:1/-1; justify-self:start; min-height:auto; padding:3px 0; }
.candidate-history { display:block; margin-top:10px; color:var(--muted); font-size:8px; line-height:1.4; }
.candidate-card-badges { display:grid; justify-items:end; gap:6px; }
.candidate-score-badge { width:52px; height:52px; display:grid; place-items:center; align-content:center; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--surface); }
.candidate-score-badge strong { font-size:15px; line-height:1; }
.candidate-score-badge span { margin-top:2px; color:var(--muted); font-size:6px; text-transform:uppercase; }
.candidate-score-badge.strong { border-color:color-mix(in srgb,var(--positive) 45%,var(--line)); color:var(--positive); }
.candidate-score-badge.medium { border-color:#c99a45; color:#956711; }
.candidate-score-badge.weak { border-color:color-mix(in srgb,var(--negative) 45%,var(--line)); color:var(--negative); }
.candidate-score-action { margin-top:11px; }
.candidate-score-action button { width:100%; min-height:35px; padding:8px; border-color:var(--accent-soft); background:var(--accent-soft); color:var(--accent); font-size:9px; }
.candidate-score-action button span { float:right; }
.candidate-score-dialog { width:min(880px,calc(100vw - 28px)); }
.candidate-score-content { padding:30px; }
.score-hero { display:grid; grid-template-columns:minmax(0,1fr) 100px; align-items:center; gap:24px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.score-hero h2 { margin:5px 0 8px; font-size:27px; }
.score-hero p { max-width:650px; margin:0; color:var(--muted); font-size:11px; line-height:1.65; }
.score-ring { width:92px; height:92px; display:grid; place-items:center; align-content:center; border-radius:50%; background:radial-gradient(circle,var(--surface) 59%,transparent 60%),conic-gradient(var(--accent) var(--score),var(--accent-soft) 0); }
.score-ring strong { font-size:26px; line-height:1; }
.score-ring span { margin-top:4px; color:var(--muted); font-size:8px; }
.research-score-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 22px; margin:24px 0; }
.research-score-row > div:first-child { display:flex; justify-content:space-between; margin-bottom:6px; font-size:9px; }
.research-score-row strong { font-size:10px; }
.research-score-track { height:6px; overflow:hidden; border-radius:99px; background:var(--accent-soft); }
.research-score-track span { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.score-analysis-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.score-analysis-columns article, .score-missing { padding:18px; border:1px solid var(--line); border-radius:12px; }
.score-analysis-columns ul, .score-missing ul { margin:12px 0 0; padding-left:18px; color:var(--muted); font-size:10px; line-height:1.6; }
.score-analysis-columns li+li, .score-missing li+li { margin-top:7px; }
.score-missing { margin-top:12px; background:var(--bg); }
.score-recommendation { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:12px; padding:18px; border-radius:12px; background:var(--accent-soft); }
.score-recommendation strong { display:block; margin:5px 0; font-size:15px; }
.score-recommendation p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.score-footer { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-top:18px; color:var(--muted); font-size:8px; }
.score-footer div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.score-footer a { max-width:220px; overflow:hidden; color:var(--accent); text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:700px){.candidate-score-content{padding:20px}.score-hero{grid-template-columns:1fr}.score-ring{grid-row:1}.research-score-grid,.score-analysis-columns{grid-template-columns:1fr}.score-recommendation,.score-footer{align-items:flex-start;display:grid}.score-footer div{justify-content:flex-start}}
.candidate-compare-dialog { width:min(1180px,calc(100vw - 24px)); }
.notification-open-candidate { display:block; margin-top:8px; padding:0; border:0; background:transparent; color:var(--accent); font-size:9px; font-weight:600; }
.candidate-compare-content { padding:28px; }
.candidate-compare-content .dialog-header p { margin:5px 0 0; color:var(--muted); font-size:10px; }
.candidate-comparison { display:grid; grid-template-columns:minmax(150px,.7fr) repeat(var(--compare-count),minmax(190px,1fr)); margin-top:20px; overflow:auto; border:1px solid var(--line); border-radius:14px; }
.candidate-comparison > * { min-width:0; padding:13px 14px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.candidate-comparison header { position:relative; min-height:94px; display:grid; align-content:center; gap:5px; background:var(--accent-soft); }
.candidate-comparison header strong { padding-right:42px; font-size:12px; }
.comparison-corner { display:grid; align-content:end; background:var(--bg); color:var(--muted); font-size:9px; }
.comparison-score { position:absolute; top:15px; right:12px; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:var(--surface); color:var(--accent); font-size:12px; font-weight:700; }
.comparison-no-score { color:var(--muted); font-size:8px; }
.comparison-label { background:var(--bg); color:var(--muted); font-size:9px; font-weight:600; }
.comparison-cell { font-size:10px; font-weight:600; overflow-wrap:anywhere; }
.comparison-label.long, .comparison-cell.long { min-height:90px; line-height:1.55; }
.comparison-cell.score-strong { color:var(--positive); }
.comparison-cell.score-medium { color:#956711; }
.comparison-cell.score-weak { color:var(--negative); }
.comparison-note { display:flex; align-items:center; gap:10px; margin-top:13px; padding:12px 14px; border-radius:10px; background:var(--accent-soft); }
.comparison-note span { width:22px; height:22px; display:grid; place-items:center; flex:0 0 auto; border:1px solid var(--accent); border-radius:50%; color:var(--accent); font-size:9px; }
.comparison-note p { margin:0; color:var(--muted); font-size:9px; line-height:1.5; }
@media(max-width:700px){.candidate-heading-actions{display:grid;grid-template-columns:1fr 1fr}.candidate-heading-actions .secondary-button{grid-column:1/-1}.candidate-compare-content{padding:18px}.candidate-comparison{grid-template-columns:125px repeat(var(--compare-count),180px)}}
.pipeline-empty { min-height:86px; display:grid; place-items:center; padding:15px; border:1px dashed var(--line); border-radius:11px; color:var(--muted); font-size:9px; text-align:center; }
.candidate-archive { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.candidate-archive[hidden] { display:none; }
.candidate-archive-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.candidate-archive-heading h3 { margin:4px 0 0; }
.candidate-archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.archive-empty { grid-column:1/-1; }

@media (max-width:900px) {
  .candidate-pipeline-stats { grid-template-columns:1fr 1fr; }
  .candidate-archive-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:700px) {
  .candidate-heading { align-items:flex-start; }
  .candidate-heading-actions { width:100%; }
  .candidate-heading-actions button { flex:1; }
  .candidate-pipeline-stats { gap:7px; }
  .candidate-pipeline-stats > div { min-height:55px; padding:11px; }
  .candidate-pipeline-stats span { max-width:85px; font-size:8px; }
  .candidate-pipeline { grid-template-columns:repeat(5,minmax(84vw,1fr)); margin-right:-18px; }
  .candidate-archive-grid { grid-template-columns:1fr; }
}

/* AI thesis monitoring */
.thesis-monitor { margin-top:20px; overflow:hidden; }
.thesis-monitor-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.thesis-monitor-header h2 { font-size:20px; }
.thesis-monitor-header p { max-width:680px; margin:6px 0 0; color:var(--muted); font-size:11px; line-height:1.55; }
.thesis-monitor-actions { display:flex; align-items:center; gap:9px; flex:0 0 auto; }
.thesis-health { padding:7px 10px; border-radius:99px; font-size:9px; font-weight:700; white-space:nowrap; }
.thesis-health.intact { background:color-mix(in srgb,var(--positive) 13%,var(--surface)); color:var(--positive); }
.thesis-health.changed { background:color-mix(in srgb,#c08a27 15%,var(--surface)); color:#9a6b16; }
.thesis-health.pressed { background:color-mix(in srgb,var(--negative) 13%,var(--surface)); color:var(--negative); }
.thesis-health.insufficient { background:var(--bg); color:var(--muted); }
.thesis-monitor-notice { display:flex; align-items:center; gap:10px; margin:16px 0 0; padding:11px 13px; border-radius:10px; background:var(--accent-soft); }
.thesis-monitor-notice > span { width:21px; height:21px; flex:0 0 auto; display:grid; place-items:center; border:1px solid var(--accent); border-radius:50%; color:var(--accent); font-size:10px; font-weight:700; }
.thesis-monitor-notice p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.thesis-monitor-empty { min-height:120px; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:14px; padding-top:18px; }
.thesis-monitor-empty[hidden] { display:none; }
.thesis-monitor-empty > span { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--accent-soft); color:var(--accent); }
.thesis-monitor-empty strong { font-size:12px; }
.thesis-monitor-empty p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.thesis-monitor-content { padding-top:18px; display:grid; gap:16px; }
.thesis-monitor-content[hidden] { display:none; }
.thesis-assessment { padding:18px; border-left:3px solid var(--accent); border-radius:10px; background:var(--bg); }
.thesis-assessment span, .thesis-monitor-footer span { display:block; margin-bottom:5px; color:var(--muted); font-size:8px; letter-spacing:.08em; text-transform:uppercase; }
.thesis-assessment p { margin:0; font-size:12px; line-height:1.65; }
.thesis-monitor-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr); gap:13px; }
.thesis-monitor-grid > article, .thesis-questions { min-width:0; padding:18px; border:1px solid var(--line); border-radius:12px; }
.thesis-signal-list { display:grid; margin-top:10px; }
.thesis-signal { min-width:0; display:grid; grid-template-columns:76px minmax(0,1fr); gap:11px; padding:11px 0; border-top:1px solid var(--line); }
.signal-effect { height:max-content; padding:5px 7px; border-radius:99px; text-align:center; font-size:8px; font-weight:600; }
.signal-effect.supports { background:color-mix(in srgb,var(--positive) 12%,var(--surface)); color:var(--positive); }
.signal-effect.challenges { background:color-mix(in srgb,var(--negative) 12%,var(--surface)); color:var(--negative); }
.signal-effect.neutral { background:var(--bg); color:var(--muted); }
.thesis-signal strong { display:block; font-size:11px; }
.thesis-signal p, .thesis-none { margin:4px 0 0; color:var(--muted); overflow-wrap:anywhere; font-size:9px; line-height:1.5; }
.thesis-monitor-grid ul, .thesis-questions ol { margin:11px 0 0; padding-left:18px; color:var(--muted); font-size:10px; line-height:1.6; }
.thesis-monitor-grid li + li, .thesis-questions li + li { margin-top:7px; }
.thesis-monitor-footer { display:grid; grid-template-columns:minmax(180px,.5fr) minmax(0,1.5fr); gap:18px; align-items:start; padding:16px 18px; border-radius:11px; background:var(--accent-soft); }
.thesis-monitor-footer strong { font-size:12px; }
.thesis-monitor-sources { min-width:0; }
.thesis-monitor-sources div { display:flex; flex-wrap:wrap; gap:6px; }
.thesis-monitor-sources a { max-width:280px; padding:5px 7px; overflow:hidden; border-radius:7px; background:var(--surface); color:var(--accent); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width:800px) {
  .thesis-monitor-header { display:grid; }
  .thesis-monitor-actions { justify-content:space-between; }
  .thesis-monitor-grid, .thesis-monitor-footer { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .thesis-monitor-empty { grid-template-columns:38px minmax(0,1fr); }
  .thesis-monitor-empty > button { grid-column:2; justify-self:start; }
  .thesis-monitor-actions { display:grid; align-items:start; }
  .thesis-signal { grid-template-columns:1fr; }
  .signal-effect { justify-self:start; }
}

/* Editorial news feed */
.news-heading { align-items:flex-end; }
.news-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.news-stats article { min-height:76px; padding:14px 18px; box-shadow:none; }
.news-stats strong { font-size:17px; }
.news-panel { overflow:hidden; }
.news-toolbar { padding-bottom:18px; }
.news-grid { width:100%; grid-template-columns:1fr; gap:12px; }
.news-card {
  width:100%; min-width:0; padding:0; gap:0; overflow:hidden; border-radius:15px; box-shadow:none;
  background:var(--surface-strong);
}
.news-card.unread { border-left:1px solid var(--line); box-shadow:inset 3px 0 0 var(--accent); }
.news-card-top { min-width:0; padding:17px 20px; align-items:center; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--bg) 42%,var(--surface)); }
.news-company { min-width:0; }
.news-company > div { min-width:0; }
.news-company strong { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.news-company span { font-size:9px; }
.news-card-status { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.unread-label { padding:5px 7px; border-radius:99px; background:var(--accent); color:var(--surface-strong); font-size:8px; font-weight:600; text-transform:uppercase; }
[data-theme="dark"] .unread-label { color:#142017; }
.news-impact { font-size:8px; }
.news-card-body { min-width:0; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(240px,.65fr); gap:24px; padding:23px 20px; }
.news-card-copy { min-width:0; }
.news-card-copy h3 { max-width:850px; margin:0 0 10px; overflow-wrap:anywhere; font-size:18px; line-height:1.4; }
.news-card-copy > p { max-width:900px; margin:0; color:var(--muted); overflow-wrap:anywhere; font-size:12px; line-height:1.65; }
.news-relevance { min-width:0; align-self:start; padding:15px; border:1px solid color-mix(in srgb,var(--line) 72%,transparent); background:var(--bg); }
.news-relevance > span { margin-bottom:6px; font-size:8px; font-weight:600; letter-spacing:.08em; }
.news-relevance p { margin:0; color:var(--text); overflow-wrap:anywhere; font-size:10px; line-height:1.6; }
.news-card-footer { min-width:0; padding:13px 20px; background:color-mix(in srgb,var(--bg) 36%,var(--surface)); }
.news-tags { min-width:0; flex:1; overflow:hidden; align-items:center; }
.news-tags span { max-width:220px; padding:4px 7px; overflow:hidden; border-radius:6px; background:var(--surface); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.news-tags span:last-child { max-width:min(360px,45%); background:transparent; }
.news-source { max-width:none; flex:0 0 auto; padding:8px 11px; border:1px solid var(--line); border-radius:9px; display:inline-flex; align-items:center; gap:6px; overflow:visible; background:var(--surface); font-size:9px; font-weight:600; text-overflow:clip; white-space:nowrap; }
.news-source:hover { border-color:color-mix(in srgb,var(--accent) 40%,var(--line)); background:var(--accent-soft); }

@media (max-width:900px) {
  .news-card-body { grid-template-columns:1fr; gap:16px; }
  .news-relevance { width:100%; }
}

@media (max-width:700px) {
  .news-heading { display:grid; align-items:start; }
  .news-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .news-stats article { min-height:70px; padding:12px 9px; }
  .news-stats span { font-size:7px; }
  .news-stats strong { font-size:15px; }
  .news-toolbar { gap:12px; }
  .news-card-top { padding:14px; align-items:flex-start; }
  .news-card-status { align-items:flex-end; flex-direction:column; }
  .news-card-body { padding:18px 14px; }
  .news-card-copy h3 { font-size:16px; }
  .news-card-footer { padding:12px 14px; display:grid; align-items:start; }
  .news-tags span:last-child { display:none; }
  .news-source { justify-self:start; }
}

/* Personal control center */
.control-center { margin-top:22px; }
.control-center-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:14px; padding:0 2px; }
.control-center-heading h2 { font-size:22px; }
.control-updated { color:var(--muted); font-size:9px; }
.control-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:14px; }
.control-stats button {
  min-width:0; min-height:112px; padding:17px 18px; border:1px solid var(--line); border-radius:14px; display:grid; align-content:center; gap:4px;
  text-align:left; background:var(--surface); color:var(--text); box-shadow:0 7px 24px rgba(22,23,18,.025); transition:.18s ease;
}
.control-stats button:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--accent) 35%,var(--line)); box-shadow:0 12px 28px rgba(22,23,18,.07); }
.control-stats button > span { overflow:hidden; color:var(--muted); font-size:9px; font-weight:600; letter-spacing:.07em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.control-stats button strong { overflow:hidden; font:600 19px/1.3 Manrope; text-overflow:ellipsis; white-space:nowrap; }
.control-stats button small { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.attention-panel { padding:22px 25px; }
.attention-panel .panel-header { margin-bottom:4px; }
.attention-badge { padding:5px 9px; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:9px; font-weight:600; }
.attention-list { display:grid; }
.attention-item { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:13px; padding:15px 0; border-top:1px solid var(--line); }
.attention-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:13px; }
.attention-item.urgent .attention-icon { background:color-mix(in srgb,var(--negative) 12%,var(--surface)); color:var(--negative); }
.attention-item > div { min-width:0; }
.attention-item strong { display:block; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.attention-item p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.attention-action { padding:8px 9px; border:0; border-radius:8px; background:transparent; color:var(--accent); font-size:10px; font-weight:600; white-space:nowrap; }
.attention-action:hover { background:var(--accent-soft); }
.attention-action span { margin-left:4px; }
.attention-empty { min-height:92px; display:flex; align-items:center; gap:13px; padding-top:8px; border-top:1px solid var(--line); }
.attention-empty[hidden] { display:none; }
.attention-empty > span { width:36px; height:36px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; background:var(--accent-soft); color:var(--positive); }
.attention-empty strong { font-size:12px; }
.attention-empty p { margin:3px 0 0; color:var(--muted); font-size:10px; }

@media (max-width:900px) {
  .control-stats { grid-template-columns:1fr 1fr; }
}

@media (max-width:700px) {
  .control-center { margin-top:16px; }
  .control-center-heading { align-items:flex-start; }
  .control-center-heading h2 { font-size:19px; }
  .control-stats { gap:8px; }
  .control-stats button { min-height:100px; padding:14px; }
  .control-stats button strong { font-size:16px; }
  .attention-panel { padding:18px; }
  .attention-item { grid-template-columns:34px minmax(0,1fr); gap:10px; }
  .attention-icon { width:32px; height:32px; }
  .attention-action { grid-column:2; justify-self:start; padding:5px 0; }
  .attention-item strong { white-space:normal; }
}

/* Topbar controls and grouped navigation panel */
.site-actions { display:flex; align-items:center; gap:8px; }
.site-actions .account-button, .site-actions .icon-button {
  min-height:42px; height:42px; border-color:rgba(255,255,255,.15); background:rgba(255,255,255,.065); color:var(--sidebar-text);
}
.site-actions .account-button { padding:0 14px; }
.site-actions .account-button:hover, .site-actions .icon-button:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.25); }
.site-actions .notification-button #notificationBadge { border-color:var(--sidebar); }
.beginner-mode .advanced-nav { display:none !important; }
.term-help { width:19px; height:19px; margin-left:5px; border:1px solid currentColor; border-radius:50%; background:transparent; color:inherit; font:700 11px/1 Manrope,sans-serif; opacity:.62; cursor:pointer; vertical-align:middle; }
.hide-help-tips .term-help { display:none; }

.next-step-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:20px; margin-bottom:24px; padding:20px 22px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(120deg,var(--surface-strong),var(--accent-soft)); box-shadow:0 10px 30px rgba(19,48,34,.05); }
.next-step-card h2 { margin:0 0 4px; font-size:20px; }
.next-step-card p { margin:0; color:var(--muted); }
.next-step-number { padding:7px 9px; border-radius:9px; color:var(--accent); background:rgba(64,135,91,.12); font:700 10px/1 Manrope,sans-serif; letter-spacing:.12em; white-space:nowrap; }

.empty-state.compact { min-height:230px; padding:36px 24px; }
.empty-state.compact > span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 14px; border-radius:15px; background:var(--accent-soft); color:var(--accent); font-size:20px; }
.empty-state.compact h3 { margin:0 0 7px; }
.empty-state.compact p { max-width:520px; margin:0 auto 18px; }

.welcome-dialog { width:min(720px,calc(100vw - 28px)); border:0; padding:0; border-radius:26px; }
.welcome-dialog::backdrop,.help-dialog::backdrop { background:rgba(8,18,13,.68); backdrop-filter:blur(6px); }
.welcome-form { position:relative; min-height:520px; padding:42px; overflow:hidden; }
.welcome-skip { position:absolute; top:22px; right:24px; border:0; background:none; color:var(--muted); cursor:pointer; }
.welcome-progress { position:absolute; left:0; right:0; top:0; height:5px; background:var(--surface); }
.welcome-progress span { display:block; height:100%; background:var(--accent); transition:width .25s ease; }
.welcome-step { text-align:center; }
.welcome-step[hidden] { display:none; }
.welcome-step > p { max-width:570px; margin:12px auto 24px; color:var(--muted); font-size:17px; line-height:1.6; }
.welcome-step h2 { margin:10px 0 0; font-size:clamp(28px,5vw,42px); }
.welcome-symbol { display:grid; place-items:center; width:62px; height:62px; margin:8px auto 20px; border-radius:19px; color:white; background:var(--accent); font:700 26px Manrope,sans-serif; }
.welcome-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:28px 0; text-align:left; }
.welcome-benefits > div { display:flex; gap:10px; padding:16px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.welcome-benefits b,.help-principles span { display:grid; flex:0 0 auto; place-items:center; width:27px; height:27px; border-radius:50%; color:white; background:var(--accent); }
.welcome-benefits span,.experience-options span { display:grid; gap:3px; }
.welcome-benefits small,.experience-options small { color:var(--muted); line-height:1.4; }
.welcome-next { min-width:190px; }
.experience-options { display:grid; gap:10px; margin:26px 0; text-align:left; }
.experience-options label { display:flex; align-items:center; gap:14px; padding:17px; border:1px solid var(--line); border-radius:15px; cursor:pointer; }
.experience-options label:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 2px rgba(64,135,91,.1); }
.experience-options input { accent-color:var(--accent); }
.welcome-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:24px; }
.welcome-fields { display:grid; gap:14px; margin-top:24px; text-align:left; }
.welcome-fields > div { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.welcome-fields label { display:grid; gap:7px; color:var(--muted); font-size:13px; }
.welcome-note { padding:12px; border-radius:12px; background:var(--accent-soft); font-size:13px !important; }

.help-dialog { width:min(640px,calc(100vw - 28px)); border:0; padding:0; border-radius:24px; }
.help-dialog #helpTopicText { color:var(--muted); font-size:16px; line-height:1.6; }
.help-principles { display:grid; gap:10px; margin:22px 0; }
.help-principles div { display:flex; align-items:center; gap:12px; padding:13px; border-radius:13px; background:var(--surface); }
.help-principles p { margin:0; }
.help-links { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.help-links button { padding:13px; border:1px solid var(--line); border-radius:12px; background:var(--surface-strong); color:var(--text); cursor:pointer; text-align:left; }
.experience-settings { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:16px; padding:16px; border-radius:14px; background:var(--surface); }
.trade-calculation { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; padding:15px 16px; border:1px solid var(--line); border-radius:14px; background:var(--accent-soft); }
.trade-calculation > div { display:grid; gap:3px; }
.trade-calculation span { color:var(--muted); font-size:12px; }
.trade-calculation strong { color:var(--text); font:700 16px Manrope,sans-serif; }
.trade-calculation small { grid-column:1/-1; color:var(--muted); line-height:1.45; }
.trade-calculation [hidden] { display:none; }
.form-grid label > span { display:inline-block; }
.weekly-review-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; margin:24px 0; padding:24px; overflow:hidden; }
.weekly-review-main { display:flex; align-items:flex-start; gap:16px; }
.review-icon { display:grid; place-items:center; flex:0 0 auto; width:46px; height:46px; border-radius:15px; color:var(--surface-strong); background:var(--accent); font-weight:700; }
.weekly-review-main h2 { margin:4px 0 5px; font-size:22px; }
.weekly-review-main p { margin:0; color:var(--muted); }
.weekly-review-actions { display:grid; justify-items:end; align-content:center; gap:9px; }
.weekly-review-actions > span { color:var(--muted); font-size:12px; }
.weekly-review-history { display:grid; grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; padding-top:17px; border-top:1px solid var(--line); }
.weekly-review-history article { display:grid; gap:3px; padding:12px; border-radius:12px; background:var(--surface); }
.weekly-review-history article span,.weekly-review-history article small { color:var(--muted); font-size:11px; }
.weekly-review-history > p { grid-column:1/-1; margin:0; color:var(--muted); }
.weekly-review-history details summary { display:grid; gap:3px; cursor:pointer; list-style:none; }
.weekly-review-history details summary::-webkit-details-marker { display:none; }
.weekly-review-history details[open] summary { margin-bottom:10px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.weekly-review-history details p,.weekly-review-history details ul { margin:7px 0; color:var(--muted); font-size:12px; line-height:1.45; }
.weekly-review-history details ul { padding-left:17px; }
.weekly-review-dialog { width:min(820px,calc(100vw - 28px)); max-height:min(860px,calc(100vh - 28px)); border:0; padding:0; border-radius:24px; }
.weekly-review-dialog::backdrop { background:rgba(8,18,13,.68); backdrop-filter:blur(6px); }
.weekly-review-form { min-height:590px; }
.review-progress { height:5px; margin:3px 0 12px; border-radius:99px; background:var(--line); overflow:hidden; }
.review-progress span { display:block; height:100%; background:var(--accent); transition:width .25s ease; }
.review-step-indicator { display:flex; justify-content:space-between; gap:12px; margin-bottom:22px; color:var(--muted); font-size:12px; }
.review-step[hidden] { display:none; }
.review-step-intro { display:flex; align-items:flex-start; gap:13px; margin-bottom:20px; }
.review-step-intro > span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 auto; border-radius:11px; color:var(--surface-strong); background:var(--accent); font-weight:700; }
.review-step-intro h3 { margin:0 0 4px; font-size:20px; }
.review-step-intro p { margin:0; color:var(--muted); }
.review-auto-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.review-auto-grid article { display:grid; gap:6px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.review-auto-grid article span { color:var(--muted); font-size:11px; }
.review-auto-grid article strong { font:700 18px Manrope,sans-serif; }
.review-observation { margin-top:15px; padding:16px; border-radius:14px; background:var(--accent-soft); }
.review-observation p { margin:5px 0 0; color:var(--muted); line-height:1.5; }
.review-two-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.review-two-columns > div { padding:16px; border:1px solid var(--line); border-radius:15px; }
.review-two-columns h4 { margin:0 0 12px; }
.review-mini-list { display:grid; gap:8px; }
.review-mini-list article { display:grid; gap:2px; padding:10px; border-radius:10px; background:var(--surface); }
.review-mini-list span,.review-mini-list small { color:var(--muted); font-size:11px; }
.review-mini-list p { color:var(--muted); }
.review-thesis-list { display:grid; gap:9px; }
.review-thesis-item { display:grid; grid-template-columns:auto minmax(0,1fr) minmax(140px,auto); align-items:center; gap:12px; padding:13px; border:1px solid var(--line); border-radius:14px; }
.review-thesis-item > div { display:grid; gap:3px; }
.review-thesis-item small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.review-thesis-item select { min-width:155px; }
.review-final-fields { display:grid; gap:13px; }
.review-final-fields label { display:grid; gap:6px; color:var(--muted); font-size:12px; }
.review-final-fields textarea { resize:vertical; }
.review-complete-note { display:flex; gap:10px; margin-top:15px; padding:13px; border-radius:12px; background:var(--accent-soft); }
.review-complete-note span { font-weight:700; }
.review-complete-note p { margin:0; color:var(--muted); }
.review-navigation { display:flex; justify-content:space-between; gap:12px; margin-top:24px; padding-top:16px; border-top:1px solid var(--line); }
.review-navigation .primary-button { margin-left:auto; }

@media (max-width:700px) {
  .next-step-card { grid-template-columns:1fr; gap:12px; }
  .next-step-card .primary-button { width:100%; }
  .welcome-form { min-height:auto; padding:38px 20px 24px; }
  .welcome-benefits { grid-template-columns:1fr; }
  .welcome-fields > div { grid-template-columns:1fr; }
  .welcome-actions { align-items:stretch; flex-direction:column-reverse; }
  .welcome-actions button { width:100%; }
  .help-links { grid-template-columns:1fr; }
  .experience-settings { align-items:flex-start; flex-direction:column; }
  .trade-calculation { grid-template-columns:1fr; }
  .trade-calculation small { grid-column:auto; }
  .weekly-review-panel { grid-template-columns:1fr; }
  .weekly-review-actions { justify-items:stretch; }
  .weekly-review-actions .primary-button { width:100%; }
  .weekly-review-history { grid-template-columns:1fr; }
  .weekly-review-form { min-height:auto; }
  .review-step-indicator small { display:none; }
  .review-auto-grid,.review-two-columns { grid-template-columns:1fr 1fr; }
  .review-thesis-item { grid-template-columns:auto 1fr; }
  .review-thesis-item select { grid-column:1/-1; width:100%; }
}
@media (max-width:480px) {
  .review-auto-grid,.review-two-columns { grid-template-columns:1fr; }
}
.sidebar .main-nav {
  right:max(20px,calc((100vw - var(--content-max)) / 2)); width:min(940px,calc(100vw - 40px));
  padding:18px; grid-template-columns:repeat(3,minmax(0,1fr)) minmax(220px,.8fr); gap:12px;
  background:color-mix(in srgb,var(--sidebar) 96%,white); border-radius:20px; overflow:auto;
}
.sidebar.menu-open .main-nav { padding-bottom:18px; }
.nav-group { min-width:0; padding:14px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(255,255,255,.035); }
.nav-group-label { display:block; padding:0 8px 9px; color:rgba(246,246,240,.4); font-size:9px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.sidebar .nav-item { width:100%; min-height:62px; gap:12px; padding:10px; border-radius:10px; }
.sidebar .nav-icon { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border-radius:9px; background:rgba(255,255,255,.06); color:rgba(246,246,240,.8); }
.sidebar .nav-item > span:last-child { min-width:0; display:grid; gap:2px; text-align:left; }
.sidebar .nav-item strong { color:inherit; font-size:11px; font-weight:600; }
.sidebar .nav-item small { overflow:hidden; color:rgba(246,246,240,.42); font-size:8px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.sidebar .nav-item:hover .nav-icon, .sidebar .nav-item.active .nav-icon { background:rgba(182,206,178,.16); color:#cbe0c7; }
.sidebar .nav-item.active { box-shadow:inset 2px 0 0 #b6ceb2; }
.sidebar .sidebar-note {
  position:static; width:auto; margin:0; padding:18px; opacity:1; visibility:visible; transform:none; pointer-events:auto;
  align-content:center; align-self:stretch; background:rgba(182,206,178,.09); border-color:rgba(182,206,178,.16); border-radius:14px;
}
.sidebar .sidebar-note strong { font-size:16px; }
.sidebar .sidebar-note small { font-size:9px; line-height:1.45; }
.sidebar .sidebar-note .mini-progress { margin:4px 0; }
.topbar { min-height:88px; }

@media (max-width:900px) {
  .sidebar .main-nav { grid-template-columns:1fr 1fr; width:min(660px,calc(100vw - 28px)); right:14px; }
  .sidebar .sidebar-note { grid-column:1/-1; min-height:105px; }
}

@media (max-width:700px) {
  .site-actions { gap:5px; }
  .site-actions .account-button { width:38px; min-height:38px; height:38px; padding:0; justify-content:center; }
  .site-actions .account-button #accountButtonText { display:none; }
  .site-actions .icon-button { width:38px; height:38px; }
  .menu-toggle { min-width:42px; width:42px; padding:0; }
  .menu-toggle > span:last-child { display:none; }
  .sidebar .main-nav { right:8px; width:calc(100vw - 16px); padding:10px; grid-template-columns:1fr; gap:8px; max-height:calc(100vh - 76px); }
  .sidebar.menu-open .main-nav { padding-bottom:10px; }
  .nav-group { padding:10px; }
  .nav-group-label { padding-bottom:5px; }
  .sidebar .nav-item { min-height:52px; }
  .sidebar .sidebar-note { grid-column:auto; min-height:100px; padding:15px; }
  .topbar { min-height:78px; }
}

/* Professional mobile app shell */
.mobile-dock,
.mobile-menu-scrim { display:none; }

@media (max-width:700px) {
  :root { --mobile-gutter:16px; }
  html { scroll-padding-top:126px; }
  body { overflow-x:hidden; -webkit-tap-highlight-color:transparent; }
  button, a, select, input { touch-action:manipulation; }

  .app-shell { min-height:100dvh; }
  .sidebar {
    height:58px; padding:env(safe-area-inset-top,0) var(--mobile-gutter) 0; position:sticky;
    background:color-mix(in srgb,var(--sidebar) 97%,black); box-shadow:0 1px 0 rgba(255,255,255,.08);
  }
  .sidebar .brand { gap:9px; }
  .sidebar .brand-mark { width:30px; height:30px; border-radius:9px; font-size:12px; }
  .sidebar .brand > span:last-child { font-size:15px; letter-spacing:-.02em; }
  .site-actions { gap:6px; }
  .site-actions #helpButton,
  .site-actions #notificationButton,
  .site-actions #themeButton,
  .site-actions #menuToggleButton { display:none; }
  .site-actions .account-button {
    display:flex; width:auto; max-width:118px; min-height:34px; height:34px; padding:0 11px;
    border-radius:99px; background:rgba(255,255,255,.07);
  }
  .site-actions .account-button #accountButtonText {
    display:block; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap;
  }

  .main-content { width:100%; padding:0 0 calc(92px + env(safe-area-inset-bottom,0)); }
  .topbar {
    top:58px; min-height:70px; padding:11px var(--mobile-gutter); gap:10px;
    background:color-mix(in srgb,var(--bg) 94%,transparent); backdrop-filter:blur(18px);
    border-bottom:1px solid var(--line); z-index:25;
  }
  .topbar .mobile-brand, .topbar .date-label, .topbar .top-actions { display:none; }
  .topbar h1 { max-width:calc(100vw - 32px); font-size:22px; line-height:1.12; letter-spacing:-.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

  .view { padding:18px var(--mobile-gutter) 30px; }
  .view.active { animation:mobileViewIn .22s ease both; }
  @keyframes mobileViewIn { from { opacity:.45; transform:translateY(5px); } to { opacity:1; transform:none; } }
  .section-heading { margin:0 0 14px; }
  .section-heading h2 { font-size:22px; }
  .section-copy { font-size:12px; line-height:1.45; }
  .panel, .table-card, .performance-card, .next-step-card, .empty-portfolio-onboarding { border-radius:18px; box-shadow:0 10px 30px rgba(20,38,27,.045); }
  .panel { padding:18px; }
  .panel-header { margin-bottom:14px; padding-bottom:12px; }
  .panel-header h2 { font-size:18px; }

  #overviewView.active { display:flex; flex-direction:column; gap:14px; }
  #overviewView .empty-portfolio-onboarding { order:0; }
  #overviewView .hero-card { order:1; }
  #overviewView .next-step-card { order:2; }
  #overviewView .control-center { order:3; }
  #overviewView .weekly-review-panel { order:4; }
  #overviewView .dashboard-grid { order:5; }
  .hero-card {
    min-height:272px; margin:0; padding:22px 20px 18px; border-radius:22px;
    display:block; box-shadow:0 18px 42px rgba(18,54,33,.16);
  }
  .hero-value { margin-top:10px; font-size:clamp(35px,11vw,48px); line-height:1; letter-spacing:-.055em; }
  .hero-meta {
    top:22px; right:20px; z-index:6; max-width:37%; align-items:flex-end; pointer-events:auto;
  }
  .hero-meta span { font-size:8px; }
  .hero-meta strong { font-size:13px; }
  .quote-status { position:relative; z-index:7; min-width:44px; min-height:36px; margin-top:2px; padding:8px 0; font-size:8px; pointer-events:auto; }
  .daily-return-card { margin-top:17px; padding:8px 10px; border-radius:11px; }
  .daily-return-label { font-size:7px; }
  .daily-return-card strong, .daily-return-card span:last-child { font-size:10px; }
  .return-line { margin-top:8px; font-size:10px; }
  .sparkline { left:0; right:0; bottom:17px; z-index:1; height:96px; pointer-events:none; }
  .chart-ranges { left:17px; bottom:9px; gap:2px; }
  .chart-ranges button { min-width:32px; min-height:27px; padding:4px 7px; font-size:8px; }

  .next-step-card { grid-template-columns:auto 1fr; padding:15px; gap:11px; }
  .next-step-card .next-step-number { align-self:start; padding:6px 8px; font-size:7px; }
  .next-step-card h2 { font-size:16px; }
  .next-step-card p { margin-top:3px; font-size:10px; line-height:1.45; }
  .next-step-card .primary-button { grid-column:1/-1; width:100%; min-height:44px; }

  .control-center { margin:2px 0 0; }
  .control-center-heading { margin-bottom:10px; }
  .control-center-heading h2 { font-size:20px; }
  .control-updated { font-size:8px; }
  .control-stats {
    display:flex; gap:10px; margin:0 calc(var(--mobile-gutter) * -1) 14px; padding:0 var(--mobile-gutter) 4px;
    overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none;
  }
  .control-stats::-webkit-scrollbar { display:none; }
  .control-stats button { flex:0 0 154px; min-height:112px; padding:15px; border-radius:16px; scroll-snap-align:start; text-align:left; }
  .control-stats strong { margin:7px 0 3px; font-size:22px; }
  .control-stats span { font-size:8px; }
  .control-stats small { font-size:9px; line-height:1.35; }
  .attention-panel { padding:17px; }
  .attention-list article { gap:9px; padding:12px 0; }

  .weekly-review-panel { padding:17px; }
  .weekly-review-main { gap:11px; }
  .review-icon { width:34px; height:34px; }
  .weekly-review-main h2 { font-size:17px; }
  .weekly-review-main p { font-size:10px; line-height:1.45; }
  .weekly-review-history { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  .weekly-review-history > * { flex:0 0 82%; scroll-snap-align:start; }

  .dashboard-grid { display:flex; flex-direction:column; gap:14px; }
  .holdings-panel { order:1; }
  .budget-panel { order:2; }
  .activity-panel { order:3; }
  .insight-card { order:4; border-radius:18px; }
  .holding-row { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:14px 0; align-items:center; }
  .holding-company { min-width:0; }
  .holding-company strong { display:block; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
  .holding-company small { font-size:9px; }
  .holding-price { grid-column:1; grid-row:2; padding-left:48px; text-align:left; }
  .holding-price strong { font-size:11px; }
  .holding-value { grid-column:2; grid-row:1/3; text-align:right; }
  .holding-value strong { font-size:13px; }
  .budget-panel { display:grid; grid-template-columns:110px 1fr; align-items:center; gap:8px 16px; }
  .budget-panel .panel-header { grid-column:1/-1; }
  .budget-ring { width:108px; height:108px; margin:0; }
  .budget-stats { align-content:center; }

  .performance-card { padding:18px; }
  .performance-header { display:grid; gap:14px; }
  .performance-controls { display:grid; grid-template-columns:1fr; }
  .performance-controls select, .performance-controls button { width:100%; min-height:44px; }
  .performance-stats {
    display:flex; gap:9px; margin:14px -2px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none;
  }
  .performance-stats > div { flex:0 0 132px; min-height:82px; padding:13px; border-radius:14px; scroll-snap-align:start; }
  .performance-chart-wrap { height:210px; }
  .performance-footer { align-items:flex-start; flex-direction:column; }

  .table-card { padding:0; overflow:hidden; }
  .table-scroll { overflow:auto; -webkit-overflow-scrolling:touch; }
  table { min-width:720px; }
  th, td { padding:13px 12px; font-size:10px; }
  th:first-child, td:first-child { position:sticky; left:0; z-index:1; background:var(--surface); box-shadow:8px 0 14px -14px rgba(0,0,0,.5); }

  .candidate-heading-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
  .candidate-heading-actions button { width:100%; min-width:0; }
  .candidate-pipeline-stats { grid-template-columns:1fr 1fr; }
  .candidate-pipeline { grid-template-columns:repeat(5,86vw); margin-right:calc(var(--mobile-gutter) * -1); padding-right:var(--mobile-gutter); }
  .pipeline-column { min-height:260px; border-radius:18px; }

  .calendar-stats, .news-stats { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .calendar-stats article, .news-stats article { flex:0 0 144px; scroll-snap-align:start; }
  .news-card-grid { grid-template-columns:1fr; }
  .news-card { min-height:auto; padding:18px; border-radius:17px; }
  .news-card h3 { font-size:17px; line-height:1.28; }
  .news-card p { font-size:11px; line-height:1.55; }

  dialog {
    width:100%; max-width:none; max-height:88dvh; margin:auto 0 0; border-radius:24px 24px 0 0;
    transform:translateY(0); overscroll-behavior:contain;
  }
  dialog::backdrop { background:rgba(7,17,10,.58); backdrop-filter:blur(3px); }
  .dialog-form, .analysis-content { padding:22px 18px calc(24px + env(safe-area-inset-bottom,0)); }
  .dialog-header { position:sticky; top:0; z-index:2; margin:-22px -18px 16px; padding:19px 18px 13px; background:var(--surface); border-bottom:1px solid var(--line); }
  .dialog-actions { position:sticky; bottom:0; z-index:2; margin:18px -18px calc(-24px - env(safe-area-inset-bottom,0)); padding:13px 18px calc(13px + env(safe-area-inset-bottom,0)); background:var(--surface); border-top:1px solid var(--line); }
  .dialog-actions .primary-button { flex:1; }
  input, select, textarea { min-height:46px; font-size:16px; }

  .mobile-dock {
    position:fixed; left:10px; right:10px; bottom:max(8px,env(safe-area-inset-bottom,0)); z-index:90;
    height:68px; padding:6px 6px 5px; display:grid; grid-template-columns:1fr 1fr 72px 1fr 1fr; align-items:end;
    border:1px solid color-mix(in srgb,var(--line) 74%,transparent); border-radius:21px;
    background:color-mix(in srgb,var(--surface) 91%,transparent); box-shadow:0 16px 44px rgba(8,24,14,.18);
    backdrop-filter:blur(22px) saturate(1.2);
  }
  .mobile-dock-item {
    height:53px; padding:5px 2px; display:grid; place-items:center; align-content:center; gap:3px;
    border:0; border-radius:14px; background:transparent; color:var(--muted); font-size:8px; font-weight:600;
  }
  .mobile-dock-item.active { color:var(--accent); background:var(--accent-soft); }
  .mobile-dock-icon { width:24px; height:22px; display:grid; place-items:center; font-size:17px; line-height:1; }
  .mobile-more-icon { gap:3px; align-content:center; }
  .mobile-more-icon i { width:18px; height:1.5px; display:block; border-radius:2px; background:currentColor; }
  .mobile-trade-action {
    width:62px; height:62px; margin:0 auto 11px; padding:0; display:grid; place-items:center; align-content:center; gap:1px;
    border:4px solid var(--bg); border-radius:50%; background:var(--accent); color:#fff; box-shadow:0 10px 25px rgba(26,69,43,.28);
  }
  .mobile-trade-action > span { font-size:24px; line-height:.85; }
  .mobile-trade-action small { font-size:7px; font-weight:650; }

  .mobile-menu-scrim {
    position:fixed; inset:0; z-index:55; width:100%; height:100%; display:block; border:0;
    background:rgba(6,16,9,.48); backdrop-filter:blur(2px);
  }
  .mobile-menu-scrim[hidden] { display:none; }
  .sidebar.menu-open { z-index:80; }
  .sidebar .main-nav {
    position:fixed; left:0; right:0; top:auto; bottom:0; z-index:85; width:100%; max-height:calc(100dvh - 18px);
    padding:12px 14px calc(96px + max(8px,env(safe-area-inset-bottom,0))); grid-template-columns:1fr; gap:9px;
    border:0; border-radius:25px 25px 0 0; transform:translateY(102%); transform-origin:bottom center;
    background:color-mix(in srgb,var(--sidebar) 98%,white); box-shadow:0 -24px 70px rgba(0,0,0,.34);
  }
  .sidebar.menu-open .main-nav { padding-bottom:calc(96px + max(8px,env(safe-area-inset-bottom,0))); transform:none; }
  .sidebar .main-nav::before {
    content:""; width:42px; height:4px; margin:0 auto 4px; display:block; border-radius:99px; background:rgba(255,255,255,.22);
  }
  .nav-group { padding:8px; border-radius:15px; }
  .nav-group-label { padding:2px 8px 6px; }
  .sidebar .nav-item { min-height:48px; padding:7px 9px; }
  .sidebar .nav-icon { width:32px; height:32px; }
  .sidebar .nav-item small { white-space:normal; }
  .sidebar .sidebar-note { min-height:auto; padding:13px; }
  .sidebar.menu-open .sidebar-note { display:none; }
  .toast { bottom:calc(88px + env(safe-area-inset-bottom,0)); z-index:90; }
}

/* Mobile overview hierarchy and distinct navigation */
.mobile-overview-toggle-wrap { display:none; }

@media (max-width:700px) {
  .mobile-dock {
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:calc(78px + env(safe-area-inset-bottom,0));
    padding:8px 8px calc(7px + env(safe-area-inset-bottom,0));
    align-items:center;
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:22px 22px 0 0;
    border-color:rgba(255,255,255,.12);
    background:color-mix(in srgb,var(--sidebar) 97%,black);
    box-shadow:0 18px 48px rgba(5,20,11,.32);
  }
  .mobile-dock-item {
    height:60px;
    padding:7px 2px 6px;
    gap:5px;
    color:rgba(244,248,242,.62);
    font-size:9px;
    line-height:1;
  }
  .mobile-dock-item.active {
    color:#f5faf3;
    background:rgba(182,206,178,.16);
  }
  .mobile-dock-item.active .mobile-dock-icon { color:#c7dfc2; }
  .mobile-dock-icon { height:24px; font-size:18px; }
  .mobile-trade-action {
    width:58px;
    height:58px;
    margin:0 auto;
    border-color:var(--sidebar);
    background:#bfd9b9;
    color:#173322;
    box-shadow:0 10px 25px rgba(0,0,0,.28);
  }
  .mobile-trade-action small { font-size:8px; }

  #overviewView.active { gap:0; }
  #overviewView > * + * { margin-top:16px; }
  #overviewView .hero-card { margin-top:0; }
  #overviewView .next-step-card { margin-top:14px; }
  #overviewView .control-center { margin-top:28px; }
  #overviewView .dashboard-grid { margin-top:24px; }

  .hero-card .eyebrow { letter-spacing:.13em; }
  .daily-return-card {
    display:inline-grid;
    grid-template-columns:auto auto;
    align-items:center;
    column-gap:6px;
    background:rgba(255,255,255,.08);
  }
  .daily-return-label { grid-column:1/-1; }

  .next-step-card {
    border-color:color-mix(in srgb,var(--accent) 18%,var(--line));
    background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--accent-soft) 46%,var(--surface)));
    box-shadow:none;
  }

  .control-center-heading {
    align-items:end;
    padding:0 2px;
  }
  .control-center-heading .eyebrow { color:var(--accent); }
  .control-stats {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:0;
    padding:0;
    overflow:visible;
  }
  .control-stats button {
    width:100%;
    min-width:0;
    min-height:104px;
    padding:14px;
    border-color:var(--line);
    background:var(--surface);
    box-shadow:none;
    scroll-snap-align:none;
  }
  .control-stats button:nth-child(1) { background:color-mix(in srgb,var(--accent-soft) 36%,var(--surface)); }
  .control-stats strong { font-size:20px; }

  #overviewView .weekly-review-panel,
  #overviewView .budget-panel,
  #overviewView .activity-panel,
  #overviewView .insight-card { display:none; }
  #overviewView.mobile-details-open .weekly-review-panel,
  #overviewView.mobile-details-open .budget-panel,
  #overviewView.mobile-details-open .activity-panel,
  #overviewView.mobile-details-open .insight-card { display:grid; }

  .mobile-overview-toggle-wrap {
    order:4;
    display:block;
    margin-top:20px !important;
  }
  .mobile-overview-toggle {
    width:100%;
    min-height:64px;
    padding:12px 15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--surface);
    color:var(--text);
    text-align:left;
  }
  .mobile-overview-toggle > span:first-child { display:grid; gap:3px; }
  .mobile-overview-toggle strong { font-size:12px; }
  .mobile-overview-toggle small { color:var(--muted); font-size:9px; }
  .mobile-overview-chevron {
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:50%;
    background:var(--accent-soft);
    color:var(--accent);
    font-size:18px;
    transition:transform .2s ease;
  }
  #overviewView.mobile-details-open .mobile-overview-chevron { transform:rotate(180deg); }

  #overviewView .weekly-review-panel { order:5; }
  #overviewView .dashboard-grid { order:6; }
  #overviewView .holdings-panel {
    display:block;
    border-top:3px solid color-mix(in srgb,var(--accent) 70%,transparent);
  }
  #overviewView .dashboard-grid {
    padding-top:4px;
    border-top:1px solid var(--line);
  }
  #overviewView .dashboard-grid::before {
    content:"DINE POSITIONER";
    display:block;
    margin:0 2px -4px;
    color:var(--muted);
    font-size:8px;
    font-weight:650;
    letter-spacing:.14em;
  }
  #overviewView.mobile-details-open .dashboard-grid::before { content:"PORTEFØLJE OG PLAN"; }
}

@media (max-width:700px) {
  html {
    width:100%;
    max-width:100%;
    overflow-x:clip;
    background:var(--bg);
    overscroll-behavior-x:none;
  }
  body {
    width:100%;
    max-width:100%;
    min-height:100dvh;
    margin:0;
    overflow-x:clip;
    background:var(--bg);
    overscroll-behavior-x:none;
  }
  .app-shell,
  .main-content,
  .view,
  .topbar,
  .sidebar {
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:clip;
  }
  .view > *,
  .dashboard-grid > *,
  .control-center,
  .control-center > * {
    max-width:100%;
    min-width:0;
  }
  .main-content { padding-bottom:calc(96px + env(safe-area-inset-bottom,0)); }
  .toast { bottom:calc(90px + env(safe-area-inset-bottom,0)); }
  .candidate-pipeline,
  .control-stats,
  .calendar-stats,
  .news-stats,
  .table-scroll,
  .performance-stats {
    overscroll-behavior-x:contain;
  }
}

/* Simplified mobile product experience */
.mobile-portfolio-cards { display:none; }
.candidate-result-group { display:grid; gap:10px; }
.candidate-result-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:12px 2px 2px; }
.candidate-result-heading h3 { margin-top:3px; }
.candidate-result-heading > span { color:var(--muted); font-size:9px; }
.saved-candidate-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.saved-candidate-card { padding:18px; display:grid; gap:14px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.saved-candidate-top { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; }
.saved-candidate-top > div { min-width:0; display:grid; gap:3px; }
.saved-candidate-top strong,.saved-candidate-top small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.saved-candidate-top small { color:var(--muted); font-size:9px; }
.saved-score { padding:6px 8px; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:9px; font-weight:650; }
.saved-candidate-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.saved-candidate-actions { display:flex; gap:8px; margin-top:auto; }
.saved-candidate-actions .primary-button { flex:1; }
.journal-card-actions { display:flex; gap:8px; }
.legacy-candidate-actions,
#candidatePipelineStats,
#candidateArchiveSection { display:none !important; }

@media (max-width:700px) {
  .sidebar {
    height:calc(58px + env(safe-area-inset-top,0));
    padding-top:env(safe-area-inset-top,0);
  }
  .topbar { top:calc(58px + env(safe-area-inset-top,0)); }
  .topbar h1 { font-size:18px; letter-spacing:-.03em; }
  body[data-active-view="overview"] .topbar {
    display:flex;
    min-height:58px;
    background:var(--surface);
    box-shadow:0 8px 24px rgba(20,38,27,.06);
  }
  body[data-active-view="overview"] #overviewView { padding-top:16px; }

  .hero-meta { max-width:44%; }
  .quote-status {
    margin-top:7px;
    padding:8px 11px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:99px;
    background:rgba(255,255,255,.12);
    color:inherit;
    opacity:1;
    font-size:9px;
    font-weight:650;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
  }
  .quote-status::first-letter { font-size:12px; }

  #overviewView .next-step-card { order:9; margin-top:14px; }
  #overviewView .mobile-overview-toggle-wrap { order:7; }
  #overviewView .control-center { order:8; margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
  #overviewView .dashboard-grid { order:4; }
  #overviewView .weekly-review-panel { order:6; }
  #overviewView .attention-panel { margin-top:18px; }
  #overviewView.mobile-details-open .attention-panel { display:grid; }

  #portfolioView .performance-card {
    display:block !important;
    margin-bottom:16px;
    border-top:3px solid var(--accent);
    overflow:hidden;
  }
  #portfolioView .performance-header h2 { font-size:19px; }
  #portfolioView .performance-chart-wrap {
    display:block !important;
    width:100%;
    min-height:210px;
    margin-top:14px;
    border-radius:14px;
    background:color-mix(in srgb,var(--accent-soft) 38%,var(--surface));
    overflow:hidden;
  }
  #portfolioView .performance-stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    overflow:visible;
  }
  #portfolioView .performance-stats > div {
    min-width:0;
    min-height:76px;
    padding:11px 9px;
  }
  #portfolioView .performance-stats span { font-size:7px; }
  #portfolioView .performance-stats strong { font-size:13px; }
  #portfolioView > .table-card { display:none; }
  .mobile-portfolio-cards { display:grid; gap:12px; }
  .mobile-position-card {
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--surface);
    box-shadow:0 8px 24px rgba(20,38,27,.04);
  }
  .mobile-position-main {
    width:100%;
    min-height:76px;
    padding:15px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    border:0;
    background:transparent;
    color:var(--text);
    text-align:left;
  }
  .mobile-position-name { min-width:0; display:grid; gap:3px; }
  .mobile-position-name strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-position-name small { color:var(--muted); font-size:9px; }
  .mobile-position-value { display:grid; gap:3px; text-align:right; }
  .mobile-position-value strong { font-size:13px; }
  .mobile-position-value small { max-width:100px; font-size:8px; }
  .mobile-position-metrics {
    padding:12px 15px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    border-top:1px solid var(--line);
    background:color-mix(in srgb,var(--bg) 58%,var(--surface));
  }
  .mobile-position-metrics > span { min-width:0; display:grid; gap:3px; }
  .mobile-position-metrics small { color:var(--muted); font-size:7px; }
  .mobile-position-metrics strong { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }

  #watchlistView .section-heading { display:grid; gap:14px; }
  #watchlistView .section-heading .primary-button { width:100%; min-height:48px; }
  #watchlistView .ai-disclaimer { margin-bottom:18px; }
  .ai-candidate-list { gap:24px; }
  .candidate-result-group { gap:9px; }
  .candidate-result-heading { margin-top:4px; padding-bottom:9px; border-bottom:1px solid var(--line); }
  .ai-candidate-row {
    min-height:74px;
    grid-template-columns:28px minmax(0,1fr) auto 28px;
    padding:12px;
  }
  .ai-candidate-row .candidate-metric { display:none !important; }
  .ai-candidate-row .candidate-metric:first-of-type { display:grid !important; }
  .candidate-rank { width:28px; height:28px; }
  .legacy-candidate-actions,
  #candidatePipelineStats,
  #candidateArchiveSection { display:none !important; }
  .saved-heading { margin-top:34px; padding-top:24px; border-top:1px solid var(--line); }
  .candidate-pipeline {
    display:grid;
    grid-template-columns:1fr;
    gap:11px;
    margin:0;
    padding:0;
    overflow:visible;
  }
  .saved-candidate-card { padding:15px; }
  .saved-candidate-actions button { min-height:42px; }

  .journal-card-footer { align-items:stretch; flex-direction:column; }
  .journal-card-actions { display:grid; grid-template-columns:1fr 1fr; }
  .journal-card-actions button { width:100%; min-width:0; min-height:44px; padding:10px; }

  #settingsView .settings-layout { gap:14px; }
  #settingsView .settings-form,
  #settingsView .account-settings-card { padding:18px; overflow:hidden; }
  #settingsView .settings-form-grid { gap:12px; }
  #settingsView .settings-form-grid label,
  #settingsView .notification-settings label { min-width:0; }
  #settingsView input,
  #settingsView select,
  #settingsView button { max-width:100%; }
  #settingsView .check-setting {
    grid-template-columns:22px minmax(0,1fr);
    align-items:start;
  }
  #settingsView .check-setting input { width:20px; min-height:20px; }
  #settingsView .check-setting span { min-width:0; }
  #settingsView .check-setting strong,
  #settingsView .check-setting small,
  #settingsView .account-detail strong { overflow-wrap:anywhere; }
  #settingsView .experience-settings { gap:14px; }
  #settingsView .dialog-actions { position:static; margin:18px 0 0; padding:16px 0 0; }
}


/* Simple candidate flow */
.ai-candidate-row {
  grid-template-columns:42px minmax(160px,1.25fr) .75fr .65fr .75fr auto;
}
.candidate-row-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.candidate-row-actions button {
  min-height:36px;
  padding:8px 11px;
  white-space:nowrap;
}
.candidate-save-button:disabled {
  opacity:1;
  background:var(--accent-soft);
  color:var(--accent);
  cursor:default;
}
#watchlistView .candidate-heading {
  display:block;
}
@media (max-width:700px) {
  .ai-candidate-row {
    grid-template-columns:28px minmax(0,1fr) auto;
  }
  .ai-candidate-row .candidate-metric {
    display:none !important;
  }
  .ai-candidate-row .candidate-metric:first-of-type {
    display:grid !important;
  }
  .candidate-row-actions {
    grid-column:2/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .candidate-row-actions button {
    width:100%;
    min-height:42px;
  }
}


/* Next action belongs with the prioritized control list */
#overviewView .control-center > .next-step-card {
  margin:18px 0 0;
}


/* Final mobile layout guard — keep every primary screen inside the viewport */
@media (max-width:700px) {
  html, body, .app-shell, .main-content, .view { max-width:100%; overflow-x:clip; }
  *, *::before, *::after { box-sizing:border-box; }

  .topbar {
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }
  .topbar > div, .section-heading > div, .panel-header > div { min-width:0; }
  .topbar h1, .section-heading h2, .panel-header h2 {
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .section-heading,
  .performance-header,
  .performance-footer,
  .position-heading,
  .calendar-heading,
  .news-heading {
    width:100%;
    grid-template-columns:minmax(0,1fr);
  }
  .section-heading > button,
  .section-heading > .calendar-heading-actions,
  .performance-controls,
  .position-actions,
  .calendar-heading-actions {
    width:100%;
  }
  .section-heading > button,
  .calendar-heading-actions button,
  .performance-controls button,
  .performance-controls select {
    min-height:46px;
  }

  .panel, .performance-card, .calendar-panel, .news-panel,
  .settings-form, .account-settings-card {
    width:100%;
    min-width:0;
    overflow:hidden;
  }

  .settings-layout,
  .settings-form-grid,
  .journal-form-grid,
  .form-grid,
  .calendar-heading-actions,
  .performance-controls {
    grid-template-columns:minmax(0,1fr);
  }
  .settings-form-grid > *,
  .journal-form-grid > *,
  .form-grid > *,
  .notification-settings > *,
  .experience-settings > * {
    min-width:0;
    max-width:100%;
  }
  input, select, textarea { width:100%; max-width:100%; }
  textarea { resize:vertical; }

  .journal-intro {
    grid-template-columns:auto minmax(0,1fr);
    align-items:start;
  }
  .journal-intro .journal-progress {
    grid-column:1/-1;
    width:100%;
    min-width:0;
    text-align:left;
  }
  .journal-card-footer,
  .journal-card-actions,
  .saved-candidate-actions {
    width:100%;
  }
  .journal-card-actions,
  .saved-candidate-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .journal-card-actions button,
  .saved-candidate-actions button { width:100%; min-width:0; }

  .position-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .position-stats article, .risk-key-card { min-width:0; }
  .position-stats strong, .risk-key-card strong { white-space:normal; overflow-wrap:anywhere; }

  .calendar-toolbar { grid-template-columns:42px minmax(0,1fr) 42px; }
  .calendar-toolbar h2 { min-width:0; overflow-wrap:anywhere; }
  .calendar-filters { max-width:100%; }

  .news-toolbar, .news-filters { width:100%; grid-template-columns:minmax(0,1fr); }
  .news-toolbar button, .news-filters select { width:100%; min-width:0; }
  .news-card-top, .news-card-footer { min-width:0; }
  .news-source { max-width:100%; overflow:hidden; text-overflow:ellipsis; }

  dialog { max-width:100%; overflow-x:hidden; }
  .dialog-form, .analysis-content { max-width:100%; overflow-x:hidden; }
  .dialog-actions {
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:9px;
  }
  .dialog-actions button { width:100%; min-width:0; min-height:46px; }

  .mobile-dock {
    left:0; right:0; bottom:0; width:100%; max-width:100%;
  }
  .mobile-dock-item { min-width:0; overflow:hidden; }
  .mobile-dock-item > span:last-child {
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

/* Professionel login og konto-oprettelse */
.auth-dialog { width:min(900px,calc(100vw - 30px)); max-height:min(720px,calc(100dvh - 30px)); padding:0; overflow:hidden; border:0; border-radius:22px; background:var(--surface); box-shadow:0 28px 90px rgba(8,24,15,.28); }
.auth-dialog::backdrop { background:rgba(8,18,12,.68); backdrop-filter:blur(8px); }
.auth-shell { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr); min-height:590px; }
.auth-intro { display:flex; flex-direction:column; justify-content:space-between; gap:28px; padding:38px; color:#f5f7f2; background:linear-gradient(155deg,#142d20 0%,#234f35 100%); }
.auth-brand { display:flex; align-items:center; gap:11px; font-size:16px; }.auth-brand>span { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.35); border-radius:11px; font-weight:800; }
.auth-intro h2 { max-width:350px; margin:10px 0 12px; font-size:34px; line-height:1.04; letter-spacing:-.04em; }.auth-intro p { max-width:340px; margin:0; color:rgba(255,255,255,.72); font-size:13px; line-height:1.6; }.auth-intro small { color:rgba(255,255,255,.55); font-size:9px; line-height:1.55; }
.auth-benefits { display:grid; gap:12px; margin:0; padding:0; list-style:none; font-size:11px; }.auth-benefits li { display:flex; align-items:center; gap:10px; }.auth-benefits span { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.12); }
.auth-form { position:relative; display:flex; flex-direction:column; justify-content:center; padding:48px 58px; }.auth-close { position:absolute; top:20px; right:20px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin-bottom:31px; border-radius:12px; background:var(--bg); }.auth-tabs button { min-height:40px; border:0; border-radius:9px; background:transparent; color:var(--muted); font:inherit; font-size:11px; font-weight:700; }.auth-tabs button.active { background:var(--surface); color:var(--text); box-shadow:0 2px 10px rgba(15,36,23,.09); }
.auth-heading h2 { margin:7px 0 8px; font-size:27px; letter-spacing:-.035em; }.auth-heading p { margin:0 0 25px; color:var(--muted); font-size:11px; line-height:1.5; }
.auth-fields { display:grid; gap:16px; }
.auth-fields > [hidden] { display:none !important; }.auth-fields>label:not(.auth-consent) { display:grid; gap:8px; color:var(--text); font-size:10px; font-weight:700; }.auth-fields input { min-height:48px; }
.password-field { position:relative; display:block; }.password-field input { width:100%; padding-right:65px; }.password-toggle { position:absolute; top:50%; right:13px; transform:translateY(-50%); border:0; background:transparent; color:var(--accent); font-size:9px; font-weight:800; }
.auth-consent { display:flex; align-items:flex-start; gap:9px; color:var(--muted); font-size:9px; line-height:1.45; }.auth-consent input { width:16px; min-height:16px; margin:1px 0 0; accent-color:var(--accent); }
.auth-forgot { align-self:flex-end; margin:10px 0 0; padding:0; border:0; background:transparent; color:var(--accent); font-size:9px; font-weight:700; }.auth-message { min-height:19px; margin:13px 0 7px; font-size:10px; line-height:1.45; }.auth-submit { width:100%; min-height:48px; justify-content:center; }
.auth-switch-copy { margin:18px 0 0; text-align:center; color:var(--muted); font-size:10px; }.auth-switch-copy button { padding:0; border:0; background:transparent; color:var(--accent); font:inherit; font-weight:800; }
@media (max-width:700px) { .auth-dialog { width:100vw; max-width:none; max-height:100dvh; height:100dvh; border-radius:0; }.auth-shell { display:block; min-height:100%; }.auth-intro { display:none; }.auth-form { min-height:100dvh; justify-content:flex-start; padding:76px 24px 28px; overflow-y:auto; }.auth-tabs { margin-bottom:32px; }.auth-heading h2 { font-size:25px; } }

.account-data-tools { display:grid; gap:10px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--bg); }
.account-data-tools > div { display:grid; gap:4px; }
.account-data-tools strong { font-size:11px; }
.account-data-tools small { color:var(--muted); font-size:9px; line-height:1.45; }
.account-data-tools .secondary-button { width:100%; justify-content:center; }
