:root{--surface:#fffdf8;--ink:#30261e;--subtle:#766b5d;--line:#e8dfd1;--canvas:#f5f1e9}
.password-wrap{position:relative;display:block;width:100%}.password-wrap input{padding-right:76px!important;width:100%;box-sizing:border-box}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:1px solid var(--line);border-radius:6px;color:inherit;padding:6px 9px;font-size:12px;cursor:pointer}.password-toggle:focus-visible{outline:2px solid #c8102e;outline-offset:2px}
.permissions-box{border:1px solid var(--line);border-radius:12px;padding:20px;margin:22px 0}.permissions-box legend{font-weight:800;padding:0 8px}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 20px;margin:15px 0}.permission-grid .checkbox-row{margin:4px 0;align-items:flex-start;font-size:13px}.topbar-tools{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:16px}.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;border-radius:20px;background:#c8102e;color:white;font-size:11px;padding:0 5px;box-sizing:border-box;margin-left:5px}.side-nav .nav-count{margin-left:auto}.notification-list{display:grid;gap:12px}.notification-item{border:1px solid var(--line);border-radius:12px;padding:18px}.notification-item.unread{border-left:4px solid #c8102e}.notification-item h3{margin:0 0 8px}.notification-item p{margin:0 0 12px}.communication-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.welcome-invite{max-width:520px;margin:8vh auto;padding:32px}.operations-summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}#toast-container>div{opacity:1;border-radius:12px;box-shadow:0 8px 28px #0003}#toast-container>.toast-success{background-color:#146c43}#toast-container>.toast-error{background-color:#b42332}.operations-tabs{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}
html[data-theme="dark"]{color-scheme:dark;--surface:#20232b;--ink:#edf0f6;--subtle:#b2b9c8;--line:#3b4150;--canvas:#15181f}
html[data-theme="dark"] body,html[data-theme="dark"] .main-area,html[data-theme="dark"] .workspace,html[data-theme="dark"] .login-form{background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] :is(.card,.stat-card,.app-topbar,.receipt,.resource-card,.welcome-card,.search-result,.notice,.callout-links a,.login-inner){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(h1,h2,h3,h4,strong,label,legend,summary,td,th,.context,.profile-name,.balance,.metric-bar-row,.stat-card .label){color:var(--ink)}
html[data-theme="dark"] :is(.muted,.help,.stat-card small,.activity-item small,.chart-legend,.eyebrow){color:var(--subtle)}
html[data-theme="dark"] :is(input,select,textarea,button.button,a.button,.badge){background:#292e39;color:var(--ink);border-color:var(--line)}html[data-theme="dark"] :is(.button.primary,button.primary){background:#c8102e;color:white}
html[data-theme="dark"] :is(td,th,.card-header,.activity-item,.receipt-head,.notification-item,.permissions-box){border-color:var(--line)}html[data-theme="dark"] th,html[data-theme="dark"] tr:hover td{background:#272c36}html[data-theme="dark"] .badge.red{background:#56242f;color:#ffc6cf}html[data-theme="dark"] .badge.green{background:#194638;color:#a6efd1}html[data-theme="dark"] .data-chart text{fill:#edf0f6}
@media(max-width:900px){.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.communication-grid{grid-template-columns:1fr}.notification-bell>span{display:none}.topbar-tools{margin-right:6px;gap:4px}.app-topbar .context{display:none}.topbar-tools .button{padding:8px}.welcome-invite{margin:30px 14px}}
@media(max-width:480px){.permission-grid{grid-template-columns:1fr}.permissions-box{padding:12px}.topbar-tools{margin-left:0}.topbar-tools .button{font-size:11px}.profile-pill .badge{display:none}.app-topbar{gap:6px}.notification-bell{white-space:nowrap}}

html[data-theme="dark"] .workspace p,html[data-theme="dark"] .login-inner p{color:var(--subtle)}
.notification-bell{display:inline-flex;align-items:center;gap:5px}
.nav-count[hidden]{display:none}
