/* Account dashboard. All selectors are scoped away from the master header. */
.account-page{--ac-bg:#0b1420;--ac-surface:#121f2e;--ac-line:#2a3b51;--ac-text:#ecf3fc;--ac-muted:#a3b5cc;--ac-blue:#0081fb}
.account-page main.account-layout{max-width:1200px;margin:38px auto 70px;padding:0 24px;display:grid;grid-template-columns:218px minmax(0,1fr);gap:36px;color:var(--ac-text)}
.account-sidebar{position:sticky;top:90px;align-self:start}.account-mini-profile{display:flex;gap:11px;align-items:center;padding:6px 6px 24px;min-width:0}.account-mini-profile strong{display:block;overflow-wrap:anywhere;font-size:14px}.account-mini-profile small{color:var(--ac-muted);font-size:11px}.account-avatar{display:grid;place-items:center;background:#123b63;color:#a9d8ff;border:1px solid #265d8b;border-radius:15px;width:44px;height:44px;flex:0 0 auto;font-size:16px;font-weight:700;letter-spacing:.02em}.account-avatar.large{width:66px;height:66px;border-radius:21px;font-size:24px}
.account-nav{display:grid;gap:6px}.account-nav button,.account-side-link{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;color:var(--ac-muted);border-radius:9px;padding:12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;text-align:left}.account-nav button:hover,.account-side-link:hover{background:#182b40;color:#fff}.account-nav [aria-selected=true]{background:#102f50;border-color:#1c527f;color:#8fcaff}.account-nav .ant-icon,.account-side-link .ant-icon{width:18px;height:18px}.account-nav .account-nav-count{margin-left:auto;font-size:11px;color:inherit}.account-side-bottom{border-top:1px solid var(--ac-line);margin-top:24px;padding-top:15px}
.account-content{min-width:0}.account-page [hidden]{display:none!important}.account-page .account-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:25px}.account-topline h1{font-size:29px;letter-spacing:-.8px;margin:0 0 7px;line-height:1.25}.account-topline p{color:var(--ac-muted);font-size:13px;margin:0;line-height:1.6}.account-page .account-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 14px;border:1px solid #3a4e67;border-radius:9px;background:#1a2a3e;color:#eaf3ff;cursor:pointer;font:inherit;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.account-page .account-button:hover{background:#243c58;border-color:#6082a8}.account-page .account-button.primary{background:#0081fb;color:#fff;border-color:#0081fb}.account-page .account-button.primary:hover{background:#1678d8}.account-page .account-button.subtle{background:transparent}.account-page .account-button.danger{color:#ffb6b6;border-color:#69404b;background:#35212b}.account-page .account-button:disabled{opacity:.5;cursor:wait}.account-button .ant-icon{width:16px;height:16px;flex-shrink:0}
.account-panel-card{background:var(--ac-surface);border:1px solid var(--ac-line);border-radius:15px;padding:22px;margin-bottom:22px}.account-profile-banner{display:flex;gap:18px;align-items:center;padding:25px;background:linear-gradient(115deg,#142b43,#121f2e 75%)}.account-profile-copy{min-width:0;flex:1}.account-profile-copy h2{margin:7px 0;font-size:22px;letter-spacing:-.4px;overflow-wrap:anywhere}.account-profile-copy p{margin:0;color:var(--ac-muted);font-size:12px;overflow-wrap:anywhere}.account-label{font-size:10px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:#83bfff}.account-status-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;background:#123b36;color:#8bdbbf;padding:6px 10px;border:1px solid #28584d;border-radius:20px;white-space:nowrap}.account-status-pill::before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}
.account-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}.account-metric{background:var(--ac-surface);border:1px solid var(--ac-line);border-radius:12px;padding:18px}.account-metric span{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ac-muted)}.account-metric strong{display:block;font-size:24px;letter-spacing:-.5px;margin-top:12px}.account-metric small{display:block;color:var(--ac-muted);font-size:10px;margin-top:4px;line-height:1.5}.account-metric .ant-icon{width:15px;height:15px;color:#7dbdff}
.account-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.account-section-heading h2{font-size:17px;letter-spacing:-.3px;margin:0}.account-section-heading p{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--ac-muted)}.account-text-link{border:0;background:none;color:#80bdff;font:inherit;font-size:12px;cursor:pointer;text-decoration:none;padding:5px 0}.account-text-link:hover{text-decoration:underline}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.account-tool{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid var(--ac-line);background:var(--ac-surface);border-radius:12px;padding:15px;color:var(--ac-text);text-decoration:none;position:relative}.account-tool:hover{border-color:#4a79a6;background:#172b40}.account-tool-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#123b63;color:#88c7ff;flex-shrink:0}.account-tool-icon .ant-icon{width:19px;height:19px}.account-tool-copy{min-width:0;flex:1}.account-tool strong{font-size:12px;display:block;line-height:1.5}.account-tool small{display:block;font-size:10px;color:var(--ac-muted);margin-top:3px;line-height:1.5}.account-tool .account-remove{background:transparent;border:0;padding:6px;color:#8fa7c2;cursor:pointer;border-radius:6px;flex-shrink:0}.account-tool .account-remove:hover{color:#ffb6b6;background:#38262f}.account-remove .ant-icon{width:16px;height:16px}
.account-empty{grid-column:1/-1;text-align:center;padding:28px 20px;border:1px dashed #344d68;border-radius:12px;color:var(--ac-muted);font-size:12px;line-height:1.6}.account-empty>.ant-icon{width:26px;height:26px;color:#7ea7cf;margin-bottom:10px}.account-empty strong{display:block;color:#e6effc;font-size:14px;margin-bottom:5px}.account-empty p{margin:0 0 12px}.account-empty .account-button{margin-top:3px}.account-note{font-size:11px;line-height:1.7;color:var(--ac-muted);margin:10px 0}.account-note .ant-icon{width:14px;height:14px;vertical-align:-3px;margin-right:4px}.account-message{padding:11px 14px;border:1px solid #365679;border-radius:9px;color:#b9d8fc;background:#122d47;margin-bottom:18px;font-size:12px;line-height:1.6}.account-message.error{background:#35212b;border-color:#69404b;color:#ffc2c2}.account-message.success{background:#12352d;border-color:#2a6652;color:#a3e4cb}
.account-toolbar{display:flex;gap:10px;margin-bottom:20px}.account-page .account-input,.account-page .account-select{min-height:42px;background:#0c1724;border:1px solid #3a4e67;border-radius:9px;color:#edf4fe;font:inherit;font-size:13px;padding:10px 12px;min-width:0}.account-search-field{flex:1;display:flex;align-items:center;gap:9px;border:1px solid #3a4e67;border-radius:9px;padding:0 12px;background:#0c1724}.account-search-field .ant-icon{width:17px;height:17px;color:#9db3cb}.account-page .account-search-field input{flex:1;width:100%;border:0;background:transparent;padding:11px 0;min-height:42px;color:#edf4fe;font:inherit;font-size:12px;outline:none}.account-search-field:focus-within{outline:2px solid #6cb8ff;outline-offset:2px}.account-layout :is(button,a,input,select):focus-visible,.account-dialog :is(button,a,input,select):focus-visible{outline:2px solid #7fc2ff;outline-offset:3px}
.account-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--ac-line)}.account-row:last-child{border-bottom:0}.account-row-main{flex:1;min-width:0}.account-row-main strong{display:block;font-size:13px;overflow-wrap:anywhere}.account-row-main small{display:block;color:var(--ac-muted);font-size:11px;line-height:1.6;margin-top:5px}.account-row-actions{display:flex;gap:7px}.account-type{font-size:10px;color:#8fcaff;padding:4px 7px;border:1px solid #304d6b;border-radius:6px;text-transform:capitalize}.account-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.account-field label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.account-field input{width:100%}.account-field small{display:block;font-size:11px;line-height:1.6;color:var(--ac-muted);margin-top:8px}.account-form-actions{display:flex;align-items:center;gap:16px;margin-top:20px}.account-local-project{display:block;background:var(--ac-surface);border:1px solid var(--ac-line);border-radius:12px;overflow:hidden;color:var(--ac-text);text-decoration:none}.account-project-preview{height:125px;display:grid;place-items:center;background:#0b1521}.account-project-preview img{width:100%;height:100%;object-fit:contain}.account-project-preview>.ant-icon{width:30px;height:30px;color:#6fa8dc}.account-project-details{padding:14px}.account-project-details strong{display:block;font-size:12px}.account-project-details small{display:block;font-size:10px;color:var(--ac-muted);margin-top:6px}.account-local-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.account-inline-links{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.account-inline-links a{color:#88c5ff}.account-loading{padding:65px 0;color:var(--ac-muted);font-size:13px}.account-loading .ant-icon{width:20px;height:20px;margin-right:10px;vertical-align:middle;animation:account-spin 1.5s linear infinite}@keyframes account-spin{to{transform:rotate(360deg)}}
.account-dialog{width:min(640px,calc(100vw - 32px));max-height:85dvh;background:#121f2e;color:#edf4fe;border:1px solid #405570;border-radius:16px;padding:24px;box-shadow:0 30px 100px #0008}.account-dialog::backdrop{background:#030a14b8;backdrop-filter:blur(4px)}.account-dialog h2{font-size:21px;margin:0}.account-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.account-dialog .account-icon-button{display:grid;place-items:center;width:34px;height:34px;background:#1a2a3e;color:#b9cce4;border:1px solid #3a4e67;border-radius:8px;cursor:pointer}.account-dialog .account-grid{margin-top:18px;max-height:45dvh;overflow:auto}.account-picker-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0c1724;border:1px solid #30465f;border-radius:10px;padding:12px}.account-picker-item strong{font-size:12px;display:block}.account-picker-item small{font-size:10px;color:#a3b5cc}.account-picker-item button{flex-shrink:0}.account-dialog p{font-size:13px;color:#b7c9e0;line-height:1.7}.account-dialog footer{background:transparent!important;border:0!important;padding:18px 0 0!important;display:flex;justify-content:flex-end;gap:10px}
@media(max-width:950px){.account-page main.account-layout{gap:24px;grid-template-columns:180px minmax(0,1fr)}.account-profile-banner{padding:20px;flex-wrap:wrap}.account-local-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-form-grid{grid-template-columns:1fr}.account-metric{padding:14px}.account-metric strong{font-size:21px}}
@media(max-width:680px){.account-page main.account-layout{display:block;margin:18px auto 40px;padding:0 16px}.account-sidebar{position:static;margin-bottom:24px}.account-mini-profile{display:none}.account-nav{display:flex;overflow-x:auto;gap:5px;padding:3px 0 9px;scrollbar-width:thin}.account-nav button{flex-shrink:0;padding:11px 12px;min-height:44px;font-size:11px}.account-nav .ant-icon{width:16px;height:16px}.account-side-bottom{display:none}.account-topline{margin-bottom:20px}.account-topline h1{font-size:25px}.account-topline .account-button{font-size:11px;padding:8px 10px}.account-profile-banner{gap:13px;padding:18px}.account-profile-copy h2{font-size:19px}.account-avatar.large{width:52px;height:52px;font-size:20px}.account-status-pill{font-size:10px}.account-metrics{gap:7px;margin-bottom:24px}.account-metric{padding:12px 9px}.account-metric strong{font-size:19px}.account-metric span{font-size:10px;gap:4px}.account-metric small{font-size:9px}.account-metric .ant-icon{display:none}.account-grid{grid-template-columns:1fr}.account-local-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-section-heading{align-items:flex-start}.account-section-heading h2{font-size:16px}.account-panel-card{padding:18px}.account-toolbar{flex-wrap:wrap}.account-search-field{min-width:160px}.account-row{flex-wrap:wrap}.account-row-actions{margin-left:auto}.account-dialog{padding:20px}.account-dialog .account-grid{grid-template-columns:1fr}.account-form-actions{flex-wrap:wrap}.account-profile-banner .account-status-pill{margin-left:65px}}
@media(prefers-reduced-motion:reduce){.account-loading .ant-icon{animation:none}}

@media(max-width:680px){.account-page .account-button{min-height:44px}}

@media(max-width:680px){.account-profile-banner{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center}.account-profile-banner .account-status-pill{grid-column:2;margin-left:0;justify-self:start}.account-profile-copy h2{font-size:18px}.account-label{font-size:9px;letter-spacing:1px}.account-nav{scrollbar-color:#344b65 #0b1420}}

.account-side-link[data-signout] .ant-icon{transform:scaleX(-1)}@media(max-width:680px){.account-tool .account-remove{min-width:44px;min-height:44px}.account-dialog .account-icon-button{width:44px;height:44px}}

/* Give small dashboards real card space instead of squeezing three columns. */
@media(max-width:680px){
.account-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:7px;padding:0}
.account-nav button{width:100%;min-width:0;gap:8px;padding:12px;font-size:12px;border-color:var(--ac-line);background:var(--ac-surface);white-space:normal}
.account-nav button:last-child:nth-child(odd){grid-column:1/-1}
.account-nav .ant-icon{flex-shrink:0}.account-nav .account-nav-count{margin-left:auto}
.account-sidebar{margin-bottom:28px}
.account-page .account-topline{display:grid;grid-template-columns:1fr;gap:14px}.account-topline .account-button{justify-self:start}
.account-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-metric{min-width:0;padding:16px}.account-metric:last-child{grid-column:1/-1}
.account-metric strong{font-size:24px;line-height:1.25;margin-top:10px;overflow-wrap:anywhere}
.account-metric span{font-size:12px;line-height:1.5}.account-metric small{font-size:11px;line-height:1.65;margin-top:8px}
.account-metric .ant-icon{display:block;flex-shrink:0}.account-profile-banner{padding:20px;gap:14px}
.account-label{font-size:9px;line-height:1.6}.account-profile-copy p{line-height:1.6}
}
