:root {
  --ink: #123a34;
  --ink-soft: #55726c;
  --paper: #edf5f2;
  --white: #ffffff;
  --night: #0d2d29;
  --night-2: #123a34;
  --signal: #0d7b5d;
  --mint: #1aa079;
  --line: #d8e5e0;
  --amber: #f2b84b;
  --blue: #357ca0;
  --shadow: 0 18px 60px rgba(13, 45, 41, .12);
  --viewport-height: 100vh;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

@supports (height: 100dvh) {
  :root { --viewport-height: 100dvh; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: var(--viewport-height); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; color: #89949b; font: 700 10px/1.2 "Arial Narrow", sans-serif; letter-spacing: .18em; text-transform: uppercase; }

.login-screen { min-height: var(--viewport-height); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); background: var(--night); }
.login-brand { position: relative; overflow: hidden; padding: 56px clamp(40px, 7vw, 120px); color: #eaf1ee; display: flex; flex-direction: column; justify-content: center; }
.login-brand::before { content: ""; position: absolute; width: 720px; height: 720px; left: -270px; bottom: -430px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.login-brand > p:not(.login-brand__note) { margin: 22px 0 64px; font-weight: 700; letter-spacing: .06em; }
.login-brand h1 { position: relative; margin: 0; max-width: 700px; font: 800 clamp(48px, 6vw, 92px)/.94 "Arial Narrow", "Roboto Condensed", sans-serif; letter-spacing: -.045em; }
.login-brand h1::after { content: ""; display: block; width: 88px; height: 5px; margin-top: 34px; background: var(--signal); }
.login-brand__note { max-width: 420px; margin: 36px 0 0; color: #9fb1b6; font-size: 16px; line-height: 1.6; }
.brand-mark { display: flex; align-items: flex-end; gap: 5px; width: 34px; height: 28px; }
.brand-mark span { display: block; width: 7px; border-radius: 8px; background: var(--signal); }
.brand-mark span:nth-child(1) { height: 12px; }
.brand-mark span:nth-child(2) { height: 27px; }
.brand-mark span:nth-child(3) { height: 19px; }
.brand-mark--small { margin: 14px auto 34px; transform: scale(.78); }
.login-card { width: min(420px, calc(100% - 64px)); margin: auto; padding: 40px; border-radius: 4px; background: var(--white); box-shadow: var(--shadow); }
.login-card__top { display: flex; justify-content: space-between; margin-bottom: 64px; color: #859098; font: 700 10px/1 "Arial Narrow", sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(85,189,146,.14); }
.login-card h2 { margin: 0 0 8px; font: 800 34px/1 "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.login-card > p { margin: 0 0 30px; color: var(--ink-soft); }
.login-card label, .settings-form label { display: grid; gap: 8px; margin: 18px 0; color: #5e6b74; font-size: 12px; font-weight: 700; }
.login-card input, .settings-form input, .settings-form textarea, .settings-form select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; color: var(--ink); background: #fbfcfc; outline: none; transition: border .2s, box-shadow .2s; }
.login-card input:focus, .settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus, .composer textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(13,123,93,.12); }
.login-card button { width: 100%; margin-top: 8px; border: 0; border-radius: 8px; padding: 15px 18px; display: flex; justify-content: space-between; color: white; background: var(--signal); font-weight: 800; transition: transform .2s, filter .2s; }
.login-card button:hover { filter: brightness(.96); transform: translateY(-1px); }
.form-error { min-height: 20px; margin: 14px 0 0 !important; color: #b9362b !important; font-size: 13px; }

.desk { min-height: var(--viewport-height); display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.rail { min-height: var(--viewport-height); padding: 10px 0 18px; display: flex; flex-direction: column; align-items: center; background: var(--night); }
.rail__button { width: 44px; height: 44px; margin: 4px 0; border: 0; border-radius: 10px; display: grid; place-items: center; color: #81949d; background: transparent; transition: .2s; }
.rail__button:hover, .rail__button.is-active { color: white; background: var(--night-2); }
.rail__button.is-active::before { content: ""; position: absolute; left: 0; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: var(--signal); }
.rail__button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-button { position: relative; }
.notification-button__dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid var(--night); border-radius: 50%; background: #778c92; }
.notification-button.is-partial .notification-button__dot { background: #e0ae54; }
.notification-button.is-enabled { color: white; background: rgba(26,160,121,.18); }
.notification-button.is-enabled .notification-button__dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(26,160,121,.16); }
.rail__spacer { flex: 1; }
.connection-pill { width: 44px; display: grid; place-items: center; padding: 10px; }
.connection-pill span { width: 8px; height: 8px; border-radius: 50%; background: #e0ae54; box-shadow: 0 0 0 4px rgba(224,174,84,.12); }
.connection-pill.is-online span { background: var(--mint); box-shadow: 0 0 0 4px rgba(85,189,146,.12); }
.rail-user { width: 30px; height: 30px; margin-bottom: 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: #d9ebe5; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; }

.inbox { min-height: var(--viewport-height); display: grid; grid-template-columns: 310px minmax(420px, 1fr) 300px; overflow: hidden; }
.conversation-pane, .visitor-pane { height: var(--viewport-height); background: var(--white); overflow: hidden; }
.conversation-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.pane-heading { padding: 30px 24px 19px; }
.pane-heading > div { display: flex; align-items: center; gap: 10px; }
.pane-heading h1, .settings-header h1 { margin: 0; font: 800 29px/1 "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.count-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--signal); font-size: 11px; font-weight: 800; }
.tabs { padding: 0 16px 16px; display: flex; gap: 5px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 9px 5px; border: 0; border-radius: 8px; color: #758188; background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tabs button span { margin-left: 3px; color: #9aa3a8; }
.tabs button.is-active { color: var(--ink); background: #edf1ef; }
.conversation-list { flex: 1; overflow-y: auto; }
.conversation-item { width: 100%; min-height: 92px; padding: 17px 18px; border: 0; border-bottom: 1px solid #edf0ef; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; text-align: left; background: white; transition: background .15s; }
.conversation-item:hover, .conversation-item.is-active { background: #f4f7f5; }
.conversation-item.is-active { box-shadow: inset 3px 0 var(--signal); }
.avatar { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #3f5a61; background: #dbe9e5; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.avatar--visitor { width: 40px; height: 40px; }
.avatar--large { width: 68px; height: 68px; margin: auto; color: white; background: var(--night-2); font-size: 20px; }
.conversation-copy { min-width: 0; }
.conversation-copy strong { display: block; overflow: hidden; color: #26343c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy p { margin: 8px 0 0; overflow: hidden; color: #7c878e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; color: #98a1a6; font-size: 10px; }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; color: white; background: var(--signal); font-size: 10px; font-weight: 800; }
.online-ring { position: relative; }
.online-ring::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #9ca7a8; }
.online-ring.is-online::after { background: var(--mint); }
.list-state { padding: 40px 24px; color: #8a959a; text-align: center; font-size: 13px; line-height: 1.55; }

.chat-pane { height: var(--viewport-height); position: relative; min-width: 0; background: #f7f8f7; }
.empty-chat { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #879198; text-align: center; }
.empty-chat h2 { margin: 24px 0 8px; color: #44525a; font: 800 25px/1 "Arial Narrow", sans-serif; }
.empty-chat p { max-width: 300px; margin: 0; font-size: 13px; line-height: 1.5; }
.empty-chat__signal { height: 58px; display: flex; align-items: center; gap: 7px; }
.empty-chat__signal i { width: 7px; border-radius: 8px; background: #c7d3d1; animation: signal 1.6s ease-in-out infinite; }
.empty-chat__signal i:nth-child(1) { height: 20px; }
.empty-chat__signal i:nth-child(2) { height: 48px; animation-delay: .12s; background: var(--signal); }
.empty-chat__signal i:nth-child(3) { height: 32px; animation-delay: .24s; }
.empty-chat__signal i:nth-child(4) { height: 15px; animation-delay: .36s; }
@keyframes signal { 50% { transform: scaleY(.7); opacity: .65; } }
.chat-shell { height: 100%; display: grid; grid-template-rows: 78px minmax(0, 1fr) auto; }
.chat-header { padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.chat-header h2 { margin: 0 0 4px; font-size: 14px; }
.chat-header p { margin: 0; color: #879197; font-size: 11px; }
.presence-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #9aa4a6; }
.presence-dot.is-online { background: var(--mint); }
.chat-actions { margin-left: auto; display: flex; gap: 8px; }
.button-secondary { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: #647078; background: white; font-size: 11px; font-weight: 700; }
.button-secondary:hover { color: var(--ink); border-color: #c8d0ce; }
.back-button { display: none; border: 0; color: var(--ink); background: none; font-size: 20px; }
.messages { position: relative; overflow-y: auto; padding: 28px clamp(22px, 5vw, 64px); }
.messages::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(31px, calc(5vw + 9px), 73px); width: 1px; background: linear-gradient(transparent, #dde4e1 8%, #dde4e1 92%, transparent); }
.message { position: relative; max-width: min(620px, 78%); margin: 0 0 17px 20px; padding: 13px 16px 9px; border-radius: 4px 14px 14px 14px; background: white; box-shadow: 0 5px 18px rgba(27,45,54,.06); }
.message::before { content: ""; position: absolute; left: -24px; top: 16px; width: 7px; height: 7px; border: 3px solid #f7f8f7; border-radius: 50%; background: #a8b3b2; box-shadow: 0 0 0 1px #d7dfdc; }
.message--operator { margin-left: auto; border-radius: 14px 4px 14px 14px; color: white; background: var(--night-2); }
.message--operator::before { display: none; }
.message__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.message__meta { margin-top: 6px; display: flex; justify-content: flex-end; gap: 5px; color: #9aa4a8; font-size: 9px; }
.message--operator .message__meta { color: #9db0b7; }
.message--system { max-width: min(620px, 88%); padding-left: 44px; border: 1px dashed #bdd9ce; color: #315d50; background: #eef7f3; }
.message--system::before { content: "✓"; left: 13px; top: 14px; width: 22px; height: 22px; border: 0; display: grid; place-items: center; color: white; background: var(--mint); box-shadow: none; font-size: 11px; font-weight: 800; }
.message--system .message__meta { color: #72a18e; }
.day-divider { position: relative; z-index: 1; width: max-content; margin: 0 auto 25px; padding: 6px 10px; border: 1px solid #e2e7e5; border-radius: 12px; color: #8c969b; background: #f7f8f7; font-size: 10px; }
.composer { margin: 0 clamp(18px, 4vw, 48px) 24px; padding: 10px 10px 10px 17px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: flex-end; gap: 12px; background: white; box-shadow: 0 10px 34px rgba(30,45,53,.08); }
.composer textarea { flex: 1; max-height: 120px; padding: 8px 0; border: 0; outline: 0; resize: none; color: var(--ink); background: transparent; font-size: 13px; line-height: 1.45; }
.composer button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--signal); }
.composer button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.composer.is-disabled { opacity: .55; pointer-events: none; }

.visitor-pane { padding: 34px 26px; border-left: 1px solid var(--line); overflow-y: auto; }
.visitor-card { padding: 8px 0 32px; border-bottom: 1px solid var(--line); text-align: center; }
.visitor-card h2 { margin: 15px 0 5px; font-size: 15px; }
.visitor-card p { margin: 0; color: #8d989d; font: 10px/1 monospace; }
.detail-group { padding: 23px 0; border-bottom: 1px solid var(--line); }
.detail-group p:last-child { margin: 0; color: #68747b; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-group a { display: block; overflow: hidden; color: #3a6570; font-size: 11px; line-height: 1.5; text-overflow: ellipsis; text-decoration: none; }
.detail-grid { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.detail-grid span { display: block; margin-bottom: 5px; color: #96a0a4; font-size: 9px; }
.detail-grid strong { display: block; color: #526068; font-size: 10px; line-height: 1.4; }

.settings-view { min-height: var(--viewport-height); overflow-y: auto; padding: 42px clamp(24px, 4vw, 64px) 70px; }
.settings-header { max-width: 1180px; margin: auto; padding-bottom: 28px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; }
.settings-header p:last-child { max-width: 350px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.settings-layout { max-width: 1180px; margin: 28px auto 0; display: grid; grid-template-columns: minmax(420px, 1fr) 390px; gap: 32px; align-items: start; }
.settings-form { display: grid; gap: 18px; }
.settings-form__section { padding: 24px 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.settings-form__section h2 { margin: 0 0 22px; font: 800 19px/1 "Arial Narrow", sans-serif; }
.settings-form__grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.settings-form__grid h2 { grid-column: 1 / -1; }
.settings-form textarea { resize: vertical; line-height: 1.5; }
.settings-form input[type="color"] { height: 46px; padding: 5px; }
.settings-form input[type="range"] { padding: 0; accent-color: var(--signal); }
.settings-form output { float: right; color: #8b959a; font-weight: 500; }
.switch-row { grid-template-columns: 1fr auto !important; align-items: center; padding: 14px 0 0; border-top: 1px solid #edf0ef; }
.switch-row span { display: grid; gap: 4px; }
.switch-row small { color: #929ca1; font-weight: 400; }
.switch-row input { width: 42px; height: 23px; accent-color: var(--signal); }
.switch-row--compact { align-self: end; border: 0; }
.contact-settings fieldset { min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity .2s; }
.contact-settings fieldset.is-disabled { opacity: .45; }
.field-picker { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.field-picker > div { min-height: 45px; padding: 0 14px; display: grid; grid-template-columns: minmax(110px, 1fr) 90px 110px; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.field-picker > div:first-child { border-top: 0; }
.field-picker__head { min-height: 34px !important; color: #939da2; background: #f7f9f8; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.field-picker strong { color: #536168; font-size: 11px; }
.field-picker input[type="checkbox"] { justify-self: center; width: 18px; height: 18px; padding: 0; accent-color: var(--signal); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.contact-details .eyebrow, .contact-details .contact-state { grid-column: 1 / -1; }
.contact-details div span { display: block; margin-bottom: 4px; color: #96a0a4; font-size: 9px; }
.contact-details div strong { display: block; overflow-wrap: anywhere; color: #526068; font-size: 11px; }
.contact-details .contact-state { margin-top: 2px !important; color: var(--mint) !important; font-size: 9px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.save-button { justify-self: start; border: 0; border-radius: 9px; padding: 14px 20px; color: white; background: var(--signal); font-weight: 800; }
.save-status { min-height: 18px; margin: -8px 0 0; color: #388765; font-size: 12px; }
.preview-panel { position: sticky; top: 30px; padding: 24px; border-radius: 14px; color: white; background: var(--night); box-shadow: var(--shadow); }
.preview-panel .eyebrow { color: #80959d; }
.preview-panel iframe { width: 100%; height: 580px; border: 0; border-radius: 12px; background: #eef1ef; }
.embed-code { margin-top: 18px; display: grid; gap: 9px; }
.embed-code span { color: #8ea1a8; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.embed-code code { padding: 12px; border-radius: 8px; overflow-wrap: anywhere; color: #c8d8d5; background: rgba(255,255,255,.06); font-size: 10px; line-height: 1.5; }
.embed-code button { justify-self: start; border: 1px solid #3e535d; border-radius: 7px; padding: 8px 11px; color: #d8e2df; background: transparent; font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 340px; padding: 13px 16px; border-radius: 9px; color: white; background: var(--night-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; font-size: 12px; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.notification-dialog { width: min(430px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px rgba(6,30,26,.3); }
.notification-dialog::backdrop { background: rgba(5,28,25,.58); backdrop-filter: blur(3px); }
.notification-dialog__top { padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; color: var(--signal); font: 800 9px/1 "Arial Narrow", sans-serif; letter-spacing: .15em; }
.notification-dialog__top button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #79908a; background: #edf5f2; font-size: 21px; line-height: 1; }
.notification-dialog__signal { height: 82px; margin: 4px 20px 0; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; gap: 9px; background: var(--night); }
.notification-dialog__signal i { width: 11px; border-radius: 10px; background: var(--mint); }
.notification-dialog__signal i:nth-child(1) { height: 29px; }
.notification-dialog__signal i:nth-child(2) { height: 55px; }
.notification-dialog__signal i:nth-child(3) { height: 41px; }
.notification-dialog h2 { margin: 25px 26px 10px; font: 800 26px/1.05 "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.notification-dialog > p { margin: 0 26px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.notification-dialog__status { margin: 20px 26px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 9px; background: #f7faf9; }
.notification-dialog__status span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(26,160,121,.1); }
.notification-dialog__status strong { font-size: 11px; }
.notification-dialog__action { width: calc(100% - 52px); margin: 0 26px; padding: 14px 18px; border: 0; border-radius: 9px; color: white; background: var(--signal); font-size: 11px; font-weight: 800; }
.notification-dialog__action:disabled { opacity: .55; }
.notification-dialog > small { margin: 12px 26px 24px; display: block; color: #8da09b; font-size: 9px; line-height: 1.5; }
.faq-view { min-height: var(--viewport-height); overflow-y: auto; padding: 42px clamp(24px, 4vw, 64px) 70px; }
.faq-header { max-width: 1180px; margin: auto; padding-bottom: 28px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; }
.faq-header h1 { margin: 0; font: 800 29px/1 "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.faq-header > p { max-width: 430px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.faq-intro { position: relative; max-width: 1180px; min-height: 250px; margin: 28px auto 22px; padding: 42px clamp(28px, 5vw, 72px); overflow: hidden; border-radius: 15px; color: white; background: var(--night); }
.faq-intro::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -220px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 52px rgba(255,255,255,.035), 0 0 0 104px rgba(255,255,255,.022); }
.faq-intro span, .faq-number { color: var(--signal); font: 800 9px/1.2 "Arial Narrow", sans-serif; letter-spacing: .15em; }
.faq-intro h2 { margin: 22px 0 18px; font: 800 clamp(30px, 4vw, 48px)/.98 "Arial Narrow", sans-serif; letter-spacing: -.03em; }
.faq-intro p { max-width: 590px; margin: 0; color: #a9bbc0; font-size: 13px; line-height: 1.6; }
.faq-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-grid article { padding: 27px 29px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-grid article h2 { margin: 12px 0 16px; font: 800 20px/1.1 "Arial Narrow", sans-serif; }
.faq-grid article > p:not(.faq-number), .faq-grid li { color: #66737b; font-size: 12px; line-height: 1.65; }
.faq-grid article > p:last-child { margin-bottom: 0; }
.faq-grid code { padding: 2px 5px; border-radius: 4px; color: #315d50; background: #edf5f2; font: 11px/1.5 monospace; overflow-wrap: anywhere; }
.faq-grid pre { margin: 16px 0; padding: 15px; overflow-x: auto; border-radius: 8px; color: #c7d7d3; background: var(--night-2); }
.faq-grid pre code { padding: 0; color: inherit; background: none; }
.faq-grid ul, .faq-grid ol { margin: 0; padding-left: 20px; }
.faq-wide { grid-column: 1 / -1; }
.admin-view { min-height: var(--viewport-height); overflow-y: auto; padding: 42px clamp(24px, 4vw, 64px) 70px; }
.admin-header { max-width: 1180px; margin: auto; padding-bottom: 28px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; }
.admin-header h1 { margin: 0; font: 800 29px/1 "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.admin-header > p { max-width: 430px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.admin-layout { max-width: 1180px; margin: 28px auto 0; display: grid; grid-template-columns: minmax(310px, .72fr) minmax(440px, 1.28fr); gap: 22px; align-items: start; }
.admin-layout--sites { grid-template-columns: minmax(300px, .65fr) minmax(460px, 1.35fr); }
.admin-form { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 10px 34px rgba(13,45,41,.05); }
.admin-form--sticky { position: sticky; top: 28px; }
.admin-form__index { margin: 0 0 12px; color: var(--signal); font: 800 9px/1.2 "Arial Narrow", sans-serif; letter-spacing: .15em; }
.admin-form h2 { margin: 0 0 24px; font: 800 22px/1 "Arial Narrow", sans-serif; }
.admin-form label { display: grid; gap: 7px; margin: 17px 0; color: #526f69; font-size: 11px; font-weight: 700; }
.admin-form label small { color: #8aa09a; font-weight: 400; line-height: 1.45; }
.admin-form input, .admin-form select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fbfdfc; }
.admin-form input:focus, .admin-form select:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(13,123,93,.1); }
.admin-form select:disabled { color: #738780; background: #f1f5f3; cursor: not-allowed; }
.admin-form > button, .admin-form__buttons button { padding: 13px 16px; border: 0; border-radius: 8px; display: flex; justify-content: space-between; gap: 22px; color: white; background: var(--signal); font-size: 11px; font-weight: 800; }
.admin-form fieldset { margin: 22px 0; padding: 0; border: 0; }
.admin-form legend { margin-bottom: 10px; color: #526f69; font-size: 11px; font-weight: 800; }
.admin-form .switch-row input { width: 42px; height: 23px; padding: 0; }
.admin-form__buttons { display: flex; gap: 8px; }
.admin-form__buttons .button-quiet { color: #607b75; background: #edf5f2; }
.admin-form__status { min-height: 18px; margin: 13px 0 0; color: var(--signal); font-size: 11px; line-height: 1.45; }
.site-choices { display: grid; gap: 7px; }
.site-choice { margin: 0 !important; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; grid-template-columns: auto 1fr !important; align-items: center; background: #f8fbfa; }
.site-choice input { width: 17px; height: 17px; padding: 0; accent-color: var(--signal); }
.site-choice span { min-width: 0; display: grid; gap: 3px; }
.site-choice strong { color: var(--ink); font-size: 11px; }
.site-choice small { overflow: hidden; color: #8aa09a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-list { display: grid; gap: 14px; }
.admin-list-column { display: grid; gap: 14px; }
.admin-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-card.is-disabled { opacity: .58; }
.admin-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-card h3 { margin: 0; font: 800 17px/1.2 "Arial Narrow", sans-serif; }
.admin-card a, .operator-card__identity p { display: block; margin: 6px 0 0; overflow-wrap: anywhere; color: #6e8882; font-size: 10px; text-decoration: none; }
.admin-card__message { margin: 18px 0; color: #69827c; font-size: 11px; line-height: 1.5; }
.verification-badge, .role-badge { flex: none; padding: 6px 8px; border-radius: 20px; color: #657c77; background: #edf3f1; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.verification-badge--verified { color: #087153; background: #dff3eb; }
.verification-badge--missing { color: #8b5d0a; background: #fff1cf; }
.verification-badge--error { color: #39728d; background: #e3f0f6; }
.public-key { padding: 11px 13px; border-radius: 8px; display: grid; gap: 5px; background: #f1f7f5; }
.public-key span { color: #8ba09b; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.public-key code { overflow-wrap: anywhere; color: var(--ink); font-size: 10px; }
.admin-card__actions { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-action { padding: 9px 11px; border: 0; border-radius: 7px; color: white; background: var(--signal); font-size: 9px; font-weight: 800; }
.admin-action--secondary { border: 1px solid var(--line); color: #55736c; background: white; }
.admin-action--danger { border-color: #e7c5bb; color: #9a4635; background: #fffaf8; }
.admin-action--danger:hover { border-color: #c97762; color: #7d2e20; background: #fff1ec; }
.operator-card__identity { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.operator-card__identity > span:first-child { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--night-2); font-size: 13px; font-weight: 800; }
.operator-card--bot { border-color: #b8d9cf; background: linear-gradient(145deg, #fff 0%, #f4faf8 100%); }
.operator-card--bot .operator-card__identity > span:first-child { border-radius: 11px; color: #b8f0dd; background: #0d493d; font-size: 10px; letter-spacing: .08em; }
.role-badge--bot { color: #087153; background: #dff3eb; }
.bot-status { margin: -5px 0 17px; padding: 11px 12px; border-left: 3px solid #aacdc2; color: #617c75; background: rgba(237,247,244,.72); font-size: 10px; line-height: 1.55; }
.bot-status strong { display: block; color: #315f54; }
.bot-status code { overflow-wrap: anywhere; font-size: 9px; }
.bot-status--error { border-left-color: #c8826c; color: #805247; background: #fff4ef; }
.provider-mark { margin: 18px 0; padding: 13px; border: 1px solid #c8ddd7; border-radius: 9px; display: flex; align-items: center; gap: 11px; background: #f4faf8; }
.provider-mark > span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #c5f1e3; background: #0d493d; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.provider-mark p { margin: 0; display: grid; gap: 4px; }
.provider-mark strong { color: #284f46; font-size: 10px; }
.provider-mark small { color: #789089; font-size: 9px; }
.bot-setup { padding: 23px; border: 1px solid #78b8a5; border-radius: 14px; color: #dbeee8; background: #0e382f; box-shadow: 0 16px 40px rgba(8,45,37,.16); }
.bot-setup__heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.bot-setup__heading p { margin: 0 0 7px; color: #75d7ba; font: 800 8px/1 "Arial Narrow", sans-serif; letter-spacing: .15em; }
.bot-setup h2 { margin: 0; color: white; font: 800 20px/1 "Arial Narrow", sans-serif; }
.bot-setup__heading button { padding: 0; border: 0; color: #9bbdb3; background: transparent; font-size: 22px; }
.bot-setup > p { margin: 17px 0; color: #aec8c0; font-size: 10px; line-height: 1.6; }
.bot-setup label { margin-top: 12px; display: grid; gap: 6px; color: #88aca1; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bot-setup label div { padding: 10px 11px; border: 1px solid #315b50; border-radius: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; background: #092a23; }
.bot-setup code { overflow-wrap: anywhere; color: #d6eee7; font-size: 9px; text-transform: none; letter-spacing: 0; }
.bot-setup label button { padding: 7px 9px; border: 0; border-radius: 6px; color: #153d33; background: #8bd8c0; font-size: 8px; font-weight: 900; }
.bot-setup__warning { margin-top: 15px; padding: 10px 12px; border-radius: 7px; color: #ffe6ae; background: rgba(151,106,28,.28); font-size: 9px; }
.operator-sites { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.operator-sites span { padding: 6px 8px; border-radius: 6px; color: #4f746b; background: #edf5f2; font-size: 9px; font-weight: 700; }
.admin-empty { margin: 0; padding: 36px; border: 1px dashed #cbdcd6; border-radius: 14px; color: #7d958f; text-align: center; font-size: 12px; }

@media (max-width: 1120px) {
  .inbox { grid-template-columns: 285px minmax(400px, 1fr); }
  .visitor-pane { display: none; }
}
@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .desk { grid-template-columns: 56px minmax(0, 1fr); }
  .inbox { grid-template-columns: 1fr; }
  .conversation-pane { width: 100%; }
  .chat-pane { display: none; position: fixed; inset: 0 0 0 56px; z-index: 10; }
  .inbox.has-selection .conversation-pane { display: none; }
  .inbox.has-selection .chat-pane { display: block; }
  .back-button { display: block; }
  .settings-layout { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .admin-layout, .admin-layout--sites { grid-template-columns: 1fr; }
  .admin-form--sticky { position: static; }
  .faq-wide { grid-column: 1; }
  .preview-panel { position: static; }
  input, textarea, select { font-size: 16px; touch-action: manipulation; }
}
@media (max-width: 560px) {
  .login-card { width: calc(100% - 32px); padding: 30px 24px; }
  .settings-view { padding: 28px 16px 50px; }
  .faq-view { padding: 28px 16px 50px; }
  .admin-view { padding: 28px 16px 50px; }
  .admin-header { display: block; }
  .admin-header > p { margin-top: 12px; }
  .faq-header { display: block; }
  .faq-header > p { margin-top: 12px; }
  .faq-intro { padding: 32px 24px; }
  .faq-grid article { padding: 23px 20px; }
  .settings-header { display: block; }
  .settings-header p:last-child { margin-top: 12px; }
  .settings-layout { display: block; }
  .preview-panel { margin-top: 20px; }
  .settings-form__section { padding: 21px 18px; }
  .settings-form__grid { grid-template-columns: 1fr; }
  .settings-form__grid h2 { grid-column: 1; }
  .chat-header { padding: 0 14px; }
  .button-secondary { font-size: 0; }
  .button-secondary::after { content: "✓"; font-size: 13px; }
  .message { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
