.admin-body { min-height: 100vh; background: #f8f6f1; }
.admin-loading { padding: 80px 24px; text-align: center; color: var(--cb-text-muted); }
.admin-topbar { height: 76px; border-bottom: 1px solid var(--cb-border); background: var(--cb-surface); }
.admin-topbar-inner { display: flex; align-items: center; gap: 20px; width: min(100% - 40px, 1440px); height: 100%; margin: auto; }
.admin-topbar .brand { font-size: 25px; }
.admin-topbar .brand img { width: 40px; height: 40px; }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.admin-topbar select { min-width: 150px; min-height: 42px; padding: 8px 12px; border: 1px solid #d7e0d9; border-radius: 11px; background: #eef4ef; color: var(--cb-green-dark); font-weight: 700; }
.admin-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #dce8f0; color: #173c5a; font-weight: 700; }
.admin-identity { display: flex; align-items: center; gap: 9px; }
.admin-identity span:last-child { display: flex; flex-direction: column; }
.admin-identity strong { font-size: 13px; }
.admin-identity small { color: #5b6b7a; font-size: 12px; }
.admin-frame { display: grid; grid-template-columns: 206px minmax(0, 1fr); width: min(100%, 1440px); min-height: calc(100vh - 76px); margin: auto; }
.admin-sidebar { display: flex; flex-direction: column; gap: 4px; padding: 25px 14px; border-right: 1px solid var(--cb-border); background: #fafaf7; }
.admin-sidebar a { display: flex; align-items: center; gap: 13px; min-height: 47px; padding: 9px 14px; border-radius: 10px; color: #566579; font-weight: 600; }
.admin-sidebar a.active { background: #e5efe8; color: var(--cb-green-dark); }
.admin-sidebar .icon { width: 20px; height: 20px; }
.admin-main { min-width: 0; padding: 25px 28px 45px; }
/* Keep admin content at a readable width instead of stretching rows across a
   wide monitor, which leaves buttons stranded far from their text. */
.admin-main > .admin-title,
.admin-main > .admin-subtitle,
.admin-main > .overview-grid,
.admin-main > .admin-tabs,
.admin-main > .admin-list,
.admin-main > .platform-toolbar,
.admin-main > .places-actions,
.admin-main > .admin-panel,
.admin-main > .work-grid,
.admin-main > .form-help,
.admin-main > .admin-footer { max-width: 1020px; }
.admin-title { margin: 0; font-size: 29px; line-height: 1.1; letter-spacing: -.035em; color: #17263c; }
.admin-subtitle { margin: 5px 0 21px; color: #5b6b7a; font-size: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 16px; border: 1px solid #ece7db; border-radius: 15px; background: #fffaf0; }
.stat-card:nth-child(2) { background: #f3f8f3; border-color: #e1ebe3; }
.stat-card:nth-child(3) { background: #f0f6fb; border-color: #e1eaf2; }
.stat-card:nth-child(4) { background: #f6f1fa; border-color: #e8e1f0; }
.stat-card:nth-child(4) .stat-icon { background: #e6ddf0; color: #5b3f8a; }
.stat-icon { display: grid; place-items: center; width: 47px; height: 47px; flex: none; border-radius: 50%; background: #f7e8ca; color: #ba8014; }
.stat-card:nth-child(2) .stat-icon { background: #dceae0; color: var(--cb-green); }
.stat-card:nth-child(3) .stat-icon { background: #dae9f9; color: #2d679a; }
.stat-icon .icon { width: 27px; height: 27px; }
.stat-card strong { display: block; font-size: 29px; line-height: 1; color: #17263c; }
.stat-card > div > span { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.stat-card small { color: #5b6b7a; font-size: 12px; }
.work-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.12fr); gap: 12px; align-items: start; }
.admin-panel { min-width: 0; padding: 18px; border: 1px solid #e8e5dd; border-radius: 15px; background: #fff; box-shadow: var(--cb-shadow-card); }
.admin-panel h2 { margin: 0 0 14px; color: #17263c; font-size: 18px; }
.admin-panel h3 { margin: 22px 0 9px; color: #17263c; font-size: 14px; }
.admin-panel p { color: #5d6e80; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid #e6e9e7; }
.admin-panel .admin-tabs { gap: 4px 8px; }
.admin-panel .admin-tabs button { font-size: 12px; padding-inline: 0; }
.admin-tabs button, .admin-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5b6b7a; font-weight: 650; white-space: nowrap; }
.admin-tabs button.active, .admin-tabs a.active { border-color: var(--cb-green); color: var(--cb-green-dark); }
.queue-list { display: grid; gap: 8px; margin-top: 14px; }
.queue-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 82px; padding: 11px; border: 1px solid #e8ecea; border-radius: 10px; background: #fff; text-align: left; }
.queue-item.selected { border-color: var(--cb-green); background: #f8fbf8; }
.queue-item:hover { border-color: #b8d0c0; }
.queue-item .provider-mark { width: 43px; height: 43px; }
.queue-item .provider-mark .icon { width: 25px; height: 25px; }
.queue-item-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.queue-item-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.queue-item-copy small { color: #5b6b7a; font-size: 12px; }
.queue-item .icon.chevron { margin: 0; }
.status-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #ffedc7; color: #946000; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-badge.approved, .status-badge.published, .status-badge.visible { background: #e4efe7; color: #19583f; }
.status-badge.rejected, .status-badge.disabled, .status-badge.expired { background: #f9e7e4; color: #a9413d; }
.status-badge.hidden, .status-badge.archived { background: #eceff1; color: #55636b; }
.status-badge.draft, .status-badge.changes_requested { background: #e9eef4; color: #53677c; }
.status-badge.owner { background: #145b46; color: #fff; }
.ownership-motion { display: grid; gap: 10px; padding: 12px; border: 1px solid #e6d3a8; border-radius: 11px; background: #f8f2e3; }
.ownership-head { display: flex; align-items: center; gap: 10px; }
.ownership-head strong { font-size: 14px; }
.ownership-tally { display: flex; align-items: center; gap: 10px; }
.ownership-tally small { color: #5b6b7a; white-space: nowrap; }
.ownership-bar { flex: 1; height: 8px; border-radius: 999px; background: #e6ddc4; overflow: hidden; }
.ownership-bar span { display: block; height: 100%; background: var(--cb-green); border-radius: 999px; }
.ownership-handover { margin-top: 12px; }
.places-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.places-actions .button { flex: 0 0 auto; }
.place-name > span > .status-badge { align-self: flex-start; }
.place-panel { padding: 0; overflow: hidden; }
/* The panel clips its tinted rows to the card's rounded corners, which also
   traps the row action dropdown. Let the menu escape while it is open. */
.place-panel:has(.row-menu[open]) { overflow: visible; }
.place-panel + .place-panel { margin-top: 12px; }
.place-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #eef1ee; }
.place-row:first-child { border-top: 0; }
.place-city { background: #f6f8f6; }
.place-suburb { padding-left: 30px; }
.place-community { padding-left: 52px; background: #fcfdfc; }
.place-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.place-name .icon { width: 18px; height: 18px; color: #5b6b7a; flex: none; }
.place-city .place-name .icon { color: var(--cb-green); }
.place-name > span { display: flex; flex-direction: column; min-width: 0; }
.place-name .place-title { flex-direction: row; align-items: center; gap: 8px; }
.place-name strong { font-size: 14px; }
.place-name small { color: #5b6b7a; font-size: 12px; }
.place-name small a { color: var(--cb-green-dark); font-weight: 650; }
.place-controls { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.place-empty { padding: 10px 16px 12px; color: #87908b; font-size: 12px; }
@media (max-width: 640px) {
  .place-row { flex-direction: column; align-items: flex-start; }
  .place-controls { justify-content: flex-start; }
  .place-suburb, .place-community { padding-left: 16px; }
}
.detail-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-heading .provider-mark { width: 54px; height: 54px; }
.detail-heading h2 { margin: 0; }
.detail-heading p { margin: 3px 0 0; font-size: 12px; }
.detail-heading .status-badge { margin-left: auto; }
.detail-lines { display: grid; gap: 6px; margin: 8px 0 14px; }
.detail-lines div { display: flex; gap: 8px; align-items: flex-start; color: #50637a; font-size: 13px; }
.detail-lines .icon { width: 17px; height: 17px; }
.admin-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tags span { padding: 5px 9px; border-radius: 999px; background: #ecf1ee; color: #40546b; font-size: 11px; }
.consent-line { display: flex; align-items: flex-start; gap: 8px; color: var(--cb-green-dark); font-weight: 700; }
.consent-line .icon { color: var(--cb-green); }
.review-actions { display: flex; gap: 8px; margin-top: 16px; }
.review-actions .button { flex: 1; }
.button-outline { background: #fff; border-color: #9caaba; color: #425771; }
.button-danger { background: #fde7e7; color: #af3333; }
.button-small { min-height: 44px; padding: 6px 10px; font-size: 12px; }
.text-button { min-height: 44px; border: 0; background: none; color: var(--cb-green); font-weight: 700; white-space: nowrap; }
.admin-form { display: grid; gap: 11px; }
.admin-form label { display: grid; gap: 5px; color: #33495b; font-size: 12px; font-weight: 700; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #d8dfdc; border-radius: 9px; background: #fff; color: var(--cb-text); font-size: 13px; font-weight: 400; }
.admin-form textarea { min-height: 85px; resize: vertical; }
.admin-panel #review-notes { display: block; width: 100%; min-height: 74px; padding: 10px; border: 1px solid #d8dfdc; border-radius: 9px; resize: vertical; }
.admin-form .consent-line { display: flex; align-items: flex-start; font-size: 13px; }
.admin-form .consent-line input { width: 18px; min-height: 18px; margin: 0; flex: none; }
.admin-form .consent-line a { text-decoration: underline; text-underline-offset: 2px; }
.category-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 1px solid #d8dfdc; border-radius: 9px; }
.category-choices legend { color: #33495b; font-size: 12px; font-weight: 700; }
.category-choices label { display: flex; align-items: center; gap: 7px; }
.category-choices input { width: 18px; min-height: 18px; margin: 0; flex: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.form-actions .button { min-width: 140px; }
.form-help { margin: -3px 0 0; color: #5b6b7a; font-size: 12px; }
/* Page-level help sits after a list/cards, so it needs real top spacing, not the
   -3px form-label nudge, and a readable measure. */
.admin-main > .form-help { margin: 16px 0 0; max-width: 78ch; }
.admin-main > .form-help + .place-panel,
.admin-main > .form-help + .admin-panel { margin-top: 16px; }
.place-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid #e3ded5; border-radius: 10px; background: #f4f7f3; }
.place-context span { display: inline-flex; align-items: center; gap: 6px; color: var(--cb-green-dark); font-weight: 650; font-size: 13px; }
.place-context .icon { width: 17px; height: 17px; }
.place-context small { color: #5b6b7a; font-size: 11px; }
.unsaved-note { color: #9a6a12; font-weight: 700; }
.unsaved-note:empty { display: none; }
.area-fieldset { display: grid; gap: 9px; padding: 12px; border: 1px solid #d8dfdc; border-radius: 11px; background: #f8faf8; }
.area-fieldset legend { padding: 0 6px; color: #33495b; font-size: 12px; font-weight: 700; }
.area-fieldset .form-help { margin: 0; }
.area-map { height: 280px; border: 1px solid #d8dfdc; border-radius: 10px; background: #eef1ee; z-index: 0; }
.area-map:focus-visible { outline: 3px solid #d89b23; outline-offset: 2px; }
.area-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.area-map-actions [hidden] { display: none; }
.area-status { flex: 1 1 160px; color: #5b6b7a; }
.area-map .leaflet-control-attribution { font-size: 10px; }
.area-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; }
.area-point-list { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 20px; }
.area-point-list li { display: flex; gap: 6px; }
.area-point-list input { min-height: 38px; width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #d8dfdc; border-radius: 8px; background: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.area-points-details { margin-top: 6px; }
.area-points-details summary { min-height: 44px; display: flex; align-items: center; color: #3f5666; font-size: 12px; font-weight: 700; cursor: pointer; }
.area-points:empty { display: none; }
.flash { padding: 10px 13px; margin-bottom: 15px; border-radius: 10px; background: #e4efe7; color: #184c37; font-weight: 650; }
.flash.error { background: #fdeaea; color: #a92d2d; }
.empty-panel { padding: 34px 12px; text-align: center; color: #5b6b7a; }
.empty-panel .icon { width: 30px; height: 30px; }
.admin-list { display: grid; gap: 8px; }
.admin-form + .admin-list { margin-top: 14px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px; border: 1px solid #e8ecea; border-radius: 9px; background: #fff; text-align: left; }
.admin-list-row.selected { border-color: var(--cb-green); background: #f8fbf8; }
.admin-list-row span:first-child { display: flex; flex-direction: column; }
.admin-list-row-main { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
.admin-list-row-main > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.admin-list-row strong { font-size: 13px; }
.admin-list-row small { color: #5b6b7a; font-size: 12px; }
.category-glyph { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: #eef3ef; color: #145b46; }
.category-glyph .icon { width: 20px; height: 20px; }
.icon-picker { border: 1px solid #d8dfdc; border-radius: 11px; padding: 10px 12px 12px; }
.icon-picker legend { padding: 0 6px; color: #33495b; font-size: 12px; font-weight: 700; }
.icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.icon-picker-option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid #e3ded5; border-radius: 10px; background: #fff; text-align: center; cursor: pointer; }
.icon-picker-option:has(input:checked) { border-color: var(--cb-green); background: #eef6f1; }
.icon-picker-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-picker-swatch { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eef3ef; color: #145b46; }
.icon-picker-swatch .icon { width: 20px; height: 20px; }
.icon-picker-name { color: #566476; font-size: 11px; font-weight: 600; line-height: 1.15; }
.icon-picker-option:has(input:focus-visible) { outline: 3px solid #d89b23; outline-offset: 2px; }
.share-box { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; margin-top: 12px; border-radius: 10px; background: #edf4ee; overflow-wrap: anywhere; }
.share-box code { flex: 1; min-width: 190px; font-size: 11px; }
.login-wrap, .join-wrap { width: min(100% - 32px, 560px); margin: 6vh auto 40px; }
.login-card, .join-card { padding: 28px; }
.login-card .brand, .join-card .brand { margin-bottom: 23px; }
.login-card h1, .join-card h1 { margin: 0 0 7px; font-size: 28px; }
.login-card p, .join-card p { color: #627384; }
.login-card .admin-form, .join-card .admin-form { margin-top: 20px; }
.login-card .button, .join-card .button { min-height: 46px; }
.admin-footer { margin-top: 20px; max-width: 70ch; color: #5b6b7a; font-size: 12px; }
.platform-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #eef4ef; color: var(--cb-green-dark); font-size: 12px; font-weight: 700; }
.platform-tag .icon { width: 16px; height: 16px; }
.platform-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.platform-toolbar .search-field { flex: 1 1 240px; }
.platform-toolbar .button { flex: 0 0 auto; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid #d8dfdc; border-radius: 11px; background: #fff; }
.search-field:focus-within { outline: 3px solid var(--cb-amber); outline-offset: 1px; }
.search-field .icon { width: 18px; height: 18px; color: #5b6b7a; flex: none; }
.search-field input { width: 100%; min-height: 42px; border: 0; background: none; font-size: 14px; }
.search-field input:focus { outline: none; }
.platform-list .admin-list-row { align-items: center; flex-wrap: wrap; }
.platform-list .admin-list-row.is-inactive { opacity: .72; background: #fbfaf8; }
.platform-list .place-controls { flex: 1 1 320px; }
.platform-context { margin-top: 14px; padding: 9px 12px; border: 1px solid #e3ded5; border-radius: 10px; background: #f4f7f3; color: var(--cb-green-dark); font-size: 13px; font-weight: 650; }
.request-list .request-row { align-items: flex-start; flex-wrap: wrap; }
.request-list .request-row > span:first-child { flex: 1 1 340px; }
.request-list .request-row .status-badge { margin-top: 2px; }
.request-list .request-row .place-controls { flex: 0 0 auto; }
.warning-panel { border-color: #e6ddc7; background: #fdfaf1; }
.warning-panel h2 { color: #7a5b12; }
.warning-panel .form-help a { color: var(--cb-green-dark); font-weight: 650; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 38px; font-size: 13px; font-weight: 400; color: #33495b; }
.check-row input { width: 18px; min-height: 18px; margin: 0; flex: none; }
.check-row small { color: #5b6b7a; }
.update-dialog fieldset { border: 1px solid var(--cb-border); border-radius: 11px; padding: 10px 12px; margin: 14px 0 0; }
.update-dialog fieldset legend { padding: 0 6px; font-weight: 650; }
.update-dialog .check-row { margin: 0; }
.update-dialog select, .update-dialog input { font-size: 16px; }

/* Platform overview strip */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 210px)); justify-content: start; gap: 10px; margin-bottom: 18px; }
.overview-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid #e8e5dd; border-radius: 14px; background: #fff; }
.overview-card strong { font-size: 26px; line-height: 1; color: #17263c; font-variant-numeric: tabular-nums; }
.overview-card span { color: #5b6b7a; font-size: 12px; font-weight: 650; }
.overview-card.attention { border-color: #e6d3a8; background: #fdfaf1; }
.overview-card.attention strong { color: #7a5b12; }

/* Action overflow menu */
.row-menu { position: relative; }
.row-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid #9caaba; border-radius: 9px; background: #fff; color: #425771; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { border-color: var(--cb-green); color: var(--cb-green-dark); }
.row-menu-panel { position: absolute; right: 0; z-index: 20; display: grid; min-width: 190px; margin-top: 4px; padding: 6px; border: 1px solid #e3ded5; border-radius: 11px; background: #fff; box-shadow: var(--cb-shadow-raised); }
.row-menu-panel button, .row-menu-panel a { justify-content: flex-start; width: 100%; text-align: left; border: 0; background: none; }

/* Audit feed */
.audit-list { display: grid; gap: 6px; }
.audit-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid #eef1ee; border-radius: 9px; background: #fff; }
.audit-row .audit-action { font-weight: 650; font-size: 13px; }
.audit-row .audit-meta { color: #5b6b7a; font-size: 12px; }
.audit-row time { margin-left: auto; color: #87908b; font-size: 12px; white-space: nowrap; }

/* Suburb grouping block */
.suburb-block { border-top: 1px solid #eef1ee; background: #fcfdfc; }
.suburb-block .place-community { border-top: 1px solid #f2f5f2; }
.suburb-block .place-community:first-child { border-top: 0; }

/* Empty states with icon */
.empty-panel .icon { display: block; margin: 0 auto 8px; }
@media (max-width: 900px) {
  .admin-topbar select { max-width: 220px; }
  .admin-frame { grid-template-columns: 1fr; align-content: start; }
  .admin-sidebar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 8px 16px; border-right: 0; border-bottom: 1px solid var(--cb-border); }
  .admin-sidebar a { justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 8px 5px; font-size: 12px; text-align: center; }
  .admin-sidebar .icon { width: 17px; height: 17px; }
  .admin-main { padding: 20px; }
  .review-actions { flex-wrap: wrap; }
  .review-actions .button { flex: 1 1 calc(50% - 8px); white-space: normal; text-align: center; }
  .review-actions .button:last-child { flex-basis: 100%; }
}
@media (max-width: 680px) {
  .admin-topbar-inner { gap: 8px; width: min(100% - 28px, 1440px); }
  .admin-topbar-right { gap: 8px; }
  .platform-tag { padding: 6px 9px; font-size: 0; gap: 0; }
  .platform-tag .icon { width: 18px; height: 18px; }
  .platform-tag::after { content: "Platform"; font-size: 11px; margin-left: 5px; }
  .admin-topbar .brand { font-size: 19px; }
  .admin-topbar .brand img { width: 32px; height: 32px; }
  .admin-identity span:last-child { display: none; }
  .admin-avatar { width: 34px; height: 34px; }
  .admin-topbar select { min-width: 100px; max-width: 120px; font-size: 11px; }
  .admin-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-list .admin-list-row { align-items: flex-start; }
  .platform-list .place-controls { justify-content: flex-start; }
  .admin-main { padding: 18px 14px 30px; }
  .admin-title { font-size: 25px; }
  .admin-subtitle { font-size: 13px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { gap: 7px; }
  .stat-card { display: block; min-height: 100px; padding: 10px; }
  .stat-icon { width: 32px; height: 32px; }
  .stat-icon .icon { width: 19px; height: 19px; }
  .stat-card strong { margin-top: 7px; font-size: 23px; }
  .stat-card > div > span { font-size: 10px; }
  .stat-card small { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .admin-panel { padding: 14px; }
  .admin-form input, .admin-form select, .admin-form textarea, .admin-panel #review-notes { min-height: 44px; font-size: 16px; }
  .review-actions { flex-wrap: wrap; }
  .review-actions .button { flex-basis: 47%; }
}
@media (max-width: 390px) {
  .admin-topbar .brand span { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .admin-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep account controls reachable when the header's available width is narrow. */
.admin-topbar { height: auto; min-height: 76px; container-type: inline-size; }
.admin-topbar-inner { min-height: 76px; }
@container (max-width: 680px) {
  .admin-topbar-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .admin-topbar-right { max-width: 100%; flex-wrap: wrap; }
}
.audit-row { flex-wrap: wrap; }
.audit-row > * { min-width: 0; overflow-wrap: anywhere; }

.member-legal { display: flex; gap: 20px; margin-top: 28px; }
.member-legal a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
#member-app { overflow-wrap: anywhere; }
#member-app h1 { font-size: 26px; line-height: 1.2; }
#member-app > p { font-size: 16px; }

.member-panel h2:not(:first-child) { margin-top: 24px; }
.member-panel .admin-list-row { flex-wrap: wrap; }
.member-panel .admin-list-row > span:first-child { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }

#member-app .consent-line { font-size: 16px; line-height: 1.5; }
.member-panel .share-box code { flex-basis: 100%; min-width: 0; }
.member-panel .share-box .button { flex: 0 0 auto; }
