@import url('./brand.css');
/* NEOM Support — shared layout primitives. Staff v3 loads staff-premium.css independently. */
:root {
  --forest:#103c2f; --forest-soft:#e8f1eb;
  --green:#087f5b; --green-bright:#12b886; --green-wash:#e9f5ee;
  --ink:#202b26; --muted:#626e67; --line:#e4e9e4;
  --surface:#fff; --canvas:#f7f8f6; --yellow:#fff8e8; --red:#ae323b;
  --radius:12px; --shadow:0 8px 32px #172a2110;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); font-size:14px; line-height:1.55; font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--canvas); }
button,input,textarea,select { font:inherit; }
button,a,select { touch-action:manipulation; }
button { cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 13px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font-weight:550; transition:background .16s,border-color .16s,box-shadow .16s; }
button:hover { background:#f3f6f1; border-color:#cad6cd; }
button:active { background:#e8f1e9; }
button:disabled { opacity:.48; cursor:not-allowed; }
button.primary { background:var(--green); color:white; border-color:var(--green); }
button.primary:hover { background:#076d4f; }
button.ghost { background:transparent; border-color:transparent; }
input,textarea,select { width:100%; min-height:44px; padding:10px 12px; background:white; color:var(--ink); border:1px solid #dce3dc; border-radius:8px; }
input::placeholder,textarea::placeholder { color:#89938c; }
textarea { resize:vertical; line-height:1.65; }
label { display:block; font-size:12px; font-weight:600; margin-bottom:7px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:25px; font-weight:650; letter-spacing:-.8px; line-height:1.3; }
h2 { font-size:19px; font-weight:600; letter-spacing:-.45px; }
h3 { font-size:15px; font-weight:600; }
a { color:var(--green); text-decoration:none; }
a:hover { text-decoration:underline; }
small,.muted { color:var(--muted); }
:focus-visible { outline:3px solid #80c5a2; outline-offset:3px; }
.icon { width:19px; height:19px; flex-shrink:0; vertical-align:middle; }
.sr-only { position:absolute; width:1px; height:1px; clip:rect(0,0,0,0); overflow:hidden; }
.skip { position:fixed; top:-90px; left:16px; z-index:300; background:#fff; border-radius:7px; padding:12px; }
.skip:focus { top:8px; }
.brand-mark { width:33px; height:33px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; background:#12b886; flex-shrink:0; padding:4px; }
.boot { display:grid; place-content:center; height:100dvh; text-align:center; gap:16px; }
.boot .brand-mark { margin:auto; }
#toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); max-width:min(92vw,530px); z-index:300; pointer-events:none; border-radius:11px; background:#193d2c; color:white; box-shadow:0 8px 32px #18342425; font-size:13px; }
#toast:not(:empty) { padding:12px 20px; }
#toast.error { background:#8b2932; }

/* One continuous workspace; the conversation owns the available height. */
.app-layout { height:100dvh; overflow:hidden; display:grid; grid-template-columns:218px minmax(0,1fr); }
.sidebar { min-height:0; display:flex; flex-direction:column; gap:24px; padding:26px 14px 16px; background:#f4f6f2; border-right:1px solid var(--line); overflow:auto; }
.brand { display:flex; align-items:center; gap:10px; padding:0 7px; color:#1c3025; font-size:17px; font-weight:650; letter-spacing:-.55px; white-space:nowrap; }
.brand:hover { text-decoration:none; }
.brand small { display:block; font-size:9px; letter-spacing:1.9px; text-transform:uppercase; color:var(--muted); margin-top:1px; font-weight:500; }
.tenant-block { padding:12px; background:white; border:1px solid var(--line); border-radius:11px; box-shadow:0 2px 3px #1b302104; }
.tenant-block label { text-transform:uppercase; letter-spacing:1.1px; color:var(--muted); font-size:10px; margin-bottom:7px; }
.tenant-block select { font-size:13px; font-weight:600; padding:8px 28px 8px 9px; min-height:39px; border:1px solid #e4e9e2; background:#fcfdfa; }
.tenant-foot { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--muted); margin-top:9px; }
.tenant-foot .icon { width:13px; height:13px; }
.nav-heading { padding:0 12px; margin:2px 0 10px; font-size:10px; font-weight:550; letter-spacing:1.5px; color:var(--muted); text-transform:uppercase; }
.nav-items { display:flex; flex-direction:column; gap:5px; }
.nav-items button { width:100%; padding:11px 12px; min-height:44px; justify-content:flex-start; border-color:transparent; background:transparent; color:#69776b; font-size:13px; border-radius:8px; }
.nav-items button .icon { width:18px; height:18px; }
.nav-items button:hover { background:#eaf0e7; color:#293d2d; }
.nav-items button.active { background:#e0eee2; color:#145b3d; font-weight:650; }
.count { margin-left:auto; padding:0 6px; min-width:22px; height:21px; display:inline-flex; align-items:center; justify-content:center; background:#d7e7d7; color:#376a42; border-radius:5px; font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.inbox-views { display:flex; flex-direction:column; margin:4px 0 14px; gap:1px; }
.inbox-view { justify-content:flex-start; border:0; background:transparent; min-height:37px; padding:7px 12px 7px 38px; width:100%; color:var(--muted); font-size:12px; font-weight:450; }
.inbox-view:hover,.inbox-view.active { background:#eaf0e6; color:#2c5938; }
.inbox-view [data-scope-count] { margin-left:auto; font-size:11px; color:var(--muted); }
.sidebar-bottom { margin-top:auto; display:flex; flex-direction:column; gap:16px; padding-top:20px; }
.local-note { padding:12px; border:1px dashed #d7dfd1; border-radius:9px; color:var(--muted); font-size:11px; line-height:1.6; }
.local-note strong { display:flex; align-items:center; gap:7px; margin-bottom:4px; font-size:11px; font-weight:600; color:#587153; }
.local-note .icon { width:15px; height:15px; }
.profile { display:flex; align-items:center; gap:9px; padding:14px 3px 0; border-top:1px solid #e0e6db; }
.avatar { width:36px; height:36px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; border:1px solid #d8e2d8; background:#e9f1e7; color:#52704f; border-radius:50%; font-size:12px; font-weight:650; }
.avatar.broker { background:#e9eef8; color:#5b6e95; border-color:#dbe4f1; }
.profile .avatar { width:32px; height:32px; font-size:11px; background:#e1eade; }
.profile .person { flex:1; min-width:0; font-size:12px; color:#4b6046; line-height:1.5; }
.profile small { display:block; font-size:10px; color:var(--muted); }
.profile button { width:32px; min-height:36px; padding:5px; color:var(--muted); }
.workspace { display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; }
.topbar { height:62px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:0 28px; gap:18px; border-bottom:1px solid var(--line); background:white; }
.breadcrumbs { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; }
.breadcrumbs strong { color:#3c5041; font-weight:550; }
.top-actions { display:flex; align-items:center; gap:18px; }
.top-actions a { display:inline-flex; gap:7px; align-items:center; font-size:12px; font-weight:500; }
.top-actions .icon { width:15px; height:15px; }
.local-pill,.badge { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border-radius:5px; padding:3px 7px; background:#edf5eb; color:#50704b; font-size:11px; font-weight:500; }
.local-pill { background:#f6f6f1; color:var(--muted); font-size:10px; }
.dot { width:6px; height:6px; border-radius:50%; display:inline-block; background:currentColor; flex-shrink:0; }
.mobile-menu { display:none; }
.page-heading { min-height:97px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:23px 28px 21px; background:#fff; }
.page-heading h1 { margin:0 0 4px; font-size:25px; letter-spacing:-.8px; }
.page-heading p { margin:0; font-size:12px; color:var(--muted); }
.heading-actions { display:flex; align-items:center; gap:8px; }
.connection-state { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); }
.connection-state.error { color:#ad5b45; }
.inbox { flex:1; min-height:0; display:grid; grid-template-columns:324px minmax(0,1fr); border-top:1px solid var(--line); background:white; }
.conversation-pane { min-height:0; display:flex; flex-direction:column; border-right:1px solid var(--line); background:#fff; }
.list-controls { padding:18px 16px 10px; }
.search-field { position:relative; }
.search-field .icon { position:absolute; top:13px; left:12px; width:16px; height:16px; color:var(--muted); }
.search-field input { padding-left:37px; font-size:12px; background:#f8faf6; border-color:#e6ebe2; border-radius:8px; }
.filter-tabs { display:flex; gap:19px; padding:0 17px; border-bottom:1px solid var(--line); }
.filter-tabs button { border:0; border-bottom:2px solid transparent; border-radius:0; padding:10px 0 11px; min-height:40px; font-size:12px; font-weight:500; background:transparent; color:var(--muted); }
.filter-tabs button.active { border-bottom-color:var(--green); color:var(--green); font-weight:600; }
.list-toolbar { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:10px 16px; border-bottom:1px solid #edf1e9; background:#fcfdfb; }
.list-toolbar button { min-height:31px; padding:5px 8px; font-size:11px; border:1px solid transparent; background:transparent; color:var(--muted); }
.list-toolbar button[aria-pressed=true] { background:#e9f4e8; color:#2c7047; border-color:#d0e6ce; }
.list-toolbar select { width:auto; max-width:145px; min-height:32px; padding:4px 25px 4px 8px; font-size:11px; color:var(--muted); border-color:transparent; background:transparent; }
.list-summary { padding:7px 17px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.8px; }
.conv-list { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.conversation-row { display:flex; width:100%; min-height:112px; align-items:flex-start; gap:11px; padding:16px; border:0; border-bottom:1px solid #edf1e9; border-radius:0; background:white; text-align:left; position:relative; }
.conversation-row:hover { border-color:#edf1e9; background:#fafcf7; }
.conversation-row.active { background:#edf6ec; }
.conversation-row.active::before { position:absolute; content:""; left:0; top:0; bottom:0; width:3px; background:#36956a; }
.conversation-row .avatar { margin-top:2px; width:35px; height:35px; }
.row-body { min-width:0; flex:1; display:flex; flex-direction:column; }
.row-line { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.row-line strong { font-size:14px; font-weight:600; }
.row-time { font-size:11px; flex-shrink:0; color:var(--muted); font-weight:400; }
.row-subject { font-size:13px; line-height:1.5; margin:3px 0 1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#53634e; }
.row-preview { font-size:13px; font-weight:400; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-meta { display:flex; align-items:center; gap:7px; min-height:18px; margin-top:6px; }
.row-meta .badge { padding:1px 5px; font-size:11px; border-radius:4px; }
.row-meta > span[style] { font-size:10px!important; }
.unread-dot { margin-left:auto; width:7px; height:7px; border-radius:50%; background:#289e6d; }
.unread-count { margin-left:auto; min-width:18px; height:18px; padding:0 5px; border-radius:6px; background:var(--green); color:white; font-size:10px; display:inline-flex; justify-content:center; align-items:center; }
.draft-badge { font-size:10px; color:var(--muted); background:#fff5d9; padding:1px 5px; border-radius:4px; }
.priority-badge { font-size:10px; color:#a25c30; background:#fff1df; padding:1px 5px; border-radius:4px; }
.priority-badge.urgent { color:#ac3649; background:#fff0f1; }

/* Conversation, contextual details, composing and in-place recovery. */
.detail-shell { min-width:0; min-height:0; position:relative; display:grid; grid-template-columns:minmax(0,1fr) 266px; background:#fff; }
.detail-shell.context-closed { grid-template-columns:minmax(0,1fr); }
.detail-shell.context-closed .contact-panel { display:none; }
.conversation-detail { display:flex; flex-direction:column; min-height:0; min-width:0; height:100%; overflow:hidden; }
.detail-header { min-height:79px; flex-shrink:0; padding:16px 23px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--line); }
.detail-header h2 { font-size:15px; letter-spacing:-.2px; margin:0 0 3px; font-weight:650; }
.detail-header p { font-size:12px; color:var(--muted); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:360px; }
.detail-actions { display:flex; align-items:center; gap:7px; }
.detail-actions button { font-size:11px; min-height:36px; padding:7px 10px; }
.detail-actions .icon { width:16px; height:16px; }
.context-toggle { min-width:36px; }
.thread { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:23px 28px 28px; background:linear-gradient(#fff,#fdfefb); }
.thread-date { display:flex; align-items:center; justify-content:center; gap:16px; font-size:10px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); margin:4px 0 26px; }
.thread-date::before,.thread-date::after { content:""; height:1px; flex:1; background:#edf1e8; }
.thread-message { display:flex; align-items:flex-end; gap:9px; max-width:91%; margin-bottom:22px; }
.thread-message .avatar { width:27px; height:27px; font-size:10px; }
.message-main { min-width:0; }
.message-author { display:flex; align-items:center; gap:7px; margin:0 1px 7px; color:var(--muted); font-size:11px; line-height:1.5; flex-wrap:wrap; }
.message-author strong { font-size:12px; font-weight:600; color:var(--ink); }
.message-author span { font-size:10px; padding-left:7px; border-left:1px solid var(--line); }
.message-author time { margin-left:auto; color:var(--muted); font-size:10px; white-space:nowrap; }
.thread-message.agent .message-author { justify-content:flex-end; }
.thread-message.internal>.avatar { display:none; }
.thread-message.internal .message-main { width:100%; }
.message-meta { display:flex; align-items:center; gap:5px; }
.message-meta .icon { width:12px; height:12px; }
.bot-summary { width:100%; text-align:left; justify-content:flex-start; }
.bot-summary span { flex:1; }
.bot-summary strong { display:block; font-size:12px; font-weight:550; }
.bot-summary small { display:block; font-size:11px; margin-top:3px; }
.thread-welcome { text-align:center; padding:40px 15px; color:var(--muted); font-size:12px; }
.thread-welcome span { display:block; font-size:11px; }
.message-bubble { border:1px solid #e6ece2; border-radius:12px 12px 12px 3px; padding:12px 15px; background:#f4f7ef; color:#33452e; font-size:14px; font-weight:400; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-meta { margin:5px 2px 0; font-size:11px; color:var(--muted); }
.thread-message.agent { margin-left:auto; flex-direction:row-reverse; }
.thread-message.agent .message-bubble { border-color:#d8ead6; background:#eaf5e8; border-radius:12px 12px 3px 12px; }
.thread-message.agent .message-meta { text-align:right; }
.thread-message.internal { max-width:100%; display:block; margin:0 0 22px 0; }
.thread-message.internal .message-bubble { background:#fff9e9; border:1px solid #eee3c5; border-radius:10px; color:#766329; font-size:13px; }
.thread-message.internal .message-bubble strong { font-size:11px; font-weight:650; }
.thread-message.system .message-bubble { background:#fff; border-color:#e6ece2; color:var(--muted); font-size:13px; }
.thread-message.system .avatar { background:#eff5e9; border-color:#e2ead8; color:var(--muted); }
.thread-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 24px 13px; border-bottom:1px solid #f0f3ec; color:var(--muted); font-size:11px; }
.thread-controls button,[data-toggle-bot] { min-height:31px; padding:5px 9px; font-size:11px; background:#fbfcf8; color:var(--muted); }
.bot-summary { margin:0 0 22px; padding:13px 15px; border:1px dashed #dce5d5; border-radius:9px; color:var(--muted); font-size:12px; display:flex; align-items:center; gap:8px; }
.history-load { display:block; min-height:36px; font-size:12px; margin:0 auto 20px; color:var(--muted); }
.composer-wrap { flex-shrink:0; padding:10px 22px 20px; background:#fff; position:relative; }
.composer { border:1px solid #cddccc; border-radius:12px; background:white; box-shadow:0 3px 10px #203b2105; overflow:visible; position:relative; }
.composer:focus-within { border-color:#79b68b; box-shadow:0 0 0 3px #dff0e140; }
.composer-note { background:#fffdf5; border-color:#e5d8ae; }
.composer-heading { display:flex; align-items:center; justify-content:space-between; padding:0 13px; gap:12px; border-bottom:1px solid #edf1e8; }
.composer-tabs { display:flex; gap:17px; padding:0 13px; border-bottom:1px solid #edf1e8; }
.composer-heading .composer-tabs { padding:0; border:0; }
.composer-tabs button { background:transparent; border:0; border-radius:0; border-bottom:2px solid transparent; padding:10px 0; min-height:41px; color:var(--muted); font-size:12px; }
.composer-tabs button.active { color:#33774d; border-bottom-color:#4c9866; font-weight:600; }
.composer-note .composer-tabs button.active { color:#94752e; border-bottom-color:#bd9a42; }
.composer-visibility { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--muted); white-space:nowrap; }
.composer-visibility .icon { width:13px; height:13px; }
.composer textarea { display:block; border:0; border-radius:0; padding:14px 15px; font-size:14px; min-height:94px; max-height:230px; background:transparent; resize:vertical; }
.composer textarea:focus { outline:0; }
.composer-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 11px; border-top:1px solid #f2f4ee; }
.composer-footer small { font-size:10px; color:var(--muted); }
.composer-tools { display:flex; align-items:center; gap:4px; }
.composer-tools button { padding:7px 9px; min-height:34px; font-size:11px; color:var(--muted); border-color:transparent; background:transparent; }
.composer-tools .icon { width:16px; height:16px; }
.send-actions { display:flex; align-items:center; gap:7px; }
.send-actions select { width:auto; max-width:170px; min-height:35px; padding:5px 23px 5px 8px; font-size:11px; color:var(--muted); background:#fbfdf8; border-color:#e4ebde; }
.send-actions button,.composer-footer button[type=submit] { min-height:36px; padding:7px 13px; font-size:12px; border-radius:7px; }
#draft-status { color:#8f9d84; font-size:10px; }
#reply-error { margin:0 12px; padding:9px 0; color:#ad3a43; font-size:12px; }
#reply-error:empty { display:none; }
.quick-replies-panel { position:absolute; left:12px; right:12px; bottom:calc(100% + 10px); max-height:370px; z-index:25; overflow:hidden; border:1px solid #dce5d6; border-radius:12px; box-shadow:0 14px 45px #18381e24; background:#fff; padding:12px; }
.quick-replies-panel[hidden] { display:none; }
.quick-replies-header,.quick-replies-heading { display:flex; justify-content:space-between; align-items:center; padding:0 3px 8px; font-size:13px; font-weight:600; }
.quick-replies-panel input { min-height:40px; font-size:13px; background:#f7faf4; margin-bottom:8px; }
.quick-replies-list,.quick-reply-list { overflow:auto; max-height:240px; }
.quick-replies-panel [data-insert-reply] { display:block; width:100%; text-align:left; border:0; padding:11px; border-radius:7px; background:#fff; white-space:normal; }
.quick-replies-panel [data-insert-reply]:hover { background:#edf6e9; }
.quick-replies-panel [data-insert-reply] strong { display:block; font-size:12px; margin-bottom:3px; color:#3f6540; }
.quick-replies-panel [data-insert-reply] small { display:block; font-size:11px; font-weight:400; color:var(--muted); }
.contact-panel { min-width:0; overflow:auto; border-left:1px solid var(--line); padding:19px 19px 28px; background:#fcfdf9; font-size:12px; }
.contact-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; color:var(--muted); font-size:12px; font-weight:600; }
.contact-panel-header button { min-height:30px; width:30px; padding:5px; background:transparent; border-color:transparent; }
.contact-identity { padding:8px 0 24px; text-align:center; border-bottom:1px solid var(--line); }
.contact-identity .avatar { width:52px; height:52px; font-size:17px; background:#edf2e7; margin-bottom:10px; }
.contact-identity h3 { margin:0 0 3px; font-size:14px; }
.contact-identity p { font-size:12px; color:var(--muted); margin:0; overflow-wrap:anywhere; }
.contact-section { padding:20px 0; border-bottom:1px solid #e7eddf; }
.section-label { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:15px; font-weight:550; }
.field-row { margin:13px 0; }
.field-row label { font-size:12px; font-weight:450; color:var(--muted); margin-bottom:6px; }
.field-row select { font-size:12px; min-height:39px; padding:7px 26px 7px 10px; border-color:#dfe7d7; color:#607754; }
.key-value { display:flex; justify-content:space-between; gap:10px; margin:10px 0; font-size:12px; }
.key-value span { color:#91a084; }
.key-value strong { color:#627854; font-weight:500; text-align:right; overflow-wrap:anywhere; }
.tag-list { display:flex; flex-wrap:wrap; gap:6px; }
.tenant-seal { margin-top:20px; display:flex; align-items:flex-start; gap:8px; padding:10px; border-radius:8px; background:#f0f5e9; color:var(--muted); font-size:10px; line-height:1.6; }
.tenant-seal .icon { width:14px; height:14px; margin-top:2px; }
.mobile-back { display:none; }
.empty { display:grid; place-content:center; min-height:220px; height:100%; padding:40px 30px; text-align:center; color:var(--muted); }
.empty>.icon { width:34px; height:34px; padding:9px; box-sizing:content-box; border-radius:16px; background:#f1f6eb; margin:0 auto 16px; color:var(--muted); }
.empty h2 { font-size:17px; color:#536949; letter-spacing:-.3px; margin-bottom:8px; }
.empty p { font-size:12px; max-width:350px; line-height:1.8; margin:0 auto; }

/* Workflows and content: progressive editors, inspectable branches. */
.full-content { flex:1; overflow:auto; min-height:0; padding:0 28px 30px; background:#fff; }
.panel { border:1px solid var(--line); border-radius:12px; background:#fff; }
.panel-padded { padding:24px; }
.stats-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; margin-bottom:24px; }
.stat { padding:19px 21px; background:#fafcf8; }
.stat label { color:#8c9a80; font-size:12px; font-weight:450; margin-bottom:10px; }
.stat strong { font-size:26px; font-weight:550; color:#49623d; letter-spacing:-.7px; }
.workflow-card { width:100%; display:flex; align-items:center; gap:18px; min-height:106px; padding:21px 24px; text-align:left; margin-bottom:13px; border:1px solid #dfe7da; border-radius:12px; }
.workflow-card:hover { box-shadow:0 4px 18px #284b2010; border-color:#b9cdb0; }
.workflow-card h3 { margin:0 0 5px; font-size:15px; color:#49623d; }
.workflow-card p { margin:0; font-size:12px; color:var(--muted); font-weight:400; }
.flow-symbol { display:flex; align-items:center; justify-content:center; width:47px; height:47px; background:#edf6e6; border:1px solid #e0ecd4; border-radius:13px; color:var(--muted); }
.flow-symbol .icon { width:23px; height:23px; }
.flow-status { display:flex; align-items:center; gap:12px; margin-left:auto; }
.workflow-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; align-items:center; }
.workflow-toolbar button { font-size:12px; min-height:38px; }
.version-select { width:auto; max-width:250px; min-height:38px; font-size:12px; }
.editor-tabs { display:flex; gap:21px; border-bottom:1px solid #e3eadc; margin-bottom:20px; }
.editor-tabs button { background:transparent; border:0; border-bottom:2px solid transparent; border-radius:0; padding:12px 2px; min-height:44px; color:var(--muted); font-size:13px; }
.editor-tabs button.active { color:#3d784e; border-bottom-color:#60a470; font-weight:600; }
.workflow-editor { display:grid; grid-template-columns:270px minmax(0,1fr); gap:20px; align-items:start; }
.node-list { background:#f8fbf3; padding:14px; max-height:64dvh; overflow:auto; }
.node-list button { display:flex; align-items:center; justify-content:flex-start; width:100%; min-height:61px; text-align:left; padding:11px; gap:11px; margin-bottom:8px; border-color:transparent; background:transparent; }
.node-list button.active { background:#e8f3df; border-color:#c4dab5; }
.node-list button:hover { background:#eff6e7; }
.node-count { min-width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:var(--muted); border:1px solid #d8e4cc; border-radius:7px; background:#fff; }
.node-label { min-width:0; }
.node-label strong { display:block; font-size:12px; color:var(--muted); }
.node-label small { display:block; max-width:196px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; color:var(--muted); }
.node-detail { padding:24px; min-width:0; }
.node-detail h2 { font-size:18px; color:#4d6c3c; }
.node-type { display:inline-block; font-size:10px; padding:3px 7px; border:1px solid #d9e8cb; border-radius:5px; background:#f4f9ed; color:var(--muted); letter-spacing:.8px; text-transform:uppercase; }
.locale-tabs { display:flex; gap:6px; margin-bottom:18px; flex-wrap:wrap; }
.locale-tabs button { font-size:12px; min-height:35px; padding:6px 13px; }
.locale-tabs button.active { background:#e8f2df; color:#4d7b3a; border-color:#c3d9b4; }
.editor-fields label { font-size:12px; color:var(--muted); margin-top:17px; }
.editor-fields textarea { min-height:93px; font-size:14px; line-height:1.6; border-color:#dce7d2; }
.editor-fields input { font-size:13px; border-color:#dce7d2; }
.editor-connection { display:flex; gap:8px; align-items:center; margin-top:15px; padding:11px 13px; border:1px dashed #cddfbc; background:#fcfef9; border-radius:8px; color:var(--muted); font-size:12px; }
.editor-note { display:flex; align-items:flex-start; gap:9px; margin:19px 0; padding:14px 16px; border:1px solid #e5ecdd; border-radius:10px; background:#f9fcf5; color:var(--muted); font-size:12px; line-height:1.75; }
.editor-note .icon { width:17px; height:17px; margin-top:2px; }
.validation { padding:12px 15px; margin:16px 0; border:1px solid #d4e7c5; background:#f3faec; color:var(--muted); border-radius:8px; font-size:12px; }
.validation.invalid { background:#fff3f3; border-color:#f0d5d5; color:#b9535d; }
.validation ul { padding-left:19px; margin:7px 0; }
.branch-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; margin:18px 0; }
.branch-card { min-width:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; padding:15px; gap:8px; border:1px solid #dce8d1; border-radius:10px; background:#fbfef6; text-align:left; }
.branch-card strong { font-size:13px; color:var(--muted); }
.branch-card small { font-size:11px; font-weight:400; color:var(--muted); }
.branch-card .icon { width:16px; height:16px; color:var(--muted); }
.wf-screen { min-width:0; }
.advanced summary { cursor:pointer; padding:13px 0; font-size:12px; color:var(--muted); }
.advanced textarea,#workflow-json { min-height:420px; margin-top:12px; font-family:ui-monospace,SFMono-Regular,monospace; font-size:12px; line-height:1.8; background:#fafcf7; }
.preview-panel { padding:24px; margin-top:20px; }
.preview-log { background:#f8fbf3; padding:20px; border:1px solid #e4ecd9; border-radius:12px; max-height:390px; overflow:auto; margin:18px 0; }
.preview-bubble { max-width:90%; padding:12px 15px; margin-bottom:14px; border:1px solid #e0ead4; border-radius:11px; background:#fff; white-space:pre-wrap; font-size:13px; color:var(--muted); }
.preview-bubble.user { margin-left:auto; background:#edf7e5; color:var(--muted); }
.preview-options { display:flex; flex-wrap:wrap; gap:8px; }
.preview-options button { font-size:12px; min-height:39px; color:var(--muted); border-color:#cfe3bd; }
.help-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:22px; align-items:start; }
.help-collections { padding:12px; background:#f9fcf5; }
.help-collections button { width:100%; justify-content:flex-start; min-height:49px; text-align:left; border:0; color:var(--muted); font-size:12px; background:transparent; }
.help-collections button.active { color:#5e8b44; background:#eaf5e0; }
.article-item { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:21px 23px; border-bottom:1px solid #e5eddb; }
.article-item:last-child { border:0; }
.article-item h3 { font-size:14px; color:#5c7d44; margin:0 0 5px; }
.article-item p { font-size:12px; color:var(--muted); margin:0; }
.article-editor { padding:25px; }
.article-editor label { margin-top:18px; font-size:12px; color:var(--muted); }
.article-editor input { font-size:15px; }
.article-editor textarea { min-height:300px; font-size:14px; }
.settings-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:22px; }
.settings-grid h2 { font-size:17px; color:#54753f; }
.settings-grid p { font-size:13px; color:var(--muted); line-height:1.8; }
pre { margin:16px 0; white-space:pre-wrap; overflow-wrap:anywhere; background:#f5faef; border:1px solid #e0ebd3; color:var(--muted); border-radius:9px; padding:17px; font-size:12px; line-height:1.8; }
.member-row { display:flex; align-items:center; gap:11px; padding:14px 0; border-bottom:1px solid #e5eddb; }
.member-row:last-child { border:0; }
.member-row small { display:block; font-size:11px; }
.member-row .badge { margin-left:auto; }
.integration-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.integration-links a { display:inline-flex; align-items:center; gap:7px; border:1px solid #dce8d1; border-radius:8px; padding:9px 12px; font-size:12px; }
.audit-table { width:100%; border-collapse:collapse; font-size:13px; }
.audit-table th { text-align:left; padding:15px 18px; color:var(--muted); border-bottom:1px solid #dfe9d4; background:#fafdf7; font-size:10px; font-weight:550; letter-spacing:1px; text-transform:uppercase; }
.audit-table td { padding:17px 18px; border-bottom:1px solid #edf2e6; color:var(--muted); overflow-wrap:anywhere; }
.audit-table td:last-child { font-size:11px; color:var(--muted); }

/* Searchable command actions retain focus and respect typing shortcuts. */
.command-backdrop,.command-overlay { position:fixed; inset:0; z-index:200; background:#14332440; backdrop-filter:blur(3px); display:flex; justify-content:center; align-items:flex-start; padding:14vh 20px 30px; }
#command-palette { width:min(560px,100%); max-height:72dvh; padding:13px; border:1px solid #d9e6cd; border-radius:15px; box-shadow:0 24px 80px #123e292e; background:#fff; overflow:auto; }
#command-palette input { font-size:15px; min-height:49px; border:0; border-bottom:1px solid #e9f0e0; border-radius:0; margin-bottom:10px; }
#command-palette [data-command] { display:flex; align-items:center; justify-content:flex-start; width:100%; padding:12px; text-align:left; border:0; color:var(--muted); }
#command-palette [data-command]:hover,#command-palette [data-command]:focus-visible,#command-palette [data-command].selected { background:#eef8e5; color:#2f6945; }
#command-palette kbd,.keyboard-hint { margin-left:auto; background:#f4f8ee; color:var(--muted); border:1px solid #e2ecd6; border-radius:4px; padding:1px 5px; font-family:inherit; font-size:10px; }
.command-footer,.command-help { border-top:1px solid #e7efdf; padding:10px 6px 0; color:var(--muted); font-size:10px; }

/* Components shared by the operational tools. */
[hidden] { display:none!important; }
.brand-button { border:0; padding:0 7px; background:transparent; justify-content:flex-start; min-height:35px; }
.brand-button:hover { background:transparent; }
.brand-button strong { font-weight:650; }
.tenant-select-wrap { position:relative; }
.tenant-select-wrap select { padding-left:25px; }
.workspace-dot { position:absolute; left:10px; top:17px; z-index:1; width:6px; height:6px; border-radius:50%; background:var(--green); }
.workspace-dot.broker { background:#5b83b8; }
.sidebar-search { justify-content:flex-start; gap:8px; min-height:39px; padding:8px 11px; border-color:#e0e6db; background:#fff; color:var(--muted); font-size:11px; }
.sidebar-search .icon { width:15px; height:15px; }
kbd { font-family:inherit; font-size:10px; font-weight:450; padding:1px 4px; border:1px solid #dfe5dc; border-radius:4px; background:#f8faf6; color:var(--muted); line-height:1.6; }
.sidebar-search kbd { margin-left:auto; white-space:nowrap; font-size:9px; }
.sidebar-demo { display:flex; align-items:center; gap:8px; padding:0 7px; font-size:11px; color:var(--muted); line-height:1.7; }
.sidebar-demo .icon { width:15px; height:15px; }
.workspace-environment { display:flex; align-items:center; gap:6px; padding:0 7px; color:var(--muted); font-size:10px; }
.workspace-environment .dot { width:5px; height:5px; color:var(--muted); }
.inbox-views .nav-heading { display:flex; justify-content:space-between; align-items:center; font-size:9px; margin:10px 0 8px; }
.inbox-views .nav-heading span { font-size:8px; letter-spacing:0; text-transform:none; }
.inbox-view,.nav-items .inbox-view { display:flex; align-items:center; gap:9px; padding:8px 10px 8px 16px; min-height:37px; font-size:12px; font-weight:450; }
.inbox-view .icon { width:15px; height:15px; color:var(--muted); }
.inbox-view .count { background:transparent; color:var(--muted); height:18px; font-size:11px; padding:0 2px; }
.inbox-view.active .count { color:#387448; }
.shortcut-button { min-height:33px; font-size:11px; color:var(--muted); padding:5px 8px; }
.shortcut-button .icon { width:15px; height:15px; }
.loading-state { display:flex; align-items:center; gap:9px; margin:auto; color:var(--muted); font-size:13px; }
.loading-dot { width:7px; height:7px; border-radius:50%; background:#8db78e; box-shadow:0 0 0 5px #eff7e9; }
.inbox-list-header { flex-shrink:0; }
.language-label { color:#62765b; font-size:10px; font-weight:600; letter-spacing:.2px; background:#f0f6eb; padding:1px 4px; border-radius:4px; }
.assignee-label { font-size:10px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.priority-label { display:flex; align-items:center; gap:3px; font-size:10px; color:var(--muted); }
.priority-label .icon { width:11px; height:11px; }
.priority-label.urgent { color:#b53a45; }
.unread-badge { margin-left:auto; min-width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; background:#337a4c; color:#fff; font-size:9px; border-radius:6px; padding:0 5px; }
.has-unread .row-line strong { font-weight:700; }
.has-unread .row-preview { color:#4e6350; }
.empty.inbox-empty { grid-column:1/-1; background:radial-gradient(ellipse at 50% 40%,#f5faf0 0,transparent 65%); }
.empty-illustration { display:flex; align-items:center; justify-content:center; width:66px; height:66px; margin:0 auto 20px; border-radius:20px; border:1px solid #e3ecd8; background:#f3f8ec; box-shadow:0 6px 20px #7b996510; color:var(--muted); }
.empty-illustration .icon { width:27px; height:27px; }
.inbox-empty .eyebrow { margin-bottom:10px; }
.empty-shortcuts { display:flex; justify-content:center; gap:17px; margin-top:24px; font-size:10px; }
.empty-shortcuts span { display:flex; align-items:center; gap:4px; }
.list-empty { padding:30px 20px; min-height:220px; height:auto; }
.list-empty h2 { font-size:14px; }
.list-empty p { font-size:12px; }
.list-empty button { margin:16px auto 0; font-size:11px; }
.detail-title { min-width:0; flex:1; }
.detail-avatar { width:34px; height:34px; font-size:12px; }
.thread-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 23px; border-bottom:1px solid #f0f3eb; font-size:11px; color:var(--muted); }
.thread-tools>span { display:flex; align-items:center; gap:6px; }
.thread-channel { display:flex; align-items:center; gap:5px; padding-left:9px; margin-left:5px; border-left:1px solid #e2eadb; }
.thread-channel .icon { width:12px; height:12px; }
.thread-tools [data-toggle-bot] { display:flex; align-items:center; gap:5px; min-height:29px; padding:4px 7px; background:transparent; border-color:transparent; font-size:10px; }
.thread-tools [data-toggle-bot] .icon { width:13px; height:13px; }
.status-dot { display:inline-block; width:6px; height:6px; background:#6ba66a; border-radius:50%; flex-shrink:0; }
.status-dot.pending { background:#cfad5e; }
.status-dot.closed { background:#a0ad96; }
.composer-hint { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px 10px; font-size:9px; line-height:1.6; color:var(--muted); }
.composer-hint span:last-child { white-space:nowrap; }
.quick-replies-panel>p { font-size:11px; color:var(--muted); margin:0 3px 12px; }
.quick-replies-panel .search-field input { padding-left:36px; }
.quick-replies-panel .quick-reply-list { padding-top:4px; }
.quick-reply-source { font-size:10px; color:var(--muted); }
.command-input-wrap { display:flex; align-items:center; gap:10px; border-bottom:1px solid #e4ecdb; padding:0 5px; }
.command-input-wrap>.icon { color:var(--muted); }
.command-input-wrap #command-search { border:0; margin:0; flex:1; font-size:15px; padding-left:0; }
.command-input-wrap button { padding:5px; border:0; min-height:30px; }
.command-input-wrap kbd { font-size:10px; }
.command-results { padding:10px 0; max-height:400px; overflow:auto; }
.command-help { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; font-size:10px; color:var(--muted); line-height:2; }
.command-help span { display:inline-flex; align-items:center; gap:4px; }
.workflow-toolbar { justify-content:space-between; }
.workflow-draft-state { display:flex; gap:7px; align-items:center; }
.workflow-draft-state .badge { background:transparent; font-size:12px; color:var(--muted); padding-left:0; }
.workflow-publish-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.editor-tabs { align-items:center; }
.editor-tabs button { display:flex; gap:7px; align-items:center; }
.editor-tabs .icon { width:16px; height:16px; }
.editor-tabs .preview-shortcut { margin-left:auto; border-bottom-color:transparent; font-size:12px; }
.node-list-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:5px 9px 17px; font-size:12px; color:#526948; }
.node-list-heading strong { font-weight:550; }
.node-list-heading span { font-size:10px; color:var(--muted); }
.node-list button { align-items:flex-start; gap:9px; padding:12px 8px; min-height:75px; }
.node-symbol { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border:1px solid #dce8d2; border-radius:8px; color:var(--muted); background:#f3faea; flex-shrink:0; }
.node-symbol .icon { width:16px; height:16px; }
.node-symbol.choice { color:#527ca0; background:#f0f6fb; border-color:#dce7f0; }
.node-symbol.handoff { color:#ac8b45; background:#fff9ed; border-color:#f0e7d2; }
.node-symbol.action { color:#8f73a7; background:#f9f5fc; border-color:#eae2f0; }
.node-list .node-label { flex:1; }
.node-type-label { display:block; color:var(--muted); font-size:9px; margin-bottom:2px; }
.node-label strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; line-height:1.5; white-space:normal; }
.node-label small { font-size:9px; margin-top:5px; }
.node-list button>.icon { width:13px; height:13px; margin-top:10px; color:var(--muted); }
.node-heading { display:flex; gap:13px; align-items:flex-start; padding-bottom:22px; margin-bottom:17px; border-bottom:1px solid #e6eddc; }
.node-heading .node-symbol { width:38px; height:38px; }
.node-heading .node-symbol .icon { width:19px; height:19px; }
.node-heading .node-type { background:transparent; border:0; padding:0; color:var(--muted); font-size:10px; letter-spacing:.2px; }
.node-heading h2 { font-size:18px; margin:4px 0; color:var(--ink); }
.node-reference { font-size:10px; color:var(--muted); }
.field-help { font-size:11px; color:var(--muted); line-height:1.8; margin:8px 0; }
.editor-section-heading { display:flex; align-items:center; justify-content:space-between; padding-top:22px; margin:18px 0 12px; border-top:1px solid #e4ecda; }
.editor-section-heading h3 { margin:0; font-size:13px; color:#475e3d; }
.editor-section-heading span { font-size:10px; color:var(--muted); }
.branch-cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); }
.branch-card { padding:15px; gap:9px; }
.branch-card label { font-size:10px; margin:0; color:var(--muted); }
.branch-card input { font-size:13px; margin:0; min-height:39px; }
.branch-destination { display:grid; grid-template-columns:minmax(0,1fr) 30px; gap:7px; width:100%; }
.branch-destination>span { grid-column:1/-1; font-size:10px; display:flex; align-items:center; gap:5px; color:var(--muted); }
.branch-destination select { font-size:11px; padding:6px 22px 6px 8px; min-height:34px; }
.branch-destination button { padding:5px; min-height:32px; }
.branch-preview { display:block; border:1px solid #e8efdf; border-radius:7px; background:white; width:100%; text-align:left; padding:10px; color:var(--muted); font-size:11px; font-weight:400; line-height:1.7; }
.branch-preview span { display:block; }
.branch-preview .node-type-label { font-size:9px; }
.add-branch { margin:5px 0; font-size:12px; color:#507d3c; background:#f5faef; border-style:dashed; }
.field-properties { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.field-properties span { display:flex; align-items:center; gap:6px; font-size:10px; color:var(--muted); background:#f8fbf3; border:1px solid #e7eedc; border-radius:6px; padding:6px 9px; }
.field-properties .icon { width:13px; height:13px; }
.node-actions>div { display:flex; align-items:center; gap:9px; border:1px solid #e3ecd8; border-radius:9px; padding:12px; margin-bottom:9px; color:var(--muted); font-size:12px; }
.node-actions strong { margin-left:auto; color:var(--muted); font-size:11px; font-weight:500; }
.node-actions .icon { width:16px; height:16px; color:var(--muted); }
.next-node-row { display:flex; gap:9px; align-items:center; }
.next-node-row select { flex:1; min-width:0; font-size:12px; }
.next-node-row button { font-size:12px; flex-shrink:0; }
.handoff-explanation { display:flex; align-items:flex-start; gap:8px; padding:13px; margin-top:13px; border:1px solid #e5ecd9; background:#f7fbf0; color:var(--muted); font-size:12px; border-radius:8px; }
.article-link-card { display:flex; align-items:center; gap:12px; border:1px solid #e0e9d5; border-radius:9px; padding:15px; margin-top:16px; background:#fbfdf7; }
.article-link-card strong { display:block; font-size:12px; font-weight:500; }
.article-link-card small { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.advanced-editor { padding:25px; }
.section-intro { margin-bottom:20px; }
.section-intro h2 { margin:7px 0; color:var(--ink); font-size:20px; }
.section-intro p { font-size:12px; line-height:1.8; color:var(--muted); }
.advanced-editor textarea { margin-bottom:15px; }
.preview-panel { margin-top:0; }
.preview-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.preview-header h2 { margin:6px 0 0; font-size:19px; color:var(--ink); }
.preview-controls { display:flex; align-items:center; gap:7px; }
.preview-controls select { font-size:12px; min-height:38px; }
.preview-controls button { font-size:12px; min-height:38px; }
.preview-turn>span { font-size:10px; color:var(--muted); display:block; margin-bottom:5px; }
.preview-turn.user>span { text-align:right; }
.preview-input-row { display:flex; gap:10px; }
.preview-outcome { display:flex; align-items:center; gap:9px; padding:14px; border:1px solid #d6e8cb; border-radius:10px; background:#f5faee; color:#5d7e4a; font-size:12px; }
.preview-outcome span { color:var(--muted); font-size:11px; }
.version-section { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 24px; margin-top:24px; }
.version-section h3 { font-size:14px; color:var(--ink); margin:5px 0; }
.version-section p { font-size:12px; color:var(--muted); margin:0; }
.version-actions { display:flex; gap:8px; flex-shrink:0; align-items:center; }
.version-actions button { font-size:12px; }
.validation>div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.validation>div>span { font-size:11px; color:var(--muted); }

/* Local entry and the host-site preview. */
.login-page { min-height:100dvh; display:grid; grid-template-columns:1fr 1fr; background:white; }
.login-story { background:#f0f5e9; padding:11vh 8vw; display:flex; flex-direction:column; justify-content:center; color:#3c5b2d; overflow:hidden; position:relative; }
.login-story::after { content:""; position:absolute; right:-210px; bottom:-220px; width:620px; height:620px; border:1px solid #d1e0c1; border-radius:50%; box-shadow:0 0 0 80px #eaf1e1,0 0 0 81px #d9e4ca,0 0 0 160px #edf3e5; pointer-events:none; }
.login-story .brand { position:relative; z-index:1; padding:0; margin-bottom:70px; font-size:22px; color:#37582b; }
.login-story h1 { position:relative; z-index:1; font-size:49px; line-height:1.14; font-weight:500; letter-spacing:-2px; max-width:460px; }
.login-story h1 em { font-style:normal; color:var(--muted); }
.login-story p { position:relative; z-index:1; max-width:350px; color:var(--muted); font-size:14px; line-height:1.9; }
.login-features { display:flex; gap:20px; color:var(--muted); font-size:11px; margin-top:30px; position:relative; z-index:1; }
.login-features span { display:flex; align-items:center; gap:6px; }
.login-form { padding:60px; display:flex; flex-direction:column; justify-content:center; width:100%; max-width:550px; margin:auto; }
.eyebrow { font-size:10px; text-transform:uppercase; letter-spacing:1.5px; color:var(--muted); margin-bottom:20px; }
.login-form h2 { font-size:29px; color:#52773d; letter-spacing:-.8px; margin-bottom:8px; }
.login-form>p { font-size:13px; color:var(--muted); line-height:1.8; margin-bottom:27px; }
.profile-card { display:flex; align-items:center; justify-content:flex-start; gap:13px; min-height:79px; padding:15px; margin-bottom:11px; width:100%; text-align:left; border-color:#e0e9d7; }
.profile-card .profile-content { flex:1; }
.profile-card strong { display:block; color:var(--muted); font-size:13px; }
.profile-card small { display:block; margin-top:3px; font-size:11px; color:var(--muted); font-weight:400; }
.profile-card>.icon { color:#a2b78d; width:17px; height:17px; }
.login-foot { margin-top:24px; padding-top:20px; border-top:1px solid #e6eedc; font-size:11px; color:var(--muted); line-height:1.7; }
.warning-inline { padding:12px; border-radius:8px; border:1px solid #eee4c6; background:#fffaed; color:var(--muted); font-size:12px; margin-bottom:15px; }
.demo-body { min-height:100dvh; color:#eaf8f0; background:#062d24; }
.demo-top { max-width:1170px; margin:auto; padding:30px 34px; display:flex; align-items:center; justify-content:space-between; gap:25px; }
.demo-logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:600; letter-spacing:-.6px; }
.demo-logo .brand-mark { background:#15bd8a; color:#073b29; }
.demo-top nav { display:flex; align-items:center; gap:30px; font-size:12px; }
.demo-top a { color:#c4e5d1; }
.demo-label { padding:5px 12px; border:1px solid #497d59; border-radius:20px; color:#9fc7a7; font-size:9px; text-transform:uppercase; letter-spacing:1px; }
.demo-hero { max-width:1170px; margin:35px auto 0; padding:40px 34px 60px; }
.demo-eyebrow { color:#8cba95; text-transform:uppercase; letter-spacing:1.6px; font-size:10px; margin-bottom:20px; }
.demo-hero h1 { color:#f1f9ef; font-size:68px; font-weight:450; letter-spacing:-3px; line-height:1.04; max-width:700px; margin-bottom:25px; }
.demo-hero h1 span { color:#9ce0a4; }
.demo-hero>p { font-size:15px; color:#99bea0; line-height:1.9; max-width:470px; margin-bottom:32px; }
.demo-search { display:flex; gap:8px; max-width:640px; border:1px solid #456c45; border-radius:12px; background:#214429; padding:7px; }
.demo-search input { min-height:49px; border:0; background:transparent; color:#e8f6dc; }
.demo-search input::placeholder { color:#a9c496; }
.demo-search button { background:#d6edba; color:#3c5f2c; border:0; min-width:145px; }
.demo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:19px; margin-top:35px; }
.demo-card { padding:25px; min-height:175px; border:1px solid #4d7044; border-radius:13px; background:#153c22; }
.demo-card>.icon { width:23px; height:23px; color:#a0ca7e; margin-bottom:18px; }
.demo-card h2 { color:#ddefd3; font-size:16px; margin-bottom:10px; }
.demo-card p { font-size:12px; line-height:1.8; color:#93b77b; margin:0; }
.demo-foot { max-width:1170px; margin:20px auto; padding:20px 34px; border-top:1px solid #426638; display:flex; justify-content:space-between; gap:20px; font-size:11px; color:#97b97e; }
.demo-foot a { color:#cee5b4; }
.demo-body.broker-demo { background:#102d45; }
.broker-demo .demo-card { background:#1b3e54; border-color:#4d7184; }
.broker-demo .demo-search { background:#1a435b; border-color:#4a7991; }
.broker-demo .demo-hero h1 span { color:#a8d7e9; }

/* Responsive: preserve operation controls, expose context as a drawer. */
@media(min-width:1650px) {
  .inbox { grid-template-columns:360px minmax(0,1fr); }
  .detail-shell { grid-template-columns:minmax(0,1fr) 285px; }
  .detail-shell.context-closed { grid-template-columns:1fr; }
  .thread { padding:26px 40px; }
  .composer-wrap { padding:12px 30px 24px; }
}
@media(max-width:1350px) {
  .app-layout { grid-template-columns:204px minmax(0,1fr); }
  .sidebar { padding:23px 12px 16px; }
  .brand { font-size:15px; }
  .inbox { grid-template-columns:300px minmax(0,1fr); }
  .detail-header { padding:14px 18px; }
  .detail-actions button { font-size:11px; padding:7px 9px; }
  .detail-header p { max-width:235px; }
  .thread { padding:22px; }
}
@media(max-width:1250px) {
  .detail-shell { grid-template-columns:minmax(0,1fr); }
  .contact-panel { display:none; }
  .detail-shell.context-open .contact-panel { display:block; position:absolute; right:0; top:0; bottom:0; width:min(292px,92%); z-index:40; border-left:1px solid #dce7d2; box-shadow:-15px 0 35px #203c221c; }
  .topbar { padding:0 23px; }
  .page-heading { padding:21px 23px; }
  .full-content { padding:0 23px 25px; }
  .top-actions .local-pill { display:none; }
}
@media(max-width:950px) {
  .app-layout { grid-template-columns:180px minmax(0,1fr); }
  .sidebar { padding:20px 10px 13px; gap:20px; }
  .brand { font-size:14px; gap:8px; padding:0 3px; }
  .brand-mark { width:29px; height:29px; font-size:22px; }
  .brand small { font-size:8px; letter-spacing:1px; }
  .tenant-block { padding:9px; }
  .tenant-foot { display:none; }
  .local-note { display:none; }
  .inbox { grid-template-columns:270px minmax(0,1fr); }
  .detail-header { flex-wrap:wrap; row-gap:10px; }
  .detail-actions { margin-left:auto; }
  .detail-header p { max-width:200px; }
  .workflow-editor { grid-template-columns:220px minmax(0,1fr); gap:15px; }
  .node-detail { padding:20px; }
  .help-layout { grid-template-columns:210px minmax(0,1fr); gap:15px; }
  .settings-grid { grid-template-columns:1fr; }
  .composer-wrap { padding:8px 13px 14px; }
  .composer-footer { flex-wrap:wrap; gap:8px; }
  .send-actions { margin-left:auto; }
  .composer-visibility { display:none; }
  .login-story { padding:10vh 6vw; }
  .login-story h1 { font-size:39px; }
  .login-form { padding:38px; }
}
@media(max-width:820px) {
  .app-layout { grid-template-columns:1fr; }
  .sidebar { position:fixed; top:0; left:0; bottom:0; width:248px; z-index:101; box-shadow:14px 0 50px #153d2c24; transform:translateX(-110%); transition:transform .2s; }
  .app-layout.menu-open .sidebar { transform:translateX(0); }
  .app-layout.menu-open::after { content:""; position:fixed; inset:0; background:#16332735; z-index:100; pointer-events:none; }
  .sidebar .brand { font-size:17px; }
  .sidebar .brand-mark { width:33px; height:33px; }
  .mobile-menu { display:inline-flex; width:37px; min-height:37px; padding:5px; }
  .topbar { height:57px; padding:0 15px; }
  .breadcrumbs { gap:8px; font-size:11px; }
  .breadcrumbs>span { display:none; }
  .top-actions a { font-size:11px; }
  .page-heading { min-height:90px; padding:19px 20px; align-items:center; }
  .page-heading h1 { font-size:23px; }
  .page-heading p { max-width:320px; font-size:11px; }
  .inbox { grid-template-columns:285px minmax(0,1fr); }
  .stats-strip { gap:10px; }
  .stat { padding:16px; }
  .stat strong { font-size:23px; }
  .full-content { padding:0 19px 24px; }
  .workflow-editor { grid-template-columns:1fr; }
  .node-list { max-height:225px; }
  .help-layout { grid-template-columns:1fr; }
  .help-collections { display:flex; gap:5px; overflow:auto; }
  .help-collections button { min-width:180px; }
  .settings-grid { grid-template-columns:1fr; }
  .demo-top nav { display:none; }
  .demo-hero h1 { font-size:54px; }
  .demo-grid { grid-template-columns:1fr 1fr; }
  .login-page { grid-template-columns:1fr; }
  .login-story { display:none; }
  .login-form { min-height:100dvh; max-width:510px; padding:36px; }
}
@media(max-width:620px) {
  .inbox { display:block; position:relative; }
  .conversation-pane { height:100%; }
  .detail-shell { display:none; height:100%; }
  .inbox.has-detail .conversation-pane { display:none; }
  .inbox.has-detail .detail-shell { display:grid; }
  .mobile-back { display:inline-flex; min-width:34px; min-height:38px; padding:4px; background:transparent; border:0; }
  .detail-header { padding:12px; gap:7px; min-height:76px; }
  .detail-header h2 { font-size:14px; }
  .detail-header p { font-size:11px; max-width:208px; }
  .detail-actions { gap:5px; margin:0 0 0 auto; }
  .detail-actions button { min-height:36px; font-size:11px; }
  .detail-actions button .icon { width:15px; height:15px; }
  .detail-actions [data-resolve-next] { display:none; }
  .detail-actions [data-own-conversation] { font-size:0; min-width:35px; }
  .detail-actions [data-own-conversation] .icon { width:17px; height:17px; }
  .thread { padding:18px 15px; }
  .thread-message { max-width:96%; margin-bottom:19px; }
  .message-bubble { font-size:14px; padding:11px 13px; }
  .message-meta { font-size:10px; }
  .thread-controls { padding:0 13px 10px; }
  .composer-wrap { padding:8px 11px max(12px,env(safe-area-inset-bottom)); }
  .composer-heading { padding:0 11px; }
  .composer-tabs { gap:14px; }
  .composer-tabs button { font-size:12px; }
  .composer textarea { font-size:16px; min-height:86px; max-height:155px; }
  .composer-footer { padding:8px 9px; }
  .composer-footer small { font-size:10px; }
  .send-actions { gap:5px; }
  .send-actions select { max-width:137px; font-size:10px; min-height:36px; }
  .send-actions button { font-size:11px; }
  .composer-tools button { font-size:11px; padding:7px; min-height:36px; }
  .quick-replies-panel { left:0; right:0; }
  .stats-strip { grid-template-columns:1fr 1fr; }
  .page-heading { align-items:flex-start; padding:18px 17px; min-height:92px; gap:12px; }
  .page-heading p { max-width:235px; }
  .heading-actions { flex-wrap:wrap; justify-content:flex-end; }
  .heading-actions .connection-state { max-width:100px; font-size:10px; }
  .workflow-card { padding:17px; gap:12px; }
  .workflow-card h3 { font-size:13px; }
  .workflow-card p { font-size:11px; }
  .flow-symbol { width:39px; height:39px; flex-shrink:0; }
  .flow-status .badge { display:none; }
  .workflow-toolbar { gap:6px; }
  .workflow-toolbar button { font-size:11px; }
  .version-select { max-width:185px; font-size:11px; }
  .node-detail { padding:18px; }
  .full-content { padding:0 14px 20px; }
  .panel-padded { padding:19px; }
  .article-item { padding:18px; }
  .article-item h3 { font-size:13px; }
  .article-item p { font-size:11px; }
  .audit-table th,.audit-table td { padding:12px 9px; font-size:11px; }
  .audit-table td:nth-child(3),.audit-table th:nth-child(3) { display:none; }
  .audit-table { table-layout:fixed; }
  .login-form { padding:25px; }
  .login-form h2 { font-size:27px; }
  .demo-top { padding:24px 20px; gap:15px; }
  .demo-logo { font-size:16px; }
  .demo-label { max-width:130px; text-align:center; font-size:8px; }
  .demo-hero { margin-top:15px; padding:27px 21px; }
  .demo-hero h1 { font-size:47px; letter-spacing:-2.5px; }
  .demo-hero>p { font-size:14px; }
  .demo-grid { grid-template-columns:1fr; gap:13px; }
  .demo-search button { min-width:110px; font-size:11px; padding:8px; }
  .demo-search input { min-width:0; font-size:14px; }
  .demo-card { min-height:150px; }
  .demo-foot { padding:20px; flex-direction:column; }
  .command-backdrop,.command-overlay { padding:7vh 12px 20px; }
}
@media(max-height:650px) and (min-width:621px) {
  .page-heading { min-height:74px; padding-top:15px; padding-bottom:15px; }
  .composer textarea { min-height:66px; max-height:120px; }
  .composer-wrap { padding-bottom:11px; }
  .detail-header { min-height:66px; padding-top:11px; padding-bottom:11px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
