:root {
  --navy: #0e2431;
  --navy-light: #162f40;
  --gold: #966e35;
  --gold-dark: #775723;
  --gold-light: #cab487;
  --gold-bg: #F5EDDB;
  --bg: #F0EDE6;
  --surface: #FFFFFF;
  --border: #E2DDD4;
  --border-dark: #CFC9BC;
  --text: #0e2431;
  --text-muted: #7A6E5F;
  --danger: #C0392B;
  --danger-bg: #FDECEA;
  --success: #1E7A4A;
  --success-bg: #EAF6EF;
  --warn: #966e35;
  --warn-bg: #F5EDDB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 2px 10px rgba(14,36,49,.06);
  --shadow-lg: 0 12px 40px rgba(14,36,49,.20);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a24;
    --surface: #12262f;
    --border: #1f3542;
    --border-dark: #2a4452;
    --text: #EDE7DA;
    --text-muted: #9CAAB0;
    --gold-bg: #23241b;
    --danger-bg: #2b1a18;
    --success-bg: #142822;
    --warn-bg: #23241b;
    --navy-light: #1a3444;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}
h1, h2, h3 { font-weight: 600; margin: 0; }
a { color: inherit; }
button { font-family: inherit; }

/* ── Header ───────────────────────────────────────── */
.hub-header {
  max-width: 1760px;
  margin: 0 auto;
  padding-block: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 46px; height: 36.8px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text .greet { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }
.brand-text .glance { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.brand-text .glance strong { color: var(--text); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-pill.disabled { color: var(--text-muted); cursor: default; opacity: .6; }
.nav-pill.disabled:hover { transform: none; box-shadow: none; }
.nav-pill-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; color: var(--gold-dark); flex-shrink: 0; }
.nav-pill-icon svg { width: 15px; height: 15px; }
.nav-pill.disabled .nav-pill-icon { color: var(--text-muted); }

.icon-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn.active { background: var(--navy); color: var(--gold-light); }

/* Widget picker */
.widget-picker { position: relative; }
.widget-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 6px;
  z-index: 20;
  display: flex; flex-direction: column; gap: 2px;
}
.widget-menu-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-muted); padding: 0 10px 8px;
}
.widget-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.widget-row:hover { background: var(--bg); }
.widget-row input {
  appearance: none; width: 34px; height: 20px; border-radius: 999px;
  background: var(--border-dark); position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.widget-row input::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); transition: transform .15s;
}
.widget-row input:checked { background: var(--success); }
.widget-row input:checked::before { transform: translateX(14px); }

/* ── Layout shell ─────────────────────────────────── */
.shell {
  max-width: 1760px; margin: 0 auto; padding-block: 4px 40px;
  display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 28px; align-items: start;
}
.rail, .main-col { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
/* Rail stays in view while the briefing scrolls; scrolls on its own if taller than the window */
.rail { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
/* Narrow rail: tighter rows */
.rail .cal-time { width: 68px; white-space: nowrap; }
.rail .quick-add { margin: 0 12px 10px; }
.rail .panel-body { padding: 2px 10px 14px; }
.shell.no-rail { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; overflow: visible; }
}

.section-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; display: block; }

.panel { background: var(--surface); border: none; border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 22px 10px; }
.panel-head.panel-head-inset { padding: 16px 22px 6px; }
.panel-head h2 { font-size: 16px; letter-spacing: -0.1px; }
.panel-head .count { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.panel-body { padding: 4px 14px 18px; }

/* Valuations table (Minerals tab) */
.val-table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 12.5px; }
.val-table th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .3px; padding: 6px 10px 8px 0; border-bottom: 1px solid var(--border); }
.val-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); }
.val-table tr:last-child td { border-bottom: none; }

.loading-row, .error-row, .empty-row {
  padding: 16px 8px; font-size: 13.5px; color: var(--text-muted);
}
.error-row { color: var(--danger); }

/* Quick-add */
.quick-add { display: flex; align-items: center; gap: 10px; margin: 0 14px 12px; padding: 11px 15px; background: var(--bg); border-radius: 999px; }
.quick-add .spark { color: var(--gold); flex-shrink: 0; }
.quick-add input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: inherit; font-size: 14px; color: var(--text); }
.quick-add input::placeholder { color: var(--text-muted); }
.quick-add.busy { opacity: .6; pointer-events: none; }

/* Tasks */
.task-row { border-radius: var(--radius); }
.task-row-main { display: flex; align-items: flex-start; gap: 12px; padding: 11px 8px; cursor: pointer; }
.task-row:hover .task-row-main { background: var(--bg); border-radius: var(--radius); }
.task-check {
  width: 19px; height: 19px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--border-dark);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.task-check.checked { background: var(--success); border-color: var(--success); color: #fff; }
.task-check.checked svg { width: 11px; height: 11px; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 450; line-height: 1.4; }
.task-title.done { text-decoration: line-through; color: var(--text-muted); }
.task-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 5px; color: var(--text-muted); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.chip.high::before { background: var(--danger); }
.chip.medium::before, .chip.med::before { background: var(--gold); }
.chip.low::before { background: var(--success); }
.chip.tag::before { display: none; }
.task-chevron { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); transition: transform .15s ease; }
.task-row.expanded .task-chevron { transform: rotate(90deg); }
.task-context {
  display: none; margin: 0 8px 10px 39px; padding: 10px 12px; background: var(--gold-bg);
  border-radius: var(--radius); font-size: 12.5px; color: var(--gold-dark); line-height: 1.5;
}
.task-row.expanded .task-context { display: block; }

/* Calendar */
.cal-item { display: flex; align-items: center; gap: 14px; padding: 11px 8px; }
.cal-time { width: 64px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cal-bar { width: 3px; align-self: stretch; border-radius: 3px; flex-shrink: 0; background: var(--gold-light); }
.cal-bar.busy { background: var(--navy); }
.cal-main { flex: 1; min-width: 0; }
.cal-title { font-size: 14px; font-weight: 450; line-height: 1.35; }
.cal-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Weather */
.not-connected {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; font-size: 13.5px; color: var(--text-muted);
}

/* Briefing */
.briefing-tabs { display: flex; gap: 4px; padding: 16px 22px 0; overflow-x: auto; }
.briefing-tab {
  flex-shrink: 0; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: transparent; border: none; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.briefing-tab:hover { color: var(--text); }
.briefing-tab.active { background: var(--bg); color: var(--text); font-weight: 600; }
.briefing-panel { padding-top: 6px; }

/* Market strip */
.market-strip { display: flex; overflow-x: auto; }
.market-item { flex: 1 1 140px; min-width: 140px; padding: 22px 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.market-item:first-child { border-left: none; }
.market-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.market-value { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.market-delta { font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.market-delta.up { color: var(--success); }
.market-delta.down { color: var(--danger); }
.market-item.signal { border-left-width: 1px; }
.market-item.signal .market-value { font-size: 18px; letter-spacing: .3px; }
.market-item.signal.green .market-value { color: var(--success); }
.market-item.signal.yellow .market-value { color: var(--warn); }
.market-item.signal.red .market-value { color: var(--danger); }
.market-item.signal .market-delta { color: var(--text-muted); line-height: 1.4; }

/* Bullet groups (O&G News tab) */
.bullet-group { padding: 6px 22px 20px; }
.bullet-group h3 { font-size: 13px; color: var(--gold-dark); margin-bottom: 8px; }
.bullet-group ul { margin: 0 0 18px; padding-left: 18px; }
.bullet-group li { font-size: 13.5px; line-height: 1.55; margin-bottom: 5px; }
.bullet-group:last-child ul:last-child { margin-bottom: 0; }

/* AI Radar tool cards */
.radar-tools { padding: 6px 22px 4px; display: flex; flex-direction: column; gap: 10px; }
.radar-tool { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.radar-tool:first-child { border-top: none; }
.radar-tool-name { font-size: 14px; font-weight: 600; }
.radar-tool-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.radar-tag { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; background: var(--gold-bg); color: var(--gold-dark); }
.radar-action { margin: 4px 22px 20px; padding: 12px 14px; background: var(--gold-bg); border-radius: var(--radius); font-size: 13px; color: var(--gold-dark); }
.radar-trends { margin: 0 22px 20px; padding-left: 18px; }
.radar-trends li { font-size: 13px; line-height: 1.55; margin-bottom: 4px; color: var(--text-muted); }

/* Acquisitions — regional intel */
.acq-region { padding: 4px 22px 20px; }
.acq-region h3 { font-size: 13px; color: var(--gold-dark); margin-bottom: 6px; }
.acq-region .acq-headline { font-size: 13.5px; line-height: 1.55; margin-bottom: 10px; }
.acq-callout { padding: 10px 12px; border-radius: var(--radius); font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
.acq-callout.hot, .acq-callout.breaking, .acq-callout.action-required { background: var(--danger-bg); color: var(--danger); }
.acq-callout.watch, .acq-callout.opportunity { background: var(--gold-bg); color: var(--gold-dark); }
.acq-deal { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--border); }
.acq-deal:first-of-type { border-top: none; }

/* Priorities */
.priority-list { display: flex; flex-direction: column; padding: 4px 22px 20px; }
.priority-item { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.priority-item:first-child { border-top: none; }
.priority-num { font-size: 13px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 22px; }
.priority-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.priority-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ── Gated widgets (CRM + W&A) ─────────────────────── */
.gated-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px 24px; }
.gated-grid > section { min-width: 0; }
.src-tag { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .3px; color: var(--gold-dark); background: var(--gold-bg); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.gated-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.gstats { display: flex; gap: 10px; flex-wrap: wrap; }
.gstat { flex: 1 1 110px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gstat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.gstat-value { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.gstats.big .gstat-value { font-size: 30px; }
.gstat-sub { font-size: 12px; color: var(--text-muted); }
.warn-text { color: var(--danger); font-weight: 600; }
.stage-bars { display: flex; flex-direction: column; gap: 6px; }
.stage-bar { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 12.5px; }
.stage-name { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-track { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.stage-fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.stage-count { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.gated-rows { display: flex; flex-direction: column; }
.gated-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--radius); text-decoration: none; }
.gated-row:hover { background: var(--bg); }
.gated-row-main { min-width: 0; }
.gated-row-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gated-row-sub { font-size: 12px; color: var(--text-muted); }
.gated-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.stage-pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--text-muted); white-space: nowrap; }
.stage-pill.need { background: var(--warn-bg); color: var(--gold-dark); }
.stage-pill.contract, .stage-pill.approved { background: var(--success-bg); color: var(--success); }
.gated-more { font-size: 12.5px; font-weight: 600; color: var(--gold-dark); text-decoration: none; }
.gated-more:hover { text-decoration: underline; }
.gated-note { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.seg { display: inline-flex; align-self: flex-start; background: var(--bg); border-radius: 999px; padding: 3px; }
.seg-btn { border: none; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.cf-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.cf-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.cf-bar { width: 100%; max-width: 26px; background: var(--success); border-radius: 4px 4px 0 0; }
.cf-bar.neg { background: var(--danger); }
.cf-lbl { font-size: 10.5px; color: var(--text-muted); }
.cf-table td.pos { color: var(--success); font-weight: 600; }
.cf-table td.neg { color: var(--danger); font-weight: 600; }
.state-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-muted); }
.state-line strong { color: var(--text); }
/* Widget menu: locked rows and Travis's access controls */
.widget-menu { max-height: min(80vh, 640px); overflow-y: auto; width: 270px; }
.widget-row.locked { cursor: default; color: var(--text-muted); }
.widget-row.locked:hover { background: transparent; }
.lock-note { font-size: 11.5px; font-weight: 600; color: var(--gold-dark); }
.access-label { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.access-block { padding: 2px 0 6px; }
.access-title { font-size: 12.5px; font-weight: 600; padding: 4px 10px 0; }
.widget-row.sub { padding-block: 5px; padding-left: 20px; font-weight: 400; }
.error-row.small { font-size: 12px; padding: 8px 10px; }
@media (max-width: 480px) { .gated-grid { grid-template-columns: 1fr; } .stage-bar { grid-template-columns: 92px 1fr 24px; } }
.gated-row-sub.reason { color: var(--danger); }
.gated-row-sub.ai-step { display: flex; gap: 5px; align-items: flex-start; margin-top: 2px; color: var(--text); line-height: 1.35; }
.gated-row-sub.ai-step svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
/* Phone: the menu becomes a sheet inside the 16px gutters instead of hanging off the left edge */
@media (max-width: 600px) {
  .widget-menu { position: fixed; top: 16px; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 32px); }
}

/* Minerals & A&D News */
.news-refresh { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--gold-dark); background: var(--gold-bg); border: none; border-radius: 999px; padding: 5px 12px; cursor: pointer; flex-shrink: 0; margin-left: 12px; }
.news-refresh:disabled { opacity: .6; cursor: default; }
#newsTakeaway { font-size: 15px; line-height: 1.35; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: block; padding: 12px 8px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; border-radius: 8px; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.news-status { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--bg); color: var(--text-muted); }
.news-status.deal { background: var(--gold-bg); color: var(--gold-dark); }
.news-status.closed { background: var(--success-bg); color: var(--success); }
.news-status.rumor, .news-status.market { background: var(--warn-bg); color: var(--warn); font-style: italic; }
.news-status.dead { background: var(--danger-bg); color: var(--danger); }
.news-title { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.news-why { font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-top: 3px; }
.news-note { font-size: 12.5px; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 8px 10px; margin: 6px 8px 4px; }
.news-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 11.5px; color: var(--text-muted); padding: 10px 8px 0; border-top: 1px solid var(--border); margin-top: 4px; }
.news-links { display: flex; flex-wrap: wrap; gap: 12px; }
.news-links a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.news-links a:hover { text-decoration: underline; }
/* ── Today Plan (AI) ───────────────────────────────── */
.plan-status { font-weight: 500; font-size: 12px; margin-left: 8px; color: var(--text-muted); }
.plan-next { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.35; }
.plan-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.plan-list li { padding-left: 2px; }
.plan-list li em { font-style: normal; color: var(--gold-dark); font-weight: 600; font-size: 12.5px; margin-left: 8px; white-space: nowrap; }
.plan-watch { font-size: 13px; color: var(--danger); background: var(--danger-bg); padding: 8px 12px; border-radius: var(--radius); }
.plan-now { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 14px; }
.plan-now .gated-row-sub { color: rgba(255,255,255,.7); }
.plan-now-label { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gold-light); }
.plan-now-main { flex: 1; min-width: 0; }
.plan-done { border: none; background: var(--gold-light); color: var(--navy); font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.plan-done.checked { opacity: .5; }
.plan-rail { display: flex; flex-direction: column; }
.plan-slot { display: grid; grid-template-columns: 58px 12px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.plan-slot:last-child { border-bottom: none; }
.plan-slot-time { color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.plan-slot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); justify-self: center; }
.plan-slot.task .plan-slot-dot { background: var(--gold); }
.plan-slot.live .plan-slot-dot { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.plan-slot-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-slot.meeting .plan-slot-title { font-weight: 600; }
.plan-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-dark); background: transparent; cursor: pointer; padding: 0; }
.plan-check:hover { border-color: var(--success); }
.plan-check.checked { background: var(--success); border-color: var(--success); }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.plan-foot strong { color: var(--text); }
@media (prefers-color-scheme: dark) { .plan-now { background: var(--navy-light); } }

/* Market Brief: sources */
.market-note { font-size: 11.5px; color: var(--text-muted); padding: 0 22px 14px; }
.market-note a, .src-link { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.market-note a:hover, .src-link:hover { text-decoration: underline; }
.src-link { font-size: 11.5px; margin-left: 4px; white-space: nowrap; }
.market-delta.missing { color: var(--text-muted); font-style: italic; }
.acq-points { margin: 8px 0 4px; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.acq-points li { margin-bottom: 6px; }

/* ── Deal Closing ──────────────────────────────────── */
.gated-grid > .span-2 { grid-column: 1 / -1; }
.closing-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.closing-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.closing-row.risk { border-color: var(--danger); }
.closing-head { display: flex; justify-content: space-between; gap: 10px; }
.closing-dates { font-size: 12.5px; color: var(--text-muted); }
.closing-dates strong { color: var(--text); }
.closing-out { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.closing-out em { font-style: normal; font-size: 11.5px; color: var(--gold-dark); font-weight: 600; margin-left: 4px; }
.closing-out li.more { list-style: none; margin-left: -18px; color: var(--text-muted); font-size: 12px; }
.closing-links { display: flex; gap: 8px; font-size: 12px; font-weight: 600; }
.closing-links a { color: var(--gold-dark); text-decoration: none; }
.closing-links a:hover { text-decoration: underline; }
.closing-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cal-on { color: var(--success); font-weight: 600; }
.link-btn { border: none; background: none; color: var(--gold-dark); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 0; }
.link-btn:disabled { opacity: .6; }
