/*
 * Restaurant modules for Pilot AI. New components only — every value reuses the
 * existing dark Pilot AI palette (card #07131f→#050f1a, border #192936, text
 * #f1f4fa, muted #aebacb, accent #2565ed) so new screens match the original ones.
 */
:root { --pa-card: linear-gradient(120deg, #07131f, #050f1a); --pa-line: #192936; --pa-line2: #253a4f; --pa-text: #f1f4fa; --pa-muted: #aebacb; --pa-soft: #081522; --pa-blue: #2565ed; --pa-ember: #e8743b; }
.hidden { display: none !important; }
.muted { color: var(--pa-muted); font-size: 12px; }
.neg { color: #f2828a; } .pos { color: #81d269; }
.workspace-note > span:last-child { flex: 1; }

/* ---------- Demo tags, deltas, chips ---------- */
.demo-tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; border: 1px solid #5a4417; background: #241a08; color: #f0c467; font-size: 10px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.delta { font-weight: 700; } .delta.up { color: #81d269; } .delta.down { color: #f2828a; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; border: 1px solid #21364b; background: #0b1928; color: #becbdc; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.chip svg { width: 11px; height: 11px; }
.chip.vip { background: #2a1f05; color: #f5c451; border-color: #5a4310; }
.chip.returning { background: #0b2440; color: #70adff; border-color: #1c426b; }
.chip.new { background: #0f1f17; color: #8fd6a5; border-color: #1f4630; }
.chip.occasion { background: #2a1320; color: #f59ac0; border-color: #5a2843; }
.guest-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.status.cancelled { background: #1b1d24; color: #9aa4b5; border-color: #2c313d; }
.status.no-show { background: #2b1216; color: #f2828a; border-color: #4f2229; }
.status.reservation-booked, .status.completed { background: #ECFDF5; color: #065F46; border-color: #6EE7B7; }
.status.contacted { background: #EFF6FF; color: #1E40AF; border-color: #93C5FD; }
.primary-work .card .status.reservation-booked, .primary-work .card .status.completed { background: #092116; color: #81d269; border-color: #1c3c29; }
.primary-work .card .status.contacted { background: #0b2440; color: #70adff; border-color: #1c426b; }

/* ---------- Overview brand banner ---------- */
.brand-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 14px; border: 1px solid #2a2a33; border-radius: 9px; background: linear-gradient(100deg, #050f1aee 0%, #050f1ad9 46%, #050f1a73 100%), var(--banner) center 38% / cover no-repeat, #07131f; }
.brand-banner:after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--pa-ember), #f5b14a 40%, transparent); }
.brand-banner-copy { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-banner-copy img { width: 92px; height: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px #0009); }
.banner-eyebrow { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #f5b98f; font-weight: 700; }
.brand-banner h2 { font-size: 19px; color: #fff; font-weight: 650; letter-spacing: -.3px; margin: 2px 0 3px; }
.brand-banner p { font-size: 12.5px; color: #d6dfec; }
.banner-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 6px; background: #071320d9; border: 1px solid #2d4560; color: #e6edf8; font-size: 12px; font-weight: 550; backdrop-filter: blur(4px); }
.banner-chips span svg { width: 15px; height: 15px; color: #81d269; }
.banner-chips span:nth-child(2) svg { color: var(--pa-ember); }
.banner-chips span.warn { border-color: #5a4320; } .banner-chips span.warn svg { color: #f2bd67; }

/* ---------- KPI scorecard ---------- */
.card-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.range-control { display: inline-flex; padding: 3px; border: 1px solid var(--pa-line2); border-radius: 7px; background: #030d19; }
.range-control button { padding: 5px 10px; border-radius: 5px; color: #b4c3d7; font-size: 12px; font-weight: 600; }
.range-control button.active { background: #0a2b50; color: #88baff; }
.kpi-card { margin-bottom: 14px; }
.kpi-tabs { display: flex; gap: 2px; padding: 0 22px; border-bottom: 1px solid var(--pa-line); }
.kpi-tabs button { padding: 10px 13px 9px; color: #9fb0c7; font-size: 13px; font-weight: 650; border-bottom: 3px solid transparent; }
.kpi-tabs button.active { color: #fff; border-bottom-color: var(--pa-blue); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 16px 22px 20px; }
.kpi-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 13px 14px; border: 1px solid #1d3043; border-radius: 8px; background: #061120; transition: border-color .15s, background .15s; min-width: 0; }
.kpi-tile:hover { border-color: #3e628d; background: #0a1a2c; }
.kpi-tile > span { font-size: 12px; color: #b9c6d8; font-weight: 550; }
.kpi-tile > strong { font-size: 24px; color: #fff; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.kpi-tile > small { font-size: 11.5px; color: #8fa1b8; line-height: 1.45; }

/* ---------- Charts ---------- */
.pa-chart { display: block; width: 100%; height: auto; padding: 0 12px 6px; overflow: visible; }
.pa-chart text { fill: #b2c0d4; font-size: 11px; font-family: inherit; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 0 0 13px; }
.chart-grid > .card { margin: 0; }
.chart-card .card-head { padding: 15px 16px 6px; align-items: start; }
.chart-card .card-head h2 { font-size: 14px; }
.chart-legend i { border-radius: 2px; height: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: #4292ff; font-size: 11.5px; font-weight: 600; }
.text-link svg { width: 13px; height: 13px; }
.text-link:hover { color: #a1c9ff; }
.donut-wrap { display: flex; align-items: center; gap: 18px; padding: 6px 22px 18px; flex-wrap: wrap; }
.pa-donut { width: 132px; height: 132px; flex-shrink: 0; }
.pa-donut text { fill: #aebacb; font-size: 9px; } .pa-donut .donut-big { fill: #fff; font-size: 15px; font-weight: 700; }
.donut-legend { flex: 1; min-width: 170px; display: grid; gap: 7px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #c9d4e3; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend strong { margin-left: auto; color: #fff; font-weight: 650; }
.meter-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) minmax(80px, 2fr) auto; gap: 12px; align-items: center; font-size: 12.5px; color: #c9d4e3; padding: 6px 0; }
.meter-row strong { color: #fff; font-weight: 650; text-align: right; min-width: 64px; }
.meter-track { height: 7px; background: #0e1d2c; border-radius: 999px; overflow: hidden; }
.meter-track i { display: block; height: 100%; background: linear-gradient(90deg, #2565ed, #1a9a6b); border-radius: 999px; }
.meters { padding: 4px 22px 16px; }

/* ---------- Module tabs, mini stats, search, lists ---------- */
.module-tabs { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid var(--pa-line); overflow-x: auto; scrollbar-width: none; }
.module-tabs button { padding: 11px 14px 10px; color: #9fb0c7; font-size: 13.5px; font-weight: 650; border-bottom: 3px solid transparent; white-space: nowrap; }
.module-tabs button:hover { color: #dfe8f5; }
.module-tabs button.active { color: #fff; border-bottom-color: var(--pa-blue); }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mini-stats > div { padding: 12px 14px; border: 1px solid var(--pa-line); border-radius: 8px; background: var(--pa-card); }
.mini-stats span { display: block; font-size: 11.5px; color: var(--pa-muted); }
.mini-stats strong { display: block; margin-top: 3px; font-size: 21px; color: #fff; font-weight: 700; letter-spacing: -.4px; }
.mini-stats.inset { padding: 0 22px; }
.mini-stats.inset > div { background: #061120; }
.search-box { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--pa-line2); border-radius: 6px; background: #030d19; min-width: 220px; }
.search-box svg { width: 16px; height: 16px; color: #7f93ad; flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; padding: 8px 0; background: transparent; border: 0; color: #edf2fb; font-size: 13px; outline: none; }
.search-box:focus-within { border-color: #3e74c4; }
.list-rows { padding: 0 22px 14px; }
.list-rows.compact { padding: 0; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #142533; }
.list-row:last-child { border-bottom: 0; }
.list-row > div:not(.list-icon) { flex: 1; min-width: 0; }
.list-row strong { display: block; font-size: 13.5px; color: #eef2f8; font-weight: 600; }
.list-row span { display: block; font-size: 12px; color: var(--pa-muted); margin-top: 2px; line-height: 1.5; }
.list-row > .status, .list-row > .button, .list-row > .toggle { flex-shrink: 0; }
.list-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #0c2240; color: #77acff; flex-shrink: 0; }
.list-icon svg { width: 17px; height: 17px; }
.guest-table td { padding-top: 12px; padding-bottom: 12px; }

/* ---------- Calendar ---------- */
.cal-body { padding: 0 22px 20px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 1px solid #1d3043; border-radius: 8px; background: #061120; min-height: 190px; }
.day-card:hover, .month-cell:hover { border-color: #3e628d; }
.day-card.today { border-color: #2565ed; box-shadow: inset 0 0 0 1px #2565ed55; }
.day-name { font-size: 11px; color: #8fa1b8; text-transform: uppercase; letter-spacing: .8px; }
.day-card > strong { font-size: 15px; color: #fff; }
.day-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.day-figs b { display: block; font-size: 18px; color: #fff; } .day-figs small { font-size: 10.5px; color: #8fa1b8; }
.day-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.day-card li { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #c9d4e3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.day-card li svg { width: 12px; height: 12px; color: #f59ac0; flex-shrink: 0; }
.month-head, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-head span { font-size: 11px; color: #8fa1b8; text-transform: uppercase; letter-spacing: .8px; padding: 0 6px 6px; }
.month-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 76px; padding: 8px; text-align: left; border: 1px solid #1d3043; border-radius: 7px; background: #061120; }
.month-cell.past { background: #040c16; } .month-cell.other { opacity: .5; }
.month-cell.today { border-color: #2565ed; box-shadow: inset 0 0 0 1px #2565ed55; }
.mc-date { font-size: 13px; color: #fff; font-weight: 650; } .mc-res { font-size: 11px; color: #9fc2ff; } .mc-cov { font-size: 10.5px; color: #8fa1b8; }
.mc-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #f59ac0; }
.cal-note { margin-top: 12px; font-size: 11.5px; color: var(--pa-muted); line-height: 1.6; }

/* ---------- AI flows, guests, dialogs ---------- */
.ai-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 22px 20px; }
.ai-flow { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 15px; border: 1px solid #1d3043; border-radius: 8px; background: #061120; }
.ai-flow:hover { border-color: #3e628d; background: #0a1a2c; }
.ai-flow-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #0c2240; color: #77acff; }
.ai-flow-icon svg { width: 18px; height: 18px; }
.ai-flow strong { font-size: 14px; color: #fff; } .ai-flow small { font-size: 12px; color: var(--pa-muted); line-height: 1.5; }
.ai-flow-cta { margin-top: auto; font-size: 12px; color: #4292ff; font-weight: 600; }
.guest-mini { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #23384e; border-radius: 8px; background: #0a1828; margin-bottom: 14px; }
.guest-mini > div:nth-child(2) { flex: 1; min-width: 0; }
.guest-mini strong { display: block; font-size: 14.5px; }
.guest-mini span { display: block; font-size: 12px; color: var(--pa-muted); margin-top: 2px; }
.guest-mini p { font-size: 12.5px; color: #d6dfec; margin-top: 7px; }
.avatar.big { width: 46px; height: 46px; font-size: 16px; }
.dialog-section { font-size: 13px; font-weight: 700; margin: 4px 0 8px; color: #dfe8f5; }
.dialog.wide { width: min(760px, calc(100vw - 28px)); }
.sms-thread { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: #030d19; border: 1px solid #1d3043; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.bubble small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; opacity: .75; margin-bottom: 3px; }
.bubble.in { align-self: flex-start; background: #13263a; color: #e6edf8; border-bottom-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: #1257ef; color: #fff; border-bottom-right-radius: 3px; }
.about-demo img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.about-demo p { font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.photo-credit { font-size: 11px !important; color: var(--pa-muted); }
.chat-followups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chat-followups .prompt { font-size: 11.5px; }
.form-notice + .form-notice { margin-top: 8px; }

/* ---------- Generic two-column module layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 13px; margin-bottom: 13px; }
.split > .card, .split > div > .card { margin: 0; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 13px; }
.card + .split, .split + .card, .chart-grid + .card, .mini-stats + .card, .module-tabs + .card { margin-top: 0; }
.card + .card { margin-top: 13px; }
.card-body { padding: 0 22px 18px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 22px 16px; border-radius: 8px; border: 1px solid #1e426a; background: #0a1c33; color: #d6e4f7; font-size: 13px; line-height: 1.6; }
.callout svg { width: 18px; height: 18px; flex-shrink: 0; color: #77acff; margin-top: 2px; }
.callout.warn { border-color: #5a4320; background: #22180b; color: #f3dfbd; } .callout.warn svg { color: #f2bd67; }
.callout.good { border-color: #1c3c29; background: #0b1d14; color: #cfeedd; } .callout.good svg { color: #81d269; }
.table-wrap td .secondary + .secondary { margin-top: 2px; }
.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }
.bar-inline { display: inline-block; height: 6px; border-radius: 999px; background: #2565ed; vertical-align: middle; margin-right: 6px; }

/* ---------- Mobile & tablet ---------- */
@media (max-width: 1160px) { .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ai-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .chart-grid, .split, .split-even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) {
  .brand-banner { padding: 16px; } .brand-banner-copy img { width: 70px; } .brand-banner h2 { font-size: 17px; }
  .kpi-tabs { padding: 0 16px; } .kpi-grid { padding: 14px 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi-tile { padding: 11px; } .kpi-tile > strong { font-size: 20px; }
  .card-head { flex-wrap: wrap; } .card-head-tools { justify-content: flex-start; }
  .search-box { min-width: 0; width: 100%; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .day-card { min-height: 0; }
  .month-head, .month-grid { gap: 3px; } .month-cell { min-height: 58px; padding: 5px; } .mc-cov { display: none; } .month-head span { padding: 0 2px 4px; font-size: 10px; }
  .cal-body, .list-rows, .card-body, .meters { padding-left: 16px; padding-right: 16px; } .mini-stats.inset { padding: 0 16px; } .callout { margin-left: 16px; margin-right: 16px; }
  .ai-flow-grid { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-wrap { padding: 6px 16px 16px; justify-content: center; }
  .meter-row { grid-template-columns: minmax(90px, 1fr) minmax(60px, 1.4fr) auto; gap: 8px; }
  .pa-chart { padding: 0 4px 4px; }
}

/* ---------- Financials ---------- */
.pnl tr.strong td { font-weight: 700; color: #fff; background: #061120; }
.pnl tr.total td { font-weight: 800; color: #81d269; background: #0b1d14; border-top: 1px solid #1c3c29; }
.why-card .card-head h2 { display: flex; align-items: center; gap: 8px; } .why-card .card-head h2 svg { width: 18px; height: 18px; color: #77acff; }

/* ---------- Labor schedule ---------- */
.schedule-wrap { max-height: 620px; overflow: auto; }
.schedule th, .schedule td { padding: 9px 10px; vertical-align: top; }
.schedule thead th { position: sticky; top: 0; z-index: 1; }
.schedule td:first-child { min-width: 150px; }
.schedule td strong { font-size: 13px; color: #eef2f8; font-weight: 600; display: block; }
.shift { display: block; margin: 0 0 3px; padding: 3px 6px; border-radius: 4px; font-size: 10.5px; white-space: nowrap; background: #0b2440; color: #9fc2ff; border: 1px solid #1c426b; }
.shift.dinner { background: #1d1440; color: #c4b5fd; border-color: #3b2a7a; }
.shift.double { background: #2b1b12; color: #f2bd67; border-color: #4c3420; }
.schedule tr.ot td { background: #1b1208; }
.ot-label { color: #f2bd67 !important; font-weight: 700; }
.emp-name { display: block; color: #eef2f8; font-weight: 600; font-size: 13.5px; }

/* ---------- Marketing ---------- */
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 0 22px 20px; }
.campaign-card, .segment-card { display: flex; flex-direction: column; gap: 10px; padding: 15px; border: 1px solid #1d3043; border-radius: 9px; background: #061120; }
.campaign-head { display: flex; align-items: flex-start; gap: 10px; }
.campaign-head > div:nth-child(2) { flex: 1; min-width: 0; }
.campaign-head h3, .segment-card h3 { font-size: 14.5px; color: #fff; }
.campaign-head span { display: block; font-size: 11.5px; color: var(--pa-muted); margin-top: 2px; }
.campaign-copy { font-size: 12.5px; color: #c9d4e3; line-height: 1.55; }
.campaign-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.campaign-metrics div { padding: 8px; border-radius: 6px; background: #0a1828; }
.campaign-metrics span { display: block; font-size: 10.5px; color: var(--pa-muted); }
.campaign-metrics strong { font-size: 15px; color: #fff; }
.campaign-card .response-actions, .social-card .response-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.segment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0 22px 20px; }
.segment-card strong { font-size: 22px; color: #fff; } .segment-card > span { font-size: 12px; color: #81d269; }
.segment-card p { font-size: 12px; color: var(--pa-muted); line-height: 1.5; flex: 1; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0 22px 14px; }
.social-card { border: 1px solid #1d3043; border-radius: 9px; overflow: hidden; background: #061120; display: flex; flex-direction: column; }
.social-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.social-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.social-meta { display: flex; justify-content: space-between; font-size: 12px; } .social-meta strong { color: #fff; } .social-meta span { color: var(--pa-muted); }
.social-body p { font-size: 12.5px; color: #d6dfec; line-height: 1.5; }
.photo-note { padding: 0 22px 16px; font-size: 11px; color: var(--pa-muted); }
.email-hero { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; margin-top: 10px; }

/* ---------- Events ---------- */
.events-hero { background: linear-gradient(100deg, #061a33f2 0%, #061a33d9 55%, #061a3399 100%), var(--hero) center 30% / cover no-repeat !important; }
.pipeline { display: grid; grid-template-columns: repeat(var(--cols), minmax(180px, 1fr)); gap: 10px; padding: 0 22px 20px; overflow-x: auto; }
.pipeline-col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 8px; background: #040c16; border: 1px solid #142533; min-width: 180px; }
.pipeline-head { display: flex; flex-direction: column; padding: 2px 2px 6px; border-bottom: 1px solid #142533; }
.pipeline-head strong { font-size: 13px; color: #fff; } .pipeline-head span { font-size: 11px; color: var(--pa-muted); }
.pipeline-empty { padding: 6px 2px; }
.event-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px; border: 1px solid #1d3043; border-radius: 7px; background: #0a1828; }
.event-card:hover { border-color: #3e628d; }
.event-card.urgent { border-color: #5a4320; box-shadow: inset 3px 0 0 #f2bd67; }
.event-card > strong { font-size: 12.5px; color: #fff; line-height: 1.35; } .event-card > span { font-size: 11px; color: var(--pa-muted); }
.event-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #c9d4e3; margin-top: 3px; }
.event-meta span { display: inline-flex; align-items: center; gap: 3px; } .event-meta svg { width: 12px; height: 12px; } .event-meta b { margin-left: auto; color: #81d269; font-weight: 700; }
.event-card small { font-size: 10.5px; color: #8fa1b8; } .event-card small.warn { color: #f2bd67; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field select, .field input[type=date], .field input[type=number] { color-scheme: dark; }
.activity-list.dark .activity-event { background: #0a1828; border-color: #1d3043; color: #e6edf8; }
.activity-list.dark .activity-event span { color: var(--pa-muted); }
.inline-form { margin-top: 14px; }

/* ---------- Knowledge ---------- */
.knowledge-category-grid.kb-ten { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kb-test { margin: 0 0 16px; } .kb-test .card-head h2 { display: flex; align-items: center; gap: 8px; } .kb-test .card-head h2 svg { width: 18px; height: 18px; color: #77acff; }

/* ---------- Automations ---------- */
.automation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-bottom: 14px; }
.automation-card { display: flex; flex-direction: column; gap: 12px; padding: 15px; border: 1px solid var(--pa-line); border-radius: 9px; background: var(--pa-card); }
.automation-card.on { border-color: #1c3c29; }
.automation-head { display: flex; align-items: center; gap: 10px; } .automation-head > div:nth-child(2) { flex: 1; min-width: 0; }
.automation-head h3 { font-size: 14px; color: #fff; } .automation-head span { font-size: 11.5px; color: var(--pa-muted); }
.automation-card:not(.on) .list-icon { background: #121c28; color: #7f93ad; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.flow-step { padding: 9px 10px; border-radius: 6px; background: #061120; border: 1px solid #1d3043; }
.flow-step small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #77acff; font-weight: 700; margin-bottom: 2px; }
.flow-step p { font-size: 12px; color: #d6dfec; line-height: 1.45; }
.flow-arrow { align-self: center; color: #4c6a8f; font-size: 16px; }
.automation-foot { display: flex; align-items: center; gap: 10px; }
.automation-foot > span { flex: 1; display: flex; gap: 6px; font-size: 11.5px; color: #b9c6d8; line-height: 1.45; }
.automation-foot > span svg { width: 14px; height: 14px; color: #77acff; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 1280px) { .knowledge-category-grid.kb-ten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .campaign-grid, .segment-grid, .social-grid, .pipeline { padding-left: 16px; padding-right: 16px; }
  .knowledge-category-grid.kb-ten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); } .flow-arrow { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) { .rev-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rev-kpi { min-width: 0; } .rev-kpi > strong { font-size: 27px; overflow-wrap: anywhere; } }
/* Contrast fix for a heading that sits on the dark page (inherited from the dental Reputation module). */
.rep-grid > section > .rep-section-head h3 { color: #f1f4fa; } .rep-grid > section > .rep-section-head p { color: var(--pa-muted); }

/* ---------- Connectors ---------- */
.connector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.connector-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--pa-line); border-radius: 9px; background: var(--pa-card); }
.connector-card.on { border-color: #1c3c29; }
.connector-head { display: flex; align-items: center; gap: 11px; } .connector-head > div:nth-child(2) { flex: 1; min-width: 0; }
.connector-head h3 { font-size: 15px; color: #fff; } .connector-head span { font-size: 11.5px; color: var(--pa-muted); }
.connector-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.connector-logo svg { width: 20px; height: 20px; }
.connector-logo.gcal { background: linear-gradient(145deg, #1a73e8, #0b4fb3); } .connector-logo.gmail { background: linear-gradient(145deg, #ea4335, #a3261c); } .connector-logo.toast { background: linear-gradient(145deg, #ff6a2b, #c2410c); }
.connector-card > p { font-size: 12.5px; color: #c9d4e3; line-height: 1.55; }
.connector-syncs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.connector-syncs li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #b9c6d8; } .connector-syncs svg { width: 13px; height: 13px; color: #81d269; }
.connector-card .response-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.dot-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4bdd9a; margin-left: 4px; vertical-align: middle; }
.agenda { padding: 0 22px 18px; }
.agenda-day h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: #8fa1b8; margin: 12px 0 6px; }
.agenda-item { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 7px; background: #061120; border: 1px solid #1d3043; border-left: 3px solid #2565ed; margin-bottom: 6px; }
.agenda-item.event { border-left-color: #efa51f; } .agenda-item.party { border-left-color: #f59ac0; } .agenda-item.delivery { border-left-color: #22b8cf; } .agenda-item.staff { border-left-color: #8b5cf6; }
.agenda-item > div { flex: 1; min-width: 0; } .agenda-item strong { display: block; font-size: 13px; color: #eef2f8; font-weight: 600; } .agenda-item span { font-size: 11.5px; color: var(--pa-muted); }
.agenda-time { width: 70px; flex-shrink: 0; font-size: 12px; color: #9fc2ff !important; font-weight: 600; }
.mail-row.unread strong { color: #fff; font-weight: 750; }
.mail-row .mail-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #9fb0c7; }
.mail-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.consent { font-size: 14px; line-height: 1.6; }
.consent-app { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #23384e; border-radius: 8px; background: #0a1828; margin-bottom: 12px; }
.consent-app img { object-fit: contain; } .consent-app strong { display: block; } .consent-app span { font-size: 12.5px; color: var(--pa-muted); }
.consent ul { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 7px; } .consent li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; } .consent li svg { width: 15px; height: 15px; color: #81d269; flex-shrink: 0; margin-top: 3px; }
.setup-steps { padding: 0 22px 14px 42px; display: grid; gap: 9px; font-size: 13px; color: #d6dfec; line-height: 1.6; }
.setup-steps code, .card code { display: inline-block; padding: 2px 6px; margin: 2px 0; border-radius: 4px; background: #030d19; border: 1px solid #23384e; color: #9fc2ff; font-size: 11.5px; word-break: break-all; }
.connector-logo.opentable { background: linear-gradient(145deg, #da3743, #9f1f29); }
@media (max-width: 800px) { .connector-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .agenda { padding: 0 16px 16px; } .setup-steps { padding: 0 16px 12px 34px; } .mail-row { flex-wrap: wrap; } .mail-actions { flex-direction: row; flex-wrap: wrap; width: 100%; align-items: center; } }

/* ---------- Real-data mode ---------- */
.demo-tag.live { border-color: #1c3c29; background: #0b1d14; color: #81d269; }
.demo-badge.live { background: #0b1d14 !important; color: #81d269 !important; border-color: #1c3c29 !important; }
.sample-banner { margin: 0 0 14px; }
#real-auth svg { width: 15px; height: 15px; }
@media (max-width: 800px) { #real-auth { order: -1; } }
