.room:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); text-decoration: none; } .room.prominent { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.room.prominent .room-name::after { content: ' · its own workspace'; color: var(--muted); font-weight: 400; font-size: 13px; }
.room.hot { box-shadow: inset 0 0 0 2px var(--accent); }
.room .door { position: absolute; bottom: -2px; right: 22px; width: 34px; height: 4px; background: var(--surface); }
.room .door::after { content: ''; position: absolute; left: 0; bottom: 3px; width: 34px; height: 34px; border-top-right-radius: 34px; border: 1px solid var(--line-2); border-left: 0; border-bottom: 0; opacity: .7; }
.room-name { font-weight: 650; font-stretch: 80%; font-size: 17px; } .room-meta { font-size: 13px; color: var(--muted); }
.occupants { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.occ { display: inline-grid; place-items: center; width: 30px; height: 30px; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--raised); border: 2px solid var(--graphite); }
.occ.human { border-radius: 50%; } .occ.ai { transform: rotate(45deg) scale(.82); border-radius: 5px; } .occ.ai b { transform: rotate(-45deg); } .occ b { font-weight: 700; } i.occ { display: inline-block; width: 14px; height: 14px; vertical-align: middle; margin-right: 6px; }
.occ.running, .occ.online { border-color: var(--ok); } .occ.waiting { border-color: var(--accent); background: var(--accent-soft); } .occ.blocked { border-color: var(--bad); } .occ.queued { border-color: var(--info); } .occ.offline { opacity: .5; } .occ.external { border-style: dashed; }
@media (prefers-reduced-motion: no-preference) { .occ.running { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 30%, transparent); } } }
.legend { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: 13px; color: var(--muted); margin-top: var(--s3); }
@media (max-width: 720px) { .floorplan { grid-template-columns: 1fr; grid-template-rows: none; } .room { grid-column: auto !important; grid-row: auto !important; } }
.attention h2 { font-size: 17px; } .attention ul { list-style: none; padding: 0; margin: 0 0 var(--s5); } .attention li a { display: flex; flex-direction: column; padding: 8px 10px; border-left: 3px solid var(--line-2); color: var(--ink); text-decoration: none; margin-bottom: 4px; border-radius: 0 6px 6px 0; }
.attention li a:hover { background: var(--raised); } .attention li.act a { border-color: var(--accent); } .attention li.bad a { border-color: var(--bad); } .attention li.warn a { border-color: var(--warn); } .attention li span { font-size: 13px; color: var(--muted); }
.feed { list-style: none; padding: 0; margin: 0; font-size: 14px; } .feed li { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); } .feed time { color: var(--muted); font-size: 12px; }
.people-strip { display: flex; gap: var(--s3); overflow-x: auto; padding-bottom: var(--s2); } .person-card { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 240px; } .person-card > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.agent-head { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s5); } .agent-head > div:nth-child(2) { flex: 1; } .agent-head .avatar { width: 56px; height: 56px; font-size: 18px; } .agent-head h1 { margin-bottom: 2px; }
.no-screen { border: 1.5px dashed var(--line-2); border-radius: var(--r2); padding: var(--s3) var(--s4); margin-bottom: var(--s3); }
.runs { list-style: none; padding: 0; margin: 0; } .runs li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); } .runs li.failed { border-left: 3px solid var(--bad); padding-left: 8px; }
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); } .filters > * { width: auto; min-width: 160px; } .filters input[type=search] { flex: 1; min-width: 220px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s3); margin-bottom: var(--s5); }
.board-col { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s3); min-height: 120px; display: flex; flex-direction: column; gap: var(--s2); }
.board-col h2 { font-size: 15px; display: flex; justify-content: space-between; margin: 0 0 4px; } .board-col .count { color: var(--muted); font-weight: 400; }
.board-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); color: var(--ink); text-decoration: none; cursor: pointer; }
.board-card:hover { border-color: var(--ink-2); text-decoration: none; }
.decision { margin-bottom: var(--s4); } .decision textarea { margin: var(--s2) 0; } pre.content { white-space: pre-wrap; background: var(--raised); padding: var(--s3); border-radius: var(--r2); font: inherit; font-size: 14px; max-height: 280px; overflow: auto; }
.checklist { list-style: none; padding: 0; } .checklist li.done { color: var(--muted); text-decoration: line-through; }
.code-display { font-size: 30px; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; padding: var(--s3); background: var(--raised); border-radius: var(--r2); text-align: center; user-select: all; } .url { word-break: break-all; }
.legacy .msgs { min-height: 160px; }
.notif-list { list-style: none; padding: 0; margin: 0; } .notif-list a { display: flex; flex-direction: column; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; } .notif-list li.unread { display: block; place-items: normal; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; } .notif-list a { gap: 2px; min-width: 0; overflow-wrap: anywhere; } .notif-list .unread a { border-left: 3px solid var(--accent); padding-left: 10px; } .notif-list time { font-size: 12px; color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: var(--s3) 0 0; } .search-results a { display: grid; grid-template-columns: 70px 1fr; gap: 2px 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; } .search-results .kind { grid-row: span 2; color: var(--muted); font-size: 13px; }
.final-list { list-style: none; padding: 0; margin: 0 0 var(--s3); } .final-list li { display: flex; justify-content: space-between; gap: var(--s2); padding: 8px 0; border-bottom: 1px solid var(--line); } .final-list li.missing span:first-child { color: var(--muted); }

/* ---------- studio ---------- */
.studio main { max-width: none; padding: 0; }
.studio-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; min-height: calc(100vh - 60px); align-items: start;
  background: linear-gradient(to right, var(--surface) 250px, var(--line) 250px 251px, transparent 251px calc(100% - 261px), var(--line) calc(100% - 261px) calc(100% - 260px), var(--surface) calc(100% - 260px)); }
.studio-rail, .studio-roster { background: var(--surface); padding: var(--s4) var(--s3); overflow-y: auto; max-height: calc(100vh - 60px); position: sticky; top: 60px; }
.studio-roster { }
.studio-rail h2, .studio-roster h2 { font-size: 13px; color: var(--muted); font-weight: 560; margin: var(--s4) 6px var(--s2); } .studio-rail h2:first-child { margin-top: 0; }
.room-list { list-style: none; padding: 0; margin: 0 0 var(--s2); } .room-list a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; min-height: 40px; }
.room-list a > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rl-stack { display: flex; flex-direction: column; min-width: 0; } .rl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .room-list a .muted { display: block; font-size: 12px; }
.room-list a:hover { background: var(--raised); } .room-list a.on { background: var(--raised); color: var(--ink); }
.room-flags { display: flex; gap: 4px; } .room-flags .count { background: var(--ok); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; } .sharing-dot { background: var(--accent); color: #1A0D04; border-radius: 4px; padding: 0 5px; font-size: 11px; font-weight: 700; }
.roster { list-style: none; padding: 0; margin: 0; } .roster li { display: flex; gap: 10px; padding: 8px 6px; align-items: flex-start; } .roster li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .roster li.off { opacity: .55; }
.roster li.on .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ok); } .roster .flags { display: flex; gap: 4px; flex-wrap: wrap; }
.studio-center { padding: var(--s5); min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
.studio-center .chat { flex: 1; min-height: 360px; }
.room-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; } .room-head h1 { margin: 0; font-size: 28px; }
.call-stage { background: #0E0F11; border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s3); } .call-stage[hidden] { display: none; }
.call-state { color: var(--muted); margin: var(--s4); }
.call-bar { font-size: 14px; } .sharing-banner { background: var(--accent); color: #1A0D04; padding: 8px 12px; border-radius: 6px; font-weight: 600; } .sharing-banner .link { color: #1A0D04; }
.screens { display: grid; gap: var(--s2); } .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s2); }
.tile { position: relative; background: #1B1D21; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; border: 2px solid transparent; }
.tile.big { aspect-ratio: auto; min-height: 360px; } .tile.big video { object-fit: contain; background: #000; }
.tile.speaking { border-color: var(--ok); } .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-name { position: absolute; left: 8px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.tile .fs { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.5); color: #fff; }
.call-controls { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
@media (max-width: 1180px) { .studio-grid { grid-template-columns: 220px minmax(0, 1fr); background: linear-gradient(to right, var(--surface) 220px, var(--line) 220px 221px, transparent 221px); } .studio-roster { display: none; } }
@media (max-width: 760px) { .studio-grid { grid-template-columns: 1fr; background: none; } .studio-rail { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); } .studio-center { padding: var(--s4); } }

/* ---------- sign-in ---------- */
.auth-page { background: var(--bg); } .auth { max-width: 440px; margin: 0 auto; padding: var(--s7) var(--s4); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s6); color: var(--accent); } .auth-brand div { display: flex; flex-direction: column; color: var(--ink); } .auth-brand strong { font-stretch: 80%; font-size: 22px; } .auth-brand span { color: var(--muted); font-size: 14px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); border-top: 3px solid var(--ink); }
.auth-alt { margin-top: var(--s4); text-align: center; }
html.offline .btn.primary { opacity: .7; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.file-main .pill { align-self: flex-start; }


/* ---------- Mystic: deep violet night with a lavender glow (sits on top of .theme-night) ---------- */
.theme-night.theme-mystic { --bg: #120E1F; --surface: #1A1430; --raised: #241C3E; --ink: #F1ECFF; --ink-2: #D3CAF0; --muted: #A99FCB; --line: #33295A; --line-2: #4C3F7C;
  --accent: #B79CFF; --accent-ink: #D4C4FF; --accent-soft: #2D2252; --focus: #D4C4FF; --ok: #5CC59A; --warn: #E4B45C; --bad: #F07A86; --info: #7FB2FF; --graphite: #8E84B3; --gold: #E8C77A; }
body.theme-mystic { background: radial-gradient(1100px 620px at 88% -12%, rgba(140, 100, 255, .20), transparent 62%), radial-gradient(900px 520px at -12% 112%, rgba(64, 196, 190, .12), transparent 60%), var(--bg); background-attachment: fixed; }
body.theme-mystic::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 34%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 38% 76%, #E8C77A88 50%, transparent 51%), radial-gradient(1px 1px at 86% 82%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 55% 9%, #fff5 50%, transparent 51%); }
.theme-mystic #app { position: relative; z-index: 1; }
.theme-mystic .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.theme-mystic .btn.primary { color: #1A1033; } .theme-mystic .btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.theme-mystic .brand .mark { color: var(--gold); } .theme-mystic .floorplan { border-color: var(--line-2); } .theme-mystic .room { border-color: var(--line-2); }
.theme-mystic .panel, .theme-mystic .board-col { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.theme-mystic h1 { background: linear-gradient(92deg, var(--ink) 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- accent choice (Settings) ---------- */
body[data-accent="orange"] { --pick: #E8702A; } body[data-accent="teal"] { --pick: #1E8C86; } body[data-accent="blue"] { --pick: #3D6FD6; }
body[data-accent="green"] { --pick: #3F8A5C; } body[data-accent="violet"] { --pick: #7A5AF5; } body[data-accent="rose"] { --pick: #D0457A; }
body.theme-paper[data-accent] { --accent: var(--pick); --accent-ink: color-mix(in srgb, var(--pick) 74%, #000); --accent-soft: color-mix(in srgb, var(--pick) 13%, #fff); --focus: var(--accent-ink); }
body.theme-night[data-accent] { --accent: color-mix(in srgb, var(--pick) 88%, #fff); --accent-ink: color-mix(in srgb, var(--pick) 62%, #fff); --accent-soft: color-mix(in srgb, var(--pick) 24%, var(--night)); --focus: var(--accent-ink); }

/* ---------- text size, spacing, motion (Settings) ---------- */
body[data-text="large"] main, body[data-text="large"] .sheet { zoom: 1.12; } body[data-text="xl"] main, body[data-text="xl"] .sheet { zoom: 1.25; }
body[data-text="large"] .sidenav a, body[data-text="xl"] .sidenav a { font-size: 17px; }
body[data-density="compact"] { --tap: 38px; --s4: 12px; --s5: 18px; --s6: 24px; --s7: 36px; }
body[data-motion="reduce"] *, body[data-motion="reduce"] *::before, body[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- left rail footer: settings + profile ---------- */
.sidenav .nav-foot { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sidenav a.nav-me { min-height: 56px; gap: 10px; } .nav-me .nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
@media (max-width: 860px) { .sidenav .nav-foot { display: none; } }
.nav-me .nm strong { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav-me .nm small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- settings ---------- */
.settings { display: grid; gap: var(--s4); max-width: 960px; }
.set-section h2 { margin-bottom: var(--s4); }
.set-row { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; } .set-row legend { font-weight: 560; font-size: 15px; margin-bottom: 8px; padding: 0; }
.set-row .seg { flex-wrap: wrap; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.theme-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px; border: 1.5px solid var(--line-2); border-radius: var(--r3); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.theme-card:hover { border-color: var(--ink-2); } .theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.theme-card strong { margin-top: 6px; }
.tp { height: 84px; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; color: var(--ink); }
.tp.theme-mystic { background: radial-gradient(160px 90px at 90% 0%, rgba(140, 100, 255, .35), transparent 70%), var(--bg); }
.tp-bar { height: 16px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border-bottom: 1px solid var(--line); } .tp-bar i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); } .tp-bar b { width: 28px; height: 4px; border-radius: 2px; background: var(--ink-2); }
.tp-body { padding: 8px; display: flex; flex-direction: column; gap: 5px; } .tp-h { width: 60%; height: 7px; border-radius: 3px; background: var(--ink); } .tp-l { width: 85%; height: 4px; border-radius: 2px; background: var(--muted); } .tp-l.short { width: 50%; }
.tp-btn { width: 34px; height: 10px; border-radius: 3px; background: var(--accent); margin-top: 2px; }
.tp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .tp-split .tp { height: 84px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--sw); cursor: pointer; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); font-size: 13px; }
.swatch.auto { background: conic-gradient(#E8702A 0 25%, #B79CFF 0 50%, #E8702A 0 75%, #B79CFF 0); color: #fff; text-shadow: 0 1px 2px #0008; }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

/* ---------- profile & accounts ---------- */
.profile-head { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s5); } .profile-head h1 { margin-bottom: 2px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.acct-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.acct-list li { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--raised); }
.acct-list li.current { border-color: var(--ok); }
.acct-row { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; } .acct-who { display: flex; flex-direction: column; min-width: 0; flex: 1; } .acct-who strong, .acct-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card { display: flex; gap: var(--s3); align-items: center; } .me-card > div { display: flex; flex-direction: column; min-width: 0; }
.menu-list { display: grid; gap: var(--s2); } .menu-list .btn { justify-content: flex-start; }
.saved-accts { margin-bottom: var(--s4); border-top-color: var(--accent); } .saved-accts h2 { font-size: 17px; } .saved-accts .acct-list { margin: 0; }
.check.compact { min-height: 0; font-size: 14px; gap: 6px; }

/* ---------- projects board: five lanes ---------- */
.lane-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 var(--s4); padding-bottom: 2px; }
.lane-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 560; cursor: pointer; white-space: nowrap; }
.lane-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .lane-tabs .count { font-weight: 400; opacity: .75; }
.lane-assign, .lane-production, .lane-review, .lane-paused, .lane-completed { min-width: 0; }
.board:has(.lane-assign) { grid-auto-columns: minmax(190px, 1fr); }
.board.single { grid-auto-flow: row; grid-template-columns: 1fr; } .board.single .board-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-content: start; } .board.single .board-col > h2, .board.single .board-col > p { grid-column: 1 / -1; }
.board-col > .fine { margin: -2px 0 4px; }
.lane-assign { border-top: 3px solid var(--accent); } .lane-production { border-top: 3px solid var(--info); } .lane-review { border-top: 3px solid var(--warn); } .lane-paused { border-top: 3px solid var(--graphite); } .lane-completed { border-top: 3px solid var(--ok); }
.board-card { cursor: default; } .board-card .bc-main { display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; } .board-card .bc-main .pill { align-self: flex-start; }
.board-card.late { border-left: 3px solid var(--warn); }
.assign-inline { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); } .assign-inline select { min-height: 34px; padding: 4px 8px; font-size: 14px; flex: 1; min-width: 0; } .assign-inline .btn { flex: none; }
.roster-strip { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); margin-bottom: var(--s4); }
.roster-strip h2 { font-size: 15px; margin: 0; } .roster-strip ul { list-style: none; display: flex; gap: var(--s4); flex-wrap: wrap; padding: 0; margin: 0; flex: 1; }
.roster-strip li { display: flex; gap: 8px; align-items: center; } .roster-strip li > div { display: flex; flex-direction: column; line-height: 1.25; } .roster-strip li.invited { opacity: .75; }
@media (max-width: 860px) { .board:not(.single) { grid-auto-flow: row; grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .topbar { gap: 6px; padding: 0 10px; } .top-tools { gap: 0; } .top-tools .icon-btn { width: 38px; } .me-btn { padding: 2px; }
  .switcher { padding: 2px; } .switcher a { padding: 6px 8px; font-size: 13px; }
}

/* ---------- client: team dashboard (company admin) ---------- */
.team-dash { margin-bottom: var(--s5); } .team-dash h2 { font-size: 19px; margin: 0; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.team-card { display: flex; align-items: center; gap: var(--s3); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-height: var(--tap); }
.team-card:hover { border-color: var(--ink-2); } .team-card.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.tc-main { display: flex; flex-direction: column; min-width: 0; flex: 1; } .tc-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-mini { display: flex; gap: 3px; }
.compact-select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 14px; }

/* ---------- getting started checklist ---------- */
.getting-started { margin-bottom: var(--s5); border-top: 3px solid var(--accent); } .getting-started h2 { margin: 0; }
.gs-steps { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 2px; }
.gs-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.gs-steps > li:last-child { border-bottom: 0; }
.gs-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--bg); }
.gs-steps > li.done .gs-mark { background: var(--ok); border-color: var(--ok); } .gs-steps > li.done > div > strong { color: var(--muted); }
.gs-body { margin-top: 4px; } .gs-body .row { gap: 6px; } .stack-sm > * + * { margin-top: 6px; }
.gs-steps.compact > li { padding: 6px 0; } .gs-steps.compact .gs-mark { width: 20px; height: 20px; font-size: 11px; }
.signup-list { display: grid; gap: var(--s3); } .signup h2 { margin: 0 0 2px; font-size: 19px; }

/* ---------- client project: status strip, drive folder ---------- */
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; margin-bottom: var(--s4); }
.status-strip > div { background: var(--surface); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-strip strong { font-size: 18px; } .status-strip .status-line { margin: 0; }
.drive-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: var(--r2); background: var(--surface); margin-bottom: var(--s4); }
.drive-bar > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }

/* ---------- office: assign with deadline ---------- */
.assign-inline { flex-direction: column; align-items: stretch; } .assign-inline select, .assign-inline input { width: 100%; min-width: 0; } .assign-inline .btn { justify-content: center; }
.due-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; font-size: 13px; color: var(--muted); } .due-field input { min-height: 34px; padding: 4px 8px; font-size: 14px; }
.board-col { min-width: 0; } .board-card { min-width: 0; overflow: hidden; }
.assign-form { display: grid; gap: 0; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line-2); }
.rail-more { margin: var(--s2) 6px; } .rail-more summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 4px; }
.gs-body .btn { white-space: normal; text-align: left; height: auto; min-height: 34px; padding-block: 6px; max-width: 100%; }
/* Sales: assistant dock, contact-info filters, first contact email */
.assist-dock { display: grid; gap: var(--s2); margin-bottom: var(--s4); padding: var(--s3) var(--s4); }
.assist-head { display: flex; align-items: center; gap: var(--s3); } .assist-head p { margin: 2px 0 0; } .assist-head .grow { flex: 1; min-width: 0; }
.assist-last { display: grid; gap: 2px; text-align: left; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r2); padding: 8px 12px; color: var(--ink); cursor: pointer; font: inherit; }
.assist-last:hover { border-color: var(--ink-2); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.assist-compose { display: grid; gap: var(--s2); } .assist-compose .chips { padding: 0; } .assist-compose .chips button { min-height: 34px; font-size: 14px; }
.assist-compose .compose-row textarea { flex: 1; min-width: 0; } .assist-lead select { max-width: 100%; min-height: 36px; font-size: 14px; }
.assist-thread .msgs { min-height: 260px; } .assist-thread .composer .chips button { min-height: 32px; }
.assist-tasks li { padding: 6px 0; border-bottom: 1px solid var(--line); } .assist-tasks li:last-child { border-bottom: 0; }
.pipe-tools { display: grid; gap: var(--s2); margin-bottom: var(--s3); } .pipe-tools .chips { padding: 0; }
.row.wrap { flex-wrap: wrap; }
.bc-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; } .bc-pills .pill { font-size: 12px; padding: 1px 8px; }
.board-card.missing { border-left: 3px solid var(--warn); }
.fc-box { display: grid; gap: var(--s2); padding: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--raised); margin-bottom: var(--s2); } .fc-box p { margin: 2px 0 0; }
@media (max-width: 720px) { .assist-dock { padding: var(--s3); } .assist-head .btn { display: none; } }
/* Sales: task progress and stage moves (0023) */
.task-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 560; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: normal; }
.task-chip.act { color: var(--accent-ink); border-color: currentColor; background: var(--accent-soft); } .task-chip.ok { color: var(--ok); border-color: currentColor; }
.task-chip.bad { color: var(--bad); border-color: currentColor; } .task-chip.running { color: var(--ok); border-color: currentColor; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; }
@media (prefers-reduced-motion: no-preference) { .dots i { animation: dotpulse 1.2s infinite ease-in-out; } .dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; } @keyframes dotpulse { 40% { opacity: 1; transform: translateY(-2px); } } }
.assist-now { display: grid; gap: 6px; } .msg-task { margin-top: 6px; } .assist-tasks.done a { color: var(--muted); }
.stage-box { display: grid; gap: 6px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); } .stage-move { padding: 0; flex-wrap: wrap; overflow: visible; }
.stage-move .stage-chip { min-height: 40px; font-size: 14px; }
.pipe-board { grid-auto-columns: minmax(210px, 1fr); }
.board-col.stage-hot { border-top: 3px solid var(--bad); } .board-col.stage-won { border-top: 3px solid var(--ok); } .board-col.stage-lost { border-top: 3px solid var(--graphite); opacity: .85; }
.board-col.stage-follow_up { border-top: 3px solid var(--warn); } .board-col.stage-called, .board-col.stage-contacted { border-top: 3px solid var(--info); }
.stage-chip.stage-hot.on { background: var(--bad); border-color: var(--bad); color: #fff; } .stage-chip.stage-won.on { background: var(--ok); border-color: var(--ok); color: #fff; }
/* 0025: client project tabs stand out (a raised bar with pill tabs; the open tab is filled with the accent) */
.iface-client .tabpanel { margin-top: 0; }
.iface-client .tabs[role=tablist] { position: sticky; top: 0; z-index: 5; gap: 6px; padding: 6px; margin: var(--s4) 0 var(--s4); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.iface-client .tabs[role=tablist] a { min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px; margin: 0; color: var(--ink); font-weight: 650; font-size: 15.5px; }
.iface-client .tabs[role=tablist] a:hover { background: var(--accent-soft); }
.iface-client .tabs[role=tablist] a.on { background: var(--accent); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.iface-client .tabs[role=tablist] a.on .unread { background: #fff; color: var(--accent-ink); }
.iface-client .tabs[role=tablist] a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) { .iface-client .tabs[role=tablist] a { padding: 0 14px; font-size: 15px; } }
/* 0025: email settings and lead email note */
.email-set .big-check { align-items: flex-start; gap: 10px; } .email-set .big-check input { width: 22px; height: 22px; margin-top: 2px; }
.fc-foot { background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
/* messages: start a general or project conversation */
.msg-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.msg-start-opt { display: flex; flex-direction: column; gap: 6px; } .msg-start-opt .btn { align-self: flex-start; }
/* brand logo + project photos behind the dark rooms and the sign-in page (Settings > Background photos turns them off) */
.mark img { display: block; width: 32px; height: 32px; border-radius: 50%; }
.auth-brand .mark img { width: 44px; height: 44px; }
body.theme-night:not(.theme-mystic):not([data-photos=off])::before,
body.auth-page:not([data-photos=off])::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 19, 21, .80) 0%, rgba(18, 19, 21, .90) 45%, rgba(18, 19, 21, .97) 100%), url(/app/img/bg-office.jpg) center / cover no-repeat;
}
body.theme-night.studio:not(.theme-mystic):not([data-photos=off])::before {
  background: linear-gradient(180deg, rgba(18, 19, 21, .80) 0%, rgba(18, 19, 21, .90) 45%, rgba(18, 19, 21, .97) 100%), url(/app/img/bg-studio.jpg) center / cover no-repeat;
}
body.theme-night:not(.theme-mystic):not([data-photos=off]) { background: #121315; }
/* sign-in: the photo shows more, the cards stay solid and readable */
body.auth-page:not([data-photos=off]) { background: #121315; }
body.auth-page:not([data-photos=off])::before {
  background: linear-gradient(180deg, rgba(14, 15, 17, .45) 0%, rgba(14, 15, 17, .62) 50%, rgba(14, 15, 17, .82) 100%), url(/app/img/bg-login.jpg) center / cover no-repeat;
}
body.auth-page:not([data-photos=off]) .auth-brand, body.auth-page:not([data-photos=off]) .auth-brand strong { color: #FFFFFF; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
body.auth-page:not([data-photos=off]) .auth-brand span { color: rgba(255, 255, 255, .85); }
body.auth-page:not([data-photos=off]) .auth-card { box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
/* ---------- office overview: tiles, grouped to-do list, department cards ---------- */
main.office-wide { max-width: 1680px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--graphite); flex: none; }
.dot.act, .dot.waiting { background: var(--accent); } .dot.bad, .dot.blocked { background: #E0573F; } .dot.warn { background: #D9962B; }
.dot.running, .dot.online { background: #4FB477; } .dot.queued { background: #5B8FCC; } .dot.external { background: #9A86D6; } .dot.idle, .dot.offline { background: #6B6760; }
.ov-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.ov-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line-2); border-radius: var(--r3); color: var(--ink); cursor: pointer; text-align: left; }
.ov-tile b { font-size: 34px; font-weight: 650; font-stretch: 80%; line-height: 1.1; } .ov-tile span { color: var(--ink-2); font-size: 15px; }
.ov-tile.act { border-top-color: var(--accent); } .ov-tile.bad { border-top-color: #E0573F; } .ov-tile.warn { border-top-color: #D9962B; }
.ov-tile:hover { background: var(--raised); } .ov-tile.zero { opacity: .55; } .ov-tile.zero b { color: var(--muted); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s5); align-items: start; }
.ov-todo h2, .ov-feed h2, .ov-rooms h2 { font-size: 20px; margin-bottom: var(--s4); }
.ov-group { scroll-margin-top: 16px; } .ov-group + .ov-group { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.ov-group h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: var(--s2); }
.ov-group .count { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 0 9px; }
.ov-group ul { list-style: none; padding: 0; margin: 0 0 var(--s2); }
.ov-item { display: flex; align-items: center; gap: var(--s3); padding: 10px 12px; border-radius: var(--r2); color: var(--ink); text-decoration: none; }
.ov-item:hover { background: var(--raised); text-decoration: none; } .ov-item > div { flex: 1; min-width: 0; }
.ov-item strong, .ov-item div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-item strong { font-weight: 560; } .ov-item div > span { font-size: 14px; color: var(--muted); }
.ov-item .code { display: inline-block; font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 6px; margin-right: 8px; vertical-align: 1px; }
.ov-item .go { font-size: 22px; color: var(--muted); line-height: 1; }
.ov-key { display: flex; flex-wrap: wrap; gap: var(--s4); margin: 0 0 var(--s4); font-size: 13px; color: var(--muted); } .ov-key span { display: inline-flex; align-items: center; gap: 6px; }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.ov-card { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); color: var(--ink); text-decoration: none; min-height: 132px; }
.ov-card:hover { border-color: var(--ink-2); text-decoration: none; } .ov-card.hot { border-left: 4px solid var(--accent); }
.ov-card strong { font-size: 17px; font-weight: 650; }
.ov-team { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ov-team .who { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--raised); border: 1px solid var(--line-2); border-radius: 50%; }
.ov-team .who.ai { border-radius: 8px; } .ov-team .who .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--surface); }
.ov-feed .feed li { grid-template-columns: 1fr; gap: 0; padding: 8px 0; } .ov-feed .feed span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1200px) { .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-tile b { font-size: 28px; } }
