:root{--g:#0b8558;--dark:#16352a;--muted:#718078;--line:#dfe7e2;--bg:#f5f8f6}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;color:var(--dark);background:var(--bg)}button,input,select,textarea{font:inherit}aside{position:fixed;inset:0 auto 0 0;width:230px;padding:28px 18px;background:#fff;border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:20px}.brand b,.account>span{display:grid;place-items:center;background:#10a66e;color:#fff;border-radius:10px}.brand b{width:38px;height:38px}.account{display:flex;gap:10px;align-items:center;padding:15px 10px;margin:28px 0;background:#f1f7f4;border-radius:10px}.account>span{width:34px;height:34px}.account div{display:flex;flex-direction:column;gap:3px}.account strong{font-size:11px}.account small{font-size:9px;color:var(--muted)}nav{display:grid;gap:7px}nav button{padding:12px;border:0;border-radius:8px;background:transparent;text-align:left;color:#5e6b64}nav button.active,nav button:hover{background:#e7f6ef;color:var(--g);font-weight:bold}main{margin-left:230px;padding:35px;max-width:1500px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}header small{color:var(--g);font-weight:bold;letter-spacing:1px}h1{margin:6px 0}header p,.card p{color:var(--muted)}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:#fff}.primary{background:var(--g);color:#fff;border:0;font-weight:bold}.page{display:none}.page.active{display:block}.banner,.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.banner{margin-bottom:15px}.banner.ok{background:#e7f6ef;color:#076b47}.banner.bad{background:#fff2ed;color:#a24b31}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:14px 0}.stats article{background:#fff;border:1px solid var(--line);padding:20px;border-radius:11px}.stats span{display:block;color:var(--muted);font-size:12px}.stats strong{display:block;margin-top:10px;font-size:25px}.form{max-width:820px}.form label{display:flex;flex-direction:column;gap:7px;margin:15px 0;font-size:12px;font-weight:bold}.form input,.form select,.form textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff}.form textarea{min-height:90px;resize:vertical}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.table{overflow:auto}table{width:100%;border-collapse:collapse;min-width:850px}th,td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;font-size:11px}th{color:var(--muted)}.cardhead{display:flex;justify-content:space-between;align-items:center}code,pre{display:block;padding:13px;background:#eef5f1;border-radius:7px;overflow:auto}#notice{position:fixed;right:25px;bottom:25px;z-index:5}.toast{padding:13px 17px;border-radius:8px;background:#163d2e;color:#fff}.media-only,.location-only{display:none}@media(max-width:760px){aside{width:70px;padding:20px 9px}.brand strong,.account div,nav button{font-size:0}.brand{justify-content:center}.account{justify-content:center;padding:8px}nav button{text-align:center}nav button:before{content:"•";font-size:24px}main{margin-left:70px;padding:20px 12px}.stats,.grid{grid-template-columns:1fr 1fr}header{align-items:flex-start;gap:10px}}@media(max-width:480px){.stats,.grid{grid-template-columns:1fr}}

.template-media{display:none!important}.template-media.visible{display:flex!important}.template-preview{padding:14px;margin:10px 0;border:1px solid #cfe4d8;border-radius:8px;background:#f0f8f4;white-space:pre-wrap;font-size:12px;line-height:1.6}.template-preview:empty{display:none}
.live-dot{padding:6px 9px;border-radius:14px;background:#e4f7ed;color:#08724b;font-size:10px;font-weight:bold}.inbox-state{padding:12px 0;color:var(--muted);font-size:11px}.inbox-list{display:grid}.inbox-message{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:start;padding:15px 5px;border-top:1px solid var(--line)}.inbox-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e4f6ed;color:var(--g);font-size:11px;font-weight:bold}.inbox-copy{min-width:0}.inbox-copy strong{font-size:12px}.inbox-copy small{display:block;margin:3px 0 7px;color:var(--muted);font-size:9px}.inbox-copy p{margin:0!important;color:var(--dark)!important;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}.inbox-message time{color:var(--muted);font-size:9px;white-space:nowrap}#inboxBadge:not(:empty){display:inline-block;margin-left:5px;padding:2px 6px;border-radius:9px;background:var(--g);color:#fff;font-size:9px}
.template-request{margin-top:16px}.template-request #textHeaderFields,.template-request #sampleMediaRow,.template-request #quickReplyFields,.template-request #ctaFields{display:none}
.templates-table{min-width:1050px}.template-content{min-width:320px;max-width:520px;white-space:pre-wrap;line-height:1.55;color:#405048}
.template-filters{display:flex;gap:8px;flex-wrap:wrap}.template-filters select,.template-filters input{min-height:38px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff}.template-filters input{min-width:210px}#settingsState,#sampleMediaState,#templateSubmitResult{margin-top:12px;color:var(--muted);font-size:11px;white-space:pre-wrap}
.status-badge{display:inline-block;padding:4px 8px;border-radius:12px;background:#edf2ef;font-size:9px;font-weight:bold}.template-filters+.table{margin-top:12px}
.inbox-reply{display:none;margin:8px 0 18px;padding:15px;border:1px solid #b9ddca;border-radius:10px;background:#f0f8f4}.inbox-reply.open{display:grid;gap:10px}.inbox-reply>div:first-child{display:flex;justify-content:space-between;align-items:center}.inbox-reply textarea{width:100%;min-height:78px;padding:11px;border:1px solid var(--line);border-radius:8px;resize:vertical}.inbox-reply small{color:var(--muted);font-size:9px}.inbox-reply .primary{justify-self:start}.reply-button{margin-top:9px;padding:6px 10px;color:var(--g);border-color:#b9ddca;background:#f5fbf8;font-size:9px}.inbox-message-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px}#replyState{font-size:10px;color:var(--muted)}
.chat-app{height:calc(100vh - 150px);min-height:560px;padding:0!important;display:grid;grid-template-columns:340px 1fr;overflow:hidden}.chat-app .chat-sidebar{position:static;inset:auto;width:auto;padding:0;background:#fff;border:0;border-right:1px solid var(--line);display:flex;flex-direction:column}.chat-list-head{height:72px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.chat-list-head h2{margin:0 0 4px}.chat-list-head small{color:var(--muted);font-size:9px}.chat-search{margin:12px;padding:10px 12px;border:1px solid var(--line);border-radius:20px;background:#f5f8f6}.chat-list{overflow:auto;flex:1}.chat-contact{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 14px;border:0;border-bottom:1px solid #edf1ef;border-radius:0;text-align:left}.chat-contact:hover,.chat-contact.selected{background:#e9f7f0}.chat-contact-copy{min-width:0}.chat-contact-copy strong,.chat-contact-copy small{display:block}.chat-contact-copy strong{font-size:12px}.chat-contact-copy small{margin-top:5px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-contact-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.chat-contact-meta time{font-size:8px;color:var(--muted)}.chat-contact-meta b{min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:9px;background:var(--g);color:#fff;font-size:8px}.chat-contact-meta b:empty{display:none}.chat-panel{min-width:0;background:#efeae2;position:relative}.chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted)}.chat-empty strong{color:var(--dark);font-size:18px}.chat-active{height:100%;display:none;flex-direction:column}.chat-header{height:66px;flex:none;padding:10px 16px;display:flex;align-items:center;gap:10px;background:#f7faf8;border-bottom:1px solid var(--line);margin:0}.chat-header>div:nth-of-type(2){display:flex;flex-direction:column;gap:3px;flex:1}.chat-header small{color:var(--muted);font-size:9px}.chat-header #chatBack{display:none}.chat-thread{flex:1;overflow:auto;padding:22px;background-color:#efeae2;background-image:radial-gradient(#d9d4cc 0.65px,transparent .65px);background-size:12px 12px}.chat-bubble-row{display:flex;margin:5px 0}.chat-bubble-row.outgoing{justify-content:flex-end}.chat-bubble{max-width:min(72%,560px);padding:9px 11px 6px;border-radius:8px;background:#fff;box-shadow:0 1px 1px #00000014}.outgoing .chat-bubble{background:#d9fdd3}.chat-bubble p{margin:0 0 5px!important;color:#1f2c27!important;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble span{display:block;text-align:right;color:#738079;font-size:8px}.chat-compose{flex:none;padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:8px;background:#f2f5f3;border-top:1px solid var(--line)}.chat-compose textarea{min-height:43px;max-height:120px;padding:12px 14px;border:1px solid var(--line);border-radius:22px;resize:none}.chat-compose .primary{border-radius:22px}.chat-compose small{grid-column:1/-1;color:var(--muted);font-size:8px}.chat-no-results{padding:30px 15px;text-align:center;color:var(--muted);font-size:11px}
@media(max-width:900px){.chat-app{grid-template-columns:1fr;height:calc(100vh - 130px)}.chat-panel{position:absolute;inset:0;z-index:3;transform:translateX(100%);transition:transform .2s}.chat-panel.mobile-open{transform:translateX(0)}.chat-header #chatBack{display:block;padding:7px}.chat-bubble{max-width:84%}}
.danger{border-color:#e8b8b4!important;background:#fff2f1!important;color:#b43f37!important}.small{padding:6px 9px;font-size:9px}.cleanup-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.cleanup-actions button{font-size:9px}.templates-table{min-width:1150px}@media(max-width:760px){.cleanup-actions{justify-content:flex-start}.cardhead{align-items:flex-start;gap:12px}}
.library-upload{display:inline-flex!important;flex-direction:row!important;align-items:center;margin:0!important;padding:10px 14px;border-radius:8px;background:var(--g);color:#fff!important;cursor:pointer}.library-upload input{display:none}.media-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:12px}.media-card{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;grid-template-columns:52px 1fr;gap:12px}.media-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:9px;background:#e8f6ef;color:var(--g);font-size:10px;font-weight:bold}.media-video{background:#edf0fb;color:#5065a8}.media-document{background:#fff1e5;color:#ad6226}.media-info{min-width:0;display:flex;flex-direction:column;gap:5px}.media-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.media-info small{color:var(--muted);font-size:8px}.media-actions{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}.media-actions button{padding:7px 9px;font-size:8px}
.profile-editor-head{display:flex;align-items:center;gap:15px;margin-bottom:18px}.profile-editor-head h2{margin:0 0 5px}.profile-editor-head p{margin:0}.profile-editor-head>div:nth-child(2){flex:1}.profile-editor-head small{display:block;margin-top:5px;color:var(--muted);font-size:9px}.profile-picture{width:74px;height:74px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e6f6ee center/cover no-repeat;color:var(--g);font-size:18px;font-weight:bold;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}#profilePictureState,#profileState{margin:10px 0;color:var(--muted);font-size:10px}
.synced-identity{padding:14px;margin-bottom:18px;border:1px solid #cfe4d8;border-radius:9px;background:#f2f9f5}.synced-identity label{margin:0}.synced-identity input[readonly]{background:#e9f2ed;color:#29483b;font-weight:bold}
.variable-section{display:flex;flex-direction:column;gap:10px;margin:15px 0;padding:14px;border:1px solid var(--line);border-radius:9px;background:#f8faf9}.variable-section>strong{font-size:11px}.variable-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.variable-fields label{margin:0!important;padding:10px;border-radius:8px;background:#fff}.variable-fields input{margin-top:2px}.no-variables{grid-column:1/-1;color:var(--muted);font-size:10px}@media(max-width:620px){.variable-fields{grid-template-columns:1fr}}
.chat-compose{grid-template-columns:auto minmax(0,1fr) auto}
.chat-attachment{display:none;grid-column:1/-1;align-items:center;gap:12px;padding:9px 12px;border:1px solid #cce8dc;border-radius:12px;background:#effaf5;color:#145c45;font-size:13px}
.chat-attachment.visible{display:flex}
.chat-attachment-preview{width:88px;height:68px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#dcece4}
.chat-attachment-preview img,.chat-attachment-preview video{width:100%;height:100%;display:block;object-fit:cover}
.chat-document-preview{display:grid!important;place-items:center;width:44px;height:50px;border-radius:5px;background:#fff;color:#ad6226;font-size:10px;font-weight:800;box-shadow:0 1px 4px #0002}
.chat-attachment-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.chat-attachment-copy strong,.chat-attachment-copy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attachment-copy small{grid-column:auto;color:var(--muted);font-size:9px}
.chat-attachment button{flex:0 0 auto;border:0;background:transparent;color:#c23838;font-weight:800;cursor:pointer}
.chat-attach{width:43px;height:43px;display:grid;place-items:center;align-self:end;border:1px solid #cbd8d2;border-radius:50%;background:#fff;color:#087a55;font-size:10px;font-weight:800;cursor:pointer}
.chat-attach:hover{background:#effaf5;border-color:#88cbb2}
.chat-attach input{display:none}
.template-buttons-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}.template-buttons-head>div{display:flex;flex-direction:column;gap:4px}.template-buttons-head small{color:var(--muted);font-size:9px}.template-button-rows{display:grid;gap:9px;margin-bottom:15px}.template-button-row{display:grid;grid-template-columns:150px minmax(130px,1fr) minmax(170px,1.4fr) minmax(170px,1.4fr) auto;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:9px;background:#f8faf9}.template-button-row select,.template-button-row input{width:100%;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff}.template-button-row button{padding:9px}.template-button-rows:empty:after{content:"No buttons added. Templates can be submitted without buttons.";padding:12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:10px}@media(max-width:900px){.template-button-row{grid-template-columns:1fr 1fr}.template-button-row .remove-template-button{grid-column:1/-1;justify-self:start}}
.bulk-file-box{display:flex;align-items:center;gap:12px;margin:14px 0}.bulk-file-box label{margin:0!important}.bulk-file-box small{color:var(--muted);font-size:10px}.bulk-column-mapping{display:none;margin:12px 0;padding:14px;border:1px solid #cfe4d8;border-radius:10px;background:#f3faf6}.bulk-column-mapping.visible{display:block}.bulk-column-mapping>label,.bulk-variable-mapping label{display:flex;flex-direction:column;gap:6px;margin:8px 0;font-size:10px;font-weight:bold}.bulk-column-mapping select{padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff}.bulk-variable-mapping{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bulk-file-box+.bulk-column-mapping table{min-width:600px}.bulk-column-mapping .table{margin-top:12px;max-height:260px}@media(max-width:620px){.bulk-variable-mapping{grid-template-columns:1fr}.bulk-file-box{align-items:flex-start;flex-direction:column}}
.country-code-tool{display:grid;grid-template-columns:160px auto minmax(180px,1fr);gap:10px;align-items:end;margin:14px 0;padding:12px;border:1px solid #cfe4d8;border-radius:9px;background:#f3faf6}.country-code-tool label{margin:0!important}.country-code-tool input{width:100%;padding:10px;border:1px solid var(--line);border-radius:7px}.country-code-tool button{height:39px;color:var(--g);border-color:#9bcdb7;font-weight:bold}.country-code-tool small{align-self:center;color:var(--muted);font-size:9px}@media(max-width:620px){.country-code-tool{grid-template-columns:1fr}.country-code-tool button{justify-self:start}}
.chatbot-rules-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}.chatbot-rules-head>div{display:flex;flex-direction:column;gap:4px}.chatbot-rules-head small{color:var(--muted);font-size:9px}.chatbot-rules{display:grid;gap:10px;margin-bottom:16px}.chatbot-rule{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.4fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:9px;background:#f8faf9}.chatbot-rule label{margin:0!important}.chatbot-rule textarea{min-height:64px}.chatbot-rule button{margin-bottom:1px}.chatbot-rules:empty:after{content:"No reply rules added. The fallback reply will be used.";padding:12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:10px}.status-badge.bot-on{background:#dff6e9;color:#08724b}#chatbotState{margin-top:12px;color:var(--muted);font-size:10px}@media(max-width:760px){.chatbot-rule{grid-template-columns:1fr}.chatbot-rule button{justify-self:start}}
.auth-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#e6f7ef,transparent 45%),var(--bg)}.auth-main{margin:0;padding:20px;width:100%;max-width:520px}.auth-card{padding:38px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 60px #183f2d18}.auth-card>.brand{margin-bottom:28px;justify-content:flex-start}.auth-card>small{color:var(--g);font-weight:bold;letter-spacing:1px}.auth-card h1{margin-top:10px}.auth-card form{display:grid;gap:15px}.auth-card label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:bold}.auth-card input{padding:12px;border:1px solid var(--line);border-radius:8px}.header-actions{display:flex;align-items:center;gap:8px}.header-actions span{font-size:10px;color:var(--muted)}.button-link{display:inline-block;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--dark);text-decoration:none;font-size:13px}.user-editor{display:none;margin:15px 0;padding:16px;border:1px solid #b9ddca;border-radius:10px;background:#f4faf7}.user-editor.visible{display:block}.user-editor>strong{display:block;margin:14px 0 8px;font-size:11px}.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.permission-grid label{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;margin:0!important;padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff}.permission-grid input{width:auto!important}.permission-grid.disabled{opacity:.45;pointer-events:none}.user-editor-actions{display:flex;gap:8px;margin-top:15px}#userState{margin-top:10px;color:var(--muted);font-size:10px}@media(max-width:700px){.permission-grid{grid-template-columns:1fr 1fr}.header-actions span{display:none}}

/* HS Value Services professional brand */
:root{--g:#07875f;--brand:#b6050b;--brand-dark:#850207;--dark:#17211d;--muted:#66736d;--line:#e2e8e5;--bg:#f3f6f5}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.005em}
aside{width:256px;padding:22px 18px;background:linear-gradient(180deg,#101713 0%,#17221d 100%);border:0;box-shadow:8px 0 32px #0d17120f}
.brand{width:100%}.brand-logo{display:block;width:100%;height:120px;object-fit:contain;background:#fff;border-radius:12px;padding:2px}
.account{margin:18px 0 22px;padding:13px;background:#ffffff0c;border:1px solid #ffffff12}.account>span{background:linear-gradient(145deg,var(--brand),#df2228);box-shadow:0 5px 15px #a4000640}.account strong{color:#fff;font-size:11px}.account small{color:#98aaa1}
nav{gap:5px}nav button{position:relative;padding:11px 13px;color:#b8c6bf;border-radius:9px;font-size:12px;transition:.16s ease}nav button:hover{background:#ffffff0c;color:#fff}nav button.active{background:linear-gradient(90deg,#b6050b,#8e0308);color:#fff;box-shadow:0 7px 18px #7901073b}nav button.active:before{content:"";position:absolute;left:-18px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#fff}
main{margin-left:256px;padding:30px 34px;max-width:none}main>header{padding:3px 2px 18px;margin-bottom:20px;border-bottom:1px solid var(--line)}header small{color:var(--brand);font-size:9px;letter-spacing:1.4px}h1{font-size:28px;letter-spacing:-.035em}h2{letter-spacing:-.025em}header p{margin:4px 0 0;font-size:12px}
.header-actions span{padding:9px 12px;border-radius:20px;background:#fff;border:1px solid var(--line);color:#435049;font-size:10px;font-weight:700}.button-link,#refresh{border-color:#d7dfdb;box-shadow:0 1px 2px #15291f0a}.button-link:hover,#refresh:hover{border-color:#b8c7c0;background:#fafcfb}
.banner,.card,.stats article{border-color:#e1e7e4;border-radius:14px;box-shadow:0 7px 24px #163a2710}.card{padding:22px}.stats{gap:15px;margin:16px 0 20px}.stats article{position:relative;overflow:hidden;padding:21px}.stats article:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--brand)}.stats article:nth-child(2n):before{background:var(--g)}.stats strong{font-size:29px;letter-spacing:-.04em}
button,.button-link{transition:border-color .15s,background .15s,transform .15s,box-shadow .15s}button:active,.button-link:active{transform:translateY(1px)}.primary{background:linear-gradient(135deg,#07875f,#056d4c);box-shadow:0 6px 15px #07745125}.primary:hover{box-shadow:0 8px 20px #07745138}.danger{border-color:#edc7c8!important;background:#fff7f7!important;color:#a60309!important}
.form input,.form select,.form textarea,.chat-search,.auth-card input{border-color:#d8e0dc;outline:0;transition:border-color .15s,box-shadow .15s}.form input:focus,.form select:focus,.form textarea:focus,.chat-search:focus,.auth-card input:focus{border-color:#0b9369;box-shadow:0 0 0 3px #07946918}
th{padding-top:14px;padding-bottom:14px;background:#f7f9f8;color:#56645d;font-size:9px;text-transform:uppercase;letter-spacing:.6px}td{font-size:11px}.table{border:1px solid var(--line);border-radius:10px}
.auth-body{background:radial-gradient(circle at 15% 10%,#dcebe5 0,transparent 35%),radial-gradient(circle at 90% 90%,#f4dddd 0,transparent 32%),#eef3f1}.auth-main{max-width:500px}.auth-card{padding:36px 42px;border-radius:20px;box-shadow:0 28px 80px #14241c20}.auth-card>.brand{margin:0 auto 25px}.auth-card .brand-logo{height:140px;border:1px solid var(--line)}.auth-card>small{display:block;color:var(--brand);text-align:center}.auth-card h1{text-align:center;font-size:30px}.auth-card>p{text-align:center;margin-bottom:24px;color:var(--muted)}.auth-card .primary{min-height:46px}
.chat-app{border-radius:14px}.chat-list-head h2{font-size:18px}.chat-contact.selected{border-left:3px solid var(--brand)}.live-dot{background:#e5f6ee;color:#08724b}.status-badge.bot-on{background:#e2f5ec;color:#06724d}
@media(max-width:760px){aside{width:76px;padding:16px 9px}.brand-logo{height:52px;padding:1px}.account{margin:13px 0;padding:8px}.account>span{width:34px;height:34px}nav button{font-size:0;padding:10px;text-align:center}nav button:after{content:attr(data-page);display:block;font-size:7px;text-transform:capitalize;white-space:nowrap;color:inherit}nav button:before{display:none!important}main{margin-left:76px;padding:18px 12px}.header-actions{flex-wrap:wrap;justify-content:flex-end}.auth-main{margin:0 auto}.auth-card{padding:28px 22px}.auth-card .brand-logo{height:92px}}
.flow-builder{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;margin:18px 0}.flow-palette{position:static;inset:auto;width:auto;padding:14px;border:1px solid #263a31;border-radius:12px;background:#17221d;box-shadow:none;display:flex;flex-direction:column;gap:7px;align-self:start}.flow-palette strong{color:#fff;font-size:12px}.flow-palette small{margin-bottom:7px;color:#9caea5;font-size:8px;line-height:1.5}.flow-palette button{width:100%;padding:10px;border:1px solid #ffffff17;background:#ffffff0b;color:#dce7e1;text-align:left;font-size:10px}.flow-palette button:hover{border-color:#ffffff38;background:#ffffff12}.flow-workspace{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f6f8f7}.flow-workspace-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.flow-workspace-head>div{display:flex;flex-direction:column;gap:4px}.flow-workspace-head small{color:var(--muted);font-size:8px}.flow-canvas{min-height:240px;display:grid;gap:11px}.flow-empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:2px dashed #cdd8d2;border-radius:10px;color:var(--muted)}.flow-empty strong{color:#405148}.flow-empty span{font-size:9px}.flow-node{border:1px solid #d7e0dc;border-radius:11px;background:#fff;box-shadow:0 4px 14px #183b2810;overflow:hidden;cursor:grab}.flow-node>header{margin:0;padding:10px 12px;border-bottom:1px solid var(--line);background:#f8faf9;display:flex;align-items:center;gap:9px}.flow-node>header>div{display:flex;flex:1;flex-direction:column;gap:2px}.flow-node>header small{color:var(--muted);font-size:7px}.flow-number{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-size:9px;font-weight:bold}.flow-node-fields{padding:10px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.flow-node-fields label,.flow-connections label{margin:0!important}.flow-node-fields label:has(textarea){grid-column:1/-1}.flow-node-fields textarea{min-height:65px}.flow-connections{padding:10px 12px;border-top:1px dashed var(--line);display:grid;grid-template-columns:1fr 1fr;gap:9px;background:#fbfcfb}.flow-connections label:only-child{grid-column:1/-1}.flow-node input,.flow-node select,.flow-node textarea{width:100%;padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff}.flow-node label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:bold}@media(max-width:780px){.flow-builder{grid-template-columns:1fr}.flow-palette{display:grid;grid-template-columns:1fr 1fr}.flow-palette strong,.flow-palette small{grid-column:1/-1}.flow-node-fields{grid-template-columns:1fr}.flow-node-fields label:has(textarea){grid-column:auto}}
.flow-toolbar,.flow-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0}.flow-toolbar label{flex:1;min-width:240px;margin:0}.flow-toolbar button,.flow-actions button{margin:0}.flow-actions{align-items:center}.flow-actions button:disabled{opacity:.55;cursor:not-allowed}
.chatbot-start-settings{margin:15px 0;padding:15px;border:1px solid #d7e1dc;border-radius:11px;background:linear-gradient(135deg,#f7faf8,#f2f7f5)}.chatbot-start-settings>strong{display:block;margin-bottom:4px;font-size:11px}.chatbot-start-settings>.grid label{margin:9px 0}.chatbot-start-settings>small{display:block;margin-top:7px;color:var(--muted);font-size:8px}
.flow-generator-panel{padding:22px;border-bottom:1px solid #dfe9e5;background:linear-gradient(135deg,#f1fbf7,#f4f7ff)}.flow-generator-copy span{color:#087753;font-size:9px;font-weight:900;letter-spacing:.9px}.flow-generator-copy h3{margin:5px 0 4px;color:#173f32;font-size:18px}.flow-generator-copy p{max-width:760px;margin:0;color:#61716a;font-size:10px;line-height:1.6}.flow-generator-url{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:16px}.flow-generator-url label,.flow-generator-grid label{margin:0;font-size:10px}.flow-generator-url input{height:44px;font-size:13px}.flow-generator-url button{height:44px;white-space:nowrap}.flow-generator-options{margin-top:10px}.flow-generator-options summary{color:#486258;font-size:9px;font-weight:800;cursor:pointer}.flow-generator-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:10px}.flow-generator-result{display:flex;gap:8px;align-items:center;margin-top:12px;padding:10px 12px;border:1px solid #d9e5e0;border-radius:8px;background:rgba(255,255,255,.75);color:#61716a;font-size:9px}.flow-generator-result strong{color:#20493a}.flow-generator-result span{overflow-wrap:anywhere}@media(max-width:650px){.flow-generator-url,.flow-generator-grid{grid-template-columns:1fr}.flow-generator-url button{width:100%}.flow-generator-result{align-items:flex-start;flex-direction:column}}
.knowledge-chatbot-panel{padding:22px;border-bottom:1px solid #dce6e2;background:#fff}.knowledge-chatbot-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.knowledge-chatbot-head span{color:#6555bd;font-size:9px;font-weight:900;letter-spacing:.8px}.knowledge-chatbot-head h3{margin:5px 0 4px;font-size:17px;color:#2c2850}.knowledge-chatbot-head p{margin:0;color:var(--muted);font-size:10px}.knowledge-toggle{display:flex!important;align-items:center;gap:8px;white-space:nowrap}.knowledge-toggle input{width:18px;height:18px}.knowledge-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end;margin-top:16px}.knowledge-url-row label,.knowledge-message-grid label{margin:0;font-size:10px}.knowledge-message-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.knowledge-message-grid textarea{min-height:70px}.knowledge-status{margin-top:12px;padding:10px 12px;border:1px solid #e0e5ef;border-radius:8px;background:#f8f8fd;color:#5f6472;font-size:9px}.flow-route-row{display:grid!important;grid-template-columns:minmax(100px,.7fr) minmax(180px,1.3fr);gap:10px;align-items:center}.flow-route-select{width:100%;min-height:36px}.flow-node-up,.flow-node-down{min-width:32px!important;padding:5px!important}@media(max-width:700px){.knowledge-chatbot-head{flex-direction:column}.knowledge-url-row,.knowledge-message-grid{grid-template-columns:1fr}.flow-route-row{grid-template-columns:1fr}}
.flow-lines-svg{position:absolute;z-index:0;inset:0;overflow:visible;pointer-events:none}.flow-line{fill:none;stroke:#2f9a70;stroke-width:2.5;filter:drop-shadow(0 1px 1px rgba(20,85,60,.2))}.flow-line.preview{stroke:#7865da;stroke-dasharray:6 5}.flow-node{z-index:1;cursor:default}.flow-target-port,.flow-source-port{display:inline-block!important;width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;border:3px solid #fff!important;border-radius:50%!important;background:#9aa9a3!important;box-shadow:0 0 0 2px #75867f!important;cursor:crosshair!important}.flow-target-port{position:absolute;left:-9px;top:18px;background:#fff!important;box-shadow:0 0 0 2px #6756c7!important}.flow-source-port{margin-left:auto!important}.flow-source-port.connected{background:#16a06d!important;box-shadow:0 0 0 2px #087753!important}.flow-link-row,.flow-route-row{display:flex!important;align-items:center;gap:10px;min-height:34px}.flow-link-row span,.flow-route-row span{flex:1}.flow-route-select{display:none!important}.flow-connections{position:relative;z-index:2}.flow-node-up,.flow-node-down{min-width:32px!important;padding:5px!important}@media(max-width:700px){.knowledge-chatbot-head{flex-direction:column}.knowledge-url-row,.knowledge-message-grid{grid-template-columns:1fr}}
.settings-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.user-meta-details{display:none;margin:15px 0;padding:16px;border:1px solid #d8e1dd;border-radius:11px;background:#f7faf8}.user-meta-details.visible{display:block}.user-meta-details .cardhead{margin-bottom:12px}.user-meta-details h3{margin:0 0 4px}.user-meta-details small{color:var(--muted);font-size:8px}.meta-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:13px}.meta-detail-grid>div{min-width:0;padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff;display:flex;flex-direction:column;gap:5px}.meta-detail-grid strong{overflow-wrap:anywhere;font-size:10px}.meta-detail-grid small{font-size:8px;text-transform:uppercase;letter-spacing:.4px}#userMetaState{margin-top:9px;color:var(--muted);font-size:9px}@media(max-width:700px){.meta-detail-grid{grid-template-columns:1fr 1fr}}
.consent-entry{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:9px;align-items:end;margin:15px 0}.consent-entry label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:10px;font-weight:bold}.consent-entry input{padding:10px;border:1px solid var(--line);border-radius:8px}.consent-entry button{height:39px}.status-badge.consent-out{background:#fde7e7;color:#a5050b}#consentState{margin:9px 0;color:var(--muted);font-size:9px}.chat-header #chatConsentBadge{margin-left:auto}.chat-header #toggleChatConsent{white-space:nowrap}@media(max-width:650px){.consent-entry{grid-template-columns:1fr 1fr}.consent-entry label{grid-column:1/-1}.chat-header #chatConsentBadge{display:none}.chat-header #toggleChatConsent{padding:7px;font-size:8px}}
.media-library-picker{padding:11px;border:1px solid #d6e2dc;border-radius:9px;background:#f5faf7}.media-library-picker select{margin-top:2px}.chat-library-picker{grid-column:1/-1;display:flex;justify-content:flex-end}.chat-library-picker select{width:min(100%,340px);padding:8px 11px;border:1px solid #cbd8d2;border-radius:18px;background:#fff;color:#435149;font-size:9px}
.document-filename-row{display:none!important;padding:11px;border:1px solid #ead8bc;border-radius:9px;background:#fffaf2}.document-filename-row.visible{display:flex!important}.document-filename-row small{color:var(--muted);font-size:8px}.chat-document-filename{display:none;width:100%;margin-top:3px;padding:6px 8px;border:1px solid #cbd8d2;border-radius:6px;background:#fff;font-size:9px}
.interactive-fields{display:none;margin:12px 0;padding:13px;border:1px solid #d8e2dd;border-radius:10px;background:#f6faf8}.interactive-fields.visible{display:block}.interactive-fields.grid.visible{display:grid}.interactive-fields label{margin:8px 0!important}.interactive-fields small{color:var(--muted);font-size:8px}
.template-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:245px}
.template-row-actions .small{padding:7px 10px;font-size:12px}
.template-details{display:none;margin:0 0 18px;padding:16px;border:1px solid #d7e4df;border-radius:14px;background:#f7fbf9}
.template-details.open,.template-details.visible{display:block}
.template-details pre{max-height:360px;overflow:auto;margin:10px 0 0;padding:14px;border-radius:10px;background:#10231d;color:#d9f7eb;white-space:pre-wrap;word-break:break-word}
.templates-table{min-width:1260px}
.profile-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.profile-summary>div{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #dbe8e3;border-radius:12px;background:#f8fbfa}
.profile-summary small{color:#63736d}.profile-summary strong{overflow-wrap:anywhere;color:#173a2e}
.api-endpoint{display:flex;flex-direction:column;gap:7px;margin:12px 0 18px;padding:15px;border-radius:12px;background:#eef8f4}
.api-code{overflow:auto;padding:16px;border-radius:12px;background:#10231d;color:#d9f7eb;white-space:pre-wrap;word-break:break-word}
#newApiKey:empty{display:none}#newApiKey code{display:block;margin-top:10px;padding:10px;background:#fff;overflow-wrap:anywhere;user-select:all}
.media-url-box{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px dashed #9fc4b6;border-radius:12px;background:#f5fbf8}
.setup-guide ol{display:grid;gap:12px;padding-left:24px}.setup-guide li{padding:12px 14px;border:1px solid #dbe8e3;border-radius:12px;background:#f8fbfa}
.setup-guide li strong,.setup-guide li span{display:block}.setup-guide li span{margin-top:5px;color:#60716b;line-height:1.5}
.api-type-grid{display:flex;flex-wrap:wrap;gap:8px}.api-type-grid code{padding:8px 11px;border-radius:999px;background:#eaf6f1;color:#126746}
.api-tester .code-input{min-height:220px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.api-tester pre{min-height:90px}
.failure-reason{min-width:260px;max-width:420px;white-space:normal;color:#a52a22}
.postman-download{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 20px;padding:16px;border:1px solid #d7e7e1;border-radius:14px;background:#f7fbf9}.postman-download>div:first-child{display:flex;flex-direction:column;gap:5px}.postman-download span{color:#61716b}@media(max-width:760px){.postman-download{align-items:stretch;flex-direction:column}}

/* World-class workspace polish */
:root{--g:#07875f;--g-soft:#e8f7f1;--brand:#c30d16;--dark:#13251e;--muted:#66766f;--line:#dfe8e4;--bg:#f4f7f6;--surface:#fff;--shadow:0 12px 34px rgba(13,45,33,.075)}
html{scroll-behavior:smooth}body{min-height:100vh;background:radial-gradient(circle at 78% -10%,#dcefe7 0,transparent 30%),var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}
aside{z-index:10;background:linear-gradient(165deg,#071c17 0%,#0d2b21 58%,#101f1a 100%);box-shadow:12px 0 38px rgba(4,24,17,.11)}
aside:after{content:"Cloud API Console";display:block;margin:18px 12px 0;padding-top:14px;border-top:1px solid #ffffff12;color:#789087;font-size:9px;letter-spacing:.12em;text-transform:uppercase}
nav{max-height:calc(100vh - 230px);overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:#ffffff20 transparent}
nav button{min-height:41px;font-weight:600;letter-spacing:.01em}
main{min-height:100vh;padding:32px clamp(20px,3vw,48px)}
main>header{position:sticky;top:0;z-index:8;margin:-32px 0 24px;padding:23px 2px 18px;background:linear-gradient(180deg,rgba(244,247,246,.98) 74%,rgba(244,247,246,.82) 90%,transparent);backdrop-filter:blur(12px)}
main>header h1{margin:5px 0 0}.header-actions{flex-wrap:wrap;justify-content:flex-end}
.sync-state{position:relative;padding-left:26px!important;background:var(--g-soft)!important;border-color:#cde9dd!important;color:#087250!important}
.sync-state:before{content:"";position:absolute;left:11px;top:50%;width:7px;height:7px;border-radius:50%;background:#0aa06d;box-shadow:0 0 0 4px #0aa06d18;transform:translateY(-50%)}
.panel-loading .sync-state:before{animation:syncPulse 1s infinite}.panel-loading #refresh{opacity:.65;cursor:wait}
@keyframes syncPulse{50%{box-shadow:0 0 0 8px transparent}}
.page{animation:pageIn .2s ease}.page.active{display:block}@keyframes pageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.banner,.card,.stats article{background:rgba(255,255,255,.96);box-shadow:var(--shadow)}
.banner{display:flex;align-items:center;min-height:62px;padding:17px 20px;font-weight:650}.banner:before{content:"";width:9px;height:9px;margin-right:12px;border-radius:50%;background:#a7b3ae}.banner.ok:before{background:#0da46f;box-shadow:0 0 0 5px #0da46f17}.banner.bad:before{background:#dc493f;box-shadow:0 0 0 5px #dc493f15}
.card{margin-bottom:18px}.cardhead{gap:20px}.cardhead h2,.card h2{margin-top:0}.cardhead p{margin:5px 0 0;line-height:1.5}
.stats{grid-template-columns:repeat(4,minmax(150px,1fr))}.stats article{min-height:112px}.stats span{text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:700}.stats strong{font-size:32px}
button,.button-link{min-height:39px;font-weight:650}.primary{border:1px solid transparent}.primary:hover{filter:saturate(1.08);transform:translateY(-1px)}
.table{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}tbody tr{transition:background .12s}tbody tr:hover{background:#f7fbf9}
input,select,textarea{accent-color:var(--g)}.form input,.form select,.form textarea{min-height:42px}
#notice{z-index:30}.toast{border:1px solid #ffffff18;border-radius:11px;box-shadow:0 14px 36px #061b1450}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:760px){main>header{top:0;margin:-18px 0 18px;padding:17px 0 14px}main>header p{display:none}.header-actions{gap:6px}.header-actions .user-chip{display:none}.sync-state{display:inline-block!important}.stats{grid-template-columns:1fr 1fr}.card{padding:17px}.banner{padding:15px}.page{min-width:0}}
@media(max-width:480px){.stats{grid-template-columns:1fr}.header-actions #refresh{font-size:0}.header-actions #refresh:after{content:"Refresh";font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.user-id{display:block;margin-top:4px;color:var(--muted);font-size:8px}.password-card{max-width:820px}#passwordState,#adminPasswordState{margin-top:11px;color:var(--muted);font-size:10px}
.operations-title{margin-bottom:16px}.operations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.operations-grid .card{margin:0}.operations-grid .operation-wide{grid-column:1/-1}.operation-list{display:grid;gap:7px;margin-top:13px}.operation-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f8fbfa}.operation-list>div>div{min-width:0;display:flex;flex-direction:column;gap:4px}.operation-list a{overflow:hidden;color:var(--g);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.operation-list small{color:var(--muted)}.operation-list .operation-meta{display:flex;flex-direction:row;gap:6px;flex-wrap:wrap}.operation-list .operation-meta code{font-size:8px}.operation-list .current-phone{border-color:#86c9ab;background:#eff9f4}.flow-validation{color:#a33!important;white-space:normal}#registrationState,#subscriptionState,#commerceState,#qrState,#blockedState,#analyticsState,#metaPhoneNumberState{margin-top:10px;color:var(--muted);font-size:10px}.form label:has(input[type=checkbox]){flex-direction:row;align-items:center}.form input[type=checkbox]{width:auto;min-height:auto}@media(max-width:900px){.operations-grid{grid-template-columns:1fr}.operations-grid .operation-wide{grid-column:auto}}
.flow-manager-tools{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin:14px 0}.flow-manager-tools>div{padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8fbfa}.flow-manager-tools>div>strong{display:block;margin-bottom:8px}.flow-manager-tools label{margin:8px 0!important}#metaFlowState{margin:10px 0;color:var(--muted);font-size:10px}@media(max-width:850px){.flow-manager-tools{grid-template-columns:1fr}}
.carousel-builder{display:none;margin:18px 0;padding:16px;border:1px solid #cfe2da;border-radius:14px;background:#f6faf8}.carousel-builder.visible{display:block}.carousel-builder>.cardhead{margin-bottom:13px}.carousel-builder>.cardhead>div:first-child{display:flex;flex-direction:column;gap:4px}.carousel-builder small{color:var(--muted);font-size:9px}.carousel-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.carousel-card{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.carousel-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.carousel-card label{margin:9px 0!important}.carousel-card textarea{min-height:70px}.carousel-upload-state{display:block;margin-top:8px}@media(max-width:820px){.carousel-cards{grid-template-columns:1fr}}
.template-content-composer{margin:12px 0;padding:14px;border:1px solid #d6e5df;border-radius:12px;background:#f8fbfa}.template-content-composer>label{margin:0!important}.template-insert-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}.template-insert-tools button{padding:8px 11px;color:#08724b;border-color:#a9d3c2;background:#fff;font-size:9px;font-weight:800}.template-insert-tools small{color:var(--muted);font-size:8px}.template-emoji-picker{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}.template-emoji-picker[hidden]{display:none}.template-emoji-picker button{width:34px;height:34px;padding:0;border:1px solid #e0e7e3;border-radius:8px;background:#fff;font-size:18px}.template-emoji-picker button:hover{border-color:#8bc8ae;background:#edf8f3}

/* Professional layout refinement v50 */
:root{--panel-radius:16px;--panel-shadow:0 10px 30px rgba(14,45,34,.07);--panel-shadow-hover:0 16px 38px rgba(14,45,34,.1)}
body{overflow-x:hidden}.page{width:100%;max-width:1600px;margin:0 auto}.page>.card,.page>.banner{width:100%}
.card{border-radius:var(--panel-radius);box-shadow:var(--panel-shadow);transition:box-shadow .18s ease}.card:hover{box-shadow:var(--panel-shadow-hover)}
.card.form{max-width:1040px}.cardhead{min-width:0}.cardhead>div{min-width:0}.cardhead h2{line-height:1.25}.cardhead p{max-width:760px}
.grid{align-items:start}.form label{line-height:1.35}.form label>small{font-weight:500;line-height:1.45}.form input,.form select,.form textarea{font-size:13px}
.table{position:relative;max-width:100%;border-radius:12px}.table thead{position:sticky;top:0;z-index:2}.table th{white-space:nowrap}.table td{vertical-align:top;line-height:1.45}
.cleanup-actions select{min-height:37px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}

/* Inbox application shell */
#inbox{height:calc(100vh - 154px);min-height:620px;max-width:none}
#inbox .chat-app{position:relative;width:100%;height:100%;min-height:0;margin:0;padding:0!important;grid-template-columns:minmax(280px,360px) minmax(0,1fr);border:1px solid #d9e3df;border-radius:18px;background:#fff;box-shadow:0 18px 48px rgba(11,39,29,.1);overflow:hidden}
#inbox .chat-app:hover{box-shadow:0 18px 48px rgba(11,39,29,.1)}
#inbox .chat-sidebar{min-width:0;height:100%;overflow:hidden;background:#fff}
#inbox .chat-list-head{height:auto;min-height:78px;padding:17px 18px;background:#fbfcfc}
#inbox .chat-list-head h2{font-size:19px;letter-spacing:-.025em}
#inbox .chat-list-head small{display:block;max-width:220px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#inbox .chat-search{width:calc(100% - 28px);height:42px;margin:12px 14px;padding:0 15px;border-radius:11px;background:#f4f7f6}
#inbox .chat-list{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#inbox .chat-contact{min-height:72px;padding:12px 14px;border-bottom-color:#edf2f0;border-left:3px solid transparent;grid-template-columns:44px minmax(0,1fr) auto;transition:background .14s,border-color .14s}
#inbox .chat-contact:hover{background:#f3f8f6}#inbox .chat-contact.selected{border-left-color:var(--brand);background:#edf7f3}
#inbox .chat-contact .inbox-avatar{width:42px;height:42px;background:linear-gradient(145deg,#e5f6ef,#d8eee5);color:#087450}
#inbox .chat-contact-copy strong{overflow:hidden;color:#18372c;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#inbox .chat-contact-copy small{max-width:100%;font-size:10px;line-height:1.35}
#inbox .chat-contact-meta{min-width:58px;gap:5px}#inbox .chat-contact-meta time{max-width:74px;text-align:right;white-space:normal;line-height:1.25}
#inbox .chat-panel{height:100%;min-height:0;overflow:hidden;background:#eef2ef}
#inbox .chat-empty{padding:30px;text-align:center;background:radial-gradient(circle at center,#f8fbfa 0,#eef3f0 68%)}
#inbox .chat-empty:before{content:"WA";width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#0aa271,#087c59);box-shadow:0 12px 26px #087c5930;color:#fff;font-size:18px;font-weight:800}
#inbox .chat-active{min-height:0}
#inbox .chat-header{height:auto;min-height:68px;padding:10px 17px;background:rgba(250,252,251,.96);backdrop-filter:blur(10px)}
#inbox .chat-header .inbox-avatar{width:42px;height:42px;flex:0 0 42px}
#inbox .chat-header>div:nth-of-type(2){min-width:0}#inbox .chat-header strong,#inbox .chat-header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#inbox .chat-thread{min-height:0;padding:22px clamp(14px,3vw,38px);overscroll-behavior:contain;background-color:#edf1ee;background-image:radial-gradient(#cbd7d1 0.55px,transparent .65px);background-size:14px 14px}
#inbox .chat-bubble-row{width:100%;margin:7px 0}#inbox .chat-bubble-row.incoming{justify-content:flex-start}
#inbox .chat-bubble{position:relative;max-width:min(72%,620px);padding:10px 12px 7px;border:1px solid #e0e7e3;border-radius:5px 14px 14px 14px;box-shadow:0 2px 7px #173b2d12}
#inbox .outgoing .chat-bubble{border-color:#bee3d2;border-radius:14px 5px 14px 14px;background:#dff6e9}
#inbox .chat-bubble p{font-size:13px;line-height:1.5}#inbox .chat-bubble span{margin-top:4px;font-size:8.5px}
#inbox .chat-compose{min-width:0;padding:10px 13px 11px;grid-template-columns:44px minmax(80px,1fr) auto;gap:8px 9px;background:#f8faf9}
#inbox .chat-library-picker{grid-column:1/-1;justify-content:flex-start}
#inbox .chat-library-picker select{width:min(100%,420px);height:34px;border-radius:9px}
#inbox .chat-attachment{grid-column:1/-1;min-width:0;margin:0;padding:10px;border-radius:11px}
#inbox .chat-attachment-copy{overflow:hidden}#inbox .chat-attachment-preview{width:72px;height:58px}
#inbox .chat-attach{grid-column:1;grid-row:auto;width:44px;height:44px;margin:0}
#inbox .chat-compose textarea{grid-column:2;min-width:0;width:100%;height:44px;min-height:44px;padding:11px 15px;border-radius:13px;background:#fff;line-height:1.4}
#inbox .chat-compose .primary{grid-column:3;min-width:72px;height:44px;border-radius:12px}
#inbox .chat-compose>small{grid-column:2/4;margin:0 4px;line-height:1.35}
body.inbox-page .workspace-tabs{position:relative;top:auto}
body.inbox-page #inbox{height:calc(100vh - 270px);min-height:560px}

@media(max-width:1100px){
  #inbox .chat-app{grid-template-columns:300px minmax(0,1fr)}
  #inbox .chat-header #chatConsentBadge{display:none}
}
@media(max-width:900px){
  #inbox{height:calc(100dvh - 128px);min-height:540px}
  #inbox .chat-app{display:block}
  #inbox .chat-sidebar{width:100%;height:100%}
  #inbox .chat-panel{position:absolute;inset:0;z-index:3;width:100%;height:100%;transform:translateX(105%);transition:transform .22s ease}
  #inbox .chat-panel.mobile-open{transform:translateX(0)}
  #inbox .chat-header #chatBack{display:inline-flex;align-items:center}
}
@media(max-width:900px){body.inbox-page #inbox{height:calc(100dvh - 235px);min-height:500px}}
@media(max-width:760px){
  main{padding-bottom:24px}
  .cardhead{flex-wrap:wrap}.cardhead>*{max-width:100%}
  #inbox{height:calc(100dvh - 116px);min-height:500px}
  #inbox .chat-app{border-radius:13px}
  #inbox .chat-thread{padding:16px 11px}
  #inbox .chat-bubble{max-width:88%}
  #inbox .chat-header{padding:9px 10px}#inbox .chat-header #toggleChatConsent{font-size:0}#inbox .chat-header #toggleChatConsent:after{content:"Consent";font-size:9px}
  #inbox .chat-compose{padding:8px;grid-template-columns:40px minmax(60px,1fr) auto}
  #inbox .chat-attach{width:40px;height:42px}#inbox .chat-compose .primary{min-width:60px;padding:8px 11px}
  .table{margin-inline:-2px}
}
@media(max-width:760px){body.inbox-page #inbox{height:calc(100dvh - 225px);min-height:500px}}

/* Header account actions */
.header-account{position:relative;z-index:20}.user-menu-toggle{display:flex;align-items:center;gap:8px;min-height:39px;padding:5px 9px 5px 6px;border-color:#d7e5df;background:#fff}.user-menu-toggle>span{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#0b8558;color:#fff;font-size:11px;font-weight:900}.user-menu-toggle>strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.user-menu-toggle>b{color:#718078;font-size:12px}.user-menu-toggle[aria-expanded="true"]{border-color:#8fc9b2;background:#f1f9f5}
.user-menu{position:absolute;top:calc(100% + 8px);right:0;display:none;width:290px;padding:8px;border:1px solid #d8e5e0;border-radius:12px;background:#fff;box-shadow:0 18px 45px rgba(21,53,42,.18)}.user-menu.open{display:grid;gap:5px}.user-menu-identity{padding:9px 10px 11px;border-bottom:1px solid #e5ece9}.user-menu-identity strong,.user-menu-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-identity small{margin-top:4px;color:var(--muted);font-size:8px}.user-menu>button,.user-menu>a{display:flex;align-items:center;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:8px;background:#fff;color:#31574a;font-size:10px;font-weight:700;text-align:left;text-decoration:none}.user-menu>button:hover,.user-menu>a:hover{background:#edf7f2;color:#08724b}.user-menu>a{color:#a43d35}
.header-password-panel{display:none;gap:7px;padding:9px;border:1px solid #dce8e3;border-radius:9px;background:#f8fbfa}.header-password-panel.open{display:grid}.header-password-panel input{width:100%;height:36px;padding:8px 9px;border:1px solid #d4e1dc;border-radius:7px;background:#fff;font-size:9px}.header-password-panel .primary{justify-content:center;color:#fff;background:#0b8558}.header-password-panel small{min-height:14px;color:#6c7c75;font-size:8px;line-height:1.4}
@media(max-width:620px){.user-menu-toggle>strong{display:none}.user-menu-toggle>b{display:none}.user-menu{position:fixed;top:72px;right:10px;left:auto;width:min(290px,calc(100vw - 108px))}}

/* Content visibility and reading comfort */
:root{--muted:#5f7068;--line:#d6e2dd}
#accountPasswordCard[hidden]{display:none!important}
main{max-width:none}
.page{max-width:1680px}
.page.active{min-width:0}
.card,.banner{background:#fff}
.card{padding:clamp(18px,2vw,26px)}
.card h2,.cardhead h2{margin-bottom:5px;font-size:18px;line-height:1.25;color:#14372b}
.card h3{color:#1d4939}
.card p,.cardhead p{font-size:11px;line-height:1.65}
.cardhead{align-items:flex-start}
.form input,.form select,.form textarea{min-height:42px;border-color:#cfddd7;color:#17382c}
.form input:focus,.form select:focus,.form textarea:focus,.chat-search:focus{outline:3px solid rgba(11,133,88,.12);border-color:#48a985}
.table{background:#fff}.table th{position:sticky;top:0;z-index:3;background:#f3f7f5;color:#405c51}.table td{color:#29483c}
button,.button-link{min-height:38px}
@media(max-width:760px){
  .card{padding:16px}.card h2,.cardhead h2{font-size:16px}
  .card p,.cardhead p{font-size:10px}
  main>header h1{font-size:23px}
}

/* Professional Templates workspace */
#templates{max-width:1500px}
#templates>.card{margin-bottom:18px}
.template-page-head{align-items:flex-start;gap:18px}.template-page-head h2{margin:0 0 5px}.template-page-head p{margin:0!important}
.template-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.template-filters{display:flex;gap:8px;flex-wrap:wrap}
.templates-table{min-width:1220px}.templates-table th{position:sticky;top:0;z-index:1;background:#f8fbf9;white-space:nowrap}
.templates-table td{vertical-align:top}.templates-table th:nth-child(1){width:150px}.templates-table th:nth-child(2){width:300px}.templates-table th:nth-child(3){width:250px}.templates-table th:last-child{width:235px}
.template-content{min-width:260px;max-width:360px;max-height:120px;overflow:auto;white-space:pre-wrap}
.template-button-info{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:190px}
.template-button-info span{display:block;max-width:260px;padding:5px 8px;border:1px solid #cfe2da;border-radius:7px;background:#f2f9f6;color:#275f4d;font-size:9px;line-height:1.35;overflow-wrap:anywhere}
.template-type-pill{display:inline-block;padding:5px 8px;border-radius:7px;background:#edf4f1;color:#315b4c;font-size:9px;font-weight:800}
.template-status-approved{background:#dff5e9!important;color:#08724b!important}.template-status-pending,.template-status-in_appeal{background:#fff3d8!important;color:#946200!important}.template-status-rejected,.template-status-disabled{background:#ffe8e5!important;color:#a53b32!important}
.template-row-actions{display:flex;gap:5px;flex-wrap:wrap}.template-details.visible{margin:16px 0;padding:18px;border:1px solid #cfe2da;border-radius:12px;background:#f8fbf9}
.template-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.template-detail-grid>div{min-width:0;padding:13px;border:1px solid #e0eae6;border-radius:10px;background:#fff}.template-detail-grid small{display:block;margin-bottom:7px;color:var(--muted);font-weight:700}.template-detail-grid p{margin:5px 0 0!important;white-space:pre-wrap;overflow-wrap:anywhere}
.template-request{max-width:none!important}.template-request>.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.template-request>label,.template-request>#textHeaderFields{max-width:100%}
.template-request.template-request-hidden{display:none!important}.template-request.template-request-open{display:block!important}
.template-buttons-head{padding-top:5px;border-top:1px solid var(--line)}
@media(max-width:980px){.template-request>.grid{grid-template-columns:1fr 1fr}.template-page-head{flex-direction:column}.template-toolbar{width:100%;justify-content:flex-start}}
@media(max-width:620px){.template-request>.grid,.template-detail-grid{grid-template-columns:1fr}.template-toolbar,.template-filters{width:100%}.template-toolbar>*{max-width:100%}.template-filters select{flex:1;min-width:125px}}

/* Queue and system-health workspace */
.queue-stats{grid-template-columns:repeat(6,minmax(120px,1fr))}
.queue-stats article{position:relative;overflow:hidden}.queue-stats article:after{content:"";position:absolute;inset:auto 0 0;height:3px;background:#b8d9cc}
.queue-stats article:nth-child(2):after{background:#4a8fd8}.queue-stats article:nth-child(3):after{background:#d7a638}.queue-stats article:nth-child(4):after{background:#0a9667}.queue-stats article:nth-child(5):after{background:#d7584d}.queue-stats article:nth-child(6):after{background:#84918b}
.queue-worker-meta{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.queue-worker-meta span{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f8faf9;color:var(--muted);font-size:9px}.queue-worker-meta strong{color:var(--dark)}
.queue-table{min-width:1120px}.queue-table td{vertical-align:top}.queue-table code{display:inline-block;max-width:220px;margin:0;padding:5px 7px;font-size:9px;overflow-wrap:anywhere}.queue-table .template-row-actions{min-width:190px}
@media(max-width:1100px){.queue-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.queue-stats{grid-template-columns:repeat(2,1fr)}.queue-worker-meta{display:grid;grid-template-columns:1fr}}

/* Campaign management */
.campaign-setup{margin:14px 0 4px;padding:14px;border:1px solid #d8e7e1;border-radius:12px;background:#f8fbfa}.campaign-setup label{margin:0!important}
.campaign-estimate{display:flex;align-items:baseline;gap:9px;margin:10px 0 16px;padding:11px 14px;border-left:4px solid var(--g);border-radius:8px;background:#edf8f3}.campaign-estimate strong{font-size:20px;color:#08724b}.campaign-estimate span{color:var(--muted);font-size:10px}
.queue-table td:nth-last-child(2){min-width:155px}.queue-table td>strong+code{display:block;margin-top:6px}
.campaign-progress{display:grid;grid-template-columns:minmax(90px,1fr) auto;gap:4px 7px;align-items:center;min-width:145px}.campaign-progress>span{height:7px;overflow:hidden;border-radius:99px;background:#e3ece8}.campaign-progress>span i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b8558,#31b982)}.campaign-progress>strong{font-size:10px}.campaign-progress>small{grid-column:1/-1;color:var(--muted);font-size:8px}
@media(max-width:520px){
  main>header{align-items:flex-start}.header-actions{width:100%;justify-content:flex-start}
  .grid,.permission-grid,.meta-detail-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
}
.blue-tick-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;margin:0 0 20px;padding:17px;border:1px solid #cfe0ea;border-radius:14px;background:linear-gradient(135deg,#f7fbff,#f4f9fc);box-shadow:0 8px 24px #135d8b0d}.blue-tick-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#1d9bf0,#0878c9);box-shadow:0 8px 18px #168bd23d;color:#fff;font-size:22px;font-weight:900}.blue-tick-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.blue-tick-heading strong{color:#123a53}.blue-tick-card p{margin:6px 0!important;font-size:11px;line-height:1.5}.status-badge.blue-tick-active{background:#dff2ff;color:#0877be}.blue-tick-checklist{display:flex;gap:7px;flex-wrap:wrap}.blue-tick-checklist span{padding:4px 7px;border-radius:999px;background:#edf1f3;color:#65737b;font-size:8px}.blue-tick-checklist span.ready{background:#e2f5ec;color:#08724b}@media(max-width:760px){.blue-tick-card{grid-template-columns:auto 1fr}.blue-tick-card>.button-link{grid-column:1/-1;text-align:center}}
/* Aligned, easy-to-scan application sidebar */
aside{width:272px;display:flex;flex-direction:column;gap:0;padding:20px 16px 16px;overflow:hidden}
.brand{min-height:68px;margin:0 6px 12px;padding:4px 8px 14px;justify-content:flex-start;border-bottom:1px solid rgba(8,100,72,.1)}
.brand-logo{display:block;width:100%;max-width:218px;height:50px;object-fit:contain;object-position:left center}
.account{flex:0 0 auto;min-height:58px;margin:0 4px 14px;padding:10px 11px;gap:10px;border-radius:13px}
.account>span{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center}
.account div{min-width:0}.account strong,.account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
aside nav{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;min-height:0;max-height:none;margin:0;padding:2px 4px 18px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b9d4ca transparent}
aside nav::-webkit-scrollbar{width:5px}aside nav::-webkit-scrollbar-thumb{background:#b9d4ca;border-radius:99px}
aside nav button{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:11px;width:100%;min-height:43px;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:10px;line-height:1.25;text-align:left;white-space:normal}
aside nav button::before{content:"";flex:0 0 8px;width:8px;height:8px;border-radius:3px;background:#afc4bc;box-shadow:0 0 0 3px rgba(175,196,188,.18)}
aside nav button:hover{transform:none;border-color:#dbe9e4;background:#f3f9f6}aside nav button:hover::before{background:#4b9d80}
aside nav button.active{border-color:#bfe0d4;background:linear-gradient(90deg,#dff3eb,#eef9f5);color:#075f44;box-shadow:0 4px 14px rgba(8,100,72,.08)}
aside nav button.active::before{background:#07865f;box-shadow:0 0 0 4px rgba(7,134,95,.15)}
#inboxBadge{margin-left:auto}aside::after{flex:0 0 auto;margin:10px 10px 0}main{margin-left:272px}
@media(max-width:760px){
  aside{width:88px;padding:13px 8px 10px}.brand{min-height:50px;margin:0 2px 8px;padding:0 2px 9px;justify-content:center}.brand-logo{width:64px;height:42px;object-position:center}
  .account{min-height:auto;margin:0 2px 8px;padding:7px;justify-content:center}.account>span{flex-basis:32px;width:32px;height:32px}.account div,aside::after{display:none}
  aside nav{gap:3px;padding:1px 1px 10px}aside nav button{justify-content:center;min-height:42px;padding:8px 4px;font-size:9px;line-height:1.12;text-align:center}aside nav button::before{display:none}
  #inboxBadge{position:absolute;top:3px;right:4px;margin:0}main{margin-left:88px;padding-left:12px;padding-right:12px}
}
/* Reports and analytics */
.report-stats{grid-template-columns:repeat(5,minmax(130px,1fr))}.report-stats article:nth-child(2) strong,.report-stats article:nth-child(3) strong{color:#087a55}.report-stats article:nth-child(4) strong{color:#b7473d}
.report-filters{display:grid;grid-template-columns:repeat(6,minmax(125px,1fr)) auto;gap:9px;align-items:end;margin:16px 0;padding:13px;border:1px solid var(--line);border-radius:11px;background:#f8faf9}.report-filters label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:9px;font-weight:700}.report-filters input,.report-filters select{width:100%;min-height:38px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}
.report-rate-bars{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0 17px}.report-rate-bars>div{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}.report-rate-bars span{font-size:9px;color:var(--muted)}.report-rate-bars i{height:8px;overflow:hidden;border-radius:99px;background:#e8efec}.report-rate-bars b{display:block;height:100%;border-radius:inherit;background:#15966a;transition:width .25s}.report-rate-bars>div:nth-child(2) b{background:#438fd3}.report-rate-bars>div:nth-child(3) b{background:#d65a4e}
.report-analytics-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:14px;margin:18px 0}.report-analytics-panel{min-width:0;padding:16px;border:1px solid #d7e3df;border-radius:13px;background:linear-gradient(145deg,#fff,#f6faf8)}.report-analytics-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.report-analytics-head h3{margin:0 0 4px;font-size:15px}.report-analytics-head p{margin:0;color:var(--muted);font-size:9px}.report-trend-chart{display:flex;max-height:310px;flex-direction:column;gap:7px;overflow:auto}.report-trend-chart article{display:grid;grid-template-columns:82px minmax(70px,1fr) 42px;gap:8px;align-items:center;padding:7px 8px;border-radius:9px;background:#f7faf9}.report-trend-chart time{font-size:8px;font-weight:750}.report-trend-track{height:9px;overflow:hidden;border-radius:99px;background:#e3eeea}.report-trend-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3274c6,#19a476)}.report-trend-chart article>strong{font-size:9px;text-align:right}.report-trend-chart article>small{grid-column:2/4;color:var(--muted);font-size:7px}.report-trend-chart small b{color:#167553}.report-trend-chart small em{color:#b2473e;font-style:normal}.report-campaign-comparison{display:flex;max-height:310px;flex-direction:column;gap:7px;overflow:auto}.report-campaign-comparison article{display:grid;grid-template-columns:minmax(100px,1fr) auto auto auto;gap:8px;align-items:center;padding:10px;border:1px solid #e1e9e6;border-radius:9px;background:#fff}.report-campaign-comparison article>div{display:flex;min-width:0;flex-direction:column}.report-campaign-comparison article strong,.report-campaign-comparison article small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-campaign-comparison article strong{font-size:9px}.report-campaign-comparison article small{color:var(--muted);font-size:7px}.report-campaign-comparison article>b{font-size:10px}.report-campaign-comparison article>span{padding:4px 6px;border-radius:99px;background:#e9f6ef;color:#12694d;font-size:7px;font-weight:750;white-space:nowrap}.report-campaign-comparison article>span.metric-alert{background:#ffe9e5;color:#9a4035}.report-analytics-empty{padding:24px 12px;border:1px dashed #ceddd7;border-radius:10px;color:var(--muted);font-size:9px;text-align:center}
.delivery-time-panel{grid-column:1/-1}.report-delivery-time-chart{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:10px}.report-delivery-time-chart article{display:grid;grid-template-columns:1fr auto;gap:7px;padding:11px;border:1px solid #dfe9e5;border-radius:10px;background:#fff}.report-delivery-time-chart article>span{font-size:8px;font-weight:750}.report-delivery-time-chart article>strong{font-size:10px}.report-delivery-time-chart article>div{grid-column:1/-1;height:9px;overflow:hidden;border-radius:99px;background:#e6efec}.report-delivery-time-chart article i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#17a172,#3d81cd)}.report-delivery-time-chart article>small{grid-column:1/-1;color:var(--muted);font-size:7px;text-align:right}
.template-performance-section{margin:18px 0;padding:16px;border:1px solid #d3e2dc;border-radius:13px;background:linear-gradient(135deg,#f8fbfa,#f1f7f4)}.template-performance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.template-performance-head h3{margin:0 0 4px;font-size:15px}.template-performance-head p{margin:0;color:var(--muted);font-size:9px}.template-performance-table{min-width:850px}.template-performance-table td{vertical-align:middle}.performance-health{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;font-size:8px;font-weight:800;white-space:nowrap}.performance-healthy{background:#def5e9;color:#0a6848}.performance-watch{background:#fff1ce;color:#815b0e}.performance-attention{background:#ffe5e1;color:#963c31}
.failure-insights-section{margin:18px 0;padding:16px;border:1px solid #ead9d4;border-radius:13px;background:#fffaf8}.failure-insights-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.failure-insights-head h3{margin:0 0 4px;font-size:15px}.failure-insights-head p{margin:0;color:var(--muted);font-size:9px}.failure-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.failure-insight-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid #eaded9;border-radius:10px;background:#fff}.failure-rank{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#ffe8e3;color:#a34135;font-size:9px;font-weight:850}.failure-insight-item>div{display:flex;min-width:0;flex-direction:column;gap:4px}.failure-insight-item>div>strong{overflow:hidden;color:#493a36;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.failure-insight-item small{color:var(--muted);font-size:8px}.failure-insight-item p{margin:2px 0 0;color:#6c574f;font-size:8px;line-height:1.45}.failure-insight-item>b{min-width:28px;padding:4px 6px;border-radius:8px;background:#fff0ed;color:#a64034;font-size:9px;text-align:center}.failure-insight-empty{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #b8ddca;border-radius:10px;background:#f1faf5}.failure-insight-empty>b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#109668;color:#fff}.failure-insight-empty>div{display:flex;flex-direction:column;gap:3px}.failure-insight-empty span{color:var(--muted);font-size:8px}
.reports-table{min-width:1680px}.reports-table td{vertical-align:top}.reports-table td:nth-child(3){min-width:180px}.reports-table td:nth-child(5){max-width:300px;white-space:pre-wrap}.reports-table .failure-reason{max-width:260px;white-space:normal}
.report-media-thumb{display:block;max-width:96px;max-height:72px;border-radius:8px;object-fit:cover}
.report-bulk-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 10px;padding:11px 13px;border:1px solid #cbded6;border-radius:11px;background:rgba(247,251,249,.96);box-shadow:0 5px 14px rgba(9,54,39,.07);backdrop-filter:blur(8px)}.report-bulk-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-bulk-toolbar button{padding:7px 10px;font-size:8px}.report-bulk-toolbar span{padding:6px 9px;border-radius:99px;background:#e5f4ed;color:#096b4c;font-size:8px;font-weight:800}.report-check-column{width:42px!important;min-width:42px!important;text-align:center}.report-check-column input{width:17px;height:17px;accent-color:#07875f}.report-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px 2px}.report-pagination>span{color:var(--muted);font-size:9px}.report-pagination>div{display:flex;align-items:center;gap:9px}.report-pagination strong{min-width:100px;color:#456056;font-size:9px;text-align:center}.report-pagination button{padding:7px 10px;font-size:8px}
@media(max-width:1150px){.report-stats{grid-template-columns:repeat(3,1fr)}.report-filters{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1000px){.report-delivery-time-chart{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.failure-insight-grid,.report-analytics-grid{grid-template-columns:1fr}.report-delivery-time-chart{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.report-stats{grid-template-columns:repeat(2,1fr)}.report-filters,.report-rate-bars,.report-delivery-time-chart{grid-template-columns:1fr}.template-performance-head,.failure-insights-head,.report-analytics-head{flex-direction:column}.template-performance-section,.failure-insights-section,.report-analytics-panel{padding:12px}.report-campaign-comparison article{grid-template-columns:minmax(100px,1fr) auto}.report-campaign-comparison article>span{justify-self:start}.report-bulk-toolbar,.report-pagination{align-items:stretch;flex-direction:column}.report-bulk-toolbar>div{display:grid;grid-template-columns:1fr 1fr}.report-bulk-toolbar span{grid-column:1/-1;text-align:center}.report-bulk-toolbar>.danger{width:100%}.report-pagination>div{justify-content:space-between}}

/* Inbox productivity tools */
.chat-head-actions{display:flex;align-items:center;gap:6px}.chat-head-actions button{padding:6px 8px;font-size:8px}
.chat-unread-toggle{margin:0 12px 10px;padding:8px 10px;border:1px solid #dbe6e1;border-radius:9px;background:#f8faf9;color:#52635b;font-size:9px;text-align:left}.chat-unread-toggle.active{border-color:#86c9ae;background:#e7f6ef;color:#08724b}.chat-unread-toggle b{float:right;min-width:19px;padding:2px 5px;border-radius:10px;background:#0b8558;color:#fff;text-align:center}
.chat-reply-tools,.chat-template-tools{grid-column:1/-1;display:grid;grid-template-columns:minmax(150px,1fr) auto auto;gap:7px;align-items:center}.chat-template-tools{grid-template-columns:minmax(150px,.8fr) minmax(180px,1.3fr) auto}
.chat-reply-tools select,.chat-template-tools select,.chat-template-tools input{width:100%;min-width:0;height:34px;padding:7px 9px;border:1px solid #d6e1dc;border-radius:8px;background:#fff;font-size:9px}.chat-reply-tools button,.chat-template-tools button{height:34px;padding:7px 10px;font-size:8px}
@media(max-width:620px){.chat-reply-tools,.chat-template-tools{grid-template-columns:1fr 1fr}.chat-reply-tools select,.chat-template-tools select,.chat-template-tools input{grid-column:1/-1}.chat-head-actions #enableChatNotifications{display:none}}

/* Inbox attachment rendering */
.chat-bubble.has-attachment{padding:5px;overflow:hidden}.chat-bubble.has-attachment>p{padding:2px 7px 0}
.chat-media-link{display:block;line-height:0}.chat-media-preview{display:block;width:min(340px,100%);max-height:310px;border-radius:8px;object-fit:cover;background:#dfe9e5}.chat-media-preview.chat-sticker{width:min(190px,100%);background:transparent;object-fit:contain}
.chat-audio-preview{display:block;width:min(330px,72vw);height:42px;margin:4px}
.chat-document,.chat-media-placeholder{display:flex;align-items:center;gap:10px;min-width:230px;padding:10px;border-radius:8px;background:rgba(255,255,255,.68);color:inherit;text-decoration:none}.chat-document>b,.chat-media-placeholder>b{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:8px;background:#dcece6;color:#08724b;font-size:8px}.chat-document span,.chat-media-placeholder span{min-width:0}.chat-document strong,.chat-document small{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-document small,.chat-media-placeholder span{margin-top:3px;color:#687770;font-size:8px}
.chat-message-status{display:inline-block;margin-left:4px;font-style:normal;font-weight:900;color:#667771}.chat-message-status.status-read{color:#168bd2}.chat-message-status.status-failed{color:#c23f35}

/* Webhook operations health */
.webhook-health-card{margin-bottom:18px}.webhook-health-stats{grid-template-columns:repeat(5,minmax(125px,1fr));margin:14px 0}.webhook-health-stats article{min-height:88px}.webhook-health-card table{min-width:850px}.webhook-health-card td,.webhook-health-card th{white-space:nowrap}.webhook-health-card code{overflow-wrap:anywhere}
@media(max-width:1000px){.webhook-health-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:620px){.webhook-health-stats{grid-template-columns:repeat(2,1fr)}}

.header-refresh{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.header-refresh span{font-size:16px;line-height:1}.panel-loading .header-refresh span{animation:refresh-spin .8s linear infinite}@keyframes refresh-spin{to{transform:rotate(360deg)}}
.admin-monitoring-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:18px 0}.admin-monitoring-grid>.card{min-width:0;margin:0}.admin-monitoring-grid .cardhead{align-items:flex-start}.admin-monitoring-grid .table{max-width:100%}
.admin-log-panel .log-panel-actions{display:flex;align-items:center;gap:12px;margin:12px 0}.admin-log-panel .log-panel-actions .muted{font-size:13px}.admin-log-panel [hidden]{display:none!important}

/* Phonebook workspace */
.phonebook-page{max-width:1540px}.phonebook-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:22px 24px;border:1px solid #164d3c;border-radius:15px;background:linear-gradient(135deg,#0b2e23,#10533e);box-shadow:0 14px 32px rgba(5,48,34,.16);color:#fff}.phonebook-hero small{color:#9fd4c0;font-size:8px;font-weight:800;letter-spacing:.14em}.phonebook-hero h2{margin:5px 0 3px;color:#fff;font-size:25px}.phonebook-hero p{margin:0;color:#c7ddd5;font-size:10px}.phonebook-hero button{flex:0 0 auto;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.1);color:#fff}.phonebook-hero button:hover{background:rgba(255,255,255,.18)}
.phonebook-manage-grid{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(480px,1.25fr);gap:18px;align-items:start}.phonebook-manage-grid>.card{height:100%;margin-bottom:18px}.phonebook-page .card.form{max-width:none}.phonebook-groups-card .consent-entry{grid-template-columns:minmax(160px,1fr) auto;align-items:end;margin:13px 0}.phonebook-groups-card .consent-entry label{margin:0!important}.phonebook-groups-card .api-type-grid{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.phonebook-groups-card .api-type-grid>.status-badge{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #cde0d8;background:#f1f8f5;color:#245c48}.phonebook-groups-card .phonebook-group-delete{min-height:24px;padding:2px 6px}
.phonebook-variables-field{grid-column:1/-1}.phonebook-variables-field textarea{min-height:82px}.phonebook-variables-field small{color:var(--muted);font-size:8px;font-weight:500}.phonebook-contact-card>.primary,.phonebook-import-card>.primary{min-width:150px}
#phonebookGroupState,#phonebookState,#phonebookImportState{min-height:18px;margin-top:9px;color:var(--muted);font-size:9px}
.phonebook-import-card{max-width:none!important}.phonebook-import-card>.grid{grid-template-columns:repeat(3,minmax(160px,1fr));margin-top:7px}.phonebook-import-card #phonebookPreview{display:none;max-height:330px;margin-top:14px}.phonebook-import-card #phonebookPreview:not(:empty){display:block}.phonebook-import-card #phonebookPreview table{min-width:700px}
.phonebook-list-card .cardhead{margin-bottom:8px}.phonebook-list-state{margin:0 0 12px;color:var(--muted);font-size:9px}.phonebook-toolbar{align-items:center;justify-content:flex-end;margin:0}.phonebook-toolbar input{width:min(300px,40vw);min-height:39px;padding:9px 11px;border:1px solid #cfddd7;border-radius:8px;background:#fff}.phonebook-toolbar input:focus{outline:3px solid rgba(11,133,88,.12);border-color:#48a985}.phonebook-table{max-height:620px}.phonebook-table table{min-width:1100px}.phonebook-table .phonebook-check-column{width:42px}.phonebook-table td:first-child,.phonebook-table th:first-child{text-align:center}.phonebook-table td:nth-child(2){min-width:160px;font-weight:700}.phonebook-table td:nth-child(3){min-width:135px}.phonebook-table td:nth-child(4){min-width:190px}.phonebook-table td:nth-child(5){min-width:120px}.phonebook-table td:nth-child(6){max-width:360px}.phonebook-table td:nth-child(6) code{max-width:340px;margin:0;padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.phonebook-table input[type=checkbox]{width:17px;height:17px;accent-color:#07875f}
@media(max-width:1050px){.phonebook-manage-grid{grid-template-columns:1fr}.phonebook-manage-grid>.card{height:auto}.phonebook-import-card>.grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}
@media(max-width:700px){.phonebook-hero{align-items:flex-start;padding:18px;flex-direction:column}.phonebook-hero button{width:100%}.phonebook-import-card>.grid{grid-template-columns:1fr}.phonebook-toolbar{width:100%;justify-content:flex-start}.phonebook-toolbar input{width:100%}.phonebook-toolbar .primary{flex:1}.phonebook-groups-card .consent-entry{grid-template-columns:1fr}.phonebook-groups-card .consent-entry button{width:100%}}

/* Send Campaign workspace */
.campaign-page{max-width:1520px}.campaign-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:24px 26px;border:1px solid #164d3c;border-radius:16px;background:linear-gradient(135deg,#0b2e23,#106047);box-shadow:0 15px 34px rgba(5,48,34,.17);color:#fff}.campaign-hero small{color:#9fd4c0;font-size:8px;font-weight:850;letter-spacing:.15em}.campaign-hero h2{margin:5px 0 4px;color:#fff;font-size:26px}.campaign-hero p{margin:0;color:#c8e0d7;font-size:10px}.campaign-limit{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.09)}.campaign-limit strong{font-size:25px}.campaign-limit span{max-width:72px;color:#cce0d8;font-size:8px;line-height:1.3;text-transform:uppercase}
.campaign-workspace{max-width:none!important;padding:0;overflow:visible}.campaign-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);align-items:stretch}.campaign-editor{min-width:0;padding:clamp(22px,2.5vw,36px)}.campaign-step-head{display:flex;align-items:flex-start;gap:12px;margin:0 0 14px}.campaign-step-head>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#0b8558;color:#fff;font-size:12px;font-weight:900;box-shadow:0 6px 15px rgba(11,133,88,.2)}.campaign-step-head h2{margin:1px 0 3px;font-size:18px}.campaign-step-head p{margin:0!important}.campaign-section-divider{height:1px;margin:26px 0;background:linear-gradient(90deg,transparent,#ccddd6 12%,#ccddd6 88%,transparent)}
.campaign-workspace .campaign-setup{margin:0 0 12px}.campaign-template-preview{margin-bottom:0}.campaign-workspace #recipients{min-height:170px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.5}
.campaign-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:15px 0}.campaign-source-card.bulk-file-box{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:15px;border:1px solid #d5e3dd;border-radius:12px;background:#f7faf9}.campaign-source-card>div:first-child{display:flex;flex-direction:column;gap:4px}.campaign-source-card>div:first-child strong{font-size:11px}.campaign-source-card label{margin:0!important}.campaign-source-card select{min-height:118px}.campaign-source-card .settings-actions{margin-top:auto}.campaign-upload-source{justify-content:flex-start}.campaign-upload-source .library-upload{align-self:flex-start;margin-top:8px!important}
.campaign-workspace .bulk-column-mapping{margin:14px 0 0;padding:17px;border-radius:12px}.campaign-workspace .bulk-column-mapping>.cardhead{margin-bottom:8px}.campaign-workspace .bulk-column-mapping>.cardhead small{display:block;margin-top:4px;color:var(--muted);font-size:8px}
.campaign-variable-section{padding:16px;border:1px solid #d6e5df;border-radius:12px;background:#f8fbfa}.campaign-variable-section>strong{display:block;margin-bottom:8px}.campaign-variable-section>small{display:block;margin:-3px 0 12px;color:var(--muted);font-size:9px}.campaign-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;margin-top:13px}.campaign-media-grid>div,.campaign-media-grid>label{min-width:0}.campaign-media-grid label{margin:8px 0!important}.campaign-media-grid #bulkMediaState{color:var(--muted);font-size:9px}
.campaign-launch{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px;padding:18px 20px;border:1px solid #bcd9ce;border-radius:13px;background:linear-gradient(135deg,#edf8f3,#f8fbfa)}.campaign-launch>div:first-child{display:flex;flex-direction:column;gap:4px}.campaign-launch small{color:#08724b;font-size:8px;font-weight:850;letter-spacing:.12em}.campaign-launch strong{font-size:15px}.campaign-launch p{margin:0!important}.campaign-launch>div:last-child{display:flex;align-items:center;gap:12px}.campaign-launch #bulkButton{min-width:170px;min-height:46px}.campaign-launch #bulkStatus{max-width:360px;padding:0}
.campaign-preview-panel{position:relative!important;inset:auto!important;display:block!important;width:auto!important;min-width:0;padding:0!important;overflow:visible!important;border:0!important;border-left:1px solid #dfe8e4!important;background:#fbfcfc!important;box-shadow:none!important}.campaign-preview-sticky{position:sticky;top:12px;padding:22px 18px}.campaign-preview-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.campaign-preview-title>div{display:flex;flex-direction:column}.campaign-preview-title small,.campaign-test-box small{color:#08724b;font-size:8px;font-weight:850;letter-spacing:.11em}.campaign-preview-title strong{margin-top:4px;color:#50635c;font-size:9px;font-weight:600}.preview-live-dot{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:20px;background:#e7f8ef;color:#08724b;font-size:7px;font-weight:800}.preview-live-dot:before{width:6px;height:6px;border-radius:50%;background:#13a66d;content:""}.campaign-phone{overflow:hidden;max-width:285px;margin:auto;border:7px solid #111;border-radius:34px;background:#efeae2;box-shadow:0 18px 36px rgba(8,37,28,.2)}.campaign-phone-status{display:flex;align-items:center;justify-content:space-between;padding:6px 16px 4px;background:#fff;color:#15251f;font-size:7px;font-weight:800}.campaign-phone-bar{display:flex;align-items:center;gap:7px;padding:8px 10px;background:#075e54;color:#fff}.campaign-phone-back{font-size:20px}.campaign-phone-avatar{display:grid;place-items:center;width:32px;height:32px;border:2px solid rgba(255,255,255,.75);border-radius:50%;background:#dc202a;font-size:8px;font-weight:850}.campaign-phone-business{display:flex;min-width:0;flex:1;flex-direction:column}.campaign-phone-business strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.campaign-phone-business small{color:#d8ece8;font-size:7px}.campaign-phone-menu{font-size:18px}.campaign-phone-screen{display:flex;height:350px;padding:18px 10px 10px;overflow:auto;flex-direction:column;align-items:flex-end;background-color:#efeae2;background-image:radial-gradient(rgba(70,90,80,.08) 1px,transparent 1px);background-size:13px 13px}.campaign-message-preview{position:relative;width:94%;min-height:90px;padding:11px;border-radius:9px 2px 9px 9px;background:#fff;color:#263b34;font-size:9px;white-space:pre-wrap;line-height:1.55;box-shadow:0 1px 3px rgba(0,0,0,.15)}.campaign-message-preview:after{position:absolute;top:0;right:-7px;border-width:0 0 9px 8px;border-style:solid;border-color:transparent transparent transparent #fff;content:""}.campaign-message-preview strong{display:block;margin-bottom:6px;color:#075e54}.campaign-message-preview small{display:block;margin-top:8px;color:var(--muted)}.campaign-phone-time{margin:4px 7px 0;color:#507468;font-size:6px}.campaign-phone-compose{display:flex;align-items:center;justify-content:space-between;margin:7px;padding:8px 11px;border-radius:20px;background:#f7f8f9;color:#829089;font-size:8px}.campaign-phone-compose strong{color:#075e54}.campaign-test-box{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #dfe8e4}.campaign-test-box>div{grid-column:auto}.campaign-test-box p{margin:4px 0 0!important;font-size:8px}.campaign-test-box label{margin:0!important}.campaign-test-box button{width:100%;min-height:39px;white-space:nowrap}#bulkTestState{grid-column:auto;margin-top:0;color:var(--muted);font-size:8px}
.template-health-stats{grid-template-columns:repeat(5,minmax(110px,1fr));margin:15px 0}.template-health-stats article{min-height:80px}.api-log-stats{grid-template-columns:repeat(4,minmax(120px,1fr));margin:12px 0}.api-log-stats article{min-height:78px}@media(max-width:850px){.campaign-review-grid{grid-template-columns:1fr}.template-health-stats{grid-template-columns:repeat(2,1fr)}.api-log-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1050px){.campaign-main-grid{grid-template-columns:1fr}.campaign-preview-panel{grid-row:auto;border-top:1px solid #dfe8e4!important;border-left:0!important}.campaign-preview-sticky{position:static}.campaign-phone{max-width:285px}}
@media(max-width:850px){.campaign-source-grid,.campaign-media-grid{grid-template-columns:1fr}.campaign-launch{align-items:flex-start;flex-direction:column}.campaign-launch>div:last-child{width:100%;align-items:flex-start;flex-direction:column}.campaign-launch #bulkButton{width:100%}}
@media(max-width:620px){.campaign-hero{align-items:flex-start;padding:18px;flex-direction:column}.campaign-limit{width:100%}.campaign-editor,.campaign-preview-sticky{padding:16px}.campaign-workspace .campaign-setup{grid-template-columns:1fr}.campaign-section-divider{margin:21px 0}.campaign-source-card .settings-actions{display:grid;grid-template-columns:1fr 1fr}.campaign-source-card .settings-actions button{padding-inline:8px}.campaign-phone{border-width:6px;border-radius:30px}.campaign-phone-screen{height:330px}.campaign-test-box{grid-template-columns:1fr}.campaign-test-box button{width:100%}}
.campaign-rate{display:block;margin-top:4px;color:var(--muted);font-size:8px;white-space:nowrap}.queue-table td strong{white-space:nowrap}
.campaign-preflight{margin-top:22px;padding:17px;border:1px solid #cfe0d8;border-radius:13px;background:#f8fbfa}.campaign-preflight-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.campaign-preflight-head>div{display:flex;flex-direction:column;gap:4px}.campaign-preflight-head small{color:#08724b;font-size:8px;font-weight:850;letter-spacing:.11em}.campaign-preflight-head strong{font-size:14px}.campaign-preflight-head p{margin:0!important}.campaign-preflight-result{margin-top:13px;padding:13px;border:1px dashed #c8d8d1;border-radius:10px;color:var(--muted)}.campaign-preflight-result.ready{border-style:solid;border-color:#97d2b8;background:#ebf8f2;color:#145f46}.campaign-preflight-result.blocked{border-style:solid;border-color:#ecc0b7;background:#fff4f1;color:#8d392d}.preflight-summary{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.preflight-summary span{font-size:9px}.preflight-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.preflight-checks>span{display:flex;align-items:flex-start;gap:7px;padding:8px;border-radius:8px;background:#fff;color:#52635b;font-size:9px}.preflight-checks b{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;color:#fff}.preflight-checks .pass b{background:#109668}.preflight-checks .warn b{background:#dc8a27}.preflight-checks .fail{color:#993c31}.preflight-checks .fail b{background:#d24c3e}@media(max-width:700px){.campaign-preflight-head,.preflight-summary{align-items:flex-start;flex-direction:column}.campaign-preflight-head button{width:100%}.preflight-checks{grid-template-columns:1fr}}
.action-center-card{margin-bottom:16px}.action-center-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 14px;border-radius:10px;background:#f3f7f5;color:#52635b}.action-center-summary strong,.action-center-summary span{display:block}.action-center-summary span{font-size:9px}.action-center-summary.healthy{background:#e8f7ef;color:#126044}.action-center-summary.warning{background:#fff7e7;color:#895d14}.action-center-summary.critical{background:#fff0ed;color:#963d31}.action-center-items{display:grid;gap:8px}.action-center-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.action-center-item>b,.action-center-empty>b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#d98621;color:#fff}.action-center-item.critical>b{background:#cf4739}.action-center-item>div{display:flex;min-width:0;flex-direction:column;gap:4px}.action-center-item>div>span{color:var(--muted);font-size:9px}.action-center-item button{padding:7px 10px;font-size:8px}.action-center-empty{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #b9ddca;border-radius:10px;background:#f1faf5;color:#155f46}.action-center-empty>b{background:#109668}@media(max-width:620px){.action-center-summary{align-items:flex-start;flex-direction:column}.action-center-item{grid-template-columns:auto 1fr}.action-center-item button{grid-column:1/-1;width:100%}}
.display-name-change-card{margin:18px 0;padding:18px;border:1px solid #cfe0da;border-radius:14px;background:linear-gradient(135deg,#f8fbfa,#eef7f3)}.display-name-change-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.display-name-change-head>div{display:flex;flex-direction:column;gap:4px}.display-name-change-head small{color:#08724b;font-size:8px;font-weight:850;letter-spacing:.11em}.display-name-change-head strong{font-size:15px}.display-name-change-head p{margin:0!important}.display-name-change-card .grid{padding:13px;border:1px solid #dbe7e2;border-radius:10px;background:#fff}.display-name-change-card .grid label{margin:5px 0!important}.display-name-change-card .security-note{margin:12px 0}.display-name-change-card .settings-actions{align-items:center}.display-name-change-card .button-link.primary{border-color:var(--g);background:var(--g);color:#fff}@media(max-width:620px){.display-name-change-head{flex-direction:column}.display-name-change-card .settings-actions{display:grid}.display-name-change-card .settings-actions>*{width:100%;text-align:center}}

.page>.card,.page>.stats,.page>.banner,.page>.profile-hero,.page>.campaign-hero,.page>.phonebook-hero{animation:workspace-enter .18s ease-out}
@keyframes workspace-enter{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  aside nav{gap:5px;padding-inline:1px}
  aside nav .nav-group-toggle{min-height:43px;padding:7px 3px}
  aside nav .nav-group-toggle span{font-size:7px;line-height:1.15;text-align:center}
  aside nav .nav-group-toggle b{display:none!important}
  aside nav>.nav-group.current,aside nav>button[data-page="overview"].active{box-shadow:inset 2px 0 #36b985}
  .workspace-tabs{position:relative;top:auto;align-items:flex-start;gap:9px;margin-bottom:13px;padding:9px;flex-direction:column}
  .workspace-tabs-title{width:100%;min-width:0;padding:0 0 7px;border-right:0;border-bottom:1px solid #dbe6e1}
  .workspace-tab-buttons{width:100%}
  .workspace-tab-buttons button{min-height:33px;padding:7px 10px;font-size:8px}
}

/* Readable typography and consistent page system */
body{font-size:15px;font-weight:450;line-height:1.55;color:#173029}
main>header h1{font-size:30px;font-weight:820;letter-spacing:-.035em}
main>header small{font-size:10px;font-weight:850;letter-spacing:.13em}
h2,.card h2,.cardhead h2{font-size:20px;font-weight:800;letter-spacing:-.02em}
h3,.card h3{font-size:16px;font-weight:780;letter-spacing:-.012em}
p,.card p{font-size:12.5px;font-weight:500;line-height:1.65;color:#5e7069}
small,.card small,.form small{font-size:10px!important;font-weight:520;line-height:1.5}
strong,b{font-weight:780}
button,.button-link{min-height:42px;padding:10px 15px;font-size:11px;font-weight:760;letter-spacing:.005em}
.small,.template-row-actions .small,.cleanup-actions button,.media-actions button{min-height:34px;padding:7px 10px;font-size:10px}
.form label,label{font-size:12px;font-weight:720;line-height:1.45;color:#29483d}
.form input,.form select,.form textarea,input,select,textarea{font-size:13.5px;font-weight:520;color:#19372d}
.form input,.form select,.form textarea{min-height:45px;padding:11px 13px;border-color:#d4e0db}
input::placeholder,textarea::placeholder{color:#8b9993;font-weight:450}
.card,.banner{border-color:#dce6e2}
.card{padding:24px}
.page>.card>.cardhead{align-items:flex-start;margin:-2px 0 18px;padding:0 0 15px;border-bottom:1px solid #e5ece9}
.cardhead p{margin-top:6px!important}
.stats span{font-size:11px;font-weight:800}
.stats strong{font-size:34px;font-weight:850}
.table{border:1px solid #dfe8e4;box-shadow:none}
th,td{padding:13px 11px;font-size:12px}
th{background:#f3f8f6;color:#425d53;font-size:11px;font-weight:820;letter-spacing:.025em;text-transform:uppercase}
td{font-weight:520;color:#2a4239}
td strong{font-weight:780}
.status-badge,.performance-health{padding:5px 9px;font-size:10px;font-weight:800}
.banner{font-size:12px;font-weight:700}
.inbox-state,#settingsState,#sampleMediaState,#templateSubmitResult,#userState,#consentState,#chatbotState,#metaFlowState,#profileState,#profilePictureState{font-size:11px}
code,pre{font-size:11.5px;line-height:1.55}
.workspace-tabs-title small{font-size:8.5px!important;font-weight:900}
.workspace-tabs-title strong{font-size:13px;font-weight:820}
.workspace-tab-buttons button{min-height:38px;padding:9px 14px;font-size:10.5px;font-weight:780}
aside nav .nav-group-toggle{font-size:11px;font-weight:780}
.account strong{font-size:12px}.account small{font-size:10px!important}
.template-content,.chat-bubble p,#inbox .chat-bubble p{font-size:13px;line-height:1.6}
.chat-contact-copy strong,#inbox .chat-contact-copy strong{font-size:13px;font-weight:780}
.chat-contact-copy small,#inbox .chat-contact-copy small{font-size:10.5px!important}
.report-filters label,.campaign-step-head p,.phonebook-hero p,.campaign-hero p{font-size:10.5px}
.report-filters input,.report-filters select{font-size:12px}
.profile-summary small,.meta-detail-grid small,.operation-list small{font-size:10px!important}
.profile-summary strong,.meta-detail-grid strong{font-size:12px;font-weight:780}
@media(max-width:760px){
  body{font-size:14px}
  main>header h1{font-size:24px}
  h2,.card h2,.cardhead h2{font-size:18px}
  h3,.card h3{font-size:15px}
  p,.card p{font-size:11.5px}
  .card{padding:18px}
  th,td{padding:11px 9px;font-size:11px}
  .workspace-tab-buttons button{min-height:35px;padding:8px 11px;font-size:9.5px}
  aside nav .nav-group-toggle span{font-size:8px;font-weight:800}
}

/* Complete page-by-page redesign v106 */
.page{--page-accent:#07875f;--page-soft:#eaf7f2;max-width:1600px}
#overview{--page-accent:#087c59;--page-soft:#e9f7f1}
#inbox{--page-accent:#0b8f69;--page-soft:#e7f7f1}
#chatbot_flows,#automation{--page-accent:#6756c7;--page-soft:#f0edff}
#send,#bulk,#queue{--page-accent:#0d7a9b;--page-soft:#e9f6fa}
#library,#templates{--page-accent:#b86b20;--page-soft:#fff4e8}
#reports{--page-accent:#326fc2;--page-soft:#edf4ff}
#consent,#phonebook{--page-accent:#18885e;--page-soft:#ebf8f2}
#profile,#operations,#settings{--page-accent:#087c70;--page-soft:#e9f8f5}
#api{--page-accent:#455cc7;--page-soft:#eef0ff}
#users{--page-accent:#9c3f52;--page-soft:#fff0f3}
.page:not(#inbox)>.card{position:relative;overflow:hidden}
.page:not(#inbox)>.card:before{position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--page-accent),color-mix(in srgb,var(--page-accent) 35%,transparent));content:""}
.page>.banner{border-left:4px solid var(--page-accent)}
.page .primary{background:var(--page-accent)}
.page input:focus,.page select:focus,.page textarea:focus{outline:3px solid color-mix(in srgb,var(--page-accent) 14%,transparent);border-color:color-mix(in srgb,var(--page-accent) 65%,#fff)}

/* Dashboard */
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);align-items:center;gap:28px;margin-bottom:18px;padding:28px 30px;overflow:hidden;border:1px solid #174b3b;border-radius:18px;background:radial-gradient(circle at 90% 20%,rgba(58,190,139,.25),transparent 30%),linear-gradient(135deg,#08271e,#0d533d);box-shadow:0 18px 42px rgba(5,45,32,.18);color:#fff}
.dashboard-hero small{color:#93d6bd!important;font-size:9px!important;font-weight:900;letter-spacing:.15em}.dashboard-hero h2{margin:7px 0 6px;color:#fff;font-size:27px}.dashboard-hero p{max-width:720px;margin:0;color:#c9e1d8;font-size:12px}
.dashboard-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.dashboard-quick-actions button{min-height:47px;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.1);color:#fff;text-align:left}.dashboard-quick-actions button:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}
#overview>.stats article{position:relative;border-top:3px solid #90cdb6}#overview>.stats article:nth-child(2){border-top-color:#7a9fdd}#overview>.stats article:nth-child(3){border-top-color:#35a77d}#overview>.stats article:nth-child(4){border-top-color:#39a3d1}
#overview>.stats article:after{position:absolute;right:18px;top:18px;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#edf8f3;color:#087c59;font-size:11px;font-weight:900;content:"WA"}
#overview>.card:last-child code{border:1px dashed #a8cdbf;background:#f1f8f5;color:#165b43}

/* Form-driven workspaces */
#chatbot_flows>.card,#send>.card,#profile>.card,#settings>.card{max-width:none}
#chatbot_flows>.card,#profile>.card,#settings>.card{padding:28px}
#chatbot_flows .chatbot-start-settings,#settings>.card>.grid,#profile .synced-identity{padding:18px;border-color:#d4e3dd;border-radius:14px;background:linear-gradient(135deg,#fbfdfc,var(--page-soft))}
#send>.card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
#send>.card>h2,#send>.card>.template-preview,#send>.card>.variable-section,#send>.card>.interactive-fields,#send>.card>.media-url-box,#send>.card>.settings-actions,#send>.card>#sendResult,#send>.card>#sendState{grid-column:1/-1}
#send>.card>label{margin:10px 0}
#profile .profile-editor-head{padding-bottom:18px;border-bottom:1px solid #e1ebe7}
#profile .profile-picture{width:88px;height:88px;border-radius:24px}

/* Campaign, queue and templates */
#bulk .campaign-workspace,#queue>.card,#templates>.card{border-color:#d8e5e0}
#queue .queue-stats article{border-radius:14px}#queue .queue-worker-meta span{padding:9px 12px;border-radius:10px;background:#f6faf8}
#templates .template-health-stats article{border-radius:13px;background:linear-gradient(145deg,#fff,#f7faf8)}
#templates .template-toolbar{padding:10px;border:1px solid #e1e9e6;border-radius:12px;background:#f8faf9}
#templates .template-request{box-shadow:0 18px 50px rgba(30,55,45,.12)}

/* Library and contacts */
#library>.card{min-height:520px;padding:28px}.media-library{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:15px}.media-card{min-height:130px;padding:16px;border-radius:14px;box-shadow:0 7px 20px rgba(19,48,37,.06);transition:transform .16s,box-shadow .16s}.media-card:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(19,48,37,.1)}.media-icon{width:58px;height:58px;border-radius:13px;font-size:11px}
#phonebook .phonebook-manage-grid>.card{border-top-color:#18885e}.phonebook-table tbody tr:hover{background:#eff8f4}
#consent>.card{max-width:none;min-height:480px}#consent .consent-entry{padding:17px;border:1px solid #d5e5de;border-radius:13px;background:var(--page-soft)}

/* Analytics */
#reports>.stats{margin-top:0}#reports>.card{padding:26px}.report-filters{padding:17px;border-radius:14px;background:linear-gradient(135deg,#f9fbfa,#f0f6f3)}
.template-performance-section,.failure-insights-section{padding:19px;border-radius:15px}.failure-insight-item{padding:14px;border-radius:12px;transition:transform .14s}.failure-insight-item:hover{transform:translateY(-1px)}
.report-pagination{margin-top:16px;padding:13px;border-top:1px solid #e1e9e6}

/* Automation and Meta administration */
#automation{display:none}#automation.active{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}#automation>.card{margin:0}#automation>.card:first-child{grid-column:1/-1}
#operations .operations-title{padding:19px 21px;border:1px solid #d5e5df;border-radius:15px;background:linear-gradient(135deg,#fff,var(--page-soft))}
#operations .operations-grid>.card{border-radius:16px}#operations .operations-grid>.card:not(.operation-wide){min-height:280px}
#operations .operation-list>div{padding:12px 14px;border-radius:11px}
#settings>.card.form{padding:28px;background:linear-gradient(145deg,#fff 70%,#eff9f5)}
#settings .admin-monitoring-grid>.card{border-top-color:#087c70}

/* Developer and users */
#api>.card{padding:27px}#api .api-endpoint{border-left:4px solid var(--page-accent);background:var(--page-soft)}#api .api-code{border:1px solid #243a33;box-shadow:inset 0 0 20px rgba(0,0,0,.12)}
#api .api-tester{background:linear-gradient(145deg,#fff,#f5f7ff)}
#users>.card{padding:28px}#users .user-editor,#users .user-meta-details{padding:20px;border-radius:15px;box-shadow:inset 0 0 0 1px #fff}#users .permission-grid label{min-height:43px;border-radius:10px}

@media(max-width:1050px){
  .dashboard-hero{grid-template-columns:1fr}.dashboard-quick-actions{grid-template-columns:repeat(4,1fr)}
  #automation.active{grid-template-columns:1fr}#automation>.card:first-child{grid-column:auto}
}
@media(max-width:760px){
  .dashboard-hero{padding:21px}.dashboard-hero h2{font-size:22px}.dashboard-quick-actions{grid-template-columns:1fr 1fr}
  #send>.card{display:block}
  #chatbot_flows>.card,#profile>.card,#settings>.card,#library>.card,#reports>.card,#api>.card,#users>.card{padding:18px}
  #operations .operations-title{padding:15px}
}
@media(max-width:480px){.dashboard-quick-actions{grid-template-columns:1fr}}

/* Logo and application-header alignment v107 */
body:not(.auth-body)>aside .brand{position:relative;display:block;flex:0 0 66px;width:auto;min-height:66px;height:66px;margin:0 4px 14px;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18)}
body:not(.auth-body)>aside .brand-logo{position:absolute;top:0;left:0;display:block;width:100%;max-width:none;height:auto;padding:0;border:0;border-radius:0;background:transparent;object-fit:initial;object-position:initial;transform:translateY(-28.5%)}
.auth-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 15px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.auth-legal-links a{color:var(--muted);font-size:9px;font-weight:700;text-decoration:none}.auth-legal-links a:hover{color:var(--g);text-decoration:underline}
.auth-body[style*="--login-background"]{background-image:linear-gradient(rgba(239,247,244,.76),rgba(239,247,244,.84)),var(--login-background)!important;background-position:center!important;background-size:cover!important;background-attachment:fixed!important}.auth-body[style*="--login-background"] .auth-card{background:rgba(255,255,255,.94);backdrop-filter:blur(10px)}
#branding label:has(#brandLogoUrl),#branding label:has(#brandFaviconUrl){display:none!important}
#branding .billing-price-grid:before{content:'Branding details'}
.branding-domain-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin:16px 0;padding:15px;border:1px solid #d5e3de;border-radius:12px;background:#f7fbf9}.branding-domain-card>div:first-child{display:flex;flex-direction:column;gap:3px}.branding-domain-card>div:first-child small{color:var(--muted);font-size:8px}.branding-domain-status{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:11px;border-radius:9px;background:#fff}.branding-domain-status>div{display:flex;gap:7px;align-items:center}.branding-domain-status p{flex:1;min-width:240px;margin:0;color:var(--muted);font-size:9px}.branding-domain-status small{width:100%;color:var(--muted);font-size:7px}.domain-state-dot{width:10px;height:10px;border-radius:50%;background:#98a6a0}.domain-state-dot.verified{background:#12a16e;box-shadow:0 0 0 4px #dff5ec}.domain-state-dot.dns_ready{background:#398bd0;box-shadow:0 0 0 4px #e2f0fb}.domain-state-dot.dns_missing{background:#d65a4e;box-shadow:0 0 0 4px #fde8e5}.domain-state-checking,.domain-state-error{font-size:9px}.domain-state-error{color:#a33b32}@media(max-width:650px){.branding-domain-card{grid-template-columns:1fr}.branding-domain-card>button{width:100%}.branding-domain-status{grid-column:1}}
body:not(.auth-body)>aside .account{min-height:65px;margin:0 4px 17px;padding:11px 12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);box-shadow:inset 0 1px rgba(255,255,255,.04)}
body:not(.auth-body)>aside .account>span{width:38px;height:38px;flex-basis:38px;border-radius:11px;background:linear-gradient(145deg,#d91420,#a9040c);box-shadow:0 7px 16px rgba(173,5,14,.28)}
body:not(.auth-body)>aside .account strong{color:#f5fffb;font-size:12px}body:not(.auth-body)>aside .account small{color:#9cb5ab}
main>header{min-height:108px;margin:-32px 0 22px;padding:20px 0 17px;border-bottom:1px solid #dce7e2;background:linear-gradient(180deg,rgba(244,247,246,.99) 78%,rgba(244,247,246,.93) 92%,transparent)}
main>header>div:first-child{display:flex;min-width:0;flex-direction:column;justify-content:center}
main>header h1{margin:7px 0 0;line-height:1.08}
.header-actions{align-items:center;gap:10px}
.sync-state,.header-refresh,.user-menu-toggle{min-height:46px!important;border-radius:12px!important}
.sync-state{display:inline-flex!important;align-items:center;padding:10px 14px 10px 31px!important;white-space:nowrap;box-shadow:0 5px 16px rgba(8,111,76,.06)}
.sync-state:before{left:14px}
.header-refresh{min-width:126px;padding:10px 17px;background:#fff;box-shadow:0 6px 18px rgba(17,45,34,.07)}
.header-refresh span{font-size:18px}
.user-menu-toggle{min-width:168px;padding:6px 11px 6px 7px;box-shadow:0 6px 18px rgba(17,45,34,.07)}
.user-menu-toggle>span{width:33px;height:33px;border-radius:10px;font-size:12px}.user-menu-toggle>strong{max-width:145px;font-size:11px}
.workspace-tabs{top:110px}
@media(max-width:760px){
  body:not(.auth-body)>aside .brand{flex-basis:53px;width:68px;min-height:53px;height:53px;margin:0 2px 10px;border-radius:11px}
  body:not(.auth-body)>aside .brand-logo{left:-46px;width:170px;transform:translateY(-28.5%)}
  body:not(.auth-body)>aside .account{min-height:48px;margin:0 2px 10px;padding:7px}
  body:not(.auth-body)>aside .account>span{width:34px;height:34px;flex-basis:34px}
  main>header{min-height:auto;margin:-18px 0 16px;padding:15px 0 13px;align-items:center}
  .header-actions{width:auto;justify-content:flex-end;gap:6px}
  .sync-state,.header-refresh,.user-menu-toggle{min-height:40px!important}
  .header-refresh{min-width:43px;padding:8px 10px}.user-menu-toggle{min-width:42px;padding:4px}
  .workspace-tabs{top:auto}
}
@media(max-width:520px){
  main>header{align-items:flex-start;gap:10px;flex-direction:column}
  .header-actions{width:100%;justify-content:flex-start}
}

/* Login logo alignment v108 */
.auth-card>.brand{position:relative;display:block;width:100%;height:105px;min-height:105px;margin:0 auto 25px;padding:0;overflow:hidden;border:1px solid #dbe5e1;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(19,45,35,.07)}
.auth-card>.brand .brand-logo{position:absolute;top:0;left:0;display:block;width:100%;max-width:none;height:auto;padding:0;border:0;border-radius:0;background:transparent;object-fit:initial;object-position:initial;transform:translateY(-28.5%)}
@media(max-width:520px){
  .auth-card>.brand{height:88px;min-height:88px;margin-bottom:21px;border-radius:12px}
  .auth-card>.brand .brand-logo{width:100%;height:auto;transform:translateY(-28.5%)}
}

/* Compact account dropdown v109 */
.header-account .user-menu{top:calc(100% + 9px);right:0;width:270px;max-width:calc(100vw - 24px);padding:8px!important;gap:4px!important;overflow:hidden;border-radius:14px}
.header-account .user-menu-identity{padding:10px 11px!important}
.header-account .user-menu-identity strong{font-size:12px;line-height:1.3}
.header-account .user-menu-identity small{font-size:9px;line-height:1.35}
.header-account .user-menu>button,.header-account .user-menu>a{min-height:40px!important;height:auto!important;margin:0!important;padding:9px 11px!important;border-radius:9px!important;font-size:10.5px!important;line-height:1.25!important}
.header-account .user-menu>button{color:#176047!important;background:#fff!important}
.header-account .user-menu>button:hover{background:#edf7f2!important}
.header-account .user-menu>a{margin-top:2px!important;background:#fff4f2!important;color:#a43d35!important}
.header-account .user-menu>a:hover{background:#fde9e5!important;color:#8b2923!important}
.header-account .header-password-panel{display:none!important;width:100%;height:auto!important;min-height:0!important;margin:0!important;padding:10px!important;gap:8px!important;border:1px solid #d7e5df!important;border-radius:10px!important;background:#f5faf7!important}
.header-account .header-password-panel.open{display:grid!important}
.header-account .header-password-panel input{display:block!important;width:100%!important;height:38px!important;min-height:38px!important;margin:0!important;padding:8px 10px!important;border:1px solid #cbdcd5!important;border-radius:8px!important;background:#fff!important;color:#18382d!important;font-size:10px!important;font-weight:600!important;line-height:1.2!important;box-shadow:none!important}
.header-account .header-password-panel input:focus{outline:3px solid rgba(11,133,88,.12)!important;border-color:#55aa88!important}
.header-account .header-password-panel .primary{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:38px!important;margin:0!important;padding:8px 10px!important;font-size:10px!important}
.header-account .header-password-panel small{display:block!important;min-height:0!important;margin:0!important;padding:0 2px!important;background:transparent!important;border:0!important;font-size:9px!important}
@media(max-width:620px){
  .header-account .user-menu{top:64px;right:10px;width:min(270px,calc(100vw - 20px));max-width:none}
}

/* Account dropdown stacking and flow v110 */
main>header{z-index:60}
.header-account{z-index:70}
.header-account .user-menu{z-index:80;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;align-items:stretch}
.header-account .user-menu>*{position:relative;grid-column:1;width:100%;min-width:0}
.header-account .user-menu-identity{grid-row:auto}
.header-account #headerPasswordChange{grid-row:auto}
.header-account #headerPasswordPanel{position:relative!important;grid-row:auto;float:none!important;clear:both}
.header-account .user-menu>a{position:relative!important;grid-row:auto;float:none!important;clear:both}

/* Panel-wide dropdown consistency v111 */
body:not(.auth-body) select:not([multiple]){
  display:block;
  width:100%;
  height:44px!important;
  min-height:44px!important;
  max-height:44px;
  margin:0;
  padding:0 38px 0 12px!important;
  overflow:hidden;
  border:1px solid #cfded8!important;
  border-radius:9px!important;
  background-color:#fff!important;
  background-image:linear-gradient(45deg,transparent 50%,#527067 50%),linear-gradient(135deg,#527067 50%,transparent 50%)!important;
  background-position:calc(100% - 17px) 18px,calc(100% - 12px) 18px!important;
  background-repeat:no-repeat!important;
  background-size:5px 5px,5px 5px!important;
  color:#19372d!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:42px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
  appearance:none;
  -webkit-appearance:none;
}
body:not(.auth-body) select:not([multiple]):focus{
  position:relative;
  z-index:12;
  outline:3px solid rgba(11,133,88,.13)!important;
  border-color:#52a987!important;
}
body:not(.auth-body) select[multiple]{
  width:100%;
  min-height:132px!important;
  padding:7px!important;
  overflow:auto;
  border:1px solid #cfded8!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#19372d!important;
  font-size:12px!important;
  line-height:1.4!important;
}
body:not(.auth-body) select[multiple] option{padding:8px 9px;border-radius:6px}
body:not(.auth-body) label:focus-within,
body:not(.auth-body) .template-filters:focus-within,
body:not(.auth-body) .report-filters:focus-within,
body:not(.auth-body) .settings-actions:focus-within{position:relative;z-index:12}
.page,.page>.card,.form,.grid,.template-toolbar,.template-filters,.report-filters{isolation:auto}
@media(max-width:620px){
  body:not(.auth-body) select:not([multiple]){height:42px!important;min-height:42px!important;max-height:42px;padding-right:36px!important;background-position:calc(100% - 17px) 17px,calc(100% - 12px) 17px!important}
}

/* Meta template toolbar on one line v112 */
#templates .template-page-head{display:grid;grid-template-columns:minmax(280px,1fr) auto;align-items:center;gap:22px}
#templates .template-toolbar{display:flex;width:auto;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:nowrap;padding:10px}
#templates .template-filters{display:flex;width:auto;align-items:center;gap:8px;flex-wrap:nowrap}
#templates .template-filters input{width:250px;min-width:180px;height:44px}
#templates .template-filters select{flex:0 0 155px;width:155px!important;min-width:155px}
#templates #templateTypeFilter{flex-basis:140px;width:140px!important;min-width:140px}
#templates #openNewTemplate{order:2;flex:0 0 auto;min-height:44px;white-space:nowrap}
@media(max-width:1280px){
  #templates .template-page-head{grid-template-columns:1fr}
  #templates .template-toolbar{width:100%;justify-content:flex-start;overflow-x:auto}
}
@media(max-width:760px){
  #templates .template-toolbar{align-items:stretch;overflow:visible;flex-wrap:wrap}
  #templates .template-filters{display:grid;width:100%;grid-template-columns:1fr 1fr}
  #templates .template-filters input{grid-column:1/-1;width:100%}
  #templates .template-filters select,#templates #templateTypeFilter{width:100%!important;min-width:0}
  #templates #openNewTemplate{order:-1;width:100%}
}
.date-range-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;padding:16px 18px;border:1px solid #d7e5df;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(8,55,43,.06)}
.date-range-bar>div:first-child{display:flex;flex-direction:column;gap:3px}.date-range-bar strong{font-size:15px;color:#123d33}.date-range-bar small{color:#61766f;font-weight:600}
.date-range-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.date-range-buttons button{min-height:42px;padding:9px 16px;border-radius:12px;background:#f5faf8;color:#365f54;border:1px solid #d5e5df;font-weight:800}.date-range-buttons button.active{background:#07865f;color:#fff;border-color:#07865f;box-shadow:0 8px 18px rgba(7,134,95,.18)}
.report-date-range{margin:0 0 16px;background:#f8fcfa;box-shadow:none}
.chat-thread-loading{margin:auto;padding:12px 18px;border-radius:14px;background:#fff;color:#557069;font-weight:800;box-shadow:0 8px 24px rgba(8,55,43,.08)}
@media(max-width:760px){.date-range-bar{align-items:flex-start;flex-direction:column}.date-range-buttons{width:100%}.date-range-buttons button{flex:1;min-width:calc(50% - 5px)}}

/* Tech Provider edition */
#provider{--page-accent:#1877f2;--page-soft:#edf5ff}
.provider-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:16px;padding:27px 29px;overflow:hidden;border:1px solid #164c89;border-radius:18px;background:radial-gradient(circle at 88% 15%,rgba(71,150,255,.3),transparent 31%),linear-gradient(135deg,#082c58,#1459a5);box-shadow:0 17px 42px rgba(13,67,128,.18);color:#fff}
.provider-hero>div{max-width:760px}.provider-hero small{font-size:9px;font-weight:900;letter-spacing:.15em}.provider-hero h2{margin:7px 0 6px;font-size:27px}.provider-hero p{margin:0;color:#dcecff;line-height:1.55}.provider-hero .status-badge{flex:0 0 auto;padding:8px 11px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff}
.provider-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:16px;margin-bottom:16px}.provider-grid>.card{margin:0;padding:25px;overflow:visible!important}
.provider-step{display:flex;align-items:center;gap:12px;margin-bottom:13px}.provider-step>b{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#1877f2;color:#fff;font-size:13px;box-shadow:0 7px 18px rgba(24,119,242,.22)}.provider-step>div{display:flex;flex-direction:column;gap:3px}.provider-step small{color:#1877f2;font-size:8px;font-weight:900;letter-spacing:.13em}.provider-step h2{margin:0;font-size:18px}
.provider-connect-card>p,.provider-review-card>p{color:var(--muted);line-height:1.55}.provider-connect-button{width:100%;min-height:51px;margin:9px 0 12px;background:linear-gradient(135deg,#1877f2,#0e5fc7);box-shadow:0 9px 22px rgba(24,119,242,.24)}.provider-connect-button:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}
.provider-state{min-height:42px;margin-bottom:13px;padding:11px 12px;border:1px solid #dae5ef;border-radius:10px;background:#f7fafc;color:#587080;font-size:10px;line-height:1.45}.provider-state.working{border-color:#a9caf4;background:#edf5ff;color:#1459a5}.provider-state.success{border-color:#9bd6b9;background:#edf9f3;color:#116342}.provider-state.warning{border-color:#edd09b;background:#fff8e9;color:#895d14}.provider-state.error{border-color:#efbbb3;background:#fff2ef;color:#973c31}
.provider-checklist{display:grid;gap:8px;margin:15px 0}.provider-checklist span{position:relative;padding:11px 12px 11px 38px;border:1px solid #dce6e2;border-radius:10px;background:#f9fbfa;color:#53665e;font-size:10px;font-weight:700}.provider-checklist span:before{position:absolute;left:12px;top:50%;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#dfe7e3;color:#718078;content:"•";transform:translateY(-50%)}.provider-checklist span.ready{border-color:#a7d7bf;background:#f0faf5;color:#155f46}.provider-checklist span.ready:before{background:#11976a;color:#fff;content:"✓"}
.provider-connections-card{padding:24px}.provider-connections-card table{min-width:960px}.provider-connections-card code{display:inline-block;max-width:190px;margin:0;padding:5px 7px;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.provider-row-error{display:block;max-width:230px;margin-top:5px;color:#a44338;font-size:8px;white-space:normal}.status-badge.provider-connected{background:#def5e9;color:#0b724d}.status-badge.provider-attention{background:#fff2d8;color:#895d14}.status-badge.provider-disconnected{background:#ecefed;color:#637069}
.provider-connections-card th,.provider-connections-card td{vertical-align:middle}.provider-webhook-cell,.provider-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.provider-webhook-cell .provider-row-error{margin-top:0}.provider-webhook-cell button,.provider-row-actions button{width:116px;min-height:42px;margin:0;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.provider-row-actions{align-items:stretch}.provider-row-actions button{width:130px}
.provider-status-cell{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:150px}.provider-display-name{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;margin:0;color:var(--dark);line-height:1.25}.provider-display-name span{color:var(--muted);font-size:9px}.provider-display-name strong{max-width:190px;font-size:10px;overflow-wrap:anywhere}.provider-display-name em{color:var(--muted);font-size:8px;font-style:normal;text-transform:capitalize}.provider-name-pending strong{color:#8a671f;font-weight:600}.provider-status-cell .provider-row-error{margin-top:0}
.provider-disclaimer{display:flex;align-items:flex-start;gap:12px;border-color:#e7c68a!important;background:#fff9ed!important}.provider-disclaimer strong{flex:0 0 auto;color:#865d16}.provider-disclaimer p{margin:0!important;color:#6c5b3c!important;line-height:1.55}
@media(max-width:900px){.provider-grid{grid-template-columns:1fr}.provider-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.provider-hero{padding:21px}.provider-hero h2{font-size:22px}.provider-grid>.card,.provider-connections-card{padding:18px}.provider-disclaimer{flex-direction:column}}
.provider-review-card>#providerCallbackUrl{display:none!important}
 .billing-price-grid,.billing-adjust-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.billing-price-grid label,.billing-adjust-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700}.billing-price-grid input,.billing-adjust-grid input,.billing-price-grid select,.billing-adjust-grid select{width:100%;box-sizing:border-box}.wallet-ledger{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.wallet-user-card .cardhead>strong{font-size:24px;color:var(--g)}
 .wallet-page-card .cardhead>strong{font-size:28px;color:var(--g)}.billing-price-grid{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.billing-adjust-grid{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.billing-price-grid:before{content:'Message pricing';display:block;grid-column:1/-1;font-size:18px;font-weight:800;color:var(--dark)}.billing-adjust-grid:before{content:'Wallet balance adjustment';display:block;grid-column:1/-1;font-size:18px;font-weight:800;color:var(--dark)}@media(max-width:800px){.billing-price-grid,.billing-adjust-grid{grid-template-columns:1fr}.wallet-page-card .table{overflow-x:auto}}
#billingEditor{display:none!important}
.wallet-balance-summary{display:flex;align-items:center;justify-content:space-between;gap:18px}.wallet-balance-summary .cardhead{flex:1}.wallet-balance-summary>button{flex:0 0 auto}

/* Chatbot flow palette: clear, searchable node library */
.flow-builder{grid-template-columns:280px minmax(0,1fr);align-items:stretch}
.flow-palette{min-height:420px;max-height:calc(100vh - 250px);overflow:auto;padding:16px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);color:var(--dark);gap:0}
.flow-palette-search{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #d9e2de;border-radius:13px;background:#f5f7f6;color:#52635b}
.flow-palette-search>span{font-size:23px;line-height:1;transform:rotate(-20deg);opacity:.85}
.flow-palette-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--dark);font-size:14px}
.flow-palette-search input::placeholder{color:#87958e}
.flow-palette-meta{display:flex;justify-content:space-between;align-items:center;margin:13px 1px 10px;color:#567066;font-size:9px;letter-spacing:.16em}
.flow-palette-meta strong{color:#31574a!important;font-size:9px!important;letter-spacing:.08em}
.flow-palette-groups{display:grid;gap:13px}
.flow-palette-group{display:grid;gap:3px}
.flow-palette-group>header{display:flex;align-items:center;gap:8px;margin:0 0 3px;padding:0;border:0;background:transparent;min-height:0;color:#4e625a}
.flow-palette-group>header>strong{font-size:10px!important;letter-spacing:.16em;color:#4e625a!important}
.flow-palette-group>header>b{font-size:9px;font-weight:500;color:#6d7c75}
.flow-group-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#4b6b5e}.flow-group-dot.trigger{background:#087b53}.flow-group-dot.messages{background:#2b4c69}.flow-group-dot.input{background:#3168b8}.flow-group-dot.logic{background:#a06500}.flow-group-dot.actions{background:#b13e54}
.flow-palette-item{position:relative;display:flex!important;align-items:flex-start;gap:11px;width:100%;min-height:57px;margin:0;padding:9px 6px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--dark)!important;text-align:left;font-size:13px!important;cursor:grab}
.flow-palette-item:hover{background:#f1f8f5!important;border-color:transparent!important}.flow-palette-item:active{cursor:grabbing}.flow-palette-item>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.flow-palette-item strong{display:block;color:#263e35!important;font-size:13px!important;line-height:1.25}.flow-palette-item small{display:block;margin:0;color:#87928d!important;font-size:11px!important;line-height:1.35}.flow-palette-item em{position:absolute;top:12px;right:6px;color:#b1b9b5;font-size:8px;font-style:normal;letter-spacing:.12em;text-transform:uppercase}.flow-node-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:8px;background:#e8f2ed;color:#09805a;font-size:18px;line-height:1;font-weight:700}.flow-node-icon.messages{background:#e8f1f8;color:#2b5575;font-size:17px}.flow-node-icon.input{background:#e7f0ff;color:#2b62ac}.flow-node-icon.logic{background:#fff0d0;color:#a56300;font-size:14px}.flow-node-icon.actions{background:#ffe7eb;color:#b33f53;font-size:17px}.flow-node-icon.trigger{background:#e7f8ef;color:#0b8a5c}.flow-trigger-item{opacity:.74}.flow-trigger-item:hover{opacity:1}.flow-palette-empty{display:none;padding:18px 8px;color:var(--muted);font-size:12px;text-align:center}.flow-palette-empty:not([hidden]){display:block}
@media(max-width:780px){.flow-builder{grid-template-columns:1fr}.flow-palette{max-height:none}.flow-palette-groups{grid-template-columns:1fr 1fr;column-gap:10px}.flow-palette-search,.flow-palette-meta,.flow-palette-empty{grid-column:1/-1}.flow-palette-meta{margin-bottom:8px}}
@media(max-width:520px){.flow-palette-groups{grid-template-columns:1fr}.flow-palette-item em{position:static;display:none}}

/* Visual chatbot studio layout */
.chatbot-studio{width:100%;max-width:none;min-width:0;padding:0!important;overflow:hidden;border:1px solid #dbe5e1;border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.flow-studio-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;border-bottom:1px solid #e3e9e7;background:#fff}.flow-studio-title{min-width:220px}.flow-studio-title>small{display:block;color:var(--g);font-size:9px;font-weight:800;letter-spacing:.15em}.flow-studio-title h2{margin:5px 0 3px;font-size:22px}.flow-studio-title p{margin:0;color:var(--muted);font-size:11px}.flow-studio-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.flow-studio-actions label{display:flex;flex-direction:column;gap:4px;margin:0!important;color:#607169;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.flow-studio-actions select,.flow-studio-actions input{height:36px;padding:8px 10px;border:1px solid #d6e1dc;border-radius:8px;background:#fff;color:var(--dark);font-size:11px;text-transform:none;letter-spacing:0}.flow-select-label select{min-width:155px}.flow-name-label input{width:185px}.flow-studio-actions .status-badge{align-self:flex-end;white-space:nowrap}.flow-studio-actions button{height:36px;padding:8px 12px;font-size:10px}.flow-status-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.flow-settings-panel{margin:0;padding:0 22px;border-bottom:1px solid #e4ebe8;background:#fbfdfc}.flow-settings-panel summary{padding:11px 0;color:#496057;font-size:10px;font-weight:800;cursor:pointer;list-style:none}.flow-settings-panel summary::-webkit-details-marker{display:none}.flow-settings-panel summary:before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;margin-right:7px;border:1px solid #c9d8d1;border-radius:50%;color:var(--g);font-size:14px}.flow-settings-panel[open] summary:before{content:"-"}.flow-settings-panel>.grid{padding:0 0 12px}.flow-settings-panel small{display:block;margin:-2px 0 13px;color:var(--muted);font-size:9px}.flow-builder{grid-template-columns:282px minmax(0,1fr);gap:0;margin:0;min-height:620px}.flow-builder .flow-palette{height:100%;max-height:none;border:0;border-right:1px solid #e0e8e4;border-radius:0;box-shadow:none}.flow-workspace{position:relative;min-height:620px;padding:0;border:0;border-radius:0;background:#f9fbff;overflow:hidden}.flow-canvas-toolbar{height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 15px;border-bottom:1px solid #e2e8ee;background:rgba(255,255,255,.86);color:#7a858d;font-size:9px}.flow-canvas-toolbar>div{display:flex;align-items:center;gap:5px}.flow-canvas-toolbar button{min-width:31px;height:30px;padding:5px 9px;border-color:#dce4ea;background:#fff;color:#56636c;font-size:10px}.flow-canvas-toolbar button:hover{background:#eef6f4;border-color:#b9dace;color:var(--g)}.flow-canvas-viewport{height:calc(100% - 48px);min-height:570px;overflow:auto;background-color:#fafcff;background-image:linear-gradient(#edf2f7 1px,transparent 1px),linear-gradient(90deg,#edf2f7 1px,transparent 1px);background-size:20px 20px}.flow-canvas{position:relative;display:flex;flex-direction:column;align-items:center;gap:25px;min-height:100%;padding:105px 38px 190px;transform:scale(var(--flow-zoom,1));transform-origin:50% 0;transition:transform .18s ease}.flow-node{position:relative;width:min(440px,100%);border:1px solid #d7e4df;border-radius:11px;background:#fff;box-shadow:0 8px 23px rgba(41,72,61,.12);overflow:visible;cursor:grab}.flow-node:not(:last-child):after{content:"";position:absolute;left:50%;bottom:-27px;width:2px;height:25px;background:#9cb7ab;transform:translateX(-50%)}.flow-node:not(:last-child):before{content:"";position:absolute;z-index:1;left:50%;bottom:-29px;width:7px;height:7px;border-right:2px solid #6ba78d;border-bottom:2px solid #6ba78d;transform:translateX(-50%) rotate(45deg);background:#f9fbff}.flow-node>header{display:flex;align-items:center;gap:9px;margin:0;padding:11px 12px;border-bottom:1px solid #e8efec;border-radius:11px;background:#fff}.flow-node>header>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.flow-node>header>div>strong{font-size:12px}.flow-node>header>div>small{overflow:hidden;color:#8a9690;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.flow-number{width:27px;height:27px;background:#e2f6ed;color:#087b53;font-size:10px}.flow-node-toggle{padding:6px 9px!important;border-color:#bfdcd0!important;background:#f2faf6!important;color:#087753!important;font-size:9px!important}.flow-node .remove-flow-node{padding:6px 8px!important;font-size:9px!important}.flow-node-fields{padding:13px 14px}.flow-connections{padding:11px 14px;border-top:1px dashed #d9e5df;background:#fbfdfc}.flow-node-fields[hidden],.flow-connections[hidden]{display:none!important}.flow-minimap{position:absolute;right:16px;bottom:16px;width:132px;height:82px;border:1px solid #e1e6eb;border-radius:7px;background:#fff;box-shadow:0 5px 16px rgba(24,54,42,.08)}.flow-minimap span{position:absolute;left:24px;top:18px;width:50px;height:29px;border:1px solid #a8c3b7;border-radius:4px;background:#e9f7f0}.chatbot-studio>.flow-actions{display:flex;align-items:center;justify-content:flex-start;min-height:55px;margin:0;padding:12px 22px;border-top:1px solid #e1e9e5;background:#fff}.chatbot-studio>.flow-actions>div{display:flex;flex-direction:column;gap:4px}.chatbot-studio>.flow-actions strong{font-size:10px;color:#3f5b50}.chatbot-studio>.flow-actions small{font-size:9px;color:var(--muted)}
@media(max-width:1060px){.flow-studio-head{align-items:flex-start;flex-direction:column}.flow-studio-actions{justify-content:flex-start;width:100%}.flow-name-label{flex:1}.flow-name-label input{width:100%}}
@media(max-width:780px){.flow-builder{grid-template-columns:1fr}.flow-builder .flow-palette{height:auto;border-right:0;border-bottom:1px solid #e0e8e4}.flow-workspace,.flow-canvas-viewport{min-height:520px}.flow-studio-actions{gap:6px}.flow-select-label{flex:1}.flow-select-label select{width:100%;min-width:0}.flow-name-label{flex-basis:100%}.flow-name-label input{width:100%}}

/* Keep the editor viewport stable while the node canvas grows inside it. */
.flow-canvas-viewport{height:570px}
@media(max-width:780px){.flow-canvas-viewport{height:520px}}

/* Spacious, focused controls for the simple chatbot flow canvas. */
.flow-builder{min-height:760px}.flow-workspace{min-height:760px}.flow-canvas-viewport{height:clamp(680px,72vh,920px);min-height:680px;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}.flow-canvas{width:100%;min-width:620px;box-sizing:border-box;padding-top:80px;padding-bottom:240px}.flow-node{width:min(500px,calc(100% - 72px))}.flow-canvas-toolbar{position:relative;z-index:4;height:auto;min-height:54px;padding:9px 15px}.flow-canvas-toolbar>span{font-size:10px}.flow-view-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.flow-view-controls output{display:inline-grid;place-items:center;min-width:48px;height:30px;padding:0 7px;border:1px solid #dce4ea;border-radius:7px;background:#f5f8f7;color:#315044;font-size:10px;font-weight:800}.flow-view-controls button{min-width:34px}.flow-view-controls #expandChatbotCanvas{min-width:66px}.flow-workspace.is-expanded{position:fixed;z-index:10000;inset:12px;min-height:0;border:1px solid #cfded7;border-radius:15px;background:#fff;box-shadow:0 24px 80px rgba(11,36,27,.28)}.flow-workspace.is-expanded .flow-canvas-viewport{height:calc(100vh - 79px);min-height:0}.flow-canvas-expanded{overflow:hidden}.flow-workspace.is-expanded #expandChatbotCanvas{border-color:#9bcdb9;background:#eaf8f2;color:#076d4d}.flow-workspace:focus-within .flow-canvas-toolbar{box-shadow:0 3px 12px rgba(32,70,55,.07)}
@media(max-width:780px){.flow-builder,.flow-workspace{min-height:620px}.flow-canvas-viewport{height:620px;min-height:620px}.flow-canvas{min-width:540px}.flow-canvas-toolbar{align-items:flex-start;flex-direction:column}.flow-view-controls{width:100%;justify-content:flex-start}.flow-workspace.is-expanded{inset:5px}.flow-workspace.is-expanded .flow-canvas-viewport{height:calc(100vh - 112px)}}

/* Panel-wide usability and accessibility refinements. */
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 32%,transparent);outline-offset:2px}:where(button,input,select,textarea):disabled{opacity:.58;cursor:not-allowed;filter:saturate(.7)}.page .table{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}.page .table table{width:100%}.page .cardhead{gap:16px}.page .cardhead>div{min-width:0}.page .cardhead h2,.page .cardhead p{overflow-wrap:anywhere}.status-badge,.sync-state{white-space:nowrap}.form textarea{resize:vertical}.notice .toast{max-width:min(460px,calc(100vw - 32px));overflow-wrap:anywhere}.empty-state,.flow-empty{padding:28px;text-align:center}@media(max-width:900px){main{overflow-x:hidden}.page>.card,.page>article{max-width:100%}.cardhead{align-items:flex-start}.report-filters,.grid{min-width:0}.header-actions{gap:7px}}@media(max-width:560px){.cardhead{flex-direction:column}.cardhead>button,.cardhead>.settings-actions{width:100%}.header-account{max-width:100%}.user-menu-toggle strong{max-width:110px;overflow:hidden;text-overflow:ellipsis}.flow-studio-head{padding:16px}.flow-studio-actions button{flex:1 1 auto}.report-pagination,.report-pagination>div{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Mobile workspace and installable web app */
.mobile-nav-toggle,.mobile-nav-backdrop{display:none}.install-panel-app{position:fixed;z-index:91;right:28px;bottom:24px;min-height:44px;padding:11px 17px;border-color:#087763;border-bottom:3px solid #064f48;background:linear-gradient(150deg,#129b7f,#087763);box-shadow:0 7px 18px rgba(3,86,75,.25);color:#fff;font-weight:800}.install-panel-app[hidden]{display:none!important}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}body.mobile-nav-open{overflow:hidden}
  .mobile-nav-toggle{position:fixed;z-index:103;top:calc(15px + env(safe-area-inset-top));left:13px;width:44px;height:44px;display:grid;align-content:center;justify-content:center;gap:5px;padding:0;border:1px solid #d4e2e4;border-radius:12px;background:#fff;box-shadow:0 8px 20px rgba(12,51,64,.14)}
  .mobile-nav-toggle span{display:block;width:21px;height:2px;border-radius:2px;background:#163b45;transition:.2s}.mobile-nav-open .mobile-nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}.mobile-nav-open .mobile-nav-toggle span:nth-child(2){opacity:0}.mobile-nav-open .mobile-nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .mobile-nav-backdrop{position:fixed;z-index:98;inset:0;display:block;background:rgba(4,24,34,.55);backdrop-filter:blur(2px)}.mobile-nav-backdrop[hidden]{display:none}
  body:not(.auth-body)>aside{z-index:101;width:min(86vw,320px)!important;padding:18px 14px calc(22px + env(safe-area-inset-bottom))!important;overflow-y:auto;transform:translateX(-105%);transition:transform .23s ease;box-shadow:20px 0 42px rgba(0,24,34,.28)}body.mobile-nav-open:not(.auth-body)>aside{transform:translateX(0)}
  body:not(.auth-body)>aside .brand{height:78px!important;min-height:78px!important;padding:8px 12px!important}body:not(.auth-body)>aside .brand-logo{height:64px!important;max-height:64px!important;object-position:50% 50%!important}
  body:not(.auth-body)>aside .account{justify-content:flex-start;padding:12px!important}body:not(.auth-body)>aside .account div{display:flex!important}body:not(.auth-body)>aside nav button{min-height:45px;padding:12px 14px!important;font-size:12px!important;text-align:left!important}body:not(.auth-body)>aside nav button:after{display:none!important}.nav-group-toggle span{display:inline!important}
  body:not(.auth-body)>main{width:100%!important;margin-left:0!important;padding:calc(82px + env(safe-area-inset-top)) 10px calc(22px + env(safe-area-inset-bottom))!important}
  body:not(.auth-body)>main>header{left:0!important;min-height:68px!important;padding:calc(8px + env(safe-area-inset-top)) 10px 8px 67px!important}body:not(.auth-body)>main>header>div:first-child{min-width:0}body:not(.auth-body)>main>header small{display:none}body:not(.auth-body)>main>header h1{max-width:40vw;overflow:hidden;font-size:18px!important;text-overflow:ellipsis;white-space:nowrap}
  .header-actions{min-width:0}.header-refresh{width:42px;min-width:42px;padding:9px!important}.header-account{min-width:0}.user-menu-toggle{max-width:118px!important;padding:6px!important}.user-menu-toggle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu{position:fixed!important;top:calc(72px + env(safe-area-inset-top))!important;right:10px!important;left:10px!important;width:auto!important}
  .install-panel-app{right:12px;bottom:calc(14px + env(safe-area-inset-bottom));min-height:46px}
  body:not(.auth-body) .page>.card,body:not(.auth-body) .page>article.card{padding:14px!important}.dashboard-hero{padding:17px!important}.dashboard-hero h2{font-size:21px!important}.dashboard-quick-actions{grid-template-columns:1fr 1fr!important}.workspace-tabs{margin-bottom:11px!important}.workspace-tabs-title{display:none}.workspace-tab-buttons{width:max-content}
  input,select,textarea{max-width:100%;font-size:16px!important}button,.button-link{min-height:42px}input[type="checkbox"],input[type="radio"],input[type="color"]{font-size:initial!important}
  .billing-price-grid,.report-filters,.campaign-recipient-grid,.campaign-layout,.send-campaign-shell{grid-template-columns:1fr!important}.table{max-width:calc(100vw - 20px)}table{min-width:680px}.cardhead h2{font-size:18px}.panel-footer{margin-top:14px!important}
  .chat-app{height:calc(100dvh - 92px)!important;min-height:500px}.chat-thread{padding:12px!important}.chat-compose{padding:8px!important}.chat-header{padding:8px!important}.chat-header-actions{gap:4px!important}.chat-header-actions button{padding:7px!important;font-size:9px!important}
}
@media(max-width:430px){.dashboard-quick-actions{grid-template-columns:1fr!important}.stats{grid-template-columns:1fr!important}.header-account .user-menu-toggle strong{display:none}.user-menu-toggle{width:45px!important}.date-range-buttons{grid-template-columns:1fr 1fr!important}}

/* Mobile drawer cascade correction v207. Keep after legacy sidebar rules. */
@media(max-width:760px){
body:not(.auth-body)>aside#panelSidebar{inset:0 auto 0 0!important;width:min(88vw,340px)!important;max-width:340px!important;height:100dvh!important;padding:78px 14px calc(20px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important;overflow-y:auto!important;gap:0!important}
body:not(.auth-body)>aside#panelSidebar .brand{position:absolute!important;top:13px!important;right:66px!important;left:14px!important;width:auto!important;height:54px!important;min-height:54px!important;margin:0!important;padding:4px 8px!important;border-radius:12px!important;overflow:hidden!important}
body:not(.auth-body)>aside#panelSidebar .brand-logo{position:static!important;width:100%!important;max-width:210px!important;height:44px!important;margin:auto!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body:not(.auth-body)>aside#panelSidebar .account{display:flex!important;width:100%!important;min-height:62px!important;margin:7px 0 14px!important;padding:10px!important;align-items:center!important;justify-content:flex-start!important}
body:not(.auth-body)>aside#panelSidebar .account>span{display:grid!important;flex:0 0 40px!important;width:40px!important;height:40px!important}body:not(.auth-body)>aside#panelSidebar .account>div{display:flex!important;min-width:0!important;flex:1!important}.mobile-nav-open .mobile-nav-toggle{top:15px!important;right:14px!important;left:auto!important}
body:not(.auth-body)>aside#panelSidebar nav{display:flex!important;width:100%!important;padding:0 0 16px!important;overflow:visible!important;flex-direction:column!important;gap:5px!important}
body:not(.auth-body)>aside#panelSidebar nav>button,body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle,body:not(.auth-body)>aside#panelSidebar nav .nav-group-items button{display:flex!important;width:100%!important;min-height:45px!important;margin:0!important;padding:11px 12px!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;overflow:visible!important;font-size:12px!important;line-height:1.25!important;text-align:left!important;white-space:normal!important}
body:not(.auth-body)>aside#panelSidebar nav button::before{display:block!important;flex:0 0 9px!important;width:9px!important;height:9px!important}
body:not(.auth-body)>aside#panelSidebar nav .nav-group{width:100%!important;overflow:visible!important}body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle span{display:block!important;min-width:0!important;flex:1!important;font-size:12px!important;line-height:1.25!important;text-align:left!important}body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle b{display:block!important;margin-left:auto!important;font-size:17px!important}
body:not(.auth-body)>aside#panelSidebar nav .nav-group-items{width:100%!important;padding:3px 0 4px 20px!important}body:not(.auth-body)>aside#panelSidebar nav .nav-group-items button{min-height:40px!important;padding:9px 10px!important;font-size:11px!important}
}
.wallet-user-card.wallet-empty,.wallet-page-card.wallet-empty{border-color:#e7b4b4!important;background:linear-gradient(135deg,#fff,#fff6f6)!important}.wallet-user-card.wallet-empty .cardhead>strong,.wallet-page-card.wallet-empty .cardhead>strong{color:#a71920!important}

/* Simple Automation tools layout: keep the module functional without the decorative card treatment. */
#automation.active{display:block!important;max-width:1120px;margin:0 auto}
#automation>.card{position:static;margin:0 0 18px;padding:24px;border:1px solid #d8e1dd;border-radius:6px;background:#fff;box-shadow:none;transition:none}
#automation>.card:hover{box-shadow:none}
#automation>.card:before{display:none!important}
#automation>.card:first-child{grid-column:auto}
#automation>.card .cardhead{align-items:flex-start;padding-bottom:16px;border-bottom:1px solid #e7ece9}
#automation>.card .cardhead h2{margin:0 0 6px;color:#203c31;font-size:22px}
#automation>.card .cardhead p{margin:0;color:#66766f;font-size:12px}
#automation>.card .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
#automation>.card .form label,#automation>.card label{margin:0;color:#32483e;font-size:11px}
#automation>.card input,#automation>.card select,#automation>.card textarea{width:100%;min-height:40px;padding:10px 11px;border:1px solid #cfdad5;border-radius:5px;background:#fff;box-shadow:none;font-size:12px}
#automation>.card textarea{min-height:104px;resize:vertical}
#automation>.card input:focus,#automation>.card select:focus,#automation>.card textarea:focus{outline:2px solid #d6eee3;box-shadow:none}
#automation>.card .settings-actions{display:flex;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e7ece9}
#automation>.card .settings-actions button{min-height:38px;border-radius:5px;box-shadow:none;font-size:11px}
#automation>.card .settings-actions .primary{background:var(--g);color:#fff}
#automation>.card #businessToolState{margin-top:10px;color:var(--muted);font-size:11px}
#automation>.card .table{margin-top:16px;border:1px solid #d8e1dd;border-radius:6px;box-shadow:none}
#automation>.card table{min-width:760px}
#automation>.card th{background:#f6f8f7;color:#617169;font-size:9px}
#automation>.card td{font-size:11px}
@media(max-width:760px){#automation>.card{padding:18px}#automation>.card .grid{grid-template-columns:1fr;gap:12px}#automation>.card .settings-actions{align-items:flex-start;flex-direction:column}}

/* Unified panel UX: a single, calmer visual system across every workspace. */
body:not(.auth-body){
  --panel-bg:#f4f7f5;
  --panel-surface:#ffffff;
  --panel-border:#dce7e2;
  --panel-text:#173029;
  --panel-muted:#63756d;
  background:var(--panel-bg);
  color:var(--panel-text);
}
body:not(.auth-body)>aside{
  width:272px;
  padding:20px 16px 16px;
  background:linear-gradient(180deg,#08241b 0%,#0e3427 58%,#0b281f 100%);
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:10px 0 30px rgba(5,32,23,.14);
}
body:not(.auth-body)>main{
  margin-left:272px;
  min-height:100vh;
  padding:28px 30px 48px;
  max-width:none;
}
body:not(.auth-body)>aside .brand{margin-bottom:14px}
body:not(.auth-body)>aside .account{margin-bottom:14px}
body:not(.auth-body)>aside nav{gap:5px;padding:2px 3px 18px}
body:not(.auth-body)>aside nav>button,
body:not(.auth-body)>aside nav .nav-group-toggle{
  min-height:42px;
  padding:9px 11px;
  border-radius:9px;
  font-weight:740;
}
body:not(.auth-body)>aside nav .nav-group-items>button{
  min-height:35px;
  border-radius:7px;
}
body:not(.auth-body)>aside nav>button.active,
body:not(.auth-body)>aside nav>.nav-group.current{
  box-shadow:inset 3px 0 #46c391,0 7px 18px rgba(0,0,0,.1);
}
body:not(.auth-body)>main>header{
  position:sticky;
  top:0;
  z-index:30;
  margin:-28px -30px 24px;
  padding:18px 30px 16px;
  border-bottom:1px solid var(--panel-border);
  background:rgba(244,247,245,.95);
  backdrop-filter:blur(12px);
}
body:not(.auth-body)>main>header h1{
  margin:4px 0 0;
  font-size:29px;
  font-weight:840;
  letter-spacing:-.035em;
}
body:not(.auth-body) .header-actions{gap:8px}
body:not(.auth-body) .header-actions>*{border-radius:10px}
body:not(.auth-body) .page{width:100%;max-width:1500px;margin:0 auto}
body:not(.auth-body) .page>.card,
body:not(.auth-body) .page>.banner,
body:not(.auth-body) .page>.stats,
body:not(.auth-body) .page>.profile-hero{
  border-color:var(--panel-border);
}
body:not(.auth-body) .page>.card{
  padding:22px;
  border-radius:12px;
  background:var(--panel-surface);
  box-shadow:0 7px 24px rgba(13,49,35,.055);
}
body:not(.auth-body) .page>.card>.cardhead{
  margin:-1px 0 17px;
  padding-bottom:13px;
  border-bottom:1px solid #e6eeea;
}
body:not(.auth-body) .page>.card>.cardhead h2{margin:0;font-size:19px}
body:not(.auth-body) button,
body:not(.auth-body) .button-link{
  min-height:40px;
  border-radius:8px;
  font-weight:720;
}
body:not(.auth-body) input,
body:not(.auth-body) select,
body:not(.auth-body) textarea{
  border-radius:8px;
  border-color:#d1ded8;
  color:var(--panel-text);
}
body:not(.auth-body) input:focus,
body:not(.auth-body) select:focus,
body:not(.auth-body) textarea:focus{
  outline:3px solid rgba(7,135,95,.12);
  border-color:#52ad8b;
}
body:not(.auth-body) .table{
  border:1px solid var(--panel-border);
  border-radius:10px;
  overflow:auto;
  box-shadow:inset 0 0 0 1px rgba(220,231,226,.45);
}
body:not(.auth-body) th{
  background:#f3f8f6;
  color:#52685f;
  font-size:9px;
  letter-spacing:.06em;
}
body:not(.auth-body) tbody tr:hover{background:#f3f9f6}
body:not(.auth-body) .status-badge{border-radius:999px}
body:not(.auth-body) .workspace-tabs{
  margin-bottom:18px;
  border-color:#d6e4de;
  border-radius:11px;
  box-shadow:0 6px 20px rgba(6,50,36,.06);
}
/* Keep the intentionally plain Automation tools screen plain. */
body:not(.auth-body) #automation>.card{box-shadow:none;border-radius:6px}
@media(max-width:760px){
  body:not(.auth-body)>aside{width:88px;padding:13px 8px 10px}
  body:not(.auth-body)>main{margin-left:88px;padding:18px 14px 36px}
  body:not(.auth-body)>main>header{margin:-18px -14px 18px;padding:15px 14px 13px}
  body:not(.auth-body)>main>header h1{font-size:23px}
  body:not(.auth-body) .page>.card{padding:17px}
  body:not(.auth-body) .workspace-tabs{margin-bottom:13px}
}
@media(max-width:480px){
  body:not(.auth-body)>main{padding-inline:10px}
  body:not(.auth-body)>main>header{margin-inline:-10px;padding-inline:10px}
  body:not(.auth-body) .page>.card{padding:15px}
}

/* Send Campaign: compact three-step wizard */
.campaign-wizard{min-width:0}
.campaign-wizard-progress{display:grid;grid-template-columns:1fr 28px 1fr 28px 1fr;align-items:center;gap:8px;margin:-4px 0 24px;padding:10px;border:1px solid #dce8e2;border-radius:12px;background:#f7faf8}
.campaign-wizard-progress>i{height:2px;background:#d8e5df}
.campaign-wizard-step{display:grid!important;grid-template-columns:auto minmax(0,1fr);column-gap:9px;align-items:center;width:100%;min-height:52px;padding:8px 10px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#6a7b73!important;text-align:left!important;box-shadow:none!important}
.campaign-wizard-step>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2ebe7;color:#567066;font-size:11px;font-weight:850}
.campaign-wizard-step>strong{font-size:11px;line-height:1.2}
.campaign-wizard-step>small{grid-column:2;color:#87948e;font-size:8px;line-height:1.25}
.campaign-wizard-step.active{border-color:#a6d8c5!important;background:#e7f6ef!important;color:#086b4b!important}
.campaign-wizard-step.active>span,.campaign-wizard-step.done>span{background:#07875f;color:#fff}
.campaign-wizard-step.done{color:#2f6c56!important}
.campaign-wizard-step-panel{padding:2px 0 4px}
.campaign-wizard-step-panel[hidden]{display:none!important}
.campaign-wizard-step-panel>.wizard-step-heading{margin-bottom:15px}
.wizard-step-heading h2{margin:0 0 4px}
.wizard-step-heading p{margin:0;color:#667a71;font-size:10px}
.campaign-wizard-subheading{margin:19px 0 9px;color:#315d4e;font-size:12px;letter-spacing:.03em}
.campaign-source-tabs,.campaign-schedule-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0 10px}
.campaign-source-tabs button,.campaign-schedule-tabs button{min-height:40px;padding:9px 13px;border:1px solid #d5e3dd;border-radius:8px;background:#fff;color:#587066;font-size:10px;font-weight:800}
.campaign-source-tabs button.active,.campaign-schedule-tabs button.active{border-color:#91ceb2;background:#e5f6ee;color:#086d4d;box-shadow:0 3px 10px rgba(7,135,95,.1)}
.campaign-source-panel{display:none;margin:0 0 14px;padding:15px;border:1px solid #dce8e2;border-radius:10px;background:#fbfdfc}
.campaign-source-panel.active{display:block}
.campaign-source-panel .bulk-file-box{margin:0}
.campaign-source-panel .country-code-tool{margin-top:0}
.campaign-source-panel>label:last-child{margin-bottom:0}
.campaign-wizard-nav{display:flex;justify-content:space-between;gap:10px;margin-top:22px;padding-top:16px;border-top:1px solid #e3ece7}
.campaign-wizard-nav .primary{min-width:125px}
.campaign-wizard-nav .secondary{border:1px solid #d5e3dd;background:#fff;color:#587066}
.campaign-file-variable-map{margin:15px 0;padding:14px;border:1px solid #cfe4d8;border-radius:11px;background:#f3faf6}.campaign-file-variable-map[hidden]{display:none!important}.campaign-file-variable-map .campaign-wizard-subheading{margin:0 0 4px}.campaign-file-variable-help{margin:0 0 9px!important;color:#667a71!important;font-size:9px!important}.campaign-file-variable-map .bulk-variable-mapping{margin-top:5px}.campaign-file-variable-map .bulk-variable-mapping label{padding:10px;border:1px solid #d8e8e1;border-radius:9px;background:#fff}.campaign-file-variable-map .bulk-variable-mapping select{width:100%;min-height:40px}
.campaign-schedule-panel{display:none;margin:0 0 16px;padding:15px;border:1px solid #dce8e2;border-radius:10px;background:#fbfdfc}
.campaign-schedule-panel.active{display:block}
.campaign-schedule-panel label{margin:0!important}
@media(max-width:700px){
  .campaign-wizard-progress{grid-template-columns:1fr;gap:4px}
  .campaign-wizard-progress>i{display:none}
  .campaign-wizard-step{grid-template-columns:auto minmax(0,1fr)}
  .campaign-source-tabs,.campaign-schedule-tabs{display:grid;grid-template-columns:1fr}
  .campaign-source-tabs button,.campaign-schedule-tabs button{width:100%}
  .campaign-wizard-nav{flex-direction:column-reverse}
  .campaign-wizard-nav button{width:100%}
}

/* Mobile navigation: keep the sidebar as an icon rail and prevent long
   labels from escaping into the page content. The previous responsive rule
   rendered data-page labels inside a narrow rail, which caused the clipped
   text/overlap visible on phones. */
@media (max-width:760px){
  body:not(.auth-body)>aside{
    width:64px!important;
    padding:14px 8px!important;
    overflow-x:hidden!important;
  }
  body:not(.auth-body)>aside .brand-logo{height:48px!important;max-width:48px!important;object-fit:contain}
  body:not(.auth-body)>aside .brand strong,
  body:not(.auth-body)>aside .account div,
  body:not(.auth-body)>aside .nav-item b,
  body:not(.auth-body)>aside .sidebar-bottom,
  body:not(.auth-body)>aside nav button:after{display:none!important}
  body:not(.auth-body)>aside .account{justify-content:center!important;margin:12px 0!important;padding:7px!important}
  body:not(.auth-body)>aside nav button,
  body:not(.auth-body)>aside nav .nav-group-toggle,
  body:not(.auth-body)>aside nav .nav-group-items>button{
    width:48px!important;min-width:48px!important;height:44px!important;
    justify-content:center!important;padding:0!important;text-align:center!important;
    white-space:nowrap!important;overflow:hidden!important;font-size:0!important;
  }
  body:not(.auth-body)>aside nav button span{font-size:18px!important}
  body:not(.auth-body)>main{margin-left:64px!important;width:calc(100% - 64px)!important;min-width:0!important;padding:18px 12px!important;overflow-x:hidden!important}
  body:not(.auth-body)>main>header{min-width:0!important;flex-wrap:wrap!important}
  body:not(.auth-body) .card,.banner,.workspace-tabs{max-width:100%!important;min-width:0!important}
}

/* Professional clear-glass interface v150 */
:root{
  --glass-ink:#102f35;
  --glass-muted:#5f7479;
  --glass-line:rgba(112,151,158,.24);
  --glass-surface:rgba(255,255,255,.76);
  --glass-surface-strong:rgba(255,255,255,.91);
  --glass-primary:#087f75;
  --glass-primary-deep:#075f67;
  --glass-blue:#2563d9;
  --glass-violet:#7557d6;
  --glass-danger:#cf4c55;
  --glass-shadow:0 18px 48px rgba(18,58,70,.10),0 3px 10px rgba(18,58,70,.06);
  --glass-shadow-raised:0 13px 25px rgba(22,73,83,.17),inset 0 1px 0 rgba(255,255,255,.82),inset 0 -2px 0 rgba(25,72,80,.08);
}
body:not(.auth-body){
  --panel-bg:#eef6f7;
  --panel-surface:var(--glass-surface);
  --panel-border:var(--glass-line);
  --panel-text:var(--glass-ink);
  --panel-muted:var(--glass-muted);
  background:
    radial-gradient(circle at 83% 6%,rgba(71,156,232,.16),transparent 28rem),
    radial-gradient(circle at 12% 88%,rgba(30,170,136,.13),transparent 32rem),
    linear-gradient(145deg,#f7fbfb 0%,#edf6f4 44%,#eef4fb 100%);
  background-attachment:fixed;
  color:var(--glass-ink);
}
body:not(.auth-body)>aside{
  background:
    radial-gradient(circle at 18% 6%,rgba(55,212,178,.22),transparent 17rem),
    linear-gradient(165deg,rgba(5,30,38,.98),rgba(7,53,55,.97) 56%,rgba(18,37,72,.98));
  border-right:1px solid rgba(170,229,221,.16);
  box-shadow:14px 0 42px rgba(4,32,39,.17),inset -1px 0 rgba(255,255,255,.05);
}
body:not(.auth-body)>aside .brand,
body:not(.auth-body)>aside .account{
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.085);
  box-shadow:inset 0 1px rgba(255,255,255,.13),0 12px 25px rgba(0,0,0,.12);
  backdrop-filter:blur(13px) saturate(125%);
}
body:not(.auth-body)>aside nav>button,
body:not(.auth-body)>aside nav .nav-group-toggle,
body:not(.auth-body)>aside nav .nav-group-items>button{
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
body:not(.auth-body)>aside nav>button:hover,
body:not(.auth-body)>aside nav .nav-group-toggle:hover,
body:not(.auth-body)>aside nav .nav-group-items>button:hover{
  transform:translateX(2px);
  background:rgba(255,255,255,.10);
  color:#fff;
}
body:not(.auth-body)>aside nav>button.active,
body:not(.auth-body)>aside nav>.nav-group.current{
  background:linear-gradient(135deg,rgba(25,168,133,.28),rgba(46,115,201,.19));
  box-shadow:inset 3px 0 #58dfbc,inset 0 1px rgba(255,255,255,.10),0 10px 22px rgba(0,0,0,.13);
}
body:not(.auth-body)>main>header{
  background:rgba(242,249,249,.77);
  border-bottom:1px solid rgba(123,160,165,.20);
  box-shadow:0 12px 32px rgba(23,69,78,.065);
  backdrop-filter:blur(22px) saturate(145%);
}
body:not(.auth-body)>main>header h1,
body:not(.auth-body) h2,
body:not(.auth-body) h3{color:var(--glass-ink);letter-spacing:-.025em}
body:not(.auth-body) .page{animation:glassPageIn .24s ease both}
@keyframes glassPageIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
body:not(.auth-body) .page>.card,
body:not(.auth-body) .card,
body:not(.auth-body) .workspace-tabs,
body:not(.auth-body) .date-range-bar,
body:not(.auth-body) .report-filters,
body:not(.auth-body) .campaign-wizard-progress{
  border:1px solid var(--glass-line);
  background:var(--glass-surface);
  box-shadow:var(--glass-shadow),inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter:blur(18px) saturate(140%);
}
body:not(.auth-body) .page>.card{border-radius:20px;padding:25px}
body:not(.auth-body) .page>.card>.cardhead{border-bottom-color:rgba(111,151,156,.18)}
body:not(.auth-body) .stats>article,
body:not(.auth-body) .stat-card,
body:not(.auth-body) .media-card,
body:not(.auth-body) .template-card,
body:not(.auth-body) .operation-item{
  border:1px solid rgba(112,151,158,.20);
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 30px rgba(20,65,75,.08),inset 0 1px rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
}
body:not(.auth-body) .banner,
body:not(.auth-body) .security-note,
body:not(.auth-body) .inbox-state{
  border-radius:15px;
  box-shadow:inset 0 1px rgba(255,255,255,.72),0 7px 18px rgba(25,72,80,.05);
}
body:not(.auth-body) button,
body:not(.auth-body) .button-link,
body:not(.auth-body) input[type="button"],
body:not(.auth-body) input[type="submit"]{
  border:1px solid rgba(91,133,141,.25);
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(232,243,243,.82));
  color:#193f46;
  box-shadow:var(--glass-shadow-raised);
  text-shadow:0 1px rgba(255,255,255,.7);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,border-color .16s ease;
}
body:not(.auth-body) button:hover:not(:disabled),
body:not(.auth-body) .button-link:hover{
  transform:translateY(-2px);
  border-color:rgba(44,128,134,.42);
  box-shadow:0 17px 29px rgba(21,71,82,.19),inset 0 1px 0 #fff,inset 0 -2px 0 rgba(26,83,91,.08);
  filter:saturate(108%);
}
body:not(.auth-body) button:active:not(:disabled),
body:not(.auth-body) .button-link:active{
  transform:translateY(1px);
  box-shadow:0 4px 9px rgba(21,71,82,.14),inset 0 2px 5px rgba(26,71,78,.10);
}
body:not(.auth-body) button.primary,
body:not(.auth-body) .button-link.primary,
body:not(.auth-body) input.primary{
  border-color:rgba(5,101,104,.55);
  background:linear-gradient(145deg,#13a087 0%,#087979 48%,#1766a4 100%);
  color:#fff;
  text-shadow:0 1px 1px rgba(0,40,48,.34);
  box-shadow:0 13px 25px rgba(7,108,104,.27),inset 0 1px 0 rgba(255,255,255,.36),inset 0 -3px 0 rgba(1,57,68,.23);
}
body:not(.auth-body) button.danger,
body:not(.auth-body) .button-link.danger{
  border-color:rgba(174,48,61,.30);
  background:linear-gradient(180deg,#fff7f7,#fbe4e6);
  color:#b52e3d;
  box-shadow:0 9px 20px rgba(155,43,54,.12),inset 0 1px #fff;
}
body:not(.auth-body) button:focus-visible,
body:not(.auth-body) .button-link:focus-visible{
  outline:3px solid rgba(47,126,224,.25);
  outline-offset:2px;
}
body:not(.auth-body) input,
body:not(.auth-body) textarea,
body:not(.auth-body) select{
  min-width:0;
  border:1px solid rgba(101,142,148,.30);
  background-color:rgba(255,255,255,.84);
  color:var(--glass-ink);
  box-shadow:inset 0 1px 2px rgba(21,63,71,.055),0 5px 14px rgba(22,65,74,.035);
  backdrop-filter:blur(9px);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
body:not(.auth-body) input:hover,
body:not(.auth-body) textarea:hover,
body:not(.auth-body) select:hover{border-color:rgba(40,128,132,.46);background-color:rgba(255,255,255,.94)}
body:not(.auth-body) input:focus,
body:not(.auth-body) textarea:focus,
body:not(.auth-body) select:focus{
  outline:none;
  border-color:#2a9b99;
  background-color:#fff;
  box-shadow:0 0 0 4px rgba(29,143,139,.13),0 9px 20px rgba(24,77,86,.075);
}
body:not(.auth-body) select:not([multiple]){
  width:100%;
  padding-right:42px!important;
  appearance:none;
  background-image:
    linear-gradient(45deg,transparent 50%,#326b70 50%),
    linear-gradient(135deg,#326b70 50%,transparent 50%),
    linear-gradient(to right,rgba(92,132,138,.18),rgba(92,132,138,.18));
  background-position:calc(100% - 19px) 50%,calc(100% - 13px) 50%,calc(100% - 38px) 50%;
  background-size:6px 6px,6px 6px,1px 55%;
  background-repeat:no-repeat;
  text-overflow:ellipsis;
}
body:not(.auth-body) select[multiple]{width:100%;min-height:126px;padding:8px;background-image:none}
body:not(.auth-body) .form label>select,
body:not(.auth-body) .grid label>select,
body:not(.auth-body) .report-filters label>select,
body:not(.auth-body) .campaign-source-panel label>select,
body:not(.auth-body) .billing-price-grid label>select,
body:not(.auth-body) .billing-adjust-grid label>select{width:100%!important;max-width:none!important;min-width:0!important}
body:not(.auth-body) .cardhead>select,
body:not(.auth-body) .settings-actions>select{width:auto;min-width:190px;max-width:100%}
body:not(.auth-body) #templates .template-filters select,
body:not(.auth-body) #templates #templateTypeFilter{
  flex:1 1 150px;
  width:clamp(140px,12vw,190px)!important;
  min-width:140px;
}
body:not(.auth-body) .workspace-tabs{
  position:relative;
  z-index:16;
  border-radius:18px;
  overflow-x:auto;
  scrollbar-width:thin;
}
body:not(.auth-body) .workspace-tabs button{
  min-width:max-content;
  box-shadow:none;
  background:transparent;
  border-color:transparent;
}
body:not(.auth-body) .workspace-tabs button.active{
  border-color:rgba(32,137,132,.25);
  background:linear-gradient(145deg,rgba(220,248,240,.96),rgba(218,235,251,.86));
  color:#087267;
  box-shadow:0 8px 18px rgba(18,103,104,.10),inset 0 1px #fff;
}
body:not(.auth-body) .table{border-color:var(--glass-line);background:rgba(255,255,255,.65);box-shadow:0 11px 27px rgba(19,63,72,.065)}
body:not(.auth-body) th{background:rgba(228,241,241,.78);color:#365f66;backdrop-filter:blur(9px)}
body:not(.auth-body) tbody tr{transition:background .15s ease}
body:not(.auth-body) tbody tr:hover{background:rgba(219,246,238,.48)}
body:not(.auth-body) .toast{border:1px solid rgba(255,255,255,.20);background:rgba(10,52,61,.94);box-shadow:0 18px 38px rgba(4,36,44,.26);backdrop-filter:blur(16px)}
body:not(.auth-body) .page-fetching:before{
  position:fixed;top:0;left:272px;right:0;z-index:1000;height:3px;
  background:linear-gradient(90deg,transparent,#29c89c,#3989ef,#8f64dc,transparent);
  background-size:220% 100%;content:"";animation:pageLoadingStripe 1.15s linear infinite;
}
@keyframes pageLoadingStripe{to{background-position:-220% 0}}

body.auth-body{
  background:radial-gradient(circle at 16% 16%,rgba(31,165,137,.20),transparent 26rem),radial-gradient(circle at 88% 83%,rgba(56,111,224,.17),transparent 28rem),linear-gradient(145deg,#f6fbfb,#eef4f8);
}
body.auth-body .auth-card{
  border:1px solid rgba(110,151,158,.25);
  background:rgba(255,255,255,.76);
  box-shadow:0 28px 70px rgba(15,61,72,.17),inset 0 1px #fff;
  backdrop-filter:blur(22px) saturate(145%);
}
body.auth-body button{background:linear-gradient(145deg,#13a087,#087979 52%,#1766a4);box-shadow:0 13px 25px rgba(7,108,104,.27),inset 0 1px rgba(255,255,255,.32),inset 0 -3px rgba(1,57,68,.22)}

@media(max-width:980px){
  body:not(.auth-body) .report-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  body:not(.auth-body) .report-filters>button{width:100%}
  body:not(.auth-body) #templates .template-toolbar{width:100%;overflow:visible;flex-wrap:wrap}
  body:not(.auth-body) #templates .template-filters{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
  body:not(.auth-body) #templates .template-filters input{grid-column:1/-1;width:100%}
  body:not(.auth-body) #templates .template-filters select,
  body:not(.auth-body) #templates #templateTypeFilter{width:100%!important;min-width:0}
}
@media(max-width:760px){
  body:not(.auth-body) .page>.card{border-radius:16px;padding:17px}
  body:not(.auth-body) .page-fetching:before{left:88px}
  body:not(.auth-body) .report-filters{grid-template-columns:1fr}
  body:not(.auth-body) #templates .template-filters{grid-template-columns:1fr}
  body:not(.auth-body) .cardhead>select,
  body:not(.auth-body) .settings-actions>select{width:100%;min-width:0}
}

/* High-contrast workspace refinement v151 */
body:not(.auth-body){
  --glass-ink:#0b2c32;
  --glass-muted:#4d676d;
  --glass-line:rgba(70,119,128,.30);
  --glass-surface:rgba(255,255,255,.91);
  --glass-surface-strong:rgba(255,255,255,.97);
  background:
    radial-gradient(circle at 88% 4%,rgba(55,135,220,.10),transparent 29rem),
    radial-gradient(circle at 10% 91%,rgba(27,158,128,.09),transparent 32rem),
    linear-gradient(145deg,#f9fcfc 0%,#eef7f4 48%,#f1f6fb 100%);
}
body:not(.auth-body)>main>header{background:rgba(249,252,252,.93);border-bottom-color:rgba(68,115,123,.25)}
body:not(.auth-body) .page>.card,
body:not(.auth-body) .card,
body:not(.auth-body) .workspace-tabs,
body:not(.auth-body) .date-range-bar,
body:not(.auth-body) .report-filters,
body:not(.auth-body) .campaign-wizard-progress{background:rgba(255,255,255,.93);border-color:rgba(70,119,128,.27)}
body:not(.auth-body) p,
body:not(.auth-body) small,
body:not(.auth-body) .muted{color:var(--glass-muted)}
body:not(.auth-body)>aside nav>button,
body:not(.auth-body)>aside nav .nav-group-toggle,
body:not(.auth-body)>aside nav .nav-group-items>button{
  border:1px solid rgba(174,230,222,.14)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;
  color:#dff7f3!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 5px 14px rgba(0,0,0,.08)!important;
  text-shadow:0 1px 1px rgba(0,24,29,.55)!important;
}
body:not(.auth-body)>aside nav>button:hover,
body:not(.auth-body)>aside nav .nav-group-toggle:hover,
body:not(.auth-body)>aside nav .nav-group-items>button:hover{
  border-color:rgba(105,225,197,.38)!important;
  background:linear-gradient(135deg,rgba(36,177,145,.24),rgba(43,112,191,.18))!important;
  color:#fff!important;
}
body:not(.auth-body)>aside nav>button.active,
body:not(.auth-body)>aside nav>.nav-group.current>.nav-group-toggle,
body:not(.auth-body)>aside nav .nav-group-items>button.active{
  border-color:rgba(86,226,192,.52)!important;
  background:linear-gradient(135deg,rgba(15,158,126,.48),rgba(32,100,174,.36))!important;
  color:#fff!important;
  box-shadow:inset 4px 0 #57e3bc,inset 0 1px rgba(255,255,255,.18),0 10px 22px rgba(0,0,0,.17)!important;
}
body:not(.auth-body)>aside nav .nav-group-items{
  border:1px solid rgba(173,228,221,.12);
  background:rgba(1,24,31,.35);
}
body:not(.auth-body)>aside nav .nav-group-items>button{color:#c8e8e4!important}
body:not(.auth-body)>aside .account strong,
body:not(.auth-body)>aside .brand strong{color:#fff}
body:not(.auth-body)>aside .account small,
body:not(.auth-body)>aside .brand small{color:#a9cbc8}
body:not(.auth-body)>aside .brand{
  background:rgba(255,255,255,.96);
  border-color:rgba(255,255,255,.58);
  box-shadow:0 10px 24px rgba(0,18,24,.16),inset 0 1px #fff;
}
body:not(.auth-body)>aside .brand-logo{filter:none;opacity:1}

.phonebook-section-tabs{
  display:flex;gap:8px;margin:0 0 18px;padding:8px;
  overflow-x:auto;border:1px solid rgba(62,122,126,.25);border-radius:16px;
  background:rgba(255,255,255,.88);box-shadow:0 10px 26px rgba(19,62,70,.08),inset 0 1px #fff;
  scrollbar-width:thin;
}
body:not(.auth-body) .phonebook-section-tabs>button{
  flex:1 0 max-content;min-height:45px;padding:10px 20px;border-color:transparent;
  background:transparent;color:#385d63;box-shadow:none;text-shadow:none;font-weight:800;
}
body:not(.auth-body) .phonebook-section-tabs>button:hover{
  border-color:rgba(34,139,132,.22);background:rgba(222,245,239,.62);color:#075f67;
  box-shadow:none;transform:none;
}
body:not(.auth-body) .phonebook-section-tabs>button.active{
  border-color:rgba(8,119,108,.42);background:linear-gradient(145deg,#e0f7f0,#e4effb);
  color:#05675f;box-shadow:0 7px 17px rgba(12,105,103,.13),inset 0 1px #fff;
}
.phonebook-tab-panels>[data-phonebook-panel]{width:100%;margin:0}
.phonebook-tab-panels>[data-phonebook-panel][hidden]{display:none!important}
.phonebook-tab-panels .phonebook-contact-card,
.phonebook-tab-panels .phonebook-import-card,
.phonebook-tab-panels .phonebook-groups-card{max-width:none!important}
@media(max-width:700px){
  .phonebook-section-tabs{margin-inline:-2px;padding:6px}
  body:not(.auth-body) .phonebook-section-tabs>button{min-height:41px;padding:9px 14px}
}

/* Dashboard and Meta template refinement v152 */
body:not(.auth-body) ::selection{background:#0b8f82;color:#fff;text-shadow:none}
body:not(.auth-body) .dashboard-hero small{color:#9fe8d2!important}
body:not(.auth-body) .dashboard-hero h2{color:#fff!important;text-shadow:0 2px 8px rgba(0,18,19,.24);user-select:none}
body:not(.auth-body) .dashboard-hero p{color:#d6eee7!important;opacity:1;font-weight:650}
body:not(.auth-body) .dashboard-quick-actions button{
  border-color:rgba(255,255,255,.34)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(223,242,239,.88))!important;
  color:#143b41!important;text-shadow:none!important;
  box-shadow:0 10px 22px rgba(0,28,28,.18),inset 0 1px #fff!important;
}
body:not(.auth-body) .dashboard-quick-actions button:hover{background:#fff!important;color:#075f67!important}
.template-special-options{margin:18px 0;padding:18px;border:1px solid #b9ded4;border-radius:16px;background:linear-gradient(145deg,#f2fbf8,#eef6fb)}
.template-special-options[hidden],.template-special-options [hidden],#templates [hidden]{display:none!important}
.template-special-options .cardhead{margin-bottom:14px}
.template-special-options .cardhead>div{display:flex;flex-direction:column;gap:4px}
.template-special-options .cardhead small{font-size:10px}
.template-check{display:flex!important;align-items:center;gap:10px;margin:14px 0 0!important;padding:12px 14px;border:1px solid #c9e5dd;border-radius:12px;background:rgba(255,255,255,.78)}
.template-check input{width:18px!important;height:18px;min-height:0;margin:0;accent-color:#08796f}
.template-check span{font-weight:750;color:#244b51}
@media(max-width:700px){.template-special-options{padding:14px}.template-check{align-items:flex-start}}

/* Workspace flow, action visibility and hero contrast v153 */
body:not(.auth-body) .workspace-tabs{
  position:relative;
  top:auto!important;
  inset-block-start:auto!important;
  z-index:16;
  clear:both;
  margin:0 0 20px;
}
body:not(.auth-body) .page.active{
  position:relative;
  z-index:1;
  clear:both;
}

body:not(.auth-body) .phonebook-hero small{color:#a9ead6!important}
body:not(.auth-body) .phonebook-hero h2{color:#fff!important;text-shadow:0 2px 8px rgba(0,20,18,.24)}
body:not(.auth-body) .phonebook-hero p{color:#d8eee7!important;opacity:1;font-weight:650}
body:not(.auth-body) .provider-hero small{color:#b9ddff!important}
body:not(.auth-body) .provider-hero h2{color:#fff!important;text-shadow:0 2px 9px rgba(0,20,55,.30)}
body:not(.auth-body) .provider-hero p{color:#e1f0ff!important;opacity:1;font-weight:650}

/* Campaign hero contrast: keep text readable on the green banner */
body:not(.auth-body) .campaign-hero small{color:#b8ead8!important;text-shadow:0 1px 2px rgba(0,20,16,.28)}
body:not(.auth-body) .campaign-hero h2{color:#fff!important;text-shadow:0 2px 9px rgba(0,20,16,.34)}
body:not(.auth-body) .campaign-hero p{color:#e1f3ec!important;opacity:1;font-weight:650}
body:not(.auth-body) .campaign-limit strong{color:#fff!important}
body:not(.auth-body) .campaign-limit span{color:#e0f1eb!important}

body:not(.auth-body) #templates .template-page-head{
  display:grid;
  grid-template-columns:minmax(230px,.72fr) minmax(620px,1.45fr);
  align-items:start;
  gap:20px;
}
body:not(.auth-body) #templates .template-page-head>div:first-child{min-width:0;padding-top:4px}
body:not(.auth-body) #templates .template-toolbar{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  overflow:visible;
}
body:not(.auth-body) #templates #openNewTemplate{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  order:0;
  min-width:176px;
  min-height:46px;
  visibility:visible!important;
  opacity:1!important;
  position:relative;
  z-index:3;
  white-space:nowrap;
}
body:not(.auth-body) #templates .template-filters{
  display:grid;
  grid-template-columns:minmax(210px,1.45fr) repeat(3,minmax(128px,.8fr));
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
}
body:not(.auth-body) #templates .template-filters input,
body:not(.auth-body) #templates .template-filters select,
body:not(.auth-body) #templates #templateTypeFilter{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

body:not(.auth-body) #library>.card>.cardhead{
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
body:not(.auth-body) #library>.card>.cardhead>div{min-width:min(100%,420px);flex:1 1 420px}
body:not(.auth-body) #library .library-upload{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:44px;
  visibility:visible!important;
  opacity:1!important;
}

@media(max-width:1240px){
  body:not(.auth-body) #templates .template-page-head{grid-template-columns:1fr}
  body:not(.auth-body) #templates .template-toolbar{grid-template-columns:max-content minmax(0,1fr)}
}
@media(max-width:980px){
  body:not(.auth-body) #templates .template-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:not(.auth-body) #templates .template-filters input{grid-column:1/-1}
}
@media(max-width:700px){
  body:not(.auth-body) .workspace-tabs{margin-bottom:14px}
  body:not(.auth-body) #templates .template-toolbar{grid-template-columns:1fr}
  body:not(.auth-body) #templates #openNewTemplate{width:100%}
  body:not(.auth-body) #templates .template-filters{grid-template-columns:1fr}
  body:not(.auth-body) #templates .template-filters input{grid-column:auto}
  body:not(.auth-body) #library .library-upload{width:100%}
}
/* Chatbot flow studio visual polish */
.flow-builder{border:1px solid #dce7e3;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 12px 30px rgba(19,55,42,.08)}
.flow-palette{background:#fff!important;color:#53665d!important;padding:16px 12px!important}
.flow-palette strong{color:#345247!important;font-size:11px!important;letter-spacing:.14em;text-transform:uppercase}
.flow-palette-item{border:1px solid transparent!important;border-radius:9px!important;background:#fff!important;padding:9px!important;transition:background .15s,border-color .15s,transform .15s}
.flow-palette-item:hover{background:#f1f8f5!important;border-color:#cce4da!important;transform:translateX(2px)}
.flow-canvas-viewport{background-color:#fbfdff!important;background-image:linear-gradient(#e9eff5 1px,transparent 1px),linear-gradient(90deg,#e9eff5 1px,transparent 1px)!important;background-size:22px 22px!important}
.flow-canvas{align-items:flex-start!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(270px,360px));justify-content:center;align-content:start;gap:42px 72px!important;padding:72px 50px 150px!important;transform:none!important}
.flow-node{width:100%!important;min-height:120px;border:1px solid #d4e4de!important;border-top:3px solid #178a67!important;border-radius:12px!important;box-shadow:0 8px 22px rgba(37,74,59,.12)!important;background:#fff!important}
.flow-node>header{padding:12px 13px!important;background:#fff!important}.flow-node>header>div>strong{font-size:13px!important;color:#243f35!important}.flow-node>header>div>small{font-size:10px!important;color:#8b9791!important}
.flow-node-fields,.flow-connections{padding:12px 14px!important}.flow-connections{background:#fbfdfc!important}.flow-node:not(:last-child):after,.flow-node:not(:last-child):before{display:none!important}.flow-number{width:30px!important;height:30px!important;font-size:11px!important}.flow-node-toggle,.flow-node .remove-flow-node{border-radius:8px!important}
.knowledge-chatbot-panel{background:linear-gradient(145deg,#f9fbff 0%,#f4fbf7 100%)!important}.knowledge-chatbot-head h3{font-size:21px!important}.knowledge-chatbot-head p{max-width:680px;font-size:11px!important;line-height:1.6}.knowledge-toggle{padding:9px 13px;border:1px solid #cfe2d9;border-radius:999px;background:#fff;box-shadow:0 3px 12px rgba(35,78,61,.07)}.knowledge-steps{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px}.knowledge-steps span{padding:6px 10px;border:1px solid #dfe8e4;border-radius:999px;background:#fff;color:#74827c;font-size:9px;font-weight:800}.knowledge-steps span.active{border-color:#9ad1bb;background:#e9f8f1;color:#087753}.knowledge-status{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}.knowledge-status strong{color:#087753;font-size:11px}.knowledge-status span{padding:4px 7px;border-radius:6px;background:#fff}.knowledge-workbench{display:grid;grid-template-columns:1.25fr .75fr;gap:13px;margin-top:13px}.knowledge-test,.knowledge-advanced{padding:15px;border:1px solid #dce6e2;border-radius:11px;background:#fff}.knowledge-test>strong{font-size:12px;color:#2c2850}.knowledge-test>p{margin:4px 0 11px;color:var(--muted);font-size:9px}.knowledge-test>div:first-of-type{display:flex;gap:8px}.knowledge-test input{flex:1}.knowledge-test-result{min-height:76px;margin-top:11px;padding:12px;border:1px dashed #d9e1de;border-radius:8px;background:#fafcfb;color:#66736e;font-size:10px;line-height:1.55}.knowledge-test-result small{display:block;margin-bottom:6px;color:#087753;font-weight:900;text-transform:uppercase}.knowledge-test-result.found{border-color:#9fd5bf;background:#f2fbf7;color:#30463e}.knowledge-test-result.not-found{border-color:#e8cba9;background:#fffaf4}.knowledge-advanced summary{cursor:pointer;color:#2c2850;font-size:11px;font-weight:800}.knowledge-advanced .knowledge-message-grid{grid-template-columns:1fr}.knowledge-advanced textarea{min-height:62px}@media(max-width:850px){.knowledge-workbench{grid-template-columns:1fr}.knowledge-test>div:first-of-type{flex-direction:column}}
.flow-option-routes{display:flex;flex-direction:column;gap:7px}.flow-option-routes>strong{display:block;margin-bottom:2px;color:#536b61;font-size:10px;text-transform:uppercase;letter-spacing:.12em}.flow-route-row{display:grid!important;grid-template-columns:minmax(0,1fr) 12px!important;align-items:center;gap:8px!important;padding:7px 9px!important;border:1px solid #e0ebe6!important;border-radius:7px!important;background:#f8fcfa!important;font-size:10px!important;font-weight:600!important;color:#3c584c!important}.flow-route-row:after{content:"";grid-column:2;width:8px;height:8px;border:2px solid #4f9e7e;border-radius:50%;background:#fff}.flow-route-row select{grid-column:1/-1!important;margin-top:2px!important;padding:6px 7px!important;font-size:10px!important}
@media(max-width:980px){.flow-canvas{grid-template-columns:repeat(2,minmax(250px,1fr));padding:48px 24px 120px!important;gap:28px!important}}@media(max-width:680px){.flow-builder{grid-template-columns:1fr!important}.flow-palette{max-height:300px;overflow:auto;border-right:0!important;border-bottom:1px solid #e0e8e4}.flow-canvas{grid-template-columns:1fr;padding:30px 16px 90px!important}.flow-node{max-width:none}}
.flow-route-port{grid-column:1/-1!important;width:100%;margin-top:2px;padding:7px 9px!important;border:1px dashed #62a88c!important;border-radius:7px!important;background:#effaf5!important;color:#087753!important;font-size:10px!important;font-weight:700!important;text-align:left;cursor:grab}.flow-route-port:hover{background:#dff5eb!important;border-color:#087753!important}.flow-route-port:active{cursor:grabbing}.flow-route-hint{display:block;margin-top:4px;color:#82948c;font-size:9px;line-height:1.35}.flow-route-row:after{display:none!important}

/* Unified control-room interface v154 */
:root{--g:#0b8f7a;--dark:#122b35;--muted:#5d7079;--line:#d7e2e4;--bg:#f2f6f7;--ui-navy:#102f46;--ui-teal:#0b8f7a;--ui-cyan:#1b78a6;--ui-coral:#ef6b5b;--ui-surface:#fff;--ui-soft:#f7fafb;--ui-shadow:0 14px 38px rgba(18,53,68,.09)}
html{scrollbar-color:#9ab8ba #edf3f3;scrollbar-width:thin}body{font-size:14px;line-height:1.55}body:not(.auth-body){background-color:#f2f6f7;background-image:linear-gradient(rgba(19,72,83,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(19,72,83,.025) 1px,transparent 1px),radial-gradient(circle at 82% 3%,rgba(38,148,178,.10),transparent 28rem),radial-gradient(circle at 7% 92%,rgba(15,151,119,.08),transparent 30rem);background-size:28px 28px,28px 28px,auto,auto;color:var(--dark)}
body:not(.auth-body)>aside{width:268px;padding:18px 15px;background:linear-gradient(180deg,#0b2636 0%,#0d3543 52%,#102e42 100%);border-right:1px solid rgba(192,232,231,.16);box-shadow:12px 0 34px rgba(13,39,52,.14)}
body:not(.auth-body)>aside .brand{min-height:70px;padding:12px 14px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:#fff;box-shadow:0 10px 24px rgba(0,18,29,.18)}body:not(.auth-body)>aside .brand-logo{width:100%;max-width:190px;height:auto;max-height:50px;object-fit:contain}
body:not(.auth-body)>aside .account{margin:13px 0 15px;padding:11px 12px;border:1px solid rgba(133,215,202,.18);border-radius:13px;background:rgba(255,255,255,.075);box-shadow:none}body:not(.auth-body)>aside .account>span{background:linear-gradient(145deg,#18ad8c,#147da1);box-shadow:0 5px 13px rgba(3,25,35,.25)}
body:not(.auth-body)>aside nav{gap:5px;padding:3px 0 25px}body:not(.auth-body)>aside nav>button,body:not(.auth-body)>aside nav .nav-group-toggle,body:not(.auth-body)>aside nav .nav-group-items>button{min-height:42px!important;padding:9px 12px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#cce1e5!important;box-shadow:none!important;font-size:11px!important;font-weight:700!important;text-shadow:none!important}body:not(.auth-body)>aside nav>button:hover,body:not(.auth-body)>aside nav .nav-group-toggle:hover,body:not(.auth-body)>aside nav .nav-group-items>button:hover{transform:none;background:rgba(255,255,255,.075)!important;color:#fff!important}body:not(.auth-body)>aside nav>button.active,body:not(.auth-body)>aside nav>.nav-group.current>.nav-group-toggle,body:not(.auth-body)>aside nav .nav-group-items>button.active{border-color:rgba(95,224,195,.22)!important;background:linear-gradient(100deg,rgba(26,174,140,.30),rgba(29,119,163,.22))!important;color:#fff!important;box-shadow:inset 3px 0 #52d6b4!important}
body:not(.auth-body)>main{margin-left:268px;width:calc(100% - 268px);max-width:none;padding:102px 28px 36px}body:not(.auth-body)>main>header{position:fixed;z-index:90;top:0;right:0;left:268px;min-height:78px;margin:0;padding:13px 28px;border-bottom:1px solid rgba(104,139,146,.22);background:rgba(248,251,252,.94);box-shadow:0 7px 24px rgba(17,53,67,.07);backdrop-filter:blur(18px)}body:not(.auth-body)>main>header h1{margin:3px 0 0;font-size:23px;font-weight:830}body:not(.auth-body)>main>header small{color:#0c806f;font-size:8px;letter-spacing:.14em}
body:not(.auth-body) .header-refresh,body:not(.auth-body) .user-menu-toggle{min-height:40px!important;border-color:#cbdadd!important;background:#fff!important;box-shadow:0 5px 14px rgba(18,53,68,.07)!important}.sync-state{padding:5px 9px;border:1px solid #cee1de;border-radius:999px;background:#edf8f5;color:#15725f!important;font-weight:750}
body:not(.auth-body) .workspace-tabs{top:auto;margin:0 0 17px;padding:8px 10px;border-color:#d1dfe1;border-radius:14px;background:#fff;box-shadow:0 8px 25px rgba(17,53,67,.07);backdrop-filter:none}body:not(.auth-body) .workspace-tabs button{min-height:38px;border-radius:9px!important;background:transparent!important;box-shadow:none!important}body:not(.auth-body) .workspace-tabs button.active{background:#eaf7f4!important;color:#08715f!important;box-shadow:inset 0 0 0 1px #c2e3da!important}
body:not(.auth-body) .page>.card,body:not(.auth-body) .card,body:not(.auth-body) .date-range-bar,body:not(.auth-body) .report-filters,body:not(.auth-body) .campaign-wizard-progress{border:1px solid #d6e2e4;background:#fff;box-shadow:var(--ui-shadow);backdrop-filter:none}body:not(.auth-body) .page>.card{border-radius:17px;padding:22px}body:not(.auth-body) .cardhead{gap:18px}body:not(.auth-body) .cardhead h2{margin-bottom:4px;font-size:17px}body:not(.auth-body) .cardhead p{margin:0;font-size:10px}
body:not(.auth-body) .dashboard-hero{border-color:#164f61;background:radial-gradient(circle at 88% 14%,rgba(56,199,166,.28),transparent 28%),linear-gradient(130deg,#102f46 0%,#0b5660 58%,#116f72 100%);box-shadow:0 18px 38px rgba(12,63,75,.18)}body:not(.auth-body) .dashboard-hero h2{font-size:29px}body:not(.auth-body) .dashboard-quick-actions button{border-color:rgba(255,255,255,.20)!important;background:rgba(255,255,255,.10)!important;color:#fff!important;box-shadow:none!important}body:not(.auth-body) .dashboard-quick-actions button:hover{background:rgba(255,255,255,.17)!important}
body:not(.auth-body) .stats{gap:14px}body:not(.auth-body) .stats>article{position:relative;overflow:hidden;padding:20px;border:1px solid #d7e3e5;border-radius:15px;background:#fff;box-shadow:0 10px 27px rgba(16,53,66,.07);backdrop-filter:none}body:not(.auth-body) .stats>article:before{position:absolute;inset:0 auto 0 0;width:4px;content:"";background:var(--ui-teal)}body:not(.auth-body) .stats>article:nth-child(2):before{background:var(--ui-cyan)}body:not(.auth-body) .stats>article:nth-child(3):before{background:#5f70c8}body:not(.auth-body) .stats>article:nth-child(4):before{background:#c75b8c}body:not(.auth-body) .stats span{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.07em}body:not(.auth-body) .stats strong{font-size:27px;color:#173746}
body:not(.auth-body) button,body:not(.auth-body) .button-link,body:not(.auth-body) input[type="button"],body:not(.auth-body) input[type="submit"]{min-height:39px;border:1px solid #cbdadd;background:#fff;color:#244752;box-shadow:0 4px 12px rgba(19,56,69,.06);text-shadow:none;font-weight:720}body:not(.auth-body) button:hover:not(:disabled),body:not(.auth-body) .button-link:hover{transform:translateY(-1px);border-color:#7dbbb1;background:#f4fbf9;box-shadow:0 8px 18px rgba(17,75,79,.10)}body:not(.auth-body) button.primary,body:not(.auth-body) .button-link.primary,body:not(.auth-body) input.primary{border-color:#075f69;background:linear-gradient(135deg,#087567,#075f75);color:#fff;box-shadow:0 8px 18px rgba(5,95,105,.22);text-shadow:none}body:not(.auth-body) button.danger,body:not(.auth-body) .button-link.danger{border-color:#edc0bc;background:#fff5f3;color:#bd4137}
body:not(.auth-body) input,body:not(.auth-body) textarea,body:not(.auth-body) select{min-height:41px;border:1px solid #cddbdd;border-radius:9px;background:#fff;color:#17323c;box-shadow:inset 0 1px 2px rgba(16,50,62,.035);backdrop-filter:none}body:not(.auth-body) input:focus,body:not(.auth-body) textarea:focus,body:not(.auth-body) select:focus{border-color:#178f80;box-shadow:0 0 0 3px rgba(20,150,128,.13)}body:not(.auth-body) label{color:#34505a}
body:not(.auth-body) .table{border:1px solid #d9e3e5;border-radius:13px;background:#fff;box-shadow:none}body:not(.auth-body) th{padding:12px;background:#edf4f5;color:#365761;font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;backdrop-filter:none}body:not(.auth-body) td{padding:12px 10px;color:#29434c}body:not(.auth-body) tbody tr:nth-child(even){background:#fbfcfd}body:not(.auth-body) tbody tr:hover{background:#edf8f5}
body:not(.auth-body) .banner{border:1px solid #d4e1e3;background:#fff;box-shadow:0 7px 20px rgba(17,53,67,.06)}body:not(.auth-body) .banner.ok{border-color:#b4dfd2;background:#edf9f5;color:#096b55}body:not(.auth-body) .banner.bad{border-color:#efc5bd;background:#fff3f0;color:#a33e32}body:not(.auth-body) .status-badge,body:not(.auth-body) .live-dot{border:1px solid #cfe0dd;background:#eef7f5;color:#176a5b}
body:not(.auth-body) .chat-panel{background-color:#e9efed;background-image:radial-gradient(rgba(27,75,68,.11) .7px,transparent .7px);background-size:13px 13px}body:not(.auth-body) .chat-thread{background-color:transparent;background-image:none}body:not(.auth-body) .chat-bubble{border:1px solid #dce5e3;box-shadow:0 2px 8px rgba(26,56,50,.08)}body:not(.auth-body) .outgoing .chat-bubble{border-color:#bfe1d3;background:#dff6eb}
body:not(.auth-body) .flow-workspace{background-color:#f7fafb;background-image:linear-gradient(#e6eef0 1px,transparent 1px),linear-gradient(90deg,#e6eef0 1px,transparent 1px)}body:not(.auth-body) .flow-node{border-color:#cfe0dc!important;border-top-color:#0d9277!important;box-shadow:0 9px 24px rgba(20,58,50,.10)!important}
body:not(.auth-body) #notice{z-index:120}.toast{border-radius:11px!important;background:#102f3b!important;box-shadow:0 15px 35px rgba(6,37,48,.25)!important}
body.auth-body{background-color:#edf4f5;background-image:linear-gradient(rgba(21,75,84,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(21,75,84,.03) 1px,transparent 1px),radial-gradient(circle at 20% 15%,rgba(22,161,132,.16),transparent 25rem),radial-gradient(circle at 85% 85%,rgba(31,112,166,.13),transparent 28rem);background-size:28px 28px,28px 28px,auto,auto}.auth-card{border-color:#d4e1e3!important;border-radius:20px!important;background:#fff!important;box-shadow:0 24px 60px rgba(15,52,65,.14)!important;backdrop-filter:none!important}.auth-card input{min-height:44px;border-color:#cbdadd}.auth-card button{min-height:44px;border:0;background:linear-gradient(135deg,#087567,#075f75);color:#fff}
@media(max-width:1100px){body:not(.auth-body)>aside{width:238px}body:not(.auth-body)>main{margin-left:238px;width:calc(100% - 238px)}body:not(.auth-body)>main>header{left:238px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){body:not(.auth-body)>aside{width:76px;padding:13px 8px}body:not(.auth-body)>aside .brand{min-height:54px;padding:8px}body:not(.auth-body)>aside .brand-logo{max-height:38px}body:not(.auth-body)>aside .account{padding:8px}body:not(.auth-body)>main{margin-left:76px;width:calc(100% - 76px);padding:88px 12px 24px}body:not(.auth-body)>main>header{left:76px;min-height:70px;padding:10px 12px}body:not(.auth-body)>main>header h1{font-size:19px}.header-actions{gap:5px}.header-actions .sync-state{display:none}.header-refresh{font-size:0}.header-refresh span{font-size:16px}body:not(.auth-body) .page>.card{padding:16px;border-radius:14px}.stats{grid-template-columns:1fr 1fr}.dashboard-hero{padding:20px!important}.dashboard-hero h2{font-size:23px!important}.cardhead{align-items:flex-start;flex-direction:column}.cardhead>button,.cardhead>select{width:100%!important}.knowledge-url-row{grid-template-columns:1fr!important}.knowledge-url-row button{width:100%}}
@media(max-width:480px){body:not(.auth-body)>main{padding-left:9px;padding-right:9px}.stats{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.dashboard-quick-actions{grid-template-columns:1fr!important}.knowledge-test>div:first-of-type{flex-direction:column}.knowledge-test button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Brand polish and tactile controls v155 */
body:not(.auth-body){background-image:linear-gradient(rgba(14,67,82,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(14,67,82,.032) 1px,transparent 1px),radial-gradient(circle at 86% 4%,rgba(49,114,214,.12),transparent 29rem),radial-gradient(circle at 8% 90%,rgba(10,151,118,.10),transparent 31rem);background-color:#f1f6f8}
body:not(.auth-body)>aside{background:radial-gradient(circle at 25% 2%,rgba(22,172,145,.19),transparent 15rem),linear-gradient(180deg,#08283a 0%,#0a3a49 54%,#0b3045 100%)}
body:not(.auth-body)>aside .brand{height:86px;min-height:86px;padding:8px 13px;overflow:hidden;background:linear-gradient(155deg,#fff,#f7fbfc);border-color:rgba(255,255,255,.72);box-shadow:0 12px 26px rgba(0,19,30,.23),inset 0 1px #fff}
body:not(.auth-body)>aside .brand-logo{display:block;width:100%;max-width:none;height:68px;max-height:none;object-fit:cover;object-position:50% 51%;filter:contrast(1.07) saturate(1.08)}
body:not(.auth-body)>main>header{background:linear-gradient(100deg,rgba(249,252,253,.97),rgba(242,249,250,.94));box-shadow:0 8px 25px rgba(13,49,65,.085)}
body:not(.auth-body) .page>.card{border-top:3px solid #4d69d8}body:not(.auth-body) .page>.card:nth-of-type(3n+2){border-top-color:#0b9b80}body:not(.auth-body) .page>.card:nth-of-type(3n){border-top-color:#2684aa}
body:not(.auth-body) .banner,body:not(.auth-body) .date-range-bar,body:not(.auth-body) .workspace-tabs{background:linear-gradient(160deg,#fff,#f8fbfc)}
body:not(.auth-body) button,body:not(.auth-body) .button-link,body:not(.auth-body) input[type="button"],body:not(.auth-body) input[type="submit"]{position:relative;border:1px solid #c6d6da;border-bottom-width:3px;border-bottom-color:#aebfc4;border-radius:10px;background:linear-gradient(180deg,#fff 0%,#f7fafb 62%,#eaf1f3 100%);box-shadow:0 6px 0 rgba(38,74,86,.055),0 10px 18px rgba(19,54,67,.09),inset 0 1px 0 #fff;color:#224754;transition:transform .13s ease,box-shadow .13s ease,border-color .13s ease,filter .13s ease}
body:not(.auth-body) button:hover:not(:disabled),body:not(.auth-body) .button-link:hover{transform:translateY(-2px);border-color:#80b8b1;border-bottom-color:#4e978d;background:linear-gradient(180deg,#fff,#f1faf8);box-shadow:0 8px 0 rgba(34,112,102,.07),0 14px 24px rgba(15,72,77,.13),inset 0 1px #fff;filter:none}
body:not(.auth-body) button:active:not(:disabled),body:not(.auth-body) .button-link:active{transform:translateY(2px);border-bottom-width:1px;box-shadow:0 2px 4px rgba(17,54,66,.13),inset 0 2px 4px rgba(20,65,76,.08)}
body:not(.auth-body) button.primary,body:not(.auth-body) .button-link.primary,body:not(.auth-body) input.primary{border-color:#075d69;border-bottom-color:#03434e;background:linear-gradient(155deg,#11967d 0%,#087265 46%,#07566f 100%);box-shadow:0 6px 0 #06454e,0 12px 22px rgba(4,82,88,.22),inset 0 1px rgba(255,255,255,.30);color:#fff}
body:not(.auth-body) button.primary:hover:not(:disabled),body:not(.auth-body) .button-link.primary:hover{border-color:#086d74;border-bottom-color:#033f4a;background:linear-gradient(155deg,#14a88b,#08776c 48%,#075b78);box-shadow:0 8px 0 #06454e,0 16px 27px rgba(4,82,88,.27),inset 0 1px rgba(255,255,255,.34)}
body:not(.auth-body) button.primary:active:not(:disabled),body:not(.auth-body) .button-link.primary:active{box-shadow:0 2px 0 #063e47,0 5px 9px rgba(4,70,77,.20),inset 0 2px 5px rgba(0,31,39,.20)}
body:not(.auth-body) button.danger,body:not(.auth-body) .button-link.danger{border-color:#efbbb5;border-bottom-color:#d7867e;background:linear-gradient(180deg,#fff8f7,#ffe9e6);box-shadow:0 5px 0 rgba(174,64,54,.09),0 9px 16px rgba(152,53,45,.08);color:#b83c32}
body:not(.auth-body)>aside nav button,body:not(.auth-body) .workspace-tabs button,body:not(.auth-body) .phonebook-section-tabs>button{border-bottom-width:1px;box-shadow:none}
body:not(.auth-body) .header-refresh,body:not(.auth-body) .user-menu-toggle{border-bottom-width:3px!important;box-shadow:0 5px 0 rgba(29,65,78,.06),0 9px 16px rgba(18,53,67,.08)!important}
body:not(.auth-body) .stats>article{background:linear-gradient(145deg,#fff,#f8fbfc);box-shadow:0 11px 28px rgba(12,54,69,.085)}
body:not(.auth-body) input,body:not(.auth-body) textarea,body:not(.auth-body) select{background-color:#fcfefe;border-color:#c8d9dc;box-shadow:inset 0 2px 4px rgba(21,60,72,.045),0 1px #fff}
body.auth-body .brand{height:105px;overflow:hidden}body.auth-body .brand-logo{width:100%;height:92px;max-height:none;object-fit:cover;object-position:50% 51%}
body.auth-body button{border-bottom:4px solid #043f49;background:linear-gradient(155deg,#11967d,#087265 48%,#07566f);box-shadow:0 6px 0 #043f49,0 13px 23px rgba(4,75,82,.22)}body.auth-body button:active{transform:translateY(3px);border-bottom-width:1px;box-shadow:0 2px 0 #043f49,0 5px 9px rgba(4,75,82,.18)}
@media(max-width:760px){body:not(.auth-body)>aside .brand{height:58px;min-height:58px;padding:5px}body:not(.auth-body)>aside .brand-logo{height:48px;object-fit:cover;object-position:50% 51%}}

/* Optical logo alignment v156 */
body:not(.auth-body)>aside .brand{display:flex;align-items:center;justify-content:center;height:92px;min-height:92px;padding:7px 12px}
body:not(.auth-body)>aside .brand-logo{width:96%;height:76px;margin:auto;object-fit:cover;object-position:50% 24%;filter:contrast(1.05) saturate(1.04)}
body.auth-body .brand{display:flex;align-items:center;justify-content:center;height:112px;padding:8px 18px}body.auth-body .brand-logo{width:96%;height:96px;margin:auto;object-position:50% 24%}
@media(max-width:760px){body:not(.auth-body)>aside .brand{height:58px;min-height:58px;padding:5px 4px}body:not(.auth-body)>aside .brand-logo{width:100%;height:48px;object-position:18% 24%}}

/* Multi-source knowledge documents v157 */
.knowledge-documents{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;align-items:center;margin-top:14px;padding:16px;border:1px solid #d3e2e3;border-radius:12px;background:linear-gradient(145deg,#fff,#f6fafb);box-shadow:0 8px 22px rgba(16,53,66,.06)}.knowledge-documents>div:first-child strong{font-size:12px;color:#173746}.knowledge-documents>div:first-child p{margin:4px 0 0;font-size:9px}.knowledge-document-upload{display:inline-flex!important;align-items:center;justify-content:center;min-height:41px;margin:0!important;padding:9px 13px;border:1px solid #075d69;border-bottom:3px solid #03434e;border-radius:10px;background:linear-gradient(155deg,#11967d,#087265 48%,#07566f);box-shadow:0 5px 0 #06454e,0 10px 18px rgba(4,82,88,.20);color:#fff!important;font-size:10px;font-weight:800;cursor:pointer}.knowledge-document-upload:hover{transform:translateY(-1px)}.knowledge-document-upload input{display:none}.knowledge-document-state{grid-column:1/-1;color:#567078;font-size:9px}.knowledge-document-list{grid-column:1/-1;display:grid;gap:7px}.knowledge-document-list>span{padding:10px;border:1px dashed #d6e1e3;border-radius:8px;color:#718188;font-size:9px}.knowledge-document-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #dbe5e6;border-radius:9px;background:#fafdfe}.knowledge-document-list article>div{min-width:0}.knowledge-document-list article strong,.knowledge-document-list article small{display:block}.knowledge-document-list article strong{overflow:hidden;color:#24444e;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.knowledge-document-list article small{margin-top:3px;color:#708087;font-size:8px}.knowledge-document-list article button{flex:none;min-height:32px!important}.knowledge-test-result div{overflow-wrap:anywhere}@media(max-width:700px){.knowledge-documents{grid-template-columns:1fr}.knowledge-document-upload{width:100%}.knowledge-document-list article{align-items:flex-start;flex-direction:column}.knowledge-document-list article button{width:100%}}

/* Saved knowledge summary v158 */
.knowledge-summary-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 18px;align-items:center;margin:14px 22px;padding:18px;border:1px solid #cfdfe1;border-left:4px solid #526bd6;border-radius:13px;background:linear-gradient(140deg,#fff,#f4f7ff 58%,#f0faf7);box-shadow:0 10px 26px rgba(17,53,67,.07)}.knowledge-summary-panel>div:first-child{display:flex;flex-direction:column;gap:4px}.knowledge-summary-panel>div:first-child span{color:#5265bd;font-size:8px;font-weight:900;letter-spacing:.13em}.knowledge-summary-panel>div:first-child strong{color:#193945;font-size:14px}.knowledge-summary-panel>div:first-child p{max-width:800px;margin:0;font-size:9px}.knowledge-summary-preview{grid-column:1/-1;padding:13px;border:1px solid #dce5e8;border-radius:10px;background:#fff;color:#405961;font-size:10px;line-height:1.6}.knowledge-summary-preview>small{display:block;margin-bottom:6px;color:#16806b;font-size:8px;font-weight:850;text-transform:uppercase}.knowledge-summary-preview details{margin-top:10px;padding-top:9px;border-top:1px solid #e2e9eb}.knowledge-summary-preview summary{cursor:pointer;color:#3d59b0;font-weight:800}.knowledge-summary-preview details p{max-height:320px;overflow:auto;margin:9px 0;padding:10px;border-radius:8px;background:#f7fafb;white-space:normal}.knowledge-summary-preview details small{color:#6a7980}@media(max-width:700px){.knowledge-summary-panel{grid-template-columns:1fr;margin:12px}.knowledge-summary-panel>button{width:100%}}

/* Report period controls v160: selected state must override the global 3D theme. */
body:not(.auth-body) #reportDateRanges button.active,
body:not(.auth-body) #dashboardDateRanges button.active{border-color:#057453!important;border-bottom-color:#034f3a!important;background:linear-gradient(155deg,#13a77d,#07865f 58%,#056d52)!important;color:#fff!important;box-shadow:0 5px 0 #045a43,0 10px 18px rgba(7,134,95,.20),inset 0 1px rgba(255,255,255,.30)!important}

/* Simple keyword chatbot mode v176 */
.flow-generator-panel,.knowledge-chatbot-panel,.knowledge-summary-panel{display:none!important}.chatbot-studio .flow-palette-meta span{font-size:0}.chatbot-studio .flow-palette-meta span:after{content:"CLICK TO ADD";font-size:8px}.chatbot-studio .flow-canvas-toolbar>span{font-size:0}.chatbot-studio .flow-canvas-toolbar>span:after{content:"Connect nodes using the round bullet points";font-size:9px}
/* Inbox collaboration: tenant-scoped tags and internal notes. */
.chat-body{display:flex;min-height:0;flex:1}.chat-body>.chat-thread{min-width:0;flex:1}.chat-details{display:none;width:310px;max-width:45%;overflow:auto;border-left:1px solid var(--line);background:#fff}.chat-details.open{display:block}.chat-details>header{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--line)}.chat-details>section{padding:14px;border-bottom:1px solid var(--line)}.chat-details>section>strong{display:block;margin-bottom:10px}.chat-detail-add{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:9px}.chat-detail-add input,.chat-details textarea{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px}.chat-details textarea{min-height:80px;margin-bottom:7px;resize:vertical}.chat-tag-list{display:flex;flex-wrap:wrap;gap:6px}.chat-tag{padding:6px 9px!important;border-radius:16px!important;background:#e9f7f0!important;color:#08724b!important}.chat-tag span{margin-left:3px}.chat-note-list{display:grid;gap:8px;margin-top:12px}.chat-note-list article{padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8faf9}.chat-note-list p{margin:0 0 7px!important;white-space:pre-wrap;overflow-wrap:anywhere}.chat-note-list small{color:var(--muted)}.chat-note-list button{float:right;padding:3px 6px;font-size:8px}@media(max-width:850px){.chat-details{position:absolute;z-index:5;inset:66px 0 0 auto;width:min(88%,340px);max-width:none;box-shadow:-12px 0 30px #14251d24}}
.chat-list-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 12px 10px}.chat-list-filters .chat-unread-toggle,.chat-list-filters select{width:100%;min-width:0;margin:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#f8fbfa;font-size:9px}.chat-contact-copy em{display:block;margin-top:5px;color:#708078;font-size:8px;font-style:normal}.chat-sla-badge{padding:6px 8px;border-radius:14px;background:#eef3f1;color:#53625c;font-size:8px;font-weight:800;white-space:nowrap}.chat-sla-badge.waiting{background:#fff2d8;color:#8b5d00}.chat-sla-badge.overdue{background:#ffe5e2;color:#ad3028}.chat-sla-badge.responded{background:#e5f7ee;color:#08724b}.chat-details select{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff}.chat-agent-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0}.chat-assignment-state{display:block;color:var(--muted)}
.chat-assignment-state,#chatAssignmentState{display:block;color:var(--muted)}
.chat-activity-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-activity-head>strong{margin:0!important}.chat-activity-report{margin-top:10px;overflow:auto}.chat-activity-table{min-width:270px;border:1px solid var(--line);border-radius:8px;overflow:hidden}.chat-activity-table>div{display:grid;grid-template-columns:minmax(90px,1.4fr) repeat(3,minmax(48px,.6fr));gap:6px;padding:8px;border-top:1px solid var(--line);font-size:8px}.chat-activity-table>div:first-child{border-top:0;background:#eef5f2}.chat-activity-table span:not(:first-child),.chat-activity-table b:not(:first-child){text-align:right}
.flow-import-button{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;font-size:9px;font-weight:800}.flow-import-button input{display:none}.chatbot-lifecycle-panel{position:relative;margin:14px 0;padding:18px;border:1px solid #cfe0d8;border-radius:12px;background:#f8fbfa}.chatbot-lifecycle-panel[hidden]{display:none}.chatbot-lifecycle-panel h3{margin:0 90px 5px 0}.chatbot-lifecycle-panel p{color:var(--muted)}.chatbot-lifecycle-close{position:absolute;top:12px;right:12px}.chatbot-version-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:12px}.chatbot-version-list button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}.chatbot-version-list small{color:var(--muted)}.flow-check-result{margin-top:12px;padding:12px;border-radius:9px;background:#e9f7f0;color:#08724b}.flow-check-result.has-errors{background:#fff0ed;color:#a3332c}.flow-check-result ul{margin:9px 0 0;padding-left:18px}.chatbot-simulator-message{max-width:680px;margin:14px 0;padding:13px;border-radius:10px;background:#dcf8c6;color:#1c352b;white-space:normal;line-height:1.55}.chatbot-simulator-actions{display:flex;flex-wrap:wrap;gap:8px}.chatbot-simulator-actions button{min-width:110px}
.chatbot-analytics-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:18px 0}.chatbot-analytics-cards article{padding:14px;border:1px solid #d6e5e2;border-radius:14px;background:#f5fbf9}.chatbot-analytics-cards small{display:block;color:#58706f;margin-bottom:5px}.chatbot-analytics-cards strong{font-size:1.45rem;color:#073b3a}.chatbot-analytics-table{overflow:auto;border:1px solid #dce8e7;border-radius:14px}.chatbot-analytics-table table{width:100%;border-collapse:collapse;min-width:620px}.chatbot-analytics-table th,.chatbot-analytics-table td{padding:11px 13px;text-align:left;border-bottom:1px solid #e5eeee}.chatbot-analytics-table th{background:#edf6f5;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}

/* Unified page and box alignment v181 */
:root{--ui-content-max:1680px;--ui-page-gap:18px;--ui-card-radius:16px;--ui-card-pad:22px;--ui-control-height:42px}
body:not(.auth-body)>main{display:block;min-width:0}
body:not(.auth-body)>main>.workspace-tabs,body:not(.auth-body)>main>.page{width:100%;max-width:var(--ui-content-max);margin-right:auto;margin-left:auto}
body:not(.auth-body) .page.active{display:flex;min-width:0;flex-direction:column;gap:var(--ui-page-gap)}
body:not(.auth-body) .page.active>.card,body:not(.auth-body) .page.active>article,body:not(.auth-body) .page.active>section,body:not(.auth-body) .page.active>.stats,body:not(.auth-body) .page.active>.banner{width:100%;min-width:0;margin-top:0;margin-bottom:0}
body:not(.auth-body) .page>.card,body:not(.auth-body) .page>article.card{overflow:visible;border-radius:var(--ui-card-radius);padding:var(--ui-card-pad)}
body:not(.auth-body) .cardhead{display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e1e9ea}
body:not(.auth-body) .cardhead>div:first-child{min-width:0;flex:1 1 420px}body:not(.auth-body) .cardhead h2{margin:0 0 5px;line-height:1.25}body:not(.auth-body) .cardhead p{max-width:900px;line-height:1.55}
body:not(.auth-body) .cardhead>.cleanup-actions,body:not(.auth-body) .cardhead>.settings-actions{flex:0 1 auto;justify-content:flex-end;margin:0}
body:not(.auth-body) .stats{width:100%;min-width:0;margin:0;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:stretch}
body:not(.auth-body) .stats>article{display:flex;min-width:0;min-height:126px;flex-direction:column;justify-content:center}
body:not(.auth-body) .grid{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-items:start}
body:not(.auth-body) .form{width:100%;max-width:none}body:not(.auth-body) .form label,body:not(.auth-body) .grid>label{min-width:0;margin:0;align-self:start}body:not(.auth-body) label{line-height:1.35}
body:not(.auth-body) label>input,body:not(.auth-body) label>select,body:not(.auth-body) label>textarea{display:block;width:100%;max-width:100%;margin-top:7px}
body:not(.auth-body) input,body:not(.auth-body) select{min-height:var(--ui-control-height)}body:not(.auth-body) textarea{min-height:96px;padding-top:11px;padding-bottom:11px;line-height:1.5}
body:not(.auth-body) .settings-actions,body:not(.auth-body) .cleanup-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}body:not(.auth-body) .settings-actions{margin-top:18px}
body:not(.auth-body) .table{width:100%;min-width:0;overflow:auto;overscroll-behavior-inline:contain}body:not(.auth-body) .table table{width:100%;margin:0}body:not(.auth-body) th{position:sticky;z-index:1;top:0;line-height:1.3;white-space:nowrap}body:not(.auth-body) td{line-height:1.45}
body:not(.auth-body) .report-filters{width:100%;min-width:0;margin:0;grid-template-columns:repeat(6,minmax(125px,1fr)) auto;gap:12px;align-items:end}body:not(.auth-body) .report-filters label{min-width:0;margin:0}
body:not(.auth-body) .date-range-bar{width:100%;min-width:0;margin:0;gap:16px}body:not(.auth-body) .date-range-buttons{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
body:not(.auth-body) .workspace-tabs{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}body:not(.auth-body) .workspace-tabs>*{flex:none}
body:not(.auth-body) .chatbot-studio,body:not(.auth-body) .provider-hero,body:not(.auth-body) .campaign-hero,body:not(.auth-body) .phonebook-hero{width:100%;min-width:0;margin:0}
body:not(.auth-body) .flow-studio-head{gap:18px}body:not(.auth-body) .flow-studio-actions{align-items:flex-end;gap:8px}body:not(.auth-body) .flow-builder{width:100%;min-width:0}
body:not(.auth-body) .user-editor,body:not(.auth-body) .billing-price-grid,body:not(.auth-body) .billing-adjust-grid,body:not(.auth-body) .branding-domain-card{width:100%;min-width:0}
@media(max-width:1200px){:root{--ui-card-pad:20px}body:not(.auth-body) .report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}body:not(.auth-body) .report-filters>button{width:100%}}
@media(max-width:900px){:root{--ui-page-gap:14px;--ui-card-pad:18px}body:not(.auth-body) .grid{grid-template-columns:1fr}body:not(.auth-body) .cardhead{flex-direction:column}body:not(.auth-body) .cardhead>.cleanup-actions,body:not(.auth-body) .cardhead>.settings-actions{width:100%;justify-content:flex-start}body:not(.auth-body) .date-range-bar{align-items:flex-start;flex-direction:column}body:not(.auth-body) .date-range-buttons{width:100%;justify-content:flex-start}}
@media(max-width:760px){:root{--ui-page-gap:12px;--ui-card-pad:15px;--ui-card-radius:13px}body:not(.auth-body) .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:not(.auth-body) .stats>article{min-height:108px;padding:16px}body:not(.auth-body) .report-filters{grid-template-columns:1fr}body:not(.auth-body) .settings-actions>button,body:not(.auth-body) .settings-actions>.button-link,body:not(.auth-body) .cleanup-actions>button{flex:1 1 150px}body:not(.auth-body) .cardhead{margin-bottom:14px;padding-bottom:13px}}
@media(max-width:480px){body:not(.auth-body) .stats{grid-template-columns:1fr}body:not(.auth-body) .stats>article{min-height:96px}body:not(.auth-body) .date-range-buttons{display:grid;grid-template-columns:1fr 1fr}body:not(.auth-body) .date-range-buttons button{width:100%;min-width:0}body:not(.auth-body) .settings-actions,body:not(.auth-body) .cleanup-actions{align-items:stretch;flex-direction:column}body:not(.auth-body) .settings-actions>*,body:not(.auth-body) .cleanup-actions>*{width:100%}}

/* Native upload controls, security rows and tenant footer v182 */
body:not(.auth-body) .chat-attach>input[type="file"],
body:not(.auth-body) .library-upload>input[type="file"],
body:not(.auth-body) .flow-import-button>input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:0!important;opacity:0!important;white-space:nowrap!important}
body:not(.auth-body) .chat-attach,body:not(.auth-body) .library-upload,body:not(.auth-body) .flow-import-button{position:relative;display:inline-flex!important;min-height:39px;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;white-space:nowrap}
body:not(.auth-body) .chat-attach{flex:0 0 auto;align-self:stretch;padding:0 13px;border:1px solid #cbdadd;border-bottom:3px solid #aebfc4;border-radius:10px;background:linear-gradient(180deg,#fff,#edf3f4)}
body:not(.auth-body) #library .library-upload{width:auto;max-width:170px;padding:9px 16px;line-height:1.25;text-align:center}
body:not(.auth-body) .flow-import-button{width:auto!important;max-width:150px!important;align-self:flex-end;padding:9px 14px!important;flex-direction:row!important}
body:not(.auth-body) #brandLogoFile,body:not(.auth-body) #brandFaviconFile,body:not(.auth-body) #brandLoginBackgroundFile{height:46px;padding:5px 7px;background:#f9fbfb;color:#607078;cursor:pointer}
body:not(.auth-body) #brandLogoFile::file-selector-button,body:not(.auth-body) #brandFaviconFile::file-selector-button,body:not(.auth-body) #brandLoginBackgroundFile::file-selector-button{height:34px;margin-right:11px;padding:0 14px;border:1px solid #9ebfba;border-radius:7px;background:linear-gradient(180deg,#fff,#eaf5f2);color:#155d52;font:inherit;font-weight:800;cursor:pointer}
body:not(.auth-body) #security td>strong,body:not(.auth-body) #security td>small{display:block;overflow-wrap:anywhere}
body:not(.auth-body) #security td>small{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.35}
body:not(.auth-body) .branding-copyright-field{grid-column:1/-1}
.panel-footer{display:flex;width:100%;max-width:var(--ui-content-max);min-width:0;align-items:center;justify-content:space-between;gap:18px;margin:20px auto 0;padding:15px 18px;border:1px solid #d5e3e2;border-radius:14px;background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(17,53,67,.06);color:#526a70;font-size:10px}
.panel-footer-copyright{min-width:0;overflow-wrap:anywhere}.panel-footer-support{display:flex;align-items:center;justify-content:flex-end;gap:10px 18px;flex-wrap:wrap}.panel-footer-support a{display:inline-flex;align-items:center;gap:6px;color:#176b62;text-decoration:none;font-weight:750;overflow-wrap:anywhere}.panel-footer-support a:hover{text-decoration:underline}.panel-footer-support a span{color:#72868a;font-size:8px;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:760px){.panel-footer{align-items:flex-start;flex-direction:column;padding:14px}.panel-footer-support{align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:7px}}

/* Template-aware campaign media and collapsed security history v183 */
.campaign-template-media[hidden],.security-collapsible-body[hidden]{display:none!important}
.campaign-template-media{width:100%;min-width:0}.security-collapsible .cardhead{margin-bottom:0;padding-bottom:0;border-bottom:0}.security-collapsible-body{margin-top:18px;padding-top:18px;border-top:1px solid #e1e9ea}.security-section-actions{display:flex;justify-content:flex-end;margin-bottom:12px}
.security-collapsible .cardhead>button{min-width:88px}
@media(max-width:760px){.security-section-actions button{width:100%}}

/* Customer agent entitlement card v184 */
.permission-grid .agent-access-permission{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 14px;padding:14px!important;border-color:#a9d8c5!important;background:linear-gradient(145deg,#f0faf6,#fff)!important}.agent-access-permission>span:first-child{display:flex;align-items:center;gap:7px}.agent-access-permission>small{grid-column:1;color:var(--muted);font-size:9px}.agent-limit-control{grid-row:1/3;grid-column:2;display:flex;align-items:center;gap:8px;color:#365d50;font-size:10px;font-weight:800}.agent-limit-control input{width:90px!important;min-height:38px!important;margin:0!important}.agent-access-permission[hidden]{display:none!important}@media(max-width:560px){.permission-grid .agent-access-permission{grid-template-columns:1fr}.agent-limit-control{grid-row:auto;grid-column:1;justify-content:space-between}.agent-limit-control input{width:120px!important}}

/* Final mobile full-width layout v208: must remain the last responsive block. */
@media(max-width:760px){
  body:not(.auth-body)>main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:calc(136px + env(safe-area-inset-top)) 8px calc(22px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important}
  body:not(.auth-body)>main>header{position:fixed!important;z-index:90!important;inset:0 0 auto 0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-height:128px!important;padding:calc(12px + env(safe-area-inset-top)) 10px 10px 68px!important;align-content:center!important;align-items:center!important}
  body:not(.auth-body)>main>header>div:first-child{width:100%!important;min-width:0!important}body:not(.auth-body)>main>header h1{max-width:100%!important;margin:0!important;font-size:19px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body:not(.auth-body)>main>header .header-actions{display:flex!important;width:100%!important;min-width:0!important;gap:7px!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important}
  body:not(.auth-body)>main>header .sync-state{display:inline-flex!important;min-height:40px!important;flex:1 1 auto!important;justify-content:center!important;padding:8px 9px 8px 25px!important;font-size:9px!important;white-space:nowrap!important}
  body:not(.auth-body)>main>header .header-refresh{display:inline-flex!important;width:auto!important;min-width:44px!important;min-height:40px!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;padding:8px 9px!important;font-size:0!important}body:not(.auth-body)>main>header .header-refresh span{font-size:18px!important}
  body:not(.auth-body)>main>header .header-account{flex:0 0 auto!important}.user-menu-toggle{width:44px!important;max-width:44px!important;min-height:42px!important;padding:5px!important}.user-menu-toggle>span{width:32px!important;height:32px!important}.user-menu-toggle strong,.user-menu-toggle>b{display:none!important}
  body:not(.auth-body)>main>.workspace-tabs,body:not(.auth-body)>main>.page,body:not(.auth-body)>main>.panel-footer{width:100%!important;max-width:100%!important;margin-right:0!important;margin-left:0!important}
  body:not(.auth-body) .workspace-tabs{margin:0 0 10px!important;padding:7px!important;border-radius:12px!important;overflow-x:auto!important}.workspace-tab-buttons{display:flex!important;width:max-content!important;min-width:100%!important;gap:5px!important}.workspace-tab-buttons button{min-height:36px!important;padding:8px 10px!important;font-size:9px!important;white-space:nowrap!important}
  body:not(.auth-body) .page.active{gap:10px!important}.campaign-page{max-width:100%!important}.campaign-hero{width:100%!important;margin:0!important;padding:19px 17px!important;border-radius:15px!important;gap:16px!important}.campaign-hero h2{font-size:25px!important}.campaign-limit{width:100%!important}.campaign-limit strong{font-size:27px!important}
  .campaign-workspace{width:100%!important;max-width:100%!important;margin:0!important;border-radius:14px!important}.campaign-main-grid{display:block!important;width:100%!important}.campaign-editor{width:100%!important;padding:14px!important}.campaign-preview-panel{width:100%!important}.campaign-wizard-progress{width:100%!important;margin:0 0 18px!important;padding:9px!important}.campaign-wizard-step{min-height:62px!important;padding:9px!important}.campaign-step-head h2{font-size:18px!important}.campaign-source-panel,.campaign-variable-section,.campaign-file-variable-map,.campaign-schedule-panel{padding:12px!important}
  .campaign-setup,.campaign-source-grid,.campaign-media-grid,.country-code-tool,.bulk-variable-mapping{grid-template-columns:1fr!important}.campaign-source-tabs,.campaign-schedule-tabs{display:grid!important;grid-template-columns:1fr!important}.campaign-launch{padding:14px!important}.campaign-preview-sticky{padding:14px!important}
  body:not(.auth-body) .card,body:not(.auth-body) .banner,body:not(.auth-body) .date-range-bar,body:not(.auth-body) .report-filters{max-width:100%!important}.table{max-width:calc(100vw - 16px)!important}
  #notice{right:9px!important;bottom:calc(9px + env(safe-area-inset-bottom))!important;left:9px!important}.toast{width:100%!important;text-align:center!important}
}
@media(max-width:390px){body:not(.auth-body)>main{padding-right:6px!important;padding-left:6px!important}.campaign-editor{padding:11px!important}.campaign-hero{padding:17px 14px!important}.campaign-hero h2{font-size:23px!important}}

/* Compact fixed mobile chrome and natural page height v209. */
@media(max-width:760px){
  .mobile-nav-toggle{position:fixed!important;z-index:110!important;top:calc(11px + env(safe-area-inset-top))!important;left:10px!important;right:auto!important;transform:none!important;will-change:auto!important}.mobile-nav-open .mobile-nav-toggle{right:14px!important;left:auto!important}
  body:not(.auth-body)>main{padding-top:calc(104px + env(safe-area-inset-top))!important}
  body:not(.auth-body)>main>header{min-height:96px!important;gap:4px!important;padding:calc(9px + env(safe-area-inset-top)) 9px 8px 66px!important;align-content:start!important}
  body:not(.auth-body)>main>header h1{font-size:18px!important}.header-actions{height:43px!important}.sync-state{min-height:38px!important}.header-refresh{min-height:38px!important}.user-menu-toggle{min-height:40px!important}
  #consent>.card{min-height:0!important}#consent .cardhead{margin-bottom:12px!important;padding-bottom:12px!important}#consent .consent-entry{margin:0 0 10px!important;padding:13px!important}#consent .table{margin-top:0!important}
  #enableChatNotifications{display:inline-flex!important;min-height:34px!important;padding:6px 8px!important;font-size:8px!important;align-items:center!important}
}

/* All panel pages: shared mobile normalization v209. */
@media(max-width:760px){
  body:not(.auth-body) .page,body:not(.auth-body) .page.active,body:not(.auth-body) .page>*,body:not(.auth-body) .page.active>*{min-width:0!important;max-width:100%!important}
  body:not(.auth-body) .page.active>.card,body:not(.auth-body) .page.active>article.card{height:auto!important;min-height:0!important;margin:0!important;padding:14px!important;overflow:visible!important}
  body:not(.auth-body) .page.active .cardhead{gap:10px!important;margin-bottom:12px!important;padding-bottom:12px!important}.cardhead>div:first-child{flex-basis:auto!important}.cardhead h2{font-size:18px!important;overflow-wrap:anywhere}.cardhead p{font-size:10px!important;line-height:1.5!important}
  body:not(.auth-body) .grid,body:not(.auth-body) .billing-price-grid,body:not(.auth-body) .billing-adjust-grid,body:not(.auth-body) .permission-grid,body:not(.auth-body) .profile-summary,body:not(.auth-body) .api-type-grid,body:not(.auth-body) .phonebook-manage-grid,body:not(.auth-body) .report-analytics-grid,body:not(.auth-body) .failure-insight-grid,body:not(.auth-body) .template-button-row,body:not(.auth-body) .flow-studio-head{grid-template-columns:1fr!important}
  body:not(.auth-body) .stats,body:not(.auth-body) .template-health-stats,body:not(.auth-body) .api-log-stats,body:not(.auth-body) .report-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.stats>article{min-height:92px!important;padding:13px!important}.stats strong{font-size:23px!important}
  body:not(.auth-body) .settings-actions,body:not(.auth-body) .cleanup-actions,body:not(.auth-body) .user-editor-actions,body:not(.auth-body) .template-buttons-head,body:not(.auth-body) .phonebook-toolbar,body:not(.auth-body) .report-pagination,body:not(.auth-body) .report-bulk-toolbar{width:100%!important;align-items:stretch!important;flex-direction:column!important}
  body:not(.auth-body) .settings-actions>*,body:not(.auth-body) .cleanup-actions>*,body:not(.auth-body) .user-editor-actions>*,body:not(.auth-body) .cardhead>button,body:not(.auth-body) .cardhead>select{width:100%!important;max-width:100%!important}
  body:not(.auth-body) input,body:not(.auth-body) select,body:not(.auth-body) textarea{width:100%!important;max-width:100%!important}body:not(.auth-body) textarea{min-height:82px!important}
  body:not(.auth-body) .table{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}body:not(.auth-body) .table table{min-width:640px!important}body:not(.auth-body) .table:after{display:block;padding:6px 2px 0;color:#718078;font-size:8px;content:"Swipe table left or right"}
  #overview .dashboard-hero,.phonebook-hero,.provider-hero,.profile-hero{padding:17px!important;border-radius:14px!important}.dashboard-quick-actions{grid-template-columns:1fr!important}
  #inbox>.card{padding:0!important;overflow:hidden!important}.chat-app{height:calc(100dvh - 112px)!important;min-height:480px!important}.chat-list-head{height:auto!important;min-height:67px!important;padding:11px!important}.chat-list-filters{grid-template-columns:1fr!important}.chat-search{margin:9px!important}.chat-contact{padding:11px!important}.chat-compose{grid-template-columns:auto minmax(0,1fr) auto!important}
  #chatbot_flows .chatbot-studio{overflow:hidden!important}.flow-studio-head{padding:14px!important}.flow-studio-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.flow-select-label,.flow-name-label{grid-column:1/-1!important}.flow-builder{grid-template-columns:1fr!important}.flow-palette{position:static!important;width:100%!important;max-height:260px!important;grid-template-columns:1fr 1fr!important}.flow-workspace{padding:8px!important}.flow-canvas-viewport{max-width:100%!important}.flow-canvas{grid-template-columns:1fr!important;padding:24px 10px 70px!important}.flow-node{width:100%!important;max-width:100%!important}.flow-node-fields,.flow-connections{grid-template-columns:1fr!important}
  #reports .date-range-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.report-rate-bars,.report-delivery-time-chart,.report-filters{grid-template-columns:1fr!important}.report-analytics-panel,.template-performance-section,.failure-insights-section{padding:12px!important}
  #templates .template-page-head,#templates .template-toolbar,#templates .template-filters{grid-template-columns:1fr!important}.template-button-row>*{grid-column:1!important}.media-library{grid-template-columns:1fr!important}.media-card{grid-template-columns:46px minmax(0,1fr)!important}
  #users .user-editor{padding:12px!important}.permission-grid .agent-access-permission{grid-template-columns:1fr!important}.agent-limit-control{grid-area:auto!important;width:100%!important;justify-content:space-between!important}.agent-limit-control input{width:120px!important}
  #branding .branding-domain-card{grid-template-columns:1fr!important;padding:13px!important}.branding-domain-card>button{width:100%!important}.panel-footer{border-radius:12px!important}
}
@media(max-width:430px){body:not(.auth-body) .stats,body:not(.auth-body) .template-health-stats,body:not(.auth-body) .api-log-stats,body:not(.auth-body) .report-stats{grid-template-columns:1fr!important}.flow-studio-actions{grid-template-columns:1fr!important}.flow-studio-actions>*{grid-column:1!important}}

/* Mobile inbox v210: retain a real message viewport after the global card normalization. */
@media(max-width:760px){
  body.inbox-page #inbox.page.active{height:calc(100dvh - 112px)!important;min-height:500px!important;overflow:hidden!important}
  body.inbox-page #inbox.page.active>.chat-app.card{display:block!important;height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
  body.inbox-page #inbox .chat-panel{height:100%!important;min-height:0!important;overflow:hidden!important}
  body.inbox-page #inbox .chat-active{height:100%!important;min-height:0!important;overflow:hidden!important}
  body.inbox-page #inbox .chat-body{display:flex!important;min-height:90px!important;flex:1 1 auto!important;overflow:hidden!important}
  body.inbox-page #inbox .chat-thread{display:block!important;height:auto!important;min-height:90px!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  body.inbox-page #inbox .chat-compose{flex:0 0 auto!important;max-height:58dvh!important;overflow-x:hidden!important;overflow-y:auto!important}
}

/* Visible Meta feature capability center v211. */
.meta-feature-center{margin:16px 0!important}.meta-feature-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.meta-feature-card{min-width:0;padding:16px;border:1px solid #dce7e3;border-radius:14px;background:linear-gradient(145deg,#fff,#f7faf9);box-shadow:0 8px 20px rgba(16,59,47,.06)}.meta-feature-card.available{border-color:#b8decf;background:linear-gradient(145deg,#f1fbf7,#fff)}.meta-feature-card.setup{border-color:#ead8ae;background:linear-gradient(145deg,#fffaf0,#fff)}.meta-feature-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.meta-feature-card-head span{padding:5px 8px;border-radius:999px;background:#e7f6ef;color:#087451;font-size:8px;font-weight:900;text-transform:uppercase}.meta-feature-card.setup .meta-feature-card-head span{background:#fff0cd;color:#895f00}.meta-feature-card-head b{color:#9aaba5;font-size:10px}.meta-feature-card>strong{display:block;color:#153c30;font-size:14px}.meta-feature-card p{min-height:42px;margin:7px 0!important;color:#36594e!important;font-size:10px!important;line-height:1.45}.meta-feature-card>small{display:block;min-height:42px;color:#72867f;font-size:8.5px;line-height:1.45}.meta-feature-card>button{width:100%;margin-top:12px}@media(max-width:1100px){.meta-feature-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.meta-feature-cards{grid-template-columns:1fr}.meta-feature-card p,.meta-feature-card>small{min-height:0}}

/* Modern fixed application shell v212. */
body:not(.auth-body){--shell-radius:16px;--shell-shadow:0 12px 34px rgba(17,53,67,.08);background:linear-gradient(135deg,#eef6f3 0%,#f7faf9 48%,#edf3fa 100%)}
body:not(.auth-body) .card{border-color:#d8e5e1;border-radius:var(--shell-radius);background:rgba(255,255,255,.96);box-shadow:var(--shell-shadow)}
body:not(.auth-body) .banner{border-radius:13px;box-shadow:0 7px 22px rgba(17,53,67,.05)}
body:not(.auth-body) button{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
body:not(.auth-body) button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(17,53,67,.1)}
body:not(.auth-body) button:active{transform:translateY(0)}
body:not(.auth-body) input,body:not(.auth-body) select,body:not(.auth-body) textarea{border-color:#cfdedb;background:#fbfdfc;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
body:not(.auth-body) input:focus,body:not(.auth-body) select:focus,body:not(.auth-body) textarea:focus{background:#fff;box-shadow:0 0 0 3px rgba(11,133,88,.11)}
@media(min-width:761px){
html,body:not(.auth-body){height:100%;overflow:hidden}
body:not(.auth-body)>aside#panelSidebar{height:100dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
body:not(.auth-body)>main{display:flex;width:calc(100vw - 256px);max-width:calc(100vw - 256px);height:100dvh;min-width:0;min-height:0;margin-left:256px;padding:18px clamp(20px,2.4vw,38px) 12px;overflow:hidden;flex-direction:column}
body:not(.auth-body)>main>header{position:relative;inset:auto;left:auto;right:auto;top:auto;width:100%;max-width:100%;min-width:0;min-height:78px;flex:0 0 auto;margin:0 0 12px;padding:8px 2px 13px;background:transparent;backdrop-filter:none}
body:not(.auth-body)>main>.workspace-tabs{position:relative;top:auto;flex:0 0 auto;margin:0 0 12px}
body:not(.auth-body)>main>.page.active{display:block;min-height:0;flex:1 1 auto;padding:2px 5px 18px 2px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
body:not(.auth-body)>main>.panel-footer{min-height:54px;flex:0 0 auto;margin:10px auto 0;padding:10px 16px;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 -6px 22px rgba(17,53,67,.07)}
body.inbox-page #inbox.page.active{height:auto;min-height:0;overflow:hidden}body.inbox-page #inbox.page.active>.chat-app{height:100%;min-height:0}
}
@media(min-width:761px) and (max-width:1100px){body:not(.auth-body)>main{width:calc(100vw - 238px);max-width:calc(100vw - 238px);margin-left:238px}}
@media(max-width:760px){
html,body:not(.auth-body){height:100%;overflow:hidden}
body:not(.auth-body)>main{display:flex!important;height:100dvh!important;min-height:0!important;padding:calc(8px + env(safe-area-inset-top)) 7px calc(7px + env(safe-area-inset-bottom))!important;overflow:hidden!important;flex-direction:column!important}
body:not(.auth-body)>main>header{position:relative!important;inset:auto!important;min-height:88px!important;flex:0 0 auto!important;margin:0 0 8px!important;padding:6px 5px 7px 62px!important;background:rgba(245,248,247,.97)!important;border-radius:0 0 14px 14px!important;backdrop-filter:blur(12px)!important}
body:not(.auth-body)>main>.workspace-tabs{position:relative!important;top:auto!important;flex:0 0 auto!important;margin:0 0 8px!important}
body:not(.auth-body)>main>.page.active{display:block!important;width:100%!important;min-height:0!important;flex:1 1 auto!important;padding:1px 2px 14px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;-webkit-overflow-scrolling:touch!important}
body:not(.auth-body)>main>.panel-footer{min-height:55px!important;max-height:78px!important;flex:0 0 auto!important;margin:7px 0 0!important;padding:8px 10px!important;overflow:auto!important;border-radius:11px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 -5px 18px rgba(17,53,67,.07)!important;font-size:8.5px!important}
body:not(.auth-body)>main>.panel-footer .panel-footer-support{display:flex!important;gap:4px 12px!important;flex-direction:row!important;flex-wrap:wrap!important}.panel-footer-support a{font-size:8.5px!important}.panel-footer-support a span{font-size:7px!important}
body.inbox-page #inbox.page.active{height:auto!important;min-height:0!important;overflow:hidden!important}body.inbox-page #inbox.page.active>.chat-app.card{height:100%!important;min-height:0!important}
.mobile-nav-toggle{position:fixed!important;top:calc(12px + env(safe-area-inset-top))!important;left:11px!important;z-index:120!important}
}

/* White-label colour application v215. Saved branding variables remain the
   single source of truth for the modern shell instead of fixed theme colours. */
body:not(.auth-body)>aside#panelSidebar{background:linear-gradient(165deg,color-mix(in srgb,var(--brand) 72%,#071c24),color-mix(in srgb,var(--g) 64%,#09262c) 58%,color-mix(in srgb,var(--brand) 52%,#101f2d))}
.user-menu-toggle>span,.campaign-phone-avatar{background:linear-gradient(145deg,var(--g),var(--brand))!important}
body:not(.auth-body)>aside#panelSidebar nav>button.active,body:not(.auth-body)>aside#panelSidebar nav>.nav-group.current{border-color:color-mix(in srgb,var(--g) 64%,white)!important;background:linear-gradient(100deg,color-mix(in srgb,var(--g) 75%,transparent),color-mix(in srgb,var(--brand) 48%,transparent))!important;box-shadow:inset 4px 0 color-mix(in srgb,var(--g) 72%,white),0 8px 20px color-mix(in srgb,var(--brand) 22%,transparent)!important}
body:not(.auth-body) .primary,body:not(.auth-body) .library-upload,body:not(.auth-body) .campaign-launch .primary{background:linear-gradient(145deg,var(--g),color-mix(in srgb,var(--g) 74%,var(--brand)))!important;border-color:var(--g)!important;color:#fff!important}
body:not(.auth-body) .workspace-tab-buttons button.active,body:not(.auth-body) .date-range-buttons button.active{border-color:color-mix(in srgb,var(--g) 48%,#b8cbc4)!important;background:color-mix(in srgb,var(--g) 12%,white)!important;color:color-mix(in srgb,var(--g) 78%,#102f35)!important}
body:not(.auth-body) main>header small,body:not(.auth-body) .flow-studio-title>small,body:not(.auth-body) a:not(.button-link){color:var(--g)}
body:not(.auth-body) .stats>article:before{background:var(--g)!important}body:not(.auth-body) .stats>article:nth-child(even):before{background:var(--brand)!important}
body:not(.auth-body) .dashboard-hero{background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 72%,#0b2632),color-mix(in srgb,var(--g) 80%,#102f46))!important}
body:not(.auth-body) input,body:not(.auth-body) select,body:not(.auth-body) textarea{accent-color:var(--g)}

/* Modern interaction and surface system v216. */
:root{
  --ui-surface:#ffffff;
  --ui-surface-soft:#f8fbfa;
  --ui-text:#15352b;
  --ui-border:color-mix(in srgb,var(--g) 12%,#d9e3df);
  --ui-shadow-sm:0 2px 3px rgba(12,43,33,.09),0 7px 18px rgba(12,43,33,.06);
  --ui-shadow-md:0 4px 0 rgba(12,43,33,.12),0 11px 24px rgba(12,43,33,.09);
  --ui-shadow-card:0 12px 32px rgba(12,43,33,.075);
}
body:not(.auth-body){
  color:var(--ui-text);
  background:
    radial-gradient(circle at 86% 2%,color-mix(in srgb,var(--g) 9%,transparent),transparent 29%),
    radial-gradient(circle at 20% 100%,color-mix(in srgb,var(--brand) 6%,transparent),transparent 34%),
    linear-gradient(135deg,#eef5f2,#f8faf9 52%,#edf3f8);
}
body:not(.auth-body) .card,
body:not(.auth-body) .banner,
body:not(.auth-body) .workspace-tabs,
body:not(.auth-body) .panel-footer{
  border-color:var(--ui-border);
  background:color-mix(in srgb,var(--ui-surface) 96%,var(--g) 4%);
  box-shadow:var(--ui-shadow-card);
}
body:not(.auth-body) .card{transition:border-color .18s ease,box-shadow .18s ease}
@media(hover:hover){
  body:not(.auth-body) .card:hover{border-color:color-mix(in srgb,var(--g) 19%,#d9e3df);box-shadow:0 16px 38px rgba(12,43,33,.095)}
}
body:not(.auth-body) button,
body:not(.auth-body) .button-link,
.auth-body button,
.auth-body .button-link{
  position:relative;
  display:inline-flex;
  min-height:42px;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid color-mix(in srgb,var(--g) 14%,#cad7d2);
  border-bottom-color:color-mix(in srgb,var(--g) 24%,#aebdb7);
  border-radius:11px;
  background:linear-gradient(180deg,#fff 0%,#f5f8f7 68%,#edf3f0 100%);
  box-shadow:0 3px 0 rgba(19,54,42,.12),0 8px 17px rgba(19,54,42,.08),inset 0 1px rgba(255,255,255,.95);
  color:#23483b;
  font-weight:750;
  line-height:1.2;
  text-decoration:none;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,filter .14s ease;
  -webkit-tap-highlight-color:transparent;
}
@media(hover:hover){
  body:not(.auth-body) button:hover,
  body:not(.auth-body) .button-link:hover,
  .auth-body button:hover,
  .auth-body .button-link:hover{
    border-color:color-mix(in srgb,var(--g) 32%,#b9c8c2);
    box-shadow:0 4px 0 rgba(19,54,42,.14),0 11px 22px rgba(19,54,42,.11),inset 0 1px #fff;
    filter:saturate(1.04);
    transform:translateY(-1px);
  }
}
body:not(.auth-body) button:active,
body:not(.auth-body) .button-link:active,
.auth-body button:active,
.auth-body .button-link:active{
  box-shadow:0 1px 0 rgba(19,54,42,.13),0 4px 9px rgba(19,54,42,.08),inset 0 1px 2px rgba(11,42,31,.08);
  transform:translateY(2px);
}
body:not(.auth-body) .primary,
body:not(.auth-body) .library-upload,
.auth-body .primary{
  border-color:color-mix(in srgb,var(--g) 76%,#071d17)!important;
  border-bottom-color:color-mix(in srgb,var(--g) 38%,#071d17)!important;
  background:linear-gradient(160deg,color-mix(in srgb,var(--g) 88%,white),var(--g) 58%,color-mix(in srgb,var(--g) 72%,var(--brand)))!important;
  box-shadow:0 4px 0 color-mix(in srgb,var(--g) 48%,#07281f),0 11px 24px color-mix(in srgb,var(--g) 23%,transparent),inset 0 1px rgba(255,255,255,.32)!important;
  color:#fff!important;
  text-shadow:0 1px rgba(0,0,0,.12);
}
@media(hover:hover){
  body:not(.auth-body) .primary:hover,
  body:not(.auth-body) .library-upload:hover,
  .auth-body .primary:hover{
    box-shadow:0 5px 0 color-mix(in srgb,var(--g) 45%,#06241c),0 14px 29px color-mix(in srgb,var(--g) 29%,transparent),inset 0 1px rgba(255,255,255,.38)!important;
  }
}
body:not(.auth-body) .primary:active,
body:not(.auth-body) .library-upload:active,
.auth-body .primary:active{
  box-shadow:0 1px 0 color-mix(in srgb,var(--g) 44%,#06241c),0 5px 12px color-mix(in srgb,var(--g) 23%,transparent),inset 0 1px 2px rgba(0,0,0,.13)!important;
}
body:not(.auth-body) .danger{
  border-color:#efc4c1!important;
  border-bottom-color:#dca7a3!important;
  background:linear-gradient(180deg,#fff,#fff4f3)!important;
  box-shadow:0 3px 0 #efcfcc,0 8px 17px rgba(174,48,39,.08)!important;
  color:#ae3028!important;
}
body:not(.auth-body) button:disabled,
body:not(.auth-body) .button-link[aria-disabled="true"],
.auth-body button:disabled{
  cursor:not-allowed;
  opacity:.52;
  box-shadow:none!important;
  filter:grayscale(.18);
  transform:none!important;
}
body:not(.auth-body) button:focus-visible,
body:not(.auth-body) .button-link:focus-visible,
body:not(.auth-body) input:focus-visible,
body:not(.auth-body) select:focus-visible,
body:not(.auth-body) textarea:focus-visible,
.auth-body button:focus-visible,
.auth-body input:focus-visible{
  outline:3px solid color-mix(in srgb,var(--g) 28%,transparent);
  outline-offset:2px;
}
body:not(.auth-body) input,
body:not(.auth-body) select,
body:not(.auth-body) textarea,
.auth-body input{
  border:1px solid color-mix(in srgb,var(--g) 12%,#cbd8d3);
  border-radius:11px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:inset 0 1px 2px rgba(18,55,42,.045);
}
body:not(.auth-body) input:hover,
body:not(.auth-body) select:hover,
body:not(.auth-body) textarea:hover{
  border-color:color-mix(in srgb,var(--g) 27%,#cbd8d3);
}
body:not(.auth-body) input:focus,
body:not(.auth-body) select:focus,
body:not(.auth-body) textarea:focus,
.auth-body input:focus{
  border-color:color-mix(in srgb,var(--g) 58%,#9fb7ae);
  background:#fff;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--g) 10%,transparent),inset 0 1px 2px rgba(18,55,42,.035);
}
body:not(.auth-body) .table{border:1px solid var(--ui-border);border-radius:13px;box-shadow:none}
body:not(.auth-body) th{background:color-mix(in srgb,var(--g) 6%,#f4f7f6);color:#506b61;font-size:10px;letter-spacing:.055em;text-transform:uppercase}
body:not(.auth-body) td{border-bottom-color:#e6ece9}
body:not(.auth-body) tbody tr:last-child td{border-bottom:0}
body:not(.auth-body) .status-badge{border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:999px;box-shadow:inset 0 1px rgba(255,255,255,.62)}
body:not(.auth-body) .stats>article{overflow:hidden;border-color:var(--ui-border);background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--g) 4%,#fff))}
body:not(.auth-body) .stats>article strong{letter-spacing:-.035em}
body:not(.auth-body) .toast{background:linear-gradient(145deg,#143b2f,#09271e);box-shadow:0 15px 36px rgba(5,31,22,.28)}
.auth-body .auth-card{border-color:color-mix(in srgb,var(--g) 13%,#dbe5e1);box-shadow:0 24px 70px rgba(12,43,33,.14)}
@media(max-width:760px){
  body:not(.auth-body) button,
  body:not(.auth-body) .button-link{min-height:40px;border-radius:10px}
  body:not(.auth-body) .card{box-shadow:0 8px 22px rgba(12,43,33,.07)}
}
@media(prefers-reduced-motion:reduce){
  body:not(.auth-body) button,
  body:not(.auth-body) .button-link,
  body:not(.auth-body) .card{transition:none!important}
}
/* Canonical sidebar navigation v227. No legacy group styling below this point. */
body:not(.auth-body)>main>#workspaceTabs{display:none!important}
body:not(.auth-body)>aside#panelSidebar{background:linear-gradient(180deg,#082f3a 0%,#073642 52%,#062b35 100%)!important;border-right:1px solid rgba(152,211,205,.14)!important;box-shadow:10px 0 34px rgba(4,31,38,.14)!important}
body:not(.auth-body)>aside#panelSidebar .brand{border-color:rgba(205,235,231,.45)!important;background:#fff!important;box-shadow:0 8px 22px rgba(0,16,22,.18)!important}
body:not(.auth-body)>aside#panelSidebar .account{border:1px solid rgba(135,207,194,.18)!important;background:rgba(255,255,255,.065)!important;box-shadow:none!important}
body:not(.auth-body)>aside#panelSidebar .account>span{background:linear-gradient(145deg,#16a995,#0d7d83)!important;box-shadow:0 6px 15px rgba(3,24,29,.22)!important}
body:not(.auth-body)>aside#panelSidebar nav{gap:3px!important;padding-top:2px!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group{width:100%!important;overflow:visible!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important;opacity:1!important}
body:not(.auth-body)>aside#panelSidebar nav>button,body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle,body:not(.auth-body)>aside#panelSidebar nav .nav-group-items>button{position:relative!important;display:flex!important;width:100%!important;min-height:40px!important;margin:0!important;padding:8px 11px!important;align-items:center!important;gap:10px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;color:#c9ddda!important;font-size:10.5px!important;font-weight:700!important;text-align:left!important;text-shadow:none!important;transform:none!important;filter:none!important;opacity:1!important}
body:not(.auth-body)>aside#panelSidebar nav button::before{content:""!important;display:block!important;width:7px!important;height:7px!important;flex:0 0 7px!important;border-radius:3px!important;background:#8cb7b1!important;box-shadow:0 0 0 3px rgba(140,183,177,.12)!important;opacity:1!important}
body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle span{min-width:0!important;flex:1!important;color:inherit!important}
body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle b{display:block!important;margin-left:auto!important;color:#77aaa4!important;font-size:14px!important;line-height:1!important;transition:transform .16s ease!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items{display:none!important;margin:2px 0 5px!important;padding:3px 0 3px 13px!important;border-left:1px solid rgba(120,191,181,.18)!important;background:transparent!important;filter:none!important;backdrop-filter:none!important;opacity:1!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group.open,body:not(.auth-body)>aside#panelSidebar nav>.nav-group.current{border-color:rgba(91,205,183,.20)!important;background:rgba(5,43,52,.74)!important;box-shadow:inset 3px 0 #39c9a6!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group.open>.nav-group-items{display:grid!important;gap:2px!important;animation:sidebar-group-open .16s ease-out!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group.open>.nav-group-toggle,body:not(.auth-body)>aside#panelSidebar nav>.nav-group.current>.nav-group-toggle{background:rgba(255,255,255,.035)!important;color:#f4fffd!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group.open>.nav-group-toggle b{color:#7ed7c3!important;transform:rotate(90deg)!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button{width:calc(100% - 3px)!important;min-height:35px!important;padding:7px 9px 7px 18px!important;border-radius:8px!important;color:#cfe3e0!important;font-size:9.5px!important;font-weight:650!important;-webkit-font-smoothing:antialiased!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button::before{position:absolute!important;left:7px!important;width:5px!important;height:5px!important;flex-basis:5px!important;background:#83bdb5!important;box-shadow:none!important}
body:not(.auth-body)>aside#panelSidebar nav>button:hover,body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle:hover,body:not(.auth-body)>aside#panelSidebar nav .nav-group-items>button:hover{border-color:rgba(105,207,188,.17)!important;background:rgba(255,255,255,.07)!important;color:#fff!important}
body:not(.auth-body)>aside#panelSidebar nav>button.active,body:not(.auth-body)>aside#panelSidebar nav .nav-group-items>button.active{border-color:rgba(82,218,187,.25)!important;background:linear-gradient(100deg,rgba(24,167,140,.28),rgba(17,101,119,.20))!important;color:#fff!important;box-shadow:inset 2px 0 #45d3ad!important;font-weight:800!important}
body:not(.auth-body)>aside#panelSidebar nav>button.active::before,body:not(.auth-body)>aside#panelSidebar nav .nav-group-items>button.active::before,body:not(.auth-body)>aside#panelSidebar nav>.nav-group.current>.nav-group-toggle::before{background:#45d3ad!important;box-shadow:0 0 0 3px rgba(69,211,173,.13)!important}
body:not(.auth-body)>aside#panelSidebar .sidebar-bottom{color:#83a6a3!important;letter-spacing:.13em!important}
@keyframes sidebar-group-open{from{opacity:.35;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:760px){body:not(.auth-body)>aside#panelSidebar nav>button,body:not(.auth-body)>aside#panelSidebar nav .nav-group-toggle{min-height:44px!important;padding:10px 12px!important;font-size:12px!important}body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items{padding-left:16px!important}body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button{min-height:40px!important;padding:9px 10px 9px 20px!important;font-size:11px!important}}
@media(prefers-reduced-motion:reduce){body:not(.auth-body)>aside#panelSidebar nav>.nav-group.open>.nav-group-items{animation:none!important}}
/* Canonical Inbox alignment v228. Keep this after legacy Inbox rules. */
body.inbox-page #inbox.page.active{width:100%;max-width:none;padding:0}
body.inbox-page #inbox>.chat-app.card{grid-template-columns:clamp(320px,25vw,380px) minmax(0,1fr);align-items:stretch}
body.inbox-page #inbox .chat-sidebar{min-width:0;width:100%;border-right:1px solid var(--ui-border)}
body.inbox-page #inbox .chat-list-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:18px 20px}
body.inbox-page #inbox .chat-list-head>div:first-child{min-width:0}
body.inbox-page #inbox .chat-list-head h2,body.inbox-page #inbox .chat-list-head small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.inbox-page #inbox .chat-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
body.inbox-page #inbox .chat-head-actions button{min-width:72px;margin:0}
body.inbox-page #inbox .chat-search{display:block;width:calc(100% - 32px);min-width:0;margin:14px 16px 12px}
body.inbox-page #inbox .chat-list-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:0 16px 14px}
body.inbox-page #inbox .chat-list-filters .chat-unread-toggle,body.inbox-page #inbox .chat-list-filters select{height:44px;min-height:44px;padding:0 13px;font-size:10px}
body.inbox-page #inbox .chat-list{padding:0 8px 10px}
body.inbox-page #inbox .chat-contact{grid-template-columns:46px minmax(0,1fr) 62px;gap:11px;min-height:86px;margin:0;padding:13px 12px;align-items:center;border:1px solid transparent!important;border-bottom-color:var(--ui-border)!important;border-radius:12px;box-shadow:none}
body.inbox-page #inbox .chat-contact+.chat-contact{margin-top:3px}
body.inbox-page #inbox .chat-contact.selected{border-color:color-mix(in srgb,var(--g) 24%,var(--ui-border))!important;box-shadow:inset 4px 0 var(--brand)}
body.inbox-page #inbox .chat-contact .inbox-avatar{width:46px;height:46px;min-width:46px;flex:none;font-size:12px}
body.inbox-page #inbox .chat-contact-copy{min-width:0;overflow:hidden}
body.inbox-page #inbox .chat-contact-copy strong,body.inbox-page #inbox .chat-contact-copy small,body.inbox-page #inbox .chat-contact-copy em{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.inbox-page #inbox .chat-contact-copy strong{margin:0;font-size:13px;line-height:1.3}
body.inbox-page #inbox .chat-contact-copy small{margin:5px 0 0;font-size:10.5px;line-height:1.35}
body.inbox-page #inbox .chat-contact-copy em{margin-top:5px;font-size:8.5px;line-height:1.3}
body.inbox-page #inbox .chat-contact-meta{min-width:62px;width:62px;height:100%;align-self:stretch;align-items:flex-end}
body.inbox-page #inbox .chat-contact-meta time{width:100%;max-width:none;text-align:right;white-space:nowrap}
body.inbox-page #inbox .chat-panel{min-width:0;width:100%}
@media(max-width:1100px) and (min-width:761px){body.inbox-page #inbox>.chat-app.card{grid-template-columns:320px minmax(0,1fr)}body.inbox-page #inbox .chat-list-head{padding:15px}body.inbox-page #inbox .chat-head-actions{gap:6px}body.inbox-page #inbox .chat-head-actions button{min-width:62px;padding-inline:9px}body.inbox-page #inbox .chat-list-filters{grid-template-columns:1fr}}
@media(max-width:760px){body.inbox-page #inbox>.chat-app.card{display:block;grid-template-columns:none}body.inbox-page #inbox .chat-list-head{padding:13px 14px}body.inbox-page #inbox .chat-search{width:calc(100% - 24px);margin:11px 12px}body.inbox-page #inbox .chat-list-filters{grid-template-columns:1fr 1fr;gap:8px;padding:0 12px 11px}body.inbox-page #inbox .chat-list{padding-inline:5px}body.inbox-page #inbox .chat-contact{grid-template-columns:44px minmax(0,1fr) 54px;min-height:78px;padding:11px 10px}body.inbox-page #inbox .chat-contact .inbox-avatar{width:44px;height:44px;min-width:44px}body.inbox-page #inbox .chat-contact-meta{width:54px;min-width:54px}}
/* Compact Inbox master/detail v229. Avoid a clipped conversation pane on
   tablets, zoomed browsers and narrow desktop workspaces. */
@media(min-width:761px) and (max-width:1280px){
  body.inbox-page #inbox>.chat-app.card{display:block!important;position:relative!important}
  body.inbox-page #inbox .chat-sidebar{width:100%!important;height:100%!important;border-right:0!important}
  body.inbox-page #inbox .chat-list-filters{grid-template-columns:1fr 1fr!important}
  body.inbox-page #inbox .chat-panel{position:absolute!important;inset:0!important;z-index:5!important;width:100%!important;height:100%!important;transform:translateX(102%)!important;transition:transform .2s ease!important}
  body.inbox-page #inbox .chat-panel.mobile-open{transform:translateX(0)!important}
  body.inbox-page #inbox .chat-header #chatBack{display:inline-flex!important;align-items:center!important;justify-content:center!important}
}
/* Shared premium page headers and expanded footer v230 */
.shared-page-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px;padding:24px 26px;border:1px solid #164d3c;border-radius:16px;background:linear-gradient(135deg,#0b2e23,#106047);box-shadow:0 15px 34px rgba(5,48,34,.17);color:#fff}.shared-page-hero small{color:#9fd4c0;font-size:8px;font-weight:850;letter-spacing:.15em}.shared-page-hero h2{margin:5px 0 4px;color:#fff;font-size:26px}.shared-page-hero p{max-width:760px;margin:0;color:#c8e0d7;font-size:10px;line-height:1.55}
body:not(.auth-body)>main>.panel-footer{position:relative;min-height:104px;max-height:none;margin:14px auto 0;padding:22px 26px;overflow:hidden;border:1px solid rgba(130,207,179,.24);border-radius:18px;background:linear-gradient(135deg,#0b2e23 0%,#0d4e3b 62%,#106047 100%);box-shadow:0 -4px 10px rgba(5,48,34,.06),0 15px 34px rgba(5,48,34,.18);color:#d8eee6;font-size:11px}
body:not(.auth-body)>main>.panel-footer:before{content:"HS VALUE SERVICES";display:block;position:absolute;right:24px;bottom:-9px;color:rgba(255,255,255,.045);font-size:38px;font-weight:900;letter-spacing:.08em;white-space:nowrap;pointer-events:none}.panel-footer-copyright{position:relative;z-index:1;max-width:48%;color:#d8eee6;font-weight:700;line-height:1.6}.panel-footer-support{position:relative;z-index:1;gap:12px}.panel-footer-support a{min-height:48px;padding:10px 15px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.08);transition:background .15s,border-color .15s,transform .15s}.panel-footer-support a:hover{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.14);text-decoration:none;transform:translateY(-1px)}.panel-footer-support a span{color:#9fd4c0;font-size:8px;font-weight:850}
@media(max-width:760px){.shared-page-hero{align-items:flex-start!important;margin:0 0 12px!important;padding:19px 18px!important;flex-direction:column!important}.shared-page-hero h2{font-size:22px!important}.shared-page-hero .campaign-limit{width:100%;justify-content:center}body:not(.auth-body)>main>.panel-footer{min-height:116px!important;max-height:150px!important;margin:8px 0 0!important;padding:14px!important;overflow:auto!important;border-radius:14px!important;align-items:stretch!important;gap:10px!important}.panel-footer-copyright{max-width:none}.panel-footer-support{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}.panel-footer-support a{min-width:0;min-height:42px;padding:8px 10px;flex-direction:column;align-items:flex-start;font-size:8.5px!important}.panel-footer-support a span{font-size:7px!important}}
@media(max-width:430px){.panel-footer-support{grid-template-columns:1fr}}
/* Remove duplicate top title and keep shared page-header content readable v231 */
body:not(.auth-body)>main>header>div:first-child>h1{display:none!important}
body:not(.auth-body)>main>header>div:first-child{display:flex;align-items:center;min-height:42px}
body:not(.auth-body)>main>header>div:first-child>small{display:block;margin:0!important}
body:not(.auth-body) .shared-page-hero>div>small{display:block!important;color:#9fd4c0!important;opacity:1!important;text-shadow:none!important}
body:not(.auth-body) .shared-page-hero>div>h2{display:block!important;color:#fff!important;opacity:1!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.08)!important}
body:not(.auth-body) .shared-page-hero>div>p{display:block!important;color:#d5e9e2!important;opacity:1!important;-webkit-text-fill-color:#d5e9e2!important}
body:not(.auth-body) .shared-page-hero ::selection{background:rgba(42,207,164,.34);color:#fff}
@media(max-width:760px){body:not(.auth-body)>main>header>div:first-child{min-height:30px}body:not(.auth-body)>main>header{min-height:70px!important}}
/* Compact shared page header and footer v232 */
body:not(.auth-body) .shared-page-hero{min-height:0!important;margin:0 0 12px!important;padding:15px 20px!important;gap:14px!important;border-radius:13px!important;box-shadow:0 9px 22px rgba(5,48,34,.14)!important}
body:not(.auth-body) .shared-page-hero>div>small{font-size:7px!important;letter-spacing:.13em!important}
body:not(.auth-body) .shared-page-hero>div>h2{margin:3px 0 2px!important;font-size:22px!important;line-height:1.15!important}
body:not(.auth-body) .shared-page-hero>div>p{font-size:9px!important;line-height:1.4!important}
body:not(.auth-body) .shared-page-hero .campaign-limit{padding:8px 11px!important;border-radius:10px!important}
body:not(.auth-body) .shared-page-hero .campaign-limit strong{font-size:21px!important}
body:not(.auth-body)>main>.panel-footer{min-height:68px!important;max-height:82px!important;margin:8px auto 0!important;padding:11px 17px!important;gap:12px!important;border-radius:13px!important;box-shadow:0 -3px 8px rgba(5,48,34,.05),0 8px 20px rgba(5,48,34,.13)!important;font-size:9px!important}
body:not(.auth-body)>main>.panel-footer:before{right:17px!important;bottom:-5px!important;font-size:25px!important}
.panel-footer-copyright{line-height:1.4!important}.panel-footer-support{gap:7px!important}.panel-footer-support a{min-height:36px!important;padding:7px 10px!important;border-radius:9px!important;font-size:9px!important}.panel-footer-support a span{font-size:7px!important}
@media(max-width:760px){body:not(.auth-body) .shared-page-hero{margin:0 0 9px!important;padding:13px 14px!important;gap:9px!important;border-radius:12px!important}body:not(.auth-body) .shared-page-hero>div>h2{font-size:19px!important}body:not(.auth-body) .shared-page-hero .campaign-limit{width:auto!important;padding:7px 10px!important}body:not(.auth-body)>main>.panel-footer{min-height:72px!important;max-height:96px!important;margin:5px 0 0!important;padding:9px 11px!important;gap:7px!important;border-radius:11px!important}.panel-footer-support{display:flex!important;gap:5px 8px!important;flex-direction:row!important;flex-wrap:wrap!important}.panel-footer-support a{min-height:32px!important;padding:6px 8px!important;flex:1 1 135px!important;flex-direction:row!important;align-items:center!important}}
/* Keep compact footer above system bars and mirror changes on mobile v233 */
body:not(.auth-body)>main{padding-bottom:26px!important}
body:not(.auth-body)>main>.page.active{padding-bottom:14px!important}
body:not(.auth-body)>main>.panel-footer{position:relative!important;bottom:auto!important;flex-shrink:0!important;margin:8px auto 0!important;transform:translateY(-2px)}
@media(max-width:760px){
  body:not(.auth-body)>main{padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
  body:not(.auth-body)>main>header>div:first-child>h1{display:none!important}
  body:not(.auth-body)>main>header>div:first-child{min-height:26px!important}
  body:not(.auth-body) .shared-page-hero{display:flex!important;width:100%!important;min-height:0!important;margin:0 0 9px!important;padding:12px 14px!important;overflow:visible!important;gap:8px!important;border-radius:12px!important;flex-direction:column!important}
  body:not(.auth-body) .shared-page-hero>div>small{display:block!important;color:#9fd4c0!important;font-size:7px!important;opacity:1!important}
  body:not(.auth-body) .shared-page-hero>div>h2{display:block!important;margin:2px 0!important;color:#fff!important;font-size:19px!important;line-height:1.15!important;opacity:1!important;-webkit-text-fill-color:#fff!important}
  body:not(.auth-body) .shared-page-hero>div>p{display:block!important;margin:0!important;color:#d5e9e2!important;font-size:8.5px!important;line-height:1.4!important;opacity:1!important;-webkit-text-fill-color:#d5e9e2!important}
  body:not(.auth-body) .shared-page-hero .campaign-limit{width:100%!important;min-height:42px!important;padding:7px 10px!important;justify-content:center!important}
  body:not(.auth-body)>main>.page.active{padding-bottom:10px!important}
  body:not(.auth-body)>main>.panel-footer{display:flex!important;width:100%!important;min-height:68px!important;max-height:90px!important;margin:5px 0 0!important;padding:8px 10px calc(10px + env(safe-area-inset-bottom))!important;overflow:auto!important;gap:6px!important;border-radius:11px!important;transform:none!important;flex-direction:column!important;justify-content:center!important}
  .panel-footer-copyright{display:block!important;width:100%!important;max-width:none!important;font-size:8.5px!important;line-height:1.35!important}
  .panel-footer-support{display:flex!important;width:100%!important;gap:5px!important;flex-direction:row!important;flex-wrap:nowrap!important}
  .panel-footer-support a{min-width:0!important;min-height:29px!important;padding:5px 7px!important;overflow:hidden!important;flex:1 1 0!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;font-size:8px!important;line-height:1.15!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .panel-footer-support a span{font-size:6.5px!important}
}
@media(max-width:430px){body:not(.auth-body)>main{padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}body:not(.auth-body)>main>.panel-footer{min-height:76px!important;max-height:100px!important}.panel-footer-support{flex-wrap:wrap!important}.panel-footer-support a{flex-basis:calc(50% - 3px)!important}}
/* Avoid duplicate custom heroes and left-align Dashboard navigation v234 */
body:not(.auth-body)>aside#panelSidebar nav>button[data-page="overview"]{display:flex!important;width:100%!important;padding-right:12px!important;padding-left:12px!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;text-align:left!important}
body:not(.auth-body)>aside#panelSidebar nav>button[data-page="overview"]::before{display:block!important;position:static!important;inset:auto!important;width:9px!important;height:9px!important;margin:0!important;flex:0 0 9px!important}
@media(max-width:760px){body:not(.auth-body)>aside#panelSidebar nav>button[data-page="overview"]{padding-right:12px!important;padding-left:12px!important;justify-content:flex-start!important;text-align:left!important;font-size:11px!important}body:not(.auth-body)>aside#panelSidebar nav>button[data-page="overview"]::after{display:none!important}}
/* Accessible tenant colour system and mobile alignment audit v235 */
:root{--theme-primary:#07875f;--theme-primary-dark:#075844;--theme-primary-deep:#092b35;--theme-primary-soft:#e8f6f1;--theme-primary-border:#a8d4c5;--theme-accent:#1d4ed8;--theme-accent-dark:#243f89;--theme-on-primary:#fff;--theme-on-accent:#fff}
body:not(.auth-body)>aside{background:linear-gradient(180deg,var(--theme-primary-deep),var(--theme-primary-dark))!important}
body:not(.auth-body)>aside nav>button.active,body:not(.auth-body)>aside nav>.nav-group.current>.nav-group-toggle,body:not(.auth-body)>aside nav .nav-group-items>button.active{border-color:color-mix(in srgb,var(--theme-primary) 58%,#fff)!important;background:linear-gradient(100deg,color-mix(in srgb,var(--theme-primary) 48%,transparent),color-mix(in srgb,var(--theme-accent) 24%,transparent))!important;box-shadow:inset 3px 0 color-mix(in srgb,var(--theme-primary) 48%,#fff)!important}
body:not(.auth-body) .primary{border-color:var(--theme-primary)!important;background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-dark))!important;color:var(--theme-on-primary)!important}
body:not(.auth-body) .shared-page-hero,body:not(.auth-body) .campaign-hero,body:not(.auth-body) .phonebook-hero{border-color:var(--theme-primary-dark)!important;background:linear-gradient(135deg,var(--theme-primary-deep),var(--theme-primary-dark))!important}
body:not(.auth-body)>main>.panel-footer{border-color:color-mix(in srgb,var(--theme-primary-border) 38%,transparent)!important;background:linear-gradient(135deg,var(--theme-primary-deep),var(--theme-primary-dark))!important}
body:not(.auth-body) input:focus,body:not(.auth-body) select:focus,body:not(.auth-body) textarea:focus{border-color:var(--theme-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 18%,transparent)!important}
.brand-colour-studio{display:grid;gap:12px;margin:18px 0;padding:16px;border:1px solid var(--theme-primary-border);border-radius:14px;background:linear-gradient(135deg,var(--theme-primary-soft),#fff)}.brand-colour-preview{display:flex;align-items:center;gap:10px}.brand-colour-preview>span,.brand-colour-preview>b{width:42px;height:42px;flex:0 0 42px;border:3px solid #fff;border-radius:12px;box-shadow:0 0 0 1px #cbd9d5,0 6px 15px rgba(17,53,67,.12)}.brand-colour-preview>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.brand-colour-preview small{color:#526a70!important;line-height:1.4}.brand-colour-presets,.brand-colour-actions{display:flex;gap:8px;flex-wrap:wrap}.brand-colour-presets button{min-height:36px;border-color:var(--theme-primary-border);background:#fff}.brand-colour-actions{padding-top:2px}.brand-colour-actions button{min-height:36px}.branding-color-field{min-width:0}
body:not(.auth-body) #branding input[type="color"]{width:100%!important;min-height:52px!important;padding:5px!important;border:1px solid var(--theme-primary-border)!important;border-radius:10px!important;background:#fff!important;cursor:pointer}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}body:not(.auth-body)>main{width:100%!important;max-width:100%!important}
  body:not(.auth-body)>main>header{width:100%!important;max-width:100%!important;align-items:center!important;gap:6px!important}
  body:not(.auth-body)>main>header>div:first-child{min-width:0!important;flex:1 1 auto!important}body:not(.auth-body)>main>header>div:first-child>small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body:not(.auth-body)>main>.page.active{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body:not(.auth-body) .page.active>*{max-width:100%}body:not(.auth-body) .grid,body:not(.auth-body) .billing-price-grid,body:not(.auth-body) .meta-detail-grid{grid-template-columns:minmax(0,1fr)!important}
  body:not(.auth-body) .card,body:not(.auth-body) .banner,body:not(.auth-body) .shared-page-hero,body:not(.auth-body) .phonebook-hero,body:not(.auth-body) .provider-hero{width:100%!important;max-width:100%!important;margin-right:0!important;margin-left:0!important}
  body:not(.auth-body) .cardhead{width:100%!important;align-items:stretch!important;gap:10px!important}body:not(.auth-body) .cardhead>button,body:not(.auth-body) .cardhead>.settings-actions{width:100%!important}
  body:not(.auth-body) input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),body:not(.auth-body) select,body:not(.auth-body) textarea{width:100%!important;min-width:0!important}
  body:not(.auth-body) .settings-actions,body:not(.auth-body) .cleanup-actions{width:100%!important;align-items:stretch!important}body:not(.auth-body) .settings-actions>*,body:not(.auth-body) .cleanup-actions>*{min-width:0!important;flex:1 1 140px!important}
  body:not(.auth-body) .table{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .brand-colour-studio{margin:14px 0;padding:12px}.brand-colour-preview{align-items:flex-start;flex-wrap:wrap}.brand-colour-preview>div{flex-basis:calc(100% - 104px)}.brand-colour-presets{display:grid;grid-template-columns:1fr 1fr}.brand-colour-presets button{width:100%;min-width:0;padding:8px}.brand-colour-actions{display:grid;grid-template-columns:1fr 1fr}.brand-colour-actions button{width:100%;min-width:0;padding:8px}
}
@media(max-width:430px){.brand-colour-presets,.brand-colour-actions{grid-template-columns:1fr}.brand-colour-preview>span,.brand-colour-preview>b{width:36px;height:36px;flex-basis:36px}.brand-colour-preview>div{flex-basis:100%;order:3}}
/* Remove excess top workspace space and improve footer readability v236 */
body:not(.auth-body)>main>header{width:100%!important;height:82px!important;min-height:82px!important;max-height:82px!important;margin:0 0 10px!important;padding:8px 2px 11px!important;overflow:visible!important;align-items:center!important;flex:0 0 82px!important}
body:not(.auth-body)>main>header>div:first-child{min-height:0!important;align-self:center!important}
body:not(.auth-body)>main>header .header-actions{align-self:center!important}
body:not(.auth-body)>main>.workspace-tabs{margin-top:0!important}
body:not(.auth-body)>main>.page.active{margin-top:0!important;padding-top:0!important}
body:not(.auth-body)>main>.panel-footer{min-height:72px!important;max-height:86px!important;padding:11px 17px!important}
body:not(.auth-body)>main>.panel-footer .panel-footer-copyright{color:#eaf8f3!important;font-size:11px!important;font-weight:800!important;line-height:1.45!important}
body:not(.auth-body)>main>.panel-footer .panel-footer-support a{color:#fff!important;font-size:10.5px!important;font-weight:800!important;line-height:1.25!important}
body:not(.auth-body)>main>.panel-footer .panel-footer-support a span{color:color-mix(in srgb,var(--theme-primary) 38%,#fff)!important;font-size:8px!important;font-weight:900!important}
@media(max-width:760px){body:not(.auth-body)>main>header{height:68px!important;min-height:68px!important;max-height:68px!important;margin:0 0 7px!important;padding:5px 5px 6px 58px!important;flex-basis:68px!important}body:not(.auth-body)>main>header>div:first-child{min-height:0!important}body:not(.auth-body)>main>.page.active{padding-top:0!important}body:not(.auth-body)>main>.panel-footer{min-height:76px!important;max-height:98px!important;padding:9px 10px calc(10px + env(safe-area-inset-bottom))!important}body:not(.auth-body)>main>.panel-footer .panel-footer-copyright{font-size:9.5px!important}body:not(.auth-body)>main>.panel-footer .panel-footer-support a{font-size:9px!important}body:not(.auth-body)>main>.panel-footer .panel-footer-support a span{font-size:7px!important}}
/* Final global-header reserved-space correction v237 */
@media(min-width:761px){
  body:not(.auth-body)>main{padding-top:4px!important}
  body:not(.auth-body)>main>header{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;height:58px!important;min-height:58px!important;max-height:58px!important;margin:0 0 7px!important;padding:4px 2px 6px!important;flex:0 0 58px!important;align-content:center!important;align-items:center!important}
  body:not(.auth-body)>main>header>div:first-child{height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
  body:not(.auth-body)>main>header .header-actions{height:auto!important;min-height:0!important;margin:0!important}
  body:not(.auth-body)>main>header .sync-state,body:not(.auth-body)>main>header .header-refresh,body:not(.auth-body)>main>header .user-menu-toggle{min-height:40px!important;max-height:44px!important}
}
@media(max-width:760px){
  body:not(.auth-body)>main{padding-top:calc(2px + env(safe-area-inset-top))!important}
  body:not(.auth-body)>main>header{position:relative!important;inset:auto!important;height:60px!important;min-height:60px!important;max-height:60px!important;margin:0 0 6px!important;padding:3px 4px 4px 56px!important;flex:0 0 60px!important;align-content:center!important}
  body:not(.auth-body)>main>header>div:first-child{height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
}
/* Force narrow and zoomed viewports to a single compact global-header row v238 */
@media(max-width:760px){
  body:not(.auth-body)>main{padding-top:calc(1px + env(safe-area-inset-top))!important}
  body:not(.auth-body)>main>header{display:flex!important;grid-template-columns:none!important;width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0 0 5px!important;padding:3px 4px 3px 54px!important;overflow:visible!important;flex:0 0 48px!important;align-content:normal!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important}
  body:not(.auth-body)>main>header>div:first-child{display:none!important}
  body:not(.auth-body)>main>header .header-actions{display:flex!important;width:auto!important;min-width:0!important;height:42px!important;margin:0!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;flex:0 1 auto!important;flex-wrap:nowrap!important}
  body:not(.auth-body)>main>header .sync-state{min-width:0!important;min-height:38px!important;max-height:38px!important;padding:7px 8px 7px 22px!important;font-size:8px!important}
  body:not(.auth-body)>main>header .header-refresh{width:40px!important;min-width:40px!important;min-height:38px!important;max-height:38px!important;padding:6px!important}
  body:not(.auth-body)>main>header .user-menu-toggle{width:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important}
  .mobile-nav-toggle{top:calc(6px + env(safe-area-inset-top))!important}
}
/* Remove only the reserved blank area before the global header v239 */
html,body:not(.auth-body){margin-top:0!important;padding-top:0!important}
body:not(.auth-body)>main{position:relative!important;top:0!important;margin-top:0!important;padding-top:0!important;padding-block-start:0!important;transform:none!important}
body:not(.auth-body)>main>header{top:0!important;margin-top:0!important;margin-block-start:0!important;transform:none!important}
@media(min-width:761px){body:not(.auth-body)>main{padding-top:0!important}body:not(.auth-body)>main>header{margin-top:0!important}}
@media(max-width:760px){html,body:not(.auth-body){padding-top:0!important}body:not(.auth-body)>main{top:0!important;margin-top:0!important;padding-top:0!important;padding-block-start:0!important}body:not(.auth-body)>main>header{top:0!important;margin-top:0!important;margin-block-start:0!important}.mobile-nav-toggle{margin-top:0!important}}
/* Structurally anchor the global header at the shell top; no pre-header gap v240 */
body:not(.auth-body)>main{position:relative!important;margin-top:0!important}
@media(min-width:761px){
  body:not(.auth-body)>main{padding-top:64px!important}
  body:not(.auth-body)>main>header{position:absolute!important;z-index:80!important;inset:0 0 auto 0!important;top:0!important;right:0!important;left:0!important;display:flex!important;width:auto!important;height:58px!important;min-height:58px!important;max-height:58px!important;margin:0!important;padding:4px 2px 6px!important;align-items:center!important;flex:none!important}
}
@media(max-width:760px){
  body:not(.auth-body)>main{padding-top:53px!important;padding-block-start:53px!important}
  body:not(.auth-body)>main>header{position:absolute!important;z-index:80!important;inset:0 0 auto 0!important;top:0!important;right:0!important;left:0!important;display:flex!important;width:auto!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;padding:3px 4px 3px 54px!important;align-items:center!important;justify-content:flex-end!important;flex:none!important}
}
/* Remove the separate global-header row and mount its controls in each page hero v241 */
body:not(.auth-body)>main{padding-top:0!important;padding-block-start:0!important}
body:not(.auth-body)>main>header.header-actions-mounted{display:none!important;width:0!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
body:not(.auth-body) .page>.dashboard-hero,body:not(.auth-body) .page>.campaign-hero,body:not(.auth-body) .page>.shared-page-hero,body:not(.auth-body) .page>.phonebook-hero,body:not(.auth-body) .page>.provider-hero,body:not(.auth-body) .page>.profile-hero{flex-wrap:wrap!important}
body:not(.auth-body) .page-header-actions{display:flex!important;width:auto!important;min-width:0!important;height:auto!important;margin-left:auto!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:0 1 auto!important;flex-wrap:nowrap!important}
body:not(.auth-body) .page-header-actions .sync-state{display:inline-flex!important;min-height:38px!important;padding:8px 11px 8px 27px!important;border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.11)!important;color:#eafff7!important;white-space:nowrap!important}
body:not(.auth-body) .page-header-actions .sync-state:before{background:#55e0b0!important}
body:not(.auth-body) .page-header-actions .header-refresh,body:not(.auth-body) .page-header-actions .user-menu-toggle{min-height:40px!important;border-color:rgba(255,255,255,.2)!important;background:rgba(255,255,255,.94)!important;color:#143d32!important;box-shadow:0 5px 14px rgba(0,20,18,.13)!important}
body:not(.auth-body) .page-header-actions .header-refresh span{color:#143d32!important}body:not(.auth-body) .page-header-actions .user-menu{color:#17372e!important;text-align:left!important}
@media(max-width:900px){body:not(.auth-body) .page-header-actions{width:100%!important;margin:8px 0 0!important;justify-content:flex-end!important;order:10!important}body:not(.auth-body) .page-header-actions .sync-state{margin-right:auto!important}}
@media(max-width:760px){body:not(.auth-body)>main{padding-top:0!important;padding-block-start:0!important}body:not(.auth-body) .page-header-actions{display:grid!important;width:100%!important;margin-top:7px!important;grid-template-columns:minmax(0,1fr) 40px 40px!important;gap:5px!important}body:not(.auth-body) .page-header-actions .sync-state{width:100%!important;margin:0!important;justify-content:center!important}body:not(.auth-body) .page-header-actions .header-refresh{width:40px!important;min-width:40px!important}body:not(.auth-body) .page-header-actions .header-account{width:40px!important}.mobile-nav-toggle{top:8px!important}}
/* Align mounted global controls with the Dashboard right column v242 */
@media(min-width:1051px){
  body:not(.auth-body) #overview>.dashboard-hero{grid-template-rows:auto auto!important;gap:12px 28px!important}
  body:not(.auth-body) #overview>.dashboard-hero>div:first-child{grid-column:1!important;grid-row:1/3!important;align-self:center!important}
  body:not(.auth-body) #overview>.dashboard-hero>.dashboard-quick-actions{grid-column:2!important;grid-row:1!important}
  body:not(.auth-body) #overview>.dashboard-hero>.page-header-actions{width:auto!important;margin:0!important;grid-column:2!important;grid-row:2!important;justify-self:end!important;align-self:end!important;order:initial!important}
}
@media(max-width:1050px){body:not(.auth-body) #overview>.dashboard-hero>.page-header-actions{width:100%!important;margin:0!important;justify-self:stretch!important;justify-content:flex-end!important}}
@media(max-width:760px){body:not(.auth-body) #overview>.dashboard-hero>.page-header-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 40px 40px!important}}
/* Top-right hero controls and consistent page action sizing v243 */
@media(min-width:1051px){
  body:not(.auth-body) #overview>.dashboard-hero{grid-template-rows:auto auto!important;align-items:start!important;gap:10px 28px!important}
  body:not(.auth-body) #overview>.dashboard-hero>div:first-child{grid-column:1!important;grid-row:1/3!important;align-self:center!important}
  body:not(.auth-body) #overview>.dashboard-hero>.page-header-actions{grid-column:2!important;grid-row:1!important;margin:0!important;justify-self:end!important;align-self:start!important}
  body:not(.auth-body) #overview>.dashboard-hero>.dashboard-quick-actions{grid-column:2!important;grid-row:2!important;align-self:start!important}
}
body:not(.auth-body) .page>.shared-page-hero,body:not(.auth-body) .page>.campaign-hero,body:not(.auth-body) .page>.phonebook-hero,body:not(.auth-body) .page>.provider-hero,body:not(.auth-body) .page>.profile-hero{align-items:flex-start!important}
body:not(.auth-body) .page-header-actions{align-self:flex-start!important}
body:not(.auth-body) .page-header-actions .sync-state,body:not(.auth-body) .page-header-actions .header-refresh,body:not(.auth-body) .page-header-actions .user-menu-toggle{height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important}
body:not(.auth-body) .page-header-actions .header-refresh{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px 12px!important}
body:not(.auth-body) .page-header-actions .user-menu-toggle{display:flex!important;align-items:center!important;padding:5px 9px!important}

body:not(.auth-body) .cardhead>button,
body:not(.auth-body) .settings-actions>button,
body:not(.auth-body) .settings-actions>.button-link,
body:not(.auth-body) .cleanup-actions>button,
body:not(.auth-body) .template-row-actions>button,
body:not(.auth-body) .phonebook-toolbar>button,
body:not(.auth-body) .report-pagination>button,
body:not(.auth-body) .campaign-wizard-nav>button,
body:not(.auth-body) .flow-actions>button,
body:not(.auth-body) .flow-studio-actions>button,
body:not(.auth-body) .brand-colour-presets>button,
body:not(.auth-body) .brand-colour-actions>button{display:inline-flex!important;height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important;align-items:center!important;justify-content:center!important;padding:8px 13px!important;line-height:1.2!important;vertical-align:middle!important;white-space:nowrap!important}
body:not(.auth-body) .template-row-actions,body:not(.auth-body) .settings-actions,body:not(.auth-body) .cleanup-actions,body:not(.auth-body) .phonebook-toolbar,body:not(.auth-body) .campaign-wizard-nav,body:not(.auth-body) .flow-actions,body:not(.auth-body) .flow-studio-actions{align-items:center!important;gap:8px!important}
body:not(.auth-body) .template-row-actions>button.small,body:not(.auth-body) .cleanup-actions>button.small{height:36px!important;min-height:36px!important;max-height:36px!important;padding:7px 10px!important}
body:not(.auth-body) .cardhead>select,body:not(.auth-body) .cardhead>input,body:not(.auth-body) .settings-actions>select,body:not(.auth-body) .settings-actions>input,body:not(.auth-body) .phonebook-toolbar>input{height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box!important}
@media(max-width:760px){body:not(.auth-body) .page-header-actions .sync-state,body:not(.auth-body) .page-header-actions .header-refresh,body:not(.auth-body) .page-header-actions .user-menu-toggle{height:38px!important;min-height:38px!important;max-height:38px!important}body:not(.auth-body) .cardhead>button,body:not(.auth-body) .settings-actions>button,body:not(.auth-body) .settings-actions>.button-link,body:not(.auth-body) .cleanup-actions>button,body:not(.auth-body) .phonebook-toolbar>button,body:not(.auth-body) .campaign-wizard-nav>button{width:100%!important;height:42px!important;min-height:42px!important;max-height:none!important;white-space:normal!important}}
/* Keep Embedded Signup controls at the hero top-right v244 */
@media(min-width:901px){
  body:not(.auth-body) #provider>.provider-hero{position:relative!important;min-height:190px!important;padding-right:440px!important;align-items:flex-start!important}
  body:not(.auth-body) #provider>.provider-hero>.page-header-actions{position:absolute!important;top:22px!important;right:28px!important;width:auto!important;margin:0!important;align-self:auto!important;justify-content:flex-end!important;order:initial!important}
  body:not(.auth-body) #provider>.provider-hero>#providerReadinessBadge{position:absolute!important;top:76px!important;right:28px!important;margin:0!important}
}
@media(max-width:900px){body:not(.auth-body) #provider>.provider-hero{display:flex!important;padding-right:17px!important;flex-direction:column!important}body:not(.auth-body) #provider>.provider-hero>.page-header-actions{position:static!important;width:100%!important;margin:0 0 8px!important;align-self:stretch!important;justify-content:flex-end!important;order:-2!important}body:not(.auth-body) #provider>.provider-hero>div:first-child{order:0!important}body:not(.auth-body) #provider>.provider-hero>#providerReadinessBadge{position:static!important;align-self:flex-end!important;order:-1!important}}
/* Dashboard single Wallet action v245 */
body:not(.auth-body) #overview .dashboard-wallet-action{display:grid!important;width:min(100%,480px)!important;margin-left:auto!important;grid-template-columns:1fr!important;justify-self:end!important}
body:not(.auth-body) #overview .dashboard-wallet-action>button{width:100%!important;min-height:44px!important;text-align:center!important;font-weight:850!important}
@media(max-width:1050px){body:not(.auth-body) #overview .dashboard-wallet-action{width:100%!important;justify-self:stretch!important}}
/* Live balance inside the Dashboard Wallet action v247 */
body:not(.auth-body) #overview .dashboard-wallet-action>button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding-right:12px!important;padding-left:16px!important;text-align:left!important}
body:not(.auth-body) #overview .dashboard-wallet-action>button>span{font-weight:850!important}
body:not(.auth-body) #overview #headerWalletBalance{display:inline-flex;min-width:72px;min-height:30px;padding:5px 10px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:14px;font-weight:900;line-height:1}
@media(max-width:760px){body:not(.auth-body) #overview #headerWalletBalance{min-width:64px;font-size:12px}}
/* Shared mobile hero controls and natural document footer v248 */
@media(max-width:760px){
  html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
  body:not(.auth-body):not(.inbox-page){height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important}
  body:not(.auth-body):not(.inbox-page)>main{height:auto!important;min-height:100dvh!important;overflow:visible!important}
  body:not(.auth-body):not(.inbox-page)>main>.page.active{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;flex:0 0 auto!important}
  body:not(.auth-body):not(.inbox-page)>main>.panel-footer{position:relative!important;inset:auto!important;width:100%!important;min-height:0!important;max-height:none!important;margin:12px 0 0!important;padding:13px 12px calc(14px + env(safe-area-inset-bottom))!important;overflow:visible!important;flex:0 0 auto!important;transform:none!important}

  body:not(.auth-body) .page-header-actions{display:grid!important;width:100%!important;grid-template-columns:42px minmax(0,1fr) 42px 42px!important;align-items:center!important;gap:6px!important}
  body:not(.auth-body) .page-header-actions .page-mobile-nav-toggle{position:static!important;inset:auto!important;display:grid!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:0!important;align-content:center!important;justify-content:center!important;gap:5px!important;border:1px solid rgba(255,255,255,.24)!important;border-radius:11px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 5px 14px rgba(0,20,18,.13)!important;transform:none!important}
  body:not(.auth-body).mobile-nav-open .page-header-actions .page-mobile-nav-toggle{position:fixed!important;z-index:120!important;top:calc(15px + env(safe-area-inset-top))!important;right:14px!important;bottom:auto!important;left:auto!important}
  body:not(.auth-body) .page-header-actions .page-mobile-nav-toggle span{display:block!important;width:20px!important;height:2px!important;margin:0!important;padding:0!important;border:0!important;border-radius:2px!important;background:#163b45!important}
  body:not(.auth-body) .page-header-actions .sync-state{width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:8px 8px 8px 25px!important;overflow:hidden!important;justify-content:center!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body:not(.auth-body) .page-header-actions .header-refresh{display:inline-grid!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:0!important;overflow:hidden!important;place-items:center!important;font-size:0!important}
  body:not(.auth-body) .page-header-actions .header-refresh:after{display:none!important;content:none!important}
  body:not(.auth-body) .page-header-actions .header-refresh>span{display:grid!important;width:30px!important;height:30px!important;margin:0!important;padding:0!important;place-items:center!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#143d32!important;font-size:19px!important;line-height:1!important}
  body:not(.auth-body) .page-header-actions .header-account{width:42px!important;min-width:42px!important;max-width:42px!important;margin:0!important}
  body:not(.auth-body) .page-header-actions .user-menu-toggle{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:4px!important}
  body:not(.auth-body) .page-header-actions .user-menu-toggle>span{width:32px!important;height:32px!important;margin:0!important;padding:0!important;border:0!important}
}
@media(max-width:430px){
  body:not(.auth-body):not(.inbox-page)>main>.panel-footer{gap:9px!important}
  body:not(.auth-body):not(.inbox-page)>main>.panel-footer .panel-footer-copyright{font-size:10px!important;line-height:1.45!important}
  body:not(.auth-body):not(.inbox-page)>main>.panel-footer .panel-footer-support{display:grid!important;width:100%!important;grid-template-columns:1fr!important;gap:7px!important}
  body:not(.auth-body):not(.inbox-page)>main>.panel-footer .panel-footer-support a{width:100%!important;min-height:40px!important;padding:8px 10px!important;overflow:visible!important;flex:none!important;font-size:10px!important;white-space:normal!important}
  body:not(.auth-body):not(.inbox-page)>main>.panel-footer .panel-footer-support a span{font-size:7.5px!important}
}
/* Strict desktop/mobile navigation separation and Chat access v249 */
body:not(.auth-body)>#mobileNavToggle{display:none!important}
@media(max-width:760px){
  body:not(.auth-body)>#mobileNavToggle{position:fixed!important;z-index:120!important;top:calc(10px + env(safe-area-inset-top))!important;right:auto!important;bottom:auto!important;left:10px!important;display:grid!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:0!important;align-content:center!important;justify-content:center!important;gap:5px!important;border:1px solid #cfe0e2!important;border-radius:11px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 7px 18px rgba(12,51,64,.16)!important;transform:none!important}
  body.mobile-nav-open:not(.auth-body)>#mobileNavToggle{top:calc(15px + env(safe-area-inset-top))!important;right:14px!important;left:auto!important}
  body:not(.auth-body)>#mobileNavToggle>span{display:block!important;width:20px!important;height:2px!important;margin:0!important;padding:0!important;border:0!important;border-radius:2px!important;background:#163b45!important;box-shadow:none!important;transition:transform .2s ease,opacity .2s ease!important}

  body:not(.auth-body) .page-header-actions{display:grid!important;width:100%!important;min-width:0!important;margin-top:7px!important;padding-left:50px!important;grid-template-columns:minmax(0,1fr) 42px 42px!important;align-items:center!important;gap:6px!important}
  body:not(.auth-body) .page-header-actions .sync-state{width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:8px 8px 8px 25px!important;overflow:hidden!important;justify-content:center!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body:not(.auth-body) .page-header-actions .header-refresh{display:inline-grid!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:0!important;overflow:hidden!important;place-items:center!important;font-size:0!important}
  body:not(.auth-body) .page-header-actions .header-refresh:after{display:none!important;content:none!important}
  body:not(.auth-body) .page-header-actions .header-refresh>span{display:grid!important;width:30px!important;height:30px!important;margin:0!important;padding:0!important;place-items:center!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#143d32!important;font-size:19px!important;line-height:1!important}
  body:not(.auth-body) .page-header-actions .header-account{width:42px!important;min-width:42px!important;max-width:42px!important;margin:0!important}
  body:not(.auth-body) .page-header-actions .user-menu-toggle{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;margin:0!important;padding:4px!important}
  body:not(.auth-body) .page-header-actions .user-menu-toggle>span{width:32px!important;height:32px!important;margin:0!important;padding:0!important;border:0!important}

  body:not(.auth-body) .page>.shared-page-hero>div:first-child,
  body:not(.auth-body) .page>.dashboard-hero>div:first-child,
  body:not(.auth-body) .page>.campaign-hero>div:first-child,
  body:not(.auth-body) .page>.phonebook-hero>div:first-child,
  body:not(.auth-body) .page>.provider-hero>div:first-child,
  body:not(.auth-body) .page>.profile-hero>div:first-child{min-width:0!important;padding-left:50px!important}

  body.inbox-page:not(.auth-body)>#mobileNavToggle{display:grid!important}
}
@media(min-width:761px){
  body:not(.auth-body)>#mobileNavToggle,
  body:not(.auth-body) .page-header-actions>#mobileNavToggle{display:none!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important}
}
/* Let the global account dropdown escape every page hero v250 */
body:not(.auth-body) .page.active{position:relative!important}
body:not(.auth-body) .page>.dashboard-hero,
body:not(.auth-body) .page>.campaign-hero,
body:not(.auth-body) .page>.shared-page-hero,
body:not(.auth-body) .page>.phonebook-hero,
body:not(.auth-body) .page>.provider-hero,
body:not(.auth-body) .page>.profile-hero{position:relative!important;z-index:30!important;overflow:visible!important}
body:not(.auth-body) .page-header-actions{position:relative!important;z-index:60!important}
body:not(.auth-body) .page-header-actions .header-account{position:relative!important;z-index:70!important}
body:not(.auth-body) .page-header-actions .user-menu{z-index:100!important;max-height:min(68vh,560px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important}
body:not(.auth-body) .page-header-actions .user-menu.open{display:grid!important}
@media(max-width:760px){
  body:not(.auth-body) .page-header-actions .user-menu{position:fixed!important;z-index:150!important;top:calc(62px + env(safe-area-inset-top))!important;right:10px!important;left:10px!important;width:auto!important;max-height:calc(100dvh - 78px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
}
.campaign-send-result{display:block;margin:12px 0 0;padding:13px 15px;border:1px solid #efb5ad;border-left:4px solid #c94135;border-radius:11px;background:#fff4f2;color:#7d2f27;font-family:inherit;font-size:11px;font-weight:700;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 8px 20px rgba(130,45,35,.08)}.campaign-send-result[hidden]{display:none!important}
@media(max-width:760px){.campaign-send-result{padding:12px;font-size:10px}}

/* Admin wallet ledger v251 */
#billingEditor .billing-account-select{grid-column:1/-1;max-width:620px}
#billingEditor .wallet-current-balance{display:flex;min-height:88px;padding:14px 16px;box-sizing:border-box;flex-direction:column;justify-content:center;gap:4px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,#ecfff8,#f7fffd)}
#billingEditor .wallet-current-balance small{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
#billingEditor .wallet-current-balance strong{color:var(--g);font-size:26px;line-height:1.15}
#billingEditor .wallet-current-balance span{overflow-wrap:anywhere;color:var(--muted);font-size:13px;font-weight:700}
#billingEditor .wallet-ledger>.cardhead{align-items:flex-end;margin-bottom:12px}
#billingEditor .wallet-ledger>.cardhead h3{margin:0 0 4px}
#billingEditor .wallet-ledger>.cardhead p{margin:0;color:var(--muted)}
#billingEditor .wallet-ledger-table{min-width:1450px}
#billingEditor .wallet-ledger-table th{white-space:nowrap}
#billingEditor .wallet-ledger-table td{vertical-align:middle}
#billingEditor .wallet-ledger-table td small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.wallet-role-badge{display:inline-flex;padding:5px 9px;border:1px solid #b9ddd1;border-radius:999px;background:#edf9f5;color:#086d53;font-size:11px;font-weight:900;text-transform:uppercase}
.wallet-role-badge.reseller{border-color:#b9ccef;background:#eef4ff;color:#244f9f}
.wallet-role-badge.deleted{border-color:#d7d7d7;background:#f4f4f4;color:#666}
.wallet-debit{color:#a71920;font-weight:900}
.wallet-credit{color:#087657;font-weight:900}
.wallet-entry-delete{min-width:72px}
@media(max-width:800px){
  #billingEditor .billing-account-select{max-width:none}
  #billingEditor .wallet-current-balance{min-height:76px}
  #billingEditor .wallet-current-balance strong{font-size:23px}
  #billingEditor .wallet-ledger>.cardhead{align-items:stretch}
  #billingEditor #refreshWalletLedger{width:100%}
  #billingEditor .wallet-ledger-table{min-width:1300px}
}
/* Admin wallet page v254 */
.admin-wallet-page .admin-wallet-page-controls{margin-bottom:14px}
.admin-wallet-page .billing-account-select{grid-column:1/-1;max-width:720px}
.admin-wallet-page .wallet-current-balance{display:flex;min-height:88px;padding:14px 16px;box-sizing:border-box;flex-direction:column;justify-content:center;gap:4px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,#ecfff8,#f7fffd)}
.admin-wallet-page .wallet-current-balance small,.wallet-total-balance small{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.admin-wallet-page .wallet-current-balance strong,.wallet-total-balance strong{color:var(--g);font-size:26px;line-height:1.15}
.admin-wallet-page .wallet-current-balance span{overflow-wrap:anywhere;color:var(--muted);font-size:13px;font-weight:700}
.wallet-total-balance{display:flex;min-width:190px;padding:12px 16px;box-sizing:border-box;flex-direction:column;gap:4px;align-items:flex-end;border:1px solid var(--line);border-radius:12px;background:#f4fffb}
.admin-wallet-page .wallet-ledger>.cardhead{align-items:flex-end;margin-bottom:12px}
.admin-wallet-page .wallet-ledger>.cardhead h3{margin:0 0 4px}
.admin-wallet-page .wallet-ledger>.cardhead p{margin:0;color:var(--muted)}
.admin-wallet-page .wallet-ledger-table{min-width:1450px}
.admin-wallet-page .wallet-ledger-table th{white-space:nowrap}
.admin-wallet-page .wallet-ledger-table td{vertical-align:middle}
.admin-wallet-page .wallet-ledger-table td small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
#campaign .campaign-send-result{white-space:normal}
@media(max-width:800px){
  .admin-wallet-page>.cardhead,.admin-wallet-page .wallet-ledger>.cardhead{align-items:stretch;flex-direction:column}
  .admin-wallet-page .billing-account-select{max-width:none}
  .admin-wallet-page .wallet-current-balance{min-height:76px}
  .admin-wallet-page .wallet-current-balance strong,.wallet-total-balance strong{font-size:23px}
  .wallet-total-balance{width:100%;min-width:0;align-items:flex-start}
  .admin-wallet-page #refreshAdminWalletPage{width:100%}
  .admin-wallet-page .wallet-ledger-table{min-width:1300px}
}
/* Wallet ledger filters and export v257 */
.wallet-ledger-actions,.wallet-own-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.wallet-own-actions{flex-direction:column;align-items:flex-end}
.wallet-own-actions>strong{color:var(--g);font-size:28px}
.wallet-ledger-filters{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(170px,.7fr) auto;gap:12px;align-items:end;margin:0 0 14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fcfb}
.wallet-ledger-filters label{display:flex;flex-direction:column;gap:6px;font-weight:800}
.wallet-ledger-filters select{width:100%}
.wallet-ledger-filters>span{align-self:center;color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}
#walletAdminPageRows tr[hidden]{display:none!important}
@media(max-width:800px){
  .wallet-ledger-actions,.wallet-own-actions{width:100%;align-items:stretch;flex-direction:column}
  .wallet-ledger-actions button,.wallet-own-actions button{width:100%}
  .wallet-own-actions>strong{font-size:24px}
  .wallet-ledger-filters{grid-template-columns:1fr}
  .wallet-ledger-filters>span{align-self:start}
}
/* Wallet ledger date filters v258 */
.wallet-ledger-filters input[type=date]{min-width:155px}.wallet-ledger-filters button{align-self:end;white-space:nowrap}

/* Wallet ledger single-row filters and Send Campaign fixed preview v259 */
@media(min-width:1101px){.wallet-ledger-filters{display:grid!important;grid-template-columns:minmax(280px,2fr) minmax(150px,.9fr) 155px 155px auto auto!important;align-items:end!important;gap:10px!important}.wallet-ledger-filters>label{min-width:0!important;margin:0!important}.wallet-ledger-filters>label select,.wallet-ledger-filters>label input{width:100%!important}.wallet-ledger-filters>button{width:auto!important;min-width:105px!important;margin:0!important}.wallet-ledger-filters>#walletLedgerFilterState{align-self:center;white-space:nowrap}}
.campaign-preview-media{display:block;width:calc(100% + 22px);max-height:145px;margin:-11px -11px 10px;object-fit:cover;border-radius:9px 2px 0 0;background:#dce7e2}.campaign-preview-document{display:flex;align-items:center;gap:8px;margin:-3px 0 9px;padding:8px;border:1px solid #dce6e2;border-radius:7px;background:#f5f7f6}.campaign-preview-document b{display:grid;place-items:center;width:30px;height:36px;border-radius:4px;background:#d54a42;color:#fff;font-size:7px}.campaign-preview-document span{min-width:0;overflow:hidden;color:#38544b;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.campaign-preview-body{white-space:pre-wrap}.campaign-preview-buttons{display:grid;margin:9px -11px -11px;border-top:1px solid #e2e8e5}.campaign-preview-buttons span{display:block;padding:7px 6px;border-bottom:1px solid #e7ecea;color:#087c6d;font-size:8px;font-weight:800;text-align:center}.campaign-preview-buttons span:last-child{border-bottom:0}
@media(min-width:1051px){#bulk.page.active{display:grid!important;height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr);gap:10px!important}#bulk .campaign-hero{min-height:0;margin:0;padding:12px 18px;border-radius:13px}#bulk .campaign-hero h2{margin:2px 0;font-size:21px}#bulk .campaign-limit{padding:7px 11px}#bulk .campaign-limit strong{font-size:21px}#bulk .campaign-workspace,#bulk .campaign-main-grid{height:100%;min-height:0;overflow:hidden}#bulk .campaign-main-grid{grid-template-columns:minmax(0,1fr) minmax(300px,340px)}#bulk .campaign-editor{height:100%;min-height:0;padding:16px 20px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}#bulk .campaign-preview-panel{height:100%;min-height:0;overflow:hidden!important}#bulk .campaign-preview-sticky{position:relative;top:auto;display:flex;height:100%;min-height:0;padding:11px 14px;overflow:hidden;flex-direction:column}#bulk .campaign-preview-title{flex:0 0 auto;margin-bottom:7px}#bulk .campaign-phone{width:100%;max-width:250px;flex:0 1 auto;border-width:6px;border-radius:28px}#bulk .campaign-phone-screen{height:min(27vh,230px);min-height:155px;padding:12px 9px 8px;overflow-y:auto}#bulk .campaign-test-box{flex:0 0 auto;gap:4px;margin-top:7px;padding-top:7px}#bulk .campaign-test-box p{display:none}#bulk .campaign-test-box input,#bulk .campaign-test-box button{min-height:33px;padding:6px 9px}}
@media(max-width:1050px){#bulk.page.active{height:auto!important;overflow:visible!important}#bulk .campaign-editor,#bulk .campaign-preview-panel,#bulk .campaign-preview-sticky{height:auto!important;overflow:visible!important}.campaign-preview-media{max-height:180px}}
/* Compact admin wallet adjustment v260 */
@media(min-width:1101px){.admin-wallet-page .admin-wallet-page-controls{display:grid!important;grid-template-columns:minmax(250px,1.6fr) minmax(170px,.85fr) minmax(125px,.65fr) minmax(165px,.8fr) minmax(210px,1fr) auto!important;gap:10px!important;margin:12px 0!important;padding:12px!important;align-items:end!important}.admin-wallet-page .admin-wallet-page-controls:before{grid-column:1/-1!important;margin:0 0 2px!important;font-size:15px!important}.admin-wallet-page .admin-wallet-page-controls>label{min-width:0!important;margin:0!important;gap:5px!important}.admin-wallet-page .admin-wallet-page-controls input,.admin-wallet-page .admin-wallet-page-controls select{min-height:40px!important;padding:8px 10px!important}.admin-wallet-page .wallet-current-balance{min-width:0!important;min-height:40px!important;height:40px!important;padding:5px 10px!important;gap:1px!important;border-radius:8px!important}.admin-wallet-page .wallet-current-balance small{font-size:7px!important}.admin-wallet-page .wallet-current-balance strong{font-size:15px!important}.admin-wallet-page .wallet-current-balance span{overflow:hidden!important;font-size:8px!important;text-overflow:ellipsis!important;white-space:nowrap!important}.admin-wallet-page #walletPageAdjust{width:auto!important;min-width:120px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:7px 11px!important;white-space:nowrap!important}}
@media(min-width:761px) and (max-width:1100px){.admin-wallet-page .admin-wallet-page-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-wallet-page #walletPageAdjust{align-self:end;min-height:42px}}
/* Campaign preview visibility and bottom-space correction v261 */
@media(min-width:1051px){body:not(.auth-body)>main{padding-bottom:3px!important}body:not(.auth-body)>main>.panel-footer{min-height:56px!important;max-height:64px!important;margin:4px auto 0!important;padding:7px 14px!important;transform:none!important}body:not(.auth-body)>main>.panel-footer .panel-footer-support a{min-height:32px!important;padding:5px 9px!important}#bulk .campaign-main-grid{grid-template-columns:minmax(0,1fr) minmax(370px,420px)!important}#bulk .campaign-preview-sticky{padding:10px 16px!important}#bulk .campaign-preview-title{margin-bottom:6px!important}#bulk .campaign-phone{width:min(100%,300px)!important;max-width:300px!important;border-width:6px!important;border-radius:30px!important;box-shadow:0 12px 26px rgba(8,37,28,.16)!important}#bulk .campaign-phone-screen{height:clamp(250px,34vh,380px)!important;min-height:250px!important;padding:13px 10px 9px!important}#bulk .campaign-message-preview{width:97%!important;font-size:9.5px!important;line-height:1.48!important}#bulk .campaign-preview-media{max-height:170px!important}#bulk .campaign-test-box{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:5px 8px!important;margin-top:6px!important;padding-top:6px!important}#bulk .campaign-test-box>div:first-child{grid-column:1/-1!important}#bulk .campaign-test-box label{min-width:0!important}#bulk .campaign-test-box button{width:auto!important;min-width:108px!important}#bulk #bulkTestState{grid-column:1/-1!important}}
@media(min-width:1051px) and (max-height:760px){#bulk .campaign-phone-screen{height:230px!important;min-height:190px!important}#bulk .campaign-preview-title strong,#bulk .campaign-test-box>div:first-child{display:none!important}body:not(.auth-body)>main>.panel-footer{min-height:50px!important;max-height:54px!important}}
/* Extra compact desktop footer v262 */
@media(min-width:761px){body:not(.auth-body)>main{padding-bottom:0!important}body:not(.auth-body)>main>.panel-footer{min-height:44px!important;max-height:50px!important;margin:3px auto 0!important;padding:4px 11px!important;gap:8px!important;border-radius:10px!important}body:not(.auth-body)>main>.panel-footer:before{font-size:20px!important;bottom:-4px!important}.panel-footer-copyright{font-size:9.5px!important;line-height:1.25!important}.panel-footer-support{gap:5px!important}.panel-footer-support a{min-height:27px!important;padding:4px 8px!important;border-radius:7px!important;font-size:9px!important}.panel-footer-support a span{font-size:6.5px!important}}
/* Fixed global page chrome with center-only scrolling v263 */
@media(min-width:761px){body:not(.auth-body)>main{height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}body:not(.auth-body)>main>.page.active{position:relative!important;min-height:0!important;flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}body:not(.auth-body)>main>.page.active>.shared-page-hero,body:not(.auth-body)>main>.page.active>.campaign-hero,body:not(.auth-body)>main>.page.active>.dashboard-hero,body:not(.auth-body)>main>.page.active>.provider-hero,body:not(.auth-body)>main>.page.active>.phonebook-hero{position:sticky!important;z-index:45!important;top:0!important;flex:0 0 auto!important;margin-top:0!important;box-shadow:0 10px 24px rgba(17,53,67,.12)!important}body:not(.auth-body)>main>.panel-footer{position:relative!important;inset:auto!important;flex:0 0 auto!important;transform:none!important}body.inbox-page #inbox.page.active{display:flex!important;width:100%!important;height:auto!important;min-height:0!important;padding:0 3px 3px!important;overflow:hidden!important;flex:1 1 auto!important;flex-direction:column!important;gap:9px!important}body.inbox-page #inbox.page.active>.shared-page-hero{display:flex!important;position:relative!important;z-index:45!important;top:auto!important;width:100%!important;min-height:72px!important;margin:0!important;padding:12px 17px!important;flex:0 0 auto!important}body.inbox-page #inbox.page.active>.chat-app.card{display:grid!important;width:100%!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;margin:0!important;overflow:hidden!important}}
@media(max-width:760px){body.inbox-page #inbox.page.active>.shared-page-hero{display:flex!important;width:100%!important;margin:0 0 8px!important;padding:12px 13px!important}body.inbox-page #inbox.page.active>.shared-page-hero .page-header-actions{display:grid!important}body.inbox-page #inbox.page.active>.chat-app.card{min-height:calc(100dvh - 205px)!important}}
/* Equal global page headers and aligned actions v264 */
@media(min-width:1101px){body:not(.auth-body) .page.active>.shared-page-hero,body:not(.auth-body) .page.active>.campaign-hero,body:not(.auth-body) .page.active>.dashboard-hero,body:not(.auth-body) .page.active>.provider-hero,body:not(.auth-body) .page.active>.phonebook-hero{width:100%!important;height:126px!important;min-height:126px!important;max-height:126px!important;margin:0 0 10px!important;padding:16px 22px!important;box-sizing:border-box!important;align-items:center!important;gap:18px!important;border-radius:14px!important}body:not(.auth-body) .page.active>.shared-page-hero>div:first-child,body:not(.auth-body) .page.active>.campaign-hero>div:first-child,body:not(.auth-body) .page.active>.provider-hero>div:first-child,body:not(.auth-body) .page.active>.phonebook-hero>div:first-child{display:flex!important;min-width:0!important;justify-content:center!important;flex-direction:column!important}body:not(.auth-body) .page.active>.shared-page-hero h2,body:not(.auth-body) .page.active>.campaign-hero h2,body:not(.auth-body) .page.active>.dashboard-hero h2,body:not(.auth-body) .page.active>.provider-hero h2,body:not(.auth-body) .page.active>.phonebook-hero h2{margin:3px 0!important;font-size:23px!important;line-height:1.15!important}body:not(.auth-body) .page.active>.shared-page-hero p,body:not(.auth-body) .page.active>.campaign-hero p,body:not(.auth-body) .page.active>.dashboard-hero p,body:not(.auth-body) .page.active>.provider-hero p,body:not(.auth-body) .page.active>.phonebook-hero p{margin:0!important;line-height:1.35!important}body:not(.auth-body) .page-header-actions{display:flex!important;width:auto!important;height:40px!important;min-height:40px!important;margin:0 0 0 auto!important;align-self:center!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:0 0 auto!important;flex-wrap:nowrap!important}body:not(.auth-body) .page-header-actions .sync-state,body:not(.auth-body) .page-header-actions .header-refresh,body:not(.auth-body) .page-header-actions .user-menu-toggle{height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;box-sizing:border-box!important;align-items:center!important}body:not(.auth-body) .page-header-actions .sync-state{min-width:118px!important;justify-content:center!important}body:not(.auth-body) .page-header-actions .header-refresh{min-width:112px!important;justify-content:center!important}body:not(.auth-body) .page-header-actions .user-menu-toggle{min-width:160px!important;max-width:190px!important}body:not(.auth-body) #provider>.provider-hero{position:sticky!important;min-height:126px!important;padding:16px 410px 16px 22px!important;align-items:center!important}body:not(.auth-body) #provider>.provider-hero>.page-header-actions{position:absolute!important;top:16px!important;right:22px!important}body:not(.auth-body) #provider>.provider-hero>#providerReadinessBadge{position:absolute!important;top:70px!important;right:22px!important;margin:0!important}body:not(.auth-body) #overview>.dashboard-hero{grid-template-rows:40px 40px!important;gap:8px 18px!important}body:not(.auth-body) #overview>.dashboard-hero>div:first-child{grid-row:1/3!important}body:not(.auth-body) #overview>.dashboard-hero>.page-header-actions{grid-row:1!important;align-self:center!important}body:not(.auth-body) #overview>.dashboard-hero>.dashboard-quick-actions{grid-row:2!important;align-self:center!important}}
@media(min-width:761px) and (max-width:1100px){body:not(.auth-body) .page.active>.shared-page-hero,body:not(.auth-body) .page.active>.campaign-hero,body:not(.auth-body) .page.active>.dashboard-hero,body:not(.auth-body) .page.active>.provider-hero,body:not(.auth-body) .page.active>.phonebook-hero{min-height:126px!important;margin-bottom:10px!important;padding:15px 17px!important;box-sizing:border-box!important}.page-header-actions{align-items:center!important}.page-header-actions>*{margin-top:0!important;margin-bottom:0!important}}
@media(max-width:760px){body:not(.auth-body) .page.active>.shared-page-hero,body:not(.auth-body) .page.active>.campaign-hero,body:not(.auth-body) .page.active>.dashboard-hero,body:not(.auth-body) .page.active>.provider-hero,body:not(.auth-body) .page.active>.phonebook-hero{width:100%!important;min-height:116px!important;margin:0 0 8px!important;padding:12px 13px!important;box-sizing:border-box!important;border-radius:12px!important}.page-header-actions{align-items:center!important}.page-header-actions .sync-state,.page-header-actions .header-refresh,.page-header-actions .user-menu-toggle{margin:0!important;align-self:center!important}}
/* Uniform panel controls and persistent Inbox header v265 */
body:not(.auth-body) .page button:not(.campaign-wizard-step):not(.chat-contact):not(.flow-target-port):not(.flow-source-port),body:not(.auth-body) .page input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),body:not(.auth-body) .page select{box-sizing:border-box!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin-top:0;margin-bottom:0;line-height:1.2!important;vertical-align:middle!important}body:not(.auth-body) .page button:not(.campaign-wizard-step):not(.chat-contact):not(.flow-target-port):not(.flow-source-port){display:inline-flex;align-items:center;justify-content:center;padding-top:7px!important;padding-bottom:7px!important}body:not(.auth-body) .page input[type=date],body:not(.auth-body) .page input[type=datetime-local]{padding-top:7px!important;padding-bottom:7px!important}body:not(.auth-body) .page .settings-actions,body:not(.auth-body) .page .cardhead,body:not(.auth-body) .page .phonebook-toolbar,body:not(.auth-body) .page .wallet-ledger-actions,body:not(.auth-body) .page .wallet-own-actions{align-items:center!important}body:not(.auth-body) .wallet-ledger-filters{align-items:end!important}body:not(.auth-body) #inbox.page.active>.shared-page-hero{display:flex!important;visibility:visible!important;opacity:1!important}body:not(.auth-body) #inbox.page.active>.shared-page-hero>.page-header-actions{display:flex!important}
@media(max-width:760px){body:not(.auth-body) .page button:not(.campaign-wizard-step):not(.chat-contact):not(.flow-target-port):not(.flow-source-port),body:not(.auth-body) .page input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),body:not(.auth-body) .page select{height:42px!important;min-height:42px!important;max-height:42px!important}body:not(.auth-body) .page .settings-actions,body:not(.auth-body) .page .cleanup-actions,body:not(.auth-body) .page .wallet-ledger-actions,body:not(.auth-body) .page .wallet-own-actions{display:grid!important;width:100%!important;grid-template-columns:1fr!important;gap:7px!important}body:not(.auth-body) .page .settings-actions>* ,body:not(.auth-body) .page .cleanup-actions>*,body:not(.auth-body) .page .wallet-ledger-actions>*,body:not(.auth-body) .page .wallet-own-actions>*{width:100%!important;min-width:0!important}body:not(.auth-body) .wallet-ledger-filters{display:grid!important;width:100%!important;grid-template-columns:1fr!important;gap:8px!important}body:not(.auth-body) .wallet-ledger-filters>*{width:100%!important;min-width:0!important}body:not(.auth-body) #inbox.page.active>.shared-page-hero>.page-header-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 40px 40px!important}}
/* Dashboard, wallet, business profile and chatbot layout refinement v264 */
body:not(.auth-body) #overview .dashboard-wallet-action{width:260px!important;max-width:100%!important}
body:not(.auth-body) #overview .dashboard-wallet-action>button{min-height:42px!important;padding:5px 7px 5px 14px!important;border-color:rgba(255,255,255,.2)!important;background:rgba(255,255,255,.10)!important;box-shadow:none!important}
body:not(.auth-body) #overview .dashboard-wallet-action>button:before{content:"₹";display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.16);color:#fff;font-size:13px;font-weight:900}
body:not(.auth-body) #overview .dashboard-wallet-action>button>span{margin-right:auto!important}
body:not(.auth-body) #overview #headerWalletBalance{min-width:68px;padding:5px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.13);text-align:center;font-size:13px}
body:not(.auth-body) #wallet .wallet-own-filters{display:grid!important;grid-template-columns:220px 220px 138px!important;align-items:end!important;justify-content:start!important;gap:10px!important}
body:not(.auth-body) #wallet .wallet-own-filters label{min-width:0!important}
body:not(.auth-body) #wallet .wallet-own-filters input,body:not(.auth-body) #wallet .wallet-own-filters button{width:100%!important}
body:not(.auth-body) #profile .profile-editor-head{gap:14px}
body:not(.auth-body) #profile .profile-editor-head>div:nth-child(2){min-width:0;flex:1}
body:not(.auth-body) #profile .profile-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
body:not(.auth-body) #profile #toggleBusinessProfileDetails[aria-expanded="true"]{border-color:#80c7b2!important;background:#e9f8f2!important;color:#08745a!important}
body:not(.auth-body) #profile #businessProfileDetails[hidden]{display:none!important}
body:not(.auth-body) #profile #businessProfileDetails{margin-top:14px}
body:not(.auth-body) #chatbot_flows .chatbot-studio{border-radius:14px;overflow:hidden}
body:not(.auth-body) #chatbot_flows .flow-studio-head{padding:14px 16px!important}
body:not(.auth-body) #chatbot_flows .flow-studio-title h2{font-size:19px!important}
body:not(.auth-body) #chatbot_flows .flow-builder{grid-template-columns:238px minmax(0,1fr)!important;min-height:600px!important}
body:not(.auth-body) #chatbot_flows .flow-palette{padding:12px 10px!important}
body:not(.auth-body) #chatbot_flows .flow-palette-item{padding:7px 8px!important}
body:not(.auth-body) #chatbot_flows .flow-workspace{min-height:600px!important}
body:not(.auth-body) #chatbot_flows .flow-canvas-viewport{height:clamp(560px,68vh,760px)!important;min-height:560px!important}
body:not(.auth-body) #chatbot_flows .flow-canvas{grid-template-columns:repeat(auto-fit,minmax(280px,340px))!important;justify-content:center!important;gap:28px 34px!important;min-width:0!important;padding:42px 28px 110px!important}
body:not(.auth-body) #chatbot_flows .flow-node{width:100%!important;max-width:340px!important;min-height:0!important}
body:not(.auth-body) #chatbot_flows .flow-node>header{min-height:64px!important;padding:9px 10px!important;gap:7px!important}
body:not(.auth-body) #chatbot_flows .flow-node>header>div>strong{font-size:12px!important}
body:not(.auth-body) #chatbot_flows .flow-node-toggle,body:not(.auth-body) #chatbot_flows .remove-flow-node{min-width:38px!important;height:36px!important;padding:5px 8px!important;font-size:9px!important}
body:not(.auth-body) #chatbot_flows .flow-node-fields,body:not(.auth-body) #chatbot_flows .flow-connections{padding:10px 11px!important;gap:7px!important}
@media(max-width:1050px){body:not(.auth-body) #overview .dashboard-wallet-action{width:260px!important;justify-self:end!important}body:not(.auth-body) #chatbot_flows .flow-builder{grid-template-columns:210px minmax(0,1fr)!important}body:not(.auth-body) #chatbot_flows .flow-canvas{grid-template-columns:repeat(auto-fit,minmax(260px,320px))!important}}
@media(max-width:780px){body:not(.auth-body) #overview .dashboard-wallet-action{width:100%!important;justify-self:stretch!important}body:not(.auth-body) #wallet .wallet-own-filters{grid-template-columns:1fr!important}body:not(.auth-body) #profile .profile-editor-head{align-items:flex-start!important;flex-wrap:wrap!important}body:not(.auth-body) #profile .profile-head-actions{width:100%;margin-left:0;display:grid;grid-template-columns:1fr 1fr}body:not(.auth-body) #profile .profile-head-actions button{width:100%!important}body:not(.auth-body) #chatbot_flows .flow-builder{grid-template-columns:1fr!important}body:not(.auth-body) #chatbot_flows .flow-canvas{grid-template-columns:1fr!important;padding:24px 12px 80px!important}body:not(.auth-body) #chatbot_flows .flow-node{max-width:100%!important}}
/* Sidebar submenu and chatbot palette readability v265 */
body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;text-indent:0!important;padding-left:24px!important;padding-right:10px!important;white-space:normal!important}
body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button::before{left:10px!important}
body:not(.auth-body) #chatbot_flows .flow-palette-groups{display:grid!important;gap:16px!important}
body:not(.auth-body) #chatbot_flows .flow-palette-group{display:grid!important;gap:5px!important;min-width:0!important}
body:not(.auth-body) #chatbot_flows .flow-palette-group>header{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:28px!important;margin:0 0 3px!important;padding:3px 4px!important}
body:not(.auth-body) #chatbot_flows .flow-palette-group>header>strong{overflow:visible!important;color:#3b5b4f!important;font-size:10px!important;line-height:1.2!important;letter-spacing:.14em!important;white-space:nowrap!important}
body:not(.auth-body) #chatbot_flows .flow-palette-item{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:start!important;width:100%!important;height:auto!important;min-height:64px!important;padding:9px 8px!important;gap:10px!important;overflow:visible!important;text-align:left!important;white-space:normal!important}
body:not(.auth-body) #chatbot_flows .flow-palette-item>span:nth-child(2){display:grid!important;align-content:start!important;gap:3px!important;min-width:0!important;padding-right:0!important}
body:not(.auth-body) #chatbot_flows .flow-palette-item strong{overflow:visible!important;font-size:11px!important;line-height:1.25!important;letter-spacing:.08em!important;white-space:normal!important}
body:not(.auth-body) #chatbot_flows .flow-palette-item small{overflow:visible!important;font-size:9.5px!important;line-height:1.35!important;white-space:normal!important}
body:not(.auth-body) #chatbot_flows .flow-trigger-item{opacity:1!important;padding-right:8px!important}
body:not(.auth-body) #chatbot_flows .flow-trigger-item em{position:static!important;display:block!important;grid-column:2!important;margin-top:2px!important;color:#789087!important;font-size:7px!important;line-height:1.2!important;letter-spacing:.08em!important}
@media(max-width:780px){body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button{padding-left:26px!important}body:not(.auth-body)>aside#panelSidebar nav>.nav-group>.nav-group-items>button::before{left:11px!important}body:not(.auth-body) #chatbot_flows .flow-palette{max-height:390px!important}body:not(.auth-body) #chatbot_flows .flow-palette-groups{grid-template-columns:1fr!important;gap:14px!important}body:not(.auth-body) #chatbot_flows .flow-palette-item{min-height:66px!important}}
/* Dashboard role visibility and delivery graph v266 */
body:not(.auth-body) #overview .dashboard-delivery-chart{padding:18px 20px!important}
body:not(.auth-body) #overview .dashboard-delivery-chart .cardhead{margin-bottom:14px!important;padding-bottom:12px!important;border-bottom:1px solid #e3ece9!important}
body:not(.auth-body) #overview .dashboard-delivery-chart h2{font-size:16px!important}
body:not(.auth-body) #overview .dashboard-delivery-bars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body:not(.auth-body) #overview .dashboard-delivery-row{display:grid;gap:8px;min-width:0;padding:12px;border:1px solid #dbe7e3;border-radius:11px;background:#fbfdfc}
body:not(.auth-body) #overview .dashboard-delivery-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
body:not(.auth-body) #overview .dashboard-delivery-row strong{color:#36554a;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
body:not(.auth-body) #overview .dashboard-delivery-row span{color:#153b34;font-size:18px;font-weight:900}
body:not(.auth-body) #overview .dashboard-delivery-track{height:10px;overflow:hidden;border-radius:999px;background:#e8f0ed}
body:not(.auth-body) #overview .dashboard-delivery-track i{display:block;height:100%;min-width:0;border-radius:inherit;background:#168f75;transition:width .3s ease}
body:not(.auth-body) #overview .dashboard-delivery-row.sent i{background:#137eaa}
body:not(.auth-body) #overview .dashboard-delivery-row.delivered i{background:#0b9b72}
body:not(.auth-body) #overview .dashboard-delivery-row.read i{background:#16b8c1}
body:not(.auth-body) #overview .dashboard-delivery-row.failed i{background:#e45e55}
@media(max-width:900px){body:not(.auth-body) #overview .dashboard-delivery-bars{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){body:not(.auth-body) #overview .dashboard-delivery-bars{grid-template-columns:1fr}body:not(.auth-body) #overview .dashboard-delivery-chart{padding:14px!important}}
/* Proper dashboard delivery chart v267 */
body:not(.auth-body) #overview .dashboard-delivery-bars{display:block!important;width:100%;min-height:260px;padding:8px 8px 0!important;border:1px solid #e0eae7;border-radius:12px;background:linear-gradient(180deg,#fbfefd 0%,#f6faf9 100%);overflow:hidden}
body:not(.auth-body) #overview .dashboard-delivery-svg{display:block;width:100%;height:260px;overflow:visible}
body:not(.auth-body) #overview .chart-grid-line{stroke:#dce8e4;stroke-width:1;stroke-dasharray:5 5}
body:not(.auth-body) #overview .chart-axis-line{stroke:#98ada6;stroke-width:1.25}
body:not(.auth-body) #overview .chart-axis-value{fill:#71847d;font-size:11px;font-weight:700;text-anchor:end}
body:not(.auth-body) #overview .chart-axis-title{fill:#577068;font-size:10px;font-weight:900;letter-spacing:.1em}
body:not(.auth-body) #overview .chart-axis-label{fill:#36564b;font-size:12px;font-weight:850;text-anchor:middle;text-transform:uppercase}
body:not(.auth-body) #overview .chart-bar-value{fill:#173e35;font-size:13px;font-weight:900;text-anchor:middle}
body:not(.auth-body) #overview .delivery-svg-series rect{filter:drop-shadow(0 5px 7px rgba(28,74,61,.13));transition:height .3s ease,y .3s ease}
@media(max-width:600px){body:not(.auth-body) #overview .dashboard-delivery-bars{min-height:220px;padding:4px 0 0!important;overflow-x:auto}body:not(.auth-body) #overview .dashboard-delivery-svg{width:720px;max-width:none;height:220px}}
/* Mobile Inbox details overlap fix v268 */
@media(max-width:850px){
  body.inbox-page #inbox .chat-panel{isolation:isolate!important}
  body.inbox-page #inbox .chat-body{position:relative!important;overflow:hidden!important}
  body.inbox-page #inbox .chat-details{display:none!important;position:absolute!important;z-index:30!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;border-left:0!important;background:#fff!important;box-shadow:none!important;-webkit-overflow-scrolling:touch!important}
  body.inbox-page #inbox .chat-details.open{display:block!important}
  body.inbox-page #inbox .chat-details>header{position:sticky!important;z-index:3!important;top:0!important;min-height:54px!important;padding:8px 12px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 3px 10px rgba(18,53,68,.08)!important}
  body.inbox-page #inbox .chat-details>section{padding:13px 14px!important}
  body.inbox-page #inbox .chat-detail-add{grid-template-columns:minmax(0,1fr) auto!important}
  body.inbox-page #inbox .chat-activity-table{min-width:0!important;width:100%!important;overflow-x:auto!important}
}
@media(max-width:760px){
  body.inbox-page #inbox.page.active>.shared-page-hero{position:relative!important;z-index:2!important;flex:0 0 auto!important}
  body.inbox-page #inbox.page.active>.chat-app.card{position:relative!important;z-index:1!important;margin-top:0!important}
  body.inbox-page #inbox .chat-header{position:relative!important;z-index:20!important;min-height:60px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important}
  body.inbox-page #inbox .chat-body{z-index:10!important}
}
/* Reseller pricing safeguards and compact usage dashboard v270 */
.reseller-usage-collapsible{padding:0!important;overflow:hidden}.reseller-usage-collapsible>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer;list-style:none}.reseller-usage-collapsible>summary::-webkit-details-marker{display:none}.reseller-usage-collapsible>summary>span:first-child{display:flex;flex-direction:column;gap:4px}.reseller-usage-collapsible>summary strong{font-size:18px}.reseller-usage-collapsible>summary small{color:var(--muted)}.usage-summary-action{min-width:130px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;text-align:center;font-weight:800;background:#fff}.reseller-usage-body{padding:0 20px 20px;border-top:1px solid var(--line)}.reseller-usage-toolbar{display:grid;grid-template-columns:minmax(210px,1.5fr) repeat(2,minmax(155px,.8fr)) repeat(3,auto);align-items:end;gap:10px;padding:16px 0}.reseller-usage-toolbar label{display:flex;flex-direction:column;gap:6px;margin:0;font-weight:750}.reseller-usage-toolbar input,.reseller-usage-toolbar select,.reseller-usage-toolbar button{height:46px;min-height:46px}.reseller-usage-card .stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 14px}.reseller-usage-card .stats article{min-height:92px}.pricing-warning{border-color:#e3a646!important;background:#fff7e7!important}.positive-margin{color:#087a55;font-weight:800}.negative-margin{color:#b42318;font-weight:800}
@media(max-width:1100px){.reseller-usage-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.reseller-usage-toolbar button{width:100%}}
@media(max-width:760px){.reseller-usage-collapsible>summary{padding:14px;align-items:flex-start}.usage-summary-action{min-width:auto;padding:8px 10px}.reseller-usage-body{padding:0 12px 14px}.reseller-usage-toolbar{grid-template-columns:1fr}.reseller-usage-card .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-usage-card .table{max-width:100%;overflow-x:auto}.reseller-usage-card table{min-width:1050px}}
/* Unified modern tenant theme system v271 */
:root{--theme-card-radius:16px;--theme-card-shadow:0 14px 34px rgba(14,49,39,.09);--theme-page-bg:#f3f8f6;--theme-surface:#fff}
body:not(.auth-body)[data-brand-theme="ready"]{background:var(--theme-page-bg)!important;color:color-mix(in srgb,var(--theme-primary-deep) 88%,#263b43)!important}
body:not(.auth-body)[data-brand-theme="ready"] .card,body:not(.auth-body)[data-brand-theme="ready"] .banner,body:not(.auth-body)[data-brand-theme="ready"] .chat-app{border-color:color-mix(in srgb,var(--theme-primary) 14%,#dce6e2)!important;border-radius:var(--theme-card-radius)!important;background:var(--theme-surface)!important;box-shadow:var(--theme-card-shadow)!important}
body:not(.auth-body)[data-brand-theme="ready"] a{color:var(--theme-primary)}body:not(.auth-body)[data-brand-theme="ready"] ::selection{background:var(--theme-accent);color:var(--theme-on-accent)}
body:not(.auth-body)[data-brand-theme="ready"] .status-badge.bot-on,body:not(.auth-body)[data-brand-theme="ready"] .sync-state{border-color:var(--theme-primary-border)!important;background:var(--theme-primary-soft)!important;color:var(--theme-primary-dark)!important}
body:not(.auth-body)[data-brand-theme="ready"] .stats>article:before{background:var(--theme-primary)!important}body:not(.auth-body)[data-brand-theme="ready"] .stats>article:nth-child(even):before{background:var(--theme-accent)!important}
body[data-theme-style="soft"] .shared-page-hero,body[data-theme-style="soft"] .campaign-hero,body[data-theme-style="soft"] .phonebook-hero{background:linear-gradient(135deg,var(--theme-primary-dark),color-mix(in srgb,var(--theme-primary-dark) 74%,var(--theme-accent)))!important}body[data-theme-style="soft"] .card{box-shadow:var(--theme-card-shadow)!important}
body[data-theme-style="bold"] .shared-page-hero,body[data-theme-style="bold"] .campaign-hero,body[data-theme-style="bold"] .phonebook-hero,body[data-theme-style="bold"] .dashboard-hero{background:linear-gradient(125deg,var(--theme-primary-deep),var(--theme-primary),var(--theme-accent))!important}body[data-theme-style="bold"] .card{border-top:3px solid color-mix(in srgb,var(--theme-accent) 55%,var(--theme-primary))!important}body[data-theme-style="bold"] .primary{background:linear-gradient(135deg,var(--theme-primary),var(--theme-accent-dark))!important}
body[data-theme-style="executive"] .shared-page-hero,body[data-theme-style="executive"] .campaign-hero,body[data-theme-style="executive"] .phonebook-hero,body[data-theme-style="executive"] .dashboard-hero{background:linear-gradient(110deg,var(--theme-primary-deep),var(--theme-primary-dark))!important}body[data-theme-style="executive"] .card{border-color:color-mix(in srgb,var(--theme-primary) 20%,#cbd5dc)!important}body[data-theme-style="executive"] .primary{border-radius:7px!important}
.brand-colour-studio{gap:16px!important}.brand-theme-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.brand-theme-presets button{display:flex;min-width:0;min-height:68px;padding:9px;align-items:center;gap:10px;border:1px solid var(--theme-primary-border);border-radius:12px;background:#fff;text-align:left}.brand-theme-presets button.selected{border-color:var(--theme-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 15%,transparent)}.brand-theme-presets button>i{display:block;width:42px;height:42px;flex:0 0 42px;border:3px solid #fff;border-radius:12px;background:linear-gradient(135deg,var(--p) 0 50%,var(--a) 50% 100%);box-shadow:0 0 0 1px #d4e0dc}.brand-theme-presets button>span{display:flex;min-width:0;flex-direction:column;gap:3px;font-weight:850}.brand-theme-presets button small{color:#667a72;font-size:9px;font-weight:650}.branding-theme-style-field select{width:100%}.brand-colour-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.brand-colour-actions button{width:100%}
@media(max-width:960px){.brand-theme-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.brand-theme-presets,.brand-colour-actions{grid-template-columns:1fr}.brand-theme-presets button{min-height:60px}.brand-theme-presets button>i{width:36px;height:36px;flex-basis:36px}}
/* Reseller wallet alignment + independent primary/accent theme v275 */
:root{
  --theme-shell:var(--theme-primary,#073f43);
  --theme-shell-dark:var(--theme-primary-dark,#053337);
  --theme-shell-deep:var(--theme-primary-deep,#03282c);
  --theme-action:var(--theme-accent,#12a89d);
  --theme-action-dark:var(--theme-accent-dark,#087f77);
  --theme-action-soft:var(--theme-accent-soft,#e6f7f5);
}

/* Primary colour owns structural surfaces only. */
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar{
  background:linear-gradient(180deg,var(--theme-shell-dark),var(--theme-shell-deep))!important;
  border-color:color-mix(in srgb,var(--theme-shell) 72%,#fff)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar .sidebar-account,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group{
  background:color-mix(in srgb,var(--theme-shell) 78%,transparent)!important;
  border-color:color-mix(in srgb,var(--theme-shell) 68%,#fff)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] .shared-page-hero,
body:not(.auth-body)[data-brand-theme="ready"] .campaign-hero,
body:not(.auth-body)[data-brand-theme="ready"] .dashboard-hero,
body:not(.auth-body)[data-brand-theme="ready"] .provider-hero,
body:not(.auth-body)[data-brand-theme="ready"] .phonebook-hero{
  background:linear-gradient(112deg,var(--theme-shell-deep),var(--theme-shell-dark))!important;
  border-color:color-mix(in srgb,var(--theme-shell) 78%,#fff)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > main > .panel-footer{
  background:linear-gradient(100deg,var(--theme-shell-deep),var(--theme-shell-dark))!important;
  border-color:color-mix(in srgb,var(--theme-shell) 76%,#fff)!important;
}

/* Accent colour owns actions, selection, focus and highlights only. */
body:not(.auth-body)[data-brand-theme="ready"] button.primary,
body:not(.auth-body)[data-brand-theme="ready"] .library-upload,
body:not(.auth-body)[data-brand-theme="ready"] .date-range-buttons button.active,
body:not(.auth-body)[data-brand-theme="ready"] .phonebook-section-tabs button.active{
  background:linear-gradient(180deg,var(--theme-action),var(--theme-action-dark))!important;
  border-color:var(--theme-action-dark)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav button.active,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group.active > button,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group-items button.active{
  background:color-mix(in srgb,var(--theme-action) 28%,transparent)!important;
  border-color:color-mix(in srgb,var(--theme-action) 72%,#fff)!important;
  box-shadow:inset 4px 0 0 var(--theme-action)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav button.active::before,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group.active > button::before{
  background:var(--theme-action)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] :is(input,select,textarea,button):focus-visible{
  border-color:var(--theme-action)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-action) 24%,transparent)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] :is(a,.inline-link){color:var(--theme-action-dark)}
body:not(.auth-body)[data-brand-theme="ready"] .status-badge,
body:not(.auth-body)[data-brand-theme="ready"] .sync-state{
  border-color:color-mix(in srgb,var(--theme-action) 38%,#fff)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] .stats article,
body:not(.auth-body)[data-brand-theme="ready"] .card-accent{
  border-top-color:var(--theme-action)!important;
}
/* Style modes may change shape/depth, never mix primary and accent colours. */
body[data-theme-style="soft"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero),
body[data-theme-style="bold"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero),
body[data-theme-style="executive"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero){
  background:linear-gradient(112deg,var(--theme-shell-deep),var(--theme-shell-dark))!important;
}
body[data-theme-style="bold"] button.primary{
  background:linear-gradient(180deg,var(--theme-action),var(--theme-action-dark))!important;
}

/* Reseller Wallet Ledger mirrors the compact admin wallet composition. */
.reseller-wallet-ledger-page{padding:18px 20px!important}
.reseller-wallet-ledger-page > .cardhead{
  align-items:center!important;
  gap:18px!important;
  padding:0 0 16px!important;
  margin-bottom:16px!important;
  border-bottom:1px solid var(--line)!important;
}
.reseller-wallet-ledger-page > .cardhead h2{margin:0 0 4px!important}
.reseller-wallet-ledger-page .wallet-own-actions{
  margin-left:auto!important;
  display:grid!important;
  grid-template-columns:auto auto!important;
  grid-template-areas:"label export" "balance export"!important;
  align-items:center!important;
  justify-items:end!important;
  column-gap:14px!important;
  row-gap:2px!important;
}
.reseller-wallet-ledger-page .wallet-own-actions small{grid-area:label!important;white-space:nowrap}
.reseller-wallet-ledger-page .wallet-own-actions strong{grid-area:balance!important;font-size:26px!important;line-height:1!important;color:var(--theme-action,var(--brand))!important}
.reseller-wallet-ledger-page .wallet-own-actions button{grid-area:export!important;min-width:150px!important;min-height:44px!important}
.reseller-wallet-transfer-controls{
  display:grid!important;
  grid-template-columns:minmax(270px,1.2fr) minmax(220px,.9fr) minmax(220px,.9fr)!important;
  gap:12px 14px!important;
  align-items:stretch!important;
  padding:16px!important;
  margin:0 0 14px!important;
}
.reseller-wallet-transfer-controls > *{min-width:0!important;margin:0!important}
.reseller-wallet-transfer-controls label{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  align-self:stretch!important;
}
.reseller-wallet-transfer-controls :is(input,select){width:100%!important;min-height:44px!important}
.reseller-wallet-transfer-controls .wallet-current-balance{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
  min-height:76px!important;
  padding:10px 14px!important;
  border:1px solid color-mix(in srgb,var(--theme-action) 24%,var(--line))!important;
  border-radius:14px!important;
  background:color-mix(in srgb,var(--theme-action-soft) 68%,#fff)!important;
  overflow:hidden!important;
}
.reseller-wallet-transfer-controls .wallet-current-balance small,
.reseller-wallet-transfer-controls .wallet-current-balance strong,
.reseller-wallet-transfer-controls .wallet-current-balance span{display:block!important;width:100%!important;margin:0!important;line-height:1.3!important}
.reseller-wallet-transfer-controls .wallet-current-balance small{font-size:11px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.06em!important}
.reseller-wallet-transfer-controls .wallet-current-balance strong{font-size:22px!important;color:var(--theme-action-dark)!important}
.reseller-wallet-transfer-controls .wallet-current-balance span{font-size:12px!important;overflow-wrap:anywhere!important}
.reseller-wallet-transfer-controls > button{
  grid-column:1/-1!important;
  width:max-content!important;
  min-width:190px!important;
  min-height:44px!important;
  justify-self:start!important;
}
.reseller-wallet-ledger-page > .wallet-ledger-filters{
  display:grid!important;
  grid-template-columns:minmax(230px,1.35fr) minmax(150px,.7fr) minmax(150px,.7fr) auto auto auto!important;
  gap:10px!important;
  align-items:end!important;
  padding:12px!important;
  margin:0 0 12px!important;
}
.reseller-wallet-ledger-page > .wallet-ledger-filters > input[type="hidden"]{display:none!important}
.reseller-wallet-ledger-page > .wallet-ledger-filters label{min-width:0!important}
.reseller-wallet-ledger-page > .wallet-ledger-filters :is(select,input,button){min-height:42px!important;width:100%!important}
.reseller-wallet-ledger-page > .wallet-ledger-filters button{width:auto!important;min-width:120px!important}
.reseller-wallet-ledger-page #walletLedgerFilterState{align-self:center!important;white-space:nowrap!important;text-align:right!important}
.reseller-wallet-ledger-page .table{margin-top:0!important}
.reseller-wallet-ledger-page .wallet-ledger-table{min-width:1180px!important}

@media(max-width:1100px){
  .reseller-wallet-transfer-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .reseller-wallet-transfer-controls > button{grid-column:1/-1!important}
  .reseller-wallet-ledger-page > .wallet-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .reseller-wallet-ledger-page #walletLedgerFilterState{text-align:left!important}
}
@media(max-width:720px){
  .reseller-wallet-ledger-page{padding:12px!important}
  .reseller-wallet-ledger-page > .cardhead{align-items:flex-start!important}
  .reseller-wallet-ledger-page .wallet-own-actions{margin-left:0!important;width:100%!important;grid-template-columns:1fr auto!important;justify-items:start!important}
  .reseller-wallet-ledger-page .wallet-own-actions button{min-width:132px!important}
  .reseller-wallet-transfer-controls,
  .reseller-wallet-ledger-page > .wallet-ledger-filters{grid-template-columns:1fr!important;padding:12px!important}
  .reseller-wallet-transfer-controls > button{grid-column:1!important;width:100%!important}
  .reseller-wallet-ledger-page > .wallet-ledger-filters button{width:100%!important}
  .reseller-wallet-ledger-page #walletLedgerFilterState{text-align:left!important;white-space:normal!important}
}
/* Balanced independent tenant colours v276 */
/* Primary controls the shell while keeping the chosen hue visible. */
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar{
  background:linear-gradient(180deg,
    color-mix(in srgb,var(--theme-primary) 58%,#071d29),
    color-mix(in srgb,var(--theme-primary) 38%,#05151d))!important;
}
body:not(.auth-body)[data-brand-theme="ready"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero){
  background:linear-gradient(112deg,
    color-mix(in srgb,var(--theme-primary) 62%,#071d29),
    color-mix(in srgb,var(--theme-primary) 44%,#05151d))!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > main > .panel-footer{
  background:linear-gradient(100deg,
    color-mix(in srgb,var(--theme-primary) 48%,#071d29),
    color-mix(in srgb,var(--theme-primary) 32%,#05151d))!important;
}
/* Do not paint every sidebar group as a large Primary-colour block. */
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group{
  background:transparent!important;
  border-color:color-mix(in srgb,#fff 13%,transparent)!important;
  box-shadow:none!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav > button,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav > .nav-group > button,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group-items button{
  background:transparent!important;
  border-color:transparent!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar .sidebar-account{
  background:color-mix(in srgb,#fff 8%,transparent)!important;
  border-color:color-mix(in srgb,#fff 15%,transparent)!important;
}
/* Accent is a restrained interaction signal, not a second shell colour. */
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav button.active,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group.active > button,
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group-items button.active{
  background:color-mix(in srgb,var(--theme-accent) 14%,transparent)!important;
  border-color:color-mix(in srgb,var(--theme-accent) 42%,transparent)!important;
  box-shadow:inset 3px 0 0 var(--theme-accent)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group.active{
  border-color:color-mix(in srgb,var(--theme-accent) 32%,transparent)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav button:hover{
  background:color-mix(in srgb,#fff 7%,transparent)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] :is(input,select,textarea,button):focus-visible{
  outline:0!important;
  border-color:color-mix(in srgb,var(--theme-accent) 72%,#fff)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent) 16%,transparent)!important;
}
body:not(.auth-body)[data-brand-theme="ready"] button.primary,
body:not(.auth-body)[data-brand-theme="ready"] .library-upload,
body:not(.auth-body)[data-brand-theme="ready"] .date-range-buttons button.active,
body:not(.auth-body)[data-brand-theme="ready"] .phonebook-section-tabs button.active{
  color:var(--theme-on-accent)!important;
}
/* Keep neutral controls neutral; Accent appears only on their active state. */
body:not(.auth-body)[data-brand-theme="ready"] :is(.top-actions,.shared-hero-actions) > button:not(.primary){
  background:#fff!important;
  color:#173b34!important;
  border-color:#d4e2de!important;
}
body:not(.auth-body)[data-brand-theme="ready"] .brand-theme-presets button.selected{
  border-color:var(--theme-accent)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent) 14%,transparent)!important;
}
/* All style choices retain the same Primary-shell / Accent-action contract. */
body[data-theme-style="soft"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero),
body[data-theme-style="bold"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero),
body[data-theme-style="executive"] :is(.shared-page-hero,.campaign-hero,.dashboard-hero,.provider-hero,.phonebook-hero){
  background:linear-gradient(112deg,
    color-mix(in srgb,var(--theme-primary) 62%,#071d29),
    color-mix(in srgb,var(--theme-primary) 44%,#05151d))!important;
}
@media(max-width:760px){
  body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav .nav-group{background:transparent!important}
  body:not(.auth-body)[data-brand-theme="ready"] > aside#panelSidebar nav button.active{background:color-mix(in srgb,var(--theme-accent) 14%,transparent)!important}
}