#clientAccountsPanel { color:#152f3c; min-width:0; }
#clientAccountsPanel h2,#clientAccountsPanel h3 { margin-top:0; }
#clientAccountsPanel p,#clientAccountsPanel code { overflow-wrap:anywhere; }
#clientAccountsPanel code { display:block; max-width:100%; white-space:normal; }
#clientAccountsPanel label { display:grid; gap:6px; font-weight:700; }
#clientAccountsPanel input { width:100%; min-width:0; min-height:44px; padding:10px; color:#152f3c; background:#fff; border:1px solid #68899c; border-radius:8px; font:inherit; box-sizing:border-box; }
#clientAccountsPanel input[type="checkbox"] { width:22px; min-height:22px; accent-color:#006656; }
#clientAccountsPanel input:disabled { opacity:1; color:#4b6570; background:#e7eff3; }
#clientAccountsPanel button { min-height:44px; max-width:100%; padding:10px 14px; white-space:normal; overflow-wrap:anywhere; color:#fff; background:#006656; border:1px solid #006656; border-radius:9px; font:inherit; font-weight:700; cursor:pointer; }
#clientAccountsPanel button:disabled { cursor:not-allowed; opacity:1; color:#4b6570; background:#e7eff3; border-color:#68899c; }
#clientAccountsPanel button:focus-visible,#clientAccountsPanel input:focus-visible,#clientAccountsPanel summary:focus-visible { outline:3px solid #1476ff; outline-offset:3px; }
#clientAccountsPanel .client-account-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:end; }
#clientAccountsPanel .client-account-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:14px; margin:16px 0; }
#clientAccountsPanel .client-account-card,#clientAccountsPanel .client-account-editor { min-width:0; padding:16px; color:#152f3c; background:#f8fbfe; border:1px solid #9bb8c7; border-radius:12px; }
#clientAccountsPanel .client-account-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
#clientAccountsPanel .client-account-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
#clientAccountsPanel .client-account-editor h3,#clientAccountsPanel .client-account-editor p,#clientAccountsPanel fieldset { grid-column:1/-1; }
#clientAccountsPanel fieldset { display:flex; flex-wrap:wrap; gap:14px; border:1px solid #68899c; border-radius:8px; }
#clientAccountsPanel fieldset label { display:flex; align-items:center; gap:8px; min-height:44px; }
#clientAccountsPanel .client-account-message:empty { display:none; }
#clientAccountsPanel .client-account-message,#clientAccountsPanel .client-account-hold { padding:12px; border:1px solid #68899c; border-radius:8px; color:#174956; background:#edf5fa; }
#clientAccountsPanel .client-account-message[data-kind="error"] { color:#8d1c24; background:#fff0f0; border-color:#a64b54; }
#clientAccountsPanel .client-account-message[data-kind="warning"] { color:#664300; background:#fff5cf; border-color:#967324; }
#clientAccountsPanel [hidden] { display:none !important; }
.app-shell.desktop-layout > #clientAccountsPanel.app-route-active { grid-column:2/-1 !important; grid-row:2 !important; }
body.theme-dark #clientAccountsPanel { color:#f1f7f8; }
body.theme-dark #clientAccountsPanel .client-account-card,body.theme-dark #clientAccountsPanel .client-account-editor { color:#f1f7f8; background:#132c34; border-color:#6e9b99; }
body.theme-dark #clientAccountsPanel input { color:#f1f7f8; background:#0c2129; border-color:#88adae; }
body.theme-dark #clientAccountsPanel input:disabled,body.theme-dark #clientAccountsPanel button:disabled { color:#aac3c8; background:#203b45; border-color:#6e9b99; }
body.theme-dark #clientAccountsPanel button:not(:disabled) { color:#103c37; background:#ceeae3; border-color:#b1dccf; }
body.theme-dark #clientAccountsPanel button:focus-visible,body.theme-dark #clientAccountsPanel input:focus-visible,body.theme-dark #clientAccountsPanel summary:focus-visible { outline-color:#8bc8ff; }
body.theme-dark #clientAccountsPanel .client-account-message,body.theme-dark #clientAccountsPanel .client-account-hold { color:#e0f3f1; background:#183e46; border-color:#6e9b99; }
body.theme-dark #clientAccountsPanel .client-account-message[data-kind="error"] { color:#ffd5da; background:#4b1721; border-color:#df8e9c; }
body.theme-dark #clientAccountsPanel .client-account-message[data-kind="warning"] { color:#ffe6a1; background:#493608; border-color:#d9b865; }
@media(max-width:640px){#clientAccountsPanel .client-account-toolbar { grid-template-columns:1fr 1fr; }#clientAccountsPanel .client-account-toolbar>label { grid-column:1/-1; }#clientAccountsPanel .client-account-editor { grid-template-columns:1fr; }#clientAccountsPanel .client-account-actions button { flex:1 1 140px; }}

/* Pending creation is a server state, not a merely frozen account. */
#clientAccountsPanel .client-account-card[data-creation-pending="true"] { border-color:#967324; }
#clientAccountsPanel .client-account-card[data-creation-pending="true"] .client-account-status { color:#664300; background:#fff5cf; border:1px solid #967324; padding:8px 10px; border-radius:8px; font-weight:700; }
body.theme-dark #clientAccountsPanel .client-account-card[data-creation-pending="true"] { border-color:#d9b865; }
body.theme-dark #clientAccountsPanel .client-account-card[data-creation-pending="true"] .client-account-status { color:#ffe6a1; background:#493608; border-color:#d9b865; }
