.admin-shell-header{position:sticky;top:0;z-index:900;background:linear-gradient(100deg,#fff 0%,#fff 60%,#f1f8f5 100%);border-bottom:1px solid #dbe8e1;box-shadow:0 3px 16px #173b2910;color:#203c32}.admin-shell-inner{max-width:1440px;margin:auto;padding:14px 24px;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center}.admin-shell-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#174f3c;min-width:0}.admin-shell-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#17745a;color:#fff;font-size:23px;box-shadow:0 3px 8px #17745a26}.admin-shell-city{display:block;font-size:15px;font-weight:700;line-height:1.2}.admin-shell-title{display:block;font-size:10px;letter-spacing:.15em;font-weight:700;line-height:1.5;color:#628276}.admin-shell-nav,.admin-shell-userbar{display:flex;align-items:center;gap:8px;min-width:0}.admin-shell-nav{justify-content:flex-start;flex-wrap:wrap}.admin-shell-userbar{justify-content:flex-end}.admin-shell-link,.admin-shell-menu>summary{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:9px;font-size:14px;font-weight:600;text-decoration:none;color:#35584a;cursor:pointer;list-style:none;white-space:nowrap}.admin-shell-menu>summary::-webkit-details-marker{display:none}.admin-shell-link:hover,.admin-shell-menu>summary:hover,.admin-shell-menu[open]>summary{background:#e9f3ee;color:#126a4f}.admin-shell-link[aria-current=page]{background:#dfefe6;color:#0f654b}.admin-shell-menu{position:relative}.admin-shell-caret{font-size:12px;opacity:.7}.admin-shell-dropdown{position:absolute;left:0;top:calc(100% + 9px);width:min(340px,calc(100vw - 24px));max-height:65vh;overflow:auto;background:#fff;border:1px solid #dce8e1;border-radius:12px;padding:8px;box-shadow:0 12px 35px #163c2926;z-index:910}.admin-shell-dropdown a{display:flex;align-items:center;gap:10px;padding:10px 12px;color:#2b4c3f;text-decoration:none;border-radius:8px;font-size:14px;line-height:1.4}.admin-shell-dropdown a:hover,.admin-shell-dropdown a[aria-current=page]{background:#e9f5ee;color:#11684c}.admin-shell-dropdown .admin-shell-danger{color:#9b3540}.admin-shell-group{font-size:10px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#7b9388;padding:12px 12px 4px}.admin-shell-user-menu>summary{padding:5px 8px;gap:9px}.admin-shell-avatar{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;background:#e1efe7;border:1px solid #c7dfd1;color:#206147;border-radius:50%;font-size:13px;font-weight:750}.admin-shell-usertext{display:block;min-width:0;max-width:210px}.admin-shell-usertext strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.4}.admin-shell-usertext small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.3;font-weight:400;color:#72877c}.admin-shell-user-menu .admin-shell-dropdown{left:auto;right:0;width:min(320px,calc(100vw - 24px))}.admin-shell-user-info{padding:10px 12px;border-bottom:1px solid #e6eee9;margin-bottom:5px;overflow-wrap:anywhere}.admin-shell-user-info strong{display:block;font-size:14px}.admin-shell-user-info small{display:block;font-size:12px;color:#72877c;margin-top:4px}.admin-shell-logout{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #c8dacf;border-radius:9px;background:#fff;color:#456657;font-size:13px;cursor:pointer;white-space:nowrap}.admin-shell-logout:hover{border-color:#8dbba4;background:#eaf4ee;color:#175d40}.admin-shell-logout:disabled{opacity:.5;cursor:wait}.admin-shell-readonly{font-size:10px;font-weight:700;border:1px solid #d3dfd8;background:#f7faf8;color:#728277;border-radius:20px;padding:3px 8px}.admin-shell-header a:focus-visible,.admin-shell-header summary:focus-visible,.admin-shell-header button:focus-visible{outline:3px solid #73b799;outline-offset:3px}.admin-shell-error{max-width:1440px;margin:auto;padding:0 24px 10px;font-size:13px;color:#aa3545}body[data-admin-shell] .housing-sidebar{top:calc(var(--admin-shell-height,85px) + 16px);max-height:calc(100vh - var(--admin-shell-height,85px) - 32px)}@media(max-width:1050px){.admin-shell-inner{gap:12px;padding:12px 16px}.admin-shell-usertext{max-width:150px}.admin-shell-city{font-size:13px}}@media(max-width:850px){.admin-shell-inner{grid-template-columns:1fr auto}.admin-shell-nav{grid-row:2;grid-column:1/-1;justify-content:flex-start}.admin-shell-userbar{grid-column:2;grid-row:1}.admin-shell-usertext{max-width:160px}.admin-shell-nav .admin-shell-link,.admin-shell-nav .admin-shell-menu>summary{padding:7px 10px}}@media(max-width:600px){.admin-shell-inner{padding:10px 12px;gap:9px}.admin-shell-city{display:none}.admin-shell-title{font-size:11px;letter-spacing:.04em}.admin-shell-mark{width:31px;height:31px;font-size:20px;border-radius:9px}.admin-shell-usertext{max-width:115px}.admin-shell-usertext strong{font-size:12px}.admin-shell-usertext small{font-size:10px}.admin-shell-avatar{width:28px;height:28px;font-size:11px}.admin-shell-user-menu>summary{padding:4px;gap:6px}.admin-shell-logout-label{display:none}.admin-shell-logout{padding:7px 9px}.admin-shell-userbar{gap:5px}.admin-shell-nav{gap:4px}.admin-shell-readonly{font-size:9px}}

@media(max-width:420px){.admin-shell-inner{display:flex;flex-wrap:wrap}.admin-shell-brand{flex:1;gap:7px}.admin-shell-userbar{flex:1;min-width:180px}.admin-shell-nav{width:100%;order:3}.admin-shell-title{font-size:10px;letter-spacing:0}.admin-shell-mark{width:28px;height:28px}}

/* Consistent action spacing, including dynamically opened detail dialogs. */
body[data-admin-shell] .admin-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-block:12px}
body[data-admin-shell] .admin-action-row>.btn{margin:0}
body[data-admin-shell] :where(main,dialog) :where(.d-flex,.d-inline-flex):has(>.btn):not([class*="gap-"],.btn-group,.input-group){gap:8px}
body[data-admin-shell] :where(main,dialog) :where(div,p,td,form,section):not(.d-flex,.d-inline-flex,.row,.btn-group,.input-group,.housing-toolbar,.admin-action-row,[class*="gap-"])>.btn+.btn{margin-inline-start:8px}
body[data-admin-shell] :where(main,dialog) :where(div,p,td,form,section):not(.d-flex,.d-inline-flex,.row,.btn-group,.input-group,.housing-toolbar,.admin-action-row,[class*="gap-"]):has(>.btn+.btn)>.btn{margin-block-end:8px}
