/* Raasta Theory demo. Visual system after SnowUI (Dashboard UI Kit by
   ByeWind, Figma Community, CC BY 4.0): flat cards, no shadows, tinted
   tiles, one accent. Recoloured to Raasta's palette; brand vars are set from
   profile.js at runtime. */
:root {
  --brand: #2F72E3; --brand-on: #fff; --brand-text: #2F72E3; --brand-deep: #2A2C75;
  --brand-tint: #EAF1FC; --brand-soft: #D1E0F9; --brand-line: #B0C9F4;
  --accent: #FCD235; --accent-tint: #FFF8D6;
  --ink: #111318; --ink-2: #3D424D; --ink-3: #5B6170;
  --line: rgba(17,19,24,.08); --line-2: rgba(17,19,24,.12);
  --canvas: #FFFFFF; --tile: #F7F8FA; --hover: rgba(17,19,24,.03);
  --good: #12754A; --good-bg: #E2F4EA; --warn: #8A5300; --warn-bg: #FFF1D6; --crit: #B42318; --crit-bg: #FDE8E6;
  --sans: 'Open Sans', system-ui, sans-serif; --script: 'Oleo Script Swash Caps', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--sans); color: var(--ink); background: var(--canvas); display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 34px; font-weight: 700; }
h2 { font-size: 15px; line-height: 22px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.num, .kpi b, td.r { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- sidebar */
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.brand { padding: 4px 8px 16px; }
.brand img { height: 40px; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-h { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 500; color: var(--ink-2); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.on { background: var(--brand-tint); color: var(--brand-text); font-weight: 600; }
.badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.me { display: flex; gap: 10px; align-items: center; }
.me img { width: 34px; height: 34px; border-radius: 50%; }
.me b { display: block; font-size: 13px; }
.me span { font-size: 12px; color: var(--ink-2); }
.by { font-size: 11.5px; color: var(--ink-2); }
.logout { font-weight: 600; color: var(--brand-text); }
.logout[hidden] { display: none; }

/* ---------- top bar */
main { min-width: 0; }
.top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 5; }
.crumbs { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.crumbs b { color: var(--ink); font-weight: 600; }
.top-r { display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--tile); border-radius: 8px; padding: 0 10px; height: 36px; width: 300px; }
.search svg { width: 16px; height: 16px; color: var(--ink-3); }
.search input { border: 0; background: none; outline: none; flex: 1; font-size: 13px; }
.search kbd { font: 11px var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; color: var(--ink-2); }
#view { padding: 28px 32px 72px; display: flex; flex-direction: column; gap: 24px; max-width: 1480px; }

/* ---------- buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--tile); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-on); }
.btn.primary:hover { filter: brightness(.95); }
.btn.cta { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.cta:hover { background: #FBE15C; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--tile); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.chip svg { width: 11px; height: 11px; }
.chip.brand { background: var(--brand-tint); color: var(--brand-text); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.crit { background: var(--crit-bg); color: var(--crit); }
.ch { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; }
.ch svg { width: 14px; height: 14px; }
.ch-wa { background: #E3F7EA; color: #128C4A; }
.ch-ig { background: #FCE8F1; color: #B4296A; }
.ch-web, .ch-doc { background: var(--brand-tint); color: var(--brand-text); }
.ch-pay { background: var(--accent-tint); color: #7A5A00; font-weight: 700; font-size: 12px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none; vertical-align: middle; }

/* ---------- page head and layout */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head p { margin-top: 6px; color: var(--ink-2); max-width: 760px; }
.page-head h1 .script { font-family: var(--script); font-weight: 400; color: var(--brand-text); font-size: 32px; letter-spacing: 0; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.back { font-size: 13px; color: var(--brand-text); font-weight: 600; display: inline-block; margin-bottom: 6px; }
.back::before { content: '← '; }
.grid { display: grid; gap: 24px; align-items: start; }
.g-7-5 { grid-template-columns: 7fr 5fr; }
.g-5-7 { grid-template-columns: 5fr 7fr; }
.g-6-6 { grid-template-columns: 1fr 1fr; }
.col-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- cards: flat, hairline, 16px radius */
.card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; background: #fff; }
.card.flush { padding: 8px 0 0; }
.card.flush > header { padding: 12px 24px 4px; }
.card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card > header p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.count { background: var(--tile); border-radius: 6px; padding: 0 8px; font-weight: 700; font-size: 12px; line-height: 22px; }
.lede { color: var(--ink-2); font-size: 13.5px; margin-bottom: 8px; }
.fine { font-size: 12.5px; color: var(--ink-2); margin-top: 14px; }
.note { background: var(--accent-tint); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }

/* ---------- KPI tiles: tinted fills, alternating brand and accent */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpis.five { grid-template-columns: repeat(5, 1fr); }
.kpi { border-radius: 16px; padding: 20px 22px; background: var(--brand-tint); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi:nth-child(even) { background: var(--tile); }
.kpi:nth-child(4n+3) { background: var(--accent-tint); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.kpi b { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.kpi-note { font-size: 12.5px; color: var(--ink-2); }
.delta { font-size: 12px; font-weight: 700; }
.delta::before { content: '▲ '; font-size: 9px; }
.delta.up { color: var(--good); }
.delta.down { color: var(--crit); }
.delta.down::before { content: '▼ '; }
.spark { flex: none; }

/* ---------- lists */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; cursor: pointer; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--hover); }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { font-weight: 600; }
.row .grow div { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.feed { display: flex; flex-direction: column; }
.msg-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.msg-line:first-child { border-top: 0; }
.msg-line em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0 12px; height: 52px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--hover); }
td .sub { font-size: 12px; color: var(--ink-2); margin-left: 40px; margin-top: -2px; white-space: nowrap; }
td:first-child b { white-space: nowrap; }
.paybar { width: 110px; height: 6px; border-radius: 3px; background: var(--tile); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.paybar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* ---------- segmented control */
.seg { display: inline-flex; background: var(--tile); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }

/* ---------- pipeline board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; align-items: start; }
.col { background: var(--tile); border-radius: 16px; padding: 12px; min-height: 320px; }
.col.drop { outline: 2px dashed var(--brand); outline-offset: -2px; }
.col > header { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 12px; }
.col > header span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.deal { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.deal:hover { border-color: var(--brand-line); }
.deal .d1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal .d2 { font-size: 13px; color: var(--ink-2); }
.deal .d3 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.deal .d3 b { margin-right: auto; }
.deal .d4 { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.deal .d4.late { color: var(--crit); }
.more { text-align: center; font-size: 12.5px; color: var(--ink-2); padding: 6px; }

/* ---------- inbox */
.inbox { display: grid; grid-template-columns: 320px 1fr 300px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; height: calc(100vh - 150px); min-height: 560px; }
.threads { border-right: 1px solid var(--line); overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.threads .seg { margin-bottom: 8px; }
.thread { display: flex; gap: 10px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.thread:hover { background: var(--hover); }
.thread.on { background: var(--brand-tint); }
.thread .grow { flex: 1; min-width: 0; }
.thread .t1 { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; }
.thread .t1 span { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.thread .t2 { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.thread .t2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread .t2 .ch { width: 18px; height: 18px; }
.thread .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; }
.convo { display: flex; flex-direction: column; min-width: 0; background: #FAFBFC; }
.convo > header { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.convo > header .grow { flex: 1; }
.convo > header .grow div { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.bubbles { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 72%; padding: 10px 12px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; font-size: 13.5px; }
.bubble.bot, .bubble.team { align-self: flex-end; background: var(--brand-tint); border-color: transparent; }
.bubble.team { background: #E8F7EE; }
.bubble .by { display: flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--brand-text); margin-bottom: 3px; }
.bubble.team .by { color: var(--good); }
.bubble .by svg { width: 11px; height: 11px; }
.bubble time { display: block; text-align: right; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.suggest { margin: 0 20px 12px; display: flex; gap: 10px; align-items: center; background: var(--accent-tint); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.suggest > svg { width: 16px; height: 16px; color: #7A5A00; flex: none; }
.suggest div { flex: 1; }
.composer { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fff; }
.composer input { flex: 1; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; }
.context { border: 0; border-left: 1px solid var(--line); border-radius: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.context p { color: var(--ink-2); font-size: 13px; }
dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 10px; margin: 0; font-size: 13px; }
dt { color: var(--ink-2); font-weight: 600; }
dd { margin: 0; }
dd a { color: var(--brand-text); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ---------- trip detail */
.timeline { display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.step.done i { background: var(--good); border-color: var(--good); }
.step.late i { background: var(--crit); border-color: var(--crit); }
.step .grow { flex: 1; }
.step .grow div { font-size: 12.5px; color: var(--ink-2); }

/* ---------- charts */
.chart { width: 100%; min-height: 120px; }
.chart svg { display: block; overflow: visible; }
.ct-axis { font-size: 11px; fill: var(--ink-3); }
.ct-label { font-size: 11.5px; font-weight: 700; fill: var(--ink); }
.ct-note { font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.ct-col:hover path, .ct-col:hover rect:not([fill=transparent]), .ct-col:focus path { filter: brightness(1.12); }
.ct-cell:hover, .ct-cell:focus { stroke: var(--ink); stroke-width: 1.5; outline: none; }
.ct-pt:focus { outline: none; }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin: -4px 0 10px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; box-shadow: 0 12px 32px rgba(16,24,40,.12), 0 2px 6px rgba(16,24,40,.06); font-size: 12.5px; min-width: 140px; }
.ct-title { font-weight: 700; margin-bottom: 4px; }
.ct-row { display: flex; align-items: center; gap: 6px; }
.ct-row b { font-variant-numeric: tabular-nums; }
.ct-row span { color: var(--ink-2); }
.ct-line { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.ct-rect { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.heat-key { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; justify-content: flex-end; }
.heat-key i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.heat-key i:first-of-type { margin-left: 6px; }
.heat-key i:last-of-type { margin-right: 6px; }
.insight { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; background: var(--tile); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.insight svg { width: 14px; height: 14px; color: var(--brand-text); flex: none; margin-top: 3px; }
.insight b { font-weight: 700; }
.funnel { display: flex; flex-direction: column; gap: 12px; }
.fstep { display: grid; grid-template-columns: 170px 1fr 40px 44px; gap: 12px; align-items: center; font-size: 13px; }
.fl { font-weight: 600; }
.ftrack { height: 22px; background: var(--tile); border-radius: 6px; overflow: hidden; }
.ftrack i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.fstep:nth-child(n+3) .ftrack i { background: var(--brand-deep); }
.fp { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: right; }

/* ---------- itinerary builder */
.builder { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.builder .card { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12.5px; font-weight: 700; }
.field select { height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.tpl b { color: var(--ink); font-size: 13.5px; }
.tpl.on { border: 2px solid var(--brand); padding: 9px 11px; background: var(--brand-tint); }
.checks { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.checks input { accent-color: var(--brand); }
.preview { background: #2C2F36; border-radius: 16px; overflow: hidden; height: calc(100vh - 170px); min-height: 600px; }
.preview iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- channels */
.channel > header { align-items: center; }
.channel > header .ch { width: 40px; height: 40px; border-radius: 12px; }
.channel > header .ch svg { width: 22px; height: 22px; }
.channel > header .grow { flex: 1; }
.wa-preview { background: #EFE7DD; border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.wa-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.wa-top b { display: block; font-size: 13.5px; }
.wa-top span { font-size: 12px; color: var(--ink-2); }
.wa-preview .bubble { max-width: 85%; align-self: flex-start; background: #fff; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.steps li { background: var(--tile); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; counter-increment: s; font-size: 13px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-deep); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.steps li span { color: var(--ink-2); }

/* ---------- quote builder */
.quote { display: flex; flex-direction: column; gap: 14px; }
.qline { display: grid; grid-template-columns: 1fr 110px 90px 110px; gap: 10px; align-items: center; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.qline.head { font-weight: 700; color: var(--ink-3); font-size: 12px; border-top: 0; }
.qline span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.qtotal { display: grid; grid-template-columns: 1fr 120px; gap: 6px 10px; font-size: 13.5px; background: var(--tile); border-radius: 12px; padding: 14px 16px; }
.qtotal span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.qtotal .big { font-size: 17px; font-weight: 700; }
.qver { display: flex; gap: 8px; }

/* ---------- drawer, toast */
.scrim { position: fixed; inset: 0; background: rgba(17,19,24,.24); z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 21; transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; box-shadow: -20px 0 48px rgba(16,24,40,.12); }
.drawer > header { display: flex; gap: 12px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer > header .grow { flex: 1; }
.drawer > header h2 { font-size: 18px; }
.drawer > header .grow div { font-size: 13px; color: var(--ink-2); }
.drawer .body { padding: 20px 24px; overflow: auto; display: flex; flex-direction: column; gap: 18px; }
.x { border: 0; background: none; font-size: 24px; cursor: pointer; line-height: 1; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-weight: 600; font-size: 13.5px; }
.demo-flag { position: fixed; right: 14px; bottom: 12px; z-index: 4; font-size: 11.5px; background: var(--accent-tint); border-radius: 6px; padding: 4px 8px; }

/* ---------- live layer: what makes the demo move */
@keyframes glow { from { background-color: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent); } to { background-color: transparent; box-shadow: 0 0 0 0 transparent; } }
@keyframes glow-card { from { box-shadow: 0 0 0 2px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.55); } 70% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.flash { animation: glow 2.4s ease-out; border-radius: 10px; }
.deal.flash, .bubble.flash, .suggest.flash { animation: glow-card 2.4s ease-out, pop-in .35s ease-out; }
.bubble.flash { animation: pop-in .35s ease-out; }
tr.flash td { animation: glow 2.4s ease-out; }
.step.flash i { animation: bump .6s ease-out 2; }
.badge.bump { animation: bump .45s ease-out; }
.badge[hidden] { display: none; }

.live { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.live.on { color: var(--good); border-color: rgba(18,117,74,.25); background: var(--good-bg); }
.live.on i { background: #12B76A; animation: pulse 1.8s infinite; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--good); vertical-align: 2px; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #12B76A; animation: pulse 1.8s infinite; }

.bell-wrap { position: relative; }
.bell { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.bell svg { width: 18px; height: 18px; }
.bell.ring svg { animation: ring .7s ease-out; transform-origin: 50% 15%; }
.bell b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--crit); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 5px; }
.activity { position: absolute; right: 0; top: 44px; width: 380px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.14); z-index: 30; padding: 6px; }
.activity > header { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 10px 8px; }
.activity > header span { font-size: 12px; color: var(--ink-2); }
.act { display: flex; gap: 10px; padding: 10px; border-radius: 10px; }
.act:hover { background: var(--hover); }
.act b { font-size: 13px; display: block; }
.act p { font-size: 12.5px; color: var(--ink-2); }
.act time { font-size: 11.5px; color: var(--ink-3); }
.empty { padding: 12px 10px; font-size: 13px; color: var(--ink-2); }
.ch-spark { background: var(--accent-tint); color: #7A5A00; }

.notes { position: fixed; top: 76px; right: 20px; z-index: 40; display: flex; flex-direction: column; gap: 10px; width: 360px; pointer-events: none; }
.note { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 36px rgba(16,24,40,.14); opacity: 0; transform: translateX(24px); transition: opacity .25s ease, transform .3s ease; }
.note.in { opacity: 1; transform: none; }
.note .ch { width: 30px; height: 30px; border-radius: 9px; }
.note b { font-size: 13.5px; display: block; }
.note p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.note:hover { border-color: var(--brand-line); }

.search-wrap { position: relative; }
.search-pop { position: absolute; top: 42px; left: 0; width: 420px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.14); z-index: 30; padding: 6px; }
.sr { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; }
.sr.on, .sr:hover { background: var(--brand-tint); }
.sr div { flex: 1; min-width: 0; }
.sr b { display: block; font-size: 13.5px; }
.sr span { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }

/* inbox, live */
.seg button small { font-size: 11px; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.typing-txt { color: var(--brand-text) !important; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.typing-txt svg { width: 11px; height: 11px; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dots 1.1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
.bubble .ticks { color: #2F9BE3; letter-spacing: -3px; margin-left: 2px; }
.doc, .paylink { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 8px 10px; margin: 2px 0 6px; border: 1px solid var(--line); }
.doc-i { width: 32px; height: 38px; border-radius: 4px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.paylink > b { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #000; display: grid; place-items: center; flex: none; }
.doc b, .paylink span b { display: block; font-size: 13px; }
.doc small, .paylink small { font-size: 11.5px; color: var(--ink-2); }
.convo > header .chip { flex: none; }
.convo > header .grow div { flex-wrap: wrap; }
.asst { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-2); }
.asst::before { content: '·'; margin: 0 4px 0 2px; color: var(--ink-3); }
.asst.on { color: var(--brand-text); }
.asst svg { width: 11px; height: 11px; }
@media (max-width: 1440px) { .inbox { grid-template-columns: 280px 1fr 260px; } }
.composer { position: relative; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 36px; max-height: 140px; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; resize: none; font: inherit; font-size: 13.5px; line-height: 20px; outline: none; }
.composer textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.tpl-pop { position: absolute; bottom: 58px; right: 20px; width: 260px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,24,40,.14); padding: 6px; display: flex; flex-direction: column; z-index: 6; }
.tpl-pop[hidden] { display: none; }
.tpl-pop > b { font-size: 11.5px; color: var(--ink-3); padding: 6px 10px; }
.tpl-pop button { border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.tpl-pop button:hover { background: var(--brand-tint); }
.qualifying { display: flex; gap: 8px; background: var(--brand-tint); border-radius: 12px; padding: 12px; font-size: 13px; }
.qualifying svg { width: 14px; height: 14px; color: var(--brand-text); flex: none; margin-top: 3px; animation: dots 1.4s infinite; }
.paybar.wide { width: 100%; margin: 0; height: 8px; }
.paybar i { transition: width .8s ease; }
.all-clear { display: flex; gap: 8px; align-items: center; color: var(--good); font-weight: 600; padding-top: 6px; }
.all-clear svg { width: 14px; height: 14px; }
td.late { color: var(--crit); font-weight: 600; }
.deal.dragging { opacity: .45; }
.stagepick { display: flex; flex-wrap: wrap; }

/* quote builder, live */
.qhint { margin-left: auto; font-size: 12px; color: var(--ink-2); align-self: center; }
.qin { width: 100%; height: 30px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; }
.qin:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.mk { display: grid; grid-template-columns: auto 1fr 48px; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; }
.mk input { accent-color: var(--brand); }
.mk b { text-align: right; font-variant-numeric: tabular-nums; }
.qtotal .pos { color: var(--good); font-weight: 700; }
.qtotal .neg { color: var(--crit); font-weight: 700; }
.budget { display: flex; gap: 8px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.budget svg { width: 13px; height: 13px; flex: none; margin-top: 3px; }
.budget.good { background: var(--good-bg); color: var(--good); }
.budget.warn { background: var(--warn-bg); color: var(--warn); }

/* new enquiry form */
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea { height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; font: inherit; }
.form textarea { height: auto; padding: 8px 10px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.form small { font-size: 12px; color: var(--ink-2); }
button.tpl { text-align: left; cursor: pointer; background: #fff; font: inherit; }

/* Meta signup walk-through */
.modal { position: fixed; inset: 0; background: rgba(17,19,24,.32); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { width: min(520px, 100%); background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 64px rgba(16,24,40,.24); animation: pop-in .25s ease-out; }
.modal-card > header { display: flex; justify-content: space-between; gap: 12px; }
.modal-card > header p { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.modal-card footer { display: flex; flex-direction: column; gap: 12px; }
.mflow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mflow li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; opacity: .45; transition: opacity .2s, background .2s; }
.mflow li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 1px; }
.mflow li b { display: block; font-size: 13.5px; }
.mflow li span { font-size: 12.5px; color: var(--ink-2); }
.mflow li.doing { opacity: 1; background: var(--brand-tint); }
.mflow li.doing i { border-color: var(--brand); border-top-color: transparent; animation: spin .7s linear infinite; }
.mflow li.done { opacity: 1; }
.mflow li.done i { background: var(--good); border-color: var(--good); position: relative; }
.mflow li.done i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: 30%; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.6s cubic-bezier(.2,.6,.4,1) forwards; }

/* guided tour */
.tour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(17,19,24,.52); outline: 3px solid var(--accent); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; }
.tour-card { position: fixed; width: 370px; max-width: calc(100vw - 24px); background: #fff; border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 24px 64px rgba(16,24,40,.3); pointer-events: auto; transition: left .35s ease, top .35s ease; animation: pop-in .25s ease-out; }
.tour-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--brand-text); }
.tour-top button { border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tour-card h3 { font-size: 18px; margin: 8px 0 6px; }
.tour-card p { font-size: 14px; line-height: 1.5; color: var(--ink); }
.tour-act { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.tour-act .btn[disabled] { opacity: .75; cursor: default; }
.tour-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.tourbtn { height: 32px; }

/* WanderBuddy tab */
.nav .new { margin-left: auto; font-size: 10.5px; font-weight: 700; background: var(--accent); color: #000; border-radius: 6px; padding: 0 6px; line-height: 18px; }
.funnel.tight .fstep { grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) 34px 38px; gap: 10px; }
.insight.act-row { align-items: center; flex-wrap: wrap; }
.insight.act-row > span { flex: 1 1 240px; }
.insight.act-row .btn, .insight.act-row .chip { flex: none; }
.afeed { display: flex; flex-direction: column; }
.frow { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.frow:first-child { border-top: 0; }
.frow .grow { flex: 1; min-width: 0; }
.frow time { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.fi { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--brand-tint); color: var(--brand-text); }
.fi svg { width: 14px; height: 14px; }
.fi-photo { background: #FCE8F1; color: #B4296A; }
.fi-vote, .fi-ask { background: var(--accent-tint); color: #7A5A00; }
.fi-reel { background: #EDE9FE; color: #5B3CC4; }
.fi-join, .fi-doc { background: var(--good-bg); color: var(--good); }
.fi-money { background: var(--accent-tint); color: #7A5A00; font-size: 12px; }
.spots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.spot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.spot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.spot figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 13px; }
.spot figcaption span:not(.chip) { color: var(--ink-2); font-size: 12.5px; }
.ref { display: block; font-size: 11.5px; color: var(--brand-text); font-weight: 600; }
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 13px; max-width: 760px; }
td .ref { white-space: nowrap; }
.privacy b { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.privacy b svg { width: 12px; height: 12px; }
.privacy div:first-child b { color: var(--good); }
.privacy div:last-child b { color: var(--crit); }
.privacy ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.budget.brand { background: var(--brand-tint); color: var(--ink); align-items: center; }
.budget.brand svg { color: var(--brand-text); }
.budget.brand span { flex: 1; }
@media (max-width: 1180px) { .spots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .spots, .privacy { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1180px) {
  .g-7-5, .g-5-7, .g-6-6, .builder { grid-template-columns: 1fr; }
  .kpis, .kpis.five { grid-template-columns: 1fr 1fr; }
  .inbox { grid-template-columns: 260px 1fr; }
  .context { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { grid-template-columns: 1fr; }
  .side { display: none; }
  .search-wrap, .bell-wrap { display: none; }
  .notes { left: 16px; right: 16px; width: auto; top: 72px; }
  .form .two { grid-template-columns: 1fr; }
  #view { padding: 20px 16px 64px; }
  .top { padding: 0 16px; }
  .kpis, .kpis.five { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .threads { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
}

/* Ask WanderBuddy */
.askbtn { height: 32px; background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand-text); }
.askbtn svg { width: 13px; height: 13px; }
.ask { position: fixed; top: 64px; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(16,24,40,.12); z-index: 35; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; }
.ask.open { transform: none; }
.ask[hidden] { display: none; }
.ask > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ask > header b { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.ask > header b svg { width: 14px; height: 14px; color: var(--brand-text); }
.ask > header span { font-size: 12px; color: var(--ink-2); }
.ask-log { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ask-hello p { font-size: 13.5px; margin-bottom: 8px; }
.ask-hello button, .ask-more button { display: block; width: 100%; text-align: left; margin-bottom: 6px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ask-hello button:hover, .ask-more button:hover { border-color: var(--brand); background: var(--brand-tint); }
.ask-more { display: flex; flex-direction: column; }
.ask-q { align-self: flex-end; max-width: 85%; background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; padding: 9px 12px; font-size: 13.5px; }
.ask-a { align-self: flex-start; max-width: 95%; background: var(--tile); border-radius: 14px 14px 14px 4px; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; }
.ask-a p { margin: 0 0 6px; }
.ask-a ul { margin: 4px 0 2px; padding-left: 18px; }
.ask-a li { margin-bottom: 4px; }
.ask-a a { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ask-by { display: flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--brand-text); margin-bottom: 4px; }
.ask-by svg, .ask-a.typing svg { width: 11px; height: 11px; }
.ask-by em { font-style: normal; font-weight: 600; color: var(--ink-2); margin-left: 6px; }
.ask-a.typing { display: flex; gap: 4px; align-items: center; color: var(--brand-text); }
.ask-a.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dots 1.1s infinite; }
.ask-a.typing i:nth-child(3) { animation-delay: .15s; }
.ask-a.typing i:nth-child(4) { animation-delay: .3s; }
.ask-form { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: flex-end; }
.ask-form textarea { flex: 1; resize: none; min-height: 38px; max-height: 120px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px; outline: none; }
.ask-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
@media (max-width: 760px) { .ask { top: 56px; width: 100vw; } }
.note-strip { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-tint); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.note-strip svg { width: 13px; height: 13px; flex: none; margin-top: 3px; color: #7A5A00; }

/* tasks */
.tasks .tk-list { display: flex; flex-direction: column; }
.tk { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tk:first-child { border-top: 0; }
.tk input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.tk .grow { flex: 1; min-width: 0; }
.tk .grow a, .tk .grow .linkish { color: var(--ink); font-weight: 600; text-align: left; }
.tk.done .grow, .tk.done .grow a, .tk.done .grow .linkish { color: var(--ink-3); text-decoration: line-through; font-weight: 400; }
.tk em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tk em.late { color: var(--crit); }
.tk .who { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.tk-add { display: flex; gap: 8px; margin-top: 12px; }
.tk-add input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; }
.tk-add select { height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; background: #fff; }
.tk-remind { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; flex-wrap: wrap; }
.tk-remind label { display: flex; gap: 6px; align-items: center; }
.tk-remind input { accent-color: var(--brand); }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-size: inherit; color: var(--brand-text); font-weight: 600; cursor: pointer; }

/* calendar and agenda */
.agenda { display: flex; flex-direction: column; gap: 6px; }
.ag { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.ag time { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ev { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; border: 0; text-align: left; cursor: pointer; background: var(--tile); color: var(--ink); }
.ev-go { background: var(--brand-tint); color: var(--brand-text); }
.ev-back { background: #EDE9FE; color: #5B3CC4; }
.ev-pay { background: var(--accent-tint); color: #7A5A00; }
.ev-late { background: var(--crit-bg); color: var(--crit); }
.ev-follow { background: var(--good-bg); color: var(--good); }
.ev-occasion { background: #FCE8F1; color: #B4296A; }
.ev-task { background: var(--tile); color: var(--ink-2); }
.cal-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-legend .ev { cursor: default; }
.cal-m { font-size: 15px; min-width: 150px; text-align: center; }
.cal-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cal-cell { min-height: 108px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n+1) { border-left: 0; }
.cal-cell b { font-size: 12px; color: var(--ink-2); }
.cal-cell.out { background: #FAFBFC; }
.cal-cell.out b { color: var(--ink-3); }
.cal-cell.today b { background: var(--brand); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.cal-cell em { font-style: normal; font-size: 11px; color: var(--ink-2); }

/* profiles, documents */
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer .body section h3 { font-size: 14px; margin-bottom: 6px; }
.doc-prev { border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; font-size: 12.5px; background: #fff; }
.doc-prev h1 { font-size: 18px; }
.doc-prev .head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--brand); padding-bottom: 10px; margin-bottom: 12px; }
.doc-prev .muted { color: var(--ink-2); }
.doc-prev table { margin: 10px 0; }
.doc-prev th, .doc-prev td { height: auto; padding: 6px 8px; font-size: 12px; }
.doc-prev td:first-child, .doc-prev th:first-child { padding-left: 0; }
.doc-prev .tot td { font-weight: 700; border-top: 2px solid var(--ink); }
.doc-prev .note { font-size: 11px; color: var(--ink-2); margin-top: 10px; }
.step .linkish { font-size: 12px; margin-left: 4px; }

/* broadcasts */
.bc-aud { display: flex; flex-direction: column; gap: 6px; }
.bc-aud button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; }
.bc-aud button span { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.bc-aud button.on { border: 2px solid var(--brand); padding: 9px 11px; background: var(--brand-tint); }
.bc-h { font-size: 14px; margin: 16px 0 8px; }

/* presence, phone menu */
.presence { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); position: relative; }
.presence .av { width: 28px; height: 28px; font-size: 10.5px; background: #EDE9FE; color: #5B3CC4; }
.presence > i { position: absolute; left: 20px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: #12B76A; border: 2px solid #fff; }
.presence em { font-style: normal; font-weight: 600; color: var(--ink); }
.menu-btn { display: none; border: 0; background: none; width: 36px; height: 36px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1280px) { .presence > span { display: none; } }
@media (max-width: 1180px) { .cal-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  body.nav-open .side { display: flex; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; box-shadow: 20px 0 48px rgba(16,24,40,.2); }
  .top { gap: 8px; }
  .crumbs { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
  .top-r { gap: 6px; }
  .tourbtn, .live, .presence, .top-r > .btn.cta { display: none; }
  .askbtn { padding: 0 10px; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-cell .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .ps-tabs .ps-tab { min-width: 0; flex: 1 1 100%; }
}
