/* ============================================================
   Conosco Expand — application styles
   Builds on top of conosco-tokens.css
   ============================================================ */

/* ---- htmx ---- */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; pointer-events: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: Calibri, Carlito, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background:
    radial-gradient(1000px 650px at 10% 12%, rgba(117, 47, 140, 0.32) 0%, rgba(117, 47, 140, 0) 60%),
    radial-gradient(950px 700px at 6% 90%, rgba(0, 174, 171, 0.42) 0%, rgba(0, 174, 171, 0) 55%),
    radial-gradient(1000px 800px at 60% 110%, rgba(61, 181, 230, 0.28) 0%, rgba(61, 181, 230, 0) 60%),
    linear-gradient(155deg, #11395e 0%, #0c3b5d 45%, #0d4f6b 75%, #10707f 100%);
  background-attachment: fixed;
}

a { color: var(--fg-link); }
a:hover { color: var(--fg-link-hover); }

/* ---- App shell ---- */
.app-shell {
  display: flex;
  height: 100%;
  overflow: hidden;
  padding: var(--sp-3);
  gap: 0;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 252px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  padding-right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(6, 18, 34, 0.25);
  overflow: hidden;
}

.sidebar a { border-bottom: none; }

a.sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar__logo-img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.sidebar__nav {
  flex: 1;
  padding: var(--sp-3) var(--sp-2) var(--sp-3);
  overflow-y: auto;
}

.sidebar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar__link,
.sidebar__nav-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: var(--fw-light);
  font-family: 'Prompt', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.sidebar__link:hover,
.sidebar__nav-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.sidebar__link--active { background: rgba(255, 255, 255, 0.22); color: #fff; font-weight: var(--fw-regular); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.sidebar__link--active:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.sidebar__nav-btn--active { color: #fff; font-weight: var(--fw-regular); }

.sidebar__nav-btn-label {
  flex: 1;
  text-align: left;
}

.sidebar__nav-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.sidebar__nav-chevron--open {
  transform: rotate(180deg);
}

/* ---- Sidebar divider + section label ---- */
.sidebar__divider {
  padding: var(--sp-3) var(--sp-3) var(--sp-1);
}
.sidebar__rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 var(--sp-2);
}
.sidebar__section-label {
  font-size: 11px;
  font-weight: var(--fw-light);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- Sidebar sub-navigation ---- */
.sidebar__section {
  display: flex;
  flex-direction: column;
}

.sidebar__collapse-body {
  display: none;
}

.sidebar__collapse-body--open {
  display: block;
}

.sidebar__sublinks {
  list-style: none;
  margin: 0 0 0 calc(var(--sp-3) + 16px);
  padding: var(--sp-1) 0 0 var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar__sublink {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: var(--fw-light);
  font-family: 'Prompt', sans-serif;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-bottom: none;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.sidebar__sublink:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.sidebar__sublink--active { background: rgba(255, 255, 255, 0.22); color: #fff; font-weight: var(--fw-regular); }
.sidebar__sublink--active:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

.sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: var(--sp-3) var(--sp-4);
  flex-shrink: 0;
}

.sidebar__user-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sidebar__avatar {
  width: 30px;
  height: 30px;
  background: var(--c-teal);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  flex-shrink: 0;
}

.sidebar__user-info { flex: 1; min-width: 0; }

.sidebar__user-name {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__signout {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  padding: var(--sp-1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  transition: color var(--dur-fast);
  flex-shrink: 0;
}

.sidebar__signout:hover { color: #fff; }

/* ---- Sidebar collapse button ---- */
.sidebar__collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--sp-2) var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-lg);
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  width: calc(100% - var(--sp-4));
}
.sidebar__collapse-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.sidebar__collapse-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}

/* ---- Sidebar collapsed state ---- */
.sidebar {
  transition: width var(--dur-base) var(--ease-out);
}
.sidebar--collapsed {
  width: 80px;
}
.sidebar--collapsed .sidebar__logo-full { display: none; }
.sidebar__logo-icon { display: none; width: 28px; height: 28px; }
.sidebar--collapsed .sidebar__logo-icon { display: block; }
.sidebar--collapsed .sidebar__nav-btn-label,
.sidebar--collapsed .sidebar__nav-label,
.sidebar--collapsed .sidebar__nav-chevron,
.sidebar--collapsed .sidebar__collapse-body,
.sidebar--collapsed .sidebar__user-info,
.sidebar--collapsed .sidebar__user-name,
.sidebar--collapsed .sidebar__user-role,
.sidebar--collapsed .sidebar__section-label,
.sidebar--collapsed .sidebar__rule { display: none; }
.sidebar--collapsed .sidebar__link,
.sidebar--collapsed .sidebar__nav-btn { justify-content: center; padding: var(--sp-2); }
.sidebar--collapsed .sidebar__collapse-icon { transform: rotate(180deg); }
.sidebar--collapsed .sidebar__footer { display: none; }

/* ---- Main area ---- */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-left: -20px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 30px rgba(6, 18, 34, 0.22), -8px 0 18px -12px rgba(6, 18, 34, 0.28);
  overflow: hidden;
}

.main-topbar {
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-7);
  border-bottom: 1px solid rgba(14, 30, 47, 0.08);
}

.main-topbar__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-7);
  max-width: var(--container-max);
  width: 100%;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 var(--sp-1);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.badge--teal  { background: var(--c-teal);   color: var(--c-white); }
.badge--navy  { background: var(--c-navy);   color: var(--c-white); }
.badge--count { background: var(--c-purple); color: var(--c-white); }

.card-desc-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-teal);
  cursor: pointer;
  margin-top: var(--sp-1);
}

.card-desc-toggle:hover { color: var(--c-dark-teal); }

.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  flex-shrink: 0;
}

/* ---- Sub navigation ---- */
.sub-nav { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6); }

.sub-nav__link {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  text-decoration: none;
  border-bottom: none;
  transition: color var(--dur-fast);
}

.sub-nav__link:hover { color: var(--fg-1); }
.sub-nav__link--active { color: var(--c-navy); }

/* ---- Cards ---- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
  font-family: inherit;
  white-space: nowrap;
}

.btn--sm  { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); }
.btn--full { width: 100%; justify-content: center; }

.btn-navy    { background: var(--c-navy);   color: var(--c-white); }
.btn-navy:hover { background: var(--c-charcoal); color: var(--c-white); }

.btn-teal    { background: var(--c-teal);   color: var(--c-white); }
.btn-teal:hover { background: var(--c-dark-teal); color: var(--c-white); }

.btn-outline { background: transparent; border-color: var(--c-navy); color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: var(--c-white); }

.btn-ghost   { background: transparent; color: var(--c-teal); border-color: transparent; }
.btn-ghost:hover { color: var(--c-dark-teal); }

.btn-danger  { background: var(--status-danger); color: var(--c-white); }
.btn-danger:hover { opacity: 0.88; }

.btn-purple  { background: var(--c-purple); color: var(--c-white); }
.btn-purple:hover { opacity: 0.88; }

/* ---- Alerts ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border-left: 3px solid;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
}

.alert--success { background: rgba(0,174,171,0.08); border-color: var(--status-success); color: var(--fg-1); }
.alert--warning { background: rgba(169,173,0,0.10); border-color: var(--status-warning);  color: var(--fg-1); }
.alert--danger  { background: rgba(192,57,43,0.08); border-color: var(--status-danger);   color: var(--fg-1); }
.alert--info    { background: rgba(61,181,230,0.08); border-color: var(--status-info);    color: var(--fg-1); }
.alert--emphasis { background: rgba(117,47,140,0.08); border-color: var(--c-purple);     color: var(--fg-1); }

/* ---- Forms ---- */
.form-label  { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--fg-2); margin-bottom: var(--sp-1); }
.form-hint   { font-size: var(--fs-xs); color: var(--fg-muted); margin-top: var(--sp-1); }
.form-error  { font-size: var(--fs-xs); color: var(--status-danger); margin-top: var(--sp-1); }
.form-group  { margin-bottom: var(--sp-4); }

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-family: inherit;
  color: var(--fg-1);
  background: var(--bg-raised);
  transition: border-color var(--dur-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: var(--shadow-focus);
}

.form-input--error  { border-color: var(--status-danger); }
.form-textarea { resize: vertical; min-height: 80px; }

/* ---- Source badges (event discovery) ---- */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.source-badge--eventbrite { background: #f05537; color: white; }
.source-badge--meetup     { background: #f64060; color: white; }
.source-badge--serpapi    { background: var(--c-navy); color: white; }

/* ---- AI enhanced badge ---- */
.ai-enhanced-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  background: rgba(0, 174, 171, 0.12);
  color: var(--c-dark-teal);
}

.ai-enhanced-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  flex-shrink: 0;
}

/* ---- Status pills ---- */
.status-pill {
  display: inline-block;
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.status-pill--discovered  { background: var(--bg-surface); color: var(--fg-2); border: 1px solid var(--border-default); }
.status-pill--shortlisted { background: rgba(0,174,171,0.12); color: var(--c-dark-teal); }
.status-pill--planned     { background: rgba(12,59,93,0.10); color: var(--c-navy); }
.status-pill--confirmed   { background: rgba(0,174,171,0.20); color: var(--c-dark-teal); }
.status-pill--completed   { background: rgba(169,173,0,0.15); color: #6b6e00; }
.status-pill--cancelled   { background: rgba(192,57,43,0.10); color: var(--status-danger); }
.status-pill--new         { background: rgba(61,181,230,0.15); color: #1a6e8f; }
.status-pill--reviewing   { background: rgba(117,47,140,0.12); color: var(--c-purple); }
.status-pill--nurturing   { background: rgba(12,59,93,0.10); color: var(--c-navy); }
.status-pill--bidding     { background: rgba(0,174,171,0.20); color: var(--c-dark-teal); }
.status-pill--won         { background: rgba(169,173,0,0.20); color: #6b6e00; }
.status-pill--lost        { background: rgba(192,57,43,0.10); color: var(--status-danger); }
.status-pill--passed      { background: var(--bg-surface); color: var(--fg-muted); }

/* ---- Urgency pills ---- */
.urgency-pill--imminent    { background: rgba(192,57,43,0.12); color: var(--status-danger);  font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 2px 8px; border-radius: var(--r-pill); }
.urgency-pill--near-term   { background: rgba(169,173,0,0.15); color: #6b6e00;               font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 2px 8px; border-radius: var(--r-pill); }
.urgency-pill--long-horizon{ background: rgba(0,174,171,0.12); color: var(--c-dark-teal);    font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 2px 8px; border-radius: var(--r-pill); }
.urgency-pill--unknown     { background: var(--bg-surface);   color: var(--fg-muted);        font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 2px 8px; border-radius: var(--r-pill); }

/* ---- Filter strip ---- */
.filter-strip {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-5);
}

.filter-strip__label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--fg-muted); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); }

.filter-tab {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  cursor: pointer;
  text-decoration: none;
  border-bottom: none;
  transition: all var(--dur-fast);
}

.filter-tab:hover { color: var(--c-navy); }
.filter-tab--active { background: var(--c-navy); color: var(--c-white); }

/* ---- Filter bar (dropdown style) ---- */
.filter-bar {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-end;
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.filter-bar__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.filter-bar__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}

.filter-bar__select {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-1);
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  cursor: pointer;
  font-family: inherit;
  min-width: 170px;
  min-height: 36px;
  line-height: 1.4;
  appearance: auto;
  -webkit-appearance: auto;
}

.filter-bar__select:focus {
  outline: none;
  border-color: var(--c-navy);
}

/* ---- Event / discovered event cards ---- */
.event-grid { display: grid; gap: var(--sp-4); }

.event-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.event-card__header { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.event-card__title  { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); font-family: Prompt, sans-serif; color: var(--fg-1); }
.event-card__meta   { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--fg-2); margin-bottom: var(--sp-3); }
.event-card__desc   { color: var(--fg-2); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.event-card__footer { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

/* ---- Review cards (compact variant of event-card) ---- */
.review-card {
  padding: var(--sp-3);
}

.review-card .event-card__header {
  margin-bottom: var(--sp-2);
}

.review-card .event-card__title {
  font-size: var(--fs-md);
}

.review-card .event-card__meta {
  gap: var(--sp-3);
  margin-bottom: 0;
  font-size: var(--fs-xs);
}

.review-card .event-card__desc {
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-2);
  color: var(--fg-muted);
}

.review-card .event-card__footer {
  margin-top: var(--sp-2);
}

/* ---- Review page - compact layout ---- */
.review-page .page-header {
  margin-bottom: var(--sp-4);
}

.review-page .page-header__title {
  font-size: var(--fs-xl);
}

.review-page .filter-bar {
  margin-bottom: var(--sp-3);
}

.review-page .event-grid {
  gap: var(--sp-2);
}

/* ---- View toggle (list / calendar) ---- */
.view-toggle { display: inline-flex; border: 1px solid var(--border-subtle); border-radius: var(--r-md); overflow: hidden; }
.view-toggle__btn {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 0.3rem var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--fg-2); text-decoration: none; background: none; border: none; cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.view-toggle__btn + .view-toggle__btn { border-left: 1px solid var(--border-subtle); }
.view-toggle__btn--active { background: var(--bg-raised); color: var(--fg-1); }
.view-toggle__btn:hover:not(.view-toggle__btn--active) { background: var(--bg-surface); }

/* ---- Calendar ---- */
.cal-nav { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.cal-nav__label { font-size: var(--fs-md); font-weight: var(--fw-semibold); flex: 1; text-align: center; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden;
}
.cal-grid__header {
  background: var(--bg-surface); padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--fg-2);
  text-align: center; border-bottom: 1px solid var(--border-subtle);
}
.cal-cell {
  min-height: 90px; padding: var(--sp-1) var(--sp-2); border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle); vertical-align: top; background: var(--bg-raised);
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell--out { background: var(--bg-surface); }
.cal-cell--out .cal-cell__num { color: var(--fg-muted); }
.cal-cell__num { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--fg-2); display: block; margin-bottom: 2px; }
.cal-event {
  display: block; font-size: 11px; line-height: 1.3; padding: 1px 4px; border-radius: 3px;
  margin-bottom: 2px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--c-navy); color: var(--c-white);
}
.cal-event--confirmed { background: var(--c-teal); }
.cal-event--completed { background: var(--fg-muted); }
.cal-event--cancelled { background: var(--border-subtle); color: var(--fg-2); }

/* ---- Tender cards ---- */
.tender-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.tender-card__header { display: flex; gap: var(--sp-3); align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-3); }
.tender-card__title  { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); font-family: Prompt, sans-serif; }
.tender-card__meta   { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--fg-2); margin-bottom: var(--sp-3); }
.tender-card__footer { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

/* ---- Notes log ---- */
.notes-log { display: flex; flex-direction: column; gap: var(--sp-3); }

.note-entry {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface);
  border-radius: var(--r-md);
  border-left: 3px solid var(--border-default);
}

.note-entry--status-change { border-left-color: var(--c-teal); }
.note-entry--call          { border-left-color: var(--c-sky-blue); }
.note-entry--meeting       { border-left-color: var(--c-navy); }
.note-entry--email         { border-left-color: var(--c-olive); }

.note-entry__header { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-2); }
.note-entry__type   { font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--fg-muted); }
.note-entry__author { font-size: var(--fs-xs); color: var(--fg-muted); }
.note-entry__date   { font-size: var(--fs-xs); color: var(--fg-muted); margin-left: auto; }
.note-entry__body   { font-size: var(--fs-sm); color: var(--fg-1); }

/* ---- Page header ---- */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-6); gap: var(--sp-4); }
.page-header__title { margin: 0; }
.page-header__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* ---- Urgency summary strip ---- */
.urgency-strip { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.urgency-stat  { display: flex; flex-direction: column; gap: var(--sp-1); }
.urgency-stat__count { font-size: var(--fs-2xl); font-weight: var(--fw-bold); font-family: Prompt, sans-serif; color: var(--fg-1); line-height: 1; }
.urgency-stat__label { font-size: var(--fs-xs); color: var(--fg-muted); }

/* ---- Toast ---- */
#toast-container { position: fixed; bottom: var(--sp-5); right: var(--sp-5); z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-2); }

.toast {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-md);
  animation: toast-in var(--dur-base) var(--ease-out);
}

.toast--success  { background: var(--c-navy); color: white; }
.toast--error    { background: var(--status-danger); color: white; }
.toast--info     { background: var(--c-teal); color: white; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Login ---- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-inverse); }
.login-card { width: 100%; max-width: 400px; }
.login-card__header { text-align: center; margin-bottom: var(--sp-6); }
.login-card__header .cs-lead { color: var(--fg-2); }
.login-card__note { font-size: var(--fs-xs); color: var(--fg-muted); text-align: center; margin-top: var(--sp-3); }
.ms-signin-btn { gap: var(--sp-2); justify-content: center; }
.login-form { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---- Data table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.data-table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.data-table td {
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid rgba(14,30,47,0.05);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(14,30,47,0.02); }

.data-table--sm td { padding: var(--sp-2) var(--sp-3); }
.data-table--sm th { padding: var(--sp-1) var(--sp-3); }

/* ---- Misc utilities ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-muted { color: var(--fg-muted); }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.empty-state { text-align: center; padding: var(--sp-9) var(--sp-5); color: var(--fg-muted); }
.empty-state h2 { color: var(--fg-2); }

/* ---- Side panel (attendees) ---- */
.side-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--bg-raised);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-6);
  overflow-y: auto;
  z-index: 200;
  animation: panel-in var(--dur-slow) var(--ease-out);
}

@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }

.side-panel__close { position: absolute; top: var(--sp-4); right: var(--sp-4); }

/* ---- Modal overlay ---- */
#modal-container {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,59,93,0.4);
  padding: var(--sp-5);
}

#modal-container:empty { display: none; }

.modal {
  background: var(--bg-raised);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-xl);
  animation: modal-in var(--dur-base) var(--ease-out);
}

@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 600ms linear infinite; }

/* ---- Networking dashboard ---- */

/* ---- Dashboard panels (Talent-style) ---- */
.dash-panel {
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: none;
}

.dash-panel__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid #eef1f5;
}

.dash-panel__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
}

.dash-panel__count {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--fg-muted);
}

/* Header stat mini-panel cells */
.dash-stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-4);
  border-right: 1px solid rgba(0,0,0,0.07);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
  min-width: 90px;
}
.dash-stat-mini:last-child { border-right: none; }
a.dash-stat-mini { text-decoration: none; border-bottom: none; }
a.dash-stat-mini:hover { background: rgba(12,59,93,0.03); }

.dash-stat-mini__value {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.dash-stat-mini__label {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  text-align: center;
  white-space: nowrap;
}

/* Header stat pills */
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.dash-pill:hover { opacity: 0.8; }
.dash-pill__num { font-weight: var(--fw-bold); }
.dash-pill--teal  { background: rgba(0,174,171,0.12); color: var(--c-dark-teal); }
.dash-pill--navy  { background: rgba(12,59,93,0.10);  color: var(--c-navy); }
.dash-pill--muted { background: var(--bg-surface);    color: var(--fg-2); border: 1px solid var(--border-subtle); }

/* Mom table tweaks for panels */
.dash-panel .dash-mom-table th {
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid #eef1f5;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  font-weight: var(--fw-medium);
}
.dash-panel .dash-mom-table td { padding: 10px var(--sp-4); border-bottom: 1px solid #eef1f5; }
.dash-panel .dash-mom-table tbody tr:last-child td { border-bottom: none; }
.dash-panel .dash-mom-table tbody tr:hover td { background: rgba(12,59,93,0.015); }

/* Circular count badge (matching Talent pipeline dots) */
.dash-mom-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  padding: 0;
}

.dash-mom-count--total    { background: rgba(12,59,93,0.08);  color: var(--c-navy); }
.dash-mom-zero { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dde3eb; vertical-align: middle; font-size: 0; }

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.dash-stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-stat-card--link {
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.dash-stat-card--link:hover {
  border-color: var(--c-navy);
  background: rgba(12, 59, 93, 0.02);
}

.dash-stat-card__value {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  color: var(--c-navy);
  line-height: 1;
}

.dash-stat-card__label {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.dash-stat-card--quarter {
  border-left: 3px solid var(--c-teal);
}

/* API indicator light */
.api-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.api-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.api-indicator--connected .api-indicator__dot {
  background: var(--status-success);
  box-shadow: 0 0 0 3px rgba(0,174,171,0.2);
}

.api-indicator--connected .api-indicator__label { color: var(--c-dark-teal); }

.api-indicator--disconnected .api-indicator__dot { background: var(--status-danger); }
.api-indicator--disconnected .api-indicator__label { color: var(--status-danger); }

/* Meta bar (last search) */
.dash-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--fg-muted);
}

.dash-meta-bar__text {
  font-size: var(--fs-sm);
  color: var(--fg-2);
}

/* Status card (top-right) */
.dash-status-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  font-size: var(--fs-xs);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.dash-status-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.dash-status-text {
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.dash-status-text strong {
  font-weight: var(--fw-medium);
}

/* Month-on-month table */
.dash-mom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.dash-mom-table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.dash-mom-table td {
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-1);
}

.dash-mom-table tbody tr:last-child td { border-bottom: none; }

.dash-mom-table__row--current td { background: rgba(12,59,93,0.03); }

.dash-current-pill {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: rgba(12,59,93,0.10);
  color: var(--c-navy);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-left: var(--sp-2);
}

.dash-mom-count--discovered { background: rgba(0,174,171,0.15); color: var(--c-dark-teal); }
.dash-mom-count--planner    { background: rgba(12,59,93,0.10);  color: var(--c-navy); }

/* ---- Source preview panel ---- */
.preview-panel {
  position: fixed;
  top: 5%;
  right: 0;
  width: 80%;
  height: 90%;
  background: var(--bg-1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.25s var(--ease-out);
}

.preview-panel--open { transform: translateX(0); }

.preview-panel__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.preview-panel__frame {
  flex: 1;
  border: none;
  border-radius: 0 0 0 var(--r-lg);
  width: 100%;
}

.preview-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 199;
}

.preview-backdrop--open { display: block; }

.security-lozenge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.security-lozenge:hover { opacity: 0.8; }
.security-lozenge--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.security-lozenge--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.security-lozenge--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.activity-table th { white-space: nowrap; }
.activity-group-header {
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14,30,47,0.03);
}
.activity-period {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  text-align: right;
  font-weight: var(--fw-regular);
}
.activity-cell { text-align: right; }
.data-table th.activity-cell { text-align: right; }
.activity-cell--month {
  font-weight: var(--fw-semibold);
  border-right: 1px solid var(--border-subtle);
}
.activity-cache-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.loading-state {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  padding: var(--sp-6) 0;
}

.activity-period-toggle {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.activity-period-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--fg-muted);
}
.activity-period-btn--active {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: #fff;
}
.activity-period-btn:hover:not(.activity-period-btn--active) {
  background: rgba(14,30,47,0.06);
  color: var(--fg-1);
}

.role-select {
  font-size: var(--fs-sm);
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  color: var(--fg-1);
  cursor: pointer;
}

.activity-access-note {
  margin-top: var(--sp-8);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.activity-mix-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--sp-1);
  width: 100px;
  background: rgba(14,30,47,0.06);
  gap: 1px;
}
.activity-mix-bar--wide { width: 100%; margin-top: 0; }
.activity-mix-bar--empty { background: rgba(14,30,47,0.06); }
.activity-mix-bar > div { height: 100%; min-width: 1px; }
.activity-mix-bar__calls    { background: var(--c-navy); }
.activity-mix-bar__emails   { background: var(--c-teal); }
.activity-mix-bar__meetings { background: var(--c-purple); }

.trend { font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: nowrap; }
.trend--up   { color: var(--c-teal); }
.trend--down { color: var(--status-danger); }
.trend--flat { color: var(--fg-muted); }

/* ---- Activity insights panel ---- */
.activity-insights {
  background: rgba(14,30,47,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.activity-insights__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}
.activity-insights__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--fg-1);
}

/* ---- Activity cards grid ---- */
.activity-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.activity-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.activity-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
}
.activity-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  line-height: 1.3;
  color: var(--fg-1);
}
.activity-card__score-block {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}
.activity-card__score {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.activity-card__score-label {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  font-weight: var(--fw-medium);
}
.activity-card__trend {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-align: right;
  margin-top: calc(-1 * var(--sp-2));
}

/* ---- Activity chips ---- */
.activity-chips {
  display: flex;
  gap: var(--sp-2);
}
.activity-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-2) var(--sp-1);
  border-radius: var(--r-md);
  background: rgba(14,30,47,0.04);
  gap: 2px;
}
.activity-chip__label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}
.activity-chip__value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.activity-chip--calls    .activity-chip__value { color: var(--c-navy); }
.activity-chip--emails   .activity-chip__value { color: var(--c-teal); }
.activity-chip--meetings .activity-chip__value { color: var(--c-purple); }

/* ---- Card detail expand ---- */
.activity-card__detail {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-3);
  margin-top: auto;
}
.activity-card__detail summary {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  user-select: none;
}
.activity-card__detail summary::-webkit-details-marker { display: none; }
.activity-card__detail summary::before {
  content: '▶';
  font-size: 9px;
  transition: transform 150ms ease;
  display: inline-block;
}
.activity-card__detail[open] summary::before { transform: rotate(90deg); }
.activity-card__detail-content { margin-top: var(--sp-3); }

/* ---- Breakdown table inside card ---- */
.activity-breakdown .data-table { font-size: var(--fs-xs); }
.activity-breakdown .data-table th,
.activity-breakdown .data-table td { padding: var(--sp-1) var(--sp-2); }
.activity-breakdown .data-table th.activity-cell { text-align: right; }

/* ---- Loading state small variant ---- */
.loading-state--sm { padding: var(--sp-2) 0; font-size: var(--fs-xs); }

/* ---- LinkedIn Profile Builder ---- */
.linkedin-builder { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 780px; }
.linkedin-form { display: flex; flex-direction: column; gap: var(--sp-5); }

/* Phase cards */
.li-phase { overflow: visible; }
.li-phase__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
}
.li-phase__num {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-teal);
}
.li-phase__title { font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--fg-1); }
.li-phase__desc { font-size: var(--fs-xs); color: var(--fg-muted); flex-basis: 100%; margin-top: 0; }
.li-phase__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-5); }

/* Questions */
.li-question { display: flex; flex-direction: column; gap: var(--sp-2); }
.li-question__label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--fg-1); }
.li-question__hint { font-size: var(--fs-xs); color: var(--fg-muted); margin: 0; }
.li-hint { font-size: var(--fs-xs); color: var(--fg-muted); font-weight: var(--fw-normal); }
.li-required { color: var(--status-danger); }
.li-toggle-row { display: flex; align-items: center; gap: var(--sp-3); }

/* Pill selectors (radio + checkbox) */
.li-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.li-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.li-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.li-pill:hover { border-color: var(--c-teal); color: var(--fg-1); }
.li-pill--selected,
.li-pill:has(input:checked) {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: white;
}

/* Yes/No toggles */
.linkedin-toggle-group { display: flex; gap: var(--sp-1); }
.linkedin-toggle {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  color: var(--fg-muted);
}
.linkedin-toggle--yes.linkedin-toggle--selected { background: var(--c-teal); border-color: var(--c-teal); color: white; }
.linkedin-toggle--no.linkedin-toggle--selected  { background: var(--c-red, #e05252); border-color: var(--c-red, #e05252); color: white; }

/* Submit row */
.li-submit { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-2) 0; }
.li-submit__note { font-size: var(--fs-xs); color: var(--fg-muted); margin: 0; }
.btn--lg { padding: var(--sp-3) var(--sp-6); font-size: var(--fs-base); }

/* ---- LinkedIn results ---- */
.linkedin-results { display: flex; flex-direction: column; gap: var(--sp-6); }

.linkedin-results__section { display: flex; flex-direction: column; gap: var(--sp-3); }

.linkedin-results__heading { font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--fg-1); margin: 0; }

.linkedin-results__sub { font-size: var(--fs-xs); color: var(--fg-muted); margin: 0; }

.linkedin-result-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.linkedin-result-card__body {
  font-size: var(--fs-sm);
  color: var(--fg-1);
  line-height: var(--lh-normal);
  white-space: pre-wrap;
}

.linkedin-result-card__body--about {
  font-size: var(--fs-sm);
  white-space: pre-wrap;
}

.linkedin-result-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-3);
}

.char-count {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.char-count--warn { color: var(--status-warning, #b45309); }
.char-count--over { color: var(--status-danger); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.copy-btn:hover { background: var(--bg-2); color: var(--fg-1); }
.copy-btn:disabled { opacity: 0.6; cursor: default; }

/* ---- LinkedIn Posts ---- */
.posts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

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

.posts-panel {}

.posts-empty-state {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  text-align: center;
  align-items: center;
}

.posts-empty-state__text { font-size: var(--fs-sm); color: var(--fg-2); max-width: 360px; margin: 0; }

.posts-topics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  gap: var(--sp-3);
}

.posts-topics-intro { font-size: var(--fs-sm); color: var(--fg-2); margin: 0; }

.posts-topic-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.posts-topic-card {
  background: var(--bg-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.posts-topic-card:hover { border-color: var(--c-teal); }

.posts-topic-card__body { padding: var(--sp-4); }

.posts-topic-card__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
  margin: 0 0 var(--sp-2);
}

.posts-topic-card__angle {
  font-size: var(--fs-xs);
  color: var(--fg-2);
  margin: 0 0 var(--sp-1);
}

.posts-topic-card__why {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  margin: 0;
  font-style: italic;
}

.posts-topic-card__footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-1);
}

/* ---- Post draft panel ---- */
.posts-draft {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.posts-draft__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.posts-draft__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
  margin: 0;
}

.posts-draft__tabs {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.posts-draft__variant--hidden { display: none; }

.posts-draft__post-text {
  white-space: pre-wrap;
}

.posts-draft__hashtags, .posts-draft__tips {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.posts-draft__section-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin: 0;
}

.posts-draft__hashtag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

.posts-hashtag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-2);
  background: var(--bg-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.posts-draft__tips-text {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

.copy-btn--sm {
  padding: 2px var(--sp-2);
  font-size: 11px;
}

/* ---- Posts context modal ---- */
.posts-context-modal {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: 0;
  max-width: 540px;
  width: calc(100% - var(--sp-8));
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.posts-context-modal::backdrop { background: rgba(0,0,0,0.35); }

.posts-context-modal__inner { display: flex; flex-direction: column; }

.posts-context-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
}

.posts-context-modal__title { font-size: var(--fs-base); font-weight: var(--fw-semibold); margin: 0; }

.posts-context-modal__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--fg-2);
}

.posts-context-modal__body h3 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
  margin: var(--sp-2) 0 0;
}

.posts-context-modal__body p, .posts-context-modal__body ul { margin: 0; }
.posts-context-modal__body ul { padding-left: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-1); }

/* ---- Posts focus bar ---- */
.profiles-disclaimer {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  margin-bottom: var(--sp-4);
}

.posts-voice-indicator {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.posts-voice-indicator svg {
  flex-shrink: 0;
  color: var(--color-teal-500);
}
.posts-voice-indicator--none svg {
  color: var(--text-muted);
}

.posts-focus-bar {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-5);
}

.posts-focus-input {
  flex: 1;
  max-width: 540px;
}

/* ---- LinkedIn Voice page ---- */
.voice-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: 680px;
}

.voice-discover__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
  margin: 0 0 var(--sp-2);
}

.voice-discover__desc {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

.voice-discover__header {
  padding: var(--sp-5) var(--sp-5) 0;
  margin-bottom: var(--sp-4);
}

.voice-discover__steps {
  padding: 0 var(--sp-5) var(--sp-4) calc(var(--sp-5) + 1.25em);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--fg-2);
}

.voice-prompt-block {
  margin: 0 var(--sp-5) var(--sp-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  overflow: hidden;
}

.voice-prompt-block__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  padding: var(--sp-3) var(--sp-4) 0;
  margin: 0;
}

.voice-prompt-block__text {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: 1.6;
}

.voice-prompt-block__footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-1);
}

.voice-char-row {
  margin-top: var(--sp-2);
  text-align: right;
}

.alert--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-card);
  font-size: var(--fs-sm);
}

.alert--info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-card);
  font-size: var(--fs-sm);
}

/* ---- Post tone tabs ---- */
.post-tab {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-0);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.post-tab:hover { border-color: var(--c-teal); color: var(--c-teal); }
.post-tab--active { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }

/* ---- Home: what's new ---- */
.home-whats-new {
  margin-bottom: var(--sp-7);
  max-width: 52ch;
  padding: var(--sp-4) var(--sp-5);
}
.home-whats-new__header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.home-whats-new__header:first-child {
  margin-top: 0;
}
.home-whats-new__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
}
.home-whats-new__title svg {
  color: var(--color-teal-500);
  flex-shrink: 0;
}
.home-whats-new__date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.home-whats-new__list {
  margin: 0;
  padding-left: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.home-whats-new__list li {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Home dashboard ---- */
.home-section {
  margin-bottom: var(--sp-7);
}

.home-section__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin: 0 0 var(--sp-3);
}

.home-section__empty {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  margin: 0;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-3);
}

.home-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
}

.home-quicklink {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-1);
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.home-quicklink:hover {
  border-color: var(--c-teal);
  color: var(--c-dark-teal);
}

/* ---- kbd ---- */
kbd {
  display: inline-block;
  padding: 1px 5px;
  font-family: var(--cs-font-mono, ui-monospace, monospace);
  font-size: 0.75em;
  line-height: 1.6;
  color: var(--cs-fg-1, #0c3b5d);
  background: var(--cs-bg-surface, #f4f7fc);
  border: 1px solid var(--cs-border-default, #b9c2d3);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--cs-border-default, #b9c2d3);
  white-space: nowrap;
}

/* DealRoom addition: section subheader rows inside data-table (not in the
   upstream conosco-styles/app.css copy - keep in sync manually if that file
   is ever refreshed from Expand). */
.data-table__group-row td {
  background: var(--bg-surface, #f5f6f8);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow, 0.04em);
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-1);
}
