/* Inter (SIL Open Font Licence), hosted here so the lettering is the same on every computer. Latin subset, weights 400–700. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
/* Staffroom. No inline styles anywhere (strict CSP): everything lives here. */
:root {
  --bg: #f6f5f1; --panel: #ffffff; --ink: #1c1a24; --muted: #6b6878; --line: #e6e3dc; --soft: #efede7;
  --brand: #5b4bdb; --brand-ink: #ffffff; --brand-soft: #ece9ff; --ok: #1f8a5b; --ok-soft: #e3f5ec;
  --warn: #b26b00; --warn-soft: #fff3dc; --bad: #c0392b; --bad-soft: #fde8e6;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 16, 40, .06), 0 4px 16px rgba(20, 16, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131a; --panel: #1d1c25; --ink: #eceaf3; --muted: #9c98ab; --line: #2e2c39; --soft: #25232f;
    --brand: #8b7dff; --brand-ink: #14131a; --brand-soft: #2b2650; --ok: #4cc38a; --ok-soft: #173327;
    --warn: #f0b04a; --warn-soft: #3a2c12; --bad: #ff7b6e; --bad-soft: #3d1c19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.section-title { margin: 28px 0 12px; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.field { margin-bottom: 14px; }
.field.error input, .field.error textarea, .field.error select { border-color: var(--bad); }
.form-error { color: var(--bad); background: var(--bad-soft); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-bottom: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Cards and panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 17px; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; text-align: center; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); }
.pill.review { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--brand-soft); color: var(--brand); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.paused, .pill.error { background: var(--bad-soft); color: var(--bad); }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-bottom: 16px; }

/* Avatars: one colour per team member */
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff; background: var(--brand); }
.av.sm { width: 28px; height: 28px; font-size: 13px; }
.av.lg { width: 64px; height: 64px; font-size: 26px; }
.av.xl { width: 88px; height: 88px; font-size: 36px; }
.av-maya { background: linear-gradient(135deg, #ff8a5c, #e8505b); }
.av-leo { background: linear-gradient(135deg, #3bb2a0, #1d7f8c); }
.av-zara { background: linear-gradient(135deg, #f06bc4, #a04ee0); }
.av-sam { background: linear-gradient(135deg, #4f8cff, #2f5bd3); }
.av-iris { background: linear-gradient(135deg, #f7b733, #e57b20); }
.av-theo { background: linear-gradient(135deg, #6c7a89, #34495e); }
.av-nina { background: linear-gradient(135deg, #7bd389, #2f9e5b); }

/* Signed-in layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); padding: 4px 8px 16px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.nav a .badge { margin-left: auto; }
.nav .ico { width: 28px; text-align: center; font-size: 16px; }
.nav-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 16px 10px 6px; }
.nav .who { line-height: 1.2; }
.nav .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.side-foot { margin-top: auto; padding: 14px 10px 0; font-size: 13px; color: var(--muted); }
.meter { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--brand); width: 0; }
.main { min-width: 0; }
.page { max-width: 1060px; margin: 0 auto; padding: 28px 28px 60px; }
.page.wide { max-width: none; padding: 0; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.topbar { display: none; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.member { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.member:hover { text-decoration: none; border-color: var(--brand); }
.member .role { color: var(--muted); font-size: 13px; margin-top: -4px; }
.member p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list a.title:hover { color: var(--brand); text-decoration: none; }
.list .sub { color: var(--muted); font-size: 13px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > .card + .card { margin-top: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.checklist li .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist li.done .title { text-decoration: line-through; color: var(--muted); }

/* Employee page + chat */
.emp-head { display: flex; gap: 16px; align-items: center; padding: 22px 28px 0; flex-wrap: wrap; }
.emp-head h1 { margin: 0; font-size: 24px; }
.emp-head > div:nth-child(2) { flex: 1; min-width: 220px; }
.chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.chat-page .chat-wrap { flex: 1; min-height: 0; height: auto; }
.emp-head .tabs { flex-basis: 100%; margin: 6px 0 0; }
.chat-wrap { display: grid; grid-template-columns: 240px 1fr; height: calc(100vh - 138px); border-top: 1px solid var(--line); margin-top: -1px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 10px; }
.chat-list a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list a:hover { background: var(--soft); text-decoration: none; }
.chat-list a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.chat-list .btn { width: 100%; margin-bottom: 10px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 24px 28px; }
.msgs-inner { max-width: 780px; margin: 0 auto; }
.msg { display: flex; gap: 12px; margin-bottom: 22px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--brand); color: var(--brand-ink); border-radius: 16px 16px 4px 16px; padding: 10px 14px; max-width: 80%; white-space: pre-wrap; }
.msg.model .body { flex: 1; min-width: 0; }
.msg.model .name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.msg-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.thinking { color: var(--muted); font-style: italic; }
.thinking::after { content: '…'; animation: dots 1.2s steps(3) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1em; } }
.sources { margin-top: 8px; font-size: 13px; }
.sources a { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; background: var(--soft); border-radius: 6px; padding: 1px 8px; margin: 3px 4px 0 0; color: var(--muted); }
.composer { border-top: 1px solid var(--line); padding: 14px 28px 18px; background: var(--panel); }
.composer-inner { max-width: 780px; margin: 0 auto; }
.composer textarea { min-height: 52px; max-height: 260px; resize: none; }
.composer .row { margin-top: 8px; }
.hello { text-align: center; padding: 40px 10px 10px; }
.hello .av { margin-bottom: 12px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.starters button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.starters button:hover { border-color: var(--brand); color: var(--brand); }
.emp-body { padding: 24px 28px 60px; max-width: 1000px; }

/* Markdown output */
.md { overflow-wrap: anywhere; }
.md h1 { font-size: 22px; margin: .2em 0 .6em; } .md h2 { font-size: 18px; margin: 1.2em 0 .5em; } .md h3, .md h4 { font-size: 16px; margin: 1em 0 .4em; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md table { margin: 0 0 .85em; }
.md ul, .md ol { padding-left: 1.4em; }
.md li { margin: .2em 0; }
.md blockquote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); }
.md code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.md pre { background: var(--soft); padding: 12px; border-radius: 10px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.md th { background: var(--soft); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }

/* Work detail */
.doc { font-size: 15.5px; }
.doc-edit textarea { min-height: 460px; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.work-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.side-card { position: sticky; top: 20px; }
.work-layout { display: grid; grid-template-columns: 1fr 280px; gap: 18px; align-items: start; }
.work-layout .side-card .btn { width: 100%; margin-bottom: 8px; }
.preview-text { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Jobs */
.job-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.job-idea { display: flex; gap: 10px; align-items: flex-start; }
.job-idea .grow { flex: 1; }
.job-idea p { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.when { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }

/* Toasts and overlays */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); animation: up .2s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }
.toast a { color: inherit; text-decoration: underline; margin-left: 8px; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.working { display: flex; gap: 12px; align-items: center; padding: 18px; background: var(--brand-soft); border-radius: 12px; color: var(--brand); font-weight: 600; margin-top: 14px; }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Signed-out pages */
.public { min-height: 100vh; }
.pub-nav { display: flex; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; padding: 18px 24px; }
.hero { max-width: 1100px; margin: 0 auto; padding: 50px 24px 30px; text-align: center; }
.hero h1 { font-size: 52px; letter-spacing: -.03em; max-width: 820px; margin: 0 auto 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero-team { display: flex; justify-content: center; margin: 34px 0 0; }
.hero-team .av { margin-left: -12px; border: 3px solid var(--bg); }
.section { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.section > h2 { text-align: center; font-size: 30px; margin-bottom: 8px; }
.section > .lead { text-align: center; color: var(--muted); margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }
.auth { max-width: 420px; margin: 30px auto 60px; padding: 0 20px; }
.auth .card { padding: 26px; }
.auth h1 { font-size: 24px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 40px; }

/* Phones */
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .topbar .logo { padding: 0; }
  .page { padding: 20px 16px 50px; }
  .cols, .grid2, .steps, .work-layout { grid-template-columns: 1fr; }
  .emp-head { padding: 16px 16px 0; }
  .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - 190px); }
  .chat-list { display: none; }
  .msgs { padding: 16px; }
  .composer { padding: 10px 14px 14px; }
  .emp-body { padding: 18px 16px 50px; }
  .chat-page { height: calc(100dvh - 53px); }
  .emp-head .muted { font-size: 13px; }
  .hero h1 { font-size: 36px; }
  .when { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
}
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.page-head h1 { overflow-wrap: anywhere; }

/* ===== Marblism-style chat, work items and guidelines (13 Nov 2026) ===== */
.shell { grid-template-columns: 300px 1fr; }
.dm { align-items: flex-start !important; padding: 9px 10px !important; }
.dm .av { width: 38px; height: 38px; font-size: 16px; }
.dm-text { flex: 1; min-width: 0; display: block; line-height: 1.3; }
.dm-top { display: flex; align-items: baseline; gap: 6px; }
.dm-top small { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-top time { font-size: 11px; color: var(--muted); font-weight: 400; flex: none; }
.dm-last { display: block; font-size: 13px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dm.unread .dm-last { color: var(--ink); font-weight: 600; }
.nav a.dm .badge { margin-left: 6px; align-self: center; }
.saved { display: block; color: var(--ink); margin-bottom: 10px; }
.saved:hover { text-decoration: none; }
.saved strong { display: block; font-size: 24px; letter-spacing: -.02em; }
.saved span { font-size: 12px; color: var(--muted); }

.emp-page { display: flex; flex-direction: column; }
.emp-bar { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 12px; margin: 12px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); max-width: calc(100% - 32px); flex-wrap: wrap; position: relative; z-index: 2; }
.emp-id { display: flex; align-items: center; gap: 9px; line-height: 1.15; }
.emp-id small { display: block; color: var(--muted); font-size: 12px; }
.emp-tabs { display: flex; gap: 2px; overflow-x: auto; }
.emp-tabs a { padding: 6px 12px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.emp-tabs a:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.emp-tabs a.on { background: var(--soft); color: var(--ink); }
.chat-page .chat-main { flex: 1; min-height: 0; }
.msg.user { justify-content: flex-start; }
.msg .body { flex: 1; min-width: 0; }
.msg .who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg .who .time { color: var(--muted); font-size: 12px; }
.msg .text { white-space: pre-wrap; }
.av-me { background: var(--brand); }
.day { text-align: center; margin: 18px 0 14px; position: relative; }
.day::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.day span { position: relative; background: var(--bg); padding: 0 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-style: italic; margin-top: 6px; }
.status .spin { width: 14px; height: 14px; border-width: 2px; }
.cards { display: grid; gap: 8px; margin-top: 10px; max-width: 580px; }
.cards:empty { display: none; }
.wcard { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
.wcard:hover { border-color: var(--brand); text-decoration: none; }
.wcard img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.wcard.kind-social_post img { width: 64px; }
.wcard-ico { width: 64px; height: 64px; border-radius: 8px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.wcard-body { flex: 1; min-width: 0; }
.wcard-kind { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.wcard-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard-prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard-open { font-size: 13px; color: var(--brand); font-weight: 600; flex: none; }
.plats { display: inline-flex; gap: 3px; vertical-align: middle; }
.plat { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 5px; font-size: 10px; font-weight: 800; color: #fff; text-transform: none; letter-spacing: 0; }
.plat-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.plat-facebook { background: #1877f2; } .plat-linkedin { background: #0a66c2; } .plat-tiktok { background: #111; } .plat-x { background: #000; }
details.sources summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.composer { background: transparent; border-top: 0; padding: 8px 20px 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chips button:hover { color: var(--ink); border-color: var(--muted); }
.input-row { display: flex; gap: 8px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); }
.input-row:focus-within { border-color: var(--brand); }
.input-row textarea { border: 0; padding: 8px 0; min-height: 0; max-height: 220px; background: transparent; resize: none; }
.input-row textarea:focus { outline: none; }
.send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); font-size: 18px; font-weight: 800; cursor: pointer; flex: none; }
.send:disabled { opacity: .4; cursor: default; }
.disclaimer { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.post-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.post-tile:hover { border-color: var(--brand); text-decoration: none; }
.post-tile img, .post-tile-blank { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--soft); }
.post-tile-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cal-nav { margin-bottom: 12px; }
.cal { display: grid; grid-template-columns: repeat(8, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.cal-col { background: var(--soft); border-radius: 12px; padding: 8px; min-height: 320px; display: flex; flex-direction: column; gap: 8px; }
.cal-col.today { outline: 2px solid var(--brand); }
.cal-col.drafts { background: transparent; border: 1px dashed var(--line); }
.cal-head { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; padding: 2px 0 4px; }
.cal-post { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); font-size: 12.5px; }
.cal-post:hover { border-color: var(--brand); text-decoration: none; }
.cal-post p { margin: 6px 0; line-height: 1.35; }
.cal-post img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; display: block; }
.thumb { width: 54px; height: 40px; border-radius: 7px; object-fit: cover; flex: none; }
.thumb.ico { display: inline-flex; align-items: center; justify-content: center; background: var(--soft); font-size: 18px; }

.gl-section h3 { margin-bottom: 10px; }
.gl-list { margin: 0 0 10px; padding-left: 22px; }
.gl-list li { padding: 3px 0; }
.gl-list li span { margin-right: 6px; }
.gl-list li .btn { padding: 0 6px; }
.gl-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gl-ideas button { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.gl-ideas button:hover { color: var(--brand); border-color: var(--brand); }
.gl-section .row input { flex: 1; width: auto; }

.doc-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.doc-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.doc-top-title { min-width: 0; line-height: 1.25; }
.doc-top-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.doc-top-title small { color: var(--muted); font-size: 12px; }
.doc-scroll { flex: 1; overflow-y: auto; padding: 28px 20px 40px; }
.doc { max-width: 760px; margin: 0 auto; }
.doc-title { font-size: 34px; letter-spacing: -.02em; margin: 18px 0 12px; }
.doc-pic { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); }
.doc-pic img { width: 100%; display: block; }
.doc-pic.kind-social_post { max-width: 440px; }
.doc-pic-blank { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.pic-btn { position: absolute; top: 10px; right: 10px; opacity: .92; }
.doc-pic .working { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 10px 14px; }
.doc-facts { margin-bottom: 12px; }
.date-pick { font-weight: 500; display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.date-pick input { width: auto; padding: 4px 8px; font-size: 14px; }
.meta-desc { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--muted); }
.doc-body { font-size: 16.5px; line-height: 1.7; }
.doc-edit textarea { min-height: 55vh; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc-title-input { font-size: 22px !important; font-weight: 700; margin: 14px 0 6px; }
.doc-ask { padding: 8px 20px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.doc-ask-inner { max-width: 760px; margin: 0 auto; }
.doc-ask .about { font-size: 12px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.more { position: relative; }
details.more summary { list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; z-index: 20; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--soft); }
.menu button.danger { color: var(--bad); }

@media (max-width: 860px) {
  .side { width: 300px; }
  .emp-bar { border-radius: 16px; margin-top: 10px; }
  .chat-page, .doc-page { height: calc(100dvh - 53px); }
  .cal { grid-template-columns: 1fr; }
  .cal-col { min-height: 0; }
  .doc-title { font-size: 26px; }
  .doc-top-title strong { max-width: 60vw; }
  .composer { padding: 6px 12px 10px; }
}
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emp-tabs a { display: inline-flex; gap: 5px; }

/* ===== Looks, round 2 (13 Nov 2026): rail + messages panel, portraits, display type ===== */
:root { --display: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", "Arial Narrow", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #141416; --panel: #1c1c20; --soft: #26262c; --line: #2f2f37; --ink: #f1f0f5; --muted: #a09fae; }
}
h1, .doc-title, .hero h1, .section > h2, .stat strong, .member h3, .saved-num { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 32px; }
.av { border-radius: 30%; }
.av.sm { border-radius: 30%; }

/* Rail + panel */
.shell { grid-template-columns: 372px 1fr; }
.side { display: grid; grid-template-columns: 72px 1fr; padding: 0; border-right: 1px solid var(--line); background: var(--panel); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0; border-right: 1px solid var(--line); background: var(--bg); height: 100vh; position: sticky; top: 0; }
.rail-logo img { width: 36px; height: 36px; display: block; margin-bottom: 12px; }
.rail-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 60px; padding: 8px 0 6px; border-radius: 12px; color: var(--muted); }
.rail-link:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.rail-link.on { background: var(--brand-soft); color: var(--brand); }
.rail-link .ico { font-size: 19px; line-height: 1; }
.rail-link small { font-size: 10.5px; font-weight: 600; }
.rail-link .dot { position: absolute; top: 3px; right: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.rail .spacer { flex: 1; }
.panel { display: flex; flex-direction: column; min-height: 0; height: 100vh; position: sticky; top: 0; padding: 14px 10px 12px; overflow: hidden; }
.panel-head { padding: 4px 8px 6px; line-height: 1.2; }
.panel-head strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-head small { color: var(--muted); font-size: 12px; }
.nav.dms { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.dm .av { width: 44px; height: 44px; }
.dm-top strong { font-size: 14px; }
.saved { margin-top: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-soft), transparent 70%), var(--soft); display: grid; gap: 2px; }
.saved-num { font-size: 26px; line-height: 1; }
.saved-sub { font-size: 12px; color: var(--muted); }
.saved-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.saved .meter { display: block; }

/* Profile popover on a team member's page */
details.profile { position: relative; }
details.profile summary { list-style: none; cursor: pointer; border-radius: 99px; padding: 2px 8px 2px 2px; }
details.profile summary::-webkit-details-marker { display: none; }
details.profile summary:hover { background: var(--soft); }
.profile-card { position: absolute; top: calc(100% + 10px); left: 0; width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; z-index: 30; text-align: center; }
.profile-card .av { margin: 0 auto 10px; }
.profile-card h3 { margin: 0; font-size: 20px; }
.profile-card p { margin: 10px 0; font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-card .facts { justify-content: center; }
.facts span { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); font-weight: 600; }

/* Team cards */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.member { gap: 10px; }
.member-top { display: flex; gap: 14px; align-items: center; }
.member-top .av.xl { width: 76px; height: 76px; }
.member h3 { margin: 0; font-size: 22px; }
.member p { color: var(--muted); }
.member-cta { color: var(--brand); font-weight: 600; }

/* Home stats */
.stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-bottom: 16px; }
.stats .card + .card { margin-top: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat strong { font-size: 34px; line-height: 1.05; }
.eotm { flex-direction: row; align-items: center; gap: 14px; color: var(--ink); background: linear-gradient(135deg, rgba(255, 196, 0, .16), transparent 65%), var(--panel); border-color: rgba(255, 196, 0, .45); }
.eotm:hover { text-decoration: none; border-color: #ffc400; }
.eotm small { color: #c99a00; }
.eotm strong { font-size: 26px; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; text-align: left; padding-top: 40px; }
.hero h1 { margin: 0 0 18px; font-size: 60px; line-height: 1; }
.hero .lead { margin: 0 0 26px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 99px; margin-bottom: 16px; }
.hero-team { justify-content: flex-start; align-items: center; gap: 0; margin-top: 30px; flex-wrap: wrap; }
.hero-team .av { margin-left: -10px; border: 3px solid var(--bg); width: 56px; height: 56px; }
.hero-team .av:first-child { margin-left: 0; }
.hero-team .muted { margin-left: 12px; }
.hero-demo { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(20, 16, 40, .18); padding: 16px 18px 6px; }
.hero-demo .msg { margin-bottom: 16px; font-size: 14.5px; }
.demo-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features .card + .card { margin-top: 0; }
.feature-ico { font-size: 26px; display: block; margin-bottom: 8px; }
.cta { text-align: center; }
.section > h2 { font-size: 38px; }

/* Integrations */
.int-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.int-bar input { max-width: 420px; }
.pillbtn { border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 99px; cursor: pointer; }
.pillbtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.int-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.int-grid .card + .card { margin-top: 0; }
.int-head { display: flex; gap: 14px; align-items: flex-start; }
.int-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.int-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; color: #fff; background: var(--soft); flex: none; }
.int-wordpress { background: #21759b; } .int-slack { background: #4a154b; } .int-discord { background: #5865f2; } .int-zapier { background: #ff4f00; }
.int-meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.int-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.int-form .hint { margin: 0 0 8px; }
.int-card.open { border-color: var(--brand); }

/* One-click share bar on a piece of work */
.share { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 10px; border-radius: 12px; background: var(--soft); }

@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .eotm { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .side { width: 340px; display: grid; }
  .rail, .panel { height: 100dvh; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero h1 { font-size: 40px; }
  .features, .int-grid, .stats { grid-template-columns: 1fr; }
  .profile-card { width: min(300px, calc(100vw - 40px)); }
}
.eotm > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
input[type=search] { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
input[type=search]:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.int-bar .spacer { min-width: 220px; }
.int-email { background: #ea4335; } .int-telegram { background: #229ed9; } .int-google_chat { background: #00ac47; } .int-teams { background: #5059c9; } .int-notion { background: #111; } .int-ghost { background: #15171a; }
.tg-code .code { font: 800 28px/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; padding: 10px 14px; background: var(--soft); border-radius: 10px; justify-self: start; }
.send-form { margin: -8px 0 18px; }

/* Inbox */
.inbox-empty { text-align: center; padding: 36px 20px; }
.inbox-empty .av { margin: 0 auto 12px; }
.inbox-empty p { max-width: 560px; margin: 0 auto 18px; }
.card.inbox { padding: 6px 10px; }
.list li.mail { display: block; padding: 0; }
.mail-head { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 6px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.mail-head:hover { background: var(--soft); }
.mail-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.mail.high .mail-dot { background: var(--bad); }
.mail-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mail-top { display: flex; gap: 8px; align-items: baseline; }
.mail-top time { color: var(--muted); font-size: 12px; flex: none; }
.mail-subject { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-summary { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail.done .mail-subject, .mail.done strong { color: var(--muted); }
.mail-body { padding: 0 6px 16px 26px; display: grid; gap: 10px; }
.mail-text { white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; max-height: 360px; overflow-y: auto; overflow-wrap: anywhere; }

/* Hiring */
.av-plus { background: var(--soft); color: var(--muted); font-weight: 400; }
.dm.hire .av { width: 44px; height: 44px; font-size: 22px; }
.dm.hire strong { font-size: 14px; }
.hire-card { align-items: flex-start; border-style: dashed; }
.hire-card .av { margin-bottom: 4px; font-size: 34px; }
.hire-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.hire-ideas button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.hire-ideas button:hover { border-color: var(--brand); color: var(--brand); }
.hire-top { display: flex; gap: 18px; align-items: flex-start; }
.hire-top .av { width: 96px; height: 96px; font-size: 40px; }
.profile-actions { margin-top: 12px; }
.notice.archived { margin: 12px 20px 0; }
@media (max-width: 860px) { .hire-top { flex-direction: column; } }

/* Attachments, voice, hand-offs, triggers, library */
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 17px; cursor: pointer; flex: none; color: var(--muted); }
.icon-btn:hover { background: var(--soft); }
.icon-btn.on { background: var(--bad-soft); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.input-row { padding-left: 6px; }
.attach-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 10px; padding: 4px 6px 4px 4px; font-size: 13px; max-width: 240px; }
.attach-chip img { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
.attach-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.msg-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.msg-files:empty { display: none; }
.msg-files img { max-width: 220px; max-height: 160px; border-radius: 10px; display: block; }
.file-chip { background: var(--soft); border-radius: 8px; padding: 4px 10px; font-size: 13px; color: var(--ink); }
.handoff-form { margin: -8px 0 18px; }
.trigger-box { background: var(--soft); border-radius: 10px; padding: 12px !important; }
.trigger-box .hint { margin: 4px 0 8px; }
.btn.on { border-color: var(--brand); color: var(--brand); }
.list.lib select { width: auto; max-width: 160px; padding: 6px 8px; font-size: 13px; }

/* Onboarding panel */
details.onboard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 4px 0 18px; box-shadow: var(--shadow); }
details.onboard summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
details.onboard summary::-webkit-details-marker { display: none; }
details.onboard summary small { display: block; color: var(--muted); font-size: 12px; }
details.onboard .meter { width: 90px; flex: none; }
details.onboard.complete { border-color: var(--ok); }
.onboard-tip { margin: 12px 0 8px; font-size: 14px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.onboard-steps { list-style: none; margin: 0; padding: 0; }
.onboard-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 14.5px; }
.onboard-steps li:first-child { border-top: 0; }
.onboard-steps .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.onboard-steps li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.onboard-steps li.done .grow { color: var(--muted); text-decoration: line-through; }

/* Rooms */
.stack { display: inline-flex; flex: none; }
.stack .av { border: 2px solid var(--panel); margin-left: -10px; }
.stack .av:first-child { margin-left: 0; }
.dm.room .stack .av { width: 26px; height: 26px; font-size: 11px; }
.dm.room .stack { width: 44px; flex-wrap: wrap; }
.stack.big { justify-content: center; margin-bottom: 12px; }
.stack.big .av { width: 64px; height: 64px; }
.room-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.room-person { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 500; margin: 0; }
.room-person.on { border-color: var(--brand); background: var(--brand-soft); }
.room-person input { accent-color: var(--brand); }
.room-person small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.room-ideas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.room-ideas button { border: 1px dashed var(--line); background: transparent; color: var(--ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.room-ideas button:hover { border-color: var(--brand); color: var(--brand); }

/* Quick tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tool-grid .card + .card { margin-top: 0; }
.card.tool { display: flex; flex-direction: column; gap: 6px; }
.card.tool p { margin: 0; flex: 1; }
.card.tool .btn { align-self: flex-start; }
.tool-ico { font-size: 20px; }
.tool-form { margin-top: 6px; }
.quick-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.quick-row .tool-grid { display: contents; }

/* Search */
.panel-search { padding: 2px 4px 6px; }
.panel-search input { padding: 7px 10px; font-size: 13.5px; border-radius: 9px; }
.search-form { margin-bottom: 16px; }
mark { background: rgba(255, 196, 0, .35); color: inherit; border-radius: 3px; padding: 0 2px; }
.int-grid.read-only .int-head .btn, .int-grid.read-only .int-meta .row { display: none; }
.meet-text { margin-top: 12px; }
.pic-edit { margin: 10px 0 4px; }
.autopilot { margin-bottom: 16px; } .autopilot .check { margin: 8px 0; }

/* Calendar */
.cal-title { min-width: 140px; text-align: center; }
.legend { margin-bottom: 10px; gap: 12px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.cal-day { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.empty { background: transparent; border: 0; }
.cal-day.past { opacity: .6; }
.cal-day.today { outline: 2px solid var(--brand); }
.cal-num { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-item { display: flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 1.25; padding: 2px 4px; border-radius: 6px; color: var(--ink); min-width: 0; }
.cal-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item .av.sm { width: 16px; height: 16px; font-size: 8px; }
.cal-item.work { background: var(--brand-soft); }
.cal-item.task { background: var(--soft); }
.cal-item.booking { background: var(--ok-soft); }
.cal-item:hover { text-decoration: none; filter: brightness(.95); }
@media (max-width: 860px) { .month { grid-template-columns: 1fr; } .cal-dow, .cal-day.empty { display: none; } .cal-day { min-height: 0; } }

.bulk-bar { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.list li .pick { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

/* Printing a piece of work: just the document */
.print-only { display: none; }
@media print {
  /* A clean document: no browser date/title/address lines (no page margin for them), no app parts, no publishing extras. */
  @page { margin: 0; }
  body { margin: 0 !important; padding: 16mm 18mm !important; }
  .print-only { display: block !important; }
  .screen-only, .no-print { display: none !important; }
  .side, .topbar, .doc-top, .doc-ask, .share, .pic-btn, .pic-edit, .handoff-form, .send-form, .toasts, .sources { display: none !important; }
  .rail2, .teamcol, .nav-pane, .mobile-top, .side-scrim, .hub-tabs, .hours-bar, .verify-bar, .doc-facts, .meta-desc, .publish-line, .doc-video, .tiktok-box,
  .video-panel, .doc-back, .emp-bar, .card-actions, button, .btn, input[type="date"], .date-pick { display: none !important; }
  .rail-shell, .main-col, main.main { display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; }
  .doc-pic img { max-height: 90mm; width: 100%; object-fit: cover; border-radius: 6px; }
  .md h1, .md h2, .md h3 { break-after: avoid; }
  .doc, .doc *, .md, .md * { color: #111 !important; -webkit-text-fill-color: currentColor; background: transparent !important; }
  .md a { text-decoration: underline; }
  .md hr { display: none !important; }
  .md li, .md blockquote, .md table, .md img { break-inside: avoid; }
  .md p, .md li { orphans: 3; widows: 3; }
  .shell { display: block; }
  body, .doc-page, .doc-scroll { background: #fff !important; color: #000 !important; height: auto !important; overflow: visible !important; }
  .doc-scroll { padding: 0; }
  .doc { max-width: none; }
  .md a { color: #000; }
}

/* Admin */
.wide-page { max-width: 1300px; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }
.table-card { overflow-x: auto; padding: 6px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tr.paused td { opacity: .55; }
@media (max-width: 860px) { .admin-stats { grid-template-columns: 1fr 1fr; } }

details.rules summary { cursor: pointer; list-style: none; }
details.rules summary::-webkit-details-marker { display: none; }
.rule-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.when3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.history { margin-bottom: 16px; }
@media (max-width: 860px) { .when3 { grid-template-columns: 1fr; } }

/* Website (Wren) */
.designs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.design { border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; text-align: left; cursor: pointer; background: var(--panel); color: var(--ink); font: inherit; min-width: 150px; }
.design small { display: block; color: var(--muted); font-size: 12px; }
.design.on { border-color: var(--brand); }
.design.d-bold { background: #16161a; color: #fff; } .design.d-bold small { color: #aaa; }
.design.d-warm { background: #fdf0de; color: #4a3520; } .design.d-warm small { color: #8a6a4a; }
.site-bar { margin-bottom: 12px; }
.site-ask { margin: 12px 0; }
.site-tools .designs { margin: 0; }
.site-tools .design { min-width: 0; padding: 6px 10px; }
.slug-form input { width: 160px; padding: 6px 8px; font-size: 13px; }
.site-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.vm { padding: 4px 0; font-size: 14px; } .vm.iris strong { color: var(--brand); }
.domain-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.domain-box summary { cursor: pointer; font-weight: 600; list-style: none; }
.domain-box summary::-webkit-details-marker { display: none; }
.domain-box form { margin: 10px 0; }
.dns { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }

/* Manual light/dark choice (Account → Appearance) beats the device setting */
:root[data-theme="light"] { --bg: #f6f5f1; --panel: #ffffff; --ink: #1c1a24; --muted: #6b6878; --line: #e6e3dc; --soft: #efede7; --brand: #5b4bdb; --brand-ink: #ffffff; --brand-soft: #ece9ff; --ok: #1f8a5b; --ok-soft: #e3f5ec; --warn: #b26b00; --warn-soft: #fff3dc; --bad: #c0392b; --bad-soft: #fde8e6; --shadow: 0 1px 2px rgba(20, 16, 40, .06), 0 4px 16px rgba(20, 16, 40, .05); color-scheme: light; }
:root[data-theme="dark"] { --bg: #141416; --panel: #1c1c20; --ink: #f1f0f5; --muted: #a09fae; --line: #2f2f37; --soft: #26262c; --brand: #8b7dff; --brand-ink: #14131a; --brand-soft: #2b2650; --ok: #4cc38a; --ok-soft: #173327; --warn: #f0b04a; --warn-soft: #3a2c12; --bad: #ff7b6e; --bad-soft: #3d1c19; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25); color-scheme: dark; }
.contact-history { margin-top: 12px; display: grid; gap: 4px; }

/* Business switcher */
.biz-switch { position: relative; }
.biz-switch summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; }
.biz-switch summary::-webkit-details-marker { display: none; }
.biz-switch summary:hover { background: var(--soft); }
.biz-switch .caret { color: var(--muted); font-size: 12px; }
.biz-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.biz-menu button, .biz-add { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px; border-radius: 8px; cursor: pointer; }
.biz-menu button:hover, .biz-add:hover { background: var(--soft); text-decoration: none; }
.biz-menu button.on { font-weight: 700; }
.biz-menu small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.biz-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.biz-add { color: var(--brand); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* First-time setup: one question per screen */
.setup { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, var(--brand-soft), transparent 45%), var(--bg); }
.setup-card { width: 100%; max-width: 680px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 28px; }
.setup-top { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.setup-top img { width: 30px; height: 30px; }
.setup-top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.setup-progress { flex: 1; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.setup-progress i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.setup-ask { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.setup-ask h1 { font-size: 28px; margin: 0 0 6px; }
.setup-ask p { margin: 0 0 4px; }
.setup-body { display: grid; gap: 12px; margin-bottom: 8px; }
.setup-body textarea { min-height: 120px; font-size: 16px; }
.setup-body input { font-size: 16px; padding: 12px 14px; }
.setup-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-chips button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 99px; padding: 9px 15px; font: inherit; font-size: 14.5px; cursor: pointer; }
.setup-chips button:hover { border-color: var(--brand); }
.setup-chips button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.setup-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.setup-photos .tile { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.setup-photos img { width: 100%; height: 100%; object-fit: cover; }
.setup-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.setup-person { text-align: center; display: grid; justify-items: center; gap: 4px; }
.setup-person small { color: var(--muted); font-size: 12px; }
.setup-error { color: var(--bad); font-weight: 600; min-height: 1em; margin: 4px 0; }
.setup-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
@media (max-width: 600px) { .setup-ask { flex-direction: column; } .setup-ask h1 { font-size: 23px; } .setup-team { grid-template-columns: repeat(2, 1fr); } .setup-card { padding: 20px 18px; } }

/* Website stats (Wren) */
.site-stats h3 { margin: 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.stat strong { display: block; font-size: 22px; } .stat small { color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin: 6px 0 12px; }
.spark i { flex: 1; background: var(--brand); opacity: .75; border-radius: 3px 3px 0 0; min-width: 3px; }
.site-links { flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* Bookings */
.svc-list { display: grid; gap: 8px; margin-bottom: 8px; }
.svc { display: grid; grid-template-columns: 1fr 110px 110px auto; gap: 8px; align-items: center; }
.svc .mins { display: flex; align-items: center; gap: 6px; margin: 0; } .svc .mins input { width: 70px; }
.day-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.day-pick label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 0; font-weight: 500; }
.switch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .svc { grid-template-columns: 1fr 1fr; } }

/* Money: quotes and invoices */
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.money-stats { grid-template-columns: repeat(3, 1fr); }
.card.tip { background: var(--brand-soft); border-color: transparent; }
.row-link { display: flex; flex-direction: column; color: inherit; min-width: 0; }
.wrap-row { flex-wrap: wrap; gap: 8px; }
.ask-sam { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.ask-sam textarea { width: 100%; margin-top: 6px; }
.inv-lines { display: grid; gap: 8px; margin-bottom: 8px; }
.inv-line { display: grid; grid-template-columns: 1fr 70px 110px auto; gap: 8px; align-items: center; }
.inv-line.with-vat { grid-template-columns: 1fr 70px 110px 80px auto; }
.inv-line.head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.inv-total { font-size: 15px; }
.inv-frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--radius); background: #f2f1ee; margin-top: 12px; }
@media (max-width: 640px) { .inv-line, .inv-line.with-vat { grid-template-columns: 1fr 1fr; } .inv-line.head { display: none; } .money-stats { grid-template-columns: 1fr; } .ask-sam { flex-direction: column; } }
.setup-logo { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.setup-logo img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.setup-logo small { display: block; } .logo-empty { width: 56px; height: 56px; display: grid; place-items: center; font-size: 26px; background: var(--soft); border-radius: 8px; }
.biz-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); margin-right: 8px; flex: none; }
.inbox-error { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* Email cards in chat (like a real email, with Send) */
.ecard { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 16px; margin-top: 10px; max-width: 640px; box-shadow: var(--shadow); }
.ecard-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.ecard-head strong { flex: 1; min-width: 0; } .ecard-open { font-size: 13px; }
.ecard-to { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-weight: 600; color: var(--muted); }
.ecard-to-input { flex: 1; max-width: 340px; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.ecard-text { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; line-height: 1.6; resize: none; padding: 8px 0; min-height: 80px; overflow: hidden; }
.ecard-text:focus { outline: 2px solid var(--brand-soft); border-radius: 8px; }
.ecard-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.ecard-note { color: var(--ok); font-size: 13px; }
.cal-item.event { background: var(--warn-soft); border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }

/* Who does what: name, job and a one-line "what they do" */
.dm-top strong { white-space: nowrap; }
.dm-role { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dm-does { display: block; font-size: 12px; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dm .dm-last { margin-top: 2px; }
.emp-info { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.emp-id small { max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.profile-job { background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; text-align: left; }
.profile-try { display: grid; gap: 4px; text-align: left; margin-top: 8px; } .profile-try a { font-size: 13px; }
.profile-try .link { background: none; border: 0; padding: 0; color: var(--brand); text-align: left; cursor: pointer; font: inherit; font-size: 13px; }

/* ===================== Design refresh (Nov 2026, from the ChatGPT design review) =====================
   Calm slate + teal, one clean sans, 8px spacing, flat cards, slimmer sidebars. Teal only for actions and selection. */
:root, :root[data-theme="light"] {
  --bg: #f5f7f9; --panel: #ffffff; --ink: #19232d; --muted: #5d6b78; --line: #dce3e9; --soft: #eef2f5;
  --brand: #087f74; --brand-ink: #ffffff; --brand-soft: #e2f3f1; --ok: #1d7f52; --ok-soft: #e3f4ea;
  --warn: #a8690b; --warn-soft: #fbf0dc; --bad: #c24646; --bad-soft: #fbe6e6;
  --radius: 12px; --shadow: 0 1px 2px rgba(17, 24, 32, .05);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111820; --panel: #1d2732; --ink: #f3f6f8; --muted: #9aa8b5; --line: #2f3b47; --soft: #18212b;
    --brand: #20b5a4; --brand-ink: #0b1a1a; --brand-soft: #143a38; --ok: #3cc58a; --ok-soft: #12332a;
    --warn: #e3ac55; --warn-soft: #3a2c14; --bad: #e16b6b; --bad-soft: #3b1d1f; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #111820; --panel: #1d2732; --ink: #f3f6f8; --muted: #9aa8b5; --line: #2f3b47; --soft: #18212b;
  --brand: #20b5a4; --brand-ink: #0b1a1a; --brand-soft: #143a38; --ok: #3cc58a; --ok-soft: #12332a;
  --warn: #e3ac55; --warn-soft: #3a2c14; --bad: #e16b6b; --bad-soft: #3b1d1f; --shadow: none;
}
body { font-size: 14px; line-height: 1.55; }
/* Type scale: H1 28/700, sections 18/650, labels 12/600. No condensed display font. */
h1, .doc-title, .section > h2, .stat strong, .member h3, .saved-num { font-family: var(--font); letter-spacing: -.015em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
.hero h1 { font-weight: 800; }
label { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.stat strong { font-size: 22px; font-weight: 700; }
/* Spacing (8px grid) and flat cards */
.page { padding: 32px 32px 64px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; padding: 20px 24px; background: var(--panel); }
.card:hover { box-shadow: none; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select { min-height: 42px; border-radius: 10px; }
.btn { border-radius: 10px; font-weight: 600; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.saved { background: var(--soft); border: 1px solid var(--line); }
.eotm { background: var(--panel); }
.eotm:hover { border-color: var(--brand); }
.eotm small { color: var(--muted); }
.setup { background: var(--bg); }
.wcard, .ecard { box-shadow: none; }
.ecard { max-width: 700px; }
.md { max-width: 760px; }
/* Slimmer sidebars: 64px rail + 248px messages; the messages column can be hidden */
.shell { grid-template-columns: 312px 1fr; }
.side { grid-template-columns: 64px 1fr; }
.rail-link { width: 54px; font-size: 11px; }
.dm .av { width: 34px; height: 34px; }
.msg .av.sm, .msg .av { width: 36px; height: 36px; }
html.panel-hidden .shell { grid-template-columns: 64px 1fr; }
html.panel-hidden .side { grid-template-columns: 64px 0; }
html.panel-hidden .side > :not(.rail) { display: none; }
.panel-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; padding: 6px; border-radius: 8px; margin-top: auto; }
.panel-toggle:hover { color: var(--ink); background: var(--soft); }
.ai-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
/* Shorter chat header */
.emp-bar { padding: 8px 12px; min-height: 64px; }
.emp-tabs-more { position: relative; }
@media (max-width: 860px) { .page { padding: 20px 16px; } }
/* Home: what needs you first */
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.need { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; min-height: 112px; }
.need:hover { border-color: var(--brand); text-decoration: none; }
.need small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.need strong { font-size: 26px; font-weight: 700; line-height: 1.2; }
.need > span { color: var(--brand); font-weight: 600; font-size: 13px; margin-top: auto; }
.need.hot { border-color: var(--brand); }
.need.warn strong { color: var(--warn); }
.need-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; display: grid; gap: 4px; }
.small-stats .stat strong { font-size: 18px; }
/* Jobs */
.job-customer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .job-customer strong { font-size: 16px; margin-right: 6px; }
.job-checks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.check.big { font-size: 15px; padding: 8px 0; } .check.big input { width: 22px; height: 22px; }
.job-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.job-photos a { position: relative; display: block; } .job-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.job-photos small { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.sig-pad { width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 1px dashed var(--line); border-radius: 10px; touch-action: none; display: block; margin-bottom: 8px; }
.sig-img { max-width: 300px; background: #fff; border-radius: 8px; padding: 6px; }
.job-actions { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.job-sheet .card { margin-bottom: 16px; }
.can-do { text-align: left; background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 13px; }
.can-do ul { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 3px; }
.can-do .yes { color: var(--ok); } .can-do .no { color: var(--muted); }
.emp-more { position: relative; } .emp-more summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.emp-more summary::-webkit-details-marker { display: none; }
.emp-more-menu { position: absolute; right: 0; top: 110%; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.emp-more-menu a { padding: 8px 10px; border-radius: 8px; color: var(--ink); } .emp-more-menu a:hover { background: var(--soft); text-decoration: none; }
.ecard-warn { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-bottom: 8px; }
.accepted-note { color: var(--ok); font-weight: 600; font-size: 13px; margin-top: 4px; }
.doc-bar { position: sticky; top: 8px; z-index: 5; }
.emp-more-menu .btn.ghost { justify-content: flex-start; text-align: left; border: 0; }
.emp-more summary.btn { display: inline-flex; }
.setup-rec { background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin-bottom: 12px; }
.setup-rec-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.setup-person.rec { outline: 2px solid var(--brand); border-radius: 12px; }

/* ===================== Design system v2 (ChatGPT design-director spec, 13 Nov 2026) =====================
   One small set of tokens and components used everywhere. Teal only for the primary action and selection. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fa; --sidebar: #eaf0f4; --panel: #ffffff; --soft: #f0f5f7; --surface-hover: #e8f0f3;
  --line: #dde5ec; --line-subtle: #e9eef2; --ink: #152331; --muted: #465b70; --faint: #657889;
  --brand: #087d73; --brand-hover: #066a62; --brand-ink: #ffffff; --brand-soft: rgba(8, 125, 115, .09);
  --ok: #147d52; --ok-soft: rgba(20, 125, 82, .10); --warn: #986000; --warn-soft: rgba(152, 96, 0, .10); --bad: #bc3d4c; --bad-soft: rgba(188, 61, 76, .10);
  --shadow: none; --shadow-pop: 0 12px 32px rgba(15, 33, 48, .12); --focus: 0 0 0 3px rgba(8, 125, 115, .22);
  --radius: 12px; --r-sm: 6px; --r-md: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101820; --sidebar: #17212b; --panel: #1c2834; --soft: #22313d; --surface-hover: #293b49;
    --line: #334452; --line-subtle: #2a3947; --ink: #f4f7fa; --muted: #b4c1ce; --faint: #899bad;
    --brand: #2dd4bf; --brand-hover: #5eead4; --brand-ink: #062a27; --brand-soft: rgba(45, 212, 191, .10);
    --ok: #67dfa8; --ok-soft: rgba(103, 223, 168, .10); --warn: #f3c97a; --warn-soft: rgba(243, 201, 122, .10); --bad: #ff8b8b; --bad-soft: rgba(255, 139, 139, .10);
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, .30); --focus: 0 0 0 3px rgba(45, 212, 191, .28);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101820; --sidebar: #17212b; --panel: #1c2834; --soft: #22313d; --surface-hover: #293b49;
  --line: #334452; --line-subtle: #2a3947; --ink: #f4f7fa; --muted: #b4c1ce; --faint: #899bad;
  --brand: #2dd4bf; --brand-hover: #5eead4; --brand-ink: #062a27; --brand-soft: rgba(45, 212, 191, .10);
  --ok: #67dfa8; --ok-soft: rgba(103, 223, 168, .10); --warn: #f3c97a; --warn-soft: rgba(243, 201, 122, .10); --bad: #ff8b8b; --bad-soft: rgba(255, 139, 139, .10);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .30); --focus: 0 0 0 3px rgba(45, 212, 191, .28);
}
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea, .card, .dm, .rail-link { transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.stat strong, .need strong, .n, td.n, .inv-total, .money-stats strong, time, .dm-top time { font-variant-numeric: tabular-nums; }

/* Type scale */
h1, .page-head h1 { font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); } small, .small { font-size: 12px; }
label { font-size: 13px; line-height: 18px; font-weight: 500; margin-bottom: 6px; letter-spacing: 0; }
.page-head { min-height: 72px; align-items: flex-end; margin-bottom: 24px; }
.page-head .muted { font-size: 13px; line-height: 19px; margin-top: 2px; }

/* Rail + messages sidebar */
.side, .rail { background: var(--sidebar); }
.rail { border-right: 1px solid var(--line-subtle); gap: 2px; }
.rail-link { width: 52px; padding: 6px 0 5px; border-radius: var(--r-md); color: var(--faint); position: relative; }
.rail-link .ico { width: 36px; height: 30px; display: grid; place-items: center; font-size: 0; }
.rail-link small { font-size: 10px; font-weight: 500; letter-spacing: 0; }
.rail-link:hover { background: var(--surface-hover); color: var(--ink); text-decoration: none; }
.rail-link.on { background: var(--brand-soft); color: var(--brand); }
.rail-link.on::before { content: ""; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.rail-link .dot { background: var(--bad); }
.icon { display: block; flex: none; }
.panel-toggle { display: grid; place-items: center; width: 40px; height: 40px; color: var(--faint); }
.dm { border-radius: var(--r-md); min-height: 64px; gap: 10px !important; }
.dm:hover { background: var(--surface-hover); }
.dm.on { background: var(--brand-soft); }
.dm.on strong, .dm.on .dm-top strong { color: var(--ink); }
.dm .av { width: 32px; height: 32px; }
.dm-top strong { font-size: 14px; font-weight: 600; }
.dm-role { display: none; }
.dm-does { color: var(--muted); font-size: 12px; font-weight: 500; }
.dm-last { color: var(--faint); font-size: 12px; }
.dm.unread .dm-last { color: var(--ink); font-weight: 500; }
.dm .badge, .rail .badge { background: var(--brand-soft); color: var(--brand); min-width: 18px; height: 18px; padding: 0 6px; font-size: 11px; line-height: 18px; font-weight: 600; }
.ai-tag { background: transparent; border: 1px solid var(--line); color: var(--faint); font-size: 9.5px; padding: 0 4px; border-radius: 4px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--faint); }
.saved { background: var(--panel); border: 1px solid var(--line-subtle); }

/* Cards and tiles */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: none; }
.needs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .needs { grid-template-columns: 1fr; } }
.need { min-height: 132px; padding: 20px; border-color: var(--line); }
.need.hot { border-color: var(--line); }
.need.hot strong { color: var(--ink); }
.need small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.need strong { font-size: 28px; line-height: 34px; font-weight: 700; }
.need > span { color: var(--muted); font-weight: 500; }
.need:hover { border-color: var(--line); background: var(--surface-hover); }
.need:hover > span, .need.hot > span { color: var(--brand); }
.need.warn strong { color: var(--warn); }
.small-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.small-stats .stat { min-height: 0; padding: 16px 20px; }
.small-stats .stat small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.small-stats .stat strong { font-size: 20px; line-height: 28px; }
.small-stats .eotm { grid-column: span 2; display: flex; align-items: center; gap: 12px; }
.small-stats .eotm .av { width: 40px; height: 40px; }
@media (max-width: 1100px) { .small-stats { grid-template-columns: 1fr 1fr; } }
.stat small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }

/* Buttons: small 32 / medium 40 / large 44 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  background: var(--soft); border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.big { height: 44px; padding: 0 20px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-hover); color: var(--ink); }
.btn.danger, .btn.ghost.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--soft); border-color: var(--line-subtle); color: var(--faint); cursor: not-allowed; }

/* Inputs (40px), textareas (96px), checkboxes */
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select {
  height: 40px; min-height: 40px; width: 100%; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
textarea { min-height: 96px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border: 1.5px solid var(--faint); border-radius: 5px; background: var(--panel); cursor: pointer; display: inline-grid; place-items: center; }
input[type=checkbox]:checked { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--brand); }
.check.big input[type=checkbox] { width: 20px; height: 20px; }

/* Tabs: underline, not pills */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); background: none; }

/* Pills/badges with one meaning each */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); }
.pill.review { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--brand-soft); color: var(--brand); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.bad, .pill.error { background: var(--bad-soft); color: var(--bad); }

/* Lists */
.list li { min-height: 52px; border-color: var(--line-subtle); }
.list li:hover { background: var(--surface-hover); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 13px; line-height: 19px; max-width: 360px; margin: 0 auto; }

/* Chat: flat header, readable column, calm composer */
.emp-bar { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: none; min-height: 64px; padding: 8px 24px; margin: 0; max-width: none; width: 100%; }
.emp-bar .av { width: 36px; height: 36px; }
.emp-tabs a { height: 40px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 0; background: none !important; border-bottom: 2px solid transparent; }
.emp-tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.emp-more summary { font-size: 13px; }
.msgs-inner { max-width: 760px; }
.msg .md, .msg .text { font-size: 14px; line-height: 21px; }
.composer-inner { max-width: 760px; }
.composer .input-row { min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.composer .input-row:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.composer .send { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); }
.chips { overflow-x: auto; flex-wrap: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { white-space: nowrap; flex: none; height: 32px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }

/* Email draft card */
.ecard { max-width: 720px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.ecard-head { gap: 10px; } .ecard-head strong { font-size: 15px; font-weight: 600; }
.ecard-ico { display: none; }
.ecard-to { padding: 10px 0; margin: 10px 0 4px; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); font-size: 13px; }
.ecard-to-input { border-radius: var(--r-md); background: var(--soft); height: 32px; }
.ecard-text { line-height: 1.6; padding: 12px 0; }
.ecard-meta { color: var(--faint); font-size: 12px; margin-left: auto; }

/* Job sheet */
.job-customer { display: grid; gap: 8px; }
.job-customer strong { font-size: 18px; line-height: 26px; }
.job-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.job-sheet h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.job-sheet h3 .icon { color: var(--faint); }
.job-checks li { border-bottom: 1px solid var(--line-subtle); }
.job-checks .check.big { padding: 12px 0; gap: 12px; }

/* Menus */
.emp-more-menu { box-shadow: var(--shadow-pop); border-radius: var(--radius); }
/* Grouped messages: one name and picture per run */
.msg.cont { margin-top: -10px; }
.msg.cont > .av { visibility: hidden; height: 0; }
.msg.cont .who { display: none; }
/* Loading placeholders: only after 150ms, and gone once the page is in */
.skeleton-page { max-width: 1060px; margin: 0 auto; padding: 32px; opacity: 0; animation: sk-in 1ms 150ms forwards; }
.main > .skeleton-page:not(:only-child) { display: none; }
@keyframes sk-in { to { opacity: 1; } }
.sk { background: linear-gradient(90deg, var(--soft) 25%, var(--surface-hover) 50%, var(--soft) 75%); background-size: 200% 100%; animation: sk-shine 1.4s ease-in-out infinite; border-radius: 8px; }
@keyframes sk-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-title { width: 260px; height: 30px; margin: 22px 0 10px; } .sk-sub { width: 380px; height: 14px; margin-bottom: 32px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; } .sk-tile { height: 132px; border-radius: 12px; }
.sk-card { height: 180px; border-radius: 12px; margin-bottom: 16px; } .sk-card.short { height: 110px; }
/* Data tables (invoices, contacts): 40px header, 52px rows, light dividers, right-aligned amounts */
.card.flush { padding: 0; overflow: hidden; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th { height: 40px; padding: 0 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--line-subtle); vertical-align: middle; }
.dtable th:first-child, .dtable td:first-child { padding-left: 20px; } .dtable th:last-child, .dtable td:last-child { padding-right: 20px; }
.dtable .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .strong { font-weight: 600; } .dtable .late { color: var(--bad); }
.dtable tr.click { cursor: pointer; } .dtable tr.click:hover td, .dtable tr.open td { background: var(--surface-hover); }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tr.detail td { background: var(--soft); padding: 16px 20px; }
.strong-link { color: var(--ink); font-weight: 600; }
.cell-name { display: flex; align-items: center; gap: 10px; } .cell-name small { display: block; }
@media (max-width: 760px) { .dtable th:nth-child(3), .dtable td:nth-child(3), .dtable th:nth-child(4), .dtable td:nth-child(4) { display: none; } }
.cell-name small.cell-phone { display: none; } /* Imogen's Callers (pages-c, audit 182): the number under the name, only where the Phone column is hidden */
@media (max-width: 760px) { .cell-name small.cell-phone { display: block; font-variant-numeric: tabular-nums; } }
.google-row { display: grid; gap: 6px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-subtle); }
.google-btn { background: #fff; color: #1f1f1f; border-color: #dadce0; height: 44px; font-weight: 600; justify-self: start; }
.google-btn:hover { background: #f7f8f8; }
.g-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.agree { margin-top: 10px; }
.cal-item.ext { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ===================== Layout breathing room (13 Nov 2026) ===================== */
/* Even vertical rhythm between sections on every page; nothing touches. */
.page > * + * { margin-top: 16px; }
.page > .page-head + * { margin-top: 0; }
.page > h2.section-title { margin-top: 32px; }
/* Items in grids and rows line up (no extra top margin on the 2nd, 3rd… card). */
:is(.needs, .small-stats, .grid2, .int-grid, .team-grid, .stats, .stats-row, .money-stats, .quick-row, .cols, .tool-grid, .features, .designs, .setup-team, .choices, .sk-row, .when3, .row, .wrap-row) > * { margin-top: 0 !important; }
.grid2 { gap: 16px; } .cols { gap: 16px; align-items: start; }
.int-grid { align-items: stretch; } .int-grid > .card { height: 100%; }
/* Dropdowns and inputs only stretch inside forms/fields; in headers and toolbars they size to their content. */
select { width: auto; min-width: 160px; max-width: 100%; }
.field select, form .field select, .grid2 select, .int-form select, .booking-form select { width: 100%; }
.page-head select, .page-head input[type=search], .row select { width: auto; max-width: 260px; }
.page-head .spacer + select { margin-left: auto; }
/* A roomier messages column: 64px rail + 272px list. */
.shell { grid-template-columns: 336px 1fr; }
.side { grid-template-columns: 64px 1fr; }
html.panel-hidden .shell { grid-template-columns: 64px 1fr; }
.side > :not(.rail) { padding-left: 4px; padding-right: 4px; }
.dm { padding: 10px 12px !important; min-height: 68px; }
.dm-text { line-height: 1.4; display: grid; gap: 2px; }
.dm-top { gap: 6px; align-items: center; }
.dm-top time { margin-left: auto; }
.rail-link small { font-size: 10.5px; }
/* Home: secondary row fills the width (This month + Employee of the month). */
.small-stats { grid-template-columns: 1fr 2fr; }
.small-stats .eotm { grid-column: auto; }
/* Cards' own headings and lists breathe. */
.card > h2:first-child, .card > h3:first-child { margin-top: 0; margin-bottom: 12px; }
.card .row { gap: 8px; flex-wrap: wrap; }
.list li { padding: 10px 4px; gap: 12px; }
.main { min-width: 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.legend .cal-item { width: auto !important; display: inline-flex; margin: 0; padding: 2px 8px; border-radius: 6px; }
.legend a { margin-left: auto; }
/* Calls (Ruby) */
.calls-view > * + * { margin-top: 16px; }
.call-head { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font: inherit; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; }
.call-sum { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.call-more { margin-top: 10px; } .call-msg { background: var(--soft); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.call-list li.call-focus { box-shadow: inset 3px 0 0 var(--brand); scroll-margin-top: 80px; } /* Imogen: the call opened from her email (?call=) */
.transcript p { margin: 4px 0; font-size: 13px; } .transcript .caller b { color: var(--muted); } .transcript .ruby b { color: var(--brand); }
.fwd { margin-top: 8px; } .fwd summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--brand); } .fwd code { background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.people-list { display: grid; gap: 8px; }
.person-row { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 8px; align-items: center; }
.call-msg audio { display: block; width: 100%; margin-top: 6px; height: 36px; }
@media (max-width: 760px) { .person-row { grid-template-columns: 1fr 1fr; } }
/* Phone call card in Ruby's chat */
.callcard { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 14px 16px; margin-top: 10px; max-width: 720px; }
.callcard-head { display: flex; align-items: center; gap: 10px; } .callcard-head small { display: block; }
.callcard-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; }
.callcard-sum { margin: 10px 0 6px; } .callcard .row { margin-top: 8px; }
.callcard .transcript { margin-top: 10px; border-top: 1px solid var(--line-subtle); padding-top: 8px; max-height: 360px; overflow: auto; }

/* Chat fixes: cards stay inside the column; one clean message box (no box inside a box) */
.cards { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.wcard { min-width: 0; padding: 12px; gap: 14px; }
.wcard-kind { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.wcard-title { font-size: 14px; }
.wcard-open { font-size: 12px; color: var(--muted); white-space: nowrap; }
.composer .input-row { display: flex; align-items: flex-end; gap: 4px; padding: 6px 6px 6px 8px; }
.composer .input-row textarea, .composer .input-row textarea:focus, .composer .input-row textarea:focus-visible {
  flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; min-height: 40px; padding: 10px 6px; line-height: 1.45; }
.composer .icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); }
.composer .icon-btn:hover { color: var(--ink); background: var(--surface-hover); }
.composer .send { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; cursor: pointer; }
.msgs-inner, .composer-inner { max-width: 820px; }

/* ===================== Dashboard (Home) ===================== */
.dash { max-width: 1180px; }
.dash-top { align-items: center; }
.dash-date { font-size: 13px; color: var(--faint); font-weight: 500; margin-bottom: 2px; }
.eotm-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; }
.eotm-chip:hover { background: var(--surface-hover); text-decoration: none; }
.eotm-chip small { display: block; font-size: 11px; color: var(--faint); } .eotm-chip strong { font-size: 13px; }
.setup-strip { padding: 16px 20px; }
.setup-strip-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .setup-strip-top .meter { flex: 1; max-width: 220px; margin-left: auto; }
.setup-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-subtle); border-radius: 10px; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.setup-step:hover { background: var(--surface-hover); text-decoration: none; }
.setup-step .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; font-size: 11px; flex: none; }
.setup-step.done { color: var(--muted); } .setup-step.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-card { padding: 18px 20px; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dash-head h2 { margin: 0; font-size: 16px; }
.dash-list, .agenda { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-subtle); transition: opacity 200ms; }
.dash-list li:first-child { border-top: 0; }
.dash-list li.gone { opacity: .35; pointer-events: none; }
.dash-main { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.dash-main:hover .title { color: var(--brand); }
.dash-main .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-main .sub, .agenda .sub { font-size: 12px; color: var(--faint); }
.dash-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; flex: none; font-size: 15px; }
.feed .dash-main .title { font-weight: 500; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agenda li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-subtle); }
.agenda li:first-child { border-top: 0; }
.agenda time { flex: none; width: 88px; font-size: 12px; font-weight: 600; color: var(--brand); padding-top: 2px; }
.agenda .title { display: block; font-size: 14px; font-weight: 500; }
.dash-empty { display: grid; gap: 4px; padding: 18px 0 8px; color: var(--muted); font-size: 13px; } .dash-empty strong { color: var(--ink); font-size: 14px; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.crew-person { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 10px; color: var(--ink); text-decoration: none; text-align: center; }
.crew-person:hover { background: var(--surface-hover); text-decoration: none; }
.crew-av { position: relative; } .crew-av .av { width: 44px; height: 44px; }
.crew-dot { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.crew-person strong { font-size: 13px; } .crew-person small { font-size: 11px; color: var(--faint); line-height: 1.2; }
.quick-head { margin-top: 24px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } .setup-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .setup-steps { grid-template-columns: 1fr; } .eotm-chip { display: none; } }
.dash-grid > *, .dash-grid > .card + .card { margin-top: 0 !important; }
.dash-list li > .dash-main { flex: 1 1 auto; }
.dash-list li > .btn { flex: none; }
.card.tool > .row { flex-wrap: nowrap; align-items: center; }
.card.tool > .row > strong { min-width: 0; }
.card.tool > .row > .avatar, .card.tool > .row > img { flex: none; }

/* ===== Round 3 (GPT review, docs/gpt-design-review.md): fewer boxes, no repeats, calmer chat ===== */
.dash { max-width: 1120px; }
.dash > * + * { margin-top: 16px !important; }
.dash > .home-section { margin-top: 28px !important; }
.dash-top { min-height: 0; margin-bottom: 4px; }
.dash-top h1 { font-size: 26px; line-height: 34px; letter-spacing: -0.025em; }
/* Action cards */
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.acts > * { margin-top: 0 !important; }
.act { min-height: 144px; padding: 20px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); text-decoration: none; }
a.act:hover { border-color: var(--muted); }
.act-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.act-value { font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.act-sub { color: var(--muted); font-size: 13px; }
.act-link { margin-top: auto; color: var(--brand); font-size: 13px; font-weight: 600; }
.act.warn .act-value { color: var(--warn); }
.act-top { display: flex; align-items: center; justify-content: space-between; }
.act-list { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 6px; }
.act-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.act-list li.gone { opacity: .4; pointer-events: none; }
.act-list a.grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 14px; font-weight: 500; }
.act-ico, .info-ico, .dash-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--muted); display: grid; place-items: center; }
.info-ico.ok { color: var(--brand); }
/* One-line rows (nothing booked, all caught up) */
.info-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-size: 14px; text-decoration: none; }
a.info-row:hover { border-color: var(--muted); }
/* Get set up: one slim row */
.setup-strip { padding: 12px 16px; border-radius: 10px; }
.setup-row { display: flex; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.setup-row .meter { width: 120px; flex: none; margin: 0; }
.setup-next { min-width: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-next a { font-weight: 600; }
.setup-strip .setup-steps { margin-top: 12px; }
/* Sections */
.home-section > * + * { margin-top: 16px !important; }
.dash-head h2 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.015em; }
.dash-list.feed li { min-height: 52px; }
/* Team in one row */
.team-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.face-stack { display: flex; padding-left: 6px; }
.face { position: relative; margin-left: -6px; border-radius: 30%; box-shadow: 0 0 0 2px var(--panel); transition: transform .12s; }
.face:hover { transform: translateY(-2px); z-index: 1; }
.face-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--panel); }
/* Quick asks: uniform cards */
.quick-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card.tool { min-width: 0; min-height: 152px; padding: 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; }
.card.tool:hover { border-color: var(--muted); }
.tool-head { display: grid; grid-template-columns: 20px minmax(0, 1fr) 28px; align-items: start; gap: 8px; }
.tool-head > :only-child, .tool-head:not(:has(.av)) { grid-template-columns: 20px minmax(0, 1fr); }
.tool-ico { width: 20px; height: 20px; color: var(--muted); display: grid; place-items: center; margin-top: 1px; font-size: 0; }
.tool-title { min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tool-desc { margin: 0 !important; color: var(--muted); font-size: 13px; line-height: 19px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card.tool > .tool-go { align-self: flex-start; margin-top: auto !important; min-height: 32px; }
.card.tool .tool-form { margin-top: 0 !important; }
@media (max-width: 1050px) { .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .quick-row, .acts { grid-template-columns: 1fr; } .dash > .home-section { margin-top: 20px !important; } }
/* Chat: suggestion chips scroll with a cue */
.chips-wrap { position: relative; }
.chips { gap: 8px; padding: 4px 0 8px; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
.chips-wrap.has-more .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.chips button { height: 34px; max-width: 220px; padding: 0 12px; border-radius: 8px; background: var(--soft); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; scroll-snap-align: start; }
.chips-more { display: none; position: absolute; right: 0; top: 4px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); place-items: center; cursor: pointer; }
.chips-wrap.has-more .chips-more { display: grid; }
.chips-more:hover { color: var(--ink); }
/* Composer: quiet at rest, teal only when typing */
.composer .input-row { border-radius: 12px; }
.composer .input-row:focus-within { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.composer .send { border-radius: 9px; }
.composer .disclaimer { font-size: 11px; color: var(--muted); }
/* Email card */
.ecard { max-width: 680px; }
.ecard-text { font-size: 14px; line-height: 1.65; }
.ecard-actions { margin-top: 12px; padding-top: 12px; gap: 8px; }
.ecard-actions .btn { min-height: 34px; }
.ecard-connect { color: var(--muted); margin-left: auto; }
.ecard-connect:hover { color: var(--brand); }
.setup-steps[hidden] { display: none !important; }
.setup-row .link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; }
.team-row > .grow, .info-row > .grow { flex: 1 1 auto; min-width: 0; }

/* ===== Team dock redesign (Nov 2026): top bar + floating team dock, no side menus ===== */
:root { --topnav-h: 64px; --dock-space: 112px; --glass: color-mix(in srgb, var(--panel) 80%, transparent); --lift: 0 1px 0 color-mix(in srgb, #fff 4%, transparent) inset, 0 1px 2px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.10); }
body { background: radial-gradient(1200px 560px at 50% -220px, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%), var(--bg); background-attachment: fixed; }
.shell.dock-shell { display: block; min-height: 100vh; }
.dock-shell .main { min-width: 0; padding-bottom: var(--dock-space); }
.dock-shell .page { max-width: 1120px; padding: 40px 40px 24px; }
.dock-shell .page-head h1, .dock-shell .dash-top h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.03em; font-weight: 700; }
/* Top bar */
.topnav { position: sticky; top: 0; z-index: 40; height: var(--topnav-h); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line-subtle); }
.topnav-inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 6px; }
.topnav .spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.nav-link, .pop.more > summary { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .pop.more > summary:hover { color: var(--ink); background: var(--surface-hover); text-decoration: none; }
.nav-link.on, .pop.more.on > summary { color: var(--ink); background: var(--soft); }
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 248px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.30), 0 4px 12px rgba(0,0,0,.14); animation: pop-in .14s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop.account .pop-menu { left: auto; right: 0; }
.pop-menu > a, .pop-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; }
.pop-menu > a svg, .pop-menu > button svg { color: var(--muted); flex: none; }
.pop-menu > a:hover, .pop-menu > button:hover, .pop-menu > .on { background: var(--surface-hover); text-decoration: none; }
.pop-menu .nav-link { height: 36px; color: var(--ink); }
.pop-menu .nav-link .nav-count { margin-left: auto; }
.pop-menu small { display: block; color: var(--muted); font-size: 12px; }
.pop-label { padding: 8px 10px 4px; color: var(--faint); font-size: 12px; font-weight: 600; }
.biz-switch > summary { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 6px; border-radius: 12px; cursor: pointer; }
.biz-switch > summary:hover { background: var(--surface-hover); }
.biz-switch > summary strong { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-switch > summary svg, .pop.more > summary svg { color: var(--faint); }
.biz-mark { width: 32px; height: 32px; flex: none; border-radius: 10px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #0b1220)); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 35%, transparent); }
.biz-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.biz-dot { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.nav-search { position: relative; display: flex; align-items: center; margin-right: 6px; }
.nav-search svg { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.nav-search input { width: 220px; height: 36px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--line-subtle); background: var(--soft); color: var(--ink); font: inherit; font-size: 14px; transition: width .2s, border-color .2s; }
.nav-search input:focus { width: 280px; outline: none; border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.pop.account > summary { cursor: pointer; border-radius: 50%; }
.pop.account > summary .av { width: 34px; height: 34px; border-radius: 50%; font-size: 14px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); }
.pop-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line-subtle); margin-bottom: 6px; }
.pop-head strong { display: block; font-size: 14px; }
.pop-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 4px 8px; }
.pop-stats > div { background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.pop-stats strong { font-size: 16px; }
.pop-menu > .meter { display: block; margin: 0 6px 8px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ink); place-items: center; cursor: pointer; }
/* Dock */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; max-width: calc(100vw - 32px); }
.dock-inner { display: flex; align-items: flex-end; gap: 10px; padding: 10px 12px; border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, #fff 7%, transparent) inset, 0 24px 60px rgba(0,0,0,.38), 0 4px 14px rgba(0,0,0,.16); }
.dock-item { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; text-decoration: none; transform-origin: 50% 100%; transition: transform .2s cubic-bezier(.2,.9,.25,1.2); }
.dock-item .av { width: 50px; height: 50px; border-radius: 15px; font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.dock-item:hover, .dock-item:focus-visible { transform: translateY(-10px) scale(1.22); z-index: 2; text-decoration: none; }
.dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { transform: translateY(-4px) scale(1.08); }
.dock-item.on::after { content: ''; position: absolute; bottom: -8px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); opacity: .8; }
.dock-item.tool { background: var(--soft); color: var(--muted); border: 1px solid var(--line-subtle); }
.dock-item.tool:hover { color: var(--ink); }
.dock-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--panel); }
.dock-sep { width: 1px; align-self: stretch; margin: 6px 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.dock-tip { position: absolute; bottom: calc(100% + 14px); left: 50%; width: max-content; max-width: 230px; padding: 8px 11px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.32); text-align: left; pointer-events: none; opacity: 0; transform: translateX(-50%) translateY(6px) scale(.75); transition: opacity .14s, transform .14s; }
.dock-item:hover .dock-tip, .dock-item:focus-visible .dock-tip { opacity: 1; transform: translateX(-50%) scale(.82); }
.dock-tip strong { display: block; color: var(--ink); font-size: 14px; }
.dock-tip small { display: block; color: var(--muted); font-size: 12px; }
.dock-tip em { display: block; max-width: 210px; margin-top: 4px; color: var(--muted); font-size: 12px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-inner.many { gap: 8px; }
.dock-inner.many .dock-item, .dock-inner.many .dock-item .av { width: 42px; height: 42px; border-radius: 13px; }
/* Pages that fill the screen (chats, documents) sit between the bar and the dock */
.dock-shell .chat-page, .dock-shell .doc-page { height: calc(100dvh - var(--topnav-h) - var(--dock-space)); }
.dock-shell .main:has(.chat-page, .doc-page) { padding-bottom: var(--dock-space); }
/* Premium surfaces */
.dock-shell .card { border-radius: 16px; border-color: var(--line-subtle); box-shadow: var(--lift); }
.dock-shell .card.act, .dock-shell .card.tool, .dock-shell .info-row, .dock-shell .team-row { background: color-mix(in srgb, var(--panel) 92%, transparent); }
.dock-shell a.card:hover, .dock-shell .card.tool:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); transition: transform .15s, border-color .15s; }
.dock-shell .btn.primary { box-shadow: 0 1px 0 color-mix(in srgb, #fff 20%, transparent) inset, 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
/* Phones and small tablets */
@media (max-width: 860px) {
  :root { --topnav-h: 56px; --dock-space: 84px; }
  .nav-links, .nav-search { display: none; }
  .nav-burger { display: grid; }
  .topnav.open .nav-links { display: flex; position: absolute; top: var(--topnav-h); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; padding: 8px 12px 12px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .topnav.open .pop.more .pop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 8px; animation: none; }
  .topnav-inner { padding: 0 12px; }
  .biz-switch > summary strong { max-width: 160px; }
  .dock { left: 0; right: 0; bottom: 0; transform: none; max-width: none; }
  .dock-inner { border-radius: 20px 20px 0 0; border-bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .dock-inner::-webkit-scrollbar { display: none; }
  .dock-item, .dock-item .av, .dock-inner.many .dock-item, .dock-inner.many .dock-item .av { width: 44px; height: 44px; border-radius: 13px; }
  .dock-item:hover, .dock-item:focus-visible, .dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { transform: none; }
  .dock-tip { display: none; }
  .dock-badge { top: 0; right: 0; }
  .dock-shell .page { padding: 24px 16px 16px; }
  .dock-shell .page-head h1, .dock-shell .dash-top h1 { font-size: 26px; line-height: 32px; }
}
.dock-shell .chat-page, .dock-shell .doc-page { padding-top: 12px; padding-bottom: 0; max-width: 1120px; }

/* ===== One clean sidebar (Nov 2026, replaces the dock): business, pages with words, team, rooms, you ===== */
.shell.side-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side-shell .main-col { min-width: 0; }
.side-shell .main { min-width: 0; padding-bottom: 0; }
.side-shell .page { max-width: 1080px; padding: 40px 40px 56px; }
.side-shell .page-head h1, .side-shell .dash-top h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.03em; font-weight: 700; }
.side-shell .chat-page, .side-shell .doc-page { height: 100vh; height: 100dvh; padding-top: 12px; padding-bottom: 0; max-width: 1080px; }
.mobile-top, .side-scrim { display: none; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px;
  background: color-mix(in srgb, var(--sidebar, var(--panel)) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-right: 1px solid var(--line-subtle); z-index: 40; }
.side-top { display: grid; gap: 10px; padding-bottom: 6px; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.sidebar .biz-switch > summary { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 6px; border-radius: 12px; cursor: pointer; }
.sidebar .biz-switch > summary:hover { background: var(--surface-hover); }
.sidebar .biz-switch > summary strong { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .biz-switch > summary svg, .sidebar .account > summary svg { color: var(--faint); flex: none; }
.sidebar .pop-menu { left: 0; right: auto; min-width: 240px; }
.sidebar .account .pop-menu { top: auto; bottom: calc(100% + 8px); }
.side-search { position: relative; display: flex; align-items: center; }
.side-search svg { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.side-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--line-subtle); background: var(--soft); color: var(--ink); font: inherit; font-size: 14px; }
.side-search input:focus { outline: none; border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.side-nav { display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; }
.side-link svg { flex: none; opacity: .9; }
.side-link:hover { color: var(--ink); background: var(--surface-hover); text-decoration: none; }
.side-link.on { color: var(--ink); background: var(--soft); box-shadow: inset 2px 0 0 var(--brand); }
.side-link.on svg { color: var(--brand); opacity: 1; }
.side-more > summary::-webkit-details-marker { display: none; }
.side-more > summary svg { transition: transform .15s; transform: rotate(-90deg); }
.side-more[open] > summary svg { transform: none; }
.side-more > .side-link { padding-left: 18px; }
.side-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.side-label { display: flex; align-items: center; gap: 6px; margin: 18px 0 4px; padding: 0 10px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.side-add { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--faint); }
.side-add:hover { color: var(--ink); background: var(--surface-hover); }
.side-team { display: grid; gap: 1px; }
.side-person { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.side-person:hover { background: var(--surface-hover); text-decoration: none; }
.side-person.on { background: var(--soft); box-shadow: inset 2px 0 0 var(--brand); }
.side-person .av.sm { width: 32px; height: 32px; border-radius: 10px; }
.side-person-text { min-width: 0; display: grid; line-height: 1.2; }
.side-person-text strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-person-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-person.unread .side-person-text strong { color: var(--ink); }
.room-mark { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--soft); color: var(--muted); display: grid; place-items: center; }
.side-empty { display: block; padding: 6px 10px; color: var(--faint); font-size: 13px; text-decoration: none; }
.side-empty:hover { color: var(--brand); }
.side-foot { border-top: 1px solid var(--line-subtle); padding-top: 8px; margin: 0 -2px; }
.sidebar .account > summary { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; list-style: none; }
.sidebar .account > summary:hover { background: var(--surface-hover); }
.sidebar .account > summary .av { width: 32px; height: 32px; border-radius: 50%; }
/* Phones and small tablets: the sidebar slides in from the left */
@media (max-width: 860px) {
  .shell.side-shell { display: block; }
  .mobile-top { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 12px;
    background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-subtle); }
  .mobile-top .nav-burger { display: grid; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 60px rgba(0,0,0,.4); background: var(--panel); }
  html.side-open .sidebar { transform: none; }
  html.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.45); }
  .side-shell .page { padding: 24px 16px 40px; }
  .side-shell .page-head h1, .side-shell .dash-top h1 { font-size: 26px; line-height: 32px; }
  .side-shell .chat-page, .side-shell .doc-page { height: calc(100dvh - 56px); }
}
.side-shell .card { border-radius: 16px; border-color: var(--line-subtle); box-shadow: var(--lift); }
.side-shell .card.act, .side-shell .card.tool, .side-shell .info-row, .side-shell .team-row { background: color-mix(in srgb, var(--panel) 92%, transparent); }
.side-shell a.card:hover, .side-shell .card.tool:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); transition: transform .15s, border-color .15s; }
.side-shell .btn.primary { box-shadow: 0 1px 0 color-mix(in srgb, #fff 20%, transparent) inset, 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.sidebar .grow { flex: 1 1 auto; min-width: 0; }

/* Ruby's Calls tab: sub-tabs, training, practice */
.subtabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--soft); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.subtabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.subtabs button:hover { color: var(--ink); }
.subtabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.subtab-body > * + * { margin-top: 16px; }
.qa-list li { align-items: flex-start; gap: 10px; }
.qa-list p { margin: 2px 0 0; }
.teach-form { margin: 8px 0 12px; display: grid; gap: 8px; }
.teach-form.card { padding: 14px; }
.teach-btn { margin-left: 4px; font-size: 12px; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 0; }
.practice-log { max-height: 360px; overflow-y: auto; display: grid; gap: 8px; padding: 12px; margin: 12px 0; background: var(--soft); border-radius: 12px; }
.practice-msg { padding: 8px 12px; border-radius: 12px; max-width: 85%; font-size: 14px; line-height: 1.5; background: var(--panel); }
.practice-msg.caller { justify-self: end; background: color-mix(in srgb, var(--brand) 16%, var(--panel)); }
.practice-form input { flex: 1; min-width: 0; }
.calls-view .row > .grow { flex: 1 1 auto; min-width: 0; }
.pick-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.pick-row select { width: auto; max-width: 100%; }
/* Account menu in the sidebar: open upwards and line up with the sidebar, never off the left edge */
.sidebar .pop.account .pop-menu { left: 0; right: auto; width: 100%; min-width: 0; max-width: 300px; }
.hours-editor { display: grid; gap: 6px; margin-top: 6px; }
.hours-row { display: grid; grid-template-columns: 110px 120px auto 120px auto; align-items: center; gap: 10px; }
.hours-row input[type=time] { width: 120px; }
.hours-row.is-closed strong { color: var(--muted); }
.hours-notes { margin-top: 4px; }
@media (max-width: 600px) { .hours-row { grid-template-columns: 1fr 1fr; } .hours-row strong { grid-column: 1 / -1; } }
.sender-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.sender-row input { width: 140px; }
.sender-row small { flex-basis: 100%; }

/* Booking requests waiting for the boss's OK; text message drafts */
.list li.pending { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.list li .pill { margin-left: 8px; }
.tcard textarea { width: 100%; }

/* Voice calls with a staff member (call.js) */
.call-start { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.call-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(6px); animation: call-in .18s ease-out; }
.call-overlay.closing { opacity: 0; transition: opacity .2s; }
@keyframes call-in { from { opacity: 0; } to { opacity: 1; } }
.call-card { width: min(380px, 100%); background: var(--panel); color: var(--ink); border-radius: 20px; padding: 28px 24px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: calc(100dvh - 32px); overflow-y: auto; }
.call-card h2 { margin: 12px 0 2px; font-size: 22px; }
.call-face { display: inline-grid; border-radius: 50%; padding: 4px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); transition: box-shadow .2s; }
.call-face .av.xl { width: 112px; height: 112px; font-size: 44px; border-radius: 50%; overflow: hidden; }
.call-face.talking { animation: call-pulse 1.2s ease-in-out infinite; }
@keyframes call-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 12%, transparent); } }
.call-status { margin-top: 10px; font-weight: 600; }
.call-clock { color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.call-tasks { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; font-size: 13px; }
.call-tasks li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-hover, rgba(0,0,0,.04)); margin-top: 6px; }
.call-tasks li.done { color: var(--muted); }
.call-tasks .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: call-spin .8s linear infinite; flex: none; }
@keyframes call-spin { to { transform: rotate(360deg); } }
.call-caps { margin: 14px 0 0; max-height: 132px; overflow-y: auto; text-align: left; font-size: 14px; line-height: 1.45; }
.call-caps p { margin: 0 0 6px; }
.call-caps p[data-who="you"] { color: var(--muted); }
.call-actions { display: flex; justify-content: center; gap: 28px; margin-top: 20px; }
.call-btn { display: grid; justify-items: center; gap: 6px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.call-btn svg { width: 56px; height: 56px; padding: 16px; border-radius: 50%; background: var(--surface-hover, rgba(0,0,0,.06)); box-sizing: border-box; }
.call-btn[aria-pressed="true"] svg { background: var(--ink); color: var(--panel); }
.call-btn.end svg { background: #dc2626; color: #fff; transform: rotate(135deg); }
.call-btn:focus-visible svg { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Zara's videos on a social post */
.doc-video { margin: 12px 0 18px; display: grid; gap: 10px; }
.doc-video video { width: 100%; max-height: 560px; border-radius: 14px; background: #000; }
.doc-video video.shape-9x16 { max-width: 315px; }
.video-panel { margin-top: 4px; }
.video-panel h3 { margin-top: 0; }
.video-price { font-weight: 600; margin: 8px 0; }

/* Penny's books */
.books .grid3, .books-form .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .books .grid3, .books-form .grid3 { grid-template-columns: 1fr; } }
.books .stat .stat-num { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.books .stat.good .stat-num, .books td.good { color: var(--ok); }
.books .stat.bad .stat-num { color: var(--bad); }
.books td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.books-bar { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.books-bar select, .books-bar input[type=search] { width: auto; }
.books-todo { gap: 8px; margin: 10px 0; }
.books-table tr.to-check td { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.acct-list { display: grid; gap: 10px; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.acct-row.on { border-color: var(--brand); }
.acct-box { display: grid; gap: 8px; }
.acct-log { margin: 0; padding-left: 18px; }
.books .grid3 > *, .books-form .grid3 > * { margin-top: 0; }
.wcard-video { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--brand); }
.wcard-video.failed { color: var(--bad); }
.video-prompt p { white-space: pre-wrap; margin: 6px 0 0; }
.video-panel textarea { width: 100%; }
/* Phone line: number picker + when she answers (numbers we supply, 3 Dec 2026) */
.num-results { display: grid; gap: 6px; margin: 8px 0; } .num-row { align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.answer-modes { display: grid; gap: 8px; margin: 8px 0 12px; } .answer-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.answer-mode.on { border-color: var(--brand); } .answer-mode span { display: grid; gap: 2px; } .answer-mode input { margin-top: 3px; }
code.copyable { cursor: copy; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
/* Call type pills (voice.js lead) */
.pill.lead-emergency { background: #ff5a4e22; color: #ff5a4e; }
.pill.lead-new_customer { background: #2fbf8f22; color: #1f9e74; }

/* Voice picker on the receptionist's settings (team.js): a card per voice with a play button. */
.voice-pick { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.voice-pick legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin-top: 8px; }
.voice-card { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface, transparent); transition: border-color .15s, box-shadow .15s; }
.voice-card:hover { border-color: var(--faint, var(--line)); }
.voice-card.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.voice-card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.voice-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.voice-txt { display: grid; gap: 1px; flex: 1; min-width: 0; }
.voice-txt strong { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.voice-txt small { font-size: 12px; }
.voice-play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft, transparent); color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.voice-play:hover, .voice-play.playing { background: var(--brand-fill, var(--brand)); border-color: transparent; color: var(--brand-ink, #fff); }
.voice-play.loading { animation: voice-pulse 1s ease-in-out infinite; }
@keyframes voice-pulse { 50% { opacity: .55; } }
.accent-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; font-size: 14px; font-weight: 500; }
.accent-row .accent-select { min-width: 260px; max-width: 100%; }
.voice-more { margin-top: 10px; } .voice-more summary { cursor: pointer; font-size: 13px; color: var(--muted, inherit); }

/* Imogen: "Get her on your phone" card and the test call box (Phone page) */
.install-card { align-items: center; gap: 14px; }
.install-card .install-ico { border-radius: 12px; flex: none; }
.install-card .install-how { margin: 2px 0 0; }
.install-card:not(.can-install) .install-btn { display: none; }
.test-call { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-hover, rgba(127,127,127,.08)); border: 1px solid var(--line-subtle, rgba(127,127,127,.18)); }
.test-call p { margin: 4px 0 10px; }
.test-call input { flex: 1; min-width: 200px; }

/* Inside the iPhone / Android app: the native tab bar replaces our phone top bar; nothing to buy in the app. */
html.in-app .mobile-top { display: none; }
html.in-app .hours-bar a[href="/plans"], html.in-app a[href="/plans"].btn, html.in-app .install-card { display: none; }
html.in-app body { -webkit-touch-callout: none; overscroll-behavior-y: none; }

/* Address check app: the house number box is small (Imogen, Apps panel) */
.int-meta input.narrow { width: 5.5rem; flex: none; }
