.user-switch{max-width:185px;padding:7px 8px;font-size:11px}
.system-user-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.system-user-toolbar h3,.settings-panel h3{font-size:15px;margin:0 0 5px}
.system-user-toolbar p,.settings-panel>p{font-size:11px;color:var(--muted);margin:0;line-height:1.7}
.system-user-list,.system-trash-list,.system-attachment-list{display:flex;flex-direction:column}
.system-user-list article,.system-trash-list article,.system-attachment-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid var(--line)}
.system-user-list article:last-child,.system-trash-list article:last-child,.system-attachment-list article:last-child{border-bottom:0}
.system-user-list article>div:first-child,.system-trash-list article>div,.system-attachment-list article>div:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}
.system-user-list small,.system-trash-list small,.system-attachment-list small{font-size:10px;color:var(--muted)}
.system-trash-list article>button{flex-shrink:0}
.system-attachment-list article>span{font-size:20px;color:var(--user-accent)}
.system-attachment-list article>div:nth-child(2){flex:1}
.system-attachment-list article>div:last-child{display:flex;gap:6px;align-items:center;flex-shrink:0}
.system-attachment-list a{color:inherit;text-decoration:none}
.system-security-note{margin-top:14px;padding:11px 13px;border-radius:9px;background:#fff8e8;color:#805d22;border:1px solid #f1dfb6;font-size:11px;line-height:1.8}
.general-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.general-settings-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px}
.system-attachment-input{grid-column:1/-1!important;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.system-attachment-preview{font-size:11px;color:var(--user-accent);margin-top:5px}
.notification-launch{position:relative;white-space:nowrap}
.notification-launch>b{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:12px;background:#bd4b45;color:#fff;font-size:10px}
.notification-panel{position:fixed;z-index:95;top:67px;left:20px;width:min(390px,calc(100vw - 24px));max-height:70vh;overflow:auto;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 16px 45px #10251c29;color:var(--ink)}
.notification-panel[hidden]{display:none}
.notification-panel>header{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-bottom:1px solid var(--line)}
.notification-panel>header button{border:0;background:transparent;font-size:20px;color:var(--muted);cursor:pointer}
.notification-row{display:flex;align-items:center;gap:10px;width:100%;padding:11px 13px;border:0;border-bottom:1px solid #eff2f0;background:transparent;color:inherit;text-align:right;cursor:pointer}
.notification-row>span{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#edf5ef;color:#176b50;font-weight:700}
.notification-row.is-late>span{background:#fff0ee;color:#bd4b45}
.notification-row>div{display:flex;flex:1;flex-direction:column;gap:3px}.notification-row small{font-size:10px;color:var(--muted)}.notification-row strong{font-size:11px;white-space:nowrap}
:root[data-app-theme="dark"] .notification-panel,:root[data-app-theme="dark"] .notification-row{background:#1a2620;color:#e5eee9;border-color:#30423a}
:root[data-app-theme="dark"] .notification-row.is-late>span{background:#402b2a;color:#f39c9c}
@media(max-width:700px){.user-switch{max-width:105px}.general-settings-grid{grid-template-columns:1fr}.system-user-toolbar{align-items:flex-start;flex-direction:column}.system-attachment-list article{align-items:flex-start;flex-wrap:wrap}.system-attachment-list article>div:last-child{margin-right:34px}.notification-panel{top:58px;left:12px}}

/* Keep the header controls in two intentional RTL groups. */
:root .topbar{height:auto;min-height:72px;padding:10px 24px;gap:18px;justify-content:space-between}
.topbar-context,.topbar-utilities{display:flex;align-items:center;min-width:0}
.topbar-context{gap:12px;flex:1 1 auto}
.topbar-context>.crumb{white-space:nowrap;font-size:12px}
.topbar-action-group{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}
.topbar-action-group>.btn{height:40px;padding:9px 14px;white-space:nowrap}
.topbar-add-person[hidden]{display:none}
.topbar-utilities{gap:8px;flex:0 0 auto}
.topbar-utilities>.profile{flex:0 1 auto;min-width:0;padding-inline-start:8px;border-inline-start:1px solid var(--line)}
.topbar-utilities>.btn{flex:0 0 auto;justify-content:center;white-space:nowrap}
.topbar-utilities .global-search-launch{min-width:142px}
.topbar-utilities .sidebar-collapse-toggle{width:42px}
:root[data-app-theme="dark"] .topbar-utilities>.profile{border-color:#30423a}
@media(max-width:1100px){:root .topbar{padding-inline:16px;gap:10px}.topbar-utilities{gap:6px}.topbar-utilities .global-search-launch{min-width:40px;width:40px;padding:7px;justify-content:center}.topbar-utilities .global-search-launch>span:not(:first-child),.topbar-utilities .global-search-launch kbd{display:none}.topbar-utilities .user-switch{max-width:120px}.topbar-utilities .profile>.muted{display:none}}
@media(max-width:850px){:root .topbar{flex-wrap:wrap;min-height:0;padding:10px 14px;gap:8px}.topbar-context{flex:1 1 100%;justify-content:space-between}.topbar-utilities{width:100%;justify-content:flex-start}.topbar-utilities>.profile{margin-inline-start:auto}}
@media(max-width:700px){.notification-panel{top:58px;left:12px}.topbar-context{flex-basis:100%;flex-wrap:wrap;justify-content:flex-start}.topbar-context>.crumb{max-width:100%;overflow:hidden;text-overflow:ellipsis}.topbar-action-group{gap:6px;flex-wrap:wrap}.topbar-action-group>.btn{height:38px;padding:8px 10px;font-size:11px}.topbar-utilities>.notification-launch span,.topbar-utilities>.appearance-launch{font-size:0}.topbar-utilities>.notification-launch{min-width:40px;width:40px;padding:7px}.topbar-utilities>.notification-launch>b{position:absolute;top:-5px;right:-5px}.topbar-utilities>.appearance-launch{width:40px;min-width:40px}.topbar-utilities>.appearance-launch:first-letter{font-size:15px}.topbar-utilities>.sidebar-collapse-toggle{width:36px;min-width:36px}}
