/* Independent account pages use the existing site's light/dark palette. */
.account-dashboard{max-width:1120px;margin:12px auto 0;display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
.account-dashboard .panel{padding:24px;min-width:0;border-radius:14px;box-shadow:none}
.account-dashboard h2{font-size:17px;margin:0 0 8px;line-height:1.5}
.account-content{display:grid;gap:20px;min-width:0}
.account-page-heading h1{font-size:28px;line-height:1.4;margin:7px 0 8px;font-weight:700;letter-spacing:-.5px;outline:none}
.account-page-heading>p{color:var(--muted);font-size:13px;margin:0;line-height:1.8}
.account-eyebrow{font-size:11px;color:var(--muted);letter-spacing:1px}
.account-breadcrumb{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);min-height:32px;text-decoration:none}
.account-breadcrumb svg{width:15px;height:15px}.account-breadcrumb:hover{color:var(--accent)}
.account-dashboard .account-sidebar{padding:14px 10px;position:sticky;top:108px}
.account-sidebar-user{display:flex;align-items:center;gap:10px;padding:8px 10px 20px;margin-bottom:9px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.account-sidebar-user>span:last-child{min-width:0}.account-sidebar-user strong{display:block;font-size:13px;overflow-wrap:anywhere}.account-sidebar-user small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.account-avatar{width:48px;height:48px;flex-shrink:0;border-radius:13px;background:var(--accent-wash);color:var(--accent);display:grid;place-items:center;font-size:22px;font-weight:700}
.account-sidebar-user .account-avatar{width:36px;height:36px;border-radius:10px;font-size:18px}
.account-sidebar nav{display:grid;gap:5px}.account-sidebar nav a{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;min-height:43px;padding:8px 12px;border-radius:8px;text-decoration:none;box-sizing:border-box}
.account-sidebar nav a svg{width:18px;height:18px;flex-shrink:0}.account-sidebar nav a:hover{background:var(--surface2);color:var(--ink)}
.account-sidebar nav a.is-current{background:var(--accent-wash);color:var(--accent);font-weight:600}
.account-nav-group{font-size:10px;color:var(--muted);margin:15px 12px 5px}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.account-identity{display:flex;align-items:center;gap:14px;min-width:0}.account-identity>div:last-child{min-width:0}
.account-dashboard .account-identity h2{font-size:25px;margin:0;overflow-wrap:anywhere}
.account-identity p{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:7px 0 0;font-size:11px;color:var(--muted)}
.profile-role{background:var(--surface2);border-radius:4px;padding:3px 7px}.profile-state{display:inline-flex;align-items:center;gap:4px}.profile-state svg{width:13px;height:13px;color:var(--accent)}
.profile-edit{font-size:12px;flex-shrink:0;gap:8px}.profile-edit svg{width:14px;height:14px}
.profile-details{display:grid;grid-template-columns:.7fr 1.15fr 1.15fr;gap:16px;border-top:1px solid var(--line);padding-top:22px;margin:22px 0 0}
.profile-details dt{color:var(--muted);font-size:11px;margin-bottom:8px}.profile-details dd{font-size:12px;line-height:1.8;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.profile-usage{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.profile-usage>a{display:block;background:var(--surface);border:1px solid var(--line);padding:20px 24px;border-radius:14px;text-decoration:none;color:inherit}
.profile-usage span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.profile-usage span svg{width:17px;height:17px;color:var(--accent)}
.profile-usage strong{display:block;font-size:28px;font-weight:650;margin:10px 0 8px;line-height:1.3;font-variant-numeric:tabular-nums}
.profile-usage small{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.profile-usage small svg{width:14px;height:14px}
.profile-usage>a:hover,.account-entry:hover{border-color:var(--accent)}
.account-dashboard .account-entry-panel{padding:22px 24px}.account-entry-panel h2{font-size:15px;margin-bottom:15px}
.account-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-entry{display:flex;align-items:center;gap:10px;padding:14px 12px;border:1px solid var(--line);border-radius:10px;color:inherit;text-decoration:none;min-width:0}
.account-entry-icon{width:33px;height:33px;border-radius:8px;background:var(--surface2);color:var(--muted);display:grid;place-items:center;flex-shrink:0}.account-entry-icon svg{width:17px;height:17px}
.account-entry>span:nth-child(2){min-width:0;flex:1}.account-entry strong{display:block;font-size:12px;font-weight:600;line-height:1.6}.account-entry small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}
.account-entry>svg{width:13px;height:13px;flex-shrink:0;color:var(--muted)}
.section-label{display:flex;align-items:baseline;gap:8px}.section-label .account-badge{margin:0}
.profile-footer{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 3px 8px}
.account-dashboard .form-field,.account-confirm .form-field{margin:0 0 15px;font-size:13px;display:flex;flex-direction:column;gap:8px}
.account-dashboard input,.account-confirm input{width:100%;min-width:0;box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:11px 12px;font:inherit;min-height:46px;margin:0}
.account-dashboard input:focus,.account-confirm input:focus{outline:2px solid var(--accent);outline-offset:2px}
.account-dashboard a:focus-visible,.account-dashboard button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.account-dashboard .form-message,.account-confirm .form-message{min-height:0;overflow-wrap:anywhere}
.account-dashboard .form-message:empty,.account-confirm .form-message:empty{display:none}
.account-dashboard .form-message:not(:empty),.account-confirm .form-message:not(:empty){margin:12px 0;color:var(--accent);font-size:13px}
.account-dashboard .account-form-panel{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,1.4fr);gap:28px}
.account-form-intro p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.account-form-panel form{max-width:440px}
.account-dashboard .field-help{font-size:11px;color:var(--muted);line-height:1.9;margin:0 0 16px}.account-form-panel .field-help{margin:-7px 0 17px}.account-settings>.field-help{margin:12px 0 0}
.account-dashboard .subtle{font-size:12px;line-height:1.8;margin:0 0 17px}
.account-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.device-row,.invite-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:18px 0;min-width:0}
.device-row>div,.invite-row>div{min-width:0;flex:1}.device-row strong,.invite-row strong{font-size:13px;overflow-wrap:anywhere}
.device-row p,.invite-row p{font-size:11px;color:var(--muted);line-height:1.8;margin:7px 0 0}
.device-icon{width:34px;height:34px;display:grid;place-items:center;background:var(--surface2);border-radius:8px;flex-shrink:0;color:var(--muted)}.device-icon svg{width:19px;height:19px}
.device-row .text-button,.invite-row .text-button{flex-shrink:0;min-height:44px}
.account-badge{display:inline-flex;align-items:center;vertical-align:middle;font-size:10px;line-height:1.5;padding:3px 7px;border-radius:5px;background:var(--accent-wash);color:var(--accent);margin-left:8px;white-space:nowrap}
.account-badge.is-disabled{color:var(--muted);background:var(--surface2)}
.account-section-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;font-size:11px;color:var(--muted)}
.account-data-summary{display:flex;gap:25px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:20px 0}.account-data-summary strong{color:var(--ink);font-size:18px;margin-left:8px}
.data-operation{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--line);margin-top:15px}
.data-operation+ .data-operation{margin:0;padding-bottom:0}.data-operation strong{font-size:13px}.data-operation p{font-size:11px;line-height:1.8;color:var(--muted);margin:7px 0 0}.data-operation button{font-size:12px;flex-shrink:0}
.danger-text{color:var(--accent)!important}.danger-button{background:#b1322c;color:#fff;border:0;border-radius:9px;padding:11px 18px;min-height:44px;font:inherit;font-weight:600;cursor:pointer}
.account-dashboard button:disabled,.account-confirm button:disabled{opacity:.45;cursor:default}
.admin-title{display:flex;justify-content:space-between;gap:14px;align-items:center}.admin-title .subtle{margin:5px 0}.admin-title button{font-size:12px;flex-shrink:0}
.admin-search{display:flex;gap:10px;margin:20px 0 8px}.admin-search input{flex:1}.admin-search button{flex-shrink:0}
.managed-user{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);min-width:0}.managed-user-main{min-width:0}
.user-name{display:flex;align-items:center;gap:0;flex-wrap:wrap}.user-name strong{font-size:14px;overflow-wrap:anywhere}.user-name small{margin-left:9px;color:var(--muted);font-size:10px}
.managed-user-main p{color:var(--muted);font-size:11px;margin:6px 0;line-height:1.7}.user-counts{display:flex;gap:14px;font-size:11px;color:var(--muted);margin-top:8px;flex-wrap:wrap}
.managed-user-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;max-width:255px}.managed-user-actions button{min-height:44px;font-size:11px}.managed-user-actions .secondary{padding:8px 12px}
.protected-user{font-size:11px;color:var(--muted);align-self:center}
.account-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:22px 0 0}.account-pagination[hidden]{display:none}
.account-log ul{list-style:none;padding:0;font-size:12px;margin:14px 0 0}.account-log li{padding:17px 0;display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid var(--line);line-height:1.8}.account-log li span{overflow-wrap:anywhere}.account-log time{white-space:nowrap;color:var(--muted);font-size:11px}
.account-dashboard #inviteResult{margin-top:18px;max-width:420px}.account-empty{padding:15px 0}
.account-confirm{width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;box-sizing:border-box;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--surface);overflow:auto}
.account-confirm .dialog-top h2{font-size:20px}.account-confirm>form>p{font-size:13px;color:var(--muted);line-height:1.9}.account-confirm::backdrop{background:rgba(0,0,0,.5)}.account-confirm .account-buttons{justify-content:flex-end;margin-top:18px}.account-confirm .icon-button{flex-shrink:0}
@media(max-width:1100px){.account-dashboard{grid-template-columns:180px minmax(0,1fr);gap:22px}.account-entry-grid{grid-template-columns:1fr}.account-entry{padding:12px 14px}.account-entry small{margin-top:2px}.account-form-panel{gap:20px}}
@media(max-width:900px){.account-dashboard{grid-template-columns:1fr;max-width:740px}.account-sidebar{display:none}.account-entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.account-page-heading h1{font-size:26px}}
@media(max-width:600px){.account-dashboard{margin:4px auto 0}.account-content{gap:16px}.account-dashboard .panel{padding:20px}.account-page-heading h1{font-size:25px;margin-top:4px}.account-page-heading>p{font-size:12px}.account-dashboard .account-identity h2{font-size:23px}.profile-heading{gap:12px;align-items:flex-start}.profile-edit{padding:8px 10px;font-size:11px}.profile-edit svg{display:none}.account-identity{gap:11px}.account-avatar{width:43px;height:43px;border-radius:11px;font-size:20px}.account-identity p{gap:7px;font-size:10px}.profile-details{grid-template-columns:1fr;gap:12px;padding-top:18px;margin-top:20px}.profile-details>div{display:flex;justify-content:space-between;gap:16px}.profile-details dt{margin:0;white-space:nowrap;line-height:1.8}.profile-details dd{text-align:right;font-size:11px}.profile-usage{gap:12px}.profile-usage>a{padding:16px 18px}.profile-usage strong{font-size:26px}.profile-usage small{font-size:10px}.account-entry-grid{grid-template-columns:1fr;gap:9px}.account-dashboard .account-entry-panel{padding:20px}.account-entry-panel h2{font-size:14px;margin-bottom:12px}.account-entry{padding:11px 12px}.account-entry-icon{width:32px;height:32px}.account-entry strong{font-size:12px}.account-entry small{font-size:10px}.account-dashboard .account-form-panel{grid-template-columns:1fr;gap:20px}.account-form-panel form{max-width:none}.device-row{gap:9px}.device-icon{display:none}.account-section-footer{align-items:flex-start;flex-direction:column;gap:4px}.data-operation{gap:12px}.data-operation button{font-size:11px;padding:8px 10px}.managed-user{grid-template-columns:1fr}.managed-user-actions{max-width:none;justify-content:flex-start;gap:13px}.protected-user{margin-top:4px}.account-log li{flex-direction:column;gap:5px}.account-confirm{padding:20px}.account-badge{margin-left:6px}.profile-footer{margin-top:-4px}}
@media(prefers-reduced-motion:no-preference){.account-entry,.profile-usage>a{transition:border-color .15s}}
