/* Srishti CRM — tokens follow the RapidLedger v2 system (quiet neutrals,
   one accent, 14px cards, 32px controls) with Srishti's brand red. */
:root {
  --ground: #f7f7f8;
  --surface: #ffffff;
  --raised: #f6f6f7;
  --sunken: #efeff1;
  --ink: #1f1d1d;
  --text: #333333;
  --subtle: #74716f;
  --faint: #a29f9c;
  --rule: #e7e5e4;
  --rule-strong: #d3d0ce;

  --accent: #c8302e;        /* Srishti red */
  --accent-hover: #a92624;
  --accent-wash: #fbeeed;
  --accent-ink: #ffffff;

  --ok: #2f7a3a; --ok-wash: #ebf5ec;
  --warn: #a4580a; --warn-wash: #fbf2e5;
  --danger: #b42318; --danger-wash: #fceeed;
  --info: #1f5fa8; --info-wash: #eaf1fa;
  --ai: #6a3fb5; --ai-wash: #f2ecfb;

  --shadow-sm: 0 1px 2px rgba(24, 16, 12, .05);
  --shadow: 0 1px 3px rgba(24, 16, 12, .08), 0 1px 2px rgba(24, 16, 12, .04);
  --shadow-md: 0 6px 16px rgba(24, 16, 12, .10), 0 2px 4px rgba(24, 16, 12, .05);
  --shadow-lg: 0 18px 40px rgba(24, 16, 12, .16), 0 4px 8px rgba(24, 16, 12, .06);
  --ring: 0 0 0 3px rgba(200, 48, 46, .16);

  --r-chip: 6px; --r-ctl: 8px; --r-card: 14px; --r-panel: 10px;
  --h-ctl: 34px; --h-row: 44px;
  --nav: 236px;

  --font: "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--text);
  background: var(--ground); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--subtle); } .faint { color: var(--faint); }
.small { font-size: 12px; } .mono { font-family: var(--mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; }
.between { justify-content: space-between; } .grow { flex: 1; } .hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }

/* ── shell ───────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--nav) 1fr; min-height: 100vh; }
.nav { background: var(--surface); border-right: 1px solid var(--rule); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; border-bottom: 1px solid var(--rule); margin-bottom: 10px; }
.brand img { height: 38px; }
.brand .t { font-weight: 800; color: var(--ink); line-height: 1.1; }
.brand .s { font-size: 11px; color: var(--subtle); letter-spacing: .04em; text-transform: uppercase; }
.nav .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 12px 10px 4px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--text); font-weight: 600; }
.nav a svg { width: 17px; height: 17px; stroke: currentColor; flex: none; }
.nav a:hover { background: var(--raised); }
.nav a.on { background: var(--accent-wash); color: var(--accent); }
.nav a .pill { margin-left: auto; }
.nav .live-link { background: var(--ink); color: #fff; margin: 6px 0; }
.nav .live-link:hover { background: #000; }
.nav .live-link.on { background: var(--accent); color: #fff; }
.nav .me { margin-top: auto; border-top: 1px solid var(--rule); padding: 12px 8px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.main { min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.86); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.page { padding: 24px 28px 60px; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--subtle); }

/* ── controls ────────────────────────────────────────── */
.btn { height: var(--h-ctl); padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--rule-strong); background: var(--surface); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; box-shadow:none; }
.btn:hover { background: var(--raised); }
.btn:focus-visible, .input:focus, .select:focus, textarea:focus { outline: none; box-shadow:none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { border-color: transparent; box-shadow:none; background: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; }
.input, .select, textarea.input { height: var(--h-ctl); padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--surface); width: 100%; }
textarea.input { height: auto; padding: 8px 10px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--subtle); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; background: var(--sunken); border-radius: var(--r-ctl); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 6px; font-weight: 600; color: var(--subtle); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow:none; }

/* ── cards & tables ──────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow:none; }
.card-h { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--rule); }
.card-b { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .l { font-size: 12px; font-weight: 600; color: var(--subtle); }
.kpi .v { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-top: 4px; }
.kpi.alert .v { color: var(--danger); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--subtle); background: var(--raised); padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #fcfbfb; }
.table tr:last-child td { border-bottom: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.list-item:last-child { border-bottom: 0; }
.empty { padding: 28px; text-align: center; color: var(--faint); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--sunken); color: var(--subtle); white-space: nowrap; }
.pill.hot { background: var(--danger-wash); color: var(--danger); }
.pill.warm { background: var(--warn-wash); color: var(--warn); }
.pill.cold { background: var(--info-wash); color: var(--info); }
.pill.ok { background: var(--ok-wash); color: var(--ok); }
.pill.ai { background: var(--ai-wash); color: var(--ai); }
.pill.red { background: var(--accent); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ── pipeline ────────────────────────────────────────── */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.lane { background: var(--sunken); border-radius: var(--r-card); padding: 10px; min-height: 420px; }
.lane.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.lane-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); padding: 4px 4px 10px; }
.deal { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 10px 12px; margin-bottom: 8px; box-shadow:none; cursor: grab; }
.deal:hover { box-shadow:none; }
.deal .n { font-weight: 700; color: var(--ink); }
.deal .na { font-size: 12px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--rule); }
.deal .na.none { color: var(--danger); font-weight: 600; }

/* ── lead detail ─────────────────────────────────────── */
.lead-head { display: flex; gap: 16px; align-items: center; }
.lead-head .avatar { width: 52px; height: 52px; font-size: 18px; }
.stages { display: flex; gap: 4px; margin: 16px 0; }
.stages button { flex: 1; height: 34px; border: 0; background: var(--sunken); color: var(--subtle); font-weight: 700; font-size: 12px; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.stages button:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.stages button.done { background: #f3d6d5; color: var(--accent-hover); }
.stages button.on { background: var(--accent); color: #fff; }
.stages button.lost.on { background: var(--ink); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; }
.kv dt { color: var(--subtle); font-size: 12.5px; font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.kv dd.empty-v { color: var(--faint); font-weight: 400; }
.timeline { position: relative; }
.tl { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.tl .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sunken); color: var(--subtle); }
.tl .ic svg { width: 15px; height: 15px; stroke: currentColor; }
.tl.ai .ic { background: var(--ai-wash); color: var(--ai); }
.tl.stage .ic { background: var(--accent-wash); color: var(--accent); }
.tl.visit .ic { background: var(--ok-wash); color: var(--ok); }
.next-action { border: 1px solid var(--accent); background: var(--accent-wash); border-radius: var(--r-panel); padding: 12px 14px; }
.next-action.none { border-color: var(--danger); background: var(--danger-wash); }

/* ── live capture ────────────────────────────────────── */
.live-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.live { display: grid; grid-template-columns: 1fr 440px; gap: 16px; align-items: start; }
.mic { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow:none; flex: none; position: relative; }
.mic svg { width: 24px; height: 24px; stroke: currentColor; }
.mic.on { background: var(--ink); }
.mic.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.meter { width: 120px; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s; }
.transcript { height: 540px; overflow-y: auto; padding: 8px 0; scroll-behavior: smooth; }
.seg-line { display: flex; gap: 12px; padding: 8px 16px; animation: fadein .35s ease; }
.seg-line .ts { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 3px; flex: none; width: 42px; }
.seg-line .tp { font-size: 10.5px; font-weight: 800; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.seg-line .tx { color: var(--ink); font-size: 15px; line-height: 1.5; }
.seg-line.pending .tx { color: var(--faint); font-style: italic; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ask { background: linear-gradient(135deg, #2a1d1d, #1f1d1d); color: #fff; border: 0; }
.ask .card-h { border-color: rgba(255,255,255,.12); }
.ask h3 { color: #fff; }
.ask .q { padding: 10px 16px; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); animation: fadein .35s ease; }
.ask .q:last-child { border-bottom: 0; }
.ask .q::before { content: "“"; color: #f08a87; font-weight: 800; margin-right: 4px; }
.prop { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rule); animation: fadein .35s ease; }
.prop:last-child { border-bottom: 0; }
.prop input[type=checkbox] { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.prop .k { font-size: 11.5px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; }
.prop .val { border: 0; padding: 0; font-weight: 700; color: var(--ink); font-size: 14.5px; width: 100%; background: transparent; }
.prop .val:focus { outline: none; box-shadow:none; }
.prop .ev { font-size: 12px; color: var(--subtle); font-style: italic; margin-top: 2px; }
.prop.new { background: #fffaf0; }
.thinking { display: inline-flex; gap: 3px; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--ai); animation: blink 1s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ── walk-in ─────────────────────────────────────────── */
.walkin { max-width: 560px; margin: 24px auto; }
.walkin .card-b { padding: 28px; }
.walkin .big .input { height: 48px; font-size: 18px; }
.result { border-radius: var(--r-card); padding: 18px; margin-top: 16px; }
.result.fresh { background: var(--ok-wash); }
.result.re { background: var(--info-wash); }

/* ── modal / toast / login ───────────────────────────── */
.backdrop { position: fixed; inset: 0; background: rgba(20, 14, 12, .38); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fadein .15s; }
.modal { background: var(--surface); border-radius: 16px; box-shadow:none; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.modal .card-h { padding: 16px 20px; }
.modal .card-b { padding: 20px; }
.modal .foot { padding: 14px 20px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; box-shadow:none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--danger); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: linear-gradient(160deg, #2b1514 0%, #5a1d1b 55%, #c8302e 130%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .art h1 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 460px; font-weight: 700; }
.login .art p { opacity: .8; max-width: 420px; font-size: 15px; }
.login .art .logo { background: #fff; border-radius: 14px; padding: 10px 14px; width: max-content; }
.login .art .logo img { height: 54px; display: block; }
.login .form { display: grid; place-items: center; padding: 40px; }
.login .form > div { width: 100%; max-width: 360px; }
.users { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.users button { text-align: left; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--surface); padding: 8px 10px; cursor: pointer; }
.users button.on { border-color: var(--accent); box-shadow:none; }
.users button b { display: block; color: var(--ink); font-size: 13px; }
.users button span { font-size: 11.5px; color: var(--subtle); }

@media (max-width: 1100px) { .live { grid-template-columns: 1fr; } .cols { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; } .nav { display: none; } .login { grid-template-columns: 1fr; } .login .art { display: none; }
  .page { padding: 16px; } .topbar { padding: 0 16px; }
}

/* ── RapidLedger-style shell ─────────────────────────────────────────── */
.rl { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.rl-head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--rule); z-index: 6; }
.rl-head .btn { height: 34px; }
.rl-head .btn svg { width: 16px; height: 16px; }
.rl-ic { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; color: var(--subtle); cursor: pointer; }
.rl-ic:hover { background: var(--raised); color: var(--ink); }
.rl-ic svg { width: 18px; height: 18px; stroke: currentColor; }
.pswitch { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; min-width: 220px; background: var(--surface); }
.pswitch:hover { border-color: var(--rule-strong); background: var(--raised); }
.pswitch > svg { width: 14px; height: 14px; stroke: var(--faint); margin-left: auto; }
.plogo { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; font-size: 11px; color: var(--accent); }
.plogo img { width: 28px; height: 28px; object-fit: contain; }
.plogo.sm { width: 28px; height: 28px; background: var(--accent-wash); border: 0; }
.pname { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pname b { color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.pname span { font-size: 11.5px; color: var(--subtle); white-space: nowrap; }
.rl-sep { width: 1px; height: 22px; background: var(--rule); }
.rl-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.rl-crumb svg { width: 12px; height: 12px; stroke: var(--faint); }
.rl-crumb b { color: var(--ink); font-weight: 700; }
.rl-search { flex: 1; display: flex; justify-content: center; min-width: 0; }
.rl-search button { width: 100%; max-width: 520px; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 12px; border: 1px solid var(--rule-strong); border-radius: 9px; background: var(--raised); color: var(--subtle); cursor: pointer; font-size: 13.5px; }
.rl-search button:hover { border-color: var(--accent); background: var(--surface); color: var(--ink); }
.rl-search svg { width: 16px; height: 16px; stroke: currentColor; }
.rl-search span { flex: 1; text-align: left; }
.rl-search kbd { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 1px 5px; background: var(--surface); color: var(--faint); }
.rl-user { cursor: pointer; }
.rl-body { flex: 1; display: flex; min-height: 0; }
.rl-rail { width: 72px; flex: none; background: var(--sunken); border-right: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; overflow-y: auto; }
.rl-rail button { width: 62px; border: 0; background: transparent; border-radius: 10px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--subtle); cursor: pointer; font-size: 10.5px; font-weight: 700; }
.rl-rail button svg { width: 21px; height: 21px; stroke: currentColor; }
.rl-rail button:hover { background: var(--surface); color: var(--ink); }
.rl-rail button.on { background: var(--surface); color: var(--accent); box-shadow:none; }
.rl-col { width: 236px; flex: none; background: var(--surface); border-right: 1px solid var(--rule); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; transition: margin .18s ease; }
.rl-col.hidden { margin-left: -236px; }
.rl-col-h { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 4px 10px 8px; }
.rl-col a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.rl-col a:hover { background: var(--raised); color: var(--ink); }
.rl-col a.on { background: var(--accent-wash); color: var(--accent); }
.rl-col-foot { margin-top: auto; border-top: 1px solid var(--rule); padding: 12px 10px 0; font-size: 13px; }
.rl-col-foot b { color: var(--ink); }
.rl-main { flex: 1; min-width: 0; overflow-y: auto; background: var(--ground); }
.rl-main .page { padding: 22px 26px 60px; max-width: 1500px; }
.rl-pop { position: fixed; z-index: 70; min-width: 290px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow:none; padding: 6px; animation: fadein .12s; }
.rl-pop button, .rl-pop a { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.rl-pop button:hover, .rl-pop a:hover { background: var(--raised); }
.rl-pop button.on { background: var(--accent-wash); }
.rl-pop button svg { width: 16px; height: 16px; stroke: var(--accent); }

/* ── stacking plan ─────────────────────────────────────────────────── */
.floor { display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px; }
.floor .fl { width: 34px; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.unit { flex: 1; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; text-align: left; cursor: pointer; background: var(--surface); display: flex; flex-direction: column; font-size: 11.5px; color: var(--subtle); line-height: 1.3; transition: transform .1s; }
.unit b { color: var(--ink); font-size: 12.5px; }
.unit:hover { transform: translateY(-1px); box-shadow:none; }
.unit.available { border-left: 4px solid var(--ok); }
.unit.blocked { border-left: 4px solid var(--warn); background: var(--warn-wash); }
.unit.booked { border-left: 4px solid var(--faint); background: var(--sunken); opacity: .7; }
.unit.dim { opacity: .2; }
.ulegend { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.ulegend.available { background: var(--ok); } .ulegend.blocked { background: var(--warn); } .ulegend.booked { background: var(--faint); }

/* ── live capture: conversation view ───────────────────────────────── */
.bubble-row { display: flex; gap: 10px; padding: 6px 16px; animation: fadein .3s ease; }
.bubble-row.staff { flex-direction: row-reverse; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; background: var(--raised); color: var(--ink); font-size: 15px; line-height: 1.45; }
.bubble-row.staff .bubble { background: var(--accent-wash); }
.bubble .who { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.spk { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.spk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 1100px) { .rl-search span, .rl-search kbd, .rl-crumb { display: none; } .pswitch { min-width: 0; } }
.unit.sold, .unit.on-hold { border-left: 4px solid var(--rule-strong); background: var(--sunken); opacity: .55; }
.ulegend.on-hold { background: var(--rule-strong); }

/* No shadows anywhere (owner, 25 Nov): borders + a red focus outline instead */
*,*::before,*::after{box-shadow:none!important;text-shadow:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
