.password-access { color:var(--text,#e6e9f2); font:inherit; min-width:0; }
.password-access small { display:block; margin-top:5px; color:var(--muted,#a5adbf); font-size:12px; line-height:1.45; }
.password-portal-toggle,.password-account-enabled { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.password-access input[role="switch"] { appearance:none; flex:0 0 auto; width:40px; height:24px; border:1px solid var(--line,#292f40); border-radius:12px; background:var(--surface2,#1b2030); position:relative; cursor:pointer; }
.password-access input[role="switch"]::after { content:''; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:var(--text,#e6e9f2); }
.password-access input[role="switch"]:checked { background:var(--accent,#4f9cf9); }
.password-access input[role="switch"]:checked::after { left:19px; background:#fff; }
.password-access input:focus-visible,.password-access button:focus-visible { outline:2px solid var(--accent,#4f9cf9); outline-offset:3px; }
.password-access-status { margin:12px 0; font-size:13px; line-height:1.5; }
.password-access-status:empty { display:none; }
.password-access h3 { font-size:20px; margin:0 0 6px; }
.password-access form { display:grid; gap:18px; }
.password-access form[hidden] { display:none; }
.password-access form>label:not(.password-account-enabled) { display:grid; gap:6px; font-size:13px; text-align:left; }
.password-access input:not([type="checkbox"]) { width:100%; min-width:0; box-sizing:border-box; padding:12px; border:1px solid var(--line,#292f40); border-radius:9px; color:var(--text,#e6e9f2); background:#111621; font:inherit; font-size:16px; }
.password-permissions { border:0; margin:0; padding:0; min-width:0; }
.password-permissions legend { padding:0; margin-bottom:8px; font-size:13px; }
.password-permissions label { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:7px 0; }
.password-access button { min-height:44px; padding:9px 14px; border:1px solid var(--line,#292f40); border-radius:9px; font:inherit; background:var(--surface,#252b37); color:var(--text,#e6e9f2); cursor:pointer; }
.password-access .password-access-save { background:linear-gradient(135deg,var(--accent),#5364e8); color:#fff; border-color:transparent; font-weight:700; }
.password-access :disabled { opacity:.55; cursor:wait; }
.password-account { border-top:1px solid var(--line,#292f40); padding:14px 0; }
.password-account form { margin-top:18px; }
.password-account-actions { display:flex; flex-wrap:wrap; gap:10px; }
.password-access-empty { font-size:13px; color:var(--muted,#a5adbf); }

#view-password-access { max-width:1280px; }
.password-community-picker { display:flex; align-items:center; gap:14px; margin-bottom:24px; max-width:440px; }
.password-community-avatar { flex:0 0 48px; width:48px; height:48px; border-radius:50%; overflow:hidden; background:var(--surface2); color:var(--accent2); display:grid; place-items:center; font-size:20px; font-weight:700; }
.password-community-avatar img { width:100%; height:100%; object-fit:cover; }
.password-community-picker label { display:grid; gap:8px; flex:1; min-width:0; font-size:14px; }
.password-community-picker select { width:100%; min-width:0; min-height:48px; padding:12px; border:1px solid var(--line); border-radius:9px; color:var(--text); background:#111621; font:inherit; }
.password-community-picker select:focus-visible,.password-account-info:focus-visible { outline:2px solid var(--accent2); outline-offset:3px; }
.password-access-intro { max-width:760px; color:var(--muted); margin-bottom:24px; line-height:1.6; }
.password-access-panel { padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); min-width:0; }
.password-access-control { margin-bottom:24px; }
.password-access-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:24px; align-items:start; }
.password-access-layout:has([data-password-create][hidden]) { grid-template-columns:1fr; }
.password-portal-toggle strong { font-size:16px; }
.password-access input[role="switch"] { margin:0; }
.password-account:first-child { border-top:0; }
.password-account:last-child { padding-bottom:0; }
.password-accounts h3 { margin-bottom:12px; }
.password-access-empty { margin:0; line-height:1.6; }
@media(max-width:1100px) { .password-access-layout { grid-template-columns:1fr; } }
@media(max-width:560px) { .password-access-panel { padding:16px; } .password-access-layout { gap:16px; } .password-community-picker { max-width:none; } .password-account-actions button { width:100%; } }

.password-account-head { display:flex; gap:10px; align-items:flex-start; }
.password-access .password-account-info { display:flex; flex:1; min-width:0; justify-content:space-between; align-items:flex-start; gap:12px; padding:6px 0; text-align:left; background:transparent; border:0; overflow-wrap:anywhere; }
.password-account-info>span:first-child { min-width:0; }
.password-account-state { flex-shrink:0; color:var(--muted); font-size:12px; padding-top:3px; }
.password-access .password-account-edit { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; background:var(--surface2); }
.password-account-info:hover strong { color:var(--accent2); }
.password-account h4 { margin:0 0 4px; font-size:16px; }
.password-login-history { margin-top:18px; border-top:1px solid var(--line); padding-top:18px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.password-login-history p { margin:8px 0; }
.password-history-note { color:var(--muted); }
.password-login-history ol { list-style:none; padding:0; margin:16px 0 0; }
.password-login-history li { border-top:1px solid var(--line); padding:14px 0; }
.password-login-history li>div { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.password-login-history time { color:var(--muted); font-variant-numeric:tabular-nums; }
.password-login-success { color:var(--success); }
.password-login-failed { color:#ffacb7; }
.password-permissions label,.password-account-enabled { min-height:44px; cursor:pointer; }
@media(max-width:560px) { .password-access .password-account-info { flex-direction:column; gap:6px; } }
