:root {
  color-scheme: light;
  --navy-950: #101827;
  --navy-900: #151f31;
  --navy-800: #1c2940;
  --navy-700: #2b3b56;
  --ink: #172033;
  --ink-soft: #5d687b;
  --ink-faint: #8a94a6;
  --line: #e8ebf0;
  --line-strong: #dce1ea;
  --surface: #ffffff;
  --canvas: #f7f8fa;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff5ff;
  --green: #12805c;
  --green-soft: #e9f8f1;
  --amber: #b66a13;
  --amber-soft: #fff5e7;
  --purple: #7b4ed1;
  --purple-soft: #f3edff;
  --shadow: 0 2px 5px rgba(16, 24, 39, .03), 0 12px 32px rgba(16, 24, 39, .04);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-muted { color: var(--ink-faint); }

.auth-gate { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 28px; background: #f4f7fb; }
.auth-backdrop { position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 20%, rgba(70, 118, 205, .13), transparent 28%),
  radial-gradient(circle at 82% 78%, rgba(68, 169, 137, .09), transparent 30%),
  linear-gradient(150deg, #f8fafc 0%, #eef3f9 100%); }
.auth-backdrop:before, .auth-backdrop:after { position: absolute; border: 1px solid rgba(81, 107, 148, .08); border-radius: 50%; content: ""; }
.auth-backdrop:before { top: -180px; right: -100px; width: 520px; height: 520px; }
.auth-backdrop:after { bottom: -240px; left: -140px; width: 600px; height: 600px; }
.auth-card { position: relative; z-index: 1; width: min(100%, 430px); padding: 32px; border: 1px solid rgba(215, 222, 233, .9); border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 24px 70px rgba(35, 50, 78, .11); backdrop-filter: blur(12px); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 38px; color: var(--ink); }
.auth-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #4d78c7; }
.auth-brand-mark svg { width: 34px; height: 34px; }
.auth-brand > span:last-child { display: grid; gap: 4px; line-height: 1; }
.auth-brand strong { font-size: 20px; font-weight: 780; letter-spacing: -.7px; }
.auth-brand small { color: #8490a4; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; text-transform: uppercase; }
.auth-state { min-height: 240px; text-align: center; }
.auth-state-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 20px; place-items: center; border-radius: 12px; color: #3469bf; background: #edf4ff; }
.auth-state-icon .icon { width: 21px; height: 21px; }
.auth-state-icon.error { color: #aa4f47; background: #fff0ee; }
.auth-state-icon.warning { color: #a36519; background: #fff5e6; }
.auth-spinner { display: block; width: 38px; height: 38px; margin: 4px auto 24px; border: 3px solid #e4eaf3; border-top-color: var(--blue); border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-kicker { margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
.auth-state h1 { margin-bottom: 10px; color: var(--ink); font-size: 23px; font-weight: 780; letter-spacing: -.7px; }
.auth-state > p:not(.auth-kicker) { max-width: 320px; margin: 0 auto; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.auth-actions { display: grid; gap: 9px; margin-top: 24px; }
.auth-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 8px; color: white; background: var(--blue); font-size: 12px; font-weight: 720; box-shadow: 0 3px 8px rgba(37, 99, 235, .16); }
.auth-button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.auth-button.secondary { border-color: var(--line-strong); color: var(--ink-soft); background: white; box-shadow: none; }
.auth-button.secondary:hover { border-color: #bdc7d5; color: var(--ink); background: #fafbfd; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 19px; border-top: 1px solid var(--line); color: #98a2b1; font-size: 9px; }
.auth-security .icon { width: 12px; height: 12px; color: #4aa47e; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { display: flex; flex: 0 0 248px; flex-direction: column; min-height: 100vh; padding: 25px 14px 16px; color: #c9d3e3; background: var(--navy-950); }
.sidebar-top { padding: 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 27px 4px; color: white; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; color: #80a9ff; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy { display: grid; gap: 0; line-height: 1; }
.brand-copy strong { font-size: 18px; font-weight: 760; letter-spacing: -.6px; }
.brand-copy small { margin-top: 5px; color: #8290a9; font-size: 9px; font-weight: 650; letter-spacing: .9px; text-transform: uppercase; }
.workspace-switcher { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; color: #eaf0fb; background: rgba(255, 255, 255, .06); text-align: left; transition: background .16s ease, border-color .16s ease; }
.workspace-switcher:hover { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .1); }
.workspace-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #dbe8ff; background: #355d9d; font-size: 12px; font-weight: 750; }
.workspace-name { display: grid; min-width: 0; flex: 1; gap: 3px; }
.workspace-name strong { overflow: hidden; color: #eff4fc; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.workspace-name small { color: #8090aa; font-size: 10px; }
.primary-nav { margin-top: 30px; }
.nav-label { margin: 0 12px 8px; color: #718099; font-size: 10px; font-weight: 750; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-label-spaced { margin-top: 26px; }
.nav-item { display: flex; height: 42px; align-items: center; gap: 12px; margin: 2px 0; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: #aab7ca; font-size: 13px; font-weight: 560; transition: background .16s ease, color .16s ease; }
.nav-item:hover { color: #eff4fc; background: rgba(255, 255, 255, .06); }
.nav-item.active { border-color: rgba(109, 151, 232, .15); color: #f6f9ff; background: #22304a; box-shadow: inset 3px 0 0 #78a7ff; }
.nav-item.active .icon { color: #8bb4ff; }
.nav-item .icon { width: 17px; height: 17px; color: #8291a7; }
.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-dot { position: absolute; top: -2px; right: -3px; width: 5px; height: 5px; border: 1px solid var(--navy-900); border-radius: 50%; background: #63d9a3; }
.nav-count { min-width: 21px; margin-left: auto; padding: 2px 6px; border-radius: 99px; color: #c4d8fa; background: #2d4c7d; font-size: 10px; font-weight: 700; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.usage-card { margin: 0 5px 17px; padding: 13px; border: 1px solid rgba(127, 158, 208, .17); border-radius: 10px; background: linear-gradient(145deg, rgba(38, 57, 91, .9), rgba(28, 40, 63, .7)); }
.usage-card-top { display: flex; align-items: center; gap: 7px; color: #e2eaff; font-size: 11px; font-weight: 650; }
.usage-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; color: #9fbeff; background: #314d7a; }
.usage-icon .icon { width: 14px; height: 14px; }
.live-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #5ae0a0; box-shadow: 0 0 0 3px rgba(90, 224, 160, .12); }
.usage-card p { margin: 10px 0 11px; color: #91a2bf; font-size: 11px; line-height: 1.55; }
.text-button { padding: 0; border: 0; color: #9bbcff; background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { color: white; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 11px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
.user-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: linear-gradient(135deg, #658ed2, #3c5b91); font-size: 10px; font-weight: 750; }
.user-avatar-small { width: 28px; height: 28px; border: 0; font-size: 9px; }
.sidebar-user-copy, .topbar-user-copy { display: grid; min-width: 0; gap: 2px; }
.sidebar-user-copy { flex: 1; }
.sidebar-user-copy strong, .topbar-user-copy strong { overflow: hidden; color: #e8eef8; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy small, .topbar-user-copy small { color: #8493ab; font-size: 10px; }
.icon-button { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--ink-soft); background: transparent; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.icon-button:hover { color: var(--ink); background: var(--canvas); border-color: var(--line); }
.icon-button-dark { color: #7888a1; }
.icon-button-dark:hover { color: white; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); }
.main-shell { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.topbar { display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-menu-button { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 10px; padding: 0; border: 0; color: var(--ink); background: transparent; }
.topbar-context { display: grid; gap: 3px; }
.eyebrow { color: var(--ink-faint); font-size: 10px; font-weight: 700; letter-spacing: .75px; text-transform: uppercase; }
.topbar-title { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.global-search { display: flex; width: 240px; height: 34px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-faint); background: #fafbfd; }
.global-search:focus-within { border-color: #9dbcf6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.global-search .icon { width: 15px; height: 15px; }
.global-search input, .list-search input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.global-search input::placeholder, .list-search input::placeholder { color: #9aa4b3; }
kbd { padding: 2px 4px; border: 1px solid var(--line-strong); border-radius: 4px; color: #8994a4; background: white; font-size: 9px; white-space: nowrap; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #3b82f6; }
.topbar-divider { width: 1px; height: 26px; background: var(--line); }
.topbar-user { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; text-align: left; }
.topbar-user-copy strong { color: var(--ink); }
.topbar-user-copy small { color: var(--ink-faint); }
.topbar-user .icon { width: 14px; height: 14px; margin-left: 1px; }
.workspace-view { min-width: 0; flex: 1; padding: 31px 32px 32px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: 1500px; margin: 0 auto 25px; }
.breadcrumb { margin: 0 0 10px; color: var(--ink-faint); font-size: 11px; font-weight: 600; }
.breadcrumb span { padding: 0 5px; color: #b8c0cc; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--ink); font-size: 25px; font-weight: 770; letter-spacing: -.8px; }
.heading-count { margin-left: 8px; padding: 4px 8px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.page-description { margin-bottom: 0; color: var(--ink-soft); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button { display: inline-flex; height: 35px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 7px; font-size: 11px; font-weight: 700; transition: all .16s ease; }
.primary-button { border: 1px solid var(--blue); color: white; background: var(--blue); box-shadow: 0 2px 4px rgba(37, 99, 235, .16); }
.primary-button:hover { border-color: var(--blue-dark); background: var(--blue-dark); transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line-strong); color: var(--ink-soft); background: white; }
.secondary-button:hover { border-color: #bfc8d5; color: var(--ink); background: #fbfcfe; }
.primary-button .icon, .secondary-button .icon { width: 14px; height: 14px; }
.inbox-layout { display: grid; grid-template-columns: 286px minmax(410px, 1fr) 286px; max-width: 1500px; height: calc(100vh - 205px); min-height: 540px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.conversation-list-panel, .thread-panel, .customer-panel { min-width: 0; }
.conversation-list-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fcfdff; }
.list-panel-header { padding: 19px 15px 13px; border-bottom: 1px solid var(--line); }
.list-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
h2 { margin-bottom: 0; color: var(--ink); font-size: 13px; font-weight: 750; letter-spacing: -.1px; }
.icon-button-light { width: 27px; height: 27px; }
.icon-button-light .icon { width: 16px; height: 16px; }
.inbox-filters { display: flex; gap: 3px; margin: 0 -2px 13px; overflow: auto; scrollbar-width: none; }
.inbox-filters::-webkit-scrollbar { display: none; }
.filter-tab { flex: 0 0 auto; padding: 5px 7px; border: 0; border-radius: 5px; color: var(--ink-faint); background: transparent; font-size: 10px; font-weight: 600; white-space: nowrap; }
.filter-tab span { margin-left: 2px; color: #adb5c1; }
.filter-tab:hover { color: var(--ink-soft); background: #f1f4f8; }
.filter-tab.active { color: var(--blue); background: var(--blue-soft); }
.filter-tab.active span { color: #6294ee; }
.list-search { display: flex; height: 31px; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.list-search:focus-within { border-color: #9dbcf6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .07); }
.list-search .icon { width: 14px; height: 14px; }
.filter-control { display: inline-grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; color: var(--ink-faint); background: transparent; }
.filter-control:hover { color: var(--blue); }
.filter-control .icon { width: 14px; height: 14px; }
.conversation-list { flex: 1; overflow-y: auto; scrollbar-color: #d7dde7 transparent; scrollbar-width: thin; }
.conversation-row { position: relative; display: flex; gap: 10px; padding: 13px 14px 12px 15px; border-bottom: 1px solid #f0f2f5; cursor: pointer; transition: background .14s ease; }
.conversation-row:hover { background: #f7f9fc; }
.conversation-row.selected { background: #f0f5ff; box-shadow: inset 3px 0 0 var(--blue); }
.conversation-row.selected:after { position: absolute; top: 0; right: -1px; bottom: 0; width: 1px; background: white; content: ""; }
.conversation-avatar { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: #7892bf; font-size: 11px; font-weight: 750; }
.conversation-avatar.avatar-teal { background: #3b9a8b; }
.conversation-avatar.avatar-gold { background: #b88b54; }
.conversation-avatar.avatar-purple { background: #8a74ba; }
.conversation-avatar.avatar-rose { background: #ba7185; }
.conversation-avatar .mini-channel { position: absolute; right: -3px; bottom: -2px; display: grid; width: 15px; height: 15px; place-items: center; border: 2px solid #fcfdff; border-radius: 50%; color: white; background: #2589e9; font-size: 7px; font-weight: 800; }
.conversation-row.selected .conversation-avatar .mini-channel { border-color: #f0f5ff; }
.mini-channel.whatsapp { background: #1ca76f; }
.mini-channel.instagram { background: linear-gradient(135deg, #e96b63, #9858bd); }
.mini-channel.messenger { background: #277ee9; }
.mini-channel.email { background: #64748b; }
.conversation-content { min-width: 0; flex: 1; }
.conversation-topline, .conversation-subline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-topline { margin-bottom: 4px; }
.conversation-name { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.conversation-time { flex: 0 0 auto; color: #a1aab8; font-size: 9px; }
.conversation-preview { overflow: hidden; color: var(--ink-soft); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row.unread .conversation-name, .conversation-row.unread .conversation-preview { color: var(--ink); font-weight: 680; }
.conversation-row.unread .conversation-preview { font-weight: 550; }
.unread-count { display: inline-grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border-radius: 50%; color: white; background: var(--blue); font-size: 9px; font-weight: 750; }
.conversation-meta { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.channel-badge, .status-badge, .handling-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 4px; font-size: 8px; font-weight: 700; letter-spacing: .1px; }
.channel-badge { color: #4a607f; background: #edf2f8; }
.channel-badge.whatsapp { color: #087c52; background: #e7f8f0; }
.channel-badge.instagram { color: #9c4a83; background: #faedf7; }
.channel-badge.messenger { color: #1c67bd; background: #eaf3ff; }
.channel-badge.email { color: #546172; background: #eef1f5; }
.status-badge { color: var(--green); background: var(--green-soft); }
.handling-badge { color: var(--purple); background: var(--purple-soft); }
.list-footer { display: flex; justify-content: space-between; padding: 10px 13px; border-top: 1px solid var(--line); color: #9aa4b2; font-size: 9px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; }
.status-dot-green { background: #35b984; }
.thread-panel { display: flex; min-width: 0; flex-direction: column; background: white; }
.thread-header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.thread-contact { display: flex; min-width: 0; align-items: center; gap: 10px; }
.mobile-thread-back { display: none; width: 29px; height: 29px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: white; }
.mobile-thread-back .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.thread-avatar { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: #7892bf; font-size: 11px; font-weight: 750; }
.thread-contact-copy { display: grid; min-width: 0; gap: 3px; }
.thread-contact-name { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.thread-contact-detail { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 10px; }
.thread-contact-detail .status-dot { margin-left: 2px; }
.thread-actions { display: flex; align-items: center; gap: 4px; }
.thread-action-button { display: inline-flex; height: 29px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: white; font-size: 10px; font-weight: 650; }
.thread-action-button:hover { color: var(--blue); border-color: #bad0f5; background: var(--blue-soft); }
.thread-action-button .icon { width: 13px; height: 13px; }
.thread-body { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 20px 22px; overflow-y: auto; background: #fbfcfe; scrollbar-color: #d7dde7 transparent; scrollbar-width: thin; }
.assist-surface { flex: 0 0 auto; padding: 13px; border: 1px solid #dbe4f2; border-radius: 9px; background: linear-gradient(145deg, #f8fbff, #f3f7fd); box-shadow: 0 2px 7px rgba(48, 76, 121, .04); }
.assist-surface-head, .assist-ownership, .summary-heading, .assist-private-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assist-surface-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
.assist-surface-title > span:last-child { display: grid; gap: 2px; }
.assist-surface-title strong { color: #35598e; font-size: 11px; }
.assist-surface-title small { color: #8290a5; font-size: 8px; }
.assist-surface-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: #527abd; background: #e5efff; }
.assist-surface-icon .icon { width: 14px; height: 14px; }
.demo-state-label { padding: 4px 6px; border: 1px solid #e6d9b9; border-radius: 4px; color: #8a672a; background: #fffaf0; font-size: 8px; font-weight: 700; white-space: nowrap; }
.assist-ownership { align-items: flex-start; margin-top: 12px; padding: 10px; border: 1px solid #e3e9f2; border-radius: 7px; background: #fff; }
.assist-ownership > div:first-child { display: grid; gap: 3px; min-width: 0; }
.assist-overline, .summary-grid > div > span { color: #8a96a8; font-size: 8px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }
.assist-ownership strong { font-size: 11px; }
.ownership-ai { color: #426cae; }.ownership-paused { color: #9a6a22; }.ownership-human { color: #27805e; }
.assist-ownership small { color: #8792a3; font-size: 8px; line-height: 1.35; }
.ownership-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.assist-state-button { min-height: 25px; padding: 0 7px; border: 1px solid #dce3ed; border-radius: 5px; color: #6d7b90; background: #fff; font-size: 8px; font-weight: 700; }
.assist-state-button:hover, .assist-state-button.active { border-color: #a9c2e8; color: #3566a7; background: #edf4ff; }
.assist-state-button.active { box-shadow: inset 0 -2px 0 #5d8fd9; }
.takeover-summary { margin-top: 9px; padding-top: 10px; border-top: 1px solid #e2e9f2; }
.summary-heading { margin-bottom: 8px; color: #4f6688; font-size: 9px; font-weight: 750; }
.summary-heading small { color: #99a4b3; font-size: 8px; font-weight: 500; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.summary-grid > div { padding: 7px; border: 1px solid #e6ebf2; border-radius: 5px; background: #fbfcfe; }
.summary-grid p { margin: 4px 0 0; color: #56667d; font-size: 9px; line-height: 1.4; }
.assist-private-row { justify-content: flex-start; margin-top: 10px; }
.ask-operlix-field { min-width: 180px; flex: 1; }
.ask-operlix-field input { width: 100%; height: 28px; padding: 0 9px; border: 1px solid #cfdced; border-radius: 5px; outline: 0; color: #34445c; background: #fff; font-size: 9px; }
.ask-operlix-field input:focus { border-color: #9dbcf6; box-shadow: 0 0 0 2px rgba(37, 99, 235, .07); }
.approved-sources { display: grid; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e2e9f2; }
.approved-sources > span { color: #8a96a8; font-size: 8px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }
.quotation-boundary { margin: 8px 0 0; color: #8a6d3f; font-size: 8px; line-height: 1.45; }
.private-ask-button, .future-quote-button { display: inline-flex; height: 28px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #cfdced; border-radius: 5px; color: #426ca9; background: #fff; font-size: 8px; font-weight: 720; }
.private-ask-button:hover { border-color: #9dbcf6; background: #edf4ff; }
.private-ask-button .icon { width: 12px; height: 12px; }
.future-quote-button { color: #a2aab5; background: #f5f6f8; cursor: not-allowed; }
.future-quote-button span { color: #b28b4d; font-size: 7px; font-weight: 700; }
.ask-answer { margin-top: 9px; padding: 9px 10px; border-left: 3px solid #789bd0; border-radius: 5px; background: #fff; }
.ask-answer strong { color: #49668f; font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }
.ask-answer p { margin: 5px 0 8px; color: #52627a; font-size: 9px; line-height: 1.5; }
.source-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.assist-result-sources { margin: 0 0 8px; }
.source-chip { padding: 4px 6px; border: 1px solid #dbe4f1; border-radius: 4px; color: #56729d; background: #f5f8fd; font-size: 8px; font-weight: 650; }
.source-chip small { margin-left: 3px; color: #98a4b4; font-weight: 500; }
.why-coaching { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e2e9f2; color: #6e7d91; font-size: 8px; }
.why-coaching summary { cursor: pointer; color: #5576a7; font-weight: 700; }
.why-coaching p { max-width: 620px; margin: 6px 0 0; line-height: 1.45; }
.day-divider { display: flex; align-items: center; gap: 10px; color: #a1aab7; font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.day-divider:before, .day-divider:after { height: 1px; flex: 1; background: #e8ecf1; content: ""; }
.message-group { display: flex; align-items: flex-end; gap: 8px; }
.message-group.outbound { justify-content: flex-end; }
.message-avatar { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: #7892bf; font-size: 8px; font-weight: 750; }
.message-avatar.ai { color: #516da6; background: #e4edff; }
.message-stack { display: grid; max-width: min(76%, 500px); gap: 5px; }
.message-group.outbound .message-stack { justify-items: end; }
.message-bubble { padding: 10px 12px; border: 1px solid #e8ebf0; border-radius: 4px 12px 12px 12px; color: #465267; background: white; font-size: 11px; line-height: 1.55; box-shadow: 0 1px 1px rgba(22, 32, 51, .02); }
.message-group.outbound .message-bubble { border-color: #d6e4ff; border-radius: 12px 4px 12px 12px; color: #23416c; background: #edf4ff; }
.message-meta { display: flex; align-items: center; gap: 5px; color: #a0a9b6; font-size: 9px; }
.message-group.outbound .message-meta { justify-content: flex-end; }
.ai-label { display: inline-flex; align-items: center; gap: 3px; color: #6f8bca; font-size: 9px; font-weight: 700; }
.ai-label .icon { width: 11px; height: 11px; }
.note-card { max-width: min(82%, 510px); margin: 0 auto; padding: 9px 12px; border: 1px solid #f5e3be; border-radius: 7px; color: #87652d; background: #fff9ec; font-size: 10px; line-height: 1.5; }
.note-card strong { font-size: 9px; letter-spacing: .4px; text-transform: uppercase; }
.composer-shell { padding: 0 18px 17px; border-top: 1px solid var(--line); background: white; }
.composer-tabs { display: flex; align-items: center; gap: 3px; height: 45px; }
.composer-tab { display: inline-flex; height: 29px; align-items: center; gap: 6px; padding: 0 8px; border: 0; border-radius: 5px; color: var(--ink-faint); background: transparent; font-size: 10px; font-weight: 700; }
.composer-tab:hover { color: var(--ink-soft); background: #f5f7fa; }
.composer-tab.active { color: var(--blue); background: var(--blue-soft); }
.composer-tab .icon { width: 13px; height: 13px; }
.composer-hint { margin-left: auto; color: #a1aab7; font-size: 9px; }
.composer-box { border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.composer-box:focus-within { border-color: #9dbcf6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .07); }
.composer-box.note-mode { border-color: #e9c677; box-shadow: 0 0 0 3px rgba(235, 185, 81, .08); }
.assist-bar { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px 7px 10px; border-bottom: 1px solid #edf0f4; background: #fbfcff; }
.assist-brand { display: flex; min-width: 0; align-items: center; gap: 7px; }
.assist-brand > span:last-child { display: grid; min-width: 0; gap: 2px; }
.assist-brand strong { color: #3e5f98; font-size: 9px; font-weight: 760; }
.assist-brand small { color: #98a2b1; font-size: 7px; white-space: nowrap; }
.assist-spark { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #5f82c4; background: #eaf1ff; }
.assist-spark .icon { width: 13px; height: 13px; }
.assist-strategy { display: flex; align-items: center; gap: 6px; color: #8792a3; font-size: 8px; font-weight: 650; }
.assist-strategy select { height: 27px; max-width: 150px; padding: 0 22px 0 7px; border: 1px solid #dce3ed; border-radius: 5px; outline: 0; color: #4e5e74; background: white; font-size: 8px; font-weight: 650; }
.assist-strategy select:focus { border-color: #9dbcf6; }
.composer-box textarea { display: block; width: 100%; min-height: 68px; padding: 12px; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; line-height: 1.5; }
.composer-box textarea::placeholder { color: #a0a8b5; }
.assist-suggestion { margin: 0 9px 8px; padding: 10px; border: 1px solid #cfdcf2; border-radius: 7px; background: #f6f9ff; box-shadow: 0 3px 9px rgba(47, 84, 145, .05); }
.assist-suggestion-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assist-suggestion-heading > span:first-child { display: inline-flex; align-items: center; gap: 5px; color: #4267a5; font-size: 8px; }
.assist-suggestion-heading .icon { width: 11px; height: 11px; }
.assist-review-badge { padding: 3px 5px; border-radius: 4px; color: #8d641e; background: #fff2d8; font-size: 7px; font-weight: 700; }
.assist-suggestion > p { margin: 8px 0 9px; color: #34445c; font-size: 10px; line-height: 1.5; }
.assist-suggestion-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid #e0e8f5; }
.assist-suggestion-footer small { margin-right: auto; color: #8290a4; font-size: 7px; line-height: 1.35; }
.assist-dismiss { color: #718096; font-size: 8px; }
.assist-accept { height: 27px; padding: 0 8px; font-size: 8px; }
.composer-tools { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px 7px 8px; }
.composer-tool-group { display: flex; align-items: center; gap: 1px; }
.composer-tool-group .icon-button { width: 27px; height: 27px; }
.composer-tool-group .icon { width: 14px; height: 14px; }
.assist-action-button { display: inline-flex; height: 27px; align-items: center; gap: 4px; padding: 0 6px; border: 0; border-radius: 5px; color: #5974a2; background: transparent; font-size: 8px; font-weight: 680; }
.assist-action-button:hover:not(:disabled) { color: #315fa9; background: #edf4ff; }
.assist-action-button:disabled { color: #b2bac6; cursor: not-allowed; opacity: .7; }
.assist-action-button .icon { width: 11px; height: 11px; }
.shortcut-button { padding: 5px 6px; border: 0; color: #a1aab7; background: transparent; font-size: 9px; }
.shortcut-button:hover { color: var(--blue); }
.shortcut-button span { margin-left: 2px; font-weight: 600; }
.send-button { display: inline-flex; height: 29px; align-items: center; gap: 7px; padding: 0 10px 0 12px; border: 0; border-radius: 5px; color: white; background: var(--blue); font-size: 10px; font-weight: 700; transition: background .16s ease, transform .16s ease; }
.send-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.send-button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.send-button .icon { width: 13px; height: 13px; }
.customer-panel { overflow-y: auto; border-left: 1px solid var(--line); background: #fff; scrollbar-color: #d7dde7 transparent; scrollbar-width: thin; }
.customer-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 13px; border-bottom: 1px solid var(--line); }
.customer-header h2 { font-size: 12px; }
.customer-content { padding: 19px 17px 22px; }
.customer-profile { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.customer-avatar { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; color: white; background: #7892bf; font-size: 13px; font-weight: 750; }
.customer-profile-copy { display: grid; gap: 4px; }
.customer-profile-copy strong { color: var(--ink); font-size: 14px; font-weight: 750; }
.customer-profile-copy span { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 9px; font-weight: 650; }
.customer-profile-copy .status-dot { margin: 0; width: 5px; height: 5px; }
.detail-list { display: grid; gap: 9px; padding: 12px 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-row { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; }
.detail-row .icon { width: 13px; height: 13px; color: #9da8b8; }
.detail-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-section { padding-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-heading h3 { margin: 0; color: var(--ink); font-size: 10px; font-weight: 750; letter-spacing: .2px; text-transform: uppercase; }
.section-heading button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 700; }
.activity-item { position: relative; display: flex; gap: 8px; padding-bottom: 14px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-line { position: absolute; top: 15px; bottom: 0; left: 6px; width: 1px; background: #e5e9ef; }
.activity-item:last-child .activity-line { display: none; }
.activity-icon { z-index: 1; display: grid; width: 13px; height: 13px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #6c89bc; background: #e8effc; }
.activity-icon .icon { width: 8px; height: 8px; }
.activity-copy { display: grid; gap: 3px; padding-top: 1px; }
.activity-copy strong { color: var(--ink-soft); font-size: 10px; font-weight: 600; line-height: 1.35; }
.activity-copy span { color: #a0a9b6; font-size: 9px; }
.appointment-card { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e4eaf4; border-radius: 7px; background: #f8faff; }
.appointment-date { display: grid; width: 31px; height: 34px; place-items: center; border-radius: 5px; color: #3970c5; background: #e5efff; line-height: 1; }
.appointment-date strong { font-size: 12px; }
.appointment-date span { font-size: 8px; font-weight: 700; text-transform: uppercase; }
.appointment-copy { display: grid; min-width: 0; gap: 3px; }
.appointment-copy strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.appointment-copy span { color: var(--ink-faint); font-size: 9px; }
.appointment-state { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 700; }
.customer-note { padding: 9px; border: 1px solid #f0e2bd; border-radius: 6px; color: #7f693a; background: #fffaf0; font-size: 10px; line-height: 1.5; }
.customer-note .note-author { display: block; margin-top: 5px; color: #a38b5a; font-size: 9px; font-weight: 650; }
.empty-state { display: grid; height: 100%; min-height: 200px; place-items: center; padding: 30px; color: var(--ink-faint); font-size: 11px; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 12px; }
.mobile-backdrop { display: none; }
.toast { position: fixed; right: 26px; bottom: 24px; z-index: 20; max-width: 290px; padding: 11px 14px; border: 1px solid #d7e3f9; border-radius: 8px; color: #315a9d; background: #f4f8ff; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

.secondary-workspace-view { max-width: 1500px; width: 100%; margin: 0 auto; }
.settings-panel, .placeholder-panel { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.settings-panel { padding: 26px; }
.settings-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.settings-section-heading h2 { margin-bottom: 7px; font-size: 16px; }
.settings-section-heading p:not(.settings-kicker) { max-width: 610px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.settings-kicker { margin: 0 0 8px; color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.settings-security { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 6px 8px; border-radius: 5px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 700; }
.settings-security .icon { width: 11px; height: 11px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 22px; }
.channel-card { display: flex; min-height: 220px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.channel-card:hover:not(.channel-card-muted) { border-color: #cbd9f1; box-shadow: 0 9px 24px rgba(31, 55, 91, .06); }
.channel-card-muted { background: #fbfcfd; }
.channel-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.channel-logo { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 800; }
.whatsapp-logo { background: #1ca76f; }
.messenger-logo { background: #277ee9; }
.instagram-logo { background: linear-gradient(135deg, #e96b63, #9858bd); }
.tiktok-logo { background: #202637; }
.channel-status { padding: 5px 7px; border-radius: 99px; color: #7d5b2d; background: var(--amber-soft); font-size: 9px; font-weight: 700; }
.channel-status.coming-soon { color: #697386; background: #eef1f5; }
.channel-card h3 { margin-bottom: 7px; font-size: 13px; }
.channel-card > p { margin: 0 0 20px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.channel-button { width: fit-content; margin-top: auto; }
.channel-button:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.placeholder-panel { display: grid; min-height: 410px; place-items: center; align-content: center; padding: 42px; text-align: center; }
.placeholder-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border-radius: 12px; color: #4e76bd; background: #edf4ff; }
.placeholder-icon .icon { width: 22px; height: 22px; }
.placeholder-panel h2 { margin-bottom: 9px; font-size: 17px; }
.placeholder-panel > p:not(.settings-kicker) { max-width: 460px; margin-bottom: 22px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }

/* Appointments */
.appointment-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1500px; gap: 13px; margin: 0 auto 16px; }
.appointment-stat-card { display: flex; align-items: center; gap: 13px; min-height: 88px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.appointment-stat-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 9px; color: #356fc5; background: #eaf2ff; }
.appointment-stat-icon .icon { width: 19px; height: 19px; }
.appointment-stat-card.amber .appointment-stat-icon { color: #a86313; background: var(--amber-soft); }
.appointment-stat-card.purple .appointment-stat-icon { color: #7650ba; background: var(--purple-soft); }
.appointment-stat-card > span:last-child { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.appointment-stat-card strong { color: var(--ink); font-size: 22px; line-height: 1; }
.appointment-stat-card b { font-size: 11px; }
.appointment-stat-card small { grid-column: 1 / -1; margin-top: 5px; color: var(--ink-faint); font-size: 9px; }
.appointment-workspace { max-width: 1500px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.appointment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fcfdff; }
.appointment-filters { display: flex; gap: 3px; overflow-x: auto; }
.appointment-filter { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 6px; color: var(--ink-faint); background: transparent; font-size: 10px; font-weight: 680; }
.appointment-filter:hover { color: var(--ink-soft); background: #f1f4f8; }
.appointment-filter.active { color: var(--blue); background: var(--blue-soft); }
.appointment-search { display: flex; width: 240px; height: 32px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.appointment-search .icon { width: 14px; height: 14px; }
.appointment-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 10px; }
.appointment-layout { display: grid; grid-template-columns: minmax(430px, 1.25fr) minmax(320px, .75fr); min-height: 550px; }
.appointment-list-panel { min-width: 0; border-right: 1px solid var(--line); background: #fcfdff; }
.appointment-list-heading { display: flex; min-height: 67px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.appointment-list-heading h2 { font-size: 14px; }
.demo-state-label { padding: 5px 7px; border-radius: 5px; color: #64748b; background: #eef1f5; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.appointment-list-items { max-height: 620px; overflow-y: auto; }
.appointment-list-card { display: flex; width: 100%; align-items: center; gap: 13px; padding: 14px 17px; border: 0; border-bottom: 1px solid #eef1f4; color: inherit; background: white; text-align: left; transition: background .15s ease; }
.appointment-list-card:hover { background: #f8faff; }
.appointment-list-card.selected { background: #f0f5ff; box-shadow: inset 3px 0 0 var(--blue); }
.appointment-list-date { display: grid; width: 43px; height: 46px; flex: 0 0 auto; place-items: center; align-content: center; border: 1px solid #dae5f7; border-radius: 8px; color: #3970c5; background: #f4f8ff; line-height: 1; }
.appointment-list-date strong { font-size: 15px; }
.appointment-list-date small { margin-top: 4px; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.appointment-list-copy { display: grid; min-width: 0; flex: 1; gap: 5px; color: var(--ink-soft); font-size: 10px; }
.appointment-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.appointment-list-top strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.appointment-list-copy small { display: flex; align-items: center; gap: 4px; color: var(--ink-faint); }
.appointment-list-copy small .icon { width: 11px; height: 11px; }
.appointment-status { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 750; }
.status-requested { color: #9a5a0b; background: var(--amber-soft); }
.status-awaiting-deposit { color: #9a5a0b; background: #fff4d9; }
.status-confirmed { color: var(--green); background: var(--green-soft); }
.status-completed { color: #42648e; background: #edf3fa; }
.status-cancelled { color: #7a6270; background: #f3eef1; }
.appointment-detail-panel { min-width: 0; padding: 22px; background: white; }
.appointment-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.appointment-detail-heading h2 { font-size: 16px; }
.appointment-detail-customer { display: flex; align-items: center; gap: 11px; padding: 20px 0; }
.appointment-detail-customer .customer-avatar { width: 39px; height: 39px; font-size: 10px; }
.appointment-detail-customer > span:last-child { display: grid; gap: 4px; }
.appointment-detail-customer small, .appointment-notes small { color: var(--ink-faint); font-size: 8px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.appointment-detail-customer strong { font-size: 12px; }
.appointment-detail-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.appointment-detail-list > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.appointment-detail-list dt { color: var(--ink-faint); }
.appointment-detail-list dd { margin: 0; color: var(--ink); font-weight: 620; }
.deposit-list-state { color: #8a651e !important; font-weight: 700; }
.appointment-financial-card { display: grid; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid #dce6f4; border-radius: 9px; background: #f8fbff; }
.appointment-financial-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appointment-financial-heading > div { display: grid; gap: 4px; }
.appointment-financial-heading small, .appointment-balance-grid small { color: var(--ink-faint); font-size: 8px; font-weight: 750; letter-spacing: .45px; text-transform: uppercase; }
.appointment-financial-heading strong { font-size: 13px; }
.payment-status { padding: 5px 8px; border-radius: 99px; color: #8a651e; background: #fff2d5; font-size: 8px; font-weight: 750; }
.payment-status.paid { color: var(--green); background: var(--green-soft); }
.appointment-balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.appointment-balance-grid > div { display: grid; gap: 5px; padding: 10px; border: 1px solid #e3eaf3; border-radius: 7px; background: white; }
.appointment-balance-grid strong { font-size: 11px; }
.appointment-financial-card > p { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
.provider-placeholder { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px dashed #cbd7e8; border-radius: 7px; color: #546a89; background: #f3f7fc; }
.provider-placeholder > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: white; }
.provider-placeholder .icon { width: 14px; height: 14px; }
.provider-placeholder > div { display: grid; gap: 3px; }
.provider-placeholder strong { font-size: 9px; }
.provider-placeholder small { font-size: 8px; }
.service-deposit-settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.source-chip { padding: 4px 6px; border-radius: 4px; color: #42648e; background: #edf3fa; font-size: 8px; }
.appointment-notes { margin-top: 19px; padding: 13px; border: 1px solid #e8ecf1; border-radius: 7px; background: #fafbfd; }
.appointment-notes p { margin: 7px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.appointment-detail-actions { display: flex; gap: 8px; margin-top: 18px; }
.demo-disclaimer { margin: 14px 0 0; color: var(--ink-faint); font-size: 8px; line-height: 1.5; }
.appointment-empty { display: grid; min-height: 300px; place-items: center; align-content: center; padding: 30px; color: var(--ink-faint); text-align: center; }
.appointment-empty > span { display: grid; width: 42px; height: 42px; margin-bottom: 12px; place-items: center; border-radius: 9px; color: #5d7cae; background: #edf3fb; }
.appointment-empty strong { color: var(--ink-soft); font-size: 11px; }
.appointment-empty p { margin: 5px 0 0; font-size: 9px; }

/* SaaS settings */
.settings-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1500px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.settings-nav { padding: 18px 10px; border-right: 1px solid var(--line); background: #fafbfd; }
.settings-nav-label { margin: 0 10px 12px; color: var(--ink-faint); font-size: 8px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.settings-nav-item { display: flex; width: 100%; min-height: 38px; align-items: center; padding: 8px 10px; border: 0; border-radius: 6px; color: var(--ink-soft); background: transparent; font-size: 10px; font-weight: 620; text-align: left; }
.settings-nav-item:hover { color: var(--ink); background: #f0f3f7; }
.settings-nav-item.active { color: var(--blue); background: var(--blue-soft); font-weight: 720; }
.settings-content { min-width: 0; }
.settings-shell .settings-panel { min-height: 650px; border: 0; border-radius: 0; box-shadow: none; }
.settings-form-body { padding-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.compact { gap: 12px; }
.field { display: grid; align-content: start; gap: 7px; color: var(--ink-soft); font-size: 9px; font-weight: 680; }
.field-full { grid-column: 1 / -1; }
.field > small { color: var(--ink-faint); font-size: 8px; font-weight: 500; line-height: 1.4; }
.field input, .field select, .field textarea, .hours-row input, .override-row input, .override-row select, .inline-title-input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--ink); background: white; font-size: 10px; }
.field input, .field select, .hours-row input, .override-row input, .override-row select { height: 36px; padding: 0 10px; }
.field textarea { padding: 9px 10px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-title-input:focus { border-color: #9dbcf6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .07); }
.field input:disabled { color: var(--ink-faint); background: #f4f5f7; }
.settings-save-row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 8px; }
.settings-callout { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 11px 13px; border: 1px solid #d9e5f7; border-radius: 7px; color: #536b91; background: #f5f8fd; font-size: 9px; line-height: 1.5; }
.settings-callout strong { flex: 0 0 auto; color: #31588f; }
.settings-callout.priority { border-color: #e9dfc7; color: #735f36; background: #fffbf2; }
.settings-callout.priority strong { color: #8a651e; }
.setting-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.setting-group-heading, .settings-list-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.setting-group-heading h3 { margin-bottom: 5px; font-size: 11px; }
.setting-group-heading p { margin: 0; color: var(--ink-faint); font-size: 9px; }
.setting-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdff; }
.setting-toggle-row strong { display: block; margin-bottom: 5px; font-size: 10px; }
.setting-toggle-row p { margin: 0; color: var(--ink-faint); font-size: 9px; line-height: 1.45; }
.switch { position: relative; width: 34px; height: 19px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { display: block; width: 100%; height: 100%; border-radius: 99px; background: #cbd2dc; transition: background .16s ease; cursor: pointer; }
.switch span:after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(16, 24, 39, .25); content: ""; transition: transform .16s ease; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span:after { transform: translateX(15px); }
.weekly-hours { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.hours-row { display: grid; grid-template-columns: 92px 40px 120px 20px 120px; align-items: center; gap: 9px; min-height: 51px; padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: 9px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row strong { color: var(--ink); font-size: 10px; }
.hours-row.closed { background: #fafbfd; }
.closed-label { color: var(--ink-faint); font-weight: 650; }
.override-list { display: grid; gap: 8px; }
.override-row { display: grid; grid-template-columns: 145px 170px minmax(160px, 1fr) 28px; align-items: center; gap: 8px; }
.input-prefix { display: flex; height: 36px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; }
.input-prefix span { display: flex; align-items: center; padding: 0 8px; border-right: 1px solid var(--line); color: var(--ink-faint); background: #f7f8fa; font-size: 8px; }
.input-prefix input { height: 34px; border: 0; border-radius: 0; }
.booking-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.booking-mode { position: relative; cursor: pointer; }
.booking-mode input { position: absolute; top: 13px; right: 13px; }
.booking-mode > span { display: grid; min-height: 130px; align-content: start; gap: 8px; padding: 17px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-soft); background: white; }
.booking-mode.selected > span { border-color: #8bb0f2; background: #f4f8ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .06); }
.booking-mode .icon { width: 20px; height: 20px; color: var(--blue); }
.booking-mode strong { color: var(--ink); font-size: 11px; }
.booking-mode small { font-size: 9px; line-height: 1.5; }
.settings-list-actions { color: var(--ink-faint); font-size: 9px; }
.service-settings-list { display: grid; gap: 12px; }
.service-settings-card { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdff; }
.service-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.service-card-heading > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.inline-title-input { width: min(100%, 300px); height: 32px; padding: 0 9px; color: var(--ink); font-size: 12px; font-weight: 720; }
.service-state { padding: 4px 6px; border-radius: 4px; color: #6c7480; background: #edf0f4; font-size: 8px; font-weight: 700; }
.service-state.enabled { color: var(--green); background: var(--green-soft); }
.service-settings-card > .field { margin-bottom: 13px; }
.ai-state-flow { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.ai-state { display: grid; min-width: 145px; min-height: 128px; align-content: start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdff; }
.ai-state > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #5d77a5; background: #eaf0fa; font-weight: 800; }
.ai-state > span .icon { width: 14px; height: 14px; }
.ai-state.warning > span { color: #a16415; background: var(--amber-soft); }
.ai-state.human > span { color: var(--green); background: var(--green-soft); }
.ai-state.return > span { color: #7650ba; background: var(--purple-soft); }
.ai-state strong { font-size: 10px; line-height: 1.3; }
.ai-state small { color: var(--ink-faint); font-size: 8px; line-height: 1.5; }
.flow-arrow { color: #aab2bf; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); font-size: 9px; line-height: 1.4; }
.check-row input { margin: 1px 0 0; accent-color: var(--blue); }
.notification-table { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.notification-table-head, .notification-row { display: grid; grid-template-columns: minmax(240px, 1fr) 70px 70px; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.notification-table-head { color: var(--ink-faint); background: #f8fafc; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.notification-row:last-child { border-bottom: 0; }
.notification-row > span:first-child { display: grid; gap: 4px; }
.notification-row strong { font-size: 10px; }
.notification-row small { color: var(--ink-faint); font-size: 8px; line-height: 1.4; }

/* Appointment editor */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(16, 24, 39, .52); }
.appointment-modal-card { width: min(100%, 690px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 28px 80px rgba(16, 24, 39, .24); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-heading h2 { font-size: 17px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-actions > span { margin-right: auto; color: var(--ink-faint); font-size: 8px; }

@media (max-width: 1240px) {
  .inbox-layout { grid-template-columns: 274px minmax(390px, 1fr); }
  .customer-panel { display: none; }
  .appointment-layout { grid-template-columns: minmax(390px, 1fr) minmax(290px, .7fr); }
  .settings-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .ai-state-flow { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
  .flow-arrow { display: none; }
}

@media (max-width: 900px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: 248px; transform: translateX(-101%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(15, 23, 42, .2); }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-menu-button { display: inline-flex; }
  .topbar { justify-content: flex-start; padding: 0 19px; }
  .topbar-actions { margin-left: auto; gap: 10px; }
  .global-search { width: min(32vw, 220px); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(16, 24, 39, .45); }
  .mobile-backdrop.visible { display: block; }
  .workspace-view { padding: 24px 19px 24px; }
  .appointment-stats { grid-template-columns: repeat(3, minmax(145px, 1fr)); overflow-x: auto; }
  .appointment-layout { grid-template-columns: 1fr; }
  .appointment-list-panel { border-right: 0; }
  .appointment-detail-panel { border-top: 1px solid var(--line); }
  .settings-shell { grid-template-columns: 1fr; }
  .settings-nav { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-nav-label { display: none; }
  .settings-nav-item { width: auto; flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 680px) {
  .auth-gate { padding: 16px; }
  .auth-card { padding: 25px 21px; border-radius: 13px; }
  .auth-brand { margin-bottom: 30px; }
  .topbar { height: 62px; }
  .topbar-context { display: none; }
  .topbar-actions { width: 100%; }
  .global-search { width: auto; flex: 1; }
  .topbar-user-copy, .topbar-user .icon, .topbar-divider { display: none; }
  .topbar-user { gap: 0; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .inbox-layout { display: block; height: calc(100vh - 224px); min-height: 600px; }
  .conversation-list-panel { height: 100%; border-right: 0; }
  .thread-panel { display: none; height: 100%; }
  .customer-panel { display: none; }
  .inbox-layout.thread-open .conversation-list-panel { display: none; }
  .inbox-layout.thread-open .thread-panel { display: flex; }
  .inbox-layout.thread-open .thread-panel:before { display: block; }
  .thread-header { padding: 12px 14px; }
  .mobile-thread-back { display: grid; }
  .thread-action-button span { display: none; }
  .thread-action-button { width: 30px; justify-content: center; padding: 0; }
  .thread-body { padding: 16px 14px; }
  .composer-shell { padding: 0 12px 12px; }
  .assist-bar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .assist-strategy { width: 100%; justify-content: space-between; }
  .assist-strategy select { max-width: none; flex: 1; }
  .assist-action-button span { display: none; }
  .assist-action-button { width: 27px; justify-content: center; padding: 0; }
  .assist-suggestion-footer { align-items: flex-end; flex-wrap: wrap; }
  .assist-suggestion-footer small { width: 100%; }
  .message-stack { max-width: 84%; }
  .list-footer { font-size: 8px; }
  .conversation-row { padding-left: 13px; }
  .settings-panel { padding: 18px; }
  .settings-section-heading { flex-direction: column; gap: 14px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-card { min-height: 205px; }
  .placeholder-panel { min-height: 360px; padding: 28px 20px; }
  .appointment-toolbar { align-items: stretch; flex-direction: column; }
  .appointment-search { width: 100%; }
  .appointment-layout { min-height: 0; }
  .appointment-list-items { max-height: none; }
  .appointment-detail-panel { padding: 18px; }
  .form-grid, .booking-mode-grid, .check-grid { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 75px 35px 1fr 16px 1fr; padding: 7px 8px; }
  .override-row { grid-template-columns: 1fr 1fr 28px; }
  .override-row input[type="text"] { grid-column: 1 / -1; grid-row: 2; }
  .notification-table-head, .notification-row { grid-template-columns: minmax(160px, 1fr) 42px 42px; padding: 10px; }
  .settings-save-row { align-items: flex-end; flex-direction: column; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions > span { width: 100%; }
  .assist-ownership { flex-direction: column; }
  .ownership-actions { justify-content: flex-start; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid > div:last-child { grid-column: 1 / -1; }
  .assist-surface-head { align-items: flex-start; }
}