:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;font-size:14px;color:#243b39;background:#f5f6f3;--ink:#243b39;--muted:#586b62;--line:#e7eae4;--green:#28715a;--green-light:#edf5ee;--yellow:#f2d96f;--amber:#926b2d;--radius:14px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.44}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #92b8a8;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.45;font-weight:650;letter-spacing:-1px}h2{font-size:15px;font-weight:650;display:flex;align-items:center;gap:8px}h3{font-size:13px;font-weight:650}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{height:78px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff;gap:20px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink)}.brand-mark{width:38px;height:38px;background:#254c40;color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:23px;font-weight:600;letter-spacing:-3px;padding-right:2px}.brand-mark>span{color:#f3d771;font-size:27px;align-self:flex-end;margin-bottom:5px}.brand strong{display:block;font-size:16px;font-weight:650;letter-spacing:.3px}.brand small{display:block;margin-top:5px;color:#929a94;font-size:11px;letter-spacing:1.5px}.topbar-actions{display:flex;align-items:center;gap:15px}.connection{font-size:11px;color:var(--muted)}.connection:before{content:"";display:inline-block;width:6px;height:6px;background:#b9bfba;border-radius:50%;margin:0 7px 1px 0}.connection.online:before{background:#57a781;box-shadow:0 0 0 3px #edf5ed}.connection.offline{color:#a57648}.connection.offline:before{background:#b5824d}.button{border:1px solid transparent;border-radius:8px;padding:11px 15px;font-size:13px;font-weight:550;line-height:1.3;white-space:nowrap;transition:background .12s}.button.primary{background:#2f654f;color:#fff;border-color:#2f654f}.button.primary:hover:enabled{background:#23533f}.button.secondary{background:#fff;color:#53635a;border-color:#dfe5dc}.button.secondary:hover:enabled{background:#f4f7f2}.button.compact{padding:8px 11px;font-size:11px}.full-width{width:100%}.text-button{border:0;background:transparent;color:#467660;font-size:11px;white-space:nowrap;padding:4px}.text-button:hover:enabled{text-decoration:underline}.badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;border-radius:5px;font-size:11px;line-height:1.35;border:1px solid #e8eae5;background:#f6f7f5;color:#7f887f;white-space:nowrap}.badge.development,.badge.demo{background:#fff9e8;border-color:#eee3bf;color:#998047}.badge.auto,.badge.ready,.badge.sent{background:#eef6f0;border-color:#dbe9dd;color:#4b8365}.badge.human,.badge.uncertain{background:#fff1e7;border-color:#f1ddcc;color:#a16d45}.badge.draft,.badge.queued,.badge.claimed,.badge.sending{background:#f0f3f8;border-color:#dfe5ee;color:#6b7c95}.badge.simulated{background:#f2eefb;border-color:#e4dcf3;color:#8e79ac}.badge.failed{background:#fbeeed;border-color:#eed7d4;color:#ae6b65}.badge.cancelled{color:#939b94;background:#f5f6f4}.page-shell{max-width:1760px;padding:30px 32px 0;margin:auto}.page-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:1.5px;line-height:1.5;color:#939d92;margin-bottom:6px}.page-intro .eyebrow{font-size:11px;margin-bottom:9px}.intro-copy{font-size:13px;color:#929a93;line-height:1.7;margin-top:8px}.intro-actions{display:flex;gap:9px}.notice{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#f3f2e9;border:1px solid #e7e5d7;border-radius:9px;font-size:11px;color:#8e876d;line-height:1.7;margin-bottom:21px}.notice strong{font-weight:600;color:#7d7457;margin-right:9px}.notice-symbol{font-family:Georgia,serif;flex-shrink:0;width:16px;height:16px;border:1px solid #aaa180;border-radius:50%;text-align:center;font-size:11px;line-height:15px}.alert{padding:12px 15px;border-radius:9px;font-size:13px;line-height:1.6;margin-bottom:18px;overflow-wrap:anywhere}.alert.error{background:#fff0ed;color:#a04f45;border:1px solid #edd5cf}.alert.success{background:#ebf5ef;color:#417754;border:1px solid #d9e8dd}.flow{padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:20px}.flow>div{display:flex;align-items:center;gap:10px}.flow-number{font-size:11px;font-weight:600;width:29px;height:29px;display:flex;align-items:center;justify-content:center;background:#f0f4ee;color:#82947e;border-radius:9px}.flow strong{display:block;font-size:11px;font-weight:550;line-height:1.5}.flow small{display:block;font-size:11px;color:#a0a89d;margin-top:3px}.flow-arrow{color:#c4cdc1;font-size:18px;font-weight:300}.stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px 17px;position:relative;overflow:hidden}.stat-label{font-size:11px;color:#99a195}.stat-value{font-size:27px;font-weight:550;letter-spacing:-.7px;margin-top:7px;line-height:1.2}.stat-sub{font-size:11px;color:#a7aea3;margin-top:6px}.stat.accent{background:#edf3e9;border-color:#dfe8d7}.stat.accent .stat-value{color:#627959}.stat.alert-stat .stat-value{color:#b17d50}.stat-mark{width:22px;height:22px;display:flex;align-items:center;justify-content:center;position:absolute;right:15px;top:14px;border-radius:7px;color:#9eafa0;background:#f4f6f1;font-size:11px}.stat.accent .stat-mark{background:#e0e9da;color:#7c9771}.workspace{display:grid;grid-template-columns:235px minmax(430px,1fr) 305px;align-items:start;gap:16px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;min-width:0}.panel-heading{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);min-height:76px}.count{font-size:11px;font-weight:500;background:#f0f3ec;color:#8a9a81;border-radius:5px;padding:3px 6px;min-width:21px;text-align:center;display:inline-block}.account-list{padding:13px 12px 4px;max-height:662px;overflow:auto}.account-card{border:1px solid #e5eae1;border-radius:9px;padding:12px;margin-bottom:10px;background:#fdfefd}.account-card.offline{background:#fafbf9}.account-card-title{display:flex;justify-content:space-between;gap:8px;align-items:center}.card-title{font-size:13px;font-weight:600;overflow-wrap:anywhere}.device-line{font-size:11px;color:#949f90;margin-top:7px;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}.device-icon{width:9px;height:14px;border:1px solid #9daa96;border-radius:2px;display:inline-block;flex-shrink:0}.card-meta{font-size:11px;color:#a0a89b;line-height:1.6;margin-top:7px;overflow-wrap:anywhere}.capability{font-size:11px;color:#a28d67;line-height:1.6;margin-top:5px}.account-toggles{display:flex;flex-direction:column;gap:11px;border-top:1px solid #edf0e9;padding-top:12px;margin-top:12px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#7f8a78;cursor:pointer}.toggle-row input{appearance:none;width:25px;height:14px;border-radius:20px;background:#dde3d8;position:relative;margin:0;cursor:pointer;transition:background .15s}.toggle-row input:before{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;background:white;border-radius:50%;box-shadow:0 1px 2px #0001;transition:transform .15s}.toggle-row input:checked{background:#72966b}.toggle-row input:checked:before{transform:translateX(11px)}.toggle-row input:disabled{opacity:.4;cursor:not-allowed}.panel-note{font-size:11px;color:#a5ad9f;line-height:1.8;padding:10px 16px 18px;display:flex;gap:7px;align-items:baseline}.tiny-dot{display:inline-block;flex-shrink:0;width:5px;height:5px;background:#8fac7c;border-radius:50%;margin-right:1px}.small-select{width:auto!important;max-width:125px;font-size:11px!important;padding:6px 8px!important;background:#fafbf8!important;border-color:#e8ece3!important;color:#87967d!important}.chat-workspace{display:grid;grid-template-columns:175px minmax(0,1fr);height:622px}.conversation-list{border-right:1px solid var(--line);padding:8px;overflow:auto;background:#fcfdfa}.conversation-item{display:block;width:100%;border:1px solid transparent;border-radius:8px;text-align:left;background:transparent;color:var(--ink);padding:12px 9px;margin-bottom:6px}.conversation-item:hover{background:#f3f6ef}.conversation-item.active{background:#eef3e8;border-color:#e0e8d7}.conversation-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;line-height:1.5}.avatar{width:25px;height:25px;display:flex;align-items:center;justify-content:center;background:#e9ede4;border-radius:8px;color:#8da07f;font-size:11px;flex-shrink:0}.active .avatar{background:#dce6d2;color:#789568}.conversation-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-preview{font-size:11px;color:#9ba594;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:9px}.conversation-meta{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:11px;color:#a5aea0;margin-top:9px}.conversation-meta .badge{font-size:11px;padding:2px 4px}.conversation-account{font-size:11px;color:#a2ae9b;margin-top:6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-panel{display:flex;flex-direction:column;min-width:0;height:100%}.chat-heading{padding:17px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.chat-heading h3{font-size:13px}.chat-heading p{font-size:11px;margin-top:6px}.subtle{color:#99a292;font-size:11px;line-height:1.6}.identity-note{font-size:11px;color:#a78e5c;background:#fcf8e9;padding:8px 18px;line-height:1.65}.identity-note.verified{color:#88a17c;background:#f5f8f0}.risk-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:8px 18px;background:#fdf7ef;color:#ae8660;font-size:11px}.risk-tag{border:1px solid #f0e1ce;border-radius:4px;padding:2px 5px}.messages{flex:1;min-height:200px;overflow:auto;display:flex;flex-direction:column;gap:20px;padding:20px 18px;background:#fcfdfa}.message{max-width:90%;display:flex;flex-direction:column;align-items:flex-start}.message.outgoing{align-self:flex-end;align-items:flex-end}.message-meta{font-size:11px;color:#a6afa0;margin-bottom:6px}.bubble{font-size:13px;line-height:1.85;padding:10px 12px;background:white;border:1px solid #e9ede3;border-radius:2px 10px 10px;white-space:pre-wrap;overflow-wrap:anywhere}.outgoing .bubble{background:#edf3e2;border-color:#e1eacc;border-radius:10px 2px 10px 10px}.message.notice .bubble{background:#faf5eb;border-color:#efe5d3;color:#a08861}.message-source{font-size:11px;line-height:1.6;color:#aeb6a7;margin-top:5px;overflow-wrap:anywhere}.chat-empty{margin:auto;text-align:center;font-size:11px;color:#a1ac97;line-height:1.9}.chat-empty>span{display:block;font-size:37px;line-height:1.5;color:#c4d0b8;margin-bottom:9px}.chat-footnote{display:flex;justify-content:space-between;gap:10px;padding:12px 17px;border-top:1px solid var(--line);font-size:11px;color:#aab3a2}.assistant-content{padding:15px}.mode-card{padding:12px;background:#f5f7f1;border:1px solid #e8edde;border-radius:9px}.mode-card.human{background:#fcf6ef;border-color:#eee1d0}.mode-card.human .tiny-dot{background:#c6a176}.mode-card-heading{display:flex;align-items:center;gap:5px}.mode-card h3{font-size:11px}.mode-card p{font-size:11px;line-height:1.7;color:#9aa590;margin-top:6px}.mode-buttons{display:grid;grid-template-columns:1fr 1fr 1.3fr;margin-top:12px;border:1px solid #dde5d4;border-radius:6px;overflow:hidden}.mode-buttons button{font-size:11px;padding:7px 0;background:#fff;border:0;color:#87987a;min-width:0}.mode-buttons button+button{border-left:1px solid #dde5d4}.mode-buttons button.active{background:#e2ebd7;color:#65834f;font-weight:600}.mode-buttons button[data-mode=human].active{background:#f4e7d7;color:#a98454}.field-label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:16px 0 7px;font-size:11px;color:#7d8a73}.field-label .subtle{font-size:11px}textarea,input[type=text],input[type=url],input[type=password],input[type=number],select{width:100%;border:1px solid #dfe5d8;border-radius:7px;padding:10px;background:#fff;color:#4b5a42;font-size:13px;line-height:1.6;min-width:0}textarea{resize:vertical;min-height:70px}textarea:disabled{background:#fafbf8}input::placeholder,textarea::placeholder{color:#b5bcae;font-size:11px}.draft-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0 15px}.draft-actions .subtle{font-size:11px}.small-note{font-size:11px;line-height:1.75;color:#a0aa95;margin:8px 0 0;overflow-wrap:anywhere}.divider{height:1px;background:var(--line);margin:19px 0}.config-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.config-heading h3{font-size:11px}.consent{display:flex;align-items:flex-start;gap:7px;line-height:1.8;font-size:11px;color:#97a18c;margin:14px 0 12px;cursor:pointer}.consent input{accent-color:#719260;flex-shrink:0;margin:3px 0 0;width:12px;height:12px}.action-status{font-size:11px;line-height:1.7;color:#839573;margin-top:10px;overflow-wrap:anywhere}.action-status:empty{display:none}.action-status.error,.form-status.error{color:#af7562}.action-status.success,.form-status.success{color:#6d945e}.empty{padding:25px 12px;text-align:center;font-size:11px;line-height:1.8;color:#a2ac98}.operations-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;margin-top:22px}.section-description{font-size:11px;color:#a0ab96;padding:14px 18px 0;line-height:1.7}.rule-list{padding:11px 16px 17px;max-height:362px;overflow:auto}.rule-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0e7;padding:13px 2px}.rule-card:last-child{border-bottom:0}.rule-card.disabled{opacity:.6}.rule-card-main{min-width:0}.rule-card-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.rule-card-title h3{font-size:11px}.rule-keywords{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.keyword{font-size:11px;line-height:1.5;padding:2px 6px;border-radius:4px;background:#f3f6ee;color:#98a68b}.rule-preview{font-size:11px;line-height:1.7;color:#a3ad9b;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.rule-priority{font-size:11px;color:#b0b9a7;margin-top:6px}.rule-card .text-button{margin-top:1px}.form-content{padding:2px 18px 18px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.form-footer .subtle{font-size:11px}.form-content textarea{min-height:76px}.outbox-panel{margin-top:22px}.outbox-panel .panel-heading{min-height:72px}.outbox-panel .panel-heading>.subtle{font-size:11px}.table-scroll{overflow:auto;max-height:420px}table{border-collapse:collapse;width:100%;text-align:left;font-size:11px;min-width:700px}thead{background:#fafbf7}th{color:#a0aa95;font-weight:500;font-size:11px;padding:11px 18px;border-bottom:1px solid var(--line)}td{padding:13px 18px;border-bottom:1px solid #edf0e8;color:#8d9b80;vertical-align:middle}tbody tr:last-child td{border-bottom:0}.outbox-text{color:#7f8d73;font-size:11px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-width:430px;max-height:70px;overflow:auto}.outbox-peer{font-size:11px;color:#acb59f;margin-top:5px}.outbox-note{max-width:280px;overflow-wrap:anywhere;font-size:11px;line-height:1.8}.page-footer{padding:20px 1px 22px;display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#afb7a6;line-height:1.8}.footer-dot{margin:0 6px}dialog{padding:0;width:480px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);border:1px solid #e0e7d8;border-radius:15px;color:var(--ink);background:#fff;box-shadow:0 18px 70px #29332625}dialog::backdrop{background:#1b292651;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:20px 24px}.close-button{background:#f3f6ee;border:0;border-radius:7px;width:28px;height:28px;font-size:21px;color:#8b9b7c;line-height:1}.dialog-body{padding:18px 24px 20px}.dialog-body>.field-label:first-child{margin-top:0}.dialog-body>.subtle{font-size:11px;line-height:1.9}.dialog-footer{border-top:1px solid var(--line);padding:15px 24px;display:flex;justify-content:flex-end;gap:8px;background:#fcfdf9}.form-status{font-size:11px;line-height:1.7;color:#889979;margin-top:12px;overflow-wrap:anywhere}.form-status:empty{display:none}.token-notice{padding:11px 13px;border-radius:7px;background:#fbf5e2;color:#a38e54;font-size:11px;line-height:1.7;margin-top:15px}#device-token{font:12px/1.7 ui-monospace,SFMono-Regular,monospace;word-break:break-all;margin-bottom:12px}#token-device-name{font-size:13px;color:#7a8f69;line-height:1.7}input[type=number]{padding:9px 10px}
@media(min-width:1550px){.workspace{grid-template-columns:255px minmax(430px,1fr) 330px}.chat-workspace{grid-template-columns:200px minmax(0,1fr)}.panel-heading{padding-left:20px;padding-right:20px}.assistant-content{padding:18px}.account-list{padding:15px}.stat{padding:18px 20px}}
@media(max-width:1220px){.workspace{grid-template-columns:210px minmax(430px,1fr)}.assistant-panel{grid-column:1/-1}.assistant-content{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:0 22px;align-items:start}.mode-card{grid-column:1;grid-row:1/5}.assistant-content>.action-status{grid-column:1;grid-row:5/9}.assistant-content>.field-label{grid-column:2;grid-row:1;margin-top:0}.assistant-content>textarea{grid-column:2;grid-row:2/5}.draft-actions{grid-column:2;grid-row:5}.assistant-content>#reply-button{grid-column:2;grid-row:6}.assistant-content>#reply-help{grid-column:2;grid-row:7}.assistant-content>.divider{display:none}.assistant-content>.config-heading{grid-column:3;grid-row:1}.assistant-content>.consent{grid-column:3;grid-row:2}.assistant-content>#generate-button{grid-column:3;grid-row:3}.assistant-content>#ai-help{grid-column:3;grid-row:4/8}.flow{padding:15px}.flow>div{gap:7px}.flow-number{width:24px;height:24px;font-size:11px}.flow strong{font-size:11px}.flow small{font-size:11px}.stats{gap:10px}.stat{padding:15px 13px}.stat-mark{display:none}.chat-workspace{height:550px}.account-list{max-height:563px}}
@media(max-width:850px){.topbar{padding:0 20px}.page-shell{padding:23px 20px 0}.page-intro{align-items:flex-start}h1{font-size:24px}.intro-actions{flex-direction:column}.flow{gap:8px;overflow:auto;justify-content:flex-start}.flow>div{min-width:119px}.flow-arrow{font-size:14px}.flow-number{display:none}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.stat{padding:14px 16px}.stat-mark{display:flex}.stat-value{font-size:25px}.workspace{grid-template-columns:190px minmax(0,1fr);gap:12px}.chat-workspace{grid-template-columns:140px minmax(0,1fr)}.panel-heading{padding:15px 13px}h2{font-size:13px}.conversation-item{padding:11px 6px}.conversation-title{font-size:11px}.conversation-meta{font-size:11px}.assistant-content{grid-template-columns:1fr 1.2fr;gap:0 22px}.mode-card{grid-column:1;grid-row:1/5}.assistant-content>.config-heading{grid-column:1;grid-row:5;margin-top:20px}.assistant-content>.consent{grid-column:1;grid-row:6}.assistant-content>#generate-button{grid-column:1;grid-row:7}.assistant-content>#ai-help{grid-column:1;grid-row:8}.assistant-content>.action-status{grid-column:2;grid-row:8}.operations-grid{grid-template-columns:1fr 1fr;gap:12px}.form-row{grid-template-columns:1fr;gap:0}.form-footer{flex-direction:column;align-items:flex-start}.form-footer button{width:100%}.rule-list{max-height:530px}.account-card{padding:10px}.account-card-title{flex-wrap:wrap}.topbar-actions{gap:10px}.chat-heading{padding:15px 12px}.messages{padding:18px 12px}.small-select{max-width:96px}.intro-copy{max-width:330px}.chat-footnote{padding:10px 12px;flex-wrap:wrap}.notice{align-items:flex-start}.notice-symbol{margin-top:2px}}
@media(max-width:660px){.topbar{min-height:75px;height:auto;padding:16px;align-items:center}.brand{gap:8px}.brand strong{font-size:13px}.brand small{font-size:11px;letter-spacing:1px}.brand-mark{width:32px;height:32px;font-size:21px;border-radius:10px}.topbar-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:130px}.topbar-actions>.badge{display:none}.connection{font-size:11px;white-space:nowrap}.topbar-actions .button{font-size:11px;padding:6px 10px}.page-shell{padding:20px 12px 0}.page-intro{display:block;margin-bottom:18px}h1{font-size:23px;letter-spacing:-.6px}.page-intro .eyebrow{font-size:11px}.intro-copy{font-size:11px;max-width:100%}.intro-actions{flex-direction:row;margin-top:17px;gap:9px}.intro-actions .button{font-size:11px}.notice{font-size:11px;padding:11px;line-height:1.9;margin-bottom:15px}.notice strong{margin-right:6px}.flow{margin-bottom:15px;padding:13px;gap:14px}.flow>div{min-width:105px}.flow small{font-size:11px}.stats{gap:8px;margin-bottom:17px}.stat{padding:13px 12px}.stat-label{font-size:11px}.stat-value{font-size:24px}.stat-sub{font-size:11px}.stat-mark{display:none}.workspace{grid-template-columns:minmax(0,1fr)}.accounts-panel{grid-column:1}.account-list{display:flex;gap:10px;max-height:none;overflow:auto;padding:12px}.account-card{min-width:208px;max-width:208px;margin:0}.account-card-title{flex-wrap:nowrap}.panel-note{padding:0 14px 12px}.conversations-panel{grid-column:1}.chat-workspace{display:flex;flex-direction:column;height:575px}.conversation-list{display:flex;gap:7px;padding:8px;max-height:135px;flex-shrink:0;border-right:0;border-bottom:1px solid var(--line)}.conversation-item{min-width:150px;width:150px;margin:0;padding:9px}.conversation-title{font-size:11px}.conversation-account{font-size:11px}.conversation-preview{margin-top:6px}.conversation-meta{margin-top:7px;font-size:11px}.chat-panel{min-height:0;flex:1}.chat-heading{padding:14px 16px}.messages{padding:18px 16px;min-height:0}.chat-footnote{padding:11px 16px}.assistant-panel{grid-column:1}.assistant-content{display:block;padding:15px}.assistant-content>.field-label{margin-top:17px}.assistant-content>.divider{display:block}.assistant-content>.config-heading{margin-top:0}.assistant-content>.action-status{margin-top:10px}.assistant-content>#reply-help{margin-top:8px}.operations-grid{grid-template-columns:1fr;margin-top:16px;gap:16px}.form-row{grid-template-columns:1fr 1fr;gap:10px}.form-footer{flex-direction:row;align-items:center}.form-footer button{width:auto;font-size:11px}.rule-list{max-height:350px}.outbox-panel{margin-top:16px}.outbox-panel .panel-heading{align-items:flex-start;flex-direction:column;gap:8px}.page-footer{flex-direction:column;gap:3px;padding:18px 2px;font-size:11px}.dialog-heading{padding:18px}.dialog-body{padding:16px 18px}.dialog-footer{padding:14px 18px}.identity-note,.risk-tags{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Readable type and contrast across the desktop and compact workspaces. */
body{color:#243b39}
.button,.button.compact,.text-button,.small-select,.field-label,.toggle-row,.consent,.conversation-title,.rule-card-title h3,.config-heading h3,.mode-card h3,.mode-buttons button{font-size:13px}
.small-select{font-size:13px!important;color:#586b62!important}
textarea,input[type=text],input[type=url],input[type=password],input[type=number],select{font-size:13px;color:#243b39}
input::placeholder,textarea::placeholder{font-size:13px;color:#758176}
.bubble,.outbox-text,.rule-preview,.mode-card p,.dialog-body>.subtle{font-size:13px;line-height:1.8}
.brand small{font-size:11px;letter-spacing:.8px}
.eyebrow,.page-intro .eyebrow{font-size:11px;letter-spacing:1px}
.intro-copy,.notice,.notice-symbol,.stat-label,.stat-sub,.stat-mark,.device-line,.card-meta,.capability,.panel-note,.conversation-account,.conversation-preview,.conversation-meta,.conversation-meta .badge,.chat-heading p,.identity-note,.risk-tags,.message-meta,.message-source,.chat-footnote,.subtle,.field-label .subtle,.draft-actions .subtle,.small-note,.action-status,.section-description,.keyword,.rule-priority,.form-footer .subtle,.outbox-panel .panel-heading>.subtle,.outbox-peer,.outbox-note,.page-footer,.badge,.count,.empty,th,td{font-size:11px}
.connection,.intro-copy,.eyebrow,.brand small,.stat-label,.stat-sub,.device-line,.card-meta,.panel-note,.conversation-account,.conversation-preview,.conversation-meta,.chat-heading p,.message-meta,.message-source,.chat-footnote,.subtle,.small-note,.section-description,.rule-priority,.outbox-peer,.outbox-note,.page-footer,.field-label,.toggle-row,.consent,.mode-card p,.rule-preview,th,td{color:#586b62}
.flow strong,.flow small{font-size:11px}.flow small{color:#586b62}
.flow-number{color:#586b62}.stat-mark{color:#586b62}
.keyword,.count{color:#536a47}.identity-note.verified{color:#55724c}
.capability,.notice,.identity-note{color:#816329}.notice strong{color:#705628}
.empty,.outbox-text{color:#586b62}.badge{color:#586b62}.badge.development,.badge.demo{color:#806629}.badge.auto,.badge.ready,.badge.sent{color:#396a4d}.badge.human,.badge.uncertain{color:#875325}.badge.draft,.badge.queued,.badge.claimed,.badge.sending{color:#506583}.badge.simulated{color:#775698}.badge.failed{color:#96514d}
.account-toggles{gap:12px}.toggle-row{line-height:1.6}.toggle-row input{flex-shrink:0}.mode-buttons button{padding:8px 0}.draft-actions{align-items:flex-start}.draft-actions>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px}.conversation-meta{flex-wrap:wrap;gap:5px}.conversation-meta .badge{font-size:11px}.conversation-item{padding-top:13px;padding-bottom:13px}.conversation-title{line-height:1.6}.chat-footnote{flex-wrap:wrap;line-height:1.6}.outbox-panel .panel-heading>.subtle{max-width:400px}.rule-preview{max-width:100%}
@media(max-width:850px){.small-select{max-width:120px}.conversation-title{font-size:13px}.panel-heading{flex-wrap:wrap}.topbar-actions .button{font-size:13px}.intro-copy{font-size:13px}}
@media(max-width:660px){.brand small{font-size:11px;letter-spacing:0}.brand strong{font-size:13px}.connection{font-size:11px}.topbar-actions .button,.intro-actions .button,.form-footer button{font-size:13px}.intro-copy{font-size:13px}.notice{font-size:11px}.flow>div{min-width:125px}.conversation-list{max-height:155px}.conversation-item{min-width:170px;width:170px}.conversation-title{font-size:13px}.conversation-account,.conversation-meta,.flow small,.page-footer{font-size:11px}.form-footer{flex-wrap:wrap}.account-card{min-width:230px;max-width:230px}.stats .stat-label,.stats .stat-sub{font-size:11px}.stat{padding:13px 10px}.topbar{gap:9px}.topbar-actions{max-width:122px}.brand{gap:7px}.page-footer{line-height:1.8}}

/* Network phone setup and the authenticated management workspace. */
.auth-panel{max-width:450px;margin:72px auto;padding:30px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 30px #243b3906}
.auth-panel h1{font-size:24px;letter-spacing:-.5px}.auth-panel>p:not(.eyebrow){font-size:13px;color:#586b62;line-height:1.8;margin-top:12px}.auth-panel .button{margin-top:18px}.auth-panel .form-status.error{color:#96514d}
.network-setup{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;border:1px solid #dbe6de;border-radius:12px;background:#f1f7f2;margin-bottom:20px}.network-setup h2{font-size:14px}.network-setup p{font-size:13px;color:#486353;line-height:1.8;overflow-wrap:anywhere;margin-top:5px}.network-setup .small-note{font-size:12px;max-width:920px}.network-setup .button{display:inline-flex;text-decoration:none;align-items:center;justify-content:center}
.device-health{display:grid;grid-template-columns:60px minmax(0,1fr);gap:6px 8px;font-size:13px;line-height:1.6;margin:8px 0;padding-top:10px;border-top:1px solid #edf0e9}.device-health dt{color:#586b62}.device-health dd{margin:0;color:#243b39;overflow-wrap:anywhere}.health-snapshot,.health-note{font-size:11px;line-height:1.7;color:#586b62;margin-top:9px;overflow-wrap:anywhere}.health-note.warning{color:#96514d}.health-snapshot{font-weight:600}.device-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:10px;flex-wrap:wrap}.device-actions .text-button{font-size:13px;padding:5px 0}.danger-text{color:#96514d}.button.danger{background:#9a5046;color:#fff;border-color:#9a5046}.button.danger:hover:enabled{background:#813f36}
.pairing-steps{padding-left:20px;font-size:13px;line-height:1.9;color:#586b62;margin:14px 0}.pairing-steps li+li{margin-top:4px}#pairing-device-name{font-size:14px;line-height:1.7;color:#335d49;overflow-wrap:anywhere}#pairing-code{font:600 21px/1.6 ui-monospace,SFMono-Regular,monospace;letter-spacing:2px;margin-bottom:10px;background:#f4f8f1}#pairing-origin{font-size:13px;background:#fafcf8}#pairing-dialog .small-note,#pairing-dialog .token-notice,#revoke-dialog .small-note{font-size:13px}.revoke-device-name{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;background:#fcf4ee;border-radius:7px;padding:12px}
@media(max-width:850px){.network-setup{align-items:flex-start;gap:16px}.network-setup .button{margin-top:2px}}
@media(max-width:660px){.auth-panel{margin:36px 14px;padding:24px}.network-setup{flex-direction:column;padding:16px;gap:12px}.network-setup .button{width:100%}.network-setup p{font-size:13px}.device-health{font-size:13px}.topbar-actions #logout-button{font-size:12px;padding:3px 5px}.topbar-actions{max-width:145px}#pairing-code{font-size:19px;letter-spacing:1px}.dialog-footer .button{white-space:normal;line-height:1.5}}

/* Compact device navigation and customer conversations share one workspace. */
.workspace{grid-template-columns:minmax(0,1fr) 288px;gap:16px}
.conversations-panel,.assistant-panel{grid-column:auto}
.chat-workspace{display:grid;grid-template-columns:190px 235px minmax(0,1fr);height:650px;min-height:0}
.accounts-panel,.customer-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border-right:1px solid var(--line);background:#fcfdfa;grid-column:auto}
.list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:14px 12px 10px;flex-shrink:0}
.list-heading h3{font-size:13px;line-height:1.6;min-width:0}
.list-heading .count{flex-shrink:0}
.device-search{padding:0 10px 10px;flex-shrink:0}
.device-search input{appearance:none;width:100%;min-width:0;border:1px solid #dfe5d8;border-radius:7px;padding:7px 9px;background:#fff;color:var(--ink);font-size:12px;line-height:1.6}
.device-search input::placeholder{font-size:11px}
.list-legend{display:flex;justify-content:space-between;gap:8px;padding:0 14px 8px;color:var(--muted);font-size:10px;line-height:1.6;flex-shrink:0}
.account-list{display:block;flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:0 7px 7px;scrollbar-width:thin;scrollbar-gutter:stable}
.account-card,.account-card.offline{width:100%;min-width:0;max-width:none;margin:0 0 5px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent}
.account-card:hover{background:#f3f6ef}
.account-card.active{background:#edf4e9;border-color:#d9e6d4}
.account-row{display:flex;align-items:center;min-width:0;min-height:60px}
.account-select{display:flex;align-items:center;gap:8px;min-width:0;flex:1;align-self:stretch;border:0;border-radius:7px;background:transparent;padding:9px 3px 9px 9px;color:var(--ink);text-align:left}
.account-select .device-icon{width:10px;height:17px;border-color:#7f9586}
.account-names{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.account-device-name,.account-alias{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.account-device-name{font-size:12px;font-weight:600}
.account-alias{font-size:11px;color:var(--muted)}
.unreplied-count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:21px;height:21px;padding:0 5px;border-radius:6px;background:#fff0d9;color:#98651f;font-size:11px;font-weight:650;line-height:1}
.unreplied-count.zero{background:#edf0eb;color:#859080;font-weight:500}
.account-expand{align-self:stretch;flex-shrink:0;width:23px;padding:0;border:0;border-radius:0 7px 7px 0;background:transparent;color:#70826d;font-size:19px;line-height:1}
.account-expand:hover{background:#e3eddd}
.account-expand[aria-expanded=true]{color:#335d49}
.account-details{padding:11px 10px 13px;margin:0 8px 8px;border-top:1px solid #dfe7da;max-height:330px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.account-details .account-card-title{flex-wrap:wrap;gap:5px}
.account-details .card-meta{margin-top:7px}
.account-details .device-health{grid-template-columns:58px minmax(0,1fr);font-size:11px;gap:5px 8px;margin:9px 0}
.account-details .device-actions{gap:5px}
.account-details .text-button,.account-details .toggle-row{font-size:11px}
.account-details .toggle-row{line-height:1.6}
.account-details .account-toggles{gap:10px;margin-top:10px;padding-top:10px}
.accounts-panel .panel-note{display:block;flex-shrink:0;padding:9px 12px;border-top:1px solid var(--line);font-size:11px;line-height:1.8;background:#fff;max-height:180px;overflow:auto}
.panel-note summary{cursor:pointer;color:#586b62}
.panel-note summary:hover{color:#28715a}
.panel-note summary:focus-visible{outline:3px solid #92b8a8;outline-offset:3px;border-radius:3px}
.panel-note p{padding-top:7px}
.list-subtitle{padding:0 12px 11px;color:var(--muted);font-size:11px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.conversation-list{display:block;flex:1;min-height:0;max-height:none;padding:0 8px 10px;overflow:auto;border:0;background:transparent;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}
.conversation-group-label{position:sticky;top:0;z-index:1;margin:0;padding:9px 4px 7px;font-size:10px;font-weight:600;letter-spacing:.3px;color:#7c8b77;background:#fcfdfa}
.conversation-item{width:100%;min-width:0;max-width:none;margin:0 0 6px;padding:11px 9px;border-radius:8px}
.conversation-title{gap:7px;font-size:13px;line-height:1.6}
.conversation-name{flex:1;min-width:0}
.conversation-item[data-notice-key^="peer:"] .conversation-name{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.conversation-title .unreplied-count{margin-left:auto}
.conversation-context{display:flex;flex-direction:column;gap:4px;margin-top:9px}
.context-line{display:flex;align-items:baseline;gap:5px;min-width:0;font-size:11px;line-height:1.6;color:#586b62}
.context-author{flex-shrink:0;max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7b8975}
.context-text{display:block;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-meta{margin-top:9px;gap:5px;font-size:10px}
.conversation-meta .badge{font-size:10px;padding:2px 4px}
.chat-panel{height:100%;min-height:0;min-width:0}
.chat-heading{padding:16px;flex-shrink:0;border-bottom:1px solid #f0f2ec}
.chat-heading>div{min-width:0}
.chat-heading h3,.chat-heading p{overflow-wrap:anywhere}
.identity-note,.risk-tags{flex-shrink:0;padding-left:16px;padding-right:16px}
.messages{min-height:0;padding:18px 16px;gap:16px;overscroll-behavior:contain;scrollbar-width:thin}
.message{max-width:94%}
.messages .message.notice{padding:12px;margin:0;gap:0;font-size:11px}
.chat-footnote{padding:11px 16px;flex-shrink:0;line-height:1.6}
.assistant-content{display:block;padding:15px}
.assistant-content>.field-label{margin-top:16px}
.assistant-content>.divider{display:block}
.assistant-content>.config-heading{margin-top:0}
@media(min-width:1550px){.workspace{grid-template-columns:minmax(0,1fr) 305px}.chat-workspace{grid-template-columns:210px 270px minmax(0,1fr)}.account-select{padding-left:10px}.account-device-name{font-size:13px}.account-expand{width:27px}}
@media(max-width:1150px) and (min-width:1051px){.chat-workspace{grid-template-columns:170px 205px minmax(0,1fr)}.workspace{grid-template-columns:minmax(0,1fr) 270px}.list-heading{padding-left:10px;padding-right:10px}.conversation-item{padding-left:7px;padding-right:7px}.account-select{gap:6px;padding-left:7px}.account-expand{width:21px}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr)}.assistant-panel{grid-column:1/-1}.chat-workspace{grid-template-columns:190px 245px minmax(0,1fr)}.assistant-content{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:0 22px;align-items:start}.mode-card{grid-column:1;grid-row:1/5}.assistant-content>.action-status{grid-column:1;grid-row:5/9}.assistant-content>.field-label{grid-column:2;grid-row:1;margin-top:0}.assistant-content>textarea{grid-column:2;grid-row:2/5}.draft-actions{grid-column:2;grid-row:5}.assistant-content>#reply-button{grid-column:2;grid-row:6}.assistant-content>#reply-help{grid-column:2;grid-row:7}.assistant-content>.divider{display:none}.assistant-content>.config-heading{grid-column:3;grid-row:1}.assistant-content>.consent{grid-column:3;grid-row:2}.assistant-content>#generate-button{grid-column:3;grid-row:3}.assistant-content>#ai-help{grid-column:3;grid-row:4/8}}
@media(max-width:850px){.chat-workspace{grid-template-columns:175px 210px minmax(0,1fr)}.list-heading{padding-left:10px;padding-right:10px}.conversation-item{padding-left:7px;padding-right:7px}.assistant-content{grid-template-columns:1fr 1.2fr;gap:0 22px}.assistant-content>.config-heading{grid-column:1;grid-row:5;margin-top:20px}.assistant-content>.consent{grid-column:1;grid-row:6}.assistant-content>#generate-button{grid-column:1;grid-row:7}.assistant-content>#ai-help{grid-column:1;grid-row:8}.assistant-content>.action-status{grid-column:2;grid-row:8}}
@media(max-width:760px){.chat-workspace{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.15fr);grid-template-rows:320px 460px;height:auto}.accounts-panel{grid-column:1;grid-row:1}.customer-panel{grid-column:2;grid-row:1;border-right:0}.chat-panel{grid-column:1/-1;grid-row:2;height:460px;border-top:1px solid var(--line)}.account-list,.conversation-list{display:block;max-height:none;min-height:0}.account-card{min-width:0;max-width:none}.conversation-item{min-width:0;width:100%;margin-bottom:6px}.assistant-content{display:block;padding:15px}.assistant-content>.field-label{margin-top:17px}.assistant-content>.divider{display:block}.assistant-content>.config-heading{margin-top:0}.assistant-content>.action-status{margin-top:10px}.assistant-content>#reply-help{margin-top:8px}.account-details{max-height:230px}}
@media(max-width:460px){.chat-workspace{grid-template-columns:168px minmax(0,1fr);grid-template-rows:300px 460px}.accounts-panel,.customer-panel{max-height:300px}.list-heading{gap:4px;padding:12px 8px 9px;min-height:46px}.list-heading h3{font-size:12px}.list-heading .count{min-width:18px;padding:2px 4px;font-size:10px}.device-search{padding:0 7px 8px}.list-legend{padding-left:10px;padding-right:10px}.account-list{padding-left:4px;padding-right:4px;scrollbar-gutter:auto}.account-select{gap:6px;padding-left:6px}.account-select .device-icon{width:9px;height:15px}.account-expand{width:20px}.account-device-name{font-size:11px}.account-alias{font-size:10px}.unreplied-count{min-width:19px;height:19px;font-size:10px;padding:0 4px}.accounts-panel .panel-note{padding-left:9px;padding-right:9px;max-height:130px}.list-subtitle{padding-left:9px;padding-right:9px;font-size:10px}.conversation-list{padding-left:4px;padding-right:4px;scrollbar-gutter:auto}.conversation-item{padding:9px 6px}.conversation-title{gap:5px;font-size:12px}.avatar{width:22px;height:22px;border-radius:6px;font-size:10px}.conversation-context{gap:3px}.context-line{font-size:10px;gap:4px}.conversation-meta{font-size:10px;gap:4px}.conversation-meta .badge{font-size:9px}.account-details{padding-left:6px;padding-right:6px;margin-left:5px;margin-right:5px}}

#ai-dialog{width:600px;overflow:hidden}
#ai-config-form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}
#ai-dialog .dialog-heading,#ai-dialog .dialog-footer{flex-shrink:0}
#ai-dialog .dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#ai-reply-constraints{min-height:182px;line-height:1.75}
.ai-constraints-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#ai-constraints-count{flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}
#ai-config-form input:disabled{background:#fafbf8}

/* Chat-page history stays separate from notification previews and live messages. */
.conversation-peer-key{margin-top:6px;font-size:11px;line-height:1.6;color:#586b62;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.chat-tabs{display:flex;align-items:stretch;gap:4px;padding:0 12px;border-bottom:1px solid var(--line);flex-shrink:0;background:#fff}
.chat-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:#586b62;padding:11px 7px;font-size:13px;line-height:1.5;display:flex;align-items:center;gap:6px}.chat-tab.active{border-bottom-color:#2f654f;color:#2f654f;font-weight:600}.chat-tab .count{font-size:11px;padding:1px 5px}
.chat-content-pane{display:flex;flex:1;min-height:0;flex-direction:column}.context-pane{background:#f8fbf7}.context-content{flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere}
.context-overview{background:#fff;border:1px solid #e2e9df;border-radius:9px;padding:13px}.context-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.context-heading h3{font-size:14px}.context-heading .badge{white-space:normal;font-size:12px}.context-boundary,.context-time-note{font-size:12px;color:#586b62;line-height:1.8;margin-top:9px}.context-identity{display:grid;grid-template-columns:96px minmax(0,1fr);gap:7px 8px;font-size:12px;line-height:1.7;margin:13px 0}.context-identity dt{color:#586b62}.context-identity dd{margin:0;color:#243b39;overflow-wrap:anywhere}.context-counts{display:flex;flex-wrap:wrap;gap:6px}.context-counts .badge{font-size:11px}.context-merge-warning{padding:12px;margin-top:13px;border:1px solid #efddbf;border-radius:8px;background:#fff6e8;font-size:13px;color:#815e29;line-height:1.8}.context-section-title{font-size:13px;margin:18px 0 12px;color:#3d5e49}.context-message-list{display:flex;flex-direction:column;gap:14px}.context-chat-message .bubble{font-size:13px;line-height:1.8}.context-chat-message .message-meta,.context-chat-message .message-source{font-size:11px;line-height:1.6}.context-segment{margin-top:10px;border:1px solid #e8dfd0;border-radius:8px;padding:11px;background:#fffdf9}.context-segment>summary{font-size:13px;line-height:1.8;color:#815e29;cursor:pointer}.context-segment-note{font-size:12px;color:#586b62;line-height:1.8;margin:10px 0 14px}.assistant-content>#ai-context-scope{font-size:12px;line-height:1.8;padding:9px;background:#f3f7f1;border-radius:7px}
@media(max-width:1050px) and (min-width:851px){.assistant-content>#ai-context-scope{grid-column:3;grid-row:2}.assistant-content>.consent{grid-row:3}.assistant-content>#generate-button{grid-row:4}.assistant-content>#ai-help{grid-row:5/9}}
@media(max-width:850px) and (min-width:761px){.assistant-content>#ai-context-scope{grid-column:1;grid-row:6}.assistant-content>.consent{grid-row:7}.assistant-content>#generate-button{grid-row:8}.assistant-content>#ai-help{grid-row:9}}
@media(max-width:760px){.context-content{padding:13px}.context-overview{padding:12px}.chat-tabs{padding-left:10px;padding-right:10px}.chat-tab{font-size:13px}.context-identity{grid-template-columns:96px minmax(0,1fr)}}
.context-overview{padding:10px 12px}.context-heading .badge{font-size:11px}.context-peer-key{font-size:12px;line-height:1.6;color:#3d5e49;margin:7px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-counts{gap:5px}.context-counts .badge{padding:3px 5px}.context-boundary{margin-top:7px;line-height:1.6}.context-archive{margin-top:7px}.context-archive>summary{font-size:12px;line-height:1.6;color:#467660;cursor:pointer}.context-archive .context-identity{margin:10px 0}.context-archive .context-time-note{margin-top:8px}.context-section-title{margin:13px 0 10px}
.context-rebuild{margin-top:10px;padding:12px;background:#f1f7f2;border:1px solid #dbe6de;border-radius:8px}.context-rebuild p{font-size:12px;line-height:1.8;margin:7px 0 10px;color:#486353}.context-rebuild .button{white-space:normal;text-align:left}.context-history-archive{margin-top:18px;border-top:1px solid #dfe5dc;padding-top:12px}.context-history-archive>summary{font-size:13px;line-height:1.8;color:#467660;cursor:pointer}.context-segment.archived{background:#f5f6f3;border-color:#e2e7df}
.mode-card .delivery-status{margin-top:11px;padding-top:9px;border-top:1px solid #e4dfd2;font-size:12px;line-height:1.75;color:#815e29}.mode-card .delivery-status.ready{color:#396a4d}.badge.observed{background:#edf5f6;border-color:#d3e4e7;color:#3d6770;white-space:normal;line-height:1.6}.badge.uncertain{white-space:normal}

/* Keep collection failures visible even while scrolling older chat history. */
.inbox-card-summary{font-size:10px;line-height:1.6;margin:0 9px 7px;color:#486354}
#inbox-dialog{width:680px;overflow:hidden}
#inbox-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 44px)}
#inbox-dialog .dialog-heading,#inbox-dialog .dialog-footer{flex-shrink:0}
#inbox-dialog .dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#inbox-items{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.inbox-item{border:1px solid var(--line);border-radius:9px;padding:13px;background:#fafcf8;overflow-wrap:anywhere}
.inbox-item-heading{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:13px}
.inbox-message{font-size:13px;line-height:1.8;white-space:pre-wrap;margin:10px 0}
.inbox-item textarea{margin-top:10px;min-height:66px}
.inbox-item .button{margin-top:7px;white-space:normal}
.badge.reviewed{display:table;margin-top:6px;background:#eef3f7;border-color:#dbe4ed;color:#516d83}.operator-review-button{margin-top:9px}.operator-review-record{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;color:#486354}#operator-review-dialog{width:560px;overflow:hidden}#operator-review-form{display:flex;flex-direction:column;max-height:calc(100dvh - 44px)}#operator-review-dialog .dialog-heading,#operator-review-dialog .dialog-footer{flex-shrink:0}#operator-review-dialog .dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.operator-review-peer{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#586b62}.operator-review-text{margin:0;padding:12px;border:1px solid #e1e8dc;border-radius:8px;background:#f7faf4;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto}
.chat-sync-health{flex-shrink:0;padding:10px 16px;background:#f3f7f1;border-bottom:1px solid #e2e9df;color:#486354;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.chat-sync-health.warning{background:#fff4e6;border-color:#efd9b8;color:#855b25}.chat-sync-heading{font-weight:600;margin-bottom:3px}.chat-sync-diagnostics{margin-top:3px}.chat-sync-diagnostics summary{cursor:pointer;font-size:11px}.chat-sync-diagnostics p{margin-top:5px;max-height:90px;overflow:auto}

#reply-intents-dialog { width: min(640px, calc(100vw - 24px)); overflow: hidden; }
#reply-intents-dialog[open] { display: flex; flex-direction: column; max-height: calc(100dvh - 44px); }
#reply-intents-dialog .dialog-heading, #reply-intents-dialog .dialog-footer { flex-shrink: 0; }
#reply-intents-dialog .dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.intent-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.reply-intent-item { padding: 14px 0; border-bottom: 1px solid var(--border, #dce3e6); }
.reply-intent-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
#reply-intents-target { overflow-wrap: anywhere; }
