:root {
  color: #151515;
  background: #f1efe8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #f8f6ef;
  --muted: #69675f;
  --line: #d8d4c9;
  --accent: #ee4a2e;
  --sidebar: #25231f;
  --shell-switch-link-height: 32px;
  --shell-switch-link-padding: 0 14px;
  --shell-switch-focus: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 300px; min-height: 100vh; min-height: 100svh; margin: 0; background: var(--paper); }
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.office-app {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.office-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px 18px;
  border-bottom: 1px solid #3b3934;
  color: #fff;
  background: var(--sidebar);
}

.office-brand { display: inline-flex; gap: 11px; align-items: center; width: fit-content; color: inherit; text-decoration: none; }
.office-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #171611;
  background: #f3d451;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 900;
}
.office-brand strong, .office-brand small { display: block; }
.office-brand strong { font-size: 0.96rem; letter-spacing: -0.02em; }
.office-brand small { margin-top: 2px; color: #aaa79e; font-size: 0.68rem; }

.channel-unread[hidden], .channel-typing[hidden] { display: none; }

.office-contact { justify-self: end; color: #c4c1b8; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.75rem; text-decoration: none; }
.office-contact:hover, .office-contact:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.office-actions { display: flex; min-width: 0; gap: 10px; align-items: center; justify-self: end; }
.team-account { display: flex; gap: 8px; align-items: center; padding: 4px 5px 4px 9px; border: 1px solid #514e47; border-radius: 999px; background: #2e2c27; }
.team-account span, .team-account strong, .team-account small { display: block; }
.team-account strong { max-width: 110px; overflow: hidden; color: #f3f0e7; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.team-account small { margin-top: 1px; color: #8fc29d; font-size: 0.53rem; }
.team-account button { padding: 5px 7px; border: 0; border-radius: 999px; color: #aaa69c; background: #3b3832; font: inherit; font-size: 0.56rem; cursor: pointer; }
.team-account button:hover, .team-account button:focus-visible { color: #fff; background: #4a463f; }

.office-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  max-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 18px;
  border-right: 1px solid #3b3934;
  color: #eeeae0;
  background: var(--sidebar);
}

.sidebar-section + .sidebar-section { margin-top: 32px; }
.sidebar-label { margin: 0 0 10px; color: #908d84; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.channel-list { display: grid; gap: 2px; }
.channel-row { display: flex; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 8px; color: #c9c5bc; font-size: 0.79rem; text-decoration: none; }
.channel-row:hover, .channel-row:focus-visible { color: #fff; background: #302e29; }
.channel-row.is-current { color: #171611; background: #f3d451; }
.channel-row.is-current:hover, .channel-row.is-current:focus-visible { color: #171611; background: #f7dc6d; }
.channel-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-unread { display: inline-grid; min-width: 20px; height: 20px; margin-left: auto; padding: 0 5px; place-items: center; border: 1px solid #77736a; border-radius: 999px; color: #d8d4cb; background: #45423d; font-size: 0.61rem; font-weight: 750; }
.channel-row.is-current .channel-unread { border-color: #5f5a28; color: #fff; background: #615c2b; }
.channel-typing { display: inline-flex; gap: 2px; align-items: center; margin-left: auto; padding: 5px 4px; }
.channel-typing i { width: 3px; height: 3px; border-radius: 50%; background: #bdb9ae; animation: channel-typing 1.1s infinite ease-in-out; }
.channel-typing i:nth-child(2) { animation-delay: 0.14s; }
.channel-typing i:nth-child(3) { animation-delay: 0.28s; }
@keyframes channel-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-2px); opacity: 1; } }
.channel-purpose { max-width: 700px; margin: 10px 0 0; color: #77746b; font-size: 0.74rem; line-height: 1.4; }
.agent-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.agent-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 7px; color: #dbd7ce; font-size: 0.82rem; }
.agent-list li:hover { background: #302e29; }
.agent-list small { color: #807d75; font-size: 0.65rem; }
.agent-memory-link { color: inherit; font-weight: 700; text-decoration: none; }
.agent-memory-link:hover, .agent-memory-link:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.team-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.team-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 7px; color: #eeeae0; font-size: 0.8rem; }
.team-list li:hover { background: #302e29; }
.team-list small { color: #8fc29d; font-size: 0.62rem; text-transform: capitalize; }
.presence { width: 8px; height: 8px; border: 1.5px solid #77736a; border-radius: 50%; }
.presence.is-here { border-color: #6fd08c; background: #6fd08c; box-shadow: 0 0 0 3px rgb(111 208 140 / 12%); }
.presence.is-typing { border-color: #f3d451; background: #f3d451; animation: status-pulse 1.5s ease-in-out infinite; }
.sidebar-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid #3f3d37; color: #aaa79e; font-size: 0.7rem; line-height: 1.5; }
.sidebar-note strong { color: #dedbd2; }
.sidebar-note p { margin: 2px 0 0; }
.sidebar-workstream { margin-top: auto; padding-top: 26px; }
.sidebar-workstream-card { display: grid; gap: 6px; padding: 12px; border: 1px solid #47443e; border-radius: 11px; color: #b9b5ac; background: #2b2925; text-decoration: none; }
.sidebar-workstream-card:hover, .sidebar-workstream-card:focus-visible { border-color: #67635b; background: #302e29; }
.sidebar-workstream-phase { color: #aaa69c; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.57rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.sidebar-workstream[data-phase="developer-review"] .sidebar-workstream-phase,
.sidebar-workstream[data-phase="candidate"] .sidebar-workstream-phase,
.sidebar-workstream[data-phase="building"] .sidebar-workstream-phase { color: #8fc29d; }
.sidebar-workstream[data-phase="blocked"] .sidebar-workstream-phase { color: #d2a28d; }
.sidebar-workstream[data-phase="built-local"] .sidebar-workstream-phase,
.sidebar-workstream[data-phase="live"] .sidebar-workstream-phase { color: #78c68e; }
.sidebar-workstream-card strong { color: #f0ede4; font-size: 0.77rem; line-height: 1.28; }
.sidebar-workstream-summary { display: -webkit-box; overflow: hidden; color: #aaa69c; font-size: 0.65rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.sidebar-workstream-source { margin-top: 2px; color: #d8d4ca; font-size: 0.62rem; font-weight: 750; }
.sidebar-note { margin-top: 14px; }
.dev-visitor-panel { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: 238px; padding: 14px; border: 1px solid #4a4740; border-radius: 12px; color: #dedbd2; background: var(--sidebar); box-shadow: 0 18px 45px rgb(0 0 0 / 18%); }
.dev-visitor-title { margin: 0 0 10px; color: #aaa69c; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dev-visitor-stepper { display: grid; grid-template-columns: 34px 1fr 34px; gap: 6px; align-items: center; }
.dev-visitor-stepper button, .dev-visitor-clear { border: 1px solid #56524a; color: #dedbd2; background: #302e29; font: inherit; cursor: pointer; }
.dev-visitor-stepper button { width: 34px; height: 32px; border-radius: 7px; font-size: 1rem; }
.dev-visitor-stepper button:hover:not(:disabled), .dev-visitor-stepper button:focus-visible, .dev-visitor-clear:hover:not(:disabled), .dev-visitor-clear:focus-visible { border-color: #8c877d; background: #3b3832; }
.dev-visitor-stepper button:disabled, .dev-visitor-clear:disabled { cursor: default; opacity: 0.38; }
.dev-visitor-stepper output { color: #f3d451; font-size: 0.82rem; font-weight: 800; text-align: center; }
.dev-visitor-clear { width: 100%; margin-top: 7px; padding: 6px 8px; border-radius: 7px; font-size: 0.63rem; }
.dev-visitor-help { margin: 8px 0 0; color: #8f8b82; font-size: 0.61rem; line-height: 1.35; }
.dev-visitor-help.is-error { color: #d59a87; }

.office-main { display: flex; min-width: 0; min-height: 0; height: calc(100vh - 72px); height: calc(100svh - 72px); flex-direction: column; overflow: hidden; background: var(--paper); }
.channel-header { display: flex; gap: 24px; align-items: end; justify-content: space-between; padding: 34px clamp(22px, 5vw, 72px) 26px; border-bottom: 1px solid var(--line); }
.channel-kicker { margin: 0 0 5px; color: var(--accent); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.73rem; font-weight: 800; }
.channel-header h1 { max-width: 700px; margin: 0; font-size: clamp(1.75rem, 4vw, 3.6rem); letter-spacing: -0.055em; line-height: 0.98; }
.office-status-wrap { position: relative; flex: none; }
.office-status { display: flex; flex: none; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font: inherit; font-size: 0.69rem; font-weight: 700; }
.office-status:disabled { opacity: 1; }
.office-status.has-local-controls { cursor: pointer; }
.office-status.has-local-controls::after { margin-left: 2px; color: #9b988f; content: "⌄"; }
.office-status.has-open-controls::after { content: "⌃"; }
.office-status.has-local-controls:hover, .office-status.has-local-controls:focus-visible { border-color: #aaa69f; color: #34332f; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d2a92b; }
.office-status.is-live .status-dot { background: #32a85b; box-shadow: 0 0 0 4px rgb(50 168 91 / 12%); animation: status-pulse 2.5s ease-in-out infinite; }
.office-status.is-sleeping .status-dot { background: #9a968c; }
.office-status.is-disconnected { border-color: #d9b8a9; color: #8d4f3d; background: #fff8f4; }
.office-status.is-disconnected .status-dot { background: #c96f51; box-shadow: 0 0 0 4px rgb(201 111 81 / 10%); }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 7px rgb(50 168 91 / 2%); } }

.message-list { width: min(100%, 920px); min-height: 0; flex: 1; margin: 0 auto; padding: 34px clamp(22px, 5vw, 64px) 14px; overflow-y: auto; overscroll-behavior: contain; }
.loading-message, .empty-message { margin: 30px 0; color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.82rem; }
.message-day { display: flex; gap: 12px; align-items: center; margin: 6px 0 28px; color: #8b887f; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; }
.message-day::before, .message-day::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.message { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; margin-bottom: 25px; }
.message.is-source-linked { margin-inline: -10px; padding: 10px; border-radius: 14px; background: rgb(233 226 180 / 35%); scroll-margin-block: 24px; }
.message-avatar { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgb(0 0 0 / 12%); border-radius: 12px; color: #171611; background: #d9d5cb; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.78rem; font-weight: 900; }
.message[data-agent="product"] .message-avatar { background: #f3d451; }
.message[data-agent="designer"] .message-avatar { background: #a9d8c7; }
.message[data-agent="marketing"] .message-avatar { background: #ed9c7e; }
.message[data-agent="operations"] .message-avatar { background: #b7b6e6; }
.message[data-agent="developer"] .message-avatar { color: #fff; background: #25231f; }
.message[data-agent="builder"] .message-avatar { color: #fff; background: #5550b8; }
.message[data-agent="visual-qa"] .message-avatar { color: #17352f; background: #8fd2c0; }
.message[data-agent="visitor"] .message-avatar { color: #3f4c41; background: #dfe9df; }
.message[data-kind="team"] .message-avatar { color: #33483a; background: #cfe2d4; }
.message[data-agent="system"] .message-avatar { background: #fff; }
.message-meta { display: flex; gap: 8px; align-items: baseline; min-height: 20px; }
.message-meta strong { font-size: 0.87rem; letter-spacing: -0.015em; }
.message-role, .message-time { color: #8c887f; font-size: 0.65rem; }
.message-time { margin-left: auto; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.message-copy { max-width: 700px; margin: 3px 0 0; font-size: clamp(0.98rem, 1.5vw, 1.08rem); line-height: 1.48; }
.message-copy > :first-child { margin-top: 0; }
.message-copy > :last-child { margin-bottom: 0; }
.message-copy p { margin: 0; }
.message-copy p + p, .message-copy p + ul, .message-copy p + ol, .message-copy ul + p, .message-copy ol + p, .message-copy blockquote + p { margin-top: 0.48em; }
.message-copy ul, .message-copy ol { margin: 0.42em 0; padding-left: 1.3em; }
.message-copy li + li { margin-top: 0.18em; }
.message-copy blockquote { margin: 0.45em 0; padding-left: 0.7em; border-left: 2px solid #c9c5bb; color: #656159; }
.message-copy code { padding: 0.08em 0.28em; border-radius: 4px; background: #eceae4; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.82em; }
.message-copy pre { max-width: 100%; margin: 0.48em 0; padding: 0.7em; overflow-x: auto; border-radius: 6px; background: #eceae4; white-space: pre-wrap; }
.message-copy pre code { padding: 0; background: transparent; font-size: 0.75em; }
.message-copy .markdown-link { color: #2f6659; font-weight: 680; text-decoration-thickness: 1px; text-underline-offset: 0.16em; overflow-wrap: anywhere; }
.message-copy .markdown-link:hover, .message-copy .markdown-link:focus-visible { color: #173b32; text-decoration-thickness: 2px; }
.message-reply { max-width: 620px; margin: 4px 0 5px; padding-left: 9px; border-left: 2px solid #c9c5bb; color: #817e75; font-size: 0.69rem; line-height: 1.35; }
.inline-mention { padding: 0 2px; border-radius: 4px; color: #423f24; background: #e9e2b4; font-weight: 720; }
.message[data-kind="decision"] .message-copy, .message[data-kind="build-start"] .message-copy, .message[data-kind="build-finished"] .message-copy { display: inline-block; padding: 10px 13px; border-left: 3px solid var(--accent); background: #fff; }
.message[data-kind="audience"] .message-copy { display: inline-block; padding: 9px 12px; border-radius: 0 10px 10px 10px; color: #344137; background: #e8efe7; }
.message[data-kind="team"] .message-copy { display: inline-block; padding: 9px 12px; border-radius: 0 10px 10px 10px; color: #2f3d33; background: #e3eee6; }
.message[data-kind="visual-report"] .message-copy { display: inline-block; padding: 10px 13px; border-left: 3px solid #4a9f8c; background: #edf7f3; }
.message-report-link { display: inline-block; margin-top: 7px; color: #356f62; font-size: 0.68rem; font-weight: 750; text-underline-offset: 3px; }
.message-delivery { margin: 4px 0 0; color: #85827a; font-size: 0.6rem; }
.message-delivery[data-status="responded"] { color: #547057; }
.message-delivery[data-status="rejected"] { color: #a35d4a; }

.typing-line { display: flex; visibility: hidden; flex: none; gap: 9px; align-items: center; width: min(100%, 920px); min-height: 34px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px) 8px; color: #817e75; font-size: 0.7rem; }
.typing-line.is-active { visibility: visible; }
.typing-dots { display: flex; gap: 2px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: #77736b; animation: typing 1.2s infinite ease-in-out; animation-play-state: paused; }
.typing-line.is-active .typing-dots i { animation-play-state: running; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-3px); opacity: 1; } }
.audience-composer { min-width: 0; }
.audience-toggle { display: flex; width: 100%; min-width: 0; min-height: 42px; gap: 9px; align-items: center; padding: 0 9px; border: 1px solid #d7cdb5; border-radius: 8px; color: #514a3c; background: #fffdf7; font: inherit; text-align: left; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.audience-toggle:hover, .audience-toggle:focus-visible, .audience-composer.is-open .audience-toggle { border-color: #b89c5f; color: #373329; background: #fff; transform: translateY(-1px); }
.audience-toggle-icon { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 50%; color: #312b1e; background: #f3d451; font-size: 0.9rem; font-weight: 800; }
.audience-toggle-copy { overflow: hidden; font-size: 0.72rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.audience-toggle-caret { margin-left: auto; color: #9a8460; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.72rem; transition: transform 140ms ease; }
.audience-composer.is-open .audience-toggle-caret { transform: rotate(180deg); }
.audience-desk { position: absolute; z-index: 10; right: 0; bottom: calc(100% + 8px); left: 0; padding: 12px; border: 1px solid #c9c4b7; border-radius: 12px; background: #f4f1e8; box-shadow: 0 -16px 40px rgb(44 41 34 / 14%); }
.audience-desk[hidden] { display: none; }
.audience-heading { display: flex; gap: 18px; align-items: end; justify-content: space-between; }
.audience-kicker { margin: 0 0 2px; color: #8a6321; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.58rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.audience-heading h2 { margin: 0; color: #39372f; font-size: 0.82rem; letter-spacing: -0.015em; }
.audience-heading > p { margin: 0; color: #8b887e; font-size: 0.61rem; text-align: right; }
.audience-heading > p[data-mode="sent"], .audience-heading > p[data-mode="answered"] { color: #547057; }
.audience-heading > p[data-mode="error"] { color: #a35d4a; }
.audience-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.audience-pill { display: grid; min-width: 0; min-height: 72px; gap: 4px; align-content: start; padding: 9px 10px; border: 1px solid #d0cabd; border-radius: 9px; color: #403e37; background: #fbfaf5; font: inherit; text-align: left; cursor: pointer; }
.audience-pill:hover:not(:disabled), .audience-pill:focus-visible { border-color: #a39a85; background: #fff; transform: translateY(-1px); }
.audience-pill:disabled { cursor: default; opacity: 0.57; }
.audience-pill.is-selected { border-color: #8d8369; background: #ebe6d7; opacity: 1; }
.audience-pill.is-answered { border-color: #b8c9b9; }
.audience-pill-meta { color: #989286; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.54rem; font-weight: 750; text-transform: uppercase; }
.audience-pill-label { font-size: 0.69rem; font-weight: 650; line-height: 1.3; }
.audience-receipt { grid-column: 1 / -1; min-height: 0; font-size: 0.69rem; font-weight: 650; line-height: 1.3; }
.audience-pill-result { min-height: 0.7rem; margin-top: auto; color: #758177; font-size: 0.54rem; }
.team-composer { min-width: 0; }
.team-composer form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: end; }
.team-composer textarea { width: 100%; min-height: 38px; max-height: 76px; padding: 9px 11px; resize: none; overflow-y: auto; border: 1px solid #b9cabb; border-radius: 8px; outline: 0; color: #2f3931; background: #fbfdfb; font: inherit; font-size: 0.76rem; line-height: 1.35; }
.team-composer textarea::placeholder { color: #898f89; }
.team-composer textarea:focus { border-color: #6f9d7c; box-shadow: 0 0 0 3px rgb(111 157 124 / 11%); }
.team-composer button { min-height: 38px; padding: 0 13px; border: 1px solid #385e43; border-radius: 8px; color: #fff; background: #385e43; font: inherit; font-size: 0.69rem; font-weight: 760; cursor: pointer; }
.team-composer button:hover:not(:disabled), .team-composer button:focus-visible { background: #2e5038; }
.team-composer button:disabled, .team-composer textarea:disabled { cursor: default; opacity: 0.55; }
.team-message-status { min-height: 0.8rem; margin: 4px 7px 0; overflow: hidden; color: #817e75; font-size: 0.61rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.office-composer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; width: min(calc(100% - 44px), 792px); min-height: 48px; margin: 0 auto 22px; padding: 0 12px 0 2px; border: 1px solid #c8c4b9; border-radius: 10px; color: #918e85; background: #eeece4; }
.office-composer > small { margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.72rem; }
.office-composer.has-team-composer { grid-template-columns: minmax(0, 1fr); padding: 4px 6px 5px; }
.office-composer.has-team-composer > small { display: none; }

@media (max-width: 760px) {
  .office-app { display: block; }
  .office-topbar { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 64px; padding: 9px 12px; }
  .office-brand small, .office-contact, .team-account small { display: none; }
  .view-switch { justify-self: end; }
  :root { --shell-switch-link-padding: 0 11px; }
  .office-actions { gap: 5px; }
  .team-account strong { max-width: 72px; }
  .office-sidebar { position: static; display: block; min-height: 54px; max-height: 54px; padding: 7px 10px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid #3b3934; }
  .office-sidebar .sidebar-label, .office-sidebar .sidebar-section:nth-child(2), .office-sidebar .sidebar-note, .sidebar-workstream { display: none; }
  .office-sidebar .sidebar-section { margin: 0; }
  .channel-list { display: flex; width: max-content; gap: 3px; }
  .channel-row { flex: none; padding: 8px 10px; }
  .office-main { height: calc(100svh - 118px); min-height: 0; }
  .channel-header { display: block; padding: 22px 20px 18px; }
  .channel-header h1 { max-width: 420px; }
  .channel-purpose { margin-top: 8px; font-size: 0.69rem; }
  .office-status-wrap { width: fit-content; margin-top: 18px; }
  .office-status { width: fit-content; }
  .dev-visitor-panel { right: auto; left: 0; }
  .message-list { padding: 26px 19px 10px; }
  .message { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; }
  .message-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .message-role { display: none; }
  .typing-line { padding-right: 20px; padding-left: 20px; }
  .audience-desk { padding: 10px; }
  .audience-heading { display: block; }
  .audience-heading > p { margin-top: 4px; text-align: left; }
  .audience-pills { display: flex; margin-right: -10px; padding-right: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
  .audience-pill { min-width: min(78vw, 260px); scroll-snap-align: start; }
  .office-composer { width: calc(100% - 28px); margin-bottom: 14px; }
  .office-composer > small { display: none; }
  .office-composer { grid-template-columns: minmax(0, 1fr); padding-right: 4px; }
}

@media (max-width: 480px) {
  .office-brand > span:last-child { display: none; }
  :root { --shell-switch-link-padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
