
:root{color-scheme:dark;--bg:#0c0e12;--surface:#16191f;--raised:#20242d;--line:#ffffff12;--ink:#f4f5f7;--muted:#939aa8;--accent:#ff8749;--radius:18px;font-family:Inter,"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}html{min-height:100%}body{margin:0;color:var(--ink);background:var(--bg);font-size:14px}body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 12% 0%,#a34f2020,transparent 48%),radial-gradient(ellipse at 91% 62%,#334d7620,transparent 50%)}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;background:#ffffff06;border:1px solid #ffffff16;border-radius:10px;padding:11px 16px}button:hover:not(:disabled){background:#ffffff0e;border-color:#ffffff30}button:disabled{opacity:.38;cursor:default}a{color:inherit;text-decoration:none}input,textarea,select{width:100%;color:var(--ink);background:#101319;border:1px solid #ffffff20;border-radius:10px;padding:13px 14px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #ff874918}textarea{line-height:1.7;resize:vertical}p{color:var(--muted);line-height:1.7}[hidden]{display:none!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.page-header{height:80px;padding:0 40px;display:flex;align-items:center;gap:24px;border-bottom:1px solid #ffffff09;background:#0d101480}.brand{display:flex;align-items:center;font-size:23px;font-weight:750;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;margin-right:12px;border-radius:12px;font-size:26px;background:linear-gradient(135deg,#ffac70,#ff7438);color:#261207;box-shadow:0 4px 22px #ff7d3020}.brand-dot{color:var(--accent)}.brand-divider{height:20px;border-left:1px solid #ffffff23;margin:0 18px}.brand-label{font-size:13px;letter-spacing:0;font-weight:400;color:#aeb4bf}.header-note{margin-left:auto;font-size:11px;color:#8892a0;display:flex;gap:8px;align-items:center}.header-note i{width:5px;height:5px;background:#ff985e;border-radius:50%}.page-header nav{display:flex;gap:5px;font-size:12px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#ffffff03}.page-header nav button{font-size:12px;padding:10px 15px;border-color:transparent}.page-header nav button.active{background:#252a34;box-shadow:0 2px 8px #0002}.page-header nav span{margin-left:7px;color:var(--accent)}
#customer-view{padding:34px 24px 20px}.support-shell{position:relative;max-width:1000px;width:100%;height:calc(100dvh - 168px);min-height:480px;max-height:1080px;margin:auto;display:flex;flex-direction:column;background:linear-gradient(140deg,#1a1d24,#14171d 60%);border:1px solid #ffffff19;border-radius:24px;overflow:hidden;box-shadow:0 24px 90px #0005,0 1px 0 #ffffff08 inset}.support-shell:before{content:"";position:absolute;inset:0 15% auto;height:1px;background:linear-gradient(90deg,transparent,#ffb47e99,transparent);pointer-events:none}.conversation-header{position:relative;display:flex;gap:13px;align-items:center;padding:24px 30px;background:linear-gradient(110deg,#ffffff03,transparent);flex-shrink:0}.support-avatar{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#ffaa6b,#ff773b);color:#2b1409;font-weight:800;font-size:30px;box-shadow:0 6px 24px #ff783326}.support-heading{display:flex;flex-direction:column;gap:7px}.support-heading strong{font-size:17px;font-weight:650;letter-spacing:-.35px}.support-heading>span{font-size:11px;color:#9ca6b4;display:flex;align-items:center;gap:7px}.support-heading i{height:5px;width:5px;background:#87caad;border-radius:50%;box-shadow:0 0 9px #87caad50}.conversation-tools{display:flex;gap:6px;margin-left:auto}.utility-button{display:flex;align-items:center;gap:8px;background:#ffffff03;font-size:11px;padding:10px 12px;border-color:#ffffff0d}.utility-button svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:#a1acbb}.utility-button.close-button{color:#aab0bb}.utility-button.close-button:hover{background:#ce645313;color:#ffb4a7;border-color:#e1876c30}.ticket-state{font-family:Consolas,monospace;font-size:10px;color:#bcc6d4;padding:5px 8px;border:1px solid #ffffff14;border-radius:6px;white-space:nowrap}.conversation-status{display:flex;align-items:center;gap:9px;padding:12px 30px;background:#ffffff02;border-top:1px solid #ffffff07;border-bottom:1px solid #ffffff07;font-size:11px;color:#a9b4c4;flex-shrink:0}.status-indicator{width:6px;height:6px;border-radius:50%;background:#ff9c65;box-shadow:0 0 0 4px #ff9c6510;flex-shrink:0}.conversation-status.support-request{background:#ff914607;color:#edb18d}.conversation-status.awaiting-customer{background:#7dccaa07;color:#a7d3be}.awaiting-customer .status-indicator{background:#8dd0b1;box-shadow:0 0 0 4px #8dd0b110}#conversation-topic{margin-left:auto;color:#8793a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:42%}
.conversation-feed{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:32px 32px 24px;scrollbar-width:thin;scrollbar-color:#434b5a transparent}.welcome-mode{height:auto;min-height:0;max-height:none}.welcome-mode .conversation-feed{padding:37px 38px 39px;overflow:visible}.active-turn{display:flex;gap:14px}.turn-avatar{width:30px;height:30px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;color:#ffae7e;background:linear-gradient(140deg,#4b3326,#2b2521);border:1px solid #ffaf7633;font-size:20px;font-weight:750;margin-top:3px}.turn-content{flex:1;min-width:0;max-width:800px}.step-top{font-size:10px;color:#8791a0;padding:3px 0 10px}.current-step{border:1px solid #ffffff0d;border-radius:3px 17px 17px;background:linear-gradient(130deg,#242932,#20242d);padding:23px 25px;max-width:760px}.current-step:empty{display:none}.step-copy{font-size:14px;line-height:1.8;color:#dce0e8;white-space:pre-wrap}.step-copy:empty{display:none}h1{font-size:22px;font-weight:650;letter-spacing:-.5px;margin:0;line-height:1.4}.welcome-mode .turn-avatar,.welcome-mode .step-top{display:none}.welcome-mode .turn-content{max-width:none}.welcome-intro{margin:0 0 29px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;color:#ef9c6b}.welcome-intro h1{font-size:46px;line-height:1.15;letter-spacing:-2px;margin:15px 0 11px;font-weight:650}.welcome-intro h1 span{color:var(--accent)}.welcome-intro p{font-size:14px;margin:0;color:#a0a9b8}.options-label{text-transform:uppercase;font-size:9px;letter-spacing:1.5px;color:#85909f;font-weight:600;margin:24px 0 12px}.welcome-mode .options-label{margin:0 0 13px}
.chat-actions{display:flex;flex-direction:column;gap:10px;max-width:800px}.chat-actions:empty{display:none}.chat-actions:not(.tile-choices):has(>.flow-choice:nth-child(2)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.chat-actions.tile-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.flow-choice{position:relative;overflow:hidden;min-height:63px;width:100%;display:flex;align-items:center;gap:13px;text-align:left;font-size:13px;line-height:1.45;padding:17px 19px;color:var(--ink);border:1px solid #ffffff14;border-radius:14px;background:linear-gradient(130deg,#282d36aa,#1e222aaa);text-decoration:none;isolation:isolate}.flow-choice:before{content:"";position:absolute;inset:0;z-index:-1;opacity:0;background:radial-gradient(ellipse at 25% 0%,#ff945d1d,transparent 75%)}.flow-choice:hover:not(:disabled){background:#292d35;border-color:#ffad6d66;box-shadow:0 10px 24px #0003}.flow-choice:hover:before{opacity:1}.choice-icon{display:flex;width:24px;height:24px;flex-shrink:0;color:#c5cbd4}.choice-icon svg{width:100%;height:100%}.choice-label{overflow-wrap:anywhere}.choice-arrow{margin-left:auto;color:#6e798b}.tile-choices .flow-choice{min-height:139px;flex-direction:column;justify-content:center;text-align:center;gap:16px;padding:21px 13px}.tile-choices .choice-icon{width:37px;height:37px;padding:7px;box-sizing:content-box;border:1px solid #ffffff0a;border-radius:14px;background:#ffffff05;color:#b9c5d5}.tile-choices .choice-label{max-width:150px}.tile-choices .flow-choice:hover .choice-icon{color:#ffb88a;background:#ff945d0d;border-color:#ff945d25}.welcome-mode .tile-choices .flow-choice:first-child{grid-column:span 2;align-items:flex-start;text-align:left;padding-left:26px;background:linear-gradient(130deg,#7e4a2b40,#3a2b2130);border-color:#e7946138}.welcome-mode .tile-choices .flow-choice:first-child .choice-icon{color:#ffb581;background:#ff9d5a12;border-color:#ff945d20}.welcome-mode .tile-choices .flow-choice:after{content:"↗";position:absolute;top:14px;right:16px;font-size:16px;color:#667385}.welcome-mode .tile-choices .flow-choice:first-child:after{color:#d99162}.welcome-mode .tile-choices .flow-choice:first-child .choice-label{max-width:none;font-size:15px;font-weight:600}.primary{background:linear-gradient(135deg,#ffab6e,#ff8043);color:#271409;border-color:#ff9d60;font-weight:650;box-shadow:0 4px 15px #ff783315;min-height:42px}.primary:hover:not(:disabled){background:linear-gradient(135deg,#ffbb84,#ff925e);border-color:#ffc195;box-shadow:0 5px 23px #ff783332}
.rich-copy{white-space:pre-wrap;overflow-wrap:anywhere}.rich-copy p{color:#dee2e9;line-height:1.8;margin:0 0 18px}.rich-copy p:last-child{margin-bottom:0}.rich-copy h1,.rich-copy h2,.rich-copy h3,.rich-copy h4,.rich-copy h5,.rich-copy h6{color:#f5f6f8;font-size:20px;line-height:1.5;font-weight:650;letter-spacing:-.35px;margin:0 0 10px}.rich-copy ul,.rich-copy ol{padding-left:24px;line-height:1.85;margin:13px 0 18px}.rich-copy li{padding-left:3px;margin-bottom:6px}.rich-copy strong,.rich-copy b{font-weight:650;color:#f4f5f7}.rich-copy a{color:#ffb587;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.rich-copy a:hover{color:#ffcead}.rich-copy code,.rich-copy pre{font-family:Consolas,monospace;background:#11151c;border-radius:5px;padding:2px 5px}.source-media{display:block;max-width:100%;height:auto;border-radius:10px}.source-form{display:flex;flex-direction:column;align-items:flex-end;gap:20px;margin-top:23px}.identity-fields{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:16px}.source-field{display:block;width:100%;min-width:0;font-size:12px;color:#c3ccd9}.source-field input,.source-field textarea{margin-top:9px;min-width:0;font-size:14px}.source-field textarea{min-height:120px}.field-help{display:block;font-size:11px;color:#99a4b5;line-height:1.6;margin-top:8px}.source-send{min-width:120px;font-size:13px;padding:11px 23px}.question-fields{width:100%}
.messages{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#434b5a transparent}.conversation-history .messages{overflow:visible}.bubble-row{display:flex;align-items:flex-start;gap:14px;margin:0 0 25px}.message-content{max-width:760px;min-width:0}.bubble-meta{font-size:10px;color:#8792a4;margin:0 2px 9px}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #ffffff0d;border-radius:3px 17px 17px;background:linear-gradient(130deg,#252a33,#20242d);color:#e3e7ee;padding:17px 21px;font-size:14px;line-height:1.8}.bubble-row.user{justify-content:flex-end;padding-left:50px}.user .message-content{max-width:85%}.user .bubble-meta{text-align:right}.user .bubble{border-radius:17px 3px 17px 17px;background:linear-gradient(130deg,#583d2c70,#41312560);border-color:#e69d6240;color:#ffbe94}.agent .bubble{border-color:#9dbce820;background:linear-gradient(130deg,#283340,#232a34)}.agent .turn-avatar{color:#c3d8f3;background:#2c3949;border-color:#8db4e333}.system .message-content{max-width:100%;margin-left:44px}.system .bubble{border:0;background:none;color:#8999ac;padding:4px 0;font-size:11px}.note .bubble{color:#ecd59c;background:#51462640;border-color:#b8a05725}.queue-event .turn-avatar,.queue-event .bubble-meta{display:none}.queue-event .message-content{margin-left:44px;flex:1}.queue-event .bubble{background:#ff994d06;border:1px solid #d5905a19;border-radius:12px;padding:0}.queue-details{white-space:normal}.queue-details summary{position:relative;list-style:none;cursor:pointer;padding:14px 17px;color:#cbb09a;font-size:11px;display:flex;align-items:center;gap:9px}.queue-details summary:before{content:"✓";color:#a8cfb8}.queue-details summary:after{content:"+";margin-left:auto;color:#bdab98;font-size:16px}.queue-details[open] summary:after{content:"−"}.queue-original{padding:5px 18px 18px;font-size:13px;white-space:pre-wrap}
.composer{padding:17px 30px 18px;background:#141820;border-top:1px solid #ffffff0c;flex-shrink:0;margin:0;max-width:none}.composer textarea{width:100%;min-height:70px;max-height:180px;resize:vertical;background:#1c212a;border-color:#ffffff12;font-size:14px}.composer-bottom{display:flex;align-items:center;gap:12px;margin-top:10px}.composer-bottom .primary{margin-left:auto;min-width:104px;font-size:12px}.keyboard-hint{font-size:10px;color:#778397;line-height:1.5}.keyboard-hint span{margin:0 5px;color:#556075}.chat-footnote{flex-shrink:0;display:flex;align-items:center;gap:7px;padding:13px 30px;background:#ffffff02;border-top:1px solid #ffffff07;color:#778598;font-size:10px}.save-icon{color:#87bba2}.footnote-end,.full-support-link{margin-left:auto}.full-support-link{color:#b9c6d8}.preview-footer{max-width:1000px;margin:0 auto 18px;display:flex;align-items:center;gap:18px;font-size:10px;color:#637085;padding:0 8px}.preview-footer>span{margin-right:auto}.preview-footer a:hover{color:#abb9cd}.text-button{border:0;background:none;color:#77869b;font-size:10px;padding:0}.text-button:hover:not(:disabled){background:none;color:#e5edf7}.service-notice{border:1px solid #ba915333;border-radius:12px;background:#6b502520;color:#e7c99d;padding:14px 17px;font-size:12px;line-height:1.7;margin:0 0 20px}.empty{font-size:12px;color:var(--muted);padding:20px 8px;grid-column:1/-1}.date-label{display:none}
#admin-view{display:grid;grid-template-columns:300px minmax(320px,1fr) 280px;height:calc(100dvh - 80px);min-height:560px;background:#11151b}.inbox-sidebar{min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:27px 20px;background:#141820;border-right:1px solid var(--line)}.inbox-sidebar .eyebrow{margin:0 4px;letter-spacing:1.6px}.inbox-sidebar h2{font-size:25px;font-weight:650;letter-spacing:-.8px;margin:12px 4px 23px}.inbox-search input{font-size:12px;background:#0e1218;padding:13px}.inbox-search,.filters,.inbox-tools{flex-shrink:0}.filters{display:flex;gap:5px;margin:16px 0}.filters button{border-color:transparent;font-size:11px;padding:8px 13px;color:#9cabbf}.filters button.active{color:#ffd0af;background:#ff954518;border-color:#ff954529}.filters span{margin-left:4px;font-size:9px;color:#a6b4c7}#ticket-list{flex:1;min-height:90px;overflow:auto;scrollbar-width:thin;scrollbar-color:#434b5a transparent}.ticket-card{width:100%;border-color:#ffffff07;text-align:left;padding:17px 14px;margin:0 0 9px;border-radius:13px;background:#1c222b}.ticket-card.selected{background:linear-gradient(120deg,#b9692922,#211f20);border-color:#dd955a50;box-shadow:inset 3px 0 #ff985d}.ticket-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.ticket-card small{display:block;font-size:11px;color:#94a2b5;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ticket-card .tag{font-size:8px;background:#75cfa31a;color:#abd8c0;padding:4px 6px;border-radius:5px;white-space:nowrap}.self-service-tag{background:#709de21a!important;color:#aac5e9!important}.ticket-state-line{display:block;font-size:10px;color:#8c9bb0;margin-top:11px}.inbox-tools{border:1px solid #ffffff0d;background:#11161e;border-radius:12px;margin:0 0 17px;padding:13px;font-size:11px;max-height:48vh;overflow:auto;scrollbar-width:thin}.inbox-tools summary{list-style:none;cursor:pointer;color:#c5cfdc;font-weight:600}.inbox-tools summary:after{content:"+";float:right;color:#f7a771}.inbox-tools[open] summary:after{content:"−"}.inbox-tools p{font-size:10px;line-height:1.7;margin:12px 0;color:#8e9eb4}.inbox-tools>button{width:100%;font-size:10px;text-align:left;padding:10px;margin-bottom:8px}.inbox-tools label{display:block;font-size:10px;line-height:1.5;color:#b2c0d3;margin:12px 0 7px}.inbox-tools select{font-size:11px;padding:9px}.cleanup-row{display:flex;gap:7px}.cleanup-row select{flex:1;min-width:0}.cleanup-row button{font-size:10px;white-space:nowrap;padding:9px}.inbox-tools #show-bans{margin:9px 0 0}.inbox-tools #show-bans span{float:right;color:#ffbc91}.admin-demo-note{flex-shrink:0;font-size:10px;line-height:1.8;color:#64758e;padding:10px 4px 0;margin:5px 0 0}
.ticket-pane{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:radial-gradient(ellipse at top,#1b25312a,transparent 70%),#11151c}.ticket-head{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:24px 27px;min-height:96px;border-bottom:1px solid var(--line);background:#161c25}.ticket-title{min-width:0}.ticket-head h3{font-size:18px;letter-spacing:-.4px;font-weight:600;margin:0 0 6px}.ticket-head p{font-size:10px;margin:0}.ticket-title h3,.ticket-title p{overflow-wrap:anywhere}.ticket-head-actions{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.ticket-head-actions button{font-size:10px;padding:9px 10px;border-radius:8px}.ticket-pane .messages{flex:1;min-height:0;padding:28px}.ticket-pane .message-content{max-width:90%}.ticket-pane .bubble{max-width:760px}.admin-composer{flex-shrink:0;border-top:1px solid var(--line);padding:13px 26px 22px;background:#171d26}.reply-tabs{display:flex;gap:20px;margin-bottom:14px}.reply-tabs button{padding:8px 0 10px;border:0;border-radius:0;background:none;color:#8d9eb4;font-size:11px}.reply-tabs button.active{color:#ffb384;border-bottom:2px solid var(--accent)}.admin-composer textarea{font-size:14px;background:#10151d;min-height:90px;max-height:220px}.admin-send-row{display:flex;gap:9px;align-items:center;margin-top:12px;flex-wrap:wrap}.admin-send-row .keyboard-hint{margin-right:auto}.admin-send-row button{font-size:11px}.admin-send-row .primary{min-width:104px}.ticket-details{padding:28px 23px;border-left:1px solid var(--line);overflow:auto;scrollbar-width:thin;background:#141a23}.ticket-details h3{font-size:12px;margin:0 0 27px;color:#c0cede;font-weight:600}.detail-label{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;color:#7588a3;margin-top:25px}.detail-value{font-size:12px;color:#c3cfdf;margin-top:9px;overflow-wrap:anywhere;line-height:1.65}.detail-info{border-top:1px solid var(--line);padding-top:20px;margin-top:29px;font-size:11px;white-space:pre-wrap}.current-step-link{display:block;font-size:11px;color:#ffb787;margin-top:24px}.danger-quiet{color:#e7a49d;background:#a6484810;border-color:#bd646433}.danger-quiet:hover:not(:disabled){color:#ffc9c2;background:#a6484825;border-color:#bd646455}.danger{background:#b54e56;border-color:#b54e56;color:#fff}.danger:hover:not(:disabled){background:#c66069;border-color:#c66069}
dialog{max-width:470px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;background:linear-gradient(130deg,#232a34,#191e27);color:var(--ink);border:1px solid #ffffff24;border-radius:22px;padding:30px;box-shadow:0 28px 100px #0008}dialog::backdrop{background:#050910b5;backdrop-filter:blur(8px)}dialog h2{font-size:25px;font-weight:600;letter-spacing:-.8px;margin:5px 0 15px}dialog p{font-size:13px}dialog label{display:block;font-size:12px;margin-top:20px}dialog input{margin-top:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:27px}.dialog-actions button{font-size:12px}.pause-dialog{padding:38px;text-align:center}.pause-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--accent);font-size:34px;font-weight:800;color:#25160d;margin:0 auto 24px}.pause-dialog .primary{width:100%;margin-top:14px}.admin-feedback{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;font-size:12px;border:1px solid #76909d55;border-radius:12px;background:#243442;padding:14px 20px;box-shadow:0 8px 35px #0005;max-width:90vw}.ban-row{display:flex;align-items:center;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.ban-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.ban-row strong{font-size:13px}.ban-row p{font-size:11px;margin:5px 0}.ban-row small{font-size:11px;color:#b8a7a5}.ban-row button{font-size:11px}#bans-dialog{max-width:570px}
body.widget-mode{height:100dvh;overflow:hidden;background:#14171d}.widget-mode:before,.widget-mode>.page-header,.widget-mode>.preview-footer{display:none!important}.widget-mode #customer-view{padding:0}.widget-mode .support-shell{height:100dvh;max-height:none;min-height:0;max-width:none;border:0;border-radius:0;box-shadow:none}.widget-mode .conversation-header{padding:17px 18px;flex-wrap:wrap;gap:11px}.widget-mode .support-avatar{width:38px;height:38px;font-size:25px;border-radius:12px}.widget-mode .support-heading strong{font-size:15px}.widget-mode .conversation-tools{width:100%;justify-content:flex-end;gap:7px}.widget-mode .utility-button{font-size:10px;padding:7px 10px}.widget-mode .ticket-state{margin-left:auto}.widget-mode .conversation-status{padding:11px 18px;font-size:10px}.widget-mode #conversation-topic{max-width:40%}.widget-mode .conversation-feed{padding:24px 18px;overflow:auto}.widget-mode .turn-avatar{display:none}.widget-mode .active-turn,.widget-mode .bubble-row{gap:0}.widget-mode .welcome-intro{margin-bottom:23px}.widget-mode .welcome-intro h1{font-size:34px;letter-spacing:-1.4px}.widget-mode .welcome-intro p{font-size:12px}.widget-mode .chat-actions.tile-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.widget-mode .tile-choices .flow-choice{min-height:122px;font-size:12px}.widget-mode .welcome-mode .tile-choices .flow-choice:first-child{grid-column:auto;align-items:center;text-align:center;padding:17px 12px}.widget-mode .welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:12px;font-weight:400}.widget-mode .tile-choices .choice-icon{width:29px;height:29px;padding:5px;border-radius:12px}.widget-mode .welcome-mode .tile-choices .flow-choice:after{top:9px;right:9px;font-size:12px}.widget-mode .current-step{padding:18px}.widget-mode .bubble{padding:15px 17px;font-size:13px}.widget-mode .user.bubble-row{padding-left:24px}.widget-mode .system .message-content,.widget-mode .queue-event .message-content{margin-left:0}.widget-mode .source-form .identity-fields{grid-template-columns:1fr}.widget-mode .source-field input,.widget-mode .source-field textarea{font-size:13px}.widget-mode .composer{padding:14px 18px}.widget-mode .keyboard-hint{font-size:8px}.widget-mode .composer-bottom .primary{min-width:78px;min-height:36px}.widget-mode .chat-footnote{padding:12px 18px;font-size:9px}.widget-mode .footnote-end{display:none}.widget-mode .queue-event .bubble{padding:0}
@media(max-width:1150px){#admin-view{grid-template-columns:270px minmax(320px,1fr)}.ticket-details{display:none}.header-note{display:none}}
@media(max-width:700px){.page-header{height:72px;padding:0 21px;gap:14px;flex-wrap:wrap}.page-header:has(#demo-views:not([hidden])){height:auto;min-height:72px;padding-top:16px;padding-bottom:14px}.page-header #demo-views{width:100%;justify-content:flex-end}.brand{font-size:21px}.brand-label{font-size:12px}.brand-divider{margin:0 13px}#customer-view{padding:16px 12px 14px}.support-shell{height:calc(100dvh - 145px);min-height:380px;border-radius:18px}.conversation-header{padding:19px 18px;flex-wrap:wrap;gap:10px}.support-avatar{width:40px;height:40px;font-size:26px;border-radius:12px}.support-heading strong{font-size:15px}.support-heading>span{font-size:10px}.conversation-tools{width:100%;justify-content:flex-end;gap:7px}.utility-button{font-size:10px;padding:8px 10px}.ticket-state{margin-left:auto}.conversation-status{padding:11px 18px;font-size:10px}.conversation-feed,.welcome-mode .conversation-feed{padding:25px 18px}.welcome-intro h1{font-size:36px;letter-spacing:-1.5px}.welcome-intro p{font-size:12px}.welcome-intro{margin-bottom:26px}.chat-actions.tile-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile-choices .flow-choice{min-height:124px;padding:17px 11px;font-size:12px}.tile-choices .choice-icon{width:31px;height:31px;padding:5px}.welcome-mode .tile-choices .flow-choice:first-child{grid-column:auto;align-items:center;text-align:center;padding:17px 11px}.welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:12px;font-weight:400}.welcome-mode .tile-choices .flow-choice:after{font-size:12px;top:11px;right:11px}.turn-avatar{width:25px;height:25px;font-size:17px;border-radius:8px}.active-turn,.bubble-row{gap:9px}.current-step{padding:18px}.rich-copy{font-size:13px}.rich-copy h3,.rich-copy h4{font-size:18px}.bubble{padding:15px 17px;font-size:13px}.user.bubble-row{padding-left:24px}.source-form .identity-fields{grid-template-columns:1fr}.system .message-content,.queue-event .message-content{margin-left:34px}.queue-event .bubble{padding:0}.composer{padding:15px 18px}.composer textarea{min-height:65px;font-size:13px}.keyboard-hint{font-size:8px}.composer-bottom .primary{min-width:85px;min-height:38px}.chat-footnote{padding:12px 18px;font-size:9px}.footnote-end{display:none}.preview-footer{flex-wrap:wrap;gap:12px;padding:0 17px;font-size:9px}.preview-footer>span{width:100%}#admin-view{display:block;height:auto;min-height:0}.inbox-sidebar{padding:23px 17px;border-right:0;border-bottom:1px solid var(--line)}.inbox-sidebar h2{font-size:23px;margin:10px 4px 18px}#ticket-list{display:flex;gap:10px;overflow:auto;max-height:200px;min-height:0}.ticket-card{min-width:220px;max-width:220px;flex-shrink:0}.admin-demo-note{display:none}.inbox-tools{max-height:440px}.ticket-pane{height:calc(100dvh - 40px);min-height:560px}.ticket-head{padding:20px 18px}.ticket-head-actions{margin-left:0}.ticket-pane .messages{padding:24px 18px}.admin-composer{padding:13px 18px 20px}.admin-send-row .keyboard-hint{width:100%;font-size:10px}.admin-send-row #saved-reply{margin-right:auto}.admin-feedback{bottom:12px}}
@media(prefers-reduced-motion:no-preference){body:before{animation:ambient-drift 18s ease-in-out infinite alternate}button,a.flow-choice{transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}.flow-choice:before{transition:opacity .3s}.flow-choice:hover{transform:translateY(-3px)}.choice-icon{transition:color .2s,background .2s,border-color .2s}.message-enter{animation:message-in .32s cubic-bezier(.2,.7,.3,1) both}.tile-choices .flow-choice{animation:choice-in .4s both;animation-delay:calc(min(var(--choice-index,0),7)*35ms)}.welcome-intro{animation:message-in .5s both}.status-indicator{animation:status-glow 4s ease-in-out infinite}.support-shell{animation:shell-in .45s ease-out both}input,textarea{transition:border-color .2s,box-shadow .2s}dialog[open]{animation:message-in .22s ease-out}@keyframes ambient-drift{from{opacity:.65;transform:translate3d(-2%,0,0) scale(1.04)}to{opacity:1;transform:translate3d(2%,1%,0) scale(1.08)}}@keyframes message-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes choice-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes shell-in{from{opacity:.3;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes status-glow{0%,100%{opacity:.65}50%{opacity:1}}}

.welcome-mode .chat-actions{max-width:none}

body:has(#admin-view:not([hidden]))>.preview-footer{display:none}
@media(max-width:700px){.welcome-mode .tile-choices .flow-choice:first-child{grid-column:span 2;flex-direction:row;justify-content:flex-start;text-align:left;min-height:100px;padding:19px 23px}.welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:14px;font-weight:600}}
.widget-mode .welcome-mode .tile-choices .flow-choice:first-child{grid-column:span 2;flex-direction:row;justify-content:flex-start;text-align:left;min-height:100px;padding:19px 23px}.widget-mode .welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:14px;font-weight:600}

@media(max-width:700px){.keyboard-hint{font-size:9px}}.widget-mode .keyboard-hint{font-size:9px}

.support-shell.welcome-mode.has-history{height:calc(100dvh - 168px);min-height:480px;max-height:1080px}.welcome-mode.has-history .conversation-feed{overflow:auto}
@media(max-width:700px){.support-shell.welcome-mode{height:calc(100dvh - 145px);min-height:380px;max-height:none}.welcome-mode .conversation-feed{overflow:auto}}
.widget-mode .support-shell.welcome-mode{height:100dvh;min-height:0;max-height:none}

/* Per-audience notification sound controls. */
/* The inbox is a viewport workspace. Each column owns its scrolling. */
/* Customer Home, history and active steps share one bounded transcript. */
body.customer-mode{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.customer-mode>.page-header{flex:0 0 auto}
.customer-mode #customer-view{display:flex;flex:1;min-height:0;overflow:hidden}
.customer-mode #customer-view .support-shell{height:auto;min-height:0;max-height:none;margin:0 auto}
.customer-mode #conversation-feed{flex:1;min-height:0;overflow:auto;overflow-anchor:none;overscroll-behavior:contain}
.customer-mode>.preview-footer{flex:0 0 auto;width:calc(100% - 48px);margin:0 auto 12px}
@media(max-width:700px){.customer-mode>.preview-footer{width:calc(100% - 24px);margin-bottom:10px}}
@media(max-height:650px){
 .customer-mode .conversation-header{padding:12px 18px;gap:9px}
 .customer-mode .support-avatar{height:35px;width:35px;font-size:24px}
 .customer-mode .conversation-status{padding:9px 18px}
 .customer-mode .chat-footnote{padding:9px 18px}
 .customer-mode .composer{padding:10px 18px}
 .customer-mode .composer textarea{min-height:45px;max-height:15dvh}
 .customer-mode:not(.widget-mode) #customer-view{padding:12px}
 .customer-mode>.preview-footer{display:none}
}
body.admin-mode{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.admin-mode>.page-header{flex:0 0 auto}
.admin-mode>.preview-footer{display:none}
.admin-mode #admin-view{flex:1;min-height:0;height:auto;display:grid;grid-template-rows:minmax(0,1fr);overflow:hidden}
.admin-mode .inbox-sidebar,.admin-mode .ticket-details{min-height:0;overflow:hidden}
.admin-mode .ticket-details{overflow:auto;overscroll-behavior:contain}
.admin-mode #ticket-list{min-height:0;overflow:auto;overscroll-behavior:contain}
.admin-mode .inbox-tools{flex-shrink:0;max-height:45dvh;overflow:auto;overscroll-behavior:contain}
.admin-mode .ticket-pane{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:auto;min-height:0;overflow:hidden}
.admin-mode #ticket-messages{min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:#465165 transparent}
.admin-mode .admin-composer textarea{min-height:65px;max-height:18dvh}
.admin-mode .user .message-content{min-width:0;width:auto;max-width:min(75%,760px)}
.tracking-heading{margin:30px 0 0!important;padding-top:23px;border-top:1px solid var(--line)}
.self-service-cleanup{flex-shrink:0;text-align:left;font-size:10px;padding:11px 12px;margin:0 0 13px;color:#e5ada2;background:#b1574210;border-color:#b1574230}
.tracking-note{font-size:10px;line-height:1.6;color:#7f90a8;margin-top:22px}
.detail-value{white-space:pre-wrap}
#customer-details-content h3{font-size:17px;margin-top:0}
.customer-details-button{display:none}
@media(max-width:1150px){.customer-details-button{display:block}}
@media(max-width:700px){
 .admin-mode>.page-header{padding:10px 16px;min-height:0;gap:8px;flex-wrap:nowrap}
 .admin-mode .page-header .brand-label,.admin-mode .page-header .brand-divider,.admin-mode [data-view="customer"]{display:none}
 .admin-mode .page-header #demo-views{width:auto;margin-left:auto}
 .admin-mode .page-header nav button{padding:8px 10px;font-size:10px}
 .admin-mode #admin-view{grid-template-columns:minmax(0,1fr);grid-template-rows:235px minmax(0,1fr)}
 .admin-mode .inbox-sidebar{position:relative;padding:10px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:35px 35px 28px minmax(0,1fr);gap:6px}
 .admin-mode .inbox-sidebar>.eyebrow,.admin-mode .admin-demo-note{display:none}
 .admin-mode .inbox-title h2{font-size:17px;margin:0}
 .admin-mode .inbox-title .sound-button{margin:0;padding:6px;height:30px}
 .admin-mode .inbox-search{margin:0;grid-column:1;grid-row:2}
 .admin-mode .inbox-search input{height:35px;padding:8px 10px;font-size:11px}
 .admin-mode .filters{margin:0;grid-column:2;grid-row:1;align-self:center;gap:3px}
 .admin-mode .filters button{padding:7px 6px;font-size:9px}
 .admin-mode .inbox-tools{margin:0;grid-column:2;grid-row:2;padding:0;border:0;align-self:center;overflow:visible}
 .admin-mode .inbox-tools summary{font-size:10px;padding:8px}
 .admin-mode .inbox-tools[open]{position:absolute;top:46px;right:14px;width:min(340px,calc(100vw - 28px));padding:14px;background:#1b2330;border:1px solid #4a5363;z-index:10;box-shadow:0 18px 50px #0008;max-height:65dvh;overflow:auto}
 .admin-mode .self-service-cleanup{grid-column:1/-1;grid-row:3;margin:0;padding:6px 9px;font-size:10px}
 .admin-mode #ticket-list{grid-column:1/-1;grid-row:4;display:flex;max-height:none;margin:0;gap:8px}
 .admin-mode .ticket-card{min-width:210px;max-width:210px;margin:0;padding:12px;align-self:stretch}
 .admin-mode .ticket-head{padding:11px 14px;gap:7px}
 .admin-mode .ticket-title h3{font-size:14px;margin:0}
 .admin-mode .ticket-title p{font-size:9px;margin:3px 0;overflow-wrap:anywhere}
 .admin-mode .ticket-head-actions{gap:5px;flex-wrap:wrap}
 .admin-mode .ticket-head-actions button{padding:7px 9px;font-size:9px}
 .admin-mode #ticket-messages{padding:18px 14px}
 .admin-mode .admin-composer{padding:10px 14px 12px}
 .admin-mode .reply-tabs{margin-bottom:7px;gap:16px}
 .admin-mode .reply-tabs button{font-size:10px;padding-bottom:7px}
 .admin-mode .admin-composer textarea{height:65px;min-height:50px;font-size:12px}
 .admin-mode .admin-send-row{margin-top:7px;gap:7px}
 .admin-mode .admin-send-row .keyboard-hint{width:auto;font-size:8px}
 .admin-mode #saved-reply{display:none}
 .admin-mode .admin-send-row .primary{min-height:34px;padding:8px 11px;font-size:10px}
}
.sound-button{width:36px;justify-content:center;padding:9px;color:#d5a987}.sound-button svg{width:17px;height:17px;color:inherit}.sound-muted{display:none}.sound-button[data-muted="true"]{color:#8c96a7}.sound-button[data-muted="true"] .sound-wave{display:none}.sound-button[data-muted="true"] .sound-muted{display:block}.inbox-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.inbox-title .sound-button{flex-shrink:0;margin-bottom:9px}

/* Human support agent portrait, shared by transcript and conversation header. */
.agent-avatar{overflow:hidden;background:#232832;border-color:#ffffff24;box-shadow:0 2px 10px #0003}
.agent-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 24%}

/* A restricted customer has no chat controls or transcript access. */
.chat-restricted{width:100%;max-width:640px;margin:auto;padding:56px 32px;text-align:center;background:linear-gradient(140deg,#1a1d24,#14171d);border:1px solid #ffffff16;border-radius:24px;box-shadow:0 24px 80px #0004}
.chat-restricted h1{font-size:clamp(24px,4vw,34px);line-height:1.25;letter-spacing:-1px;margin:20px 0 14px}
.chat-restricted p{font-size:13px;margin:0}
.restricted-mark{height:64px;width:64px;display:grid;place-items:center;border-radius:20px;margin:0 auto 24px;background:#ff874912;border:1px solid #ff874930;color:#ff9b68}
.restricted-mark svg{height:28px;width:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.widget-mode .chat-restricted{height:100dvh;max-width:none;border-radius:0;display:flex;flex-direction:column;justify-content:center;padding:32px 24px}

/* Compact embedded menus: readable labels and touch targets without oversized cards. */
.widget-mode .conversation-header{padding:12px 14px;gap:9px}
.widget-mode .support-avatar{width:32px;height:32px;font-size:22px;border-radius:10px}
.widget-mode .support-heading{gap:4px}.widget-mode .support-heading strong{font-size:14px}
.widget-mode .support-heading>span{font-size:9px}
.widget-mode .conversation-tools{width:auto;margin-left:auto;gap:3px}
.widget-mode .conversation-tools .utility-button{width:44px;min-height:44px;padding:12px;justify-content:center}
.widget-mode .conversation-tools .utility-button>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.widget-mode .ticket-state{display:none}
.widget-mode .conversation-status{padding:9px 14px;font-size:9px;gap:7px}
.widget-mode .conversation-feed,.widget-mode .welcome-mode .conversation-feed{padding:18px 16px}
.widget-mode .welcome-intro{margin-bottom:18px}.widget-mode .welcome-intro .eyebrow{font-size:9px;letter-spacing:1.4px}
.widget-mode .welcome-intro h1{font-size:28px;letter-spacing:-1px;margin:10px 0 7px}
.widget-mode .welcome-intro p{font-size:12px}
.widget-mode .options-label{margin:18px 0 10px}.widget-mode .welcome-mode .options-label{margin:0 0 10px}
.widget-mode .chat-actions.tile-choices{gap:8px}
.widget-mode .tile-choices .flow-choice{min-height:60px;padding:12px 10px;flex-direction:row;justify-content:flex-start;align-items:center;text-align:left;gap:9px;font-size:12px;border-radius:12px}
.widget-mode .tile-choices .choice-icon{width:21px;height:21px;padding:4px;border-radius:9px}
.widget-mode .tile-choices .choice-label{max-width:none}
.widget-mode .welcome-mode .tile-choices .flow-choice:first-child{min-height:60px;padding:12px 13px;align-items:center}
.widget-mode .welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:13px}
.widget-mode .welcome-mode .tile-choices .flow-choice:after{display:none}
.widget-mode .chat-footnote{padding:10px 16px}
@media(max-width:340px){.widget-mode .conversation-tools{width:100%;justify-content:flex-end}.widget-mode .tile-choices .flow-choice{gap:7px;font-size:11px;padding:10px 8px}}
@media(max-height:560px){
 .widget-mode .conversation-feed,.widget-mode .welcome-mode .conversation-feed{padding:12px 16px}
 .widget-mode .welcome-intro{margin-bottom:10px}.widget-mode .welcome-intro .eyebrow{display:none}
 .widget-mode .welcome-intro h1{font-size:25px;margin:0 0 4px}
 .widget-mode .welcome-mode .options-label{margin-bottom:8px}
 .widget-mode .chat-actions.tile-choices{gap:6px}
 .widget-mode .tile-choices .flow-choice,.widget-mode .welcome-mode .tile-choices .flow-choice:first-child{min-height:56px;padding-top:8px;padding-bottom:8px}
}

/* Customer resolution keeps the transcript available with a clear completion state. */
.composer-bottom{flex-wrap:wrap}.composer-bottom .keyboard-hint{margin-right:auto}
.resolve-button{min-height:42px;padding:10px 13px;font-size:12px;color:#b5d7c9;border-color:#8ad4b52b;background:#77cba30a}
.composer-bottom:has(.resolve-button) .primary{margin-left:0}
.resolve-button:hover:not(:disabled){background:#77cba319;border-color:#8ad4b557}
.customer-completion{max-width:560px;margin:24px auto 8px;padding:30px;text-align:center;border:1px solid #7cd9b02b;border-radius:20px;background:radial-gradient(ellipse at 50% 0%,#64dca51c,transparent 75%),#19221f;box-shadow:0 16px 40px #0002}
.completion-mark{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 17px;border:1px solid #8adeb73d;border-radius:50%;color:#a1edc9;background:#8adeb710}
.completion-mark svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.customer-completion .eyebrow{font-size:9px;color:#95d6b9;letter-spacing:1.6px}
.customer-completion h2{font-size:24px;letter-spacing:-.6px;margin:10px 0 12px;line-height:1.3}
.customer-completion>p{font-size:14px;color:#d0e2d9;margin:0}
.customer-completion .completion-detail{font-size:12px;color:#97b2a5;margin:8px 0 0;line-height:1.7}
.completion-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:22px}
.completion-actions button{font-size:12px;min-height:44px;padding:11px 15px}
.conversation-status.resolved-status{color:#acd9c3;background:#77cba309}
.resolved-status .status-indicator{background:#8dd0b1;box-shadow:0 0 0 4px #8dd0b110;animation:none}
.widget-mode .composer-bottom{gap:8px}.widget-mode .composer-bottom .keyboard-hint{width:100%}
.widget-mode .resolve-button{min-height:44px;font-size:11px}
.widget-mode .composer-bottom:has(.resolve-button) .primary{margin-left:auto;min-height:44px}
.widget-mode .customer-completion{padding:24px 18px;margin-top:18px;border-radius:16px}
.widget-mode .customer-completion h2{font-size:22px}
@media(prefers-reduced-motion:no-preference){.customer-completion:not([hidden]){animation:message-in .35s ease-out both}}

/* Native, staff-managed replacement for the original status image. */
.status-bubble{padding:0!important;overflow:hidden;width:100%;max-width:800px!important;background:#171b23!important}
.status-message .message-content{flex:1;max-width:800px}
.status-board-head{padding:23px 24px 17px;background:linear-gradient(125deg,#272c36,#1b2029);border-bottom:1px solid #ffffff0c}
.status-board-head h2{font-size:20px;letter-spacing:-.4px;line-height:1.3;margin:9px 0 0;color:#f2f4f8;overflow-wrap:anywhere}
.status-board-head .eyebrow{font-size:9px;letter-spacing:1.6px;color:#ffad7c}
.status-subtitle{font-size:11px!important;color:#8f9aab!important;margin:8px 0 0!important;white-space:pre-wrap}
.status-summary{display:flex;flex-wrap:wrap;gap:7px;padding:13px 24px;border-bottom:1px solid #ffffff09}
.service-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:4px 9px;border-radius:6px;font-size:10px;font-weight:600;line-height:1.5;border:1px solid currentColor;color:#96a2b8;background:#ffffff06}
.service-badge:before{content:'';width:5px;height:5px;flex-shrink:0;background:currentColor;border-radius:50%}
.service-badge[data-status="good"]{color:#54e6a5;background:#19b5770c;border-color:#29cb8324}
.service-badge[data-status="testing"]{color:#f6cc64;background:#f6c3440c;border-color:#edc14624}
.service-badge[data-status="degraded"]{color:#ff9d68;background:#ff884412;border-color:#ff88442b}
.service-badge[data-status="maintenance"]{color:#a9b7ff;background:#8597ff10;border-color:#8597ff2a}
.service-badge[data-status="offline"]{color:#ff8498;background:#ff557712;border-color:#ff55772a}
.status-table-scroll{max-width:100%;overflow-x:auto}
.status-table-hint{display:none;font-size:9px!important;color:#7f8da2!important;margin:0!important;padding:9px 16px 0}
.status-table{border-collapse:collapse;width:100%;text-align:left;font-size:11px;line-height:1.5;min-width:440px}
.status-table th,.status-table td{padding:10px 14px;border-bottom:1px solid #ffffff07}
.status-table thead th{color:#7c899c;background:#151922;font-weight:500;font-size:9px;letter-spacing:.7px;text-transform:uppercase;white-space:nowrap}
.status-table tbody th{font-weight:400;color:#d4dae5;min-width:120px;overflow-wrap:anywhere}
.status-table tbody tr:nth-child(even){background:#ffffff03}
.status-table tbody tr:hover{background:#ffffff04}
.status-table .status-last-issue{color:#94a0b3;min-width:70px;overflow-wrap:anywhere}
.status-notes{color:#8491a7;font-style:italic;min-width:100px;max-width:230px;white-space:pre-wrap;overflow-wrap:anywhere}
.status-updated{display:block;font-size:9px;color:#7e8a9e;padding:13px 24px}
.status-empty{padding:18px 24px;margin:0;font-size:12px;color:#929fb2}
.service-status-manage{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;margin:12px 0 8px;color:#d7dde7;border-color:#ffffff19;background:linear-gradient(120deg,#222833,#181e28)}
.service-status-manage span{color:#f4a375}
dialog.service-status-editor{width:min(1000px,calc(100vw - 36px));max-width:1000px;padding:0;border-radius:20px;background:#171c25;max-height:calc(100dvh - 48px);overflow:hidden;box-sizing:border-box}
.service-status-editor form{display:flex;flex-direction:column;max-height:calc(100dvh - 50px);margin:0}
.status-editor-head{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;padding:24px 26px;border-bottom:1px solid #ffffff13;background:linear-gradient(120deg,#252b36,#1b212c)}
.status-editor-head h2{margin:8px 0 7px;font-size:23px;letter-spacing:-.6px}
.status-editor-head p{margin:0;font-size:12px;color:#929fb4}
.status-editor-head .utility-button{flex-shrink:0}
.status-editor-scroll{min-height:0;overflow:auto;padding:22px 26px;overscroll-behavior:contain}
.status-board-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-bottom:22px;border-bottom:1px solid #ffffff0d}
.status-board-fields label,.status-edit-field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#a3b0c3;margin:0}
.service-status-editor input,.service-status-editor select{width:100%;min-width:0;box-sizing:border-box;padding:10px 11px;font-size:12px;background:#11161e;border:1px solid #ffffff17;border-radius:8px;color:#e3e8f1}
.service-status-editor input:focus,.service-status-editor select:focus{outline:none;border-color:#e9925c;box-shadow:0 0 0 3px #ff925411}
.status-entries-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 14px}
.status-entries-heading h3{margin:0;font-size:14px}.status-entries-heading h3 span{color:#8592a8;font-size:11px;margin-left:6px}
.status-entries-heading button{font-size:11px;padding:8px 11px}
.status-edit-row{display:grid;grid-template-columns:minmax(130px,1.45fr) minmax(110px,.85fr) minmax(90px,.8fr) minmax(120px,1.25fr) auto;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid #ffffff09}
.status-remove{font-size:10px;padding:10px;min-height:37px}
.status-editor-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:17px 26px;border-top:1px solid #ffffff13;background:#181e28}
.status-editor-footer p{margin:0 auto 0 0;color:#9aa7bb;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.status-editor-footer button{flex-shrink:0;font-size:12px}
@media(max-width:700px){
 .status-table-hint{display:block}
 .status-board-head{padding:18px 16px 14px}.status-board-head h2{font-size:17px}.status-summary{padding:11px 16px}.status-table th,.status-table td{padding:9px 11px}.status-updated{padding:12px 16px}
.status-editor-head{padding:19px 17px}.status-editor-head h2{font-size:20px}.status-editor-scroll{padding:15px 17px}.status-board-fields{grid-template-columns:1fr;gap:12px}.status-edit-row{grid-template-columns:1fr 1fr;gap:12px;padding:16px 0}.status-remove{grid-column:2;justify-self:end}.status-editor-footer{padding:14px 17px;flex-wrap:wrap}.status-editor-footer p{width:100%;margin-bottom:3px}
}

/* Reported visual system. Existing flow, viewport containment and controls are retained. */
:root{--bg:#0b0d11;--surface:#171b22;--raised:#202630;--line:#ffffff10;--muted:#a0aabb;--accent:#ff9258;font-family:"Segoe UI",system-ui,sans-serif}
body{background:var(--bg);-webkit-font-smoothing:antialiased}
body:before{background:radial-gradient(ellipse at 50% -10%,#ff945d10,transparent 55%),radial-gradient(ellipse at 100% 90%,#456d9a0b,transparent 55%);animation:none!important}
.page-header{height:68px;padding:0 32px;background:#0e1115;border-bottom:1px solid #ffffff0c}
.brand{font-size:21px;letter-spacing:-.75px}.brand-mark{width:34px;height:34px;border-radius:11px;font-size:24px;box-shadow:0 3px 14px #ff7d3018}
.brand-label{color:#9fa9b8;font-size:12px}.header-note{color:#9aa5b5}
.page-header nav{border-radius:10px;background:#171b22;padding:3px}.page-header nav button{padding:8px 13px;border-radius:7px}
.page-header nav button.active{background:#2a303a}.page-header nav span{background:#ff935518;padding:2px 5px;border-radius:4px}
.customer-mode:not(.widget-mode) #customer-view{padding:24px 24px 16px}
.support-shell{max-width:960px;border-radius:22px;border-color:#ffffff1c;background:#13171d;box-shadow:0 30px 100px #0006,0 1px 0 #ffffff07 inset}
.support-shell:before{inset:0 22% auto;background:linear-gradient(90deg,transparent,#ffaf7880,transparent)}
.conversation-header{padding:20px 26px;background:linear-gradient(105deg,#20252e,#181d24 70%);border-bottom:1px solid #ffffff05}
.support-avatar{width:42px;height:42px;font-size:27px;border-radius:13px;box-shadow:0 5px 20px #ff7d3015}
.support-heading strong{font-size:16px;letter-spacing:-.3px}.support-heading>span{color:#abb5c3}
.utility-button{border-color:#ffffff12;background:#ffffff03;min-height:38px;color:#c3cbd7}
.utility-button:hover:not(:disabled){border-color:#ffffff2a;background:#ffffff09}
.conversation-status{font-size:11px;padding:11px 26px;background:#171c23;border-top:0;color:#b4bdcb}
#conversation-topic{color:#a0adbe}.conversation-feed{padding:28px 26px;scrollbar-color:#56606e transparent}
.customer-mode:not(.widget-mode) .welcome-mode .conversation-feed{padding:30px 32px}
.welcome-intro{position:relative;margin-bottom:26px;text-align:center;padding:4px 0 6px}
.welcome-intro .eyebrow{display:inline-flex;align-items:center;gap:8px;color:#ffb58e;font-size:9px;letter-spacing:2px;padding:7px 11px;border:1px solid #ffae7924;border-radius:6px;background:#ff9f5b08}
.welcome-intro .eyebrow:before{content:'';width:4px;height:4px;background:#ff9f68;border-radius:50%}
.welcome-intro h1{font-size:44px;font-weight:650;letter-spacing:-1.8px;line-height:1.15;margin:15px 0 10px}
.welcome-intro p{font-size:14px;color:#a6b1c1}
.options-label{font-size:9px;letter-spacing:1.7px;color:#9aa8bb}
.welcome-mode .options-label{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.welcome-mode .options-label:after{content:'';flex:1;height:1px;background:#ffffff09}
.flow-choice{border-color:#ffffff14;background:linear-gradient(130deg,#202630,#181d25);border-radius:12px;color:#e8edf4}
.tile-choices .flow-choice{min-height:126px;gap:11px;padding:18px 14px;box-shadow:0 1px 0 #ffffff03 inset}
.tile-choices .choice-icon{width:27px;height:27px;padding:8px;border-radius:12px;border-color:#ffffff0b;background:#ffffff04;color:#bfcbdc}
.tile-choices .choice-label{font-size:13px;font-weight:600;max-width:none}
.choice-description{font-size:11px;color:#99a7bb;line-height:1.5;font-weight:400}
.flow-choice:hover:not(:disabled){border-color:#ffad7959;background:#272d36;box-shadow:0 9px 28px #0003}
.welcome-mode .tile-choices .flow-choice{gap:8px}
.welcome-mode .tile-choices .flow-choice:first-child{padding:22px 25px;justify-content:center;background:radial-gradient(ellipse at 100% 0%,#ff9c6721,transparent 70%),linear-gradient(125deg,#35271f,#211e1d);border-color:#ffad7940}
.welcome-mode .tile-choices .flow-choice:first-child .choice-icon{width:32px;height:32px;padding:9px;margin-bottom:2px}
.welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:17px;letter-spacing:-.2px}
.welcome-mode .tile-choices .flow-choice:first-child .choice-description{color:#c5aa98}
.welcome-mode .tile-choices .flow-choice:after{top:12px;right:13px;font-size:13px;color:#8995a6}
.current-step{border-radius:4px 16px 16px;border-color:#ffffff13;background:linear-gradient(125deg,#212833,#1c222b);padding:24px}
.step-top,.bubble-meta{color:#a0adbf;font-size:11px}
.rich-copy{color:#e1e7ef}.rich-copy p{line-height:1.85}.rich-copy a{color:#ffb48d}
.source-form{gap:16px;margin-top:22px}.source-field{font-size:12px;color:#cdd6e3}
input,textarea,select{border-color:#ffffff1a;background:#12171e;border-radius:9px}
.source-field input{min-height:46px}.source-field input,.source-field textarea{margin-top:8px}
.field-help{font-size:11px;color:#a7b3c5}
.primary{background:linear-gradient(135deg,#ffa976,#ff8950);border-color:#ffad7c;box-shadow:0 4px 14px #ff783317;color:#29170d}
.primary:hover:not(:disabled){background:linear-gradient(135deg,#ffba8e,#ff9b6a);box-shadow:0 5px 20px #ff783328}
.bubble-row{margin-bottom:24px}.bubble-meta{margin-bottom:8px}
.bubble{border-radius:4px 16px 16px;padding:16px 20px;background:#202630;border-color:#ffffff11;color:#e4eaf3;line-height:1.8}
.agent .bubble{background:#202b37;border-color:#9cbdeb22}
.user .bubble{border-radius:16px 4px 16px 16px;background:#51332255;border-color:#ffae7630;color:#ffd0ae}
.system .bubble{color:#a1b1c6;font-size:11px}.queue-details summary{font-size:12px}
.composer{background:#171c24;border-color:#ffffff0c;padding:16px 26px}
.composer textarea{background:#10151c;border-color:#ffffff16;border-radius:11px;font-size:14px;resize:none}
.composer textarea:focus,.admin-composer textarea:focus{border-color:#f09d6c;box-shadow:0 0 0 3px #ff925410}
.keyboard-hint{color:#9ba8bb}.chat-footnote{background:#151a21;padding:11px 26px;color:#97a6b9;font-size:10px}
.full-support-link{color:#c9d3e2}.preview-footer{max-width:960px;color:#93a0b3}
.customer-completion{border-color:#7cdbb039;background:radial-gradient(ellipse at top,#83dfb51b,transparent 75%),#19231f}
dialog{background:#1c222c;border-color:#ffffff23;border-radius:18px;box-shadow:0 30px 100px #0009}
dialog::backdrop{background:#070a10bd;backdrop-filter:blur(6px)}
.status-board-head{background:linear-gradient(120deg,#262f3c,#1c242f)}
.status-table{font-size:12px}.status-table thead th{color:#a1afc3}.status-table tbody th{color:#e1e7f0}
.status-notes,.status-table .status-last-issue{color:#a8b5c9}.status-updated{color:#a1afc1}
.service-status-editor input,.service-status-editor select{background:#111720}

/* Staff workspace: compact list, legible thread, independent scrolling. */
.admin-mode #admin-view{grid-template-columns:304px minmax(320px,1fr) 272px;background:#12161c}
.inbox-sidebar{padding:22px 16px 14px;background:#151a21;border-color:#ffffff0c}
.inbox-sidebar .eyebrow{font-size:9px;color:#a3b0c2;letter-spacing:1.6px}
.inbox-sidebar h2{font-size:22px;letter-spacing:-.6px;margin:10px 4px 20px}
.inbox-title .sound-button{margin-bottom:10px;background:#1c232d}
.inbox-search{position:relative}.inbox-search:before{content:'';position:absolute;left:12px;top:13px;width:9px;height:9px;border:1.5px solid #8b9bb0;border-radius:50%;pointer-events:none}
.inbox-search:after{content:'';position:absolute;left:21px;top:23px;width:5px;height:1.5px;transform:rotate(45deg);background:#8b9bb0;pointer-events:none}
.inbox-search input{background:#0f141b;font-size:12px;padding:12px 12px 12px 33px}
.filters{gap:3px;background:#10151c;border:1px solid #ffffff08;border-radius:9px;padding:3px;margin:14px 0}
.filters button{flex:1;padding:8px 7px;border-radius:6px;font-size:11px}.filters button.active{background:#2a313d;color:#f0d2bd;border-color:#ffffff0b}
.filters span{font-size:10px;color:#bac6d8}
.inbox-tools{padding:12px;margin-bottom:9px;border-radius:9px;background:#131820}
.service-status-manage{margin:0 0 8px;padding:10px 12px;border-radius:9px;font-size:11px;background:#1a222d;border-color:#ffffff0e}
.self-service-cleanup{font-size:10px;line-height:1.4;margin-bottom:14px;padding:10px 12px;border-radius:9px;color:#d8a99e}
.ticket-card{display:flex;align-items:flex-start;gap:10px;border-radius:11px;background:#1a202a;padding:14px 11px;margin-bottom:7px;border-color:#ffffff08}
.ticket-card.selected{background:linear-gradient(110deg,#ff98551b,#21252b);border-color:#ffae7645;box-shadow:inset 2px 0 #ff9d65}
.ticket-card:hover:not(:disabled){background:#242c38;border-color:#ffffff22}
.contact-avatar{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:10px;background:#2a3444;border:1px solid #a1b8de18;color:#b5c9e8;font-size:10px;font-weight:650}
.ticket-card[data-stage="support"] .contact-avatar{background:#463023;color:#ffc399;border-color:#ffb5811c}
.ticket-card[data-status="closed"] .contact-avatar{background:#21362f;color:#a3d8bd;border-color:#86d5aa1c}
.ticket-card-content{min-width:0;flex:1}.ticket-card-top{font-size:12px;gap:5px}
.ticket-card-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.ticket-card .tag{font-size:7px;padding:3px 5px;letter-spacing:.3px}
.ticket-card small{font-size:11px;line-height:1.5;margin-top:6px;color:#a4b1c3}
.ticket-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:9px}
.ticket-state-line{margin-top:0;font-size:9px;color:#a1b0c4;display:flex;align-items:center;gap:5px}
.ticket-state-line:before{content:'';width:4px;height:4px;flex-shrink:0;border-radius:50%;background:#8faaca}
.ticket-card[data-stage="support"][data-status="open"] .ticket-state-line:before{background:#ffaf77}
.ticket-card[data-status="closed"] .ticket-state-line:before{background:#8ed4af}
.ticket-time{font-size:9px;color:#8c9bb0;flex-shrink:0;font-variant-numeric:tabular-nums}
.workspace-agent{display:flex;align-items:center;gap:10px;flex-shrink:0;border-top:1px solid #ffffff0c;margin-top:14px;padding:14px 3px 0}
.workspace-agent img{width:34px;height:34px;object-fit:cover;object-position:50% 24%;border-radius:10px;border:1px solid #ffffff1b}
.workspace-agent strong{display:block;font-size:12px;font-weight:600}.workspace-agent div>span{display:block;font-size:10px;margin-top:4px;color:#99a8be}
.workspace-mark{margin-left:auto;color:#ffac7c;font-size:23px;font-weight:800;letter-spacing:-1px}
.ticket-head{padding:17px 24px;gap:12px;min-height:86px;background:#1a2029;border-color:#ffffff0d}
.ticket-head h3{font-size:17px;font-weight:650}.ticket-head p{color:#9eacc0;font-size:10px;line-height:1.5}
.ticket-head-actions{gap:6px}.ticket-head-actions button{min-height:34px;padding:8px 10px;font-size:11px;background:#242c37;border-color:#ffffff13}
.ticket-head-actions .ticket-status-action{background:#7bd6ab0b;border-color:#7bd6ab25;color:#a8dcc5}
.ticket-head-actions .danger-quiet{background:transparent;border-color:#ffffff0b;color:#d2a29d}
.ticket-pane{background:#11161d}.ticket-pane .messages{padding:26px 24px}
.ticket-pane .message-content{max-width:86%}.admin-mode .user .message-content{max-width:min(80%,760px)}
.admin-composer{padding:14px 24px 18px;background:#191f29;border-color:#ffffff0e}
.reply-tabs{display:inline-flex;gap:3px;border:1px solid #ffffff0b;border-radius:8px;padding:3px;background:#111720;margin-bottom:11px}
.reply-tabs button{font-size:11px;padding:7px 12px;border:0;border-radius:5px;color:#a6b4c9}
.reply-tabs button.active{border:0;background:#2c3543;color:#ffd2b5}
.admin-composer textarea{background:#111720;border-color:#ffffff17;border-radius:10px;font-size:14px;resize:none}
.admin-send-row{margin-top:10px}.admin-send-row #saved-reply{background:#242d3a;border-color:#ffffff12}
.ticket-details{padding:24px 20px;background:#151b24;border-color:#ffffff0c}
.ticket-details h3{font-size:12px;color:#e0e7f2;font-weight:600;margin-bottom:22px}
.detail-label{margin-top:20px;font-size:9px;color:#94a4bc;letter-spacing:1px}
.detail-value{margin-top:6px;font-size:12px;color:#d0dbea;line-height:1.7}
.detail-value[data-tracking="ip"]{font-family:Consolas,monospace;font-size:13px;background:#101722;padding:8px 10px;border:1px solid #ffffff0d;border-radius:7px;color:#ffbf96}
.detail-info{color:#a3b2c8;font-size:11px;line-height:1.7}.tracking-note{color:#9aabc3}
.inbox-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:160px;text-align:center}
.empty-mark{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;color:#ffb284;background:#ff9c5b0d;border:1px solid #ffb07823;font-size:38px;font-weight:750;letter-spacing:-2px;margin-bottom:18px}
.inbox-empty h2{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:0 0 7px}.inbox-empty p{font-size:13px;color:#a5b4c9;margin:0}
.no-selection .admin-composer{opacity:.5;pointer-events:none}
.status-editor-head{background:#242d3a}.status-editor-footer{background:#1b2330}

/* Embedded chat stays compact; the main page has room for the complete visual menu. */
.widget-mode .support-shell{border-radius:0;border:0;box-shadow:none;background:#14191f}
.widget-mode .conversation-header{padding:12px 14px;gap:9px;background:linear-gradient(110deg,#252d38,#1a222c)}
.widget-mode .support-avatar{width:32px;height:32px;font-size:22px;border-radius:10px}
.widget-mode .support-heading strong{font-size:14px}.widget-mode .support-heading>span{font-size:9px}
.widget-mode .conversation-status{font-size:9px;padding:9px 14px;background:#1a212b}
.widget-mode .conversation-feed,.widget-mode .welcome-mode .conversation-feed{padding:18px 16px}
.widget-mode .welcome-intro{text-align:left;padding:0;margin-bottom:18px}
.widget-mode .welcome-intro .eyebrow{border:0;background:none;padding:0;font-size:9px;letter-spacing:1.4px}
.widget-mode .welcome-intro .eyebrow:before{display:none}
.widget-mode .welcome-intro h1{font-size:28px;margin:10px 0 7px;letter-spacing:-1px}
.widget-mode .welcome-intro p{font-size:12px}
.widget-mode .choice-description{display:none}
.widget-mode .tile-choices .flow-choice{min-height:60px;padding:12px 10px;flex-direction:row;gap:9px;align-items:center;justify-content:flex-start;text-align:left}
.widget-mode .tile-choices .choice-icon{width:21px;height:21px;padding:4px;border-radius:9px}
.widget-mode .tile-choices .choice-label{font-size:12px}
.widget-mode .welcome-mode .tile-choices .flow-choice:first-child{min-height:60px;padding:12px 13px}
.widget-mode .welcome-mode .tile-choices .flow-choice:first-child .choice-icon{width:21px;height:21px;padding:4px;margin:0}
.widget-mode .welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:13px;letter-spacing:0}
.widget-mode .welcome-mode .options-label{margin-bottom:10px}
.widget-mode .step-top,.widget-mode .bubble-meta{font-size:10px}
.widget-mode .current-step{padding:18px}.widget-mode .bubble{padding:14px 16px;font-size:13px}
.widget-mode .composer{padding:12px 16px}.widget-mode .chat-footnote{padding:10px 16px;font-size:9px}
@media(max-width:1150px) and (min-width:701px){.admin-mode #admin-view{grid-template-columns:280px minmax(0,1fr)}.ticket-details{display:none}}
@media(max-width:700px){
 .page-header{height:60px;padding:0 18px}.header-note{display:none}
 .customer-mode:not(.widget-mode) #customer-view{padding:12px 10px 10px}
 .customer-mode:not(.widget-mode) .conversation-header{padding:13px 16px;gap:9px}
 .customer-mode:not(.widget-mode) .conversation-tools{width:auto;margin-left:auto;gap:4px}
 .customer-mode:not(.widget-mode) .conversation-tools .utility-button{width:42px;min-height:42px;padding:11px;justify-content:center}
 .customer-mode:not(.widget-mode) .conversation-tools .utility-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .customer-mode:not(.widget-mode) .ticket-state{display:none}
 .customer-mode:not(.widget-mode) .support-avatar{width:32px;height:32px;font-size:22px;border-radius:10px}
 .customer-mode:not(.widget-mode) .support-heading strong{font-size:14px}
 .customer-mode:not(.widget-mode) .welcome-mode .conversation-feed{padding:22px 16px}
 .welcome-intro h1{font-size:34px;letter-spacing:-1.4px}.welcome-intro p{font-size:12px}.welcome-intro{margin-bottom:20px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice{min-height:68px;padding:12px 10px;gap:9px;flex-direction:row;justify-content:flex-start;align-items:center;text-align:left}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .choice-icon{width:23px;height:23px;padding:5px;border-radius:10px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice:first-child{min-height:72px;display:flex;gap:14px;padding:15px 18px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice:first-child .choice-icon{width:25px;height:25px;padding:6px;margin:0}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice:first-child .choice-label{font-size:15px}
 .customer-mode:not(.widget-mode) .choice-description{display:none}.tile-choices .choice-label{font-size:12px}
 .customer-mode>.preview-footer{display:none}
 .customer-mode:not(.widget-mode) .conversation-status{padding:10px 16px;font-size:10px}
 .composer{padding:12px 16px}.composer-bottom{gap:8px}.composer-bottom .keyboard-hint{width:100%}
 .composer-bottom:has(.resolve-button) .primary{margin-left:auto}
 .chat-footnote{padding:10px 16px;font-size:9px}
 .admin-mode #admin-view{grid-template-columns:minmax(0,1fr);grid-template-rows:236px minmax(0,1fr)}
 .admin-mode .workspace-agent{display:none}
 .admin-mode .service-status-manage{grid-column:1/-1;grid-row:3;margin:0;padding:6px 10px;font-size:10px}
 .admin-mode .self-service-cleanup{display:none}
 .admin-mode .inbox-search:before{top:10px}.admin-mode .inbox-search:after{top:20px}
 .admin-mode .filters{padding:2px}.admin-mode .ticket-card{gap:8px;padding:10px;min-width:235px;max-width:235px}
 .admin-mode .contact-avatar{width:26px;height:26px;flex-basis:26px;border-radius:8px}
 .admin-mode .ticket-state-line{font-size:8px}.admin-mode .ticket-card small{font-size:10px}
 .admin-mode .ticket-head{padding:11px 14px;min-height:0}
 .admin-mode .ticket-head-actions button{font-size:10px;min-height:32px;padding:7px 9px}
 .admin-mode .admin-composer{padding:10px 14px}.admin-mode .reply-tabs{margin-bottom:8px}.admin-mode .reply-tabs button{padding:6px 9px}
 .admin-mode .admin-send-row .primary{min-height:38px}
 .ticket-details{display:none}
}
@media(max-width:370px){.customer-mode:not(.widget-mode) .conversation-tools{width:100%}}
@media(max-height:560px){
 .widget-mode .conversation-feed,.widget-mode .welcome-mode .conversation-feed{padding:12px 16px}
 .widget-mode .welcome-intro{margin-bottom:10px}.widget-mode .welcome-intro .eyebrow{display:none}
 .widget-mode .welcome-intro h1{font-size:25px;margin:0 0 4px}
 .widget-mode .welcome-mode .options-label{margin-bottom:8px}.widget-mode .chat-actions.tile-choices{gap:6px}
 .widget-mode .tile-choices .flow-choice,.widget-mode .welcome-mode .tile-choices .flow-choice:first-child{min-height:56px;padding-top:8px;padding-bottom:8px}
}
@media(prefers-reduced-motion:no-preference){.flow-choice:hover:not(:disabled){transform:translateY(-2px)}.flow-choice:active:not(:disabled){transform:translateY(0)}button:active:not(:disabled){filter:brightness(.96)}}

.inbox-tools .self-service-cleanup{margin:12px 0 0;width:100%}
@media(max-width:700px){.admin-mode .inbox-tools .self-service-cleanup{display:block}}
.flow-editor-link{border:1px solid #ffffff0e;flex-shrink:0;font-weight:600;text-decoration:none}
.flow-editor-link:hover{background:#2a302f;border-color:#ff873d55;color:#ffc399}
.sound-button{position:relative}
.sound-button[data-audio-state="waiting"]:after{content:'';position:absolute;width:5px;height:5px;right:4px;bottom:4px;border-radius:50%;background:#edaf73;box-shadow:0 0 0 2px #20252c}
@media(max-width:700px){.admin-mode #edit-service-status{grid-column:1}.admin-mode .flow-editor-link{grid-column:2;grid-row:3}}
@media(min-width:701px) and (max-height:800px){
 .customer-mode:not(.widget-mode) .welcome-mode .conversation-feed{padding:24px 32px}
 .customer-mode:not(.widget-mode) .welcome-intro{margin-bottom:18px;padding:0}
 .customer-mode:not(.widget-mode) .welcome-intro h1{font-size:38px;margin:12px 0 8px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice{min-height:112px;padding:12px;gap:6px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .choice-icon{width:26px;height:26px;padding:6px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice:first-child{display:grid;grid-template-columns:50px 1fr;gap:4px 17px;padding:18px;align-content:center}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice:first-child .choice-icon{grid-row:span 2;width:30px;height:30px;padding:8px;margin:0}
}
.ticket-card .tag{font-size:8px}.ticket-state-line{font-size:10px}
.flow-trace{margin-top:20px;border:1px solid #ffffff0e;border-radius:8px;background:#111820;font-size:11px;color:#c3d0e2}
.flow-trace summary{cursor:pointer;padding:11px 12px}.flow-trace .detail-info{margin:0;padding:12px;border-top:1px solid #ffffff0c}
.no-selection .admin-composer{display:none}
.ticket-more-actions{position:relative;font-size:11px}
.ticket-more-actions>summary{list-style:none;cursor:pointer;min-height:34px;padding:8px 11px;border:1px solid #ffffff13;border-radius:8px;background:#242c37;color:#c6d0e0}
.ticket-more-actions>summary::-webkit-details-marker{display:none}
.ticket-more-actions>summary:after{content:'···';margin-left:7px;letter-spacing:1px;color:#9cabc0}
.ticket-more-actions>summary:hover,.ticket-more-actions[open]>summary{background:#303a48;border-color:#ffffff26}
.ticket-more-panel{position:absolute;right:0;top:calc(100% + 7px);width:166px;display:grid;gap:4px;padding:6px;background:#202936;border:1px solid #465164;border-radius:10px;box-shadow:0 14px 40px #0006;z-index:20}
.ticket-more-panel button{text-align:left;width:100%}
@media(max-width:700px){.ticket-more-actions>summary{min-height:32px;padding:7px 9px;font-size:10px}}
@media(max-width:700px) and (max-height:750px){.admin-mode #admin-view{grid-template-rows:195px minmax(0,1fr)}.admin-mode .admin-composer textarea{height:52px;min-height:48px}}
@media(max-width:700px){.admin-mode .inbox-search input{padding-left:32px}}
@media(max-width:700px) and (max-height:750px){.admin-mode .ticket-card small{display:none}}
@media(max-width:700px) and (max-height:750px){
 .customer-mode:not(.widget-mode) .welcome-mode .conversation-feed{padding:16px}
 .customer-mode:not(.widget-mode) .welcome-intro{padding:0;margin-bottom:16px}
 .customer-mode:not(.widget-mode) .welcome-intro .eyebrow{display:none}
 .customer-mode:not(.widget-mode) .welcome-intro h1{font-size:30px;margin:0 0 7px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice{min-height:60px;padding-top:10px;padding-bottom:10px}
 .customer-mode:not(.widget-mode) .welcome-mode .tile-choices .flow-choice:first-child{min-height:64px;padding-top:12px;padding-bottom:12px}
}


/* Workspace management lives outside the conversation list. */
.workspace-settings-button{display:flex;align-items:center;gap:10px;flex-shrink:0;width:100%;margin:14px 0 0;padding:12px 14px;border:1px solid #ffffff12;border-radius:10px;background:#1c232d;color:#c9d3e1;font-size:12px;font-weight:600;text-align:left}
.workspace-settings-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:#ffad7d}
.settings-arrow{margin-left:auto;color:#97a7bb}
.workspace-settings-button:hover{background:#252e3b;border-color:#ffad7d40}
dialog.admin-settings{width:min(860px,calc(100vw - 40px));max-width:860px;max-height:calc(100dvh - 56px);padding:0;overflow:hidden;box-sizing:border-box;background:#151b24;border-color:#ffffff1c;border-radius:22px}
.admin-settings[open]{display:flex;flex-direction:column}
.admin-settings-header{display:flex;align-items:flex-start;gap:20px;padding:27px 30px 23px;background:radial-gradient(ellipse at 0 0,#ff945418,transparent 70%),#1a212b;border-bottom:1px solid #ffffff0c;flex-shrink:0}
.admin-settings-header>div{flex:1}
.admin-settings-header .eyebrow{font-size:9px;letter-spacing:1.8px;color:#ffb483}
.admin-settings-header h2{font-size:29px;letter-spacing:-1px;margin:8px 0}
.admin-settings-header p{margin:0;color:#a0aec1;font-size:12px}
.admin-settings-header .utility-button{width:34px;height:34px;padding:8px;margin-top:2px;background:#ffffff05}
.admin-settings-header svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.admin-settings-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#414e60 transparent;padding:26px 30px}
.settings-section+.settings-section{margin-top:30px}
.settings-section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px}
.settings-number{display:grid;place-items:center;width:28px;height:28px;border:1px solid #ffffff0d;border-radius:8px;flex-shrink:0;font-size:10px;color:#a1b0c5;background:#ffffff03;font-variant-numeric:tabular-nums}
.settings-section h3{font-size:14px;letter-spacing:-.2px;margin:1px 0 4px}
.settings-section-heading p{font-size:11px;line-height:1.6;color:#93a2b8;margin:0}
.settings-tool-grid,.settings-retention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.settings-tool{display:flex;align-items:center;gap:12px;padding:17px;text-align:left;border:1px solid #ffffff10;border-radius:12px;background:#1c2430;color:#e7edf6;text-decoration:none;min-width:0}
.settings-tool:hover{background:#232e3d;border-color:#ffb48344}
.settings-tool>span:nth-child(2){min-width:0}
.settings-tool strong{display:block;font-size:12px;font-weight:600}
.settings-tool small{display:block;font-size:10px;line-height:1.7;color:#95a6bd;margin-top:5px}
.settings-tool-icon{width:35px;height:35px;display:grid;place-items:center;border:1px solid #ffae7a26;border-radius:10px;background:#ff94540b;color:#ffb483;flex-shrink:0}
.settings-tool-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.settings-card{padding:17px;border:1px solid #ffffff0e;border-radius:12px;background:#19212c}
.settings-card label{margin:0 0 10px;font-size:12px;font-weight:600;color:#d3ddeb}
.settings-card select{width:100%;font-size:11px;background:#111821;border-color:#ffffff17;padding:10px}
.settings-card p{font-size:10px;line-height:1.8;color:#95a5bb;margin:12px 0 0}
.settings-cleanup-list{border:1px solid #ffffff0d;border-radius:12px;overflow:hidden;background:#19212c}
.settings-cleanup-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 17px}
.settings-cleanup-row+.settings-cleanup-row{border-top:1px solid #ffffff0b}
.settings-cleanup-row>div:first-child{flex:1;min-width:0}
.settings-cleanup-row h4{font-size:12px;font-weight:600;margin:0 0 5px;color:#d6dfec}
.settings-cleanup-row p{font-size:10px;line-height:1.6;color:#95a5bb;margin:0}
.settings-delete{padding:9px 11px;font-size:10px;line-height:1.5;max-width:230px;flex-shrink:0;background:#e7937310;border:1px solid #e99b852a;color:#efb49e;border-radius:8px}
.settings-delete:not(:disabled):hover{border-color:#e99b8566;background:#e7937320}
.settings-delete:disabled{opacity:.4}
.settings-cleanup-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.settings-cleanup-actions select{font-size:11px;padding:9px;background:#111821;border-color:#ffffff17}
.settings-bans-button{display:flex;align-items:center;gap:14px;width:100%;padding:14px 17px;border:1px solid #ffffff10;border-radius:12px;background:#19212c;color:#d3ddeb;font-size:12px;text-align:left}
.settings-count{margin-left:auto;min-width:24px;padding:3px 7px;border-radius:6px;background:#ff945412;color:#ffba90;text-align:center;font-size:10px}
.admin-settings-footer{display:flex;align-items:center;gap:20px;border-top:1px solid #ffffff0d;padding:17px 30px;background:#1a212b;flex-shrink:0}
.admin-settings-footer p{flex:1;font-size:10px;line-height:1.6;color:#a0b1c7;margin:0}
.admin-settings-footer button{font-size:12px;min-width:78px}
@media(max-width:700px){
 .admin-mode #admin-view{grid-template-rows:196px minmax(0,1fr)}
 .admin-mode .inbox-sidebar{grid-template-rows:35px 35px minmax(0,1fr)}
 .admin-mode #ticket-list{grid-row:3}
 .workspace-settings-button{grid-column:2;grid-row:2;margin:0;width:auto;padding:9px 10px;font-size:10px;gap:7px;align-self:center}
 .workspace-settings-button svg{width:15px;height:15px}
 .workspace-settings-button .settings-arrow{display:none}
 dialog.admin-settings{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:17px}
 .admin-settings-header{padding:20px}
 .admin-settings-header h2{font-size:26px}
 .admin-settings-header p{font-size:11px}
 .admin-settings-scroll{padding:20px}
 .settings-tool-grid,.settings-retention-grid{grid-template-columns:1fr;gap:10px}
 .settings-tool{padding:14px}
 .settings-tool small{font-size:11px}
 .settings-card p,.settings-cleanup-row p,.settings-section-heading p{font-size:11px}
 .settings-cleanup-row{align-items:stretch;flex-direction:column;gap:12px;padding:15px}
 .settings-delete{max-width:none;width:100%;font-size:11px}
 .settings-cleanup-actions select{flex:1;min-width:0}
 .settings-cleanup-actions .settings-delete{width:auto}
 .admin-settings-footer{padding:15px 20px;gap:12px}
}
@media(max-width:700px) and (max-height:750px){.admin-mode #admin-view{grid-template-rows:165px minmax(0,1fr)}}


/* Short follow-up choices should read as actions, rather than full-width topic cards. */
#chat-actions:not(.tile-choices):not(:empty){display:flex;flex-flow:row wrap;gap:9px;max-width:none}
.chat-actions:not(.tile-choices)>.flow-choice{width:auto;max-width:100%;min-height:42px;padding:10px 15px;gap:9px;border-radius:10px;font-size:12px}
.chat-actions:not(.tile-choices) .choice-icon{width:18px;height:18px}
.chat-actions:not(.tile-choices) .choice-arrow{margin-left:5px}
.chat-actions.confirmation-choices{margin-top:15px}
.chat-actions.confirmation-choices>.confirmation-choice{min-width:78px;justify-content:center;font-size:13px;padding:10px 20px}
.confirmation-choices>.confirmation-choice.primary{background:linear-gradient(135deg,#ffab6e,#ff8043);border-color:#ff9d60;color:#271409}
.confirmation-choices>.confirmation-choice.primary:hover{background:linear-gradient(135deg,#ffbb84,#ff925e);border-color:#ffc195}
.closed-choice-hint{font-size:12px;color:#99a8bc}
