/* ChambersDesk styles (B2e). Layout and surfaces follow docs/DESIGN_REFERENCE.md
   (measured from shubhammestry.framer.website); the font stays Urbanist.
   Every colour is a token below. */

@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fff0ca;
  --window: #f3f3f1;
  --canvas: #ffffff;
  --tile: #f2f2f0;
  --ink: #1c1c1e;
  --secondary: #4a4a4f;
  --muted: #6e6e73;  /* 4.9:1 on white; the reference's #86868b fails contrast for small text */
  --hairline: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --accent: #ffc533;
  --accent-soft: #ffd56c;
  --accent-tint: #fff6dc;
  --accent-ring: rgba(255, 197, 51, 0.85);
  --warm-shadow: rgba(166, 128, 33, 0.5);
  --scrim: rgba(40, 30, 10, 0.28);
  --ok: #1f7a3d;
  --ok-soft: #e8f6ec;
  --warn: #8f5b00;
  --warn-soft: #fff1d0;
  --bad: #c62828;
  --bad-soft: #fdebeb;
  --on-accent: #1c1c1e;  /* text on gold, the same in both themes */
  --frame: rgba(255, 255, 255, 0.92);
  --raised: #ffffff;  /* a pressed toggle, a hovered pill */
  --hover: rgba(0, 0, 0, 0.05);
  --tile-hover: #ebebe8;
  --shimmer: #fafaf8;
  --tip: rgba(28, 28, 30, 0.92);
  --tip-ink: #ffffff;
  --glass-hi: rgba(255, 255, 255, 0.95);
  --shadow: rgba(30, 30, 40, 0.2);
  --panel-shadow: rgba(30, 30, 40, 0.45);
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lift: inset 0 1px 0 var(--glass-hi), 0 6px 14px -8px var(--shadow);
  --lift-strong: inset 0 1px 0 var(--glass-hi), 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 36px -16px var(--shadow);
  --card-shadow: 0 14px 30px -24px var(--shadow);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* Dark theme: the reference site's dark set (docs/DESIGN_REFERENCE.md). The gold accent
   stays; status colours are lifted so they still read on dark surfaces. theme.js sets
   data-theme on <html> before the page paints. */
:root[data-theme="dark"] {
  --page: #241f11;
  --window: #141415;
  --canvas: #1c1c1e;
  --tile: #2c2c2f;
  --ink: #f4f4f2;
  --secondary: #c7c7cc;
  --muted: #98989f;
  --hairline: rgba(255, 255, 255, 0.1);
  --glass: rgba(62, 62, 66, 0.55);
  --accent-tint: rgba(255, 197, 51, 0.16);
  --warm-shadow: rgba(166, 128, 33, 0.35);
  --scrim: rgba(0, 0, 0, 0.55);
  --ok: #5cc98a;
  --ok-soft: rgba(92, 201, 138, 0.16);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, 0.16);
  --bad: #ff7b72;
  --bad-soft: rgba(255, 123, 114, 0.16);
  --frame: rgba(255, 255, 255, 0.12);
  --raised: #3a3a3e;
  --hover: rgba(255, 255, 255, 0.07);
  --tile-hover: #343438;
  --shimmer: #38383c;
  --tip: rgba(246, 246, 244, 0.96);
  --tip-ink: #1c1c1e;
  --glass-hi: rgba(255, 255, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.6);
  --panel-shadow: rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; transition: background 0.6s, color 0.6s; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.muted { color: var(--muted); }
.secondary { color: var(--secondary); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.title-xl { font-size: 38px; font-weight: 650; letter-spacing: -1.33px; line-height: 1.1; }
.title-l { font-size: 26px; font-weight: 650; letter-spacing: -0.7px; line-height: 1.15; }
.title-m { font-size: 17px; font-weight: 650; letter-spacing: -0.3px; }

/* -- window, rail, canvas --------------------------------------------------- */
.land { min-height: 100%; padding: 20px; display: flex; }
.win {
  flex: 1; display: flex; min-height: calc(100vh - 40px); min-width: 0;
  background: var(--window); border: 6px solid var(--frame); border-radius: 30px;
  box-shadow: 0 0 0 1.5px var(--accent-ring), 0 40px 90px -40px var(--warm-shadow);
  transition: background 0.6s, border-color 0.6s, box-shadow 0.6s;
}
.rail { width: 58px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.rail .spacer { flex: 1; }
.rail-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--secondary);
  position: relative; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.rail-btn:hover { background: var(--hover); color: var(--ink); }
.rail-btn[aria-current="page"] { background: var(--canvas); color: var(--ink); box-shadow: var(--lift); }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--tip); color: var(--tip-ink); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 30;
}
.rail-btn:hover::after, .rail-btn:focus-visible::after { opacity: 1; }
.rail-logo { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-bottom: 8px; }
.rail-logo svg { width: 20px; height: 20px; }
.rail hr { width: 22px; border: 0; border-top: 1px solid var(--hairline); margin: 6px 0; }

.canvas {
  flex: 1; min-width: 0; margin: 6px 6px 6px 0; background: var(--canvas); border-radius: 22px;
  box-shadow: 0 0 0 1px var(--hairline); display: flex; flex-direction: column; overflow: hidden;
  transition: background 0.6s;
}
.canvas-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-tint); color: var(--ink); font-weight: 650; box-shadow: 0 0 0 1px var(--hairline); flex: none; }
.who b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.18px; }
.who small { display: block; font-size: 12.5px; color: var(--muted); }
.canvas-body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 28px 36px; }
.page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.page-head h1:focus { outline: none; }

/* -- pills: buttons, chips, toggle, tabs -------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--lift);
  font-size: 13px; font-weight: 550; white-space: nowrap; text-decoration: none; color: var(--ink);
  transition: transform 0.1s, background 0.15s;
}
.pill:hover { background: var(--raised); }
.pill:active { transform: scale(0.97); }
.pill svg { width: 15px; height: 15px; }
.pill.gold { background: var(--accent); color: var(--on-accent); border-color: rgba(0, 0, 0, 0.04); }
.pill.gold:hover { background: var(--accent-soft); }
.pill.big { height: 50px; padding: 0 22px; font-size: 15px; font-weight: 650; }
.pill.block { width: 100%; }
.pill:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-btn { height: auto; padding: 9px 15px; font-size: 12.5px; font-weight: 500; }
.toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--hairline); }
.toggle a, .toggle button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 550; color: var(--secondary); text-decoration: none;
}
.toggle a svg, .toggle button svg { width: 15px; height: 15px; }
.toggle [aria-current="page"], .toggle [aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--lift); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--tile); color: var(--secondary); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.gold { background: var(--accent-tint); color: var(--ink); }
.link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.link:hover { background: var(--accent-tint); }

/* -- cards, tiles, rows -------------------------------------------------------- */
.card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 26px; padding: 8px; box-shadow: var(--card-shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tile { background: var(--tile); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; transition: background 0.15s; }
a.tile:hover { background: var(--tile-hover); }
.tile b { font-size: 24px; font-weight: 700; letter-spacing: -0.72px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 11.5px; font-weight: 550; color: var(--muted); }
.tile.alert b { color: var(--warn); }
.rows { display: flex; flex-direction: column; padding-top: 4px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: inherit;
  transition: background 0.15s; min-width: 0;
}
a.row:hover, button.row:hover { background: var(--tile); }
.row .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--tile); display: grid; place-items: center; flex: none; color: var(--secondary); }
.row .ic svg { width: 16px; height: 16px; }
.row .ic.gold { background: var(--accent-tint); color: var(--ink); }
.row .ic.warn { background: var(--warn-soft); color: var(--warn); }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -0.12px; overflow-wrap: anywhere; }
.row .main span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row .meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; text-align: right; }
.row p { font-size: 13px; color: var(--secondary); margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* -- table inside a card --------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.clean { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; font-size: 13.5px; }
table.clean th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; white-space: nowrap; }
table.clean td { padding: 11px 12px; border-top: 1px solid var(--hairline); vertical-align: middle; }
table.clean td:first-child { font-weight: 650; }
table.clean .n { text-align: right; font-variant-numeric: tabular-nums; }
table.clean tr.clickable { cursor: pointer; }
table.clean tr.clickable:hover td { background: var(--tile); }

/* -- chat ------------------------------------------------------------------------ */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 20px 40px; text-align: center; }
.chat-empty .lede { color: var(--muted); font-size: 15px; max-width: 46ch; margin-top: -10px; }
.ask {
  width: min(600px, 100%); height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 22px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--lift-strong);
}
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 18px; letter-spacing: -0.18px; }
.ask input::placeholder { color: var(--muted); }
.send { width: 41px; height: 41px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; transition: transform 0.1s; }
.send:hover { background: var(--accent-soft); }
.send:active { transform: scale(0.94); }
.send:disabled { background: var(--tile); color: var(--muted); }
.send svg { width: 18px; height: 18px; }
.ask:focus-within { box-shadow: 0 0 0 3px var(--accent-tint), var(--lift-strong); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 18px; }
.chat-col { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
/* One message: full column width, so the user's bubble can sit on the right. */
.chat-msg { display: flex; flex-direction: column; gap: 14px; }
.chat-empty .chips { align-items: center; }
.persona { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 10px; }
.persona .orb { width: 44px; height: 44px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #fff3cf, var(--accent) 70%); display: grid; place-items: center; box-shadow: 0 10px 22px -12px var(--warm-shadow); }
.persona .orb svg { width: 22px; height: 22px; }
.name-pill { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--lift); }
.msg-user { align-self: flex-end; max-width: 78%; background: var(--accent-soft); color: var(--on-accent); border-radius: 22px 22px 8px 22px; padding: 11px 16px; font-size: 15.5px; letter-spacing: -0.09px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-ai { padding: 16px 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-ai.offline { white-space: normal; display: flex; flex-direction: column; gap: 10px; }
.msg-ai .note { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: 4px; white-space: normal; }
.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-dock { padding: 10px 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.on i { background: var(--ok); }
.status-dot.off i { background: var(--warn); }

/* -- forms ------------------------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 550; color: var(--secondary); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--glass); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 15px;
  font-size: 15px; box-shadow: var(--lift);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: 0 0 0 3px var(--accent-tint), var(--lift); border-color: var(--accent); }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.search-pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: var(--lift); flex: 0 1 300px; min-width: 170px; }
.search-pill input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 14px; }
.search-pill svg { width: 15px; height: 15px; color: var(--muted); }
.search-pill:focus-within { box-shadow: 0 0 0 3px var(--accent-tint), var(--lift); border-color: var(--accent); }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; margin: 0; padding: 8px 12px 12px; }
.facts dt { color: var(--muted); font-weight: 550; }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* -- states ---------------------------------------------------------------------- */
.state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 16px; }
.state p { font-size: 13px; color: var(--secondary); max-width: 340px; }
.state.error .title-m { color: var(--bad); }
.skeleton { display: flex; flex-direction: column; gap: 8px; }
.skeleton span { display: block; height: 54px; border-radius: 18px; background: linear-gradient(90deg, var(--tile) 0%, var(--shimmer) 50%, var(--tile) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.notice { border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.notice.bad { background: var(--bad-soft); }
.notice.bad b { color: var(--bad); }

/* -- sign-in ------------------------------------------------------------------------ */
.si-wrap { flex: 1; display: grid; place-items: center; padding: 30px 20px; }
.si-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.si-box .head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 6px; }

/* -- side panel and toast --------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(4px); z-index: 50; display: flex; justify-content: flex-end; padding: 16px; }
.sidepanel { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 26px; padding: 22px; width: 480px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; overflow: auto; box-shadow: 0 30px 70px -30px var(--panel-shadow); animation: slidein 0.36s var(--ease) both; }
@keyframes slidein { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--tip); color: var(--tip-ink); padding: 11px 18px; border-radius: 999px; font-weight: 550; z-index: 80; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }

/* -- responsive ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .land { padding: 0; }
  .win { border: 0; border-radius: 0; min-height: 100vh; box-shadow: none; flex-direction: column-reverse; }
  .rail {
    width: auto; flex-direction: row; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    position: sticky; bottom: 0; background: var(--window); border-top: 1px solid var(--hairline); z-index: 20; gap: 0;
  }
  .rail .spacer, .rail hr, .rail-logo { display: none; }
  .rail-btn::after { display: none; }
  .canvas { margin: 0; border-radius: 0; box-shadow: none; }
  .canvas-head { padding: 12px 14px 0; }
  .canvas-body { padding: 18px 14px 28px; }
  .title-xl { font-size: 30px; letter-spacing: -1px; }
  .ask { height: 58px; }
  .ask input { font-size: 16px; }
  /* On a phone the page scrolls, not the chat box; the input stays just above the nav bar. */
  .chat-log { flex: none; overflow: visible; padding: 8px 14px 12px; }
  .chat-dock { position: sticky; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); background: var(--canvas); z-index: 10; padding: 10px 14px 12px; }
  .chat-empty { min-height: calc(100vh - 160px); }
  .overlay { padding: 0; }
  .sidepanel { width: 100%; border-radius: 0; border: 0; }
  .frow { grid-template-columns: 1fr; }
  .who .whotext { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Team picker: a plain list of checkboxes */
fieldset.team { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.team legend { font-weight: 600; margin-bottom: 6px; padding: 0; }

/* Approval review: the text that will go out, shown as written */
.letter { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--tile); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; max-height: 50vh; overflow: auto; }
.quote { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; color: var(--secondary); }
.label { font-weight: 600; font-size: 13px; }
button.row { width: 100%; text-align: left; }
.notice:not(.bad) { background: var(--warn-soft); }

/* The name at the top opens "Your account" */
button.who { border-radius: 999px; padding: 2px 10px 2px 2px; text-align: left; }
button.who:hover { background: var(--hover); }
.notice:not(.bad) span { color: var(--ink); }

/* Second sign-in step */
.code-input { font-size: 22px; letter-spacing: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--secondary); line-height: 1.5; }
.setup-key { display: block; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--tile); color: var(--ink); font: 600 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 1px; user-select: all; overflow-wrap: anywhere; }
.recovery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recovery-list li { padding: 8px 10px; border-radius: 10px; background: var(--tile); text-align: center; font: 600 14px ui-monospace, "Cascadia Mono", Consolas, monospace; }
.si-box button.link { align-self: center; }

/* An enquiry's conversation: their messages on the left, the firm's replies on the right */
.thread { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 4px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bubble.in { align-self: flex-start; background: var(--tile); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--accent-tint); border-bottom-right-radius: 6px; }
.hits { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* People: a photo where there is one, initials where there isn't */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.person.end { justify-content: flex-end; }
.faces { display: inline-flex; }
.faces .avatar + .avatar { margin-left: -6px; }
.photo-editor { display: flex; align-items: center; gap: 16px; }
.check .avatar { margin-right: 2px; }

/* Court diary: row buttons wrap under the text on a phone; the morning summary prints alone. */
.row > .chips { flex: none; justify-content: flex-end; }
@media (max-width: 640px) { .row:has(> .chips) { flex-wrap: wrap; } .row > .chips { width: 100%; } }
@media print {
  body > *:not(.overlay), .app > *:not(.overlay), .sidepanel button { display: none !important; }
  .overlay { position: static; background: none; backdrop-filter: none; padding: 0; }
  .sidepanel { width: auto; border: 0; box-shadow: none; animation: none; }
}
