.admin-page { background: var(--bg); }
.admin-shell { --sidebar-width: 280px; --details-width: 320px; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr) var(--details-width); align-items: start; gap: 16px; min-height: 100dvh; padding: 16px; overflow-x: clip; }
.admin-shell.no-detail { --details-width: 0px; }
.auth-loading { width: min(calc(100% - 32px),420px); margin: 80px auto; }
.global-notice { position: fixed; z-index: 30; left: 50%; top: calc(24px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(calc(100% - 32px),500px); margin: 0; }
.admin-sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; min-width: 0; min-height: calc(100dvh - 32px); padding: 20px 16px; border: .5px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); }
.sidebar-brand { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 10px; margin-bottom: 26px; font-size: 17px; font-weight: 600; }
.workspace-name { min-width: 0; line-height: 20px; }
.nav-caption { padding: 0 12px; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 18px; letter-spacing: -.08px; }
.panel-nav { position: relative; display: flex; flex-direction: column; gap: 2px; isolation: isolate; }
.tab, .sidebar-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 11px 12px; border: 0; border-radius: var(--pill); background: transparent; color: var(--text); text-align: left; font-size: 17px; font-weight: 400; line-height: 22px; text-decoration: none; }
.tab img, .sidebar-link img, .icon-button img { display: block; flex: 0 0 auto; }
.tab.active { color: var(--link); background: rgba(224,224,224,.14); font-weight: 600; }
.tab.active img { filter: brightness(0) saturate(100%) invert(70%) sepia(22%) saturate(2422%) hue-rotate(176deg) brightness(103%) contrast(101%); }
.panel-nav.has-selection .tab.active { background: transparent; }
.tab:hover, .sidebar-link:hover { background: rgba(255,255,255,.05); filter: none; }
.sidebar-links { margin-top: 32px; }
.sidebar-link { font-size: 15px; }
.sidebar-account { margin-top: auto; padding: 28px 12px 4px; font-size: 13px; line-height: 18px; letter-spacing: -.08px; }
.role-badge { color: var(--muted); font-size: 13px; }
#actor-id { margin: 4px 0 14px; font-size: 12px; font-variant-numeric: tabular-nums; }
.bot-handle { color: var(--tertiary); font-size: 12px; }
.admin-main { min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 28px; padding: 0 4px; }
.header-left, .header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 9px; border: .5px solid var(--glass-line); background: var(--glass); color: var(--text); border-radius: var(--pill); box-shadow: inset 0 .5px 0 rgba(255,255,255,.08); }
.icon-button:hover { background: rgba(255,255,255,.12); filter: none; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; padding-left: 4px; }
.breadcrumb > span:first-child, .breadcrumb-divider { color: var(--tertiary); }
#nav-title { font-weight: 500; }
.page-body { padding: 0 12px 24px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.stat-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 112px; padding: 18px; border: .5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-align: left; font-weight: 400; }
.stat-card > span { color: var(--muted); font-size: 13px; line-height: 18px; letter-spacing: -.08px; max-width: 100%; }
.stat-card > strong { font-size: 34px; line-height: 36px; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stat-card.active { border-color: rgba(100,183,255,.55); background: rgba(0,136,255,.12); box-shadow: inset 0 .5px 0 rgba(255,255,255,.07); }
.stat-card.active > strong { color: var(--link); }
.queue-block { padding: 20px; border: .5px solid rgba(255,255,255,.06); border-radius: var(--radius); background: var(--card); }
.queue-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.queue-heading h2 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.filter-tabs { position: relative; display: flex; gap: 0; min-width: 0; min-height: 36px; padding: 2px; border-radius: var(--pill); background: rgba(120,120,128,.16); isolation: isolate; }
.filter-tab { position: relative; z-index: 1; flex: 1; width: auto; min-width: 0; min-height: 32px; padding: 5px 4px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 12px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.filter-tab.active { color: var(--text); background: rgba(224,224,224,.16); font-weight: 600; }
.filter-tabs.has-selection .filter-tab.active { background: transparent; }
.filter-tab:hover { color: var(--text); filter: none; }
.table-scroller { overflow-x: auto; }
.list-heading, .application-row { display: grid; grid-template-columns: minmax(150px,1.6fr) 52px minmax(80px,1fr) 70px 92px; align-items: center; gap: 12px; min-width: 540px; }
.list-heading { padding: 0 8px 12px; color: var(--tertiary); font-size: 12px; line-height: 18px; letter-spacing: -.08px; border-bottom: .5px solid var(--line); }
.application-row { width: 100%; min-height: 72px; padding: 14px 8px; border: 0; border-bottom: .5px solid var(--line); border-radius: 0; background: transparent; color: var(--text); text-align: left; font-weight: 400; }
.application-row:last-child { border-bottom: 0; }
.application-row:hover { background: rgba(255,255,255,.04); filter: none; }
.application-row.selected { background: rgba(100,183,255,.07); }
.row-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.09); color: var(--muted); font-size: 14px; overflow: hidden; }
.row-main { min-width: 0; }
.row-main strong { display: block; font-size: 15px; line-height: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { display: block; font-size: 12px; line-height: 18px; letter-spacing: -.08px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-mobile-meta { display: none !important; }
.row-age, .row-style, .row-date { font-size: 12px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.row-style { white-space: nowrap; }
.status-badge { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; font-size: 12px; line-height: 18px; letter-spacing: -.08px; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.pending { color: var(--link); }
.status-badge.approved { color: var(--success); }
.status-badge.rejected { color: var(--error); }
.pagination, .page-controls { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 18px; }
.pagination { justify-content: space-between; padding-top: 16px; }
.page-controls button { min-height: 32px; padding: 4px 10px; }
.empty-state { padding: 36px 12px; margin: 0; text-align: center; font-size: 15px; line-height: 22px; color: var(--muted); }
.detail-sidebar { position: sticky; top: 16px; min-width: 0; max-height: calc(100dvh - 32px); overflow: auto; scrollbar-width: thin; padding: 24px 20px; border: .5px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.detail-heading h2 { margin: 0; color: var(--muted); font-size: 15px; line-height: 20px; font-weight: 500; }
.detail-heading .status-badge { font-size: 11px; }
.detail-name { margin: 0; font-size: 28px; line-height: 34px; letter-spacing: -.65px; font-weight: 650; overflow-wrap: anywhere; }
.application-meta { font-size: 12px; line-height: 18px; color: var(--muted); margin: 8px 0 20px; }
.review-photo-frame { width: 100%; height: 208px; border-radius: 16px; background: rgba(0,0,0,.2); margin: 0 0 24px; overflow: hidden; isolation: isolate; }
.review-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-fields { margin: 0 0 24px; border-radius: 16px; background: rgba(0,0,0,.14); overflow: hidden; }
.detail-fields > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 48px; padding: 13px 14px; border-bottom: .5px solid var(--line); }
.detail-fields > div:last-child { border-bottom: 0; }
.detail-fields dt { color: var(--muted); font-size: 13px; line-height: 20px; flex-shrink: 0; }
.detail-fields dd { font-size: 14px; line-height: 20px; margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.about-section h3 { font-size: 15px; line-height: 20px; font-weight: 600; margin: 0 0 10px; }
.about-text { font-size: 15px; line-height: 23px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.detail-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: .5px solid var(--line); }
.detail-actions button { flex: 1; padding: 11px 12px; font-size: 15px; font-weight: 600; }
.approve-button { box-shadow: inset 0 .5px 0 rgba(255,255,255,.2); }
.danger { color: var(--error); border-color: rgba(255,156,150,.14); background: rgba(255,69,58,.09); }
.staff-form { display: grid; grid-template-columns: minmax(120px,1fr) minmax(140px,1fr); align-items: end; gap: 18px 12px; }
.staff-form button { grid-column: 1 / -1; min-height: 48px; }
.staff-hint { max-width: 680px; margin: 18px 4px 24px; }
.data-panel { border: .5px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 0 20px; background: var(--card); overflow: hidden; }
.staff-row, .audit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; border-bottom: .5px solid var(--line); }
.staff-row:last-child, .audit-row:last-child { border-bottom: 0; }
.staff-row > div:first-child { min-width: 0; }
.staff-row strong { font-size: 15px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.staff-row p, .audit-row p { margin: 4px 0 0; font-size: 13px; line-height: 20px; }
.staff-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inactive { opacity: .5; }
.settings-form { max-width: 640px; }
.settings-help { color: var(--muted); font-size: 15px; line-height: 22px; margin: 0 0 24px; }
.settings-form input, .settings-form select, .settings-form textarea, .staff-form input, .staff-form select { background: rgba(255,255,255,.05); }
.settings-form button { min-height: 48px; }
#settings-domain { margin-top: 24px; padding-top: 18px; border-top: .5px solid var(--line); overflow-wrap: anywhere; }
#settings-updated { font-size: 12px; }
.audit-description { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.audit-row time { font-size: 12px; line-height: 18px; color: var(--tertiary); font-variant-numeric: tabular-nums; }
dialog { width: min(calc(100% - 32px),360px); background: rgba(38,38,40,.96); color: var(--text); border: .5px solid var(--glass-line); border-radius: 28px; padding: 28px 24px 24px; box-shadow: var(--glass-shadow); }
dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog h2 { margin: 0 0 8px; font-size: 20px; line-height: 25px; text-align: center; }
dialog #reject-label { margin-bottom: 24px; font-size: 13px; line-height: 20px; text-align: center; }
dialog textarea { background: rgba(0,0,0,.18); font-size: 16px; min-height: 116px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 24px; }
.dialog-actions button { font-size: 15px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin-sidebar, .detail-sidebar, .icon-button { backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); }
}
@media (min-width: 1500px) { .admin-shell { --sidebar-width: 320px; --details-width: 360px; gap: 20px; } .page-body { padding-left: 20px; padding-right: 20px; } }
@media (min-width: 961px) {
  .admin-shell.sidebar-collapsed { --sidebar-width: 76px; }
  .sidebar-collapsed .admin-sidebar { padding: 20px 10px; }
  .sidebar-collapsed .sidebar-brand { padding: 0; justify-content: center; }
  .sidebar-collapsed .workspace-name, .sidebar-collapsed .nav-caption, .sidebar-collapsed .tab span, .sidebar-collapsed .sidebar-link span, .sidebar-collapsed .sidebar-account { display: none; }
  .sidebar-collapsed .tab, .sidebar-collapsed .sidebar-link { justify-content: center; padding: 11px; }
}
@media (max-width: 1380px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-heading, .application-row { grid-template-columns: minmax(0,1fr) 90px; min-width: 0; gap: 10px; }
  .list-heading .row-age, .list-heading .row-date, .list-heading .row-style, .application-row .row-age, .application-row .row-date, .application-row .row-style { display: none; }
  .row-main small.row-meta { display: none; }
  .row-main small.row-mobile-meta { display: block !important; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .admin-shell { --sidebar-width: 220px; --details-width: 300px; gap: 12px; padding: 12px; }
  .admin-sidebar, .detail-sidebar { top: 12px; }
  .admin-sidebar { min-height: calc(100dvh - 24px); padding-left: 12px; padding-right: 12px; }
  .detail-sidebar { max-height: calc(100dvh - 24px); padding-left: 16px; padding-right: 16px; }
  .page-body { padding-left: 0; padding-right: 0; }
  .breadcrumb > span:first-child, .breadcrumb-divider { display: none; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .queue-block { padding: 16px; }
  .filter-tab { font-size: 11px; }
}
@media (max-width: 960px) {
  .admin-shell, .admin-shell.no-detail { grid-template-columns: minmax(0,1fr); gap: 0; padding: calc(16px + env(safe-area-inset-top)) 16px 24px; min-height: 100dvh; }
  .admin-credit { padding-bottom: calc(114px + env(safe-area-inset-bottom)); }
  .admin-sidebar { position: static; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sidebar-brand { max-width: calc(100% - 108px); min-height: 36px; padding: 0 4px; margin: 0 0 24px; font-size: 15px; }
  .nav-caption, .sidebar-links { display: none; }
  .sidebar-account { position: absolute; top: calc(24px + env(safe-area-inset-top)); right: 20px; margin: 0; padding: 0; text-align: right; }
  #actor-id { margin: 0; font-size: 11px; }
  .sidebar-account .role-badge, .bot-handle { display: none; }
  .panel-nav { position: fixed; z-index: 20; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 32px),440px); display: flex; flex-direction: row; gap: 2px; padding: 6px; border: .5px solid rgba(255,255,255,.2); border-radius: 36px; background: rgba(42,42,44,.86); box-shadow: var(--glass-shadow), 0 4px 20px rgba(0,0,0,.3); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); }
  .tab { flex: 1; flex-direction: column; justify-content: center; gap: 4px; width: auto; min-width: 0; min-height: 56px; padding: 6px 4px; font-size: 11px; line-height: 15px; letter-spacing: -.08px; font-weight: 500; }
  .tab.active { font-weight: 600; }
  .admin-header { min-height: 36px; margin-bottom: 20px; padding: 0 4px; }
  #toggle-sidebar, #toggle-details { display: none; }
  .breadcrumb { padding: 0; }
  .page-body { padding: 0 0 24px; }
  .page-heading { padding: 0 4px; margin-bottom: 24px; }
  .stats-grid { gap: 12px; margin-bottom: 24px; }
  .stat-card { padding: 18px; min-height: 112px; }
  .queue-block { padding: 20px 16px 16px; }
  .detail-sidebar { position: static; max-height: none; padding: 24px 20px; margin: 0; }
  .review-photo-frame { height: 236px; }
  .detail-name { font-size: 30px; line-height: 36px; }
  .detail-fields dd { font-size: 15px; }
  .detail-actions button { font-size: 17px; }
  .staff-form { grid-template-columns: 1fr; padding: 20px; }
  .staff-form button { grid-column: auto; }
  .settings-form { padding: 20px; }
  .audit-row { align-items: start; }
  .audit-row time { width: 100%; }
}
@media (max-width: 360px) {
  .admin-shell, .admin-shell.no-detail { padding-left: 12px; padding-right: 12px; }
  .panel-nav { width: calc(100% - 24px); padding: 5px; }
  .tab { font-size: 10px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .filter-tab { font-size: 11px; letter-spacing: -.3px; }
  .queue-block { padding-left: 12px; padding-right: 12px; }
  .list-heading, .application-row { grid-template-columns: minmax(0,1fr) 80px; gap: 6px; }
  .status-badge { font-size: 11px; }
  .row-user { gap: 8px; }
  .avatar { flex-basis: 30px; width: 30px; height: 30px; }
  .detail-sidebar { padding-left: 16px; padding-right: 16px; }
  .detail-actions button { font-size: 15px; }
}
@media (prefers-reduced-transparency: reduce) {
  .admin-sidebar, .detail-sidebar, .icon-button, .panel-nav { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

