:root { color-scheme: light; --black:#111; --ink:#1d1d1f; --muted:#707070; --line:#dedede; --paper:#fff; --wash:#f4f4f2; --green:#18794e; }
* { box-sizing:border-box; }
body { margin:0; font-family:Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:var(--ink); background:var(--wash); letter-spacing:0; }
button, input { font:inherit; }
button, .button { cursor:pointer; }
.hidden { display:none !important; }
.login-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:#ececea; }
.login-panel { width:min(400px,100%); background:var(--paper); border:1px solid var(--line); padding:34px; border-radius:6px; box-shadow:0 20px 55px rgba(0,0,0,.08); }
.brand-mark { width:52px; height:52px; display:grid; place-items:center; background:var(--black); color:#fff; font-weight:800; font-size:18px; border-radius:3px; }
.brand-mark.small { width:38px; height:38px; font-size:14px; }
.eyebrow { margin:20px 0 7px; font-size:11px; font-weight:750; color:var(--muted); }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:8px; font-size:30px; }
h2 { margin:0; font-size:24px; }
h3 { margin-bottom:5px; font-size:18px; }
.muted, .section-head p, .integration-row p, .test-copy p { color:var(--muted); line-height:1.55; }
label { display:grid; gap:7px; margin:25px 0 14px; font-size:13px; font-weight:650; }
input { width:100%; min-width:0; height:42px; border:1px solid #c9c9c9; border-radius:4px; padding:0 12px; background:#fff; }
input:focus { outline:2px solid #111; outline-offset:1px; }
.primary, .button.primary { display:inline-flex; align-items:center; justify-content:center; min-height:42px; border:1px solid var(--black); border-radius:4px; padding:0 16px; background:var(--black); color:#fff; text-decoration:none; font-weight:700; }
.login-panel .primary { width:100%; }
.compact { min-height:34px; padding:0 12px; font-size:13px; }
.quiet { min-height:36px; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:4px; padding:0 12px; }
.form-error { min-height:18px; margin:12px 0 0; color:#b42318; font-size:13px; }
.app { min-width:0; min-height:100vh; display:grid; grid-template-columns:230px minmax(0,1fr); }
.sidebar { min-width:0; position:sticky; top:0; height:100vh; background:#171717; color:#fff; padding:22px 14px; display:flex; flex-direction:column; }
.brand-row { display:flex; gap:11px; align-items:center; padding:0 7px 26px; }
.brand-row strong,.brand-row span { display:block; }
.brand-row strong { font-size:14px; }.brand-row span { margin-top:2px; font-size:11px; color:#999; }
nav { display:grid; gap:3px; }
.nav-item { height:40px; padding:0 11px; border:0; border-radius:4px; background:transparent; color:#aaa; text-align:left; font-weight:600; }
.nav-item:hover,.nav-item.active { color:#fff; background:#2a2a2a; }
.logout { margin-top:auto; color:#aaa; border-color:#383838; background:transparent; }
main { min-width:0; padding:0 32px 48px; }
.topbar { min-height:92px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); margin-bottom:28px; }
.topbar .eyebrow { margin:0 0 5px; }
.live-pill { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; }
.live-pill span { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(24,121,78,.12); }
.view { max-width:1180px; margin:0 auto; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:30px; }
.metrics article { min-height:116px; padding:20px; background:#fff; border:1px solid var(--line); border-radius:6px; }
.metrics span,.metrics strong { display:block; }.metrics span { color:var(--muted); font-size:13px; }.metrics strong { margin-top:15px; font-size:32px; }
.section-head { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:14px; }
.section-head p { margin:0; font-size:13px; }.section-head.spaced { margin-top:38px; }
.table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); border-radius:6px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th,td { padding:14px 16px; border-bottom:1px solid #ededed; text-align:left; white-space:nowrap; }
th { color:var(--muted); font-size:11px; text-transform:uppercase; }tbody tr:last-child td { border-bottom:0; }
.badge { display:inline-flex; padding:4px 7px; background:#edf7f1; color:var(--green); border-radius:3px; font-size:11px; font-weight:700; }
.empty { padding:28px !important; color:var(--muted); text-align:center; }
.split-layout { height:calc(100vh - 145px); min-height:550px; display:grid; grid-template-columns:340px minmax(0,1fr); background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.conversation-list { overflow:auto; border-right:1px solid var(--line); }
.conversation-item { width:100%; padding:16px; border:0; border-bottom:1px solid #ededed; background:#fff; text-align:left; }
.conversation-item:hover,.conversation-item.active { background:#f4f4f2; }
.conversation-item strong,.conversation-item span { display:block; }.conversation-item span { margin-top:6px; color:var(--muted); font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.chat-panel { min-width:0; display:grid; grid-template-rows:58px 1fr; }.chat-head { padding:19px; border-bottom:1px solid var(--line); font-weight:700; }
.messages { padding:18px; overflow:auto; display:flex; flex-direction:column; gap:10px; }
.message { max-width:78%; padding:10px 12px; border-radius:5px; background:#ededed; line-height:1.45; font-size:13px; white-space:pre-wrap; }
.message.out { align-self:flex-end; color:#fff; background:#171717; }
.service-list,.hours-list { display:grid; gap:8px; }
.service-row { display:grid; grid-template-columns:34px minmax(180px,1fr) 130px 130px 120px; gap:10px; align-items:end; padding:14px; background:#fff; border:1px solid var(--line); border-radius:5px; }
.service-row label,.hours-row label { margin:0; color:var(--muted); font-size:11px; }.service-row input[type=checkbox] { width:18px; height:18px; margin:11px 0; }
.hours-row { display:grid; grid-template-columns:120px 70px 1fr 1fr; gap:12px; align-items:center; padding:12px 14px; background:#fff; border-bottom:1px solid #ededed; }
.hours-row:first-child { border-radius:5px 5px 0 0; }.hours-row:last-child { border:0; border-radius:0 0 5px 5px; }
.hours-list { gap:0; border:1px solid var(--line); border-radius:5px; }
.hours-row input[type=checkbox] { width:18px; height:18px; }
.integration-row { display:flex; align-items:center; justify-content:space-between; gap:25px; padding:22px 0; border-bottom:1px solid var(--line); }
.integration-row p { margin:5px 0 0; font-size:13px; }.integration-action { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.status { padding:6px 9px; background:#e9e9e7; border-radius:3px; color:var(--muted); font-size:11px; font-weight:750; }.status.connected { color:var(--green); background:#edf7f1; }
.notice { margin-top:28px; padding:18px; border-left:3px solid #111; background:#fff; }.notice code { display:block; margin:12px 0; overflow-wrap:anywhere; }.notice p { margin:0; color:var(--muted); font-size:13px; }
.test-layout { display:grid; grid-template-columns:minmax(240px,360px) minmax(350px,520px); gap:8vw; justify-content:center; align-items:start; }.test-copy { padding-top:40px; }.test-copy h3 { font-size:26px; }.test-copy .eyebrow { margin-top:0; }
.phone { height:650px; display:grid; grid-template-rows:62px 1fr 66px; overflow:hidden; background:#fff; border:1px solid #c8c8c8; border-radius:8px; box-shadow:0 20px 55px rgba(0,0,0,.09); }
.phone-head { display:flex; flex-direction:column; justify-content:center; padding:0 18px; border-bottom:1px solid var(--line); }.phone-head span { color:var(--muted); font-size:11px; margin-top:2px; }
.composer { display:grid; grid-template-columns:1fr auto; gap:8px; padding:11px; border-top:1px solid var(--line); }.composer input,.composer button { height:42px; }
.toast { position:fixed; right:20px; bottom:20px; transform:translateY(20px); opacity:0; pointer-events:none; padding:11px 14px; color:#fff; background:#171717; border-radius:4px; font-size:13px; transition:.2s ease; }.toast.show { opacity:1; transform:translateY(0); }
@media (max-width:760px) { body { overflow-x:hidden; }.app { width:100%; grid-template-columns:minmax(0,1fr); }.sidebar { position:static; width:100%; height:auto; padding:12px; }.brand-row { padding:0 4px 12px; }nav { width:100%; max-width:100%; display:flex; overflow-x:auto; overflow-y:hidden; }.nav-item { flex:0 0 auto; min-width:max-content; }.logout { position:absolute; top:14px; right:12px; }.sidebar .logout { margin-top:0; }main { width:100%; padding:0 14px 32px; }.topbar { min-height:76px; margin-bottom:18px; }.metrics { grid-template-columns:1fr; }.metrics article { min-height:85px; }.metrics strong { margin-top:8px; }.split-layout { grid-template-columns:minmax(0,1fr); height:auto; }.conversation-list { max-height:230px; border-right:0; border-bottom:1px solid var(--line); }.chat-panel { min-height:480px; }.service-row { grid-template-columns:28px minmax(0,1fr) minmax(0,1fr); }.service-row label:nth-of-type(4),.service-row label:nth-of-type(5) { grid-column:span 1; }.hours-row { grid-template-columns:90px 35px minmax(0,1fr) minmax(0,1fr); }.integration-row { align-items:flex-start; flex-direction:column; }.integration-action { justify-content:flex-start; }.test-layout { grid-template-columns:minmax(0,1fr); gap:20px; }.test-copy { padding-top:0; }.phone { width:100%; height:600px; }.live-pill { display:none; } }
