:root{--conversation-copy-family:"Inter",Arial,sans-serif;--conversation-title-family:"Roboto",Arial,sans-serif;--conversation-copy-size:14px;--conversation-copy-line:21px;--conversation-heading-size:16px;--conversation-heading-line:24px;--conversation-title-size:18px;--conversation-title-line:28px;font-family:system-ui,-apple-system,sans-serif;color:#233d4a;background:#edf2f5;font-size:13px;--line:#dde6eb;--ink:#183f50;--muted:#657d89;--accent:#245f74}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit;color:inherit;border:1px solid #c9d7df;border-radius:7px;background:#fff;padding:8px 10px;min-height:36px}button{cursor:pointer;font-weight:550}button:hover{background:#eaf2f5}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}input,select,textarea{max-width:100%;min-width:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #6696af;outline-offset:2px}h1{font-size:19px;margin:0 0 4px}h2{font-size:15px;margin:0 0 12px}p{line-height:1.5}small,.subtle{color:var(--muted);font-size:11px;font-weight:400}label{display:flex;flex-direction:column;gap:5px;margin:12px 0;font-size:12px}small{line-height:1.5;display:block}.primary{white-space:nowrap}.brand{height:62px;padding:9px 18px;background:var(--ink);color:#fff;display:flex;align-items:center;gap:22px}.brand b{font-size:18px;letter-spacing:-.4px}.brand small{color:#cadfe8}.brand button{background:#2b5263;border-color:#52717f;color:white}.identity{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:12px}.fixture-badge,.pill{border:1px solid #cbdbe3;border-radius:20px;padding:3px 8px;font-size:10px}.fixture-badge{border-color:#607f8b;color:#d9e8ee}.pill{display:inline-block;background:#f0f5f8;color:#4c7181}.shell{display:grid;grid-template-columns:88px minmax(0,1fr);height:calc(100dvh - 62px)}nav{display:flex;flex-direction:column;gap:9px;background:#173d4f;padding:18px 5px;color:#caddE7}nav button{border:0;background:transparent;color:inherit;display:flex;flex-direction:column;align-items:center;font-size:9px;padding:8px 2px;gap:5px;white-space:normal}nav button b{font-size:20px;border-radius:8px;display:grid;place-items:center;width:32px;height:32px}nav button.active{color:white;background:#2c5669}nav button:hover{background:#2c5669}nav small{margin-top:auto;text-align:center;color:#9cb7c4;font-size:10px}main{min-width:0;min-height:0;position:relative;overflow:auto;background:white}.conversation-layout{display:grid;grid-template-columns:265px minmax(0,1fr) 240px;height:100%;min-height:0}.inbox{min-height:0;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fff}.section-title{display:flex;justify-content:space-between;align-items:center;padding:20px 15px 12px}.section-title h1{font-size:17px}.inbox>input{margin:0 12px 12px;width:calc(100% - 24px)}#chat-list{overflow:auto;flex:1}.thread{width:100%;border:0;border-radius:0;border-bottom:1px solid #edf1f4;text-align:left;display:flex;gap:10px;padding:15px 12px}.thread.active{background:#e8f1f5;box-shadow:inset 3px 0 #34718a}.avatar{display:grid;place-items:center;flex-shrink:0;background:#e2edf3;border-radius:50%;width:36px;height:36px;color:#3a6a80}.thread-copy{min-width:0;flex:1}.thread-copy b,.thread-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-copy small{margin:3px 0 7px}.tag{font-size:10px;padding:3px 6px;border-radius:4px;background:#f0f4f6;color:#69808c}.tag.human{background:#fff0cf;color:#82601a}.footnote{padding:12px;border-top:1px solid var(--line);font-size:10px}.chat{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f1f5f7}.chat-head{display:flex;align-items:center;gap:10px;padding:14px 18px;background:white;border-bottom:1px solid var(--line)}.chat-head>div{flex:1;min-width:0}.chat-head h2{margin:0;font-size:16px}.chat-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.control-bar{padding:9px 18px;display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--line);background:#fafcfd}.control-bar small{margin:auto 0 auto auto}.history{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;flex:1;padding:22px}.bubble{max-width:84%;padding:10px 13px;background:white;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dfe7eb;border-radius:11px;align-self:flex-start;line-height:1.5}.bubble.operador{align-self:flex-end;background:#dcebf3;border-color:#cadde7}.bubble small{font-size:10px;margin-top:5px}.bubble .role{font-size:10px;font-weight:650;color:#6b8491;margin-bottom:4px}.composer{padding:12px 18px;background:white;border-top:1px solid var(--line)}.composer label{margin:0 0 6px;font-size:11px}.composer>div{display:flex;align-items:flex-end;gap:8px}.composer textarea{flex:1;resize:vertical;min-height:44px;max-height:130px}.composer small{margin-top:6px;font-size:10px}.context{padding:22px 17px;border-left:1px solid var(--line);overflow:auto}.context p{font-size:12px;overflow-wrap:anywhere}.context button{width:100%;margin:6px 0}.context dt{font-size:11px;color:var(--muted);margin-top:18px}.context dd{margin:5px 0;overflow-wrap:anywhere}.notice-box{background:#fff3d9;border-radius:8px;padding:12px;font-size:12px;line-height:1.6}.page{padding:24px;max-width:1600px;margin:auto}.page-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.page-title p{margin:5px 0 0;color:var(--muted);font-size:12px}.page>input{width:min(400px,100%);margin-bottom:14px}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:8px;max-height:calc(100dvh - 265px)}table{border-collapse:collapse;min-width:1850px;font-size:12px}th{background:#013442;color:#fff;text-align:left;position:sticky;top:0;white-space:nowrap;font-weight:650}th,td{padding:12px 14px;border-bottom:1px solid var(--line);max-width:260px;overflow-wrap:anywhere}td:nth-child(1){white-space:nowrap}tbody tr:nth-child(even){background:#f6f9fa}.page>small{margin-top:13px}.tasks-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.card{border:1px solid var(--line);border-radius:9px;background:#fff;padding:18px}.card p{font-size:12px}.card small{margin-top:10px}.card label:first-of-type{margin-top:0}.card input,.card select{width:100%}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.task{border:1px solid var(--line);border-radius:9px;padding:15px;margin-bottom:12px;background:#fbfdfe}.task h3{font-size:14px;margin:8px 0}.task p{font-size:12px;color:var(--muted)}.task-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.task-controls select{flex:1;min-width:100px}.inline{min-height:44px;flex-direction:row;align-items:center;margin:0;white-space:nowrap}.inline input{min-height:20px;width:18px;height:18px}.settings{max-width:1300px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.settings .card{padding:16px}.settings .card h2{font-size:14px;margin-bottom:10px}.settings .card p{margin:8px 0}.member{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #edf1f3;font-size:11px}.future-heading{margin-top:26px}.future-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.future-item{border:1px dashed #ccd8de;border-radius:8px;padding:13px}.future-item h3{font-size:12px;margin:0 0 8px}.future-item p{font-size:11px;color:var(--muted)}#version{font-size:10px;color:var(--muted);margin-top:25px}.notices{position:fixed;right:12px;top:70px;bottom:15px;width:min(390px,calc(100vw - 24px));overflow:auto;z-index:20;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 48px #183f5040;padding:18px}.notices header{display:flex;justify-content:space-between;align-items:center}.notices h2{margin:0}.notices p{font-size:11px;color:var(--muted)}.notice{padding:13px 0;border-bottom:1px solid var(--line)}.notice.unseen{border-left:3px solid #31778c;padding-left:10px}.notice button{font-size:11px;margin-top:8px}.empty{color:var(--muted);padding:25px;text-align:center;line-height:1.7}#error,#toast{padding:10px 16px;margin:0;position:absolute;left:0;right:0;top:0;z-index:10;font-size:12px}#error{background:#fff0ed;color:#973d32}#toast{background:#e8f5ee;color:#2b674b}.login{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:24px;background:linear-gradient(135deg,#edf4f8,#dfeaf0)}.login-card{background:white;border:1px solid #d5e1e7;border-radius:14px;box-shadow:0 18px 60px #193f5015;padding:30px;width:430px;max-width:100%;min-width:0}.login-card h1{margin-top:15px;font-size:25px}.login-card h1 span{display:block;font-size:11px;margin-top:4px}.login-card label{margin:18px 0}.login-card button{width:100%;margin:5px 0 10px}.login-card details{margin:12px 0 20px;font-size:12px;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:1.2px;color:var(--muted)}#login-error{color:#963e34;font-size:12px}.mobile{display:none}dialog{border:1px solid var(--line);border-radius:12px;padding:22px;width:min(700px,calc(100vw - 24px));max-height:90dvh;color:inherit}dialog::backdrop{background:#173d4f66}.contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}dialog p{font-size:12px;color:var(--muted)}.readonly-note{font-size:12px;background:#f4f7f9;padding:12px;border-radius:8px}
.context-close{display:none}@media(max-width:1200px){.context-close{display:block}.conversation-layout{grid-template-columns:245px minmax(0,1fr)}.context{display:none}.context.open{display:block;position:absolute;right:0;top:0;bottom:0;width:260px;background:white;z-index:12;box-shadow:-12px 0 25px #173d4f22}.identity>span{max-width:160px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}}
@media(max-width:760px){button,input,select{min-height:44px}.brand{height:64px;padding:8px 12px;gap:8px}.brand b{font-size:16px}.fixture-badge,.identity>span{display:none}.identity{gap:6px}.brand button{font-size:11px;padding:6px 9px}.shell{display:flex;flex-direction:column;height:calc(100dvh - 64px)}nav{order:2;flex-direction:row;padding:3px 4px;gap:2px;min-height:62px;padding-bottom:max(3px,env(safe-area-inset-bottom))}nav button{flex:1;font-size:9px;min-width:0;min-height:56px;padding:4px 1px;gap:2px}nav button b{font-size:19px;height:25px}nav small{display:none}main{flex:1}.conversation-layout{display:block;height:100%}.inbox,.chat{height:100%}.chat{display:none}.conversation-layout[data-chat="true"] .inbox{display:none}.conversation-layout[data-chat="true"] .chat{display:flex}.mobile{display:inline-block}.chat-head{padding:9px 10px;gap:7px}.chat-head h2{font-size:14px}.chat-head button{font-size:11px;padding:6px}.control-bar{padding:8px 10px}.control-bar small{display:none}.control-bar button{font-size:11px;flex:1}.history{padding:14px 12px}.bubble{max-width:90%;font-size:13px}.composer{padding:10px}.composer>div button{font-size:11px;padding:8px;max-width:110px;white-space:normal}.composer textarea{width:0}.context.open{width:min(290px,100%)}.page{padding:17px 12px}.page-title{gap:8px}.page-title h1{font-size:18px}.page-title p{font-size:11px}.page-title button{font-size:11px;padding:7px}.tasks-layout{display:flex;flex-direction:column;gap:14px}.tasks-layout>section,.tasks-layout>form{width:100%}.settings-grid{grid-template-columns:1fr}.future-grid{grid-template-columns:1fr 1fr}.future-item{padding:10px}.contact-fields{grid-template-columns:1fr}.table-scroll{max-height:calc(100dvh - 290px)}.login{padding:14px}.login-card{padding:24px}.notices{top:72px;bottom:75px}.two-columns{grid-template-columns:1fr}.task-controls select{min-width:130px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s}}

/* H4 Ventry computed reference: scoped inbox typography, self-hosted OFL fonts. */
@font-face{font-family:"Inter";src:url("/assets/fonts/inter-variable.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Roboto";src:url("/assets/fonts/roboto-variable.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
.thread-copy>b{font-family:var(--conversation-copy-family);font-size:14px;font-weight:700;line-height:21px;letter-spacing:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread.unread .thread-copy>b,.thread[data-unread="true"] .thread-copy>b{font-weight:700}
.thread-copy>small{font-family:var(--conversation-copy-family);font-size:14px;font-weight:400;line-height:21px;letter-spacing:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head h2{font-family:var(--conversation-copy-family);font-size:16px;font-weight:500;line-height:24px;letter-spacing:normal}
.inbox .section-title h1{font-family:var(--conversation-title-family);font-size:18px;font-weight:500;line-height:28px;letter-spacing:normal}

/* Settings shares the existing conversation hierarchy; conversation geometry is untouched. */
#page-settings{font-family:var(--conversation-copy-family);font-size:var(--conversation-copy-size);line-height:var(--conversation-copy-line)}
#page-settings .page-title h1{font-family:var(--conversation-title-family);font-size:var(--conversation-title-size);font-weight:500;line-height:var(--conversation-title-line)}
#page-settings .card h2{font-family:var(--conversation-copy-family);font-size:var(--conversation-heading-size);font-weight:500;line-height:var(--conversation-heading-line)}
#page-settings h3{font-family:var(--conversation-copy-family);font-size:var(--conversation-copy-size);font-weight:700;line-height:var(--conversation-copy-line)}
#page-settings label,#page-settings p,#page-settings .member,#page-settings button,#page-settings input,#page-settings select,#page-settings textarea{font-family:inherit;font-size:var(--conversation-copy-size);line-height:var(--conversation-copy-line)}
#page-settings small,#page-settings .subtle{font-family:inherit;font-size:11px;line-height:16px}
@media(max-width:760px){#page-settings input:not([type=checkbox]),#page-settings select,#page-settings textarea{font-size:16px}}

#campaign-contact-selector{border-block:1px solid var(--border,#ddd);margin-block:20px;padding-block:16px}#selection-results{max-height:320px;overflow:auto}#selection-results label,#selection-products label{display:flex;gap:8px;align-items:flex-start;padding:8px 0}#selection-results input,#selection-products input,#selection-use{width:auto;flex:none}#selection-results small{display:block}.selection-actions{display:flex;gap:8px;flex-wrap:wrap}#campaign-contact-selector fieldset{border:1px solid var(--border,#ddd);border-radius:8px}

#simple-actions-panel pre{white-space:pre-wrap;overflow-wrap:anywhere}#simple-actions-panel iframe{width:100%;height:220px;border:1px solid var(--border,#ddd)}#simple-actions-panel input[type=checkbox]{width:auto}#simple-history article{border-block-end:1px solid var(--border,#ddd);padding-block:12px}
