/* Rommanel product system. Loaded last: shared tokens and deliberate adapters for legacy modules. */
:root{
 --product-ink:#302734;--product-muted:#706576;--product-brand:#633e63;--product-brand-hover:#4f2f50;
 --product-canvas:#f6f5f8;--product-surface:#fff;--product-soft:#f4f0f6;--product-border:#e5dfe9;--product-radius:14px;
 --brand-950:#302734;--brand-900:#49334d;--brand-800:#563459;--brand-700:var(--product-brand);--brand-600:#765279;--brand-500:#957497;--brand-400:#ae96b2;--brand-300:#d2bfd8;--brand-200:#e4dbe8;--brand-100:#eee6f2;--brand-50:#f7f4f9;
 --brand-canvas:var(--product-canvas);--brand-surface-soft:#faf8fb;--brand-border:var(--product-border);--brand-border-strong:#cec1d5;--brand-text:var(--product-ink);--brand-text-soft:#55495c;--brand-muted:var(--product-muted);--brand-focus:0 0 0 3px #633e6324;
 --admin-bg:var(--product-canvas);--admin-surface:#fff;--admin-text:var(--product-ink);--admin-muted:var(--product-muted);--admin-border:var(--product-border);--admin-shadow:0 2px 8px #30273404;
 --ops-brand-900:#49334d;--ops-brand-700:var(--product-brand);--ops-brand-600:#765279;--ops-border:var(--product-border);--ops-text:var(--product-ink);--ops-muted:var(--product-muted);--ops-canvas:var(--product-canvas);--ops-radius-sm:8px;--ops-radius-md:10px;--ops-radius-lg:14px;--ops-sidebar-w:248px;
 --bs-primary:#633e63;--bs-primary-rgb:99,62,99;--bs-link-color:#633e63;--bs-link-hover-color:#4f2f50;
}
body.admin-body,body.admin-login-body{font-family:"Open Sans Rommanel",system-ui,sans-serif;background:var(--product-canvas);color:var(--product-ink);font-size:14px;line-height:1.6}
body.admin-body .admin-sidebar{background:#fff;color:var(--product-ink);border-right:1px solid var(--product-border);box-shadow:none}
.admin-sidebar::before{display:none}.admin-sidebar .admin-sidebar-brand{padding:22px 18px;border-bottom:1px solid var(--product-border);gap:12px;min-height:94px}
.admin-sidebar .admin-brand-mark--rommanel{width:60px!important;height:44px!important;border:1px solid var(--product-border)!important;border-radius:10px!important;padding:5px!important;box-shadow:none!important}
.admin-sidebar .admin-brand-name{font-size:14px;line-height:1.5;color:var(--product-ink);font-weight:700}.admin-sidebar .admin-brand-sub{font-size:11px;color:var(--product-muted)!important}
.admin-sidebar .admin-nav{padding:12px 12px 20px;scrollbar-color:#d1c4d7 transparent}.admin-sidebar .admin-nav-section-label{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#8b7c92!important;margin:22px 12px 8px}.admin-sidebar .admin-nav-section-label:first-child{margin-top:6px}
.admin-sidebar .admin-nav a,.admin-sidebar .admin-nav-group summary{min-height:40px;padding:9px 12px;font-size:13px;font-weight:500;line-height:1.5;border:1px solid transparent;border-radius:8px;box-shadow:none;color:#62566b;gap:11px;text-transform:none}
.admin-sidebar .admin-nav a:hover,.admin-sidebar .admin-nav-group summary:hover{background:#f8f5fa;color:var(--product-brand)}
.admin-sidebar .admin-nav a.active,.admin-sidebar .admin-nav a[aria-current=page]{background:#eee6f2;border-color:transparent;color:#57335e;font-weight:700;box-shadow:none}
.admin-sidebar .admin-nav a.active::before,.admin-sidebar .admin-nav a[aria-current=page]::before{display:none}
.admin-sidebar .admin-nav i{font-size:16px;width:18px;flex-shrink:0;color:inherit}.admin-sidebar .admin-nav-group{margin:8px 0}.admin-sidebar .admin-nav-group summary{margin:0}.admin-sidebar .admin-nav-group[open]>summary{color:#513456;background:#f9f6fb}.admin-sidebar .admin-subnav{border-left:1px solid #e5dce9;margin-left:20px;padding-left:7px;margin-top:5px}.admin-sidebar .admin-subnav a{font-size:12px;min-height:36px;padding:8px}.admin-sidebar .admin-nav-group .nav-chevron{font-size:11px;width:12px}
.admin-sidebar .admin-sidebar-footer{border-top:1px solid var(--product-border);padding:12px;background:#fff}.admin-sidebar .admin-user-card{background:#faf8fb;border:0;border-radius:10px;padding:10px}.admin-sidebar .admin-user-meta{color:var(--product-ink)}.admin-sidebar .admin-user-meta strong{font-size:12px}.admin-sidebar .admin-user-meta span{font-size:10px;color:var(--product-muted)}.admin-sidebar .admin-avatar{background:#e8dceb;color:#633e63}.admin-sidebar .admin-sidebar-footer .btn-admin-secondary{color:#635269;border-color:var(--product-border);background:#fff;min-height:32px;font-size:12px}.admin-sidebar .admin-sidebar-footer .btn-admin-secondary:hover{background:#f4eff7;color:#513456}
.admin-sidebar :where(a,button,summary):focus-visible{outline:2px solid #77517e;outline-offset:2px}.admin-topbar{height:auto;min-height:86px;padding:18px 30px;background:#fff;border-bottom:1px solid var(--product-border);box-shadow:none;backdrop-filter:none}.admin-title h1{font-size:23px;font-weight:700;letter-spacing:-.65px;line-height:1.35}.admin-title p{font-size:12px;color:var(--product-muted);margin-top:5px}.admin-product-context{font-size:11px;background:#f7f4f9;border:1px solid var(--product-border);padding:6px 10px;border-radius:20px;color:#75617c}.admin-page{padding:26px 30px 40px}.admin-content{min-width:0}.admin-page>*,.ops-page,.at-shell{max-width:1600px;margin-left:auto;margin-right:auto;min-width:0}
.admin-environment-banner{background:#f1e9d9;color:#634b1b;border-bottom:1px solid #e2d5b8;font-size:10px;letter-spacing:.7px}
.admin-body :where(h2,h3,h4,h5){color:var(--product-ink);font-weight:700;letter-spacing:-.25px}.admin-body h2{font-size:24px}.admin-body h3{font-size:18px}.admin-body h4{font-size:15px}.ops-page-head{margin-bottom:22px;gap:16px}.ops-page-head h2,.ops-page-head .ops-page-eyebrow{display:none}.ops-page-head p{margin:0;color:var(--product-muted);font-size:13px}.ops-eyebrow,.ops-panel-kicker,.enc-eyebrow{font-size:10px;letter-spacing:1.2px}.ops-page-head:has(>div:empty){margin-top:0}
body :is(.btn-admin,.btn-admin-secondary,.btn-admin-success,.btn-admin-danger){font:600 13px/1.4 "Open Sans Rommanel",system-ui,sans-serif;border-radius:8px;min-height:40px;padding:10px 16px;box-shadow:none;letter-spacing:0;transform:none;transition:background .15s,border-color .15s}
body .btn-admin{background:var(--product-brand);border:1px solid var(--product-brand);color:white}body .btn-admin:hover{background:var(--product-brand-hover);border-color:var(--product-brand-hover);color:white;box-shadow:none;transform:none}
body .btn-admin-secondary{background:#fff;border:1px solid #d7cddd;color:#55445e}body .btn-admin-secondary:hover{background:#f6f1f8;border-color:#bba7c7;color:#51325c;box-shadow:none;transform:none}
body .btn-admin-success{background:#edf7f0;border:1px solid #bdddc7;color:#286440}body .btn-admin-danger{background:#fff2f2;border:1px solid #ecc8cc;color:#a03844}
body button:disabled,body .btn-admin:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.admin-body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),.admin-login-body :is(input,select,textarea):not([type=hidden]){font-family:inherit;font-size:14px;color:var(--product-ink);background-color:#fff;border:1px solid #d9cfdf;border-radius:8px;box-shadow:none;min-height:42px;padding:10px 12px;max-width:100%}
.admin-body textarea{line-height:1.7}.admin-body input[type=checkbox],.admin-body input[type=radio]{accent-color:var(--product-brand)}.admin-body input::placeholder,.admin-body textarea::placeholder{color:#93869b}.admin-body :is(label,.form-label){font-size:12px;color:#54435e;font-weight:600;line-height:1.5}.admin-body :is(input,select,textarea):focus{border-color:#9b7eab;outline:none;box-shadow:var(--brand-focus)}body :where(a,button,summary):focus-visible{outline:3px solid #92719f;outline-offset:3px}.admin-body :is(input,select,textarea):disabled{background:#f3eff5;color:#86768d}
:is(.ops-panel,.at-panel,.admin-card,.sc-card,.enc-section,.user-form-card){border:1px solid var(--product-border);background:white;border-radius:var(--product-radius);box-shadow:0 2px 6px #30273403;overflow:clip}
:is(.ops-panel-head,.at-panel>header,.sc-card-head,.enc-section>header){padding:20px 24px;border-bottom:1px solid #eee8f1;background:#fff}.ops-panel-head :is(h2,h3),.at-panel>header h3,.sc-card-head h3,.enc-section>header h3{font-size:16px;margin:0;font-weight:700}.ops-panel-head p,.at-panel>header p,.sc-card-head p{font-size:12px;line-height:1.7;margin-top:5px;color:var(--product-muted)}:is(.ops-panel-body,.at-panel-body,.sc-card-body){padding:24px}.ops-panel-body--flush{padding:0}.ops-panel{margin-bottom:20px}.at-grid-two,.sc-setup-grid{gap:22px}.at-panel{margin-bottom:20px}.at-panel>header .btn-admin{margin:0}
:is(.at-metrics article,.ops-kpi,.ops-stat-card){border:1px solid var(--product-border);background:#fff;border-radius:12px;padding:20px 22px;box-shadow:none}.at-metrics,.ops-kpi-grid{gap:14px;margin-bottom:24px}.at-metrics strong,.ops-kpi-value{font-size:28px;letter-spacing:-.9px;font-weight:700;color:var(--product-ink)}.at-metrics span,.ops-kpi-label{font-size:12px;color:var(--product-muted)}.at-metrics small{font-size:11px;line-height:1.7;color:var(--product-muted)}
:is(.ops-table,.at-table,.admin-table){font-size:13px;width:100%;border-collapse:separate;border-spacing:0}.ops-table thead th,.at-table thead th,.admin-table thead th{background:#faf8fc;color:#796581;font-size:11px;text-transform:none;letter-spacing:.1px;font-weight:650;padding:14px 18px;border-bottom:1px solid var(--product-border);position:sticky;top:0;z-index:1}.ops-table td,.at-table td,.admin-table td{padding:16px 18px;border-bottom:1px solid #eee8f1;line-height:1.6;vertical-align:middle}.ops-table tbody tr:hover,.at-table tbody tr:hover,.admin-table tbody tr:hover{background:#fcfafe}.ops-table td small,.at-table td small{font-size:11px;color:var(--product-muted)}.ops-money,[data-money]{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}.ops-table-wrap,.at-table-scroll,.admin-table-wrap{max-width:100%;overflow:auto}.ops-table-wrap{max-height:72vh}.ops-table-wrap table{margin-bottom:0}.at-table-scroll{max-height:72vh}.at-table-scroll table{margin-bottom:0}.ops-table td a,.at-table td a{font-weight:600;color:var(--product-brand)}
:is(.at-badge,.ops-badge,.status-badge){border-radius:6px;padding:4px 8px;font-size:11px;font-weight:600;line-height:1.5}.at-badge:not([class*='at-badge--']),.ops-badge--neutral{background:#f0eaf4;color:#71577f}.at-summary-row{padding:16px 0;font-size:13px;gap:16px}.at-summary-row strong{font-weight:650}.at-summary-row:hover{color:var(--product-brand)}
.product-context-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.product-environment{font-size:11px;font-weight:650;display:inline-flex;align-items:center;gap:8px;border:1px solid #d5dfec;color:#435c7b;background:#f1f5fa;border-radius:20px;padding:7px 12px}.product-environment.is-demo{border-color:#ded0e7;background:#f2edf6;color:#71527f}.at-environments{border:1px solid var(--product-border);padding:3px;border-radius:9px}.at-environments a{font-size:11px;padding:7px 12px}.at-environments .selected{background:#eee5f3;color:#633e63;font-weight:700}
.product-status{background:#fff;border:1px solid var(--product-border);border-radius:10px;margin:0 0 22px}.product-status>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;font-size:12px;color:#6f5d79;cursor:pointer;list-style:none}.product-status>summary i{margin-right:7px}.product-details-label{font-size:11px;white-space:nowrap;color:#80638e}.product-status[open]>summary{border-bottom:1px solid var(--product-border)}.product-status>div{padding:16px;font-size:12px;line-height:1.8}.product-status p:last-child{margin-bottom:0}.product-status summary:after{content:'+';font-size:16px;color:#8b7098}.product-status[open] summary:after{content:'−'}.product-status .product-details-label{margin-left:auto}
.alert{border-radius:10px;padding:13px 16px;font-size:13px;line-height:1.7;box-shadow:none}.alert-warning{background:#fff9ed;border-color:#eddfc1;color:#805a23}.alert-success{background:#f0f8f3;border-color:#cde6d5;color:#326649}.alert-danger{background:#fff2f3;border-color:#f0cbd1;color:#9d3445}.at-callout{border-radius:8px;border-left:3px solid #baa1c6;background:#f7f3fa;color:#66506f;font-size:12px;padding:14px 16px}.at-muted,.ops-field-hint,.protheus-info,.sc-help{color:var(--product-muted);line-height:1.7}.at-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.at-filter-grid .at-actions{display:flex;align-items:center;gap:14px}.product-filter-details{grid-column:1/-1;border-top:1px solid var(--product-border);padding-top:14px}.product-filter-details>summary{font-size:12px;color:#765582;cursor:pointer;margin-bottom:4px}.product-filter-details .row{padding-top:12px}.product-filter-details p{font-size:12px}
.at-inbox{border:1px solid var(--product-border);border-radius:14px;background:#fff;min-height:650px}.at-inbox:not(.has-conversation){grid-template-columns:320px minmax(0,1fr)}.at-inbox.has-conversation{grid-template-columns:280px minmax(0,1fr) 280px}.at-conversation-list{border-color:var(--product-border);min-width:0}.at-conversation{padding:18px 16px;border-color:#eee8f1}.at-conversation.selected{background:#f4eef8;box-shadow:inset 3px 0 #80568e}.at-conversation strong{font-size:13px}.at-conversation p{font-size:12px}.at-avatar{background:#eee4f3;color:#734b82;width:34px;height:34px}.at-chat{background:#faf8fc}.at-chat-head{padding:18px 22px;border-color:var(--product-border)}.at-messages{min-height:320px;max-height:55vh;padding:24px;gap:18px}.at-message{border-color:#e7deec;border-radius:12px;box-shadow:0 1px 3px #30273403;padding:14px 16px}.at-message--ia,.at-message--atendente{background:#f0e7f6;border-color:#ded0e8}.at-message--nota{background:#fff9e9;border-color:#e9dfc3}.at-message p{font-size:14px}.at-composer{padding:20px;border-color:var(--product-border)}.at-financial{padding:20px;border-color:var(--product-border);background:#fff}.at-financial h3{font-size:15px}.at-financial h4{font-size:13px}.at-financial .at-balance{font-size:26px}.at-search{padding:18px;border-color:var(--product-border)}
.sc-setup{margin-top:0;max-width:none}.sc-intro h3{font-size:22px}.sc-lab{display:none}.sc-switch a.selected{color:var(--product-brand)}.sc-chosen{border-color:#dac9e4;background:#faf7fc}.sc-person small,.sc-option-action>small,.sc-card-head p,.sc-help{color:var(--product-muted)}.sc-client-option{padding-top:14px;padding-bottom:14px}.sc-info p,.sc-info summary{color:var(--product-muted)}.sc-workspace{grid-template-columns:minmax(0,1fr) 320px}.sc-heading h3{font-size:21px}.sc-messages{background:#faf8fc;max-height:52vh;min-height:300px}.sc-bubble{font-size:14px;border-radius:12px}.sc-client{background:#f0e7f6;border-color:#ddcce8}.sc-bubble strong{font-size:11px}.sc-status{background:#f5f1f8;color:#765a83}.sc-composer{border-top:1px solid var(--product-border)}.sc-heading{margin-top:0}.sc-analysis{font-size:12px}.sc-start{min-height:44px}
.enc-intro h3{font-size:22px}.enc-rule{border-color:var(--product-border)}.enc-step,.sc-step{background:#f0e8f5;color:#70477c}.enc-save-bar{border-color:var(--product-border);box-shadow:0 -3px 14px #30273407;border-radius:10px}.regras-diagnostico{gap:12px}.regras-diagnostico>div{border-radius:10px;border-color:var(--product-border)}.regras-resumo-vivo{border-radius:10px;background:#f7f2fa;border-color:#e4d7ec;color:#674e74}.regras-editor-title h2{font-size:23px}.ops-panel-actions{background:#fcfafd;border-color:var(--product-border);padding:18px 24px}.product-editor-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.product-editor-nav a{font-size:12px;color:#765582;text-decoration:none;padding:8px 12px;background:#fff;border:1px solid var(--product-border);border-radius:8px}.product-editor-nav a:hover{background:#f4edf8}.product-editor-anchor{scroll-margin-top:100px}.product-global{margin-bottom:22px}
.admin-login-body{background:radial-gradient(ellipse at top left,#e9deef 0,transparent 55%),#f6f4f8;min-height:100vh}.admin-login-card{background:#fff;border:1px solid var(--product-border);border-radius:20px;box-shadow:0 20px 65px #49334d0a;padding:40px;max-width:460px}.admin-login-card h1{font-size:25px;letter-spacing:-.7px;color:var(--product-ink)}.admin-login-card p{font-size:13px;color:var(--product-muted)}.admin-login-logo--rommanel{box-shadow:none!important}.admin-login-body .input-shell input{padding-left:40px!important}.admin-login-kicker{color:#775985;font-size:10px;letter-spacing:1.8px}.admin-login-link{color:#724f7c}.admin-login-body .btn-admin{min-height:46px}
@media(min-width:1600px){.admin-page{padding:32px 40px}.admin-topbar{padding-left:40px;padding-right:40px}}
@media(max-width:1300px){.at-inbox.has-conversation{grid-template-columns:250px minmax(0,1fr)}.at-financial{grid-column:1/-1;border-top:1px solid var(--product-border);border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.at-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){.admin-page{padding:22px}.admin-topbar{padding:16px 22px;min-height:78px}.admin-title h1{font-size:21px}.admin-sidebar{transform:translateX(-100%)}.admin-sidebar.open{transform:translateX(0)}.admin-content{width:100%;margin-left:0}.admin-mobile-btn{display:grid;place-items:center}.admin-backdrop.show{display:block}.sc-workspace{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:760px){.admin-page{padding:18px 14px 30px}.admin-topbar{padding:14px;min-height:76px}.admin-title h1{font-size:19px}.admin-title p{font-size:11px;max-width:240px}.admin-product-context{display:none}.product-context-row{align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}.product-status>summary{padding:12px;font-size:11px}.product-details-label{display:none}.ops-page-head{flex-wrap:wrap}.at-filter-grid{grid-template-columns:1fr 1fr}.at-filter-grid .at-actions{grid-column:1/-1}.at-grid-two,.sc-setup-grid,.sc-workspace{grid-template-columns:1fr}.at-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.at-metrics article,.ops-kpi{padding:16px}.at-metrics strong,.ops-kpi-value{font-size:23px}.ops-panel-body,.at-panel-body,.sc-card-body,.ops-panel-head,.at-panel>header,.sc-card-head{padding:18px}.at-inbox,.at-inbox:not(.has-conversation),.at-inbox.has-conversation{display:block;min-height:450px}.at-inbox.has-conversation>.at-conversation-list{display:none}.at-inbox:not(.has-conversation)>.at-chat{display:none}.at-financial{display:block}.at-messages{padding:16px;min-height:260px}.at-search input{width:100%}.ops-table-wrap,.at-table-scroll{max-height:65vh}.ops-table,.at-table{min-width:650px}.ops-table td,.at-table td{padding:12px 14px}.sc-messages{min-height:260px}.admin-login-card{padding:28px 22px;margin:20px;max-width:calc(100% - 40px)}.sc-intro h3{font-size:20px}.enc-intro h3{font-size:20px}.sc-history-item{overflow-wrap:anywhere}.admin-sidebar .admin-nav a,.admin-sidebar .admin-nav-group summary{min-height:44px}.ops-page-actions{flex-wrap:wrap}.at-heading{margin-bottom:16px}.at-form-grid{grid-template-columns:1fr}}
@media(max-width:420px){.at-filter-grid{grid-template-columns:1fr}.admin-title p{max-width:205px}.product-environment{font-size:10px}.ops-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.at-environments a{padding:7px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
.product-home-demo{margin-top:24px;border-top:1px solid var(--product-border);padding-top:16px;font-size:12px;color:var(--product-muted)}.product-home-demo>summary{cursor:pointer;color:var(--product-brand);font-weight:600;margin-bottom:12px}.product-status .ops-panel{border:0;box-shadow:none;margin:0}.product-status .ops-panel-body{padding:0}.protheus-dados-page>.ops-panel:has(.ops-table){margin-top:20px}.product-global .ops-panel-head{padding:8px 0 16px}.product-global .ops-panel-body{padding-top:16px}.protheus-dados-page .ops-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:760px){.protheus-dados-page .ops-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Prevent intrinsic table widths from expanding the surrounding grid. */
.ops-page{grid-template-columns:minmax(0,1fr);gap:18px}.ops-page>*{min-width:0;max-width:100%}.ops-page>.ops-panel,.ops-page>.product-status,.ops-page>.ops-page-head,.ops-page>.product-context-row,.ops-page>.alert{margin-bottom:0}.ops-page>p{margin-bottom:0}.at-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.at-grid-two>*{min-width:0}.at-actions{display:flex;flex-wrap:wrap;gap:12px}.product-permissions summary{font-size:12px;color:var(--product-brand);cursor:pointer;white-space:nowrap}.product-permissions>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;min-width:180px;max-width:270px}.ops-panel-head>div{min-width:0}.ops-panel-head .ops-count{flex-shrink:0}.admin-body .ops-page a:not([class]),.admin-body .at-actions>a{color:var(--product-brand)}
@media(max-width:1100px){.at-grid-two{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ops-panel-head{flex-wrap:wrap;gap:12px}.at-metrics article{min-width:0}.at-metrics strong{overflow-wrap:anywhere}.ops-page-head p{max-width:100%}.ops-kpi-grid--finance{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-kpi-grid--finance .ops-kpi--finance-value{grid-column:1/-1}.sc-workspace{grid-template-columns:minmax(0,1fr)}}
.product-numeric{text-align:right!important;font-variant-numeric:tabular-nums}.product-numeric small{white-space:normal}
/* Conversation layout: keep reading space ahead of secondary controls. */
.admin-page:has(.at-inbox)>.at-shell{max-width:none}
.at-workspace-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;color:var(--product-muted);font-size:12px}
.at-inbox.has-conversation{grid-template-columns:260px minmax(0,1fr);grid-template-rows:minmax(740px,calc(100dvh - 260px)) auto;min-height:0}
.at-inbox:not(.has-conversation){grid-template-columns:280px minmax(0,1fr);height:max(640px,calc(100dvh - 260px));min-height:0}
.at-conversation-list{min-height:0;overflow:auto;max-height:none}
.at-chat{min-height:0;height:100%;overflow:hidden}
.at-chat-head,.at-composer{flex-shrink:0}
.at-chat-head{padding:14px 20px;max-height:35%;overflow:auto}
.at-chat-head h3{margin:0 0 6px;font-size:18px;overflow-wrap:anywhere}
.at-chat-head p{margin:6px 0}
.at-chat-controls summary,.at-chat-help summary{cursor:pointer;color:var(--product-brand);font-size:12px;font-weight:600}
.at-chat-controls .at-actions{padding-top:8px}
.at-messages{flex:1;min-height:260px;max-height:none;padding:22px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.at-message{max-width:min(88%,720px);min-width:0}
.at-message-meta{flex-wrap:wrap;gap:4px 14px}
.at-composer{padding:12px 18px;margin-top:0;max-height:40%;overflow:auto}
.at-composer .at-callout{border:0;background:transparent;padding:0;margin:0 0 8px;font-size:12px;line-height:1.5}
.at-composer-modes{gap:6px;margin-bottom:6px}
.at-composer-modes .btn-admin-secondary{padding:6px 10px;min-height:34px;font-size:12px}
.at-composer label{margin-top:0}
.at-composer textarea{margin:5px 0 10px;resize:vertical;max-height:160px}
.at-chat-help{margin-top:8px}.at-chat-help small{margin-top:6px}
.at-chat>.at-callout{flex-shrink:0;max-height:80px;overflow:auto;margin:0;padding:8px 18px}
.at-chat>.at-callout p{margin:0}
.at-financial{grid-column:1/-1;border-left:0;border-top:1px solid var(--product-border);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.at-financial>*{min-width:0;overflow-wrap:anywhere}.at-financial section{margin:0}
/* Expanded view remains in the normal document flow, with keyboard access to navigation. */
body.chat-expanded .admin-sidebar{transform:translateX(-100%)}
body.chat-expanded .admin-sidebar.open{transform:translateX(0)}
body.chat-expanded .admin-content{margin-left:0;width:100%}
body.chat-expanded .admin-mobile-btn{display:grid;place-items:center}
body.chat-expanded .admin-backdrop.show{display:block}
body.chat-expanded .at-inbox.has-conversation{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(740px,calc(100dvh - 220px)) auto}
body.chat-expanded .at-inbox.has-conversation>.at-conversation-list{display:none}
.sc-workspace{grid-template-columns:minmax(0,1fr) 280px;gap:20px}
.sc-workspace>*{min-width:0}.sc-messages{min-height:380px;max-height:65dvh}
.sc-composer textarea{width:100%;resize:vertical}.sc-analysis[open]{max-height:300px;overflow:auto}
@media(min-width:1700px){
 .at-inbox.has-conversation{grid-template-columns:260px minmax(0,1fr) 290px;grid-template-rows:minmax(760px,calc(100dvh - 260px))}
 .at-financial{grid-column:auto;display:block;overflow:auto;min-height:0;border-top:0;border-left:1px solid var(--product-border)}
 .at-financial section{margin-bottom:20px}
 body.chat-expanded .at-financial{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-left:0;border-top:1px solid var(--product-border)}
}
@media(max-width:1100px){.at-inbox.has-conversation{grid-template-columns:240px minmax(0,1fr)}.sc-workspace{grid-template-columns:minmax(0,1fr)}.at-financial{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .at-inbox,.at-inbox.has-conversation,.at-inbox:not(.has-conversation){display:block;height:auto;min-height:0}
 .at-inbox:not(.has-conversation) .at-conversation-list{max-height:80dvh}
 .at-inbox.has-conversation>.at-conversation-list{display:none}
 .at-inbox.has-conversation .at-chat{height:auto;overflow:visible}
 .at-mobile-back{display:block;margin-bottom:10px}
 .at-chat-head{max-height:none;padding:16px}
 .at-messages{flex:auto;height:55dvh;min-height:320px;max-height:640px;padding:16px}
 .at-composer{max-height:none;padding:14px}.at-composer textarea{font-size:16px!important}
 .at-financial{display:block;padding:18px}.at-financial section{margin-bottom:18px}
 .at-workspace-tools>span{display:none}.at-workspace-tools{justify-content:flex-end}
 .sc-messages{min-height:320px}.sc-heading{flex-wrap:wrap}
}
/* Shared review fixes: accessibility, native choice controls and consistent message colors. */
.ops-skip-link:not(:focus){transform:translateY(calc(-100% - 100px))}
.admin-body .at-shell input:is([type=checkbox],[type=radio]){display:inline-block;width:18px;height:18px;min-height:18px;padding:0;margin:0 6px 0 0;vertical-align:middle;flex-shrink:0}
.admin-body .at-message--ia,.admin-body .at-message--atendente{background:#f0e7f6;border-color:#ded0e8}
.admin-body .at-message--nota{background:#fff9e9;border-color:#e9dfc3}
.at-financial a,.at-mobile-back{color:var(--product-brand)}
body.chat-expanded .at-shell>.product-status{display:none}
body.chat-expanded .admin-page{padding-top:14px}
body.chat-expanded .at-workspace-tools{margin-bottom:10px}
@media(min-width:761px){
 .at-chat-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
 .at-chat-head>h3,.at-chat-head>p{margin:0}
 .at-chat-head>.at-chat-controls{grid-column:1/-1}
 .at-chat-head>.at-mobile-back{grid-column:1/-1}
}
/* Daily inbox: viewport-sized reading area and explicit queue ownership. */
.at-inbox{--at-workspace-height:max(460px,calc(100dvh - 140px));scroll-margin-top:var(--at-workspace-top,120px)}
.at-inbox.has-conversation,body.chat-expanded .at-inbox.has-conversation{grid-template-rows:var(--at-workspace-height) auto}
.at-inbox.has-conversation>.at-chat{height:var(--at-workspace-height);min-height:0;overflow:hidden}
.at-inbox .at-chat>.at-messages{height:auto;min-height:80px;max-height:none;flex:1 1 0}
.at-inbox .at-chat-head{max-height:30%;padding:10px 16px}
.at-inbox .at-composer{max-height:48%;padding:10px 16px}
.at-inbox .at-composer textarea{min-height:60px;max-height:110px;padding:8px 10px}
.at-chat-environment{display:block;font-size:10px;font-weight:600;color:var(--product-muted);margin-top:4px;letter-spacing:0}
.at-queue-shortcuts{display:flex;flex-wrap:wrap;gap:6px;padding:14px 14px 8px}
.at-queue-shortcuts a{padding:6px 9px;border:1px solid var(--product-border);border-radius:7px;font-size:11px;text-decoration:none;color:var(--product-brand);background:#fff}
.at-queue-shortcuts a[aria-current=page]{background:var(--product-soft);border-color:var(--product-brand);font-weight:700}
.at-queue-order{font-size:11px;color:var(--product-muted);padding:0 14px 12px;margin:0;border-bottom:1px solid var(--product-border);line-height:1.5}
.at-conversation.is-waiting{border-left:3px solid #b7751d;padding-left:13px;background:#fffcf6}
.at-conversation.selected{background:#f1e9f6;border-left:3px solid var(--product-brand);padding-left:13px;box-shadow:none}
.at-conversation>div{flex:1}.at-conversation strong{overflow-wrap:anywhere}
.at-conversation .at-queue-wait{display:block;margin:7px 0;font-size:11px;font-weight:700;line-height:1.5;color:#805010}
.at-queue-state{display:flex;flex-wrap:wrap;gap:4px}.at-queue-state .at-badge{white-space:normal}
.at-conversation .at-queue-owner{font-size:12px;color:var(--product-ink);font-weight:600;margin-top:9px;overflow-wrap:anywhere}
.at-conversation p{max-width:100%}
.at-financial{scroll-margin-top:var(--at-workspace-top,120px)}
.at-workspace-tools{flex-wrap:wrap}.at-workspace-tools>span{margin-right:auto}
@media(min-width:1700px){.at-inbox.has-conversation{grid-template-rows:var(--at-workspace-height)}}
@media(max-width:760px){
 .at-inbox.has-conversation>.at-chat{height:var(--at-workspace-height);overflow:hidden}
 .at-inbox .at-chat-head{padding:10px 14px;max-height:28%}
 .at-inbox .at-composer{padding:10px 12px;max-height:52%}
 .at-inbox .at-chat>.at-messages{min-height:70px;padding:14px}
 .at-inbox .at-chat-head h3{font-size:16px}
 .at-inbox .at-mobile-back{margin-bottom:5px}
 .at-inbox .at-composer-modes{gap:4px}
 .at-inbox .at-composer-modes button{font-size:11px;padding:6px 8px}
 .at-workspace-tools>a,.at-workspace-tools>button{font-size:12px;padding:8px 10px}
}
.at-inbox.at-workspace--short .at-chat-head{max-height:25%}
.at-inbox.at-workspace--short .at-composer{max-height:55%}
.at-inbox.at-workspace--short .at-chat>.at-messages{min-height:40px}
.at-inbox.at-workspace--short .at-composer{padding-top:6px;padding-bottom:6px}
.at-inbox.at-workspace--short .at-composer textarea{height:48px;min-height:48px;margin-top:2px;padding:6px 10px}
.at-inbox.at-workspace--short .at-composer .at-callout{font-size:11px;line-height:1.3;margin-bottom:4px}
.at-inbox.at-workspace--short .at-composer-modes button{min-height:28px;padding:4px 8px}
/* Long forms: sections, local navigation and the original save action kept in reach. */
.product-form-section{min-width:0;margin:0 0 24px;padding:20px;border:1px solid var(--product-border);border-radius:12px;background:#fff}
.product-form-section>legend{float:none;width:auto;max-width:100%;font-size:15px;font-weight:700;margin:0;padding:0 8px;color:var(--product-ink)}
.product-form-section>p{font-size:12px;color:var(--product-muted);margin:8px 0 16px}
.product-form-nav{display:flex;flex-wrap:wrap;gap:8px;padding:14px;margin:0 0 20px;background:var(--product-soft);border:1px solid var(--product-border);border-radius:10px}
.product-form-nav button{font-weight:600;line-height:1.4;font-family:inherit;font-size:12px;min-height:36px;padding:8px 12px;color:var(--product-brand);border:1px solid var(--product-border);background:white;border-radius:7px;text-align:left}
.product-form-nav button:hover{background:#eee6f2}
.product-form-anchor{scroll-margin-top:140px}
form[data-form-guide]{min-width:0;overflow:visible}
.at-panel:has(> .at-panel-body > form[data-form-guide]),.ops-panel:has(> form[data-form-guide]){overflow:visible}
.product-save-bar{position:sticky;bottom:12px;z-index:8;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid var(--product-border);border-radius:10px;padding:14px 18px!important;margin-top:24px;box-shadow:0 -4px 20px #3027340c}
.product-save-bar>p{flex-basis:100%;margin:0;font-size:12px;color:var(--product-muted)}
.product-form-status{font-size:12px;color:var(--product-muted);margin-right:auto}
.has-unsaved-changes .product-form-status{color:#805010;font-weight:600}
.product-policy-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0}
.product-policy-navigation>span{font-size:12px;color:var(--product-muted)}
form[data-form-guide] :is(input,select,textarea){scroll-margin-top:150px;scroll-margin-bottom:150px}
@media(max-width:760px){
 .product-form-section{padding:14px;margin-bottom:18px}
 .product-form-nav{padding:10px;gap:6px}.product-form-nav button{flex:1 1 140px;min-height:42px}
 .product-save-bar{bottom:8px;padding:12px!important;gap:8px}
 .product-form-status{flex-basis:100%}.product-save-bar>p{font-size:11px}
 .product-policy-navigation{flex-wrap:wrap}.product-policy-navigation>span{order:-1;flex-basis:100%;text-align:center}
 .at-policy-layout{grid-template-columns:minmax(0,1fr)}
 .at-policy-steps button{flex:1 1 130px}
}
@media(max-height:540px){.product-save-bar{position:static}}
