/* Interface móvel: cabeçalho, conteúdo e navegação têm áreas próprias. */
@media(max-width:760px){
 html{scroll-padding-top:80px;}body{overflow-x:hidden;}
 *,*::before,*::after{box-sizing:border-box;}
 .ux-shell .main,.ux-shell .content,.ux-shell .card,.ux-shell .heading>div{min-width:0;max-width:100%;}
 .ux-shell .topbar{position:relative;height:auto;min-height:72px;padding:12px 16px;gap:8px;align-items:center;flex-wrap:nowrap;}
 .ux-top-brand small{display:none;}.ux-top-brand{gap:6px;}.ux-top-brand strong{font-size:21px;}
 .ux-shell .topbar .actions{margin-left:auto;display:flex;gap:6px;flex-wrap:nowrap;align-items:center;}
 .ux-shell .topbar .actions>button,.ux-shell .topbar .avatar{flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;}
 .ux-shell .topbar #zaira-news-button{position:static;inset:auto;margin:0;padding:6px;box-shadow:none;border-radius:13px;font-size:12px;z-index:auto;}
 .ux-shell .topbar .floating-zaira{position:static!important;inset:auto!important;transform:none!important;margin:0;padding:2px!important;box-shadow:none;border-radius:13px;font-size:0!important;gap:0;touch-action:manipulation;z-index:auto;overflow:hidden;}
 .ux-shell .topbar .floating-zaira svg,.ux-shell .topbar .floating-zaira .zaira-presenter{width:32px;height:36px;min-width:0;}
 .ux-shell .content{padding:18px 16px calc(104px + env(safe-area-inset-bottom));overflow-x:visible;}
 .ux-shell .ux-welcome{margin-bottom:18px;}.ux-shell .ux-welcome h1{font-size:27px;line-height:1.2;}
 .ux-shell h2{line-height:1.3;}.ux-shell p{line-height:1.55;overflow-wrap:anywhere;}
 .ux-shell .card{padding:18px;border-radius:20px;margin-bottom:16px;}
 .ux-next{padding:20px;display:block;}.ux-next .ux-date{display:none;}.ux-next h2{font-size:22px;overflow-wrap:anywhere;}
 .ux-next-actions{display:grid;grid-template-columns:1fr;gap:10px;}.ux-next-actions button{width:100%;min-height:48px;justify-content:center;}
 .ux-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .ux-quick-grid>*{min-width:0;padding:16px 12px;min-height:104px;overflow-wrap:anywhere;}
 .ux-home-columns,.ux-provider-grid{grid-template-columns:1fr;gap:16px;}
 .ux-shell .heading{display:flex;flex-wrap:wrap;gap:12px;}.ux-shell .heading .actions{width:100%;display:flex;flex-wrap:wrap;}
 .ux-shell .actions{gap:8px;flex-wrap:wrap;}.ux-shell .actions button{min-height:44px;max-width:100%;white-space:normal;}
 .ux-shell input,.ux-shell select,.ux-shell textarea,dialog input,dialog select,dialog textarea{font-size:16px;max-width:100%;min-width:0;}
 .ux-shell .form-grid{grid-template-columns:1fr;gap:14px;}
 .ux-shell .ux-bottom-nav{height:auto;min-height:74px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 6px calc(8px + env(safe-area-inset-bottom));gap:2px;z-index:50;background:var(--card,#fff);}
 .ux-bottom-nav button{width:100%;min-width:0;min-height:52px;padding:7px 2px;gap:5px;}.ux-bottom-nav button span{font-size:10px;white-space:normal;}.ux-bottom-nav button svg{width:22px;height:22px;}
 dialog{width:calc(100% - 20px);max-width:560px;max-height:calc(100dvh - 28px);margin:auto;padding:20px;border-radius:22px;overflow:auto;}
 dialog .modal-foot,.news-foot{position:static;display:flex;gap:10px;flex-wrap:wrap;}
 #toast{max-width:calc(100vw - 32px);left:16px;right:16px;bottom:calc(90px + env(safe-area-inset-bottom))!important;transform:none;}
 #zaira-month-badge{margin:0 0 18px;border-radius:16px;}.month-art{flex-basis:68px;}.month-copy{min-width:0;}.month-copy strong{font-size:17px;}.month-copy>span{font-size:12px;}.month-more{flex-shrink:0;}
 .patient-bill-value{font-size:28px;}.patient-pay{width:100%;min-width:0;}
 .zaira-in-call .ux-bottom-nav{display:none;}.zaira-in-call .content{padding-bottom:24px;}
}

/* v65: serviços diretos e ajuda fora do cabeçalho. */
.mobile-help{display:none;}
.mobile-loading{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:10000;padding:10px 16px;border-radius:24px;background:#fff;color:#312454;box-shadow:0 4px 24px #17152f26;display:flex;align-items:center;gap:10px;font-size:14px;pointer-events:none;}
.mobile-loading span{width:18px;height:18px;border:2px solid #e4ddfc;border-top-color:#6439ec;border-radius:50%;animation:zaira-load .8s linear infinite;}@keyframes zaira-load{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mobile-loading span{animation:none;border-color:#6439ec;}}
@media(max-width:760px){
 .ux-shell .topbar #context-guide-start,.ux-shell .topbar #learning-account-link{display:none!important;}
 .ux-shell .topbar{min-height:64px;padding:10px 20px;border-bottom:1px solid #84769e22;}
 .ux-shell .topbar>div:first-child{min-width:0;flex:1;}.ux-shell .ux-top-brand{min-width:0;}.ux-shell .ux-top-brand strong{font-size:16px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100vw - 174px);}.ux-top-brand img{width:30px;height:30px;}
 .ux-shell .topbar .actions{flex:0 0 auto;gap:10px;}
 .ux-shell .content{padding:22px 20px calc(100px + env(safe-area-inset-bottom));}
 .ux-shell .content p{font-size:15px;line-height:1.5;}.ux-shell .content h2{font-size:19px;}.ux-shell .ux-welcome h1{font-size:30px;margin:6px 0;}.ux-shell .ux-welcome p{margin:4px 0;opacity:.75;}.ux-shell .ux-welcome-symbol{display:none;}
 .ux-patient-mobile .card{border:1px solid #8d7ea82b;box-shadow:none;padding:20px;border-radius:22px;}.ux-patient-mobile .card p{margin:10px 0 16px;}.ux-patient-mobile .card button{font-size:15px;min-height:44px;}
 .ux-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px;margin:22px 0 30px;}
 .ux-service-grid button{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:10px;background:transparent;border:0;padding:0;min-height:98px;color:inherit;font-size:13px;line-height:1.3;text-align:center;}
 .ux-service-grid button svg{box-sizing:content-box;width:25px;height:25px;padding:20px;border-radius:50%;background:#8a73d914;color:#9472ff;flex-shrink:0;}
 .ux-shell .ux-section-title{margin:24px 0 12px;}.ux-shell .ux-bottom-nav{min-height:68px;border-top:1px solid #84769e24;box-shadow:0 -4px 20px #17152f08;padding:6px 8px calc(6px + env(safe-area-inset-bottom));}.ux-bottom-nav button{min-height:52px;border-radius:16px;}.ux-bottom-nav button span{font-size:11px;line-height:1.2;}
 .mobile-help{display:block;border-top:1px solid #84769e22;padding:22px 0 6px;margin-top:24px;}.mobile-help>strong{font-size:17px;}.mobile-help>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}.mobile-help button,.mobile-help a{font-size:13px;min-height:44px;padding:10px 12px;border:1px solid #8a73d933;border-radius:14px;background:transparent;color:inherit;text-decoration:none;}.mobile-assistant-slot{display:none;}
 #zaira-month-badge{min-height:0;margin:0 0 20px;}.month-art{flex-basis:52px;}.month-copy{padding:12px;}.month-copy>span{display:none;}.month-copy strong{font-size:15px;}.month-copy small{font-size:9px;}
}

/* v66: temas explícitos. Claro independe do tema do aparelho; escuro OLED. */
html[data-theme='light']{color-scheme:light;--bg:#f7f7fb;--card:#fff;--muted:#606576;--line:#e2e3eb;background:#f7f7fb;color:#202333;}
html[data-theme='light'] body,html[data-theme='light'] .main{background:#f7f7fb;color:#202333;}
html[data-theme='light'] .ux-shell .topbar,html[data-theme='light'] .ux-bottom-nav,html[data-theme='light'] dialog,html[data-theme='light'] .card,html[data-theme='light'] .patient-card{background:#fff;color:#202333;border-color:#e2e3eb;}
html[data-theme='light'] input,html[data-theme='light'] select,html[data-theme='light'] textarea{color-scheme:light;background:#fff;color:#202333;border-color:#cbcdd9;}
html[data-theme='light'] .ux-top-brand,html[data-theme='light'] .ux-welcome h1,html[data-theme='light'] .heading h1{color:#202333;}
html[data-theme='dark']{color-scheme:dark;--bg:#000;--card:#111;--muted:#b7b7c2;--line:#2c2c34;--zaira-noite:#000;background:#000;color:#f5f5fa;}
html[data-theme='dark'] body,html[data-theme='dark'] .main,html[data-theme='dark'] .content,html[data-theme='dark'] .login-form{background:#000;color:#f5f5fa;}
html[data-theme='dark'] .ux-shell .topbar,html[data-theme='dark'] .ux-shell .ux-bottom-nav,html[data-theme='dark'] .sidebar{background:#080808;border-color:#25252d;color:#f5f5fa;}
html[data-theme='dark'] :is(.card,.stat,.patient-card,.subscription-summary,dialog,.ux-menu-list,.ux-provider,.ux-search-label,.ux-metrics article,.ux-plan,.ux-status-note){background:#111;color:#f5f5fa;border-color:#2c2c34;box-shadow:none;}
html[data-theme='dark'] .plan-card:not(.gold){background:#111;color:#f5f5fa;border-color:#2c2c34;}
html[data-theme='dark'] :is(input,select,textarea){background:#191919;color:#f5f5fa;border-color:#3c3c45;color-scheme:dark;}
html[data-theme='dark'] :is(.ux-specialties button,.ux-quick-grid button,.ux-tools button,.ux-care-grid button,.ux-slot,.ux-moods button,.ux-filter-chips button,.mobile-help button,.mobile-help a){background:#171717;color:#ececf3;border-color:#34343d;}
html[data-theme='dark'] .ux-service-grid button{background:transparent;color:#ececf3;border:0;}
html[data-theme='dark'] .ux-service-grid button svg{background:#1d1828;color:#b599ff;}
html[data-theme='dark'] :is(.notice,.help-message,.help-message.user,.welcome){background:#19171f;color:#ececf3;border-color:#34343d;}
html[data-theme='dark'] .ux-bottom-nav button{background:transparent;color:#b7b7c2;}
html[data-theme='dark'] .ux-shell .ux-bottom-nav button[aria-current='page']{background:#251b3c;color:#d2bfff;}
html[data-theme='dark'] .ux-top-brand,html[data-theme='dark'] :is(h1,h2,h3){color:#f5f5fa;}
html[data-theme='dark'] :is(.muted,.heading p,.ux-welcome p){color:#b7b7c2;}
html[data-theme='dark'] .mobile-loading{background:#181818;color:#e2d6ff;border:1px solid #34343d;}
html[data-theme='dark'] :is(input,textarea)::placeholder{color:#a5a5b2;opacity:1;}
/* v67: três paletas, sem recoloração automática do navegador. */
html[data-theme='light']{color-scheme:only light!important;}
html[data-theme='light'] :is(body,.main,.content){background:#f7f7fb;color:#202333;}
html[data-theme='light'] :is(.card,.stat,.ux-menu-list,.ux-provider,dialog,.ux-shell .topbar,.ux-shell .ux-bottom-nav){background:#fff;color:#202333;border-color:#dedee9;}
html[data-theme='light'] :is(input,select,textarea){color-scheme:only light;background:#fff;color:#202333;}
html[data-theme='light'] :is(h1,h2,h3,label,.ux-menu-list button){color:#202333;}
html[data-theme='dark'][data-appearance='dark']{--theme-bg:#16161b;--theme-surface:#222228;--theme-top:#1c1c22;--theme-field:#2a2a32;--theme-border:#41414b;}
html[data-theme='dark'][data-appearance='oled']{--theme-bg:#000;--theme-surface:#101013;--theme-top:#050506;--theme-field:#19191e;--theme-border:#303038;}
html[data-theme='dark']{color-scheme:only dark;--bg:var(--theme-bg);--card:var(--theme-surface);--line:var(--theme-border);background:var(--theme-bg);}
html[data-theme='dark'] :is(body,.main,.content,.login-form){background:var(--theme-bg);color:#f5f5fa;}
html[data-theme='dark'] :is(.card,.stat,.patient-card,.subscription-summary,dialog,.ux-menu-list,.ux-provider,.ux-search-label,.ux-metrics article,.ux-plan,.ux-status-note){background:var(--theme-surface);color:#f5f5fa;border-color:var(--theme-border);}
html[data-theme='dark'] :is(.ux-shell .topbar,.ux-shell .ux-bottom-nav,.sidebar){background:var(--theme-top);border-color:var(--theme-border);}
html[data-theme='dark'] :is(input,select,textarea){background:var(--theme-field);border-color:var(--theme-border);color:#f5f5fa;}
html[data-theme='dark'] button:not(.primary):not(.floating-zaira),html[data-theme='dark'] a.button{background:var(--theme-field);border-color:var(--theme-border);color:#e5e0f1;}
html[data-theme='dark'] button.primary,html[data-theme='dark'] button.ux-filled,html[data-theme='dark'] .patient-pay{background:#7952e8;border-color:#7952e8;color:#fff;}
html[data-theme='dark'] .ux-shell button.ux-link,html[data-theme='dark'] .ux-service-grid button,html[data-theme='dark'] .ux-bottom-nav button{background:transparent;color:#c3b0ff;}
html[data-theme='dark'] .ux-shell .ux-bottom-nav button[aria-current='page']{background:#302344;color:#e3d6ff;}
html[data-theme='dark'] :is(button.danger,#room-end-call){background:#8c2945;border-color:#b64c69;color:#fff;}
html[data-theme='dark'] button:disabled{opacity:.5;cursor:not-allowed;}
html[data-theme='dark'] button:focus-visible,html[data-theme='light'] button:focus-visible{outline:3px solid #b49aff;outline-offset:3px;}
/* v68: perfil acolhedor, com escolha visual de aparência. */
html[data-theme] dialog.profile-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border-radius:28px;border:1px solid var(--line);overflow:auto;box-shadow:0 24px 100px #0003;}
.profile-dialog::backdrop{background:#17132666;backdrop-filter:blur(6px);}
.profile-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}.profile-eyebrow{font-size:10px;letter-spacing:2px;color:#8b66cc;font-weight:700;}.profile-heading h2{font-size:25px;margin:6px 0;}.profile-heading p{font-size:14px;color:var(--muted);margin:0;}
html[data-theme] .profile-heading #profile-close{border:0;background:transparent;color:var(--muted);font-size:28px;padding:0;min-width:40px;min-height:40px;}
.profile-identity{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:24px 0;border-bottom:1px solid var(--line);}.profile-dialog .photo-preview{margin:0 0 6px;width:80px;height:80px;border-radius:50%;font-size:27px;background:#efe8fc;color:#6d40b4;box-shadow:0 0 0 5px #a580db12;}.profile-identity>strong{font-size:17px;line-height:1.4;}.profile-identity>span,.profile-identity>small{color:var(--muted);font-size:12px;}.profile-photo-actions{display:flex;align-items:center;gap:14px;margin-top:8px;}.profile-dialog .profile-upload{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:12px;background:#9b76d61a;color:#8858ce;font-size:13px;font-weight:600;cursor:pointer;}
html[data-theme] .profile-dialog #remove-profile-photo{border:0;background:transparent;color:var(--muted);font-size:13px;padding:8px;min-height:40px;}
.profile-file,.profile-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.profile-appearance{padding-top:22px;}.profile-appearance h3{font-size:17px;margin:0 0 5px;}.profile-appearance>p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 16px;}
.profile-theme-grid{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.profile-theme-choice{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:16px;cursor:pointer;}.profile-theme-choice input{position:absolute;opacity:0;width:1px;height:1px;}.profile-theme-choice:has(input:checked){border:2px solid #9c79e9;padding:7px;background:#9571d510;}.profile-theme-choice:has(input:focus-visible){outline:3px solid #b49aff;outline-offset:3px;}.profile-theme-choice>strong{font-size:13px;padding:3px 2px 0;}.profile-theme-choice>small{font-size:10px;line-height:1.3;color:var(--muted);padding:0 2px;}
.profile-theme-preview{display:block;height:66px;border-radius:10px;position:relative;overflow:hidden;border:1px solid #8882;}.profile-theme-preview.light{background:#faf8ff;}.profile-theme-preview.dark{background:#24242d;}.profile-theme-preview.oled{background:#000;}.profile-theme-preview i{position:absolute;left:9px;top:10px;width:14px;height:14px;border-radius:5px;background:#9b73e9;}.profile-theme-preview b{position:absolute;left:9px;right:9px;top:33px;height:21px;border-radius:5px;background:#a292bd33;}.profile-theme-preview em{position:absolute;left:30px;right:10px;top:14px;height:4px;border-radius:4px;background:#9c8db855;}
.profile-auto{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:13px;}.profile-auto small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:3px;}.profile-auto input{accent-color:#8858ce;width:20px;height:20px;flex:0 0 20px;}.profile-appearance .profile-theme-status{font-size:11px;margin:14px 0 0;}
.profile-footer{display:grid;grid-template-columns:1fr 1.6fr;gap:10px;padding-top:18px;margin-top:16px;border-top:1px solid var(--line);}.profile-footer button{min-height:46px;border-radius:14px;font-size:14px;}.profile-dialog #profile-error:empty{display:none;}
@media(max-width:380px){html[data-theme] dialog.profile-dialog{padding:20px;}.profile-theme-grid{gap:7px;}.profile-theme-choice>small{font-size:9px;}}

/* v69: branco suave do portal, cartões brancos e detalhes lilás. */
html[data-theme="light"] body,html[data-theme="light"] .ux-shell,html[data-theme="light"] .ux-shell main,html[data-theme="light"] .ux-shell .content{background:#f2eefc!important}
.booking-intro{position:relative;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:28px;border:1px solid #ded7ef;border-radius:28px;background:#f2eefc;color:#20213d}
.booking-intro::backdrop{background:#15112688;backdrop-filter:blur(5px)}
.booking-close{position:absolute;right:16px;top:12px;background:transparent;border:0;font-size:28px;min-width:44px;min-height:44px}
.booking-eyebrow{font-size:11px;letter-spacing:.12em;color:#69558a;margin:16px 40px 18px 0}
.booking-intro h2{font-size:28px;line-height:1.2;margin:0 24px 22px 0;outline:none}
.booking-intro h3{font-size:19px;margin:20px 0 10px}
.booking-intro p{line-height:1.6}.booking-art{display:grid;place-items:center;height:140px;border-radius:24px;background:linear-gradient(135deg,#eee7ff,#e3f4ee);color:#6940d4}.booking-art svg{width:70px;height:70px}
.booking-emergency{font-size:13px;padding:12px;border-radius:14px;background:#f2eefc}.booking-dots{display:flex;justify-content:center;gap:7px;margin:24px 0}.booking-dots span{width:7px;height:7px;border-radius:50%;background:#d5cbe9}.booking-dots .active{width:22px;border-radius:8px;background:#7548dc}
.booking-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:12px}.booking-actions button{min-height:48px;border-radius:16px}
html[data-theme="dark"] .booking-intro{background:var(--mobile-surface,#17171c);color:#eeeaf7;border-color:#39343f}html[data-theme="dark"] .booking-emergency{background:#292431}html[data-theme="dark"] .booking-eyebrow{color:#c4b1ed}
#zaira-opening{position:fixed;inset:0;z-index:9999;display:grid;place-content:center;justify-items:center;gap:18px;background:#f2eefc;color:#20213d;font:600 28px system-ui}
#zaira-opening img{width:76px;height:76px;border-radius:22px;animation:zaira-breathe 1.4s ease-in-out infinite}#zaira-opening small{font-size:14px;font-weight:400;color:#776b8b}#zaira-opening .opening-dots{display:flex;gap:6px}#zaira-opening i{width:6px;height:6px;background:#7952e8;border-radius:50%;animation:zaira-breathe 1s ease-in-out infinite}#zaira-opening i:nth-child(2){animation-delay:.15s}#zaira-opening i:nth-child(3){animation-delay:.3s}
html[data-theme="dark"] #zaira-opening{background:#16161b;color:#eeeaf7}html[data-appearance="oled"] #zaira-opening{background:#000}
@keyframes zaira-breathe{50%{opacity:.5;transform:scale(.94)}}@media(prefers-reduced-motion:reduce){#zaira-opening img,#zaira-opening i{animation:none}}

.installed-update{position:fixed;z-index:200;left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));margin:auto;max-width:480px;display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #dcd3ef;border-radius:18px;box-shadow:0 8px 30px #251d4222;background:#fff;color:#20213d;font-size:13px}.installed-update button{min-height:44px;border-radius:12px;background:#6e3dd9;color:#fff;padding:8px 12px}.installed-update button:last-child{background:transparent;color:inherit;font-size:22px;padding:4px 10px}html[data-theme="dark"] .installed-update{background:#17151d;color:#f5f1ff;border-color:#39313f}

/* v71: tom exato do bloco principal do portal enviado como referência. */
html[data-theme="light"]{--bg:#f2eefc;--surface:#fff;--text:#20213d;--muted:#63627b;--line:#ded7ee;--primary:#6435df;background:#f2eefc;color-scheme:only light}
html[data-theme="light"] .ux-shell .topbar,html[data-theme="light"] .ux-bottom-nav{background:#fff!important;color:#20213d!important;border-color:#e7e2f3!important}
html[data-theme="light"] .ux-shell .card,html[data-theme="light"] .profile-dialog{background:#fff!important;color:#20213d!important;border-color:#e7e2f3!important}
html[data-theme="light"] .ux-shell button.primary,html[data-theme="light"] .ux-shell .ux-filled{background:#6435df!important;color:#fff!important;border-color:#6435df!important}

/* Abertura v72: uma composição da marca, sem áudio nem flashes. */
#zaira-opening{transition:opacity .22s ease;background:radial-gradient(ellipse at 50% 45%,#fff 0,#f2eefc 65%);gap:14px}
#zaira-opening img{width:92px;height:92px;border-radius:26px;box-shadow:0 15px 45px #6435df25;animation:zaira-arrive .8s cubic-bezier(.2,.8,.2,1) both,zaira-breathe 1.6s .8s ease-in-out infinite}
#zaira-opening>span{font-size:36px;letter-spacing:-1px;animation:zaira-word .7s .2s both}
#zaira-opening small{animation:zaira-word .7s .35s both}
#zaira-opening .opening-skip{position:absolute;bottom:calc(32px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);min-height:44px;padding:10px 20px;border-radius:24px;background:transparent;color:#694e96;border:1px solid #d8cdeb;font-size:13px;white-space:nowrap}
#zaira-opening.opening-leave{opacity:0;pointer-events:none}
html[data-theme="dark"] #zaira-opening{background:radial-gradient(ellipse at center,#261c3b,#16161b 65%)}html[data-appearance="oled"] #zaira-opening{background:#000}html[data-theme="dark"] #zaira-opening small,html[data-theme="dark"] #zaira-opening .opening-skip{color:#d2c1f0}
@keyframes zaira-arrive{from{opacity:0;transform:translateY(16px) scale(.75) rotate(-8deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes zaira-word{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#zaira-opening{transition:none}#zaira-opening img,#zaira-opening>span,#zaira-opening small{animation:none}}

.usage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.usage-grid article{padding:20px;border-radius:20px;background:#f2eefc}.usage-grid h3{font-size:16px;margin:0 0 12px}.usage-grid article>strong{font-size:22px;color:#6435df}.usage-grid p,.usage-grid small{font-size:13px}.usage-continuation{padding:22px;border:1px solid #d9cdef;border-radius:22px;margin:16px 0;background:#fff}.usage-continuation button{margin:6px 8px 0 0;min-height:46px}.usage-record{padding:18px 0;border-bottom:1px solid #e7e2f3}.usage-record:last-child{border:0}.usage-record p{margin:8px 0}.usage-record small{display:block;line-height:1.6;color:#70657d}.extra-providers{display:grid;gap:12px;margin:18px 0}.extra-providers button{min-height:48px;text-align:left}html[data-theme="dark"] .usage-grid article,html[data-theme="dark"] .usage-continuation{background:#201b29;border-color:#3c3249}html[data-theme="dark"] .usage-grid article>strong{color:#c1a4ff}html[data-theme="dark"] .usage-record small{color:#c5bcd1}@media(max-width:600px){.usage-grid{grid-template-columns:1fr}.usage-continuation button{width:100%;margin:8px 0 0}.usage-record{font-size:14px}}

/* v74: contraste nos cartões coloridos e controles no fluxo do cabeçalho. */
html[data-theme] .ux-shell:not(.professional-elegance) .ux-next h2,html[data-theme] .ux-shell:not(.professional-elegance) .ux-next p,html[data-theme] .ux-shell:not(.professional-elegance) .ux-next .ux-kicker{color:#fff!important}
.ux-shell .topbar .actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ux-shell .topbar #zaira-news-button{position:static!important;inset:auto!important;flex:0 0 auto;margin:0;z-index:auto;box-shadow:none;min-height:40px}
.ux-shell .topbar #context-guide-start,.ux-shell .topbar #learning-account-link{flex:0 0 auto}
.zaira-news article.news-unread{background:#f2eefc;border:2px solid #9b77e7;border-left:5px solid #7542dd;box-shadow:0 3px 12px #6435df0b}
.zaira-news article.news-unread .news-meta{color:#6435df;font-weight:800}
.zaira-news article.news-unread h3{font-weight:800}
.zaira-news article.news-read{background:#fff;border:1px solid #e2dbee}
html[data-theme="dark"] .zaira-news article.news-unread{background:#2b203c;border-color:#a77ae9;color:#f6efff}
html[data-theme="dark"] .zaira-news article.news-unread .news-meta{color:#d3b7ff}
html[data-theme="dark"] .zaira-news article.news-read{background:#17151d;border-color:#3d3548}

#modal fieldset.full{border:1px solid var(--border,#dcd5ed);border-radius:16px;padding:16px;min-width:0;display:grid;gap:12px}#modal fieldset.full legend{padding:0 8px;font-weight:700}#modal fieldset.full label:has(input[type="radio"]){display:flex;align-items:center;gap:10px}#modal fieldset.full input[type="radio"]{width:18px;height:18px;flex:0 0 18px;accent-color:#6435df}#modal fieldset.full p{margin:0;font-size:.85rem;line-height:1.5}

.frequency-control{display:grid;gap:12px;min-width:0}.frequency-control [hidden]{display:none!important}.frequency-repeat{background:var(--surface,#f6f3ff);border:1px solid var(--border,#ded7ee);border-radius:14px;padding:14px}.frequency-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;margin:0!important}.frequency-toggle span{font-weight:650}.frequency-toggle small{display:block;font-weight:400;font-size:.8rem;margin-top:4px;opacity:.75}.frequency-toggle input[type="checkbox"]{appearance:none;width:42px!important;height:24px!important;min-width:42px;padding:3px!important;border:0!important;border-radius:99px;background:#bbb4ce;cursor:pointer;box-shadow:none!important;position:relative}.frequency-toggle input:before{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:white;top:3px;left:3px;transition:transform .15s}.frequency-toggle input:checked{background:#6435df}.frequency-toggle input:checked:before{transform:translateX(18px)}.frequency-toggle input:focus-visible{outline:3px solid #a68bee;outline-offset:3px}.frequency-count{margin-top:14px}.frequency-control .muted{font-size:.82rem;line-height:1.45;margin:0}.frequency-count p{margin-top:8px!important}

.tools-groups{display:grid;gap:16px}.tools-group{margin:0}.tools-group summary{cursor:pointer;padding:4px 0}.tools-group summary strong{font-size:1.15rem}.tools-group summary span{display:block;color:var(--muted);margin-top:6px}.tools-group .ux-menu-list{margin-top:16px}.tools-group .ux-menu-list small{display:block;margin-top:4px;line-height:1.45}.tools-group [hidden]{display:none!important}.pix-payment{text-align:center}.pix-qr{display:block;width:min(240px,80%);height:auto;margin:18px auto;padding:12px;background:#fff;border-radius:16px}.pix-payment label{text-align:left}.pix-payment textarea{word-break:break-all;width:100%}.pix-payment .modal-foot{flex-wrap:wrap}

.team-metric-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.team-metric-filter label{flex:1;min-width:150px}.team-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:18px 0}.team-metric-grid .stat{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}.team-metric-grid .stat strong{font-size:1.5rem}.team-metric-grid .stat small{line-height:1.45;color:var(--muted)}.team-performance{margin:14px 0;padding:18px}.team-performance summary{cursor:pointer}.team-performance summary strong,.team-performance summary span{display:block;margin:4px 0}.team-performance summary span{font-size:.9rem;color:var(--muted)}.team-hierarchy{border-left:3px solid #754cf0;padding:12px 18px;margin:18px 0}.team-hierarchy strong,.team-hierarchy small,.team-hierarchy span{display:block;margin:5px 0}.team-metric-method{margin-top:20px;line-height:1.65}.team-metric-method summary{cursor:pointer;font-weight:600}@media(max-width:520px){.team-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-metric-grid .stat{padding:14px}.team-metric-grid .stat strong{font-size:1.3rem}.team-metric-filter button{width:100%}.team-performance{padding:12px}}

.fiscal-tabs{display:flex;gap:10px;margin:18px 0;flex-wrap:wrap}.fiscal-tabs button[aria-pressed="true"]{background:#6139e8;color:white;border-color:#6139e8}.fiscal-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;gap:12px;list-style:none;margin:8px 0 20px}.fiscal-steps li{padding:12px;border:1px solid var(--line,#e5dff0);border-radius:14px;display:flex;gap:10px;align-items:center;font-size:.9rem}.fiscal-steps li[aria-current]{border-color:#754cf0;font-weight:700}.fiscal-steps li span{border-radius:50%;background:#6139e8;color:#fff;padding:5px 10px}.fiscal-summary{display:flex;gap:24px;flex-wrap:wrap;padding:16px 0}.fiscal-summary strong{font-size:1.25rem}.fiscal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fiscal-check{display:flex!important;gap:10px;align-items:flex-start;line-height:1.5;margin:16px 0}.fiscal-check input{width:auto!important;flex:0 0 auto;margin-top:4px}.fiscal-history,.fiscal-rules,.fiscal-register,.fiscal-config{margin:20px 0;line-height:1.6}.fiscal-history summary,.fiscal-rules summary,.fiscal-register summary,.fiscal-config summary{font-weight:600;cursor:pointer;margin-bottom:12px}#fiscal-payer-fields[hidden],.fiscal-tabs [hidden]{display:none!important}@media(max-width:600px){.fiscal-steps{gap:6px}.fiscal-steps li{padding:8px;display:block;font-size:.78rem}.fiscal-steps li span{display:inline-block;margin-bottom:6px}.fiscal-fields{grid-template-columns:1fr}.fiscal-tabs button{flex:1}}

/* Keep the submit action outside the scrolling fields on mobile, including PWA. */
@media screen and (max-width: 700px) {
  #modal:has(> #modal-form) {
    box-sizing: border-box;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: hidden;
  }
  #modal[open]:has(> #modal-form) {display:flex;flex-direction:column;}
  #modal:has(> #modal-form) > h2 {flex:0 0 auto;margin:0;padding:18px 18px 12px;font-size:20px;}
  #modal > #modal-form {display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0;}
  #modal-form > .modal-body {min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 18px;scroll-padding-block:16px;}
  #modal-form .form-grid {grid-template-columns:minmax(0,1fr);gap:14px;}
  #modal-form .form-grid > * {min-width:0;}
  #modal-form > .modal-foot {flex:0 0 auto;position:static;margin:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line,#ded7eb);background:var(--card,#fff);display:grid;grid-template-columns:1fr 2fr;gap:10px;}
  #modal .modal-foot button {min-height:48px;white-space:normal;line-height:1.3;min-width:0;}
  #modal-form .form-error:empty {display:none;}
  #modal:not(:has(> #modal-form)) > .modal-foot {position:sticky;bottom:-20px;z-index:2;background:var(--card,#fff);padding:12px 0 calc(12px + env(safe-area-inset-bottom));}
  #modal:has(#rebooking-form) {max-height:calc(100dvh - 24px);}
  #rebooking-form .rebooking-grid {grid-template-columns:minmax(0,1fr);}
}
