/* Rooftop+ page styles rebuilt after stylesheet regression. */
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}.metric{position:relative;overflow:hidden;min-height:90px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:none}.metric:after{content:"";position:absolute;inset:auto 0 0;display:block;height:4px;background:var(--blue)}.metric-label{display:block;color:var(--muted);font-size:12px;font-weight:650}.metric strong{display:block;margin-top:9px;font-size:31px;line-height:1}.summary-grid .metric:nth-child(1):after{background:var(--green)}.summary-grid .metric:nth-child(2):after{background:var(--blue)}.summary-grid .metric:nth-child(3):after{background:var(--red)}.summary-grid .metric:nth-child(4):after{background:var(--violet)}
.workspace-panel { display: none; margin: 0 0 22px; animation: panelIn 220ms ease both; }

/* Per-view panel visibility */
body[data-workspace-view=my_work] #myWorkPanel,
body[data-workspace-view=admin]   #adminPanel    { display: grid; }

body[data-workspace-view=upcoming] #upcomingPanel,
body[data-workspace-view=wins]     #winsPanel,
body[data-workspace-view=docs]     #docsPanel,
body[data-workspace-view=settings] #settingsPanel { display: block; }body[data-workspace-view=my_work] .focus-panel,body[data-workspace-view=my_work] .toolbar,body[data-workspace-view=my_work] .achievement-strip,body[data-workspace-view=my_work] .board,body[data-workspace-view=my_work] .table-section,body[data-workspace-view=admin] .summary-grid,body[data-workspace-view=admin] .focus-panel,body[data-workspace-view=admin] .toolbar,body[data-workspace-view=admin] .achievement-strip,body[data-workspace-view=admin] .board,body[data-workspace-view=admin] .table-section,body[data-workspace-view=admin] #myWorkPanel,body[data-workspace-view=team_board] .focus-panel,body[data-workspace-view=team_board] .board,body[data-workspace-view=team_board] .achievement-strip,body[data-workspace-view=team_board] #myWorkPanel,body[data-workspace-view=team_board] #adminPanel,body[data-workspace-view=team_board] #upcomingPanel,body[data-workspace-view=team_board] #docsPanel,body[data-workspace-view=team_board] #settingsPanel,body[data-workspace-view=upcoming] .summary-grid,body[data-workspace-view=upcoming] .focus-panel,body[data-workspace-view=upcoming] .toolbar,body[data-workspace-view=upcoming] .achievement-strip,body[data-workspace-view=upcoming] .board,body[data-workspace-view=upcoming] .table-section,body[data-workspace-view=upcoming] #myWorkPanel,body[data-workspace-view=docs] .summary-grid,body[data-workspace-view=docs] .focus-panel,body[data-workspace-view=docs] .toolbar,body[data-workspace-view=docs] .achievement-strip,body[data-workspace-view=docs] .board,body[data-workspace-view=docs] .table-section,body[data-workspace-view=docs] #myWorkPanel,body[data-workspace-view=settings] .summary-grid,body[data-workspace-view=settings] .focus-panel,body[data-workspace-view=settings] .toolbar,body[data-workspace-view=settings] .achievement-strip,body[data-workspace-view=settings] .board,body[data-workspace-view=settings] .table-section,body[data-workspace-view=settings] #myWorkPanel{display:none!important}body[data-workspace-view=team_board] .toolbar,body[data-workspace-view=team_board] .table-section{display:block}
body[data-workspace-view=my_work] .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}body[data-workspace-view=my_work] .summary-grid .metric:nth-child(3){display:none!important}body[data-workspace-view=my_work] .summary-grid .metric:nth-child(4){display:block!important}body[data-workspace-view=my_work] .summary-grid .metric:nth-child(4) .metric-label{font-size:0}body[data-workspace-view=my_work] .summary-grid .metric:nth-child(4) .metric-label:after{content:"Completed this month";color:var(--muted);font-size:12px;font-weight:650}
#myWorkPanel{grid-template-columns:minmax(0,680px) minmax(280px,340px);gap:32px;align-items:start}body[data-workspace-view=admin] #adminPanel{grid-template-columns:minmax(320px,420px) minmax(420px,1fr);gap:32px;align-items:start}.builder-panel,.work-card,.watch-card,.automation-card,.resource-card,.settings-section,.task{border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:none}.builder-panel{padding:24px}.builder-detail-panel{min-width:300px}.builder-detail-panel.is-empty{display:none}.builder-queue-panel .count-pill{display:none}.my-work-grid,.watchlist-grid,.resource-hub-grid,.admin-action-list,.pipeline-snapshot,.resource-rule-list,.resource-mini-grid,.settings-stack,.team-table,.task-list{display:grid;gap:12px}.my-work-grid{grid-template-columns:minmax(300px,420px);gap:20px}.watchlist-grid{grid-template-columns:minmax(0,1fr)}.resource-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-card-wide{grid-column:1/-1}.work-card,.watch-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px}.resource-card,.settings-section,.task{padding:18px 20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.section-heading h2,.settings-page-header h2{margin:0}.section-note,.panel-subtitle,.work-card p,.watch-card p,.automation-card p,.resource-card p,.settings-section-head p,.settings-note,.settings-row span,.integration-row span,.team-table-row span{color:var(--muted);font-size:13px;font-weight:650;line-height:1.45}.work-card h3,.watch-card h3,.resource-card h3,.automation-card h3{margin:0 0 8px;font-size:17px;line-height:1.22}
.count-pill,.status,.settings-status,.resource-status,.signal{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 9px;border-radius:999px;background:#2b2b2b;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}.button-primary-action{border-color:var(--action-blue,var(--blue));background:var(--action-blue,var(--blue));color:#fff}.button-secondary-action{border-color:rgba(255,255,255,.12);background:#1b1b1b;color:var(--text)}.button-quiet{border-color:rgba(255,255,255,.08);background:transparent;color:var(--muted)}.status-needs_seo,.status-needs_build{background:var(--amber-soft);color:var(--amber)}.status-seo_done,.status-page_built,.signal-shipped{background:var(--blue-soft);color:var(--blue)}.status-live,.signal-on_lot,.aeo-done{background:var(--green-soft);color:var(--green)}.status-needs_review{background:var(--red-soft);color:var(--red)}.signal-upcoming,.aeo-in_progress{background:var(--violet-soft);color:var(--violet)}.aeo-not_started,.aeo-not_needed,.status-ignored,.status-snoozed{background:rgba(255,255,255,.06);color:var(--muted)}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.toolbar label{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px;font-weight:850}.achievement-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:-4px 0 20px}.achievement{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.achievement-icon,.owner-avatar,.automation-icon,.settings-avatar,.settings-icon,.integration-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.achievement-icon,.settings-avatar,.settings-icon,.integration-icon{width:38px;height:38px;border-radius:999px;background:#2f72d6;color:#fff;font-size:13px;font-weight:950}.owner-avatar{width:30px;height:30px;border-radius:999px;background:#303030;color:var(--ink);font-size:11px;font-weight:900}.brand-badge,.work-owner{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:var(--accent-soft,var(--blue-soft));color:var(--accent-ink,var(--blue));font-size:12px;font-weight:900}.work-card-meta,.watch-card-meta,.work-card-topline,.work-card-footer,.resource-actions,.tag-stack,.focus-actions,.task-state,.task-actions,.task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.task-meta{margin-top:9px;color:var(--muted);font-size:13px;font-weight:700}.queue-reason{margin:12px 0 14px;color:var(--muted);font-size:12px;font-weight:800;line-height:1.35}
.focus-panel{display:none;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 22px;padding:20px;border:1px solid var(--accent-border,var(--line));border-radius:8px;background:var(--panel)}body[data-view=focus] .focus-panel{display:grid}.focus-meta{margin:8px 0 0;color:var(--muted);font-weight:700}.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.stage{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:850;white-space:nowrap}.stage span,.dealer-dot{width:9px;height:9px;border-radius:999px;background:var(--muted)}.stage-blue span{background:var(--blue)}.stage-amber span{background:var(--amber)}.stage-green span{background:var(--green)}.stage-red span{background:var(--red)}.stage-gray span{background:#5e5e5e}
.admin-row,.pipeline-snapshot article,.integration-row,.team-table-row,.team-table-head{display:grid;align-items:center;gap:14px;min-height:54px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#1b1b1b}.admin-row{grid-template-columns:minmax(0,1fr) auto}.pipeline-snapshot article{grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) auto}.pipeline-snapshot em{color:var(--muted);font-size:12px;font-style:normal;font-weight:800}.admin-permission-note{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.permission-grid,.quiet-hours-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.permission-grid div,.resource-rule-list div,.resource-mini-grid span{padding:12px;border:1px solid var(--line);border-radius:8px;background:#1b1b1b}.resource-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0}.resource-card-header{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.settings-shell{width:100%;max-width:1100px;margin:0 auto}.settings-page-header{margin-bottom:14px}.settings-section-head{margin-bottom:10px}.account-summary{display:flex;align-items:center;gap:12px;margin-bottom:2px;padding-bottom:12px;border-bottom:1px solid var(--line)}.settings-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,auto);align-items:center;gap:14px;min-height:48px;padding:10px 0;border-bottom:1px solid var(--line)}.settings-section .settings-row:last-child{border-bottom:0}.settings-control,.quiet-hours-grid input,.quiet-hours-grid select{width:min(260px,100%);min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#1b1b1b;color:var(--text);font:inherit;font-size:13px;font-weight:750}.role-badge-list{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.integration-row{grid-template-columns:minmax(0,1fr) auto auto}.integration-identity{display:flex;align-items:center;gap:12px;min-width:0}.team-table{gap:8px}.team-table-head,.team-table-row{grid-template-columns:minmax(120px,1fr) minmax(180px,1.2fr) minmax(120px,1fr) auto auto}.team-table-head{min-height:28px;padding-top:0;color:var(--muted);font-size:11px;font-weight:850;text-transform:uppercase;background:transparent;border-color:transparent}
.table-section{margin-top:22px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--panel)}table{width:100%;min-width:900px;border-collapse:collapse}th,td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{position:sticky;top:0;z-index:1;background:#1b1b1b;color:var(--muted);font-size:12px;text-transform:uppercase}tr:last-child td{border-bottom:0}.table-dealer{display:inline-flex;align-items:center;gap:8px}.inventory-cell,.table-dealer{color:var(--muted);font-size:13px;font-weight:800}.empty{padding:18px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);background:rgba(var(--panel-rgb),.6)}
@media(max-width:980px){.summary-grid,body[data-workspace-view=my_work] .summary-grid,.board,#myWorkPanel,body[data-workspace-view=admin] #adminPanel,.resource-hub-grid,.permission-grid,.quiet-hours-grid,.integration-row,.team-table-head,.team-table-row{grid-template-columns:1fr!important}.integration-action,.settings-control,.quiet-hours-grid input,.quiet-hours-grid select{width:100%}.toolbar,.resource-actions,.focus-actions,.tag-stack{align-items:stretch}}

/* Visual restore: bring the page layer back toward the original Rooftop+ dashboard polish. */
.builder-panel,
.work-card,
.watch-card,
.automation-card,
.resource-card,
.settings-section,
.task,
.table-wrap {
  border-radius: 10px;
}

.builder-panel {
  border-radius: 12px;
}

.work-card h3,
.watch-card h3,
.resource-card h3,
.automation-card h3 {
  font-weight: 650;
}

.section-note,
.panel-subtitle,
.work-card p,
.watch-card p,
.automation-card p,
.resource-card p,
.settings-section-head p,
.settings-note,
.settings-row span,
.integration-row span,
.team-table-row span {
  color: var(--muted);
  font-weight: 500;
}

.queue-reason,
.task-meta,
.inventory-cell,
.table-dealer {
  font-weight: 700;
}

.button-primary-action {
  border-color: var(--action-blue, var(--blue));
  background: var(--action-blue, var(--blue));
  color: #fff;
}

.button-secondary-action {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1b1b1b;
  color: var(--ink);
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
}

.button-primary-action:hover,
.button-secondary-action:hover,
.button-quiet:hover {
  border-color: rgba(106, 168, 255, 0.42);
}


/* My Work premium polish */
.metric {
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
}

.metric:after {
  display: none !important;
}

.summary-grid .metric:nth-child(1) { border-left-color: var(--green); }
.summary-grid .metric:nth-child(2) { border-left-color: var(--blue); }
.summary-grid .metric:nth-child(3) { border-left-color: var(--red); }
.summary-grid .metric:nth-child(4) { border-left-color: var(--violet); }

.metric strong {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}

.metric-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[data-workspace-view="my_work"] .builder-queue-panel .section-heading h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.025em;
}

body[data-workspace-view="my_work"] .builder-detail-panel h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* Light theme: fix dark-hardcoded integration and team table rows */
body[data-theme="light"] .integration-row,
body[data-theme="light"] .team-table-row,
body[data-theme="light"] .team-table-head {
  background: #fffcf8 !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

body[data-theme="light"] .team-table-head {
  background: transparent !important;
  color: var(--muted) !important;
}

body[data-theme="light"] .integration-identity strong,
body[data-theme="light"] .team-table-row strong {
  color: var(--ink) !important;
}

body[data-theme="light"] .integration-identity span,
body[data-theme="light"] .team-table-row span {
  color: var(--muted) !important;
}

/* Light theme: status pills, badges, count pills */
body[data-theme="light"] :is(.count-pill, .status, .settings-status, .resource-status, .signal) {
  background: #ede8e1 !important;
  color: var(--muted) !important;
}

body[data-theme="light"] .status-needs_seo,
body[data-theme="light"] .status-needs_build {
  background: var(--amber-soft) !important;
  color: var(--amber) !important;
}

body[data-theme="light"] .status-seo_done,
body[data-theme="light"] .status-page_built,
body[data-theme="light"] .signal-shipped {
  background: var(--blue-soft) !important;
  color: var(--blue) !important;
}

body[data-theme="light"] .status-live,
body[data-theme="light"] .signal-on_lot,
body[data-theme="light"] .aeo-done {
  background: var(--green-soft) !important;
  color: var(--green) !important;
}

body[data-theme="light"] .status-needs_review {
  background: var(--red-soft) !important;
  color: var(--red) !important;
}

body[data-theme="light"] .signal-upcoming,
body[data-theme="light"] .aeo-in_progress {
  background: var(--violet-soft) !important;
  color: var(--violet) !important;
}

body[data-theme="light"] :is(.aeo-not_started, .aeo-not_needed, .status-ignored, .status-snoozed) {
  background: #ede8e1 !important;
  color: var(--muted) !important;
}

/* Light theme: table headers */
body[data-theme="light"] th {
  background: #f2ede7 !important;
  color: var(--muted) !important;
  border-bottom-color: var(--line) !important;
}

/* Light theme: owner avatar */
body[data-theme="light"] .owner-avatar {
  background: #d9d0c8 !important;
  color: var(--ink) !important;
}

/* Light theme: permission grid, resource rule list, resource mini grid */
body[data-theme="light"] :is(.permission-grid div, .resource-rule-list div, .resource-mini-grid span) {
  background: #f2ede7 !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

/* Light theme: settings controls */
body[data-theme="light"] :is(.settings-control, .quiet-hours-grid input, .quiet-hours-grid select) {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

/* ── Admin page spacing pass ────────────────────────────────────────────────
   The minified defaults have padding: 12px 14px / gap: 12px which reads
   cramped. Bumped across all three zones: action rows, snapshot rows,
   permission grid.                                                          */

/* Action rows (Controls panel) */
.admin-action-list {
  gap: 10px;
}

.admin-row {
  min-height: 64px;
  padding: 16px 20px;
  gap: 18px;
}

.admin-row strong {
  font-size: 14px;
  line-height: 1.3;
}

.admin-row p,
.admin-row span:not([class]) {
  font-size: 13px;
  line-height: 1.45;
  margin: 3px 0 0;
}

/* Team Snapshot rows */
.pipeline-snapshot {
  gap: 10px;
}

.pipeline-snapshot article {
  min-height: 60px;
  padding: 16px 20px;
  gap: 18px;
}

.pipeline-snapshot strong {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.pipeline-snapshot em {
  font-size: 13px;
}

/* Permission grid cells */
.permission-grid {
  gap: 12px;
  margin-top: 6px;
}

.permission-grid div {
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
}

/* Admin panel column gap */
body[data-workspace-view="admin"] #adminPanel {
  gap: 28px;
}

/* "What admin sees" section heading */
.admin-permission-note {
  margin-top: 22px;
  padding-top: 22px;
}

.admin-permission-note h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
}

/* Permission grid: break prefix label onto its own line above the bold content */
.permission-grid div strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.35;
}

.permission-grid div > span,
.permission-grid div > :first-child:not(strong) {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Team Pipeline page polish
   --------------------------------------------------------------- */

/* Fix ACTION column — use fixed layout with explicit column widths */
body[data-workspace-view="team_board"] .table-wrap table {
  table-layout: fixed;
  min-width: 900px;
}

body[data-workspace-view="team_board"] th:nth-child(1),
body[data-workspace-view="team_board"] td:nth-child(1) { width: 20%; }

body[data-workspace-view="team_board"] th:nth-child(2),
body[data-workspace-view="team_board"] td:nth-child(2) { width: 26%; }

body[data-workspace-view="team_board"] th:nth-child(3),
body[data-workspace-view="team_board"] td:nth-child(3) { width: 20%; }

body[data-workspace-view="team_board"] th:nth-child(4),
body[data-workspace-view="team_board"] td:nth-child(4) { width: 14%; }

body[data-workspace-view="team_board"] th:nth-child(5),
body[data-workspace-view="team_board"] td:nth-child(5) { width: 20%; }

body[data-workspace-view="team_board"] .row-actions .button {
  white-space: nowrap;
  width: 100%;
}

/* Stat card zero-state: mute the number so "0" reads as neutral */
body[data-workspace-view="team_board"] .metric.is-zero strong {
  color: var(--muted);
  font-weight: 700;
}

/* Metric cards on team pipeline: left-border accent variant */
body[data-workspace-view="team_board"] .metric {
  border-left-width: 3px;
}

/* Filter bar: single horizontal row, constrained select widths */
body[data-workspace-view="team_board"] .toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  padding: 14px 18px;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
}

body[data-workspace-view="team_board"] .toolbar label {
  display: flex !important;
  flex-direction: row !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body[data-workspace-view="team_board"] .toolbar select {
  flex: 0 0 auto;
  max-width: 180px;
  width: auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

body[data-workspace-view="team_board"] #clearFiltersButton {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
}

/* ---------------------------------------------------------------
   Upcoming Models page
   --------------------------------------------------------------- */

/* Awareness note — sets expectations before the list */
.watch-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

/* Brand badge + year label row at top of each card */
.watch-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.watch-year-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Resources page polish
   --------------------------------------------------------------- */

/* Automation icon → small pill badge */
.automation-icon {
  width: auto;
  height: auto;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* Per-card accent colors via nth-child (DOC, INV, OEM, PING, AEO) */
.resource-hub-grid article:nth-child(1) .automation-icon { background: var(--blue-soft);   color: var(--blue); }
.resource-hub-grid article:nth-child(2) .automation-icon { background: var(--green-soft);  color: var(--green); }
.resource-hub-grid article:nth-child(3) .automation-icon { background: var(--violet-soft); color: var(--violet); }
.resource-hub-grid article:nth-child(4) .automation-icon { background: var(--amber-soft);  color: var(--amber); }
.resource-hub-grid article:nth-child(5) .automation-icon { background: var(--soft-line, rgba(0,0,0,.06)); color: var(--muted); }

/* Resource rule rows: label on top, value below */
.resource-rule-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}

.resource-rule-list div > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.resource-rule-list div > strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

/* Mini stat boxes: slightly more padding, consistent with rule rows */
.resource-mini-grid span {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* ---------------------------------------------------------------
   Settings page polish
   --------------------------------------------------------------- */

/* Integration rows: title on its own line, description below */
.integration-identity div strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}

.integration-identity div span {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.4;
}

/* Access role badges → pill style */
.role-badge-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

/* Integration icons → small pill badge (matches Resources page automation-icon) */
.integration-icon {
  width: auto;
  height: auto;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------
   App loading veil — Rooftop+ logo animation
   --------------------------------------------------------------- */
@keyframes veil-logo-in {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes veil-plus-pop {
  0%   { opacity: 0; transform: scale(.5) rotate(-12deg); }
  70%  { transform: scale(1.15) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes veil-dot-pulse {
  0%, 80%, 100% { opacity: .25; transform: scale(.7); }
  40%            { opacity: 1;   transform: scale(1); }
}

#app-veil {
  position: fixed;
  inset: 0;
  background: var(--bg, #f7f4f0);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 260ms ease;
}

#app-veil.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.veil-logo {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink, #1a1917);
  animation: veil-logo-in 380ms cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.veil-plus {
  color: #2f72d6;
  display: inline-block;
  animation: veil-plus-pop 480ms cubic-bezier(0.34, 1.4, 0.64, 1) 180ms both;
}

.veil-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.veil-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted, #a09488);
  animation: veil-dot-pulse 1.2s ease-in-out infinite;
}

.veil-dot:nth-child(1) { animation-delay: 0s; }
.veil-dot:nth-child(2) { animation-delay: .2s; }
.veil-dot:nth-child(3) { animation-delay: .4s; }

/* Staggered fade-up after data loads */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body[data-loaded] .summary-grid      { animation: fadeUp 260ms ease 0ms   both; }
body[data-loaded] .toolbar           { animation: fadeUp 260ms ease 60ms  both; }
body[data-loaded] .achievement-strip { animation: fadeUp 260ms ease 60ms  both; }
body[data-loaded] .board             { animation: fadeUp 260ms ease 100ms both; }
body[data-loaded] .table-section     { animation: fadeUp 260ms ease 140ms both; }
body[data-loaded] #myWorkPanel       { animation: fadeUp 260ms ease 0ms   both; }
body[data-loaded] #adminPanel        { animation: fadeUp 260ms ease 0ms   both; }
body[data-loaded] #upcomingPanel     { animation: fadeUp 260ms ease 0ms   both; }
body[data-loaded] #docsPanel         { animation: fadeUp 260ms ease 0ms   both; }
body[data-loaded] #settingsPanel     { animation: fadeUp 260ms ease 0ms   both; }

/* ---------------------------------------------------------------
   Notification toggle switches (Settings page)
   --------------------------------------------------------------- */
.notif-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-line, #e5e1da);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.notif-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-toggle.is-active {
  background: var(--blue, #2563eb);
  border-color: var(--blue, #2563eb);
}

.notif-toggle.is-active .notif-toggle-thumb {
  transform: translateX(18px);
}

.notif-toggle:focus-visible {
  outline: 2px solid var(--blue, #2563eb);
  outline-offset: 2px;
}

body[data-theme="light"] .notif-toggle {
  background: #d8d4cd;
  border-color: #c8c3bb;
}

body[data-theme="light"] .notif-toggle.is-active {
  background: var(--blue, #2563eb);
  border-color: var(--blue, #2563eb);
}

/* ---------------------------------------------------------------
   Quiet-hour schedule spacing
   --------------------------------------------------------------- */
.quiet-hours-title {
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quiet-hours-grid {
  gap: 14px !important;
  row-gap: 12px !important;
}

.quiet-hours-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.quiet-hours-grid input,
.quiet-hours-grid select {
  margin-top: 0;
}

/* ---------------------------------------------------------------
   Team table — member avatars, column fix, vacant row, status pill
   --------------------------------------------------------------- */

/* Column proportions: tighter member, wider email, compact role/status/action */
.team-table-head,
.team-table-row {
  grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 1.4fr) minmax(100px, 1fr) 110px 130px !important;
}

/* Member cell: avatar + name side by side */
.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}

.member-cell strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avatar circle */
.member-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue-soft, rgba(37,99,235,.12));
  color: var(--blue, #2563eb);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.member-avatar--vacant {
  background: var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

/* Vacant row — dimmed appearance */
.team-table-row--vacant {
  opacity: 0.72;
}

.team-table-row--vacant:hover {
  opacity: 1;
}

.vacant-label {
  font-size: 13px;
  font-weight: 650;
  font-style: italic;
  color: var(--muted) !important;
}

.vacant-dim {
  color: var(--muted) !important;
}

/* Active status — green pill */
.status-active {
  background: var(--green-soft, rgba(34,197,94,.12)) !important;
  color: var(--green, #22c55e) !important;
}

/* Manage button — outline style */
.button-outline-action {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-outline-action:hover {
  background: var(--soft-line, rgba(255,255,255,.06));
}

/* Light theme overrides */
body[data-theme="light"] .member-avatar {
  background: rgba(37,99,235,.1);
  color: var(--blue, #2563eb);
}

body[data-theme="light"] .member-avatar--vacant {
  background: #e5e1da;
  color: #9c9790;
}

body[data-theme="light"] .button-outline-action {
  border-color: var(--line);
  color: var(--text);
}

body[data-theme="light"] .button-outline-action:hover {
  background: rgba(0,0,0,.04);
}

/* Team table head — more interior padding */
.team-table-head {
  padding: 10px 20px !important;
  min-height: 38px !important;
}

.team-table-row {
  padding: 14px 20px !important;
}

/* ---------------------------------------------------------------
   Resources page — breathing room pass
   --------------------------------------------------------------- */

/* More space between cards */
.resource-hub-grid {
  gap: 20px !important;
}

/* Card itself: more padding */
body[data-workspace-view="docs"] .resource-card,
#docsPanel .resource-card {
  padding: 26px 28px;
}

/* Card header: badge + title row, more bottom room */
.resource-card-header {
  margin-bottom: 24px !important;
}

/* Card description text: more space before rule list */
#docsPanel .resource-card > p,
body[data-workspace-view="docs"] .resource-card > p {
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Rule rows: more padding so label/value breathe */
.resource-rule-list {
  gap: 10px !important;
}

.resource-rule-list div {
  padding: 14px 16px !important;
  gap: 6px !important;
}

/* Mini stat boxes */
.resource-mini-grid {
  gap: 10px !important;
  margin: 20px 0 !important;
}

.resource-mini-grid span {
  padding: 14px 16px !important;
}

/* Action buttons row at bottom of card */
.resource-actions {
  margin-top: 20px !important;
  gap: 10px !important;
}

/* Page-level section heading + subtitle gap */
body[data-workspace-view="docs"] .section-heading,
#docsPanel .section-heading {
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   Dialogs — shared base styles
   --------------------------------------------------------------- */
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-button:hover {
  background: var(--soft-line, rgba(255,255,255,.06));
  color: var(--text);
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------
   Invite modal
   --------------------------------------------------------------- */
.invite-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.invite-field input,
.invite-field select {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg, #f7f4f0);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 140ms ease;
}

.invite-field input:focus,
.invite-field select:focus {
  outline: none;
  border-color: var(--blue, #2563eb);
}

.invite-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 12px;
  background: var(--soft-line, rgba(0,0,0,.04));
  border-radius: 7px;
}

body[data-theme="light"] .invite-field input,
body[data-theme="light"] .invite-field select {
  background: #fff;
  border-color: #d8d4cd;
}

body[data-theme="light"] .invite-field input:focus,
body[data-theme="light"] .invite-field select:focus {
  border-color: var(--blue, #2563eb);
}

body[data-theme="light"] dialog {
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
}

body[data-theme="light"] .invite-note {
  background: #f0ece7;
}

/* ---------------------------------------------------------------
   Rooftop toggles — align to blue brand color (not green)
   --------------------------------------------------------------- */
.rooftop-status-switch.is-active {
  background: var(--blue, #2563eb) !important;
  border-color: var(--blue, #2563eb) !important;
}

.rooftop-status-switch::after {
  background: #fff !important;
}

body[data-theme="light"] .rooftop-status-switch {
  background: #d8d4cd;
  border-color: #c8c3bb;
}

body[data-theme="light"] .rooftop-status-switch.is-active {
  background: var(--blue, #2563eb) !important;
  border-color: var(--blue, #2563eb) !important;
}

/* ---------------------------------------------------------------
   Task dialog — field hints + AEO notes
   --------------------------------------------------------------- */
.details-field-hint {
  display: block;
  margin: 3px 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.details-aeo-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}

body[data-theme="light"] .details-field-hint {
  color: #888780;
}

/* ---------------------------------------------------------------
   Mobile overrides — fix !important conflicts at small screens
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Reset team table columns — let responsive.css stack to 1 col */
  .team-table-head,
  .team-table-row {
    grid-template-columns: 1fr !important;
    padding: 16px 14px !important;
  }

  .team-table-head {
    display: none !important;
  }

  /* Member cell stacks nicely in single col */
  .member-cell {
    margin-bottom: 4px;
  }
}

@media (max-width: 560px) {
  /* Notif toggles — larger touch target on mobile */
  .notif-toggle {
    width: 52px !important;
    height: 32px !important;
    min-height: 44px !important;
    align-items: center;
  }

  .notif-toggle-thumb {
    width: 22px !important;
    height: 22px !important;
  }

  .notif-toggle.is-active .notif-toggle-thumb {
    transform: translateX(20px) !important;
  }

  /* Settings row with toggle — keep side by side on mobile */
  .settings-section[aria-labelledby="notificationSettingsTitle"] .settings-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px;
  }

  /* Dialog full-width on small phones */
  dialog {
    width: 96vw !important;
    margin: auto;
    border-radius: 12px;
  }

  /* Quiet hours grid already stacks via responsive.css */
  .quiet-hours-grid label {
    width: 100%;
  }

  /* Resource cards full width */
  #docsPanel .resource-card,
  body[data-workspace-view="docs"] .resource-card {
    padding: 20px 18px !important;
  }
}

/* ─── Auth / Onboarding screen — Hybrid Split Design ───────────── */

/* Base screen — full viewport, no padding */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

/* When split layout is active, stretch to fill */
.auth-screen:has(.auth-split) {
  padding: 0;
  place-items: stretch;
}
.auth-screen:has(.auth-split) .auth-shell {
  max-width: none;
  width: 100%;
}

.auth-shell {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  background: transparent;
}

/* ── Split layout ──────────────────────────────────────────────── */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 440px;
  min-height: 100dvh;
}

/* Left: cream editorial panel */
.auth-editorial {
  display: flex;
  flex-direction: column;
  padding: 36px 48px;
  background: #f5f1eb;
  position: relative;
}

.auth-editorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-logo {
  display: block;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  color: #1a1a1a;
}

.auth-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #999;
  text-transform: uppercase;
}

.auth-editorial-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 40px;
}

.auth-eyebrow-new {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2563a9;
  text-transform: uppercase;
}

.auth-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.auth-headline {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin: 0 0 20px;
}

.auth-copy {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 400px;
}

.auth-editorial-footer {
  margin-top: auto;
}

.auth-hash-texture {
  height: 28px;
  margin-bottom: 14px;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.09) 3px,
    rgba(0, 0, 0, 0.09) 4px
  );
  border-radius: 2px;
}

.auth-footer-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}

/* Right: dark action panel */
.auth-action-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  background: #1c1c1c;
  overflow: hidden;
}

.auth-panel-watermark {
  position: absolute;
  bottom: -60px;
  right: -24px;
  font-size: 320px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.auth-panel-content {
  position: relative;
  z-index: 1;
}

.auth-signed-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.auth-panel-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

/* Profile row (01) */
.auth-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-row-index {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  min-width: 18px;
  flex-shrink: 0;
}

.auth-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563a9;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.auth-profile-info {
  flex: 1;
}

.auth-profile-info strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.auth-profile-info small {
  display: block;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 3px;
}

.auth-verified-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Roles row (02) */
.auth-roles-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-role-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-role-pill {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.auth-access-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 500;
}

/* CTA */
.auth-cta {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Fallback card (non-split, e.g. very old browsers) */
.auth-card {
  display: none;
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: panelIn 220ms ease both;
}
.auth-card.is-active { display: block; }

.auth-help-link {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.auth-help-link:hover,
.auth-help-link:focus-visible { color: rgba(255, 255, 255, 0.6); }

/* Mobile: stack vertically */
@media (max-width: 720px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-editorial {
    padding: 28px 24px 32px;
    min-height: 0;
  }
  .auth-editorial-body {
    padding: 32px 0 24px;
  }
  .auth-headline {
    font-size: clamp(32px, 8vw, 44px);
  }
  .auth-action-panel {
    padding: 36px 24px 48px;
    min-height: 0;
  }
}


/* ---------------------------------------------------------------
   Upcoming Models — The Wire (editorial layout)
   --------------------------------------------------------------- */

/* Fonts */
.wire-mono { font-family: 'IBM Plex Mono', monospace; }
.wire-serif { font-family: 'Newsreader', Georgia, serif; }

/* Page header */
.wire-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}

.wire-header-left { flex: 1; }

.wire-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.wire-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 8px;
}

.wire-subtitle {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.4;
}

.wire-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
  margin-top: 4px;
}

.wire-add-btn:hover { background: var(--line); border-color: var(--ink); }

/* Featured block */
.wire-featured {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
}

.wire-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.wire-featured-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #b4322a;
}

.wire-featured-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b4322a;
  flex-shrink: 0;
}

.wire-featured-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.wire-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wire-featured-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.wire-featured-h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 820px;
}

.wire-featured-body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  opacity: .85;
  max-width: 760px;
  margin-bottom: 18px;
}

.wire-featured-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}

.wire-featured-source:hover { color: var(--ink); border-color: var(--ink); }

.wire-featured-delete {
  position: absolute;
  top: 8px;
  right: 0;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0;
  transition: opacity .15s;
}

.wire-featured:hover .wire-featured-delete { opacity: 1; }

/* Wire list */
.wire-list { margin-bottom: 0; }

.wire-row {
  display: grid;
  grid-template-columns: 120px 1fr 148px;
  gap: 24px;
  align-items: start;
  padding: 22px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  position: relative;
  transition: background .12s;
}

.wire-row:hover { background: var(--panel); border-radius: 4px; }

.wire-row-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 3px;
}

.wire-row-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.wire-row-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wire-row-mid { min-width: 0; }

.wire-row-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 5px;
}

.wire-row-note {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--muted);
}

.wire-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 3px;
}

.wire-row-source {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.wire-row-source:hover { color: var(--ink); }

.wire-row-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  opacity: .7;
}

.wire-row-delete {
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0;
  transition: opacity .15s;
}

.wire-row:hover .wire-row-delete { opacity: 1; }

.wire-empty {
  padding: 32px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* OEM shelf */
.wire-oem-section { margin-top: 48px; }

.wire-oem-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 4px;
}

.wire-oem-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.wire-oem-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.wire-oem-sublabel {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.wire-oem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.wire-oem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left .15s;
}

.wire-oem-row:hover { padding-left: 8px; }

.wire-oem-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.wire-oem-arrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* Intel add dialog */
.intel-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 0;
  width: min(480px, 92vw);
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.intel-dialog::backdrop { background: rgba(0,0,0,.45); }

.intel-form { padding: 1.5rem; }

.intel-form-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.intel-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.intel-form-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.intel-form-row input,
.intel-form-row select,
.intel-form-row textarea {
  background: var(--bg);
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
  width: 100%;
}

.intel-form-row textarea { resize: vertical; }

.intel-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1.25rem;
}

/* Panel render error fallback */
.render-error {
  padding: 32px 28px;
  color: var(--red, #c0392b);
  font-size: 14px;
  font-weight: 600;
  opacity: .8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UI/UX polish pass — 2026-06-30
   1. Missing interactive states (focus-visible / hover)
   2. Light-theme button-quiet visibility bug (invisible border)
   3. Display font consistency — metric numbers, section headings, achievement
      counts now use Bricolage Grotesque to match wins.css
   4. Border-radius lift — cards 10px → 14-16px (closes gap vs wins.css 18-20px)
   5. Empty state: generous centred layout, no background wash
   6. Wire Upcoming — right column hidden on narrow mobile
═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Focus-visible / hover completeness ──────────────────────────────── */

/* Wire: "Add intel" button */
.wire-add-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 42%, transparent);
  outline-offset: 2px;
}

/* Wire: hover-revealed delete buttons */
.wire-featured-delete:focus-visible,
.wire-row-delete:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 42%, transparent);
  outline-offset: 2px;
  opacity: 1;
}

/* Intel add dialog — inputs show border on focus */
.intel-form-row input:focus,
.intel-form-row select:focus,
.intel-form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* ── 2. Light-theme button-quiet bug ────────────────────────────────────────
   Base: border-color: rgba(255,255,255,.08) — completely invisible on cream bg.
   No visual affordance the element is interactive until hover.                 */
body[data-theme="light"] .button-quiet {
  border-color: var(--line);
  color: var(--muted);
}

body[data-theme="light"] .button-quiet:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

/* ── 3. Display font consistency ────────────────────────────────────────────
   wins.css uses Bricolage Grotesque for every number and heading.
   Older views used inherited Inter — visibly "different app" on side-by-side. */

/* Big numbers on metric cards */
.metric strong {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -.04em;
}

/* Section headings across all views */
.section-heading h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}

.settings-page-header h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}

/* Achievement strip counts */
.achievement strong {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

/* ── 4. Border-radius lift ──────────────────────────────────────────────────
   wins.css cards: 18-20px. Dashboard cards: 10-12px — "different app" feel.
   Raising to 14-16px bridges the gap without making routine cards look
   like the wins showcase hero cards.                                           */

.work-card,
.watch-card,
.automation-card,
.resource-card {
  border-radius: 16px;
}

.builder-panel {
  border-radius: 16px;
}

.settings-section {
  border-radius: 14px;
}

.task,
.table-wrap {
  border-radius: 14px;
}

.metric {
  border-radius: 14px;
}

.achievement {
  border-radius: 12px;
}

.admin-row,
.pipeline-snapshot article {
  border-radius: 10px;
}

/* ── 5. Empty state polish ──────────────────────────────────────────────────
   Old: 18px padding, rgba bg wash invisible on light, no centring.
   New: generous padding, centred text, transparent bg, consistent radius.     */
.empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  background: transparent;
}

/* ── 6. Wire Upcoming — mobile right column ─────────────────────────────────
   .wire-row is a fixed 3-col grid (120px 1fr 148px). At 560px the 148px
   right col (source + timestamp) leaves the title column very narrow.
   Hide right col on mobile — the info is secondary at that size.             */
@media (max-width: 560px) {
  .wire-row {
    grid-template-columns: 100px 1fr;
  }

  .wire-row-right {
    display: none;
  }

  .wire-oem-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}


/* ═══════════════════════════════════════════════════════════════
   1C TEAM PIPELINE — Grouped urgency tiers
   ═══════════════════════════════════════════════════════════════ */

/* Remove old table-based pipeline styles when grouped view is active */
body[data-workspace-view="team_board"] .table-wrap {
  display: none !important;
}

/* Container */
.pipeline-groups {
  margin-top: 8px;
}

/* ── Column header row ─────────────────────────────────────────── */
.pipeline-header {
  display: grid;
  grid-template-columns: 1fr 200px 160px 100px 70px 200px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Group section ─────────────────────────────────────────────── */
.pipeline-group {
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}

.pipeline-group[data-tier="on_lot"] {
  border-color: rgba(239, 85, 85, .28);
  background: rgba(239, 85, 85, .03);
}
.pipeline-group[data-tier="blocked"] {
  border-color: rgba(155, 92, 246, .22);
  background: rgba(155, 92, 246, .04);
}

.pipeline-group[data-tier="ready"],
.pipeline-group[data-tier="in_progress"] {
  border-color: rgba(77, 141, 246, .22);
}

.pipeline-group[data-tier="needs_seo"] {
  border-color: rgba(227, 179, 65, .22);
}
.pipeline-group[data-tier="needs_aeo"] {
  border-color: rgba(14, 165, 233, .22);
  background: rgba(14, 165, 233, .03);
}

/* Group header */
.pipeline-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.06);
}

.pipeline-group[data-tier="on_lot"] .pipeline-group-head {
  background: rgba(239, 85, 85, .06);
}
.pipeline-group[data-tier="blocked"] .pipeline-group-head {
  background: rgba(155, 92, 246, .07);
}

/* Urgency dot */
.pipeline-tier-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pipeline-tier-dot-red   { background: var(--red, #ef5555); box-shadow: 0 0 0 3px rgba(239,85,85,.18); }
.pipeline-tier-dot-amber { background: var(--amber, #e3b341); box-shadow: 0 0 0 3px rgba(227,179,65,.18); }
.pipeline-tier-dot-blue   { background: var(--blue, #4D8DF6); box-shadow: 0 0 0 3px rgba(77,141,246,.18); }
.pipeline-tier-dot-violet { background: var(--violet, #9B5CF6); box-shadow: 0 0 0 3px rgba(155,92,246,.18); }
.pipeline-tier-dot-teal   { background: #0EA5E9; box-shadow: 0 0 0 3px rgba(14,165,233,.18); }

/* Group title + meta */
.pipeline-group-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: .01em;
}

.pipeline-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pipeline-group[data-tier="on_lot"] .pipeline-group-count {
  background: rgba(239, 85, 85, .18);
  color: var(--red, #ef5555);
}
.pipeline-group[data-tier="blocked"] .pipeline-group-count {
  background: rgba(155, 92, 246, .18);
  color: var(--violet, #9B5CF6);
}
.pipeline-group[data-tier="needs_aeo"] .pipeline-group-head {
  background: rgba(14, 165, 233, .06);
}
.pipeline-group[data-tier="needs_aeo"] .pipeline-group-head:hover {
  background: rgba(14, 165, 233, .11);
}
.pipeline-group[data-tier="needs_aeo"] .pipeline-group-count {
  background: rgba(14, 165, 233, .18);
  color: #0EA5E9;
}

.pipeline-group-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
}

/* ── Pipeline row ──────────────────────────────────────────────── */
.pipeline-row {
  display: grid;
  grid-template-columns: 1fr 200px 160px 100px 70px 200px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 100ms ease;
}

.pipeline-row:last-child { border-bottom: 0; }

.pipeline-row:hover { background: rgba(255,255,255,.04); }

.pipeline-row.is-on-lot {
  border-left: 3px solid rgba(239, 85, 85, .5);
  padding-left: 13px;
}

/* Columns */
.pipeline-col { display: flex; align-items: center; gap: 8px; }

.pipeline-col-action { gap: 6px; }

.pipeline-model-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

/* Brand badge */
.pipeline-brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pipeline-dealer-short {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Owner avatar + name */
.pipeline-owner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

.pipeline-owner-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* Inventory signal */
.pipeline-signal {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pipeline-signal-on_lot  { background: rgba(239,85,85,.14); color: var(--red, #ef5555); }
.pipeline-signal-shipped { background: rgba(77,141,246,.14); color: var(--blue, #4D8DF6); }
.pipeline-signal-upcoming{ background: rgba(255,255,255,.08); color: var(--muted); }

/* Time-in-stage badge */
.pipeline-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.pipeline-time-red   { background: rgba(239,85,85,.16);  color: var(--red, #ef5555); }
.pipeline-time-amber { background: rgba(227,179,65,.16); color: var(--amber, #e3b341); }
.pipeline-time-muted { background: rgba(255,255,255,.07); color: var(--muted); }

/* Action column */
.pipeline-row-cta {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  min-width: 90px;
  white-space: nowrap;
}

.pipeline-nudge-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
}

.pipeline-nudge-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Empty state */
.pipeline-groups .empty {
  margin: 20px 0;
}

/* ── Mobile pipeline (≤ 700px) ─────────────────────────────────── */
@media (max-width: 700px) {
  .pipeline-header { display: none; }

  .pipeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .pipeline-row.is-on-lot { padding-left: 13px; }

  .pipeline-col-dealer {
    order: -1;
  }

  .pipeline-col-inventory,
  .pipeline-col-time {
    display: inline-flex;
  }

  /* Merge inventory + time into one flex row */
  .pipeline-col-inventory,
  .pipeline-col-time {
    width: auto;
  }

  /* Wrap inventory + time signals into a single meta row using a pseudo row */
  .pipeline-row .pipeline-col-inventory,
  .pipeline-row .pipeline-col-time {
    display: inline-flex;
    flex-shrink: 0;
  }

  /* Group inventory + time side by side */
  .pipeline-col-inventory + .pipeline-col-time {
    margin-left: 8px;
  }

  /* Action row: CTA full width, nudge beside */
  .pipeline-col-action {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pipeline-row-cta {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
  }

  .pipeline-nudge-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  .pipeline-group-hint { display: none; }

  .pipeline-group-head {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── Tablet pipeline (701 – 900px) ─────────────────────────────── */
@media (min-width: 701px) and (max-width: 900px) {
  .pipeline-header,
  .pipeline-row {
    grid-template-columns: 1fr 160px 130px 80px 60px 170px;
  }
  .pipeline-group-hint { display: none; }
  .pipeline-model-title { font-size: 12px; }
  .pipeline-dealer-short { font-size: 11px; }
}


/* ═══════════════════════════════════════════════════════════════
   PIPELINE — Collapsible groups + swiper cards
   ═══════════════════════════════════════════════════════════════ */

/* Group head is now a button */
.pipeline-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.06);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease;
  border: none;
  color: inherit;
  font: inherit;
}

.pipeline-group-head:hover { background: rgba(0,0,0,.12); }
.pipeline-group[data-tier="on_lot"] .pipeline-group-head {
  background: rgba(239, 85, 85, .06);
}
.pipeline-group[data-tier="blocked"] .pipeline-group-head {
  background: rgba(155, 92, 246, .07);
}
.pipeline-group[data-tier="on_lot"] .pipeline-group-head:hover {
  background: rgba(239, 85, 85, .11);
}
.pipeline-group[data-tier="blocked"] .pipeline-group-head:hover {
  background: rgba(155, 92, 246, .12);
}

/* Collapsed state — hide body */
.pipeline-group.is-collapsed .pipeline-group-body { display: none; }
.pipeline-group.is-collapsed .pipeline-group-head { border-bottom: none; }

/* Chevron indicator */
.pipeline-group-chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 180ms ease;
}
.pipeline-group-chevron::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.pipeline-group-chevron.is-collapsed::after {
  transform: rotate(-45deg) translate(-2px, 2px);
}

/* Hint text sits between count and chevron; hide on smaller screens */
.pipeline-group-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
  flex: 1;
}

/* ── Swiper body ─────────────────────────────────────────────── */
.pipeline-group-body.is-swiper {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 14px 16px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.pipeline-group-body.is-swiper::-webkit-scrollbar {
  height: 4px;
}
.pipeline-group-body.is-swiper::-webkit-scrollbar-track { background: transparent; }
.pipeline-group-body.is-swiper::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

/* ── Swiper card ─────────────────────────────────────────────── */
.pipeline-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 270px;
  max-width: 270px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  background: var(--panel);
  transition: border-color 120ms ease, background 120ms ease;
  flex-shrink: 0;
}

.pipeline-card:hover {
  border-color: rgba(77,141,246,.45);
  background: rgba(77,141,246,.04);
}

.pipeline-card.is-on-lot {
  border-left: 3px solid rgba(239,85,85,.55);
}

.pipeline-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.pipeline-card-dealer {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pipeline-card-owner {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pipeline-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pipeline-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.pipeline-card-actions .pipeline-row-cta {
  flex: 1;
  font-size: 12px;
  padding: 7px 10px;
  white-space: nowrap;
  text-align: center;
  min-width: 0;
}

.pipeline-card-actions .pipeline-nudge-btn {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 10px;
}

/* count badge — show item count hint when swiper */
.pipeline-group-body.is-swiper + .pipeline-group-head,
.pipeline-group[data-tier] .pipeline-group-body.is-swiper ~ * {
  /* nothing needed */
}

/* ── Mobile: swiper cards stack vertically ────────────────────── */
@media (max-width: 700px) {
  .pipeline-group-body.is-swiper {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .pipeline-card {
    min-width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .pipeline-card.is-on-lot {
    border-left: 3px solid rgba(239,85,85,.55);
  }

  .pipeline-group-hint { display: none; }
}

/* ── Show all / expand button ─────────────────────────────────── */
.pipeline-show-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--blue, #4D8DF6);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  text-align: left;
  transition: background 100ms ease, color 100ms ease;
}

.pipeline-show-all-btn:hover {
  background: rgba(77,141,246,.07);
}

.pipeline-show-all-arrow {
  font-size: 13px;
  transition: transform 120ms ease;
}

.pipeline-show-all-btn:hover .pipeline-show-all-arrow {
  transform: translateX(3px);
}

/* ── 3b. Display font — pipeline snapshot numbers ──────────────────────────
   .metric strong and .achievement strong got Bricolage in the polish pass,
   but .pipeline-snapshot strong (admin KPI numbers) was missed.               */
.pipeline-snapshot strong {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -.03em;
}

/* ── 6. Light-theme elevation — settings & admin cards ─────────────────────
   tokens.css lifts .work-card/.metric/etc with box-shadow in light theme but
   omits .settings-section, .admin-row, and .pipeline-snapshot article.
   Without shadow these cards are barely distinguishable from --bg (#f7f4f0)
   vs --panel (#fffcf8). Adding a matching soft shadow brings them in line.    */
body[data-theme="light"] .settings-section,
body[data-theme="light"] .admin-row,
body[data-theme="light"] .pipeline-snapshot article {
  box-shadow: 0 8px 20px rgba(39, 55, 70, 0.06);
}

/* ── Role-picker rows on the demo auth screen ────────────────── */
.auth-profile-select {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.auth-profile-select:hover,
.auth-profile-select:focus-visible {
  border-color: rgba(79, 156, 255, 0.45);
  background: rgba(47, 114, 214, 0.14);
  transform: translateX(2px);
}

.auth-profile-select .auth-verified-badge {
  opacity: 0;
  transition: opacity 160ms ease;
}

.auth-profile-select:hover .auth-verified-badge,
.auth-profile-select:focus-visible .auth-verified-badge {
  opacity: 1;
}
