body[data-account-locked=true] .app-shell{display:none!important;visibility:hidden;pointer-events:none}
body[data-account-locked=true] .account-overlay{background:#f3f6fc}
body[data-account-role=employee] .workspace-switch,body[data-account-role=employee] .principle-card-actions{display:none!important}
body[data-account-role=employee] .nav-system,body[data-account-role=employee] .service-mini{display:none!important}
.account-entry{margin:8px 16px 18px;padding:14px;border:1px solid #dce3ee;border-radius:14px;display:grid;gap:9px;color:#35425a;background:white}
.account-entry button{padding:9px;border:1px solid #dce3ee;border-radius:9px;background:#f5f7fc;color:#315efb;cursor:pointer}
.account-entry small{line-height:1.7;color:#66758b}
.account-overlay{position:fixed;inset:0;z-index:20000;background:rgba(21,34,56,.4);display:flex;align-items:center;justify-content:center;padding:24px}
.account-panel{width:min(1240px,100%);max-height:94vh;overflow:auto;background:#f7f9fc;border-radius:20px;padding:28px;color:#19283d;box-shadow:0 20px 70px #17294c33}
.account-panel.login{max-width:520px;background:white}
.account-panel h2{font-size:25px;margin:0 0 8px}.account-panel h3{font-size:19px;margin:0 0 14px}
.account-panel p{line-height:1.7;color:#68768a;font-size:14px}
.account-panel label{display:grid;gap:6px;font-size:13px;color:#516075}.account-panel input,.account-panel select{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d8e0ee;border-radius:9px;background:white;font:inherit;color:#19283d}
.account-panel input[type=checkbox]{width:auto}.account-panel button{border:1px solid #dbe2ee;padding:10px 16px;border-radius:9px;background:white;color:#254472;cursor:pointer}.account-panel button.primary{background:#315efb;color:white;border-color:#315efb}.account-panel button:disabled{opacity:.5;cursor:wait}
.account-panel header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:20px}.account-panel section{padding:20px;background:white;border:1px solid #e0e6ef;border-radius:14px;margin-top:18px}
.account-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.account-grid.two{grid-template-columns:1fr 1fr}.account-form{display:grid;gap:16px}.account-message{color:#b13e36!important;white-space:pre-wrap;min-height:24px}.account-table{width:100%;border-collapse:collapse;font-size:13px}.account-table th,.account-table td{text-align:left;border-bottom:1px solid #edf0f6;padding:12px 8px;vertical-align:top}.account-table input{min-width:85px}.account-table td:last-child{min-width:220px}.account-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.account-scroll{overflow:auto}.account-model{border-top:1px solid #e6ebf3;padding:16px 0}.account-model:first-child{border-top:0}.account-note{font-size:12px;color:#718096;line-height:1.7}
@media(max-width:950px){.account-grid{grid-template-columns:1fr 1fr}.account-panel{padding:18px}.account-overlay{padding:10px}}

/* Keep account controls aligned independently of the ledger tables. */
.account-users-table{min-width:880px;table-layout:fixed}
.account-users-table th:nth-child(1){width:20%}
.account-users-table th:nth-child(2){width:15%}
.account-users-table th:nth-child(3){width:19%}
.account-users-table th:nth-child(4),.account-users-table th:nth-child(5){width:23%}
.account-users-table th{white-space:nowrap;padding-bottom:16px}
.account-users-table td{vertical-align:middle;line-height:1.8;overflow-wrap:anywhere;padding:16px 10px}
.account-users-table td:last-child{min-width:0}
.account-users-table form{display:grid;gap:10px;margin:0}
.account-users-table input,.account-users-table button{height:42px;box-sizing:border-box}
.account-users-table form button{width:100%;white-space:nowrap}
.account-users-table .account-actions{display:grid;gap:10px;justify-items:stretch}
.account-users-table .account-actions button{white-space:nowrap;width:100%}
.account-users-table [data-credit] button{color:#315efb;border-color:#cbd6ff;background:#f4f6ff}

.account-balance{display:grid;grid-template-columns:2.5em minmax(0,1fr);column-gap:12px;row-gap:2px;max-width:160px}
.account-balance b{text-align:right;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}

.account-panel [data-account-filter][aria-pressed=true]{background:#edf1ff;color:#315efb;border-color:#cbd6ff}
.account-panel button[aria-busy=true]{cursor:progress}
.account-users-table .account-empty{text-align:center;padding:32px;color:#718096}

/* Account management: consistent columns and an isolated password editor. */
.account-users-table th:nth-child(1){width:22%}
.account-users-table th:nth-child(2){width:14%}
.account-users-table th:nth-child(3){width:20%}
.account-users-table th:nth-child(4){width:25%}
.account-users-table th:nth-child(5){width:19%}
.account-users-table td{padding:22px 12px}
.account-users-table th{padding:12px}
.account-users-table td:last-child button{width:100%;white-space:nowrap}
.account-users-table [data-credit]{grid-template-columns:minmax(0,1fr);gap:8px}
.account-users-table [data-credit] label{gap:6px}
.account-users-table tbody tr:last-child td{border-bottom:0}
.account-users-table .account-balance{max-width:170px}
.account-panel section>header{align-items:center}
.account-panel section>header h3{margin:0}
.account-password-dialog{width:min(460px,calc(100vw - 40px));box-sizing:border-box;border:1px solid #e0e6ef;border-radius:20px;padding:28px;color:#19283d;background:#fff;box-shadow:0 24px 80px #17294c33;max-height:90vh;overflow:auto}
.account-password-dialog::backdrop{background:rgba(21,34,56,.45)}
.account-password-dialog form{display:grid;gap:18px}
.account-password-dialog header,.account-password-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.account-password-dialog h2{font-size:22px;margin:0}
.account-password-dialog p{margin:0;line-height:1.6}
.account-password-target{color:#66758b;font-size:14px;overflow-wrap:anywhere}
.account-password-dialog label{display:grid;gap:8px;font-size:14px}
.account-password-dialog input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #d8e0ee;border-radius:10px;font:inherit}
.account-password-dialog button{padding:11px 18px;border:1px solid #dbe2ee;border-radius:10px;background:white;color:#254472;font:inherit;cursor:pointer}
.account-password-dialog button.primary{background:#315efb;border-color:#315efb;color:white}
.account-password-dialog button:disabled{opacity:.5;cursor:wait}
.account-password-dialog footer{justify-content:flex-end}
.account-password-dialog .account-message:empty{display:none}
.account-model-settings .settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}
.account-model-settings .settings-layout>div,.account-model-settings aside{min-width:0}
.account-model-settings .settings-layout section{margin-top:16px}
.account-model-settings .settings-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.account-model-settings .field.wide{grid-column:1/-1}
.account-model-settings .secret-field>div{display:block}
.account-model-settings .config-heading{display:flex;align-items:center;gap:14px}
.account-model-settings .config-heading>div{min-width:0}
.account-model-settings .side-setting-card h3{margin-top:8px}
.account-model-save{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.account-model-settings .model-logo{flex-shrink:0}
@media(max-width:850px){.account-model-settings .settings-layout{grid-template-columns:1fr}}
.account-model-settings .volc-family-card>header{justify-content:flex-start;align-items:center}
.account-model-settings .route-line select{height:auto;min-height:42px;line-height:1.5}
[data-price-config] fieldset,[data-price-config] .account-model{border:1px solid #e0e6ef;border-radius:14px;background:#fff;padding:20px;margin:0 0 18px}
[data-price-config] textarea{box-sizing:border-box;width:100%;min-height:64px;padding:12px;border:1px solid #d8e0ee;border-radius:9px;font:inherit;resize:vertical}
.account-model-settings .settings-layout{grid-template-columns:minmax(0,1fr)}
.account-model-settings .unified-presets{display:grid;grid-template-columns:1fr;gap:20px}
.account-route-group h4{margin:0 0 10px;font-size:15px;color:#516075}
.account-route-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-model-settings .account-route-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;min-width:0;padding:18px;border:1px solid #dbe2ee;border-radius:12px;background:#fff;color:#19283d}
.account-route-card strong{font-size:15px;overflow-wrap:anywhere}
.account-route-card small{color:#68768a}
.account-model-settings button.account-route-card:hover{border-color:#8fa7ff;background:#f7f9ff}
.account-model-settings .account-route-card[aria-pressed=true]{background:#edf1ff;border-color:#a7b9ff}
.account-route-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;font-size:12px;color:#315efb}
.account-route-badges .inactive{color:#8a6570}.account-route-badges .enabled{color:#248069}
@media(max-width:750px){.account-route-cards{grid-template-columns:1fr}}
/* Clip native scrollbars to the same rounded outline as the panel. */
.account-overlay{box-sizing:border-box;padding:clamp(20px,4vw,64px)}
.account-overlay>.account-panel{box-sizing:border-box;width:min(1160px,100%);max-height:88vh;max-height:88dvh;border-radius:20px;clip-path:inset(0 round 20px);overscroll-behavior:contain}
.account-overlay>.account-panel.login{max-width:520px}
@media(max-width:600px){.account-overlay{padding:18px}.account-overlay>.account-panel{padding:18px;max-height:calc(100dvh - 48px)}}
.account-route-toggle{display:flex!important;align-items:center;gap:8px!important;color:#254472}
.account-route-toggle input{width:auto!important}
.account-model-settings .account-route-edit{padding:4px 0;border:0;background:transparent;color:#315efb;font-size:12px}
.account-model-settings .account-route-card.is-default{background:#edf1ff;border-color:#a7b9ff}
body:has(#view-agent.active) .topbar [data-new-project]{display:none}
.account-price-advanced{margin:18px 0}
.account-price-advanced>summary{cursor:pointer;padding:14px;color:#516075}
[data-price-config] section:first-child input{max-width:260px}
