:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  color: #f5f5f5;
  background: #1f1f1f;
  --ink: #f5f5f5;
  --muted: #969696;
  --line: #292929;
  --surface: #111111;
  --raised: #1b1b1b;
  --active: #333333;
  --blue: #2864f0;
  --green: #93b3ff;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, textarea, select { border: 1px solid #343434; border-radius: 7px; }
button { padding: 8px 12px; color: var(--ink); background: #242424; font-weight: 500; line-height: 1.35; }
button:hover:not(:disabled) { background: #303030; border-color: #474747; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
button.primary:hover:not(:disabled) { background: #3974ff; border-color: #3974ff; }
button.quiet { color: #b2b2b2; background: transparent; border-color: transparent; }
button.quiet:hover:not(:disabled) { color: #fff; background: #242424; border-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #7ba4ff;
  outline-offset: 2px;
}
input, textarea, select { width: 100%; min-width: 0; padding: 9px 11px; color: var(--ink); background: #1b1b1b; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #777; opacity: 1; }
input[type="datetime-local"] { font-size: 12px; }
textarea { min-height: 76px; line-height: 1.55; resize: vertical; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 21px; font-weight: 600; letter-spacing: -.55px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.35px; }
h3, h4 { font-size: 13px; font-weight: 600; }
p { line-height: 1.6; }
small, .muted { color: var(--muted); }
svg { flex-shrink: 0; width: 20px; height: 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Mochi's narrow rail keeps the conversation itself in the foreground. */
.shell { display: grid; grid-template-columns: 72px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 20px 5px 10px; background: #1f1f1f; }
.brand { display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -1.5px; padding: 0 0 22px; }
.brand small { display: none; }
.nav { display: flex; flex-direction: column; gap: 7px; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 56px; padding: 9px 2px; border: 0; border-radius: 7px; background: transparent; color: #a1a1a1; }
.nav button:hover:not(:disabled) { color: #eee; background: #292929; }
.nav button.active { background: #333; color: #fff; }
.nav button span, .nav-label { font-size: 9px; font-weight: 450; line-height: 1.25; letter-spacing: -.12px; }
.nav svg { width: 21px; height: 21px; }
.sidebar-bottom { margin-top: auto; padding: 18px 2px 0; color: #777; font-size: 8px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.sidebar-bottom > span:not(.status-dot) { display: none; }
.sidebar-bottom button { display: block; padding: 8px 2px; margin: 0 auto; font-size: 10px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #797979; margin: 0 3px 1px 0; }
.status-dot.ready { background: #78bc91; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 4px 4px 4px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px 20px; flex-shrink: 0; }
.page-head p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.actions button { white-space: nowrap; font-size: 12px; }
.workspace-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.workspace-strip > span { color: var(--muted); font-size: 11px; }
.scope-control { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid #303030; border-radius: 7px; background: #1b1b1b; white-space: nowrap; }
.scope-control button { padding: 6px 9px; background: transparent; border: 0; border-radius: 4px; color: var(--muted); font-size: 11px; }
.scope-control button[aria-pressed="true"] { color: #f5f5f5; background: #333; }
.scroll-page { min-width: 0; min-height: 0; overflow: auto; flex: 1; padding: 27px 28px 40px; scrollbar-width: thin; scrollbar-color: #3b3b3b transparent; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.section-heading p { margin-top: 5px; font-size: 12px; }
.section-heading button { font-size: 11px; flex-shrink: 0; }
.page-note, .overview-note { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 880px; margin-bottom: 22px; }
.overview-note { margin-top: 25px; margin-bottom: 0; }
.tag { display: inline-flex; align-items: center; border: 1px solid #393939; border-radius: 5px; background: #222; color: #b3b3b3; font-size: 10px; font-weight: 450; line-height: 1.4; padding: 3px 6px; white-space: nowrap; }
.sample-tag { color: #c1af89; border-color: #4b4130; background: #29251e; }
.text-button { background: transparent; border: 0; padding: 0; border-radius: 2px; font-weight: 500; color: #9fbaff; text-align: left; }
.text-button:hover:not(:disabled) { background: transparent; color: #c3d3ff; text-decoration: underline; }

/* Client list, persistent conversation, contextual details. */
.work-area { display: grid; grid-template-columns: 330px minmax(0, 1fr); flex: 1; min-height: 0; min-width: 0; }
.client-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: #131313; }
.list-tools { padding: 20px 16px 15px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.list-heading h1 { font-size: 19px; letter-spacing: -.4px; }
.list-heading h1 > span { margin-left: 5px; color: #7e7e7e; font-size: 13px; font-weight: 400; }
.list-heading-actions { display: flex; align-items: center; gap: 5px; }
.list-heading-actions .refresh-button { padding: 6px; font-size: 19px; line-height: 1; }
.list-heading button { font-size: 12px; padding: 7px 10px; }
.search-wrap { display: flex; align-items: center; position: relative; }
.search-wrap svg { position: absolute; left: 11px; width: 15px; height: 15px; color: #858585; pointer-events: none; }
.search-wrap input { padding: 10px 9px 10px 34px; font-size: 12px; background: #202020; border-color: #323232; }
.filters { display: flex; gap: 4px; margin-top: 13px; overflow-x: auto; scrollbar-width: none; }
.filters button { padding: 6px 8px; font-size: 11px; white-space: nowrap; background: transparent; border-color: transparent; color: #9a9a9a; }
.filters button.active { color: #eee; background: #303030; }
.list-scope { margin-top: 14px; }
.list-scope .scope-control { display: flex; width: 100%; }
.list-scope .scope-control button { flex: 1; }
.scope-note { margin-top: 8px; color: #7d7d7d; font-size: 10px; line-height: 1.5; }
.list-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: #3b3b3b transparent; }
.client-row { width: 100%; display: flex; gap: 11px; padding: 12px 10px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 7px; margin-bottom: 3px; }
.client-row:hover:not(:disabled) { background: #202020; border-color: transparent; }
.client-row.active { background: #292929; border-color: #383838; }
.client-row > span:last-child { min-width: 0; flex: 1; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #363636; color: #e7e7e7; font-size: 11px; font-weight: 550; }
.client-row.active .avatar { background: #4b4b4b; }
.row-name { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.row-name strong { display: block; font-size: 14px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.row-name .heat { max-width: 90px; font-size: 10px; padding: 3px 5px; margin-top: 1px; }
.preview { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 400; color: #a1a1a1; line-height: 1.5; margin-top: 3px; }
.row-next { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 11px; color: #adadad; font-weight: 400; line-height: 1.4; }
.row-next > span { color: #737373; }
.row-meta { display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; gap: 6px; margin-top: 6px; color: #969696; font-size: 10px; font-weight: 400; white-space: nowrap; }
.row-meta .heat { padding: 2px 5px; font-size: 9px; }
.row-stage { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.row-due { display: block; color: #969696; font-size: 10px; font-weight: 400; margin-top: 4px; }
.row-meta .tag { font-size: 10px; padding: 1px 4px; }
.row-message-time { color: #858585; font-size: 9px; font-weight: 400; white-space: nowrap; margin-top: 4px; }
.row-preview { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-preview .preview { flex: 1; }
.unread-badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; padding: 2px 5px; background: #e5e5e5; color: #161616; font-size: 10px; }
.inbox-tabs { flex-wrap: wrap; gap: 5px; overflow: visible; }
.inbox-tabs button { font-size: 10px; border: 1px solid #303030; padding: 7px; }
.inbox-tabs button.active { background: #dedede; color: #161616; border-color: #dedede; }
.inbox-tabs span { margin-left: 3px; opacity: .65; }
.extra-filters { margin-top: 10px; font-size: 10px; color: #888; }
.extra-filters summary { cursor: pointer; width: fit-content; }
.extra-filters .filters { margin-top: 7px; }
.inbox-error { color: #d6b98d; font-size: 11px; line-height: 1.6; margin-top: 12px; }
.inbox-error:empty { display: none; }
.inbox-conversation-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 9px 20px; border-bottom: 1px solid #242424; font-size: 10px; }
.inbox-conversation-actions button { font-size: 10px; padding: 5px 8px; }
.conversation-status { margin-right: auto; color: #a9a9a9; }
.list-note { flex-shrink: 0; border-top: 1px solid var(--line); padding: 12px 15px; color: #777; font-size: 9px; line-height: 1.6; }
.heat { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 7px; border: 1px solid #444; border-radius: 5px; color: #b5b5b5; font-size: 10px; line-height: 1.35; font-weight: 450; white-space: nowrap; }
.heat.hot { color: #f4a49a; border-color: #68443e; background: #2c1f1e; }
.heat.warm { color: #dfc28c; border-color: #5b4c33; background: #29251c; }
.heat.cold { color: #96b9e2; border-color: #374b61; background: #1c242e; }
.record { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #111; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 12px 21px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.record-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.record-title .avatar { width: 33px; height: 33px; font-size: 10px; }
.record-identity { min-width: 0; }
.record-identity h2 { font-size: 16px; font-weight: 550; letter-spacing: -.1px; overflow-wrap: anywhere; }
.record-identity p { font-size: 12px; color: #929292; margin-top: 4px; overflow-wrap: anywhere; }
.back { display: none; padding: 6px 8px; font-size: 11px; background: transparent; border-color: #383838; white-space: nowrap; }
.record-view-switch { display: none; gap: 2px; padding: 3px; border: 1px solid #333; border-radius: 6px; flex-shrink: 0; }
.record-view-switch button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #919191; font-size: 11px; }
.record-view-switch svg { width: 14px; height: 14px; }
.record-view-switch button.active, .record-view-switch button[aria-pressed="true"] { background: #333; color: #fff; }
.record-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; flex: 1; min-height: 0; min-width: 0; }
.record-content { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.details-pane { min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: #151515; }
.client-context { display: flex; flex-direction: column; }
.context-head { padding: 21px 20px 18px; flex-shrink: 0; }
.context-head > .record-title, .context-head > .context-identity { margin-bottom: 14px; }
.context-identity { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.context-identity h3 { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.context-head .avatar { width: 42px; height: 42px; font-size: 13px; background: #393939; }
.context-head h2 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; overflow-wrap: anywhere; }
.context-head p { font-size: 11px; color: #8f8f8f; margin-top: 5px; overflow-wrap: anywhere; }
.context-head .heat { margin-top: 0; }
.context-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 17px; }
.context-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; padding: 8px 7px; white-space: nowrap; background: #242424; }
.context-actions svg { width: 14px; height: 14px; color: #9c9c9c; }
.tabs { display: flex; align-items: stretch; flex-shrink: 0; gap: 17px; padding: 0 19px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs button { position: relative; padding: 11px 0 12px; border: 0; border-radius: 0; background: transparent; font-size: 13px; color: #a1a1a1; white-space: nowrap; }
.tabs button.active, .tabs button[aria-selected="true"] { color: #f6f6f6; }
.tabs button.active::after, .tabs button[aria-selected="true"]::after { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #f5f5f5; content: ""; }
.tabs button:hover:not(:disabled) { color: #fff; background: transparent; }
.context-content { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3b3b3b transparent; }
.context-content > .text-pane { padding: 21px 20px 30px; }
.context-content > .context-overview, .context-overview { padding: 21px 20px 30px; }
.client-summary { margin: 0; display: grid; gap: 7px; }
.client-summary dt { font-size: 12px; line-height: 1.5; color: #969696; margin-top: 13px; }
.client-summary dt:first-child { margin-top: 0; }
.client-summary dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; color: #ddd; }
.deals-in-record { margin-top: 27px; }
.deals-in-record .section-heading { margin-bottom: 12px; }
.deals-in-record h3 { font-size: 12px; }
.deal-mini { border: 1px solid #333; border-radius: 7px; padding: 13px; margin-top: 10px; }
.deal-mini strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.5; }
.deal-mini > span { display: block; font-size: 10px; margin-top: 7px; }
.deal-mini p { margin-top: 10px; font-size: 11px; color: #aaa; }
.deal-mini button { font-size: 10px; padding: 5px 0 0; margin-top: 8px; }
.journey-disclosure { margin-top: 23px; border-top: 1px solid var(--line); }
.journey-disclosure summary { cursor: pointer; color: #b3b3b3; padding: 14px 0; font-size: 11px; }
.journey-caption { font-size: 10px; color: #828282; margin-bottom: 10px; }
.client-journey { display: flex; flex-direction: column; gap: 7px; }
.journey-step { position: relative; text-align: left; padding: 11px 12px 11px 25px; border: 1px solid var(--line); background: #1b1b1b; font-size: 11px; color: #909090; }
.journey-step::before { content: ""; position: absolute; left: 11px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: #666; }
.journey-step.known { color: #ddd; }
.journey-step.known::before { background: #7eabff; }
.journey-step span { display: block; }
.journey-step small { display: block; font-size: 10px; margin-top: 5px; line-height: 1.5; }

/* Messages retain the quiet, dark bubbles and pinned compact reply box. */
.thread-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 21px; border-bottom: 1px solid #202020; font-size: 11px; color: #969696; flex-shrink: 0; }
.thread-toolbar > span { min-width: 0; overflow-wrap: anywhere; }
.thread-toolbar select { width: auto; max-width: calc(100% - 120px); font-size: 11px; padding: 6px 8px; }
.thread-toolbar button { font-size: 10px; padding: 4px 6px; flex-shrink: 0; }
.messages { display: flex; flex-direction: column; align-items: flex-start; gap: 21px; flex: 1; min-height: 0; overflow-y: auto; padding: 26px 23px; scrollbar-width: thin; scrollbar-color: #3b3b3b transparent; }
.message { display: flex; flex-direction: column; align-items: flex-start; max-width: 83%; }
.message.outgoing { align-self: flex-end; align-items: flex-end; }
.message-author { color: #8d8d8d; font-size: 10px; margin: 0 4px 6px; }
.bubble { background: #252525; color: #e8e8e8; border: 1px solid #2c2c2c; border-radius: 9px; padding: 11px 13px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.outgoing .bubble { background: #232c43; border-color: #2e3b58; color: #f0f3fc; }
.message.private { align-self: stretch; align-items: stretch; max-width: 100%; }
.private .bubble { background: #28251c; border-color: #48402d; color: #ddcca8; }
.message time { color: #737373; font-size: 9px; margin: 6px 4px 0; line-height: 1.5; }
.attachment { margin-top: 7px; font-size: 11px; color: #aab8cd; overflow-wrap: anywhere; }
.message > .bubble { min-width: 0; max-width: 100%; }
.attachment audio, .attachment img { display: block; max-width: 100%; margin: 8px 0; }
.attachment audio { width: 260px; }
.attachment img { height: auto; }
.composer { flex-shrink: 0; margin: 0 18px 17px; padding: 12px; border: 1px solid #383838; border-radius: 9px; background: #1c1c1c; }
.composer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; color: #7e7e7e; font-size: 9px; }
.composer-top select { width: auto; max-width: 200px; padding: 4px 22px 4px 2px; border-color: transparent; background-color: transparent; font-size: 11px; }
.composer-top > span { text-align: right; line-height: 1.5; }
.composer textarea { min-height: 64px; max-height: 160px; padding: 5px 2px; background: transparent; border: 0; border-radius: 2px; font-size: 13px; resize: vertical; }
.composer textarea:focus-visible { outline-offset: 4px; }
.composer-actions { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 8px; }
.composer-actions button { font-size: 12px; padding: 7px 10px; }
.composer-actions button:first-child { margin-right: auto; background: transparent; border-color: transparent; color: #ababab; }
.composer-info { margin-top: 8px; color: #969696; font-size: 10px; line-height: 1.6; }
.note-composer { border-color: #5b4d30; background: #242116; }
.note-composer .composer-info { color: #b5a273; }
.empty { color: #8e8e8e; padding: 25px 20px; font-size: 12px; line-height: 1.75; }
.empty.center { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; text-align: center; gap: 12px; min-height: 0; padding: 30px; }
.empty.center svg { width: 38px; height: 38px; color: #6e6e6e; margin-bottom: 2px; }
.empty.center h2 { font-size: 17px; color: #d7d7d7; font-weight: 500; }
.empty.center p { max-width: 360px; font-size: 12px; line-height: 1.8; }
.empty.center button { font-size: 12px; margin-top: 3px; }
.loading { display: grid; place-content: center; gap: 13px; flex: 1; min-height: 180px; padding: 30px; color: var(--muted); text-align: center; font-size: 12px; }
#app > .loading { min-height: 100dvh; }
.loading h1 { color: #eee; font-size: 21px; }
.loading p { max-width: 430px; }
.loading button { justify-self: center; }

/* Useful work and revenue screens share the same subdued panel system. */
.empty-state { padding: 30px; border: 1px solid #303030; border-radius: 9px; background: #171717; }
.empty-state h3 { font-size: 16px; font-weight: 550; margin-bottom: 9px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 570px; margin-bottom: 18px; }
.empty-state button { font-size: 12px; }
.action-queue { border: 1px solid #303030; border-radius: 9px; overflow: hidden; }
.queue-row { display: grid; grid-template-columns: 170px minmax(170px, 1fr) 125px auto; gap: 24px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.queue-row:last-child { border-bottom: 0; }
.queue-row .text-button { font-size: 12px; }
.queue-row strong { font-size: 13px; font-weight: 550; }
.queue-row p { font-size: 12px; color: #919191; margin-top: 5px; }
.queue-reason { display: block; color: #a4a4a4; font-size: 10px; margin-top: 7px; }
.overdue { color: #e5a191; }
.queue-owner { font-size: 11px; color: #b9b9b9; line-height: 1.6; }
.queue-owner span { display: block; font-size: 10px; color: #868686; margin-top: 5px; }
.queue-row > button { font-size: 11px; }
.today-bookings { margin-top: 35px; }
.today-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.today-footer p { font-size: 11px; color: #858585; max-width: 570px; }
.today-footer button { font-size: 11px; }
.pipeline { display: flex; gap: 16px; min-width: 0; overflow-x: auto; padding-bottom: 15px; align-items: flex-start; scrollbar-width: thin; }
.stage { flex: 0 0 245px; min-width: 0; }
.stage-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; padding: 0 4px 15px; }
.stage-title span { color: #898989; background: #282828; border-radius: 4px; padding: 2px 7px; font-size: 10px; font-weight: 400; }
.stage-empty { padding: 25px 15px; border: 1px dashed #343434; border-radius: 7px; font-size: 11px; color: #707070; text-align: center; }
.deal-card { padding: 16px; margin-bottom: 12px; border: 1px solid #343434; border-radius: 8px; background: #1d1d1d; }
.deal-client { border: 0; background: transparent; color: #a8c0ff; font-size: 12px; font-weight: 550; padding: 0; margin-bottom: 8px; text-align: left; }
.deal-client:hover:not(:disabled) { background: transparent; color: #c4d3fc; }
.deal-card > p { font-size: 12px; color: #dadada; margin-bottom: 16px; }
.deal-next { font-size: 11px; line-height: 1.7; margin-bottom: 15px; color: #a5a5a5; }
.deal-next.overdue { color: #d3a091; }
.deal-next span { display: block; color: #7e7e7e; font-size: 10px; margin-top: 6px; }
.deal-card select { font-size: 11px; padding: 8px; }
.deal-card .quiet { margin-top: 8px; padding: 5px 0; font-size: 10px; }
.deal-detail { border: 1px solid #333; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.deal-detail > .section-heading { margin-bottom: 15px; align-items: flex-start; }
.deal-detail > select { font-size: 12px; }
.deal-detail h4 { margin: 24px 0 10px; font-size: 11px; color: #b0b0b0; }
.deal-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 20px 0; font-size: 12px; line-height: 1.7; }
.deal-facts dt { font-size: 10px; color: #858585; margin-top: 9px; }
.deal-facts dt:first-child { margin-top: 0; }
.deal-facts dd { margin: 0; overflow-wrap: anywhere; }
.deal-facts dd span { display: block; margin-top: 5px; font-size: 10px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-actions button { font-size: 10px; padding: 7px 8px; }
.money-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.money-summary section { min-width: 0; padding: 20px; border: 1px solid #333; border-radius: 8px; background: #191919; }
.money-summary h3 { font-size: 11px; font-weight: 450; color: #a0a0a0; margin-bottom: 14px; line-height: 1.5; }
.money-summary strong, .money-summary section > span { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.6px; line-height: 1.5; overflow-wrap: anywhere; }
.money-summary section > span { font-size: 16px; letter-spacing: -.2px; color: #777; }
.ledger-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 24px; align-items: start; border-bottom: 1px solid var(--line); padding: 22px 0; }
.ledger-row > div:first-child strong { font-size: 16px; font-weight: 550; }
.ledger-row > div:first-child > span { display: block; color: #8c8c8c; font-size: 10px; margin-top: 6px; }
.ledger-row p { color: #919191; font-size: 11px; margin-top: 5px; }
.ledger-row button.quiet { font-size: 10px; padding: 4px 0; }
.ledger-row.voided > div:first-child strong { text-decoration: line-through; color: #777; }
.ledger-row.voided { background: #171717; }
.evidence { overflow-wrap: anywhere; }
.appointment-row { display: grid; grid-template-columns: 185px minmax(170px, 1fr) auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.appointment-time strong { font-size: 12px; font-weight: 550; }
.appointment-time span, .appointment-time small { display: block; font-size: 10px; color: #919191; margin-top: 6px; line-height: 1.5; }
.appointment-time small { color: #737373; }
.appointment-row p { font-size: 11px; color: #999; margin: 5px 0 9px; }
.appointment-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.appointment-actions button { font-size: 11px; }
.appointment-actions .quiet { font-size: 10px; }
.appointment-row.cancelled { opacity: .65; }
.appointment-row.void { background: #1a1715; }
.appointment-row.void .tag { color: #d4a18f; border-color: #63483b; background: #2e201a; }
.appointment-row.void .correction-reason { color: #ca9b8b; font-size: 11px; line-height: 1.7; }
.history { margin-top: 25px; }
.history summary { cursor: pointer; padding: 13px 0; font-size: 12px; color: #b3b3b3; }
.deal-detail .ledger-row, .deal-detail .appointment-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 15px 0; }
.deal-detail .ledger-row > button, .deal-detail .appointment-actions { justify-self: start; align-items: flex-start; }
.deal-detail .ledger-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.deal-detail .ledger-row > div:first-child strong { font-size: 14px; }
.deal-detail .ledger-row > div:first-child > span { font-size: 9px; margin: 0; }

/* Period controls and the source ledger stay readable without decorative charts. */
.report-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.period-control { display: inline-flex; padding: 4px; gap: 3px; border: 1px solid #343434; border-radius: 7px; background: #1c1c1c; }
.period-control button { padding: 7px 12px; color: #929292; background: transparent; border: 0; border-radius: 4px; font-size: 12px; }
.period-control button[aria-pressed="true"] { color: #fff; background: #383838; }
.report-range { font-size: 16px; font-weight: 500; margin: 23px 0; letter-spacing: -.3px; }
.report-range span { display: block; font-size: 11px; color: #808080; font-weight: 400; margin-top: 6px; letter-spacing: 0; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 19px; }
.report-metrics section { min-width: 0; padding: 20px; border: 1px solid #333; border-radius: 8px; background: #191919; }
.report-metrics h3 { color: #a0a0a0; font-size: 12px; font-weight: 450; line-height: 1.5; }
.report-metrics strong { display: block; margin-top: 15px; font-size: 29px; line-height: 1.25; font-weight: 500; letter-spacing: -1px; overflow-wrap: anywhere; }
.report-metrics p { color: #969696; font-size: 11px; margin-top: 8px; line-height: 1.6; }
.report-money strong { font-size: 21px; }
.report-note { font-size: 11px; margin-bottom: 0; }
.analytics-panel { margin-bottom: 33px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid #333; border-radius: 8px; }
table { width: 100%; min-width: 630px; border-collapse: collapse; text-align: left; font-size: 12px; }
th { color: #969696; background: #1c1c1c; font-size: 11px; font-weight: 450; padding: 15px 18px; }
td { padding: 18px; border-top: 1px solid var(--line); }
th:not(:first-child), td:not(:first-child) { text-align: right; }
.source-report table { min-width: 400px; }
.source-card-list { margin-top: 29px; max-width: 930px; }
.source-card-list h3 { font-size: 12px; margin-bottom: 15px; }
.source-client { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 12px; text-align: left; }
.source-client:hover:not(:disabled) { background: #1b1b1b; }
.source-client span:first-child { color: #a8c0ff; }
.source-client span:last-child { color: #999; font-weight: 400; overflow-wrap: anywhere; }

/* History, source and profile fit the context column independently of chat. */
.text-pane { padding: 23px; min-width: 0; }
.field-source { color: #929292; font-size: 11px; line-height: 1.75; }
.info-box { padding: 12px; border: 1px solid #343434; border-radius: 7px; color: #a4a4a4; background: #1e1e1e; font-size: 11px; line-height: 1.8; margin-bottom: 20px; }
.source-event { padding: 20px 0; border-bottom: 1px solid var(--line); }
.source-event > strong { font-size: 13px; font-weight: 550; }
.source-event > p { margin-top: 5px; font-size: 10px; }
.source-event dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin: 16px 0 0; }
.source-event dt { color: #7f7f7f; font-size: 10px; margin-top: 10px; }
.source-event dd { margin: 0; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.history-pane > .section-heading { align-items: flex-start; margin-bottom: 16px; gap: 8px; }
.history-pane > .section-heading h3 { font-size: 13px; }
.history-pane > .section-heading p { font-size: 10px; line-height: 1.7; margin-top: 7px; }
.history-pane > .section-heading > button { font-size: 10px; padding: 2px 0; }
.history-coverage { padding: 12px; margin-bottom: 24px; border: 1px solid #333; border-radius: 7px; background: #1e1e1e; color: #929292; font-size: 10px; }
.history-coverage > span { display: block; color: #b7b7b7; font-weight: 500; margin-bottom: 5px; }
.history-coverage p { margin-top: 5px; line-height: 1.7; }
.timeline { padding-left: 3px; }
.timeline-event { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding-bottom: 27px; }
.timeline-event:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; border-left: 1px solid #383838; }
.timeline-point { width: 9px; height: 9px; margin-top: 3px; background: #1c1c1c; border: 2px solid #868686; border-radius: 50%; z-index: 1; }
.timeline-content { min-width: 0; }
.timeline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #777; font-size: 9px; margin-bottom: 7px; line-height: 1.6; }
.timeline-meta .tag { font-size: 8px; padding: 2px 4px; }
.timeline-content h4 { font-size: 12px; font-weight: 550; line-height: 1.65; }
.timeline-content > p { margin-top: 6px; font-size: 11px; line-height: 1.8; color: #aaa; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline-content > .timeline-amount { display: block; margin-top: 9px; font-size: 14px; font-weight: 550; color: #f0f0f0; }
.timeline-content > .quiet { margin-top: 5px; padding: 3px 0; font-size: 10px; text-align: left; color: #9cb6f3; }
.timeline-event.private .timeline-point { border-color: #b7a274; background: #29251b; }
.timeline-event.voided .timeline-amount { color: #848484; text-decoration: line-through; }
.timeline-booking > span { font-size: 10px; color: #d6d6d6; font-weight: 500; }
.timeline-booking > small { font-size: 9px; color: #777; }
.history-earlier { font-size: 10px; margin-top: 8px; }
.history-error { padding: 13px; border: 1px solid #70493e; border-radius: 7px; background: #2c201c; color: #dcac9d; font-size: 11px; margin-bottom: 14px; }
.history-error button { font-size: 10px; margin-top: 10px; }
.client-form { display: grid; gap: 17px; }
.client-form label, .login-panel label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #a9a9a9; line-height: 1.5; }
.client-form label input, .client-form label textarea, .client-form label select { color: #efefef; font-size: 12px; }
.client-form label textarea { min-height: 76px; }
.form-footer { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
.save-hint { color: #737373; font-size: 10px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-note { color: #929292; font-size: 11px; line-height: 1.8; }
.form-error { color: #e8a18f; font-size: 12px; line-height: 1.7; }
.form-error:empty { display: none; }
.connection { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 35px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.connection:first-child { padding-top: 0; }
.connection h3 { margin-bottom: 9px; }
.connection p { color: #a0a0a0; font-size: 12px; max-width: 700px; line-height: 1.8; }

/* Dialogs and login use the same controls as the workspace. */
dialog { width: min(500px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 27px; border: 1px solid #454545; border-radius: 12px; color: var(--ink); background: #191919; box-shadow: 0 20px 70px #0007; }
dialog::backdrop { background: #0009; }
dialog h2 { margin-bottom: 25px; font-size: 20px; font-weight: 550; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.dialog-actions button { font-size: 12px; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; background: #111; }
.login-panel { width: 100%; max-width: 360px; }
.login-panel .brand { display: block; padding: 0 0 28px; font-size: 20px; letter-spacing: 1.5px; }
.login-panel h1 { font-size: 25px; letter-spacing: -.7px; margin-bottom: 12px; }
.login-panel > p { color: #999; font-size: 12px; margin-bottom: 28px; }
.login-panel form { display: grid; gap: 18px; }
.login-panel label { font-size: 12px; }
.login-panel input { margin-top: 1px; }
.login-panel form > button { margin-top: 4px; padding: 11px; }
.login-error { color: #e5a08f; font-size: 12px; }
.login-error:empty { display: none; }
.login-panel footer { color: #777; font-size: 10px; line-height: 1.8; margin-top: 24px; }
.notice { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: min(470px, calc(100vw - 44px)); padding: 14px 17px; border: 1px solid #4a4a4a; border-radius: 8px; background: #272727; color: #eee; font-size: 12px; line-height: 1.7; box-shadow: 0 8px 30px #0005; }
.notice.error { border-color: #765043; background: #35251f; color: #efc0ae; }

@media (min-width: 1500px) {
  .work-area { grid-template-columns: 350px minmax(0, 1fr); }
  .record-body { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 1179px) {
  .work-area { grid-template-columns: 310px minmax(0, 1fr); }
  .record-body { grid-template-columns: minmax(0, 1fr); }
  .record-body > .client-context { display: none; }
  .record-body.show-context > .conversation-pane { display: none; }
  .record-body.show-context > .client-context { display: flex; border-left: 0; }
  .record-view-switch { display: flex; }
  .context-head { padding: 20px 22px; }
  .context-head .context-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .context-content > .text-pane, .context-content > .context-overview { padding: 23px; }
  .record-head { padding: 12px 17px; gap: 9px; }
  .record-head .record-title .avatar { display: none; }
  .record-identity h2 { font-size: 13px; }
  .record-identity p { font-size: 9px; }
  .queue-row { grid-template-columns: 145px minmax(130px, 1fr) 100px auto; gap: 17px; padding: 18px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-summary { gap: 12px; }
  .money-summary section { padding: 17px; }
  .money-summary strong { font-size: 19px; }
  .ledger-row { grid-template-columns: 155px minmax(0, 1fr); gap: 18px; }
  .ledger-row > button { grid-column: 2; justify-self: start; }
  .appointment-row { grid-template-columns: 160px minmax(0, 1fr); gap: 18px; }
  .appointment-actions { grid-column: 2; flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .connection { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
}

@media (max-width: 760px) {
  .shell { display: flex; flex-direction: column-reverse; }
  .sidebar { flex: 0 0 58px; height: 58px; padding: 4px 5px; border-top: 1px solid #343434; }
  .sidebar > .brand, .sidebar-bottom { display: none; }
  .nav { flex-direction: row; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; min-height: 0; height: 100%; }
  .nav button { min-width: 64px; width: 64px; min-height: 0; flex: 1 0 64px; gap: 4px; padding: 5px 2px; border-radius: 6px; }
  .nav svg { width: 18px; height: 18px; }
  .nav button span { font-size: 8px; }
  .main { flex: 1; margin: 4px; min-height: 0; }
  .page-head { padding: 20px 18px 18px; gap: 12px; align-items: flex-start; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 10px; max-width: 240px; }
  .actions { gap: 4px; }
  .actions button { font-size: 10px; padding: 8px; }
  .refresh-button { display: none; }
  .workspace-strip { padding: 10px 17px; gap: 8px; align-items: flex-start; flex-direction: column; }
  .workspace-strip > span { font-size: 10px; }
  .scope-control button { font-size: 10px; padding: 6px 8px; }
  .scroll-page { padding: 23px 18px 30px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading p { font-size: 10px; }
  .section-heading { gap: 10px; }
  .section-heading button { font-size: 10px; }
  .work-area { grid-template-columns: minmax(0, 1fr); }
  .work-area.has-selection > .client-list { display: none; }
  .work-area:not(.has-selection) > .record { display: none; }
  .client-list { border-right: 0; }
  .list-tools { padding: 20px 17px 15px; }
  .list-heading { margin-bottom: 17px; }
  .list-heading h1 { font-size: 21px; }
  .search-wrap input { padding-top: 11px; padding-bottom: 11px; font-size: 13px; }
  .filters button { font-size: 11px; min-height: 33px; }
  .scope-note { font-size: 10px; }
  .list-scope .scope-control button { font-size: 11px; }
  .client-row { padding: 16px 12px; gap: 12px; }
  .client-row .avatar { width: 39px; height: 39px; font-size: 12px; }
  .row-name strong { font-size: 14px; }
  .row-name .heat { font-size: 10px; }
  .preview { font-size: 13px; }
  .row-meta { font-size: 11px; }
  .list-note { font-size: 10px; }
  .record-head { min-height: 64px; padding: 10px 12px; gap: 10px; }
  .back { display: block; flex-shrink: 0; font-size: 10px; padding: 7px; }
  .record-title { flex: 1; }
  .record-identity h2 { font-size: 13px; }
  .record-identity p { font-size: 9px; line-height: 1.5; }
  .record-view-switch button { font-size: 10px; padding: 6px 7px; }
  .record-head .record-identity p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .context-head { padding: 21px 18px 18px; }
  .context-head .context-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-head h2 { font-size: 18px; }
  .context-head p { font-size: 11px; }
  .context-actions button { font-size: 12px; min-height: 36px; }
  .context-content > .text-pane, .context-content > .context-overview { padding: 23px 18px 30px; }
  .tabs { padding: 0 18px; gap: 22px; }
  .tabs button { font-size: 12px; min-height: 42px; }
  .thread-toolbar { padding: 9px 14px; font-size: 10px; }
  .thread-toolbar button { font-size: 10px; }
  .messages { padding: 20px 15px; gap: 19px; }
  .message { max-width: 89%; }
  .bubble { font-size: 14px; padding: 10px 12px; }
  .message-author { font-size: 10px; }
  .message time { font-size: 9px; }
  .composer { margin: 0 11px 11px; padding: 10px; }
  .composer-top select { font-size: 11px; max-width: 180px; }
  .composer-top > span { font-size: 9px; }
  .composer textarea { min-height: 60px; font-size: 14px; }
  .composer-actions { gap: 5px; flex-wrap: wrap; }
  .composer-actions button { font-size: 12px; padding: 8px; }
  .composer-info { font-size: 10px; }
  .empty.center { padding: 25px 20px; gap: 11px; }
  .empty.center h2 { font-size: 16px; }
  .empty.center p { font-size: 11px; }
  .client-summary dt { font-size: 11px; }
  .client-summary dd { font-size: 13px; }
  .context-content .client-form label { font-size: 12px; }
  .context-content .client-form input, .context-content .client-form textarea, .context-content .client-form select { font-size: 14px; }
  .queue-row { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; padding: 18px 15px; }
  .queue-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .queue-owner { grid-column: 1; grid-row: 3; }
  .queue-owner span { display: inline; margin-left: 8px; }
  .queue-row > button { grid-column: 2; grid-row: 1; font-size: 10px; }
  .queue-row .text-button { font-size: 13px; }
  .queue-row strong { font-size: 13px; }
  .queue-row p { font-size: 11px; }
  .today-bookings { margin-top: 28px; }
  .today-footer { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 25px; }
  .today-footer p { font-size: 10px; }
  .today-footer button { padding-left: 0; font-size: 10px; }
  .empty-state { padding: 23px 20px; }
  .empty-state h3 { font-size: 15px; }
  .empty-state p { font-size: 11px; }
  .money-summary { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .money-summary section { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 17px; }
  .money-summary h3 { margin: 0; max-width: 150px; font-size: 11px; }
  .money-summary strong { font-size: 19px; text-align: right; }
  .money-summary section > span { font-size: 14px; text-align: right; }
  .money-summary section:has(strong + strong) { display: block; }
  .money-summary section:has(strong + strong) h3 { margin-bottom: 12px; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 20px 0; }
  .ledger-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  .ledger-row > div:first-child > span { margin: 0; }
  .ledger-row > button { grid-column: 1; }
  .appointment-row { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 20px 0; }
  .appointment-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; }
  .appointment-time span, .appointment-time small { margin: 0; }
  .appointment-actions { grid-column: 1; gap: 5px; }
  .appointment-actions button { font-size: 10px; }
  .page-note, .overview-note { font-size: 11px; }
  .report-controls { gap: 11px; }
  .period-control button { font-size: 11px; padding: 7px 9px; }
  .report-range { margin: 20px 0; font-size: 15px; }
  .report-range span { font-size: 10px; }
  .report-metrics { gap: 10px; }
  .report-metrics section { padding: 16px; }
  .report-metrics h3 { font-size: 11px; }
  .report-metrics strong { margin-top: 12px; font-size: 26px; }
  .report-metrics p { font-size: 10px; }
  .report-note { font-size: 10px; }
  .source-report table { min-width: 360px; }
  .source-report td, .source-report th { padding: 14px 10px; font-size: 10px; }
  .source-client { grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 12px; }
  .connection { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 22px 0; }
  .connection p { font-size: 12px; }
  .timeline-content > p { font-size: 12px; }
  .timeline-content h4 { font-size: 13px; }
  .timeline-meta { font-size: 10px; }
  .form-columns { gap: 10px; }
  dialog { padding: 24px 20px; max-height: calc(100dvh - 24px); }
  dialog h2 { font-size: 19px; }
  dialog .client-form label { font-size: 12px; }
  dialog input, dialog select, dialog textarea { font-size: 16px !important; }
  .notice { right: 13px; bottom: 72px; max-width: calc(100vw - 26px); padding: 12px 15px; font-size: 11px; }
}

@media (max-width: 420px) {
  .record-head { gap: 7px; padding: 10px; }
  .record-head .back { font-size: 0; padding: 7px 9px; }
  .record-head .back::before { content: "‹"; font-size: 19px; line-height: 15px; }
  .record-view-switch { padding: 2px; }
  .record-view-switch button { padding: 6px; font-size: 10px; }
  .record-identity h2 { font-size: 12px; }
  .record-identity p { font-size: 8px; }
  .composer-actions button { font-size: 9px; }
  .composer-top select { max-width: 163px; font-size: 10px; }
}

.operational-panel { margin-bottom: 34px; }
.operational-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.operational-metrics section { padding: 20px; border: 1px solid #323232; border-radius: 8px; background: #181818; }
.operational-metrics h3 { color: #b4b4b4; font-size: 12px; font-weight: 450; }
.operational-metrics strong { display: block; font-size: 30px; font-weight: 500; margin-top: 20px; }
.operational-metrics p { color: #888; font-size: 11px; margin-top: 7px; }
.week-calendar { border: 1px solid #323232; border-radius: 8px; overflow: hidden; }
.calendar-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 18px; background: #181818; }
.calendar-controls h3 { font-size: 16px; font-weight: 500; }
.calendar-controls p { color: #929292; margin-top: 6px; font-size: 11px; }
.calendar-navigation { display: flex; gap: 5px; }
.calendar-navigation button { font-size: 12px; }
.calendar-navigation button:first-child, .calendar-navigation button:last-child { min-width: 32px; }
.calendar-scroll { overflow: auto; max-height: 650px; scrollbar-width: thin; scrollbar-color: #464646 #181818; }
.calendar-grid { display: grid; grid-template-columns: 54px repeat(7, minmax(90px, 1fr)); min-width: 740px; }
.calendar-hours-head, .calendar-day-head { position: sticky; top: 0; z-index: 2; padding: 14px 7px; text-align: center; background: #1c1c1c; color: #aaa; border-top: 1px solid #303030; border-bottom: 1px solid #303030; font-size: 11px; }
.calendar-day-head { border-left: 1px solid #303030; }
.calendar-day-head.is-today { color: #d7e2ff; background: #252d41; }
.calendar-hours { position: relative; background: #161616; }
.calendar-hours span { position: absolute; right: 6px; font-size: 9px; color: #8a8a8a; padding-top: 6px; }
.calendar-day { position: relative; border-left: 1px solid #303030; background: repeating-linear-gradient(to bottom, transparent 0, transparent 51px, #272727 51px, #272727 52px); }
.calendar-event { position: absolute; left: 3px; right: 3px; width: calc(100% - 6px); display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; background: #24324f; border: 1px solid #435a87; border-radius: 4px; padding: 5px 6px; min-height: 0; overflow: hidden; line-height: 1.3; }
.calendar-event:hover:not(:disabled) { background: #31436b; border-color: #6885b9; }
.calendar-event.completed { background: #25342e; border-color: #3d584a; }
.calendar-event time { font-size: 8px; color: #b8c8ea; }
.calendar-event strong { font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.calendar-event > span { font-size: 9px; color: #aaa; }
.calendar-footnote { font-size: 10px; color: #919191; padding: 12px 18px; border-top: 1px solid #303030; }
.calendar-list-heading { margin-top: 30px; }
.intelligence-page { max-width: 1100px; width: 100%; align-self: center; }
.intelligence-setter { border: 1px solid #363636; border-radius: 12px; padding: 28px; background: #181818; }
.intelligence-title { display: flex; align-items: center; gap: 12px; }
.intelligence-title svg { width: 30px; height: 30px; color: #ddd; }
.intelligence-setter > p { max-width: 70ch; color: #aaa; font-size: 13px; }
.agent-ready { color: #b6d5c0; border-color: #435d4c; background: #213026; }
.agent-capabilities { margin: 23px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.agent-capabilities > div { padding: 12px 0; border-bottom: 1px solid #303030; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.agent-capabilities dt { font-size: 12px; color: #bdbdbd; }
.agent-capabilities dd { font-size: 11px; margin: 0; color: #929292; text-align: right; }
.intelligence-setter > .page-note { font-size: 11px; margin: 0; }
.intelligence-assistance { margin-top: 34px; }
.intelligence-assistance > h2 { margin-bottom: 10px; }
.intelligence-assistance article { position: relative; padding: 24px 0; border-bottom: 1px solid #303030; }
.intelligence-assistance article > div { display: flex; gap: 12px; align-items: center; }
.intelligence-assistance h3 { font-size: 16px; font-weight: 500; }
.intelligence-assistance article > .tag { position: absolute; right: 0; top: 24px; }
.intelligence-assistance p { margin: 13px 0 0 32px; max-width: 65ch; color: #999; font-size: 12px; }
.intelligence-assistance button { margin: 12px 0 0 22px; font-size: 12px; }
.examples-setting { padding: 0 0 24px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.examples-setting h2 { font-size: 17px; }
.examples-setting p { color: #999; font-size: 12px; max-width: 65ch; margin-top: 8px; }
.examples-setting label { display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; }
.examples-setting input { width: 16px; height: 16px; padding: 0; min-height: 0; }
@media (max-width: 1000px) {
  .operational-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-capabilities { grid-template-columns: minmax(0, 1fr); }
  .examples-setting { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .operational-metrics { gap: 9px; }
  .operational-metrics section { padding: 15px; }
  .operational-metrics h3 { font-size: 11px; }
  .operational-metrics strong { font-size: 26px; margin-top: 15px; }
  .operational-metrics p { font-size: 10px; }
  .calendar-controls { padding: 14px; }
  .calendar-controls h3 { font-size: 14px; }
  .calendar-grid { min-width: 850px; }
  .calendar-footnote { padding: 12px 14px; }
  .intelligence-setter { padding: 20px; }
  .intelligence-setter .section-heading { align-items: flex-start; flex-direction: column; }
  .intelligence-assistance article > .tag { position: static; margin: 12px 0 0 32px; }
  .inbox-conversation-actions { padding: 8px 12px; gap: 4px; }
  .inbox-conversation-actions button { padding: 5px; font-size: 9px; }
  .row-message-time { font-size: 9px; }
}
@media (pointer: coarse) {
  button, input, select { min-height: 38px; }
  .text-button, .timeline-content > .quiet, .deal-mini button { min-height: 0; }
  .nav button { min-height: 45px; }
}

.reply-reviews { margin-bottom: 24px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-proposal { white-space: pre-wrap; padding-left: 12px; border-left: 2px solid currentColor; }
.review-notice button { margin: 4px 8px 4px 0; }
.review-lesson { margin: 12px 0; font-size: 12px; }
