/* Keep the account's controls close, without stacking two sticky bars. */
.account-open .header-inner{padding-block:13px;gap:18px}
.account-open .site-header .brand-logo img{width:36px;height:36px}
.account-open .site-header .wordmark{font-size:29px}
.account-open .header-actions .account-link{display:none}
.account-open .logout{border-color:transparent;background:transparent;font-size:11px;padding:10px 8px;white-space:nowrap;color:#687c71}
.account-open .logout:hover{color:#174d42;background:#edf2e9}
.account-open .account-section{padding-top:30px}
.account-open .account-heading{margin-bottom:24px}
.account-open .account-heading .eyebrow{margin-bottom:10px}
.account-open .account-heading h2{font-size:24px}
.account-open .account-heading p{font-size:12px;margin:10px 0 0}
.assistant-toolbar-home{display:flow-root}
.assistant-toolbar-home,.assistant-toolbar,.assistant-header-dock{overflow-anchor:none}
.assistant-toolbar-home .assistant-toolbar{position:relative;top:auto;padding:11px 16px;border-radius:15px;box-shadow:none;gap:18px;margin-bottom:20px}
.assistant-toolbar-home .assistant-toolbar>div{flex-direction:row;align-items:center;gap:12px}
.assistant-toolbar #toolbarState::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#a5b0a7;margin-inline-end:6px;vertical-align:2px}
.assistant-toolbar.running #toolbarState::before{background:#278563}
.assistant-toolbar-home .assistant-toolbar #toggleWeb{min-width:150px;padding:10px 20px;font-size:13px;border-radius:11px}
.assistant-header-dock{display:flex;align-items:center}
.assistant-header-dock[hidden]{display:none}
.assistant-header-dock .assistant-toolbar{position:static;top:auto;margin:0;padding:0;border:0;box-shadow:none;background:transparent;backdrop-filter:none;gap:14px;border-radius:0}
.assistant-header-dock .assistant-toolbar strong{display:none}
.assistant-header-dock .assistant-toolbar>div{flex:none}
.assistant-header-dock .assistant-toolbar #toolbarState{font-size:11px;white-space:nowrap}
.assistant-header-dock .assistant-toolbar #toggleWeb{min-width:136px;font-size:12px;padding:9px 16px;border-radius:10px;line-height:1.5}
.assistant-in-header .site-header{box-shadow:0 3px 16px #183d3406}
/* A quiet balance card, with secondary settings revealed on demand. */
#subscriptionPanel{padding:25px 26px;border-radius:19px;box-shadow:none}
#subscriptionPanel h2{font-size:21px;letter-spacing:-.03em;margin-bottom:10px}
#subscriptionPanel>.billing-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;margin:0;background:#eef5ed;color:#3b7054;border-radius:20px;padding:4px 10px;line-height:1.5}
#subscriptionPanel>.billing-status::before{content:'';width:5px;height:5px;background:#52845e;border-radius:50%}
#subscriptionPanel .billing-stats{margin:19px 0 21px;gap:9px 20px}
#subscriptionPanel .billing-stats strong{font-size:clamp(18px,2.2vw,25px);letter-spacing:-.03em;font-weight:700}
#subscriptionPanel .billing-stats>span,#subscriptionPanel>small{font-size:11px;color:#789083}
#subscriptionPanel .billing-auto-summary{border:0;border-top:1px solid #e5ece4;border-bottom:1px solid #e5ece4;background:transparent;border-radius:0;padding:0;margin:0 0 18px}
#subscriptionPanel .billing-auto-summary summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:47px;padding:10px 0;cursor:pointer;font-size:12px;color:#436451;font-weight:600;user-select:none}
#subscriptionPanel .billing-auto-summary summary::-webkit-details-marker{display:none}
#subscriptionPanel .billing-auto-summary summary:focus-visible{outline-offset:4px;border-radius:5px}
#subscriptionPanel .billing-chevron{width:7px;height:7px;border-inline-end:1.5px solid #6c8273;border-bottom:1.5px solid #6c8273;transform:rotate(45deg);transition:transform .18s;flex:none;margin-top:-4px}
#subscriptionPanel .billing-auto-summary[open] .billing-chevron{transform:rotate(225deg);margin-top:4px}
#subscriptionPanel .billing-auto-content{padding:0 0 11px;animation:billing-reveal .18s ease-out}
#subscriptionPanel .billing-auto-content p{font-size:12px;color:#748579;margin:0 0 5px;line-height:1.8}
#subscriptionPanel button.billing-cancel-link{display:block;width:auto;min-height:36px;padding:7px 10px;margin:4px auto 0;background:transparent;border:0;border-radius:6px;color:#23715b;font-size:12px;font-weight:500;text-decoration:none}
#subscriptionPanel button.billing-cancel-link:hover{background:#f0f6ef;text-decoration:underline;text-underline-offset:3px}
#subscriptionPanel button.billing-cancel-link:disabled{opacity:.5;cursor:wait}
#subscriptionPanel>button.secondary{font-size:12px;min-height:39px;padding:9px 14px;background:#f5f8f1;border-color:#d6e2d3;border-radius:9px}
#subscriptionPanel>small{margin-top:11px;font-size:10px}
.account-open .stats{gap:12px}
.account-open .stats .card{box-shadow:none;border-radius:15px;padding:18px 21px}
/* Actions use the same compact button hierarchy as the rest of the account. */
#actionsSettings .actionButtons{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}
#actionsSettings .actionButtons button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-width:0;min-height:42px;width:auto;margin:0;padding:10px 17px;border-radius:10px;font:600 12px/1.5 var(--font);transition:background .18s,border-color .18s,box-shadow .18s}
#actionsSettings #addAction{color:#174d42;background:#f5f8f1;border:1px solid #d3dfcf}
#actionsSettings #addAction::before{content:'+';font-size:20px;font-weight:400;line-height:1}
#actionsSettings #addAction:hover:not(:disabled){background:#eaf2e5;border-color:#a9c19f}
#actionsSettings #saveActions{color:white;background:#174d42;border:1px solid #174d42;transform:none}
#actionsSettings #saveActions:hover:not(:disabled){background:#103c33;box-shadow:0 3px 10px #174d4210}
#actionsSettings .actionButtons button:disabled{opacity:.45;cursor:not-allowed}
#actionsSettings .actionCard{scroll-margin-top:calc(var(--mila-header-height,76px) + 20px)}
#actionsSettings .actionRemove{display:inline-flex;align-items:center;gap:7px;min-height:36px;margin:12px 0 0;padding:7px 9px;background:transparent;border:0;border-radius:7px;color:#a05249;font:500 11px/1.5 var(--font);transition:background .18s,color .18s}
#actionsSettings .actionRemove::before{content:'';width:14px;height:14px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a05249' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7m4-7v7'/%3E%3C/svg%3E") center/contain no-repeat}
#actionsSettings .actionRemove:hover:not(:disabled){background:#fbf1ef;color:#873e36}
#actionsSettings .actionPause{display:flex;align-items:center;gap:9px;margin:8px 0}
#actionsSettings .actionPause input[type=checkbox]{margin:0;min-height:0}
@keyframes billing-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
 .account-open .header-inner{padding:11px 17px;gap:12px}
 .account-open .header-actions{gap:9px}
 .assistant-in-header .site-header .brand-logo .wordmark{display:none}
 .assistant-header-dock .assistant-toolbar>div{display:none}
 .assistant-header-dock .assistant-toolbar #toggleWeb{min-width:0;font-size:11px;padding:10px 12px;white-space:nowrap}
 .account-open .site-header .brand-logo img{width:32px;height:32px}
 .account-open .logout{font-size:10px;padding:9px 5px}
 .account-open .language-switch{padding:3px}
 .account-open .language-switch button{padding:6px;min-width:28px;font-size:10px}
 .account-open .account-section{padding-top:23px}
 .account-open .account-heading h2{font-size:21px}
 .assistant-toolbar-home .assistant-toolbar{padding:10px 12px;margin-bottom:16px}
 .assistant-toolbar-home .assistant-toolbar>div{flex-direction:column;align-items:flex-start;gap:3px}
 .assistant-toolbar-home .assistant-toolbar #toggleWeb{min-width:0;padding:10px 14px;font-size:12px}
 #subscriptionPanel{padding:21px 19px;border-radius:16px}
 #subscriptionPanel h2{font-size:19px}
 #subscriptionPanel .billing-stats strong{font-size:19px;line-height:1.55}
 .account-open .stats .card{padding:14px 11px}
 #actionsSettings .actionButtons{gap:10px;flex-wrap:wrap}
 #actionsSettings .actionButtons button{flex:1 1 auto;padding:10px 13px}
}
@media(max-width:380px){
 .assistant-in-header .logout{font-size:0;min-width:38px;min-height:40px;padding:10px;display:inline-flex;align-items:center;justify-content:center}
 .assistant-in-header .logout::after{content:'';display:block;width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174d42' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H4v16h5m4-12 4 4-4 4M8 12h9'/%3E%3C/svg%3E") center/contain no-repeat}
}
@media(prefers-reduced-motion:reduce){#subscriptionPanel .billing-auto-content{animation:none}#subscriptionPanel .billing-chevron{transition:none}}
