:root {
  --ink: #13221d;
  --muted: #66736e;
  --subtle: #8a9691;
  --paper: #f6f7f3;
  --card: #ffffff;
  --line: #e5e9e4;
  --line-strong: #d6ddd7;
  --forest: #153e33;
  --forest-2: #1e5949;
  --mint: #a8e6c7;
  --mint-light: #e9f8f0;
  --amber: #e9a33b;
  --danger: #d45d56;
  --sidebar: #0e2821;
  --shadow: 0 18px 50px rgba(24, 52, 43, .09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

.public-demo-banner { position: fixed; inset: 0 0 auto; height: 38px; z-index: 120; padding: 0 18px; display: flex; align-items: center; gap: 18px; color: #d9eee5; background: #071b15; border-bottom: 1px solid rgba(168,230,199,.16); font-size: 9px; }
.public-demo-banner span { display: flex; align-items: center; gap: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.public-demo-banner span i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(168,230,199,.1); }
.public-demo-banner b { color: #829f93; font-weight: 500; }
.public-demo-banner a { margin-left: auto; color: var(--mint); font-weight: 800; }
body { padding-top: 38px; }
.sidebar { top: 38px; height: calc(100vh - 38px); }
.topbar { top: 38px; }
@media (max-width: 780px) { .public-demo-banner b { display: none; } .public-demo-banner { gap: 10px; padding: 0 10px; } .public-demo-banner a { font-size: 8px; } }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
body { overflow-x: hidden; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; background: var(--sidebar); color: #f5fbf7; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand > div { display: grid; gap: 1px; }
.brand strong { font-size: 19px; letter-spacing: -.02em; }
.brand small { color: #9fb9ae; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: end; gap: 3px; transform: rotate(-12deg); }
.brand-mark i { display: block; width: 7px; border-radius: 7px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 15px; opacity: .75; }
.brand-mark i:nth-child(2) { height: 27px; }
.brand-mark i:nth-child(3) { height: 20px; opacity: .9; }
.nav-list { display: flex; flex-direction: column; gap: 5px; margin-top: 39px; }
.nav-item { border: 0; background: transparent; color: #a9c0b7; border-radius: 11px; padding: 11px 12px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; text-align: left; font-size: 13px; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: rgba(168,230,199,.13); box-shadow: inset 3px 0 0 var(--mint); }
.nav-icon { color: var(--mint); font-size: 17px; text-align: center; }
.nav-badge { display: none; padding: 2px 6px; min-width: 20px; border-radius: 99px; color: var(--sidebar); background: var(--mint); text-align: center; font-size: 10px; }
.nav-badge.visible { display: block; }
.nav-label { margin: 27px 12px 6px; color: #638176; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; display: grid; gap: 17px; }
.usage-mini { border: 1px solid rgba(255,255,255,.08); border-radius: 13px; padding: 13px; background: rgba(255,255,255,.025); }
.usage-mini > div:first-child { display: flex; justify-content: space-between; font-size: 11px; color: #b5c9c1; }
.usage-mini strong { color: white; }
.usage-mini small { display: block; color: #66867a; margin-top: 8px; font-size: 9px; }
.progress { height: 4px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--mint); transition: width .5s ease; }
.account-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; color: inherit; text-decoration: none; padding: 0 8px; }
.account-card .avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--forest); background: var(--mint); font-weight: 800; }
.account-card span:nth-child(2) { display: grid; }
.account-card strong { font-size: 12px; }.account-card small { font-size: 10px; color: #78988c; }.account-card b { color: #78988c; font-weight: 400; }

.workspace { min-width: 0; }
.topbar { height: 97px; padding: 21px 35px; border-bottom: 1px solid var(--line); background: rgba(246,247,243,.9); backdrop-filter: blur(14px); display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 12; }
.page-identity { min-width: 180px; }.page-identity p, .eyebrow { margin: 0 0 3px; color: var(--forest-2); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.page-identity h1 { margin: 0; font-size: 23px; line-height: 1.1; letter-spacing: -.035em; font-weight: 720; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.system-status { display: flex; gap: 7px; align-items: center; margin-right: 8px; color: var(--muted); font-size: 11px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(233,163,59,.12); }
.system-status.live i { background: #48a878; box-shadow: 0 0 0 4px rgba(72,168,120,.12); }
.button { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 15px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; background: white; color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 1px 1px rgba(18,38,31,.03); transition: .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(18,38,31,.08); }
.button.primary { color: white; border-color: var(--forest); background: var(--forest); }.button.primary:hover { background: var(--forest-2); }
.button.ghost { background: rgba(255,255,255,.55); }.button.danger { color: var(--danger); }
.button.small { padding: 7px 10px; font-size: 10px; }.button.full { width: 100%; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: white; display: grid; place-items: center; color: var(--muted); }
.mobile-menu { display: none; }
.content { padding: 30px 35px 60px; max-width: 1600px; margin: 0 auto; }

.loading-state { min-height: 55vh; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 12px; }
.loader { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.hero-row h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.hero-row p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); background: #edf0eb; border-radius: 10px; }
.segmented button { border: 0; padding: 7px 10px; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(24,52,43,.07); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(24,52,43,.025); }
.metric-card { padding: 20px; min-height: 136px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -40px; border-radius: 50%; background: var(--mint-light); opacity: .65; }
.metric-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.metric-card label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-card .metric-icon { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--mint-light); font-size: 14px; position: relative; z-index: 1; }
.metric-card strong { display: block; font-size: 30px; margin: 15px 0 5px; letter-spacing: -.045em; }
.metric-card small { color: var(--subtle); font-size: 10px; }.metric-card small b { color: var(--forest-2); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 18px; margin-bottom: 18px; }
.panel { min-width: 0; }.panel-pad { padding: 21px; }.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 21px 16px; }
.panel-head h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }.panel-head p { margin: 4px 0 0; color: var(--subtle); font-size: 10px; }
.text-link { border: 0; background: none; color: var(--forest-2); font-size: 10px; font-weight: 800; }
.chart-wrap { padding: 0 18px 13px; }.chart-legend { display: flex; gap: 18px; margin: 0 0 8px 5px; color: var(--muted); font-size: 9px; }
.chart-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--forest); margin-right: 5px; }.chart-legend span:nth-child(2)::before { background: var(--mint); }
.trend-chart { width: 100%; height: 175px; overflow: visible; }.trend-chart .grid { stroke: #edf0ec; stroke-width: 1; }.trend-chart .area { fill: url(#areaGradient); }.trend-chart .line { fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }.trend-chart .line.secondary { stroke: #81c8a8; stroke-width: 1.8; }.trend-chart text { fill: var(--subtle); font-size: 8px; }
.upcoming-list { display: grid; padding: 0 20px 16px; }.appointment-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.date-tile { border-radius: 10px; padding: 6px 3px; text-align: center; background: var(--mint-light); color: var(--forest); }.date-tile strong { display: block; font-size: 14px; }.date-tile small { font-size: 8px; text-transform: uppercase; }
.appointment-row h4 { margin: 0 0 4px; font-size: 11px; }.appointment-row p { margin: 0; color: var(--muted); font-size: 9px; }.time-pill { color: var(--forest); background: #f2f6f2; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-weight: 700; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }

.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; }.data-table th { padding: 10px 17px; color: var(--subtle); background: #fafbf9; border-block: 1px solid var(--line); font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .09em; }.data-table td { padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: 10px; vertical-align: middle; }.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr { cursor: pointer; transition: background .15s; }.data-table tbody tr:hover { background: #fafcf9; }
.contact-cell { display: flex; gap: 9px; align-items: center; }.mini-avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: var(--mint-light); font-size: 10px; font-weight: 800; flex: 0 0 auto; }.contact-cell span { display: grid; gap: 2px; }.contact-cell strong { font-size: 10px; }.contact-cell small { color: var(--subtle); font-size: 8px; }.channel { display: inline-flex; align-items: center; gap: 5px; text-transform: capitalize; }.channel i { width: 6px; height: 6px; border-radius: 50%; background: #7b96e8; }.channel.voice i { background: var(--amber); }
.badge { display: inline-block; padding: 4px 7px; border-radius: 99px; color: var(--forest); background: var(--mint-light); font-size: 8px; font-weight: 800; text-transform: capitalize; }.badge.in_progress { color: #7a651d; background: #fcf5d8; }.badge.callback { color: #8c574f; background: #fceae7; }.badge.new { color: #455e9f; background: #edf1ff; }.badge.cancelled { color: #8c574f; background: #fceae7; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }.search-box { min-width: 240px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--subtle); }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; color: var(--ink); }
.inbox-layout { height: calc(100vh - 160px); min-height: 540px; display: grid; grid-template-columns: 330px 1fr; overflow: hidden; }
.conversation-list { border-right: 1px solid var(--line); overflow-y: auto; }.conversation-list-head { padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: white; z-index: 2; }.conversation-list-head .search-box { min-width: 0; width: 100%; }
.conversation-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 15px 16px; background: white; color: var(--ink); text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; }.conversation-item:hover, .conversation-item.active { background: #f7faf7; }.conversation-item.active { box-shadow: inset 3px 0 0 var(--forest); }.conversation-item .body { min-width: 0; }.conversation-item h4 { margin: 0 0 5px; font-size: 11px; }.conversation-item p { margin: 0; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }.conversation-item time { color: var(--subtle); font-size: 8px; }.unread-dot { display: block; width: 6px; height: 6px; margin: 9px 0 0 auto; border-radius: 50%; background: var(--forest-2); }
.conversation-view { min-width: 0; display: flex; flex-direction: column; background: #fbfcfa; }.conversation-head { min-height: 70px; padding: 14px 19px; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; gap: 10px; }.conversation-head .meta { margin-left: auto; display: flex; gap: 7px; }.message-stream { flex: 1; padding: 24px; overflow-y: auto; }.message { display: flex; margin-bottom: 14px; }.message.customer { justify-content: flex-start; }.message.assistant, .message.human { justify-content: flex-end; }.bubble { max-width: min(70%, 600px); padding: 11px 13px 8px; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; background: white; font-size: 11px; line-height: 1.5; box-shadow: 0 3px 12px rgba(24,52,43,.04); }.message.assistant .bubble { color: white; background: var(--forest); border-color: var(--forest); border-radius: 14px 4px 14px 14px; }.message.human .bubble { background: var(--mint-light); border-color: #ccebdc; border-radius: 14px 4px 14px 14px; }.bubble time { display: block; margin-top: 5px; text-align: right; font-size: 7px; opacity: .6; }.reply-box { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 14px; border-top: 1px solid var(--line); background: white; }.reply-box textarea { resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px; outline: none; font-size: 11px; }.reply-box textarea:focus { border-color: #91b7a8; box-shadow: 0 0 0 3px rgba(145,183,168,.15); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.contact-card { padding: 17px; }.contact-card-head { display: flex; align-items: center; gap: 10px; }.contact-card .mini-avatar { width: 39px; height: 39px; }.contact-card h3 { margin: 0 0 3px; font-size: 12px; }.contact-card p { margin: 0; color: var(--subtle); font-size: 9px; }.contact-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }.contact-card dt { color: var(--subtle); font-size: 8px; text-transform: uppercase; }.contact-card dd { margin: 3px 0 0; font-size: 10px; }

.calendar-shell { overflow: hidden; }.calendar-toolbar { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.calendar-toolbar h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; font-size: 22px; }.calendar-toolbar div { display: flex; gap: 7px; }.week-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); min-height: 530px; overflow-x: auto; }.day-column { border-right: 1px solid var(--line); min-width: 120px; }.day-column:last-child { border: 0; }.day-head { padding: 13px; text-align: center; border-bottom: 1px solid var(--line); background: #fafbf9; }.day-head span { display: block; color: var(--subtle); font-size: 8px; text-transform: uppercase; }.day-head strong { display: block; margin-top: 5px; font-size: 17px; }.day-column.today .day-head strong { width: 29px; height: 29px; margin: 3px auto -2px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); }.day-events { padding: 9px; display: grid; gap: 7px; align-content: start; }.calendar-event { border: 0; border-left: 3px solid var(--forest-2); border-radius: 8px; padding: 9px; text-align: left; background: var(--mint-light); color: var(--ink); }.calendar-event strong { display: block; font-size: 9px; line-height: 1.3; }.calendar-event small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

.knowledge-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.55fr); gap: 18px; }.knowledge-form { padding: 22px; height: fit-content; }.knowledge-form h3 { margin: 0 0 5px; }.knowledge-form > p { margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.55; }.form-grid { display: grid; gap: 13px; }.form-grid.two { grid-template-columns: 1fr 1fr; }.form-grid .wide { grid-column: 1 / -1; }label { display: grid; gap: 6px; }label > span { color: var(--muted); font-size: 9px; font-weight: 700; }input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 11px; color: var(--ink); background: white; outline: none; font-size: 11px; }input:focus, textarea:focus, select:focus { border-color: #8db2a4; box-shadow: 0 0 0 3px rgba(141,178,164,.14); }.knowledge-list { display: grid; gap: 10px; padding: 0 20px 20px; }.knowledge-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }.knowledge-card .category { color: var(--forest-2); font-size: 8px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }.knowledge-card h4 { margin: 5px 0 6px; font-size: 11px; }.knowledge-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.knowledge-card button { border: 0; background: transparent; color: var(--subtle); align-self: start; }.knowledge-card button:hover { color: var(--danger); }

.voice-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); gap: 18px; }.phone-simulator { min-height: 550px; background: radial-gradient(circle at 50% 15%, #265c4d, var(--sidebar) 60%); color: white; padding: 28px; display: flex; flex-direction: column; }.call-state { text-align: center; }.call-state .pulse { width: 66px; height: 66px; margin: 10px auto 14px; border-radius: 50%; background: var(--mint); color: var(--forest); display: grid; place-items: center; font-size: 24px; box-shadow: 0 0 0 10px rgba(168,230,199,.08), 0 0 0 20px rgba(168,230,199,.035); }.call-state h3 { margin: 0; }.call-state p { margin: 5px 0 0; color: #9db9ae; font-size: 10px; }.call-transcript { flex: 1; max-height: 310px; overflow-y: auto; margin: 27px 0 17px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(0,0,0,.11); }.call-line { margin-bottom: 12px; }.call-line span { display: block; color: var(--mint); font-size: 8px; font-weight: 800; text-transform: uppercase; }.call-line.assistant span { color: #94b4a8; }.call-line p { margin: 3px 0 0; color: #f0f7f3; font-size: 11px; line-height: 1.45; }.call-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.call-input input { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: white; }.call-input input::placeholder { color: #718f84; }.call-input .button { border-color: var(--mint); background: var(--mint); color: var(--forest); }.voice-info { display: grid; gap: 14px; align-content: start; }.info-card { padding: 19px; }.info-card h3 { margin: 0 0 12px; font-size: 12px; }.status-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 9px; }.status-line span { color: var(--muted); }.status-line b { font-weight: 700; }.code-block { padding: 10px; border-radius: 9px; overflow-wrap: anywhere; color: #ccebdc; background: var(--sidebar); font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.settings-card { padding: 22px; }.settings-card h3 { margin: 0 0 4px; font-size: 13px; }.settings-card > p { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }.integration { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }.integration-icon { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; color: var(--forest); background: var(--mint-light); font-weight: 800; }.integration h4 { margin: 0 0 3px; font-size: 10px; }.integration p { margin: 0; color: var(--subtle); font-size: 8px; }

.modal { width: min(610px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 24px 80px rgba(10,37,29,.25); }.modal::backdrop { background: rgba(9,28,22,.55); backdrop-filter: blur(5px); }.modal-card { padding: 25px; }.modal-card.compact { width: min(380px, 100%); text-align: center; padding: 32px; }.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }.modal-head h2 { margin: 0; font-size: 20px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }.login-brand { justify-content: center; color: var(--ink); margin-bottom: 25px; }.login-brand small { color: var(--muted); }.login-modal h2 { margin: 0 0 7px; }.login-modal p { margin: 0 0 22px; color: var(--muted); font-size: 11px; }.login-modal label { text-align: left; margin-bottom: 14px; }.form-error { display: block; min-height: 15px; margin-top: 8px; color: var(--danger); }
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 8px; }.toast { min-width: 260px; max-width: 360px; padding: 12px 14px; border: 1px solid #cde8da; border-radius: 11px; background: white; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .22s ease; }.toast.error { border-color: #f1cbc7; }.toast strong { display: block; margin-bottom: 2px; }.toast span { color: var(--muted); }@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.widget-preview { position: fixed; right: 25px; bottom: 25px; width: 380px; height: 590px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; overflow: hidden; background: white; box-shadow: 0 25px 80px rgba(12,36,29,.28); z-index: 80; }.widget-preview-bar { height: 39px; padding: 0 8px 0 14px; display: flex; align-items: center; justify-content: space-between; background: var(--sidebar); color: #c6d9d1; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }.widget-preview-bar .icon-button { width: 27px; height: 27px; color: white; background: transparent; border: 0; }.widget-preview iframe { width: 100%; height: calc(100% - 39px); border: 0; }

.intelligence-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: -2px 0 18px; }.signal-card { display: flex; align-items: center; gap: 13px; padding: 15px 17px; }.signal-card .signal-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--forest); background: var(--mint-light); font-weight: 800; }.signal-card span:nth-child(2) { display: grid; gap: 3px; }.signal-card strong { font-size: 16px; }.signal-card small { color: var(--muted); font-size: 9px; }.signal-card.alert .signal-icon { color: #9a574f; background: #fceae7; }
.badge.negative, .badge.urgent, .badge.failed { color: #9a473f; background: #fce9e7; }.badge.positive, .badge.passed { color: #256548; background: #e4f6ec; }.badge.high { color: #8c631e; background: #fff3d5; }.lead-score { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; }.lead-score i { width: 24px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) var(--score), #e8ece8 var(--score)); }
.conversation-signals { padding: 9px 18px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #f8faf7; }.conversation-signals .summary { margin-left: auto; max-width: 48%; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.knowledge-performance { display: flex; gap: 10px; margin-top: 9px; color: var(--subtle); font-size: 8px; }.knowledge-performance b { color: var(--forest-2); }
.quality-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 18px; }.quality-stack { display: grid; gap: 18px; align-content: start; }.gap-list,.task-list,.evaluation-list { display: grid; padding: 0 20px 18px; }.gap-row,.task-row,.evaluation-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }.gap-row h4,.task-row h4,.evaluation-row h4 { margin: 0 0 4px; font-size: 10px; }.gap-row p,.task-row p,.evaluation-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }.gap-row aside,.task-row aside,.evaluation-row aside { display: flex; align-items: center; gap: 6px; }.occurrence { min-width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--forest); background: var(--mint-light); font-size: 10px; font-weight: 800; }.quality-score { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 7px auto; color: var(--forest); background: conic-gradient(var(--mint) var(--score), #edf0ec 0); position: relative; }.quality-score::before { content:""; position:absolute; inset:8px; border-radius:50%; background:white; }.quality-score strong { position:relative; font-size:17px; }.funnel { display:flex; align-items:end; gap:6px; height:100px; padding:0 20px 18px; }.funnel-step { flex:1; min-width:42px; display:grid; align-content:end; gap:5px; height:100%; text-align:center; }.funnel-step i { display:block; min-height:5px; height:var(--height); border-radius:6px 6px 2px 2px; background:linear-gradient(180deg,var(--mint),#65b98e); }.funnel-step b { font-size:10px; }.funnel-step span { color:var(--subtle); font-size:7px; text-transform:capitalize; }
.conversation-summary { padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fff; }.conversation-summary strong { display: block; margin-bottom: 3px; color: var(--forest); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.conversation-summary p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }.conversation-summary small { display: block; margin-top: 5px; color: var(--forest-2); font-size: 8px; }.conversation-item .lead-score { display: block; margin-top: 7px; color: var(--forest-2); text-align: right; }.conversation-item .badge { margin-left: 5px; }
.contact-score { margin-top: 14px; display: grid; gap: 6px; }.contact-score span { color: var(--muted); font-size: 9px; }.contact-score b { color: var(--forest); font-size: 13px; }.contact-score i { display: block; height: 5px; border-radius: 9px; background: linear-gradient(90deg, var(--mint) var(--score), #edf0ec var(--score)); }
.calendar-event.cancelled { border-left-color: var(--subtle); background: #f0f2ef; opacity: .62; text-decoration: line-through; }.knowledge-card a { display: inline-block; margin-top: 8px; color: var(--forest-2); font-size: 8px; font-weight: 700; }
.evaluation-row { grid-template-columns: 34px 1fr; }.evaluation-row .quality-score { width: 28px; height: 28px; margin: 0; background: var(--mint-light); font-size: 12px; font-weight: 900; }.evaluation-row .quality-score::before { display: none; }.evaluation-row .quality-score.failed { color: var(--danger); background: #fce9e7; }.evaluation-row .quality-score.unrun { color: var(--subtle); background: #edf0ec; }.evaluation-row small { display: block; margin-top: 4px; color: var(--subtle); font-size: 8px; }.evaluation-row .failure-detail { color: var(--danger); }.evaluation-form { margin: 0 20px 20px; padding: 16px; border-radius: 12px; background: #f7f9f6; }.evaluation-form h4 { margin: 0 0 12px; font-size: 11px; }.task-row.completed { opacity: .6; }.task-row.completed h4 { text-decoration: line-through; }
.settings-section-title { margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; }.hours-editor { display: grid; gap: 7px; }.hours-row { display: grid; grid-template-columns: minmax(120px,1fr) 100px auto 100px; gap: 8px; align-items: center; }.hours-row > span { color: var(--subtle); font-size: 9px; }.check-label { display: flex; align-items: center; gap: 8px; }.check-label input, .check-card input { width: auto; }.check-label span { color: var(--ink); font-size: 10px; font-weight: 700; }.check-card { grid-template-columns: auto 1fr; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }.check-card span { display: grid; gap: 3px; }.check-card b { color: var(--ink); font-size: 9px; }.check-card small { color: var(--subtle); font-size: 8px; line-height: 1.4; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }.dashboard-grid { grid-template-columns: 1fr; }.contact-grid { grid-template-columns: 1fr 1fr; }.settings-grid { grid-template-columns: 1fr; }.quality-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }.sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 248px; transition: transform .2s ease; box-shadow: 20px 0 50px rgba(7,28,21,.2); }.sidebar.open { transform: translateX(0); }.topbar { height: 80px; padding: 16px; }.mobile-menu { display: grid; }.top-actions .system-status, .top-actions .ghost { display: none; }.content { padding: 20px 15px 40px; }.page-identity p { display: none; }.page-identity h1 { font-size: 19px; }.hero-row { align-items: start; }.hero-row h2 { font-size: 24px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { padding: 15px; min-height: 120px; }.metric-card strong { font-size: 25px; }.inbox-layout { grid-template-columns: 1fr; height: auto; }.conversation-list { max-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }.conversation-view { min-height: 520px; }.contact-grid { grid-template-columns: 1fr; }.knowledge-grid, .voice-grid { grid-template-columns: 1fr; }.phone-simulator { min-height: 500px; }.widget-preview { right: 10px; bottom: 10px; width: calc(100% - 20px); height: min(680px, calc(100vh - 20px)); }.form-grid.two { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }
}
@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }.top-actions .button.primary { padding: 9px; font-size: 0; }.top-actions .button.primary span { font-size: 17px; }.toolbar { align-items: stretch; flex-direction: column; }.search-box { min-width: 0; }.hero-row { display: block; }.hero-row .segmented { margin-top: 13px; }.bubble { max-width: 86%; }
}
@media (max-width: 780px) { .intelligence-strip { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .hours-row { grid-template-columns: 1fr 1fr; }.hours-row > span { display: none; } }

/* Public demo banner offsets must win over the base sticky layout above. */
body { padding-top: 38px; }
.sidebar { top: 38px; height: calc(100vh - 38px); }
.topbar { top: 38px; }
@media (max-width: 780px) { .sidebar { top: 38px; height: calc(100vh - 38px); } }
.embedded-demo .public-demo-banner { display: none; }
.embedded-demo body { padding-top: 0; }
.embedded-demo .sidebar { top: 0; height: 100vh; }
.embedded-demo .topbar { top: 0; }
@media (max-width: 780px) { .embedded-demo .sidebar { top: 0; height: 100vh; } }

/* Cross-screen alignment polish */
.button { min-height: 40px; line-height: 1.15; text-align: center; white-space: nowrap; }
.button.small { min-height: 32px; }
.top-actions .button { height: 40px; }
.hero-row > div,.panel-head > div,.conversation-head > div,.integration > span { min-width: 0; }
.panel-head h3,.panel-head p,.conversation-head h3,.conversation-head p { overflow-wrap: anywhere; }
.segmented { flex-shrink: 0; }
.form-grid input,.form-grid textarea,.form-grid select { line-height: 1.4; }
.calendar-event { width: 100%; }
.conversation-signals .category { padding: 4px 7px; border: 1px solid #dce8e1; border-radius: 999px; color: var(--forest-2); background: #f1f8f4; font-size: 8px; font-weight: 750; line-height: 1; }
@media (max-width: 780px) {
  .topbar { gap: 12px; }
  .page-identity { min-width: 0; }
  .top-actions { gap: 6px; }
  .content { padding: 20px 15px 44px; }
  .hero-row { gap: 14px; }
  .panel-head { align-items: flex-start; }
  .conversation-head { flex-wrap: wrap; align-items: flex-start; }
  .conversation-head .meta { margin-left: 44px; flex-wrap: wrap; }
  .reply-box { grid-template-columns: minmax(0,1fr); }
  .reply-box .button { width: 100%; }
  .calendar-toolbar { flex-wrap: wrap; gap: 10px; }
  .calendar-toolbar h2 { min-width: 100%; }
  .calendar-toolbar div { width: 100%; justify-content: space-between; }
  .integration { grid-template-columns: 37px minmax(0,1fr) auto; }
  .status-line b { max-width: 58%; text-align: right; overflow-wrap: anywhere; }
  .call-input { grid-template-columns: minmax(0,1fr) auto; }
}
@media (max-width: 480px) {
  .topbar { padding: 14px 15px; }
  .top-actions .button.primary { width: 42px; height: 42px; min-height: 42px; padding: 0; }
  .hero-row { margin-bottom: 18px; }
  .hero-row p { line-height: 1.5; }
  .panel-head { padding: 17px 16px 14px; }
  .panel-pad,.settings-card { padding: 18px 16px; }
  .conversation-head { padding: 13px 15px; }
  .conversation-head .meta { width: 100%; margin-left: 0; }
  .message-stream { padding: 18px 14px; }
  .reply-box { padding: 12px; }
  .calendar-toolbar { padding: 15px; }
  .knowledge-list,.gap-list,.task-list,.evaluation-list { padding-inline: 16px; }
  .evaluation-form { margin-inline: 16px; }
  .phone-simulator { padding: 24px 16px; }
  .call-input { grid-template-columns: minmax(0,1fr); }
  .call-input .button { width: 100%; }
  .integration { gap: 9px; }
  .integration .badge { font-size: 8px; }
}

/* Compact circular country flags for workspace language selection. */
.demo-language-picker.language-flags { display: flex; align-items: center; gap: 5px; }.language-flags button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(21,80,53,.16); border-radius: 50%; background: #fff; cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }.language-flags button:hover { transform: translateY(-1px); border-color: rgba(21,132,78,.55); }.language-flags button:focus-visible { outline: 3px solid rgba(27,154,92,.2); outline-offset: 2px; }.language-flags button[aria-pressed="true"] { border-color: #178b54; box-shadow: 0 0 0 2px rgba(23,139,84,.14); }.flag-icon { display: block; width: 22px; height: 22px; overflow: hidden; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }.flag-icon svg { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .demo-language-picker.language-flags { gap: 3px; }.language-flags button { width: 27px; height: 27px; }.flag-icon { width: 19px; height: 19px; } }
@media (max-width: 430px) { .demo-language-picker.language-flags { gap: 2px; }.language-flags button { width: 24px; height: 24px; }.flag-icon { width: 17px; height: 17px; } }
