/* =========================================================
   AproxZ Cloudflare Admin — Vimeo-Style Clean Backend UI
   File: admin/css/admin.css
   Version: 2026-08-28_ADMIN_CSS_V5_3_APPROVED_LIGHT_CORPORATE_UI

   Purpose:
   - Full backend-wide visual cleanup.
   - Vimeo-inspired left rail and calm admin workspace.
   - Normal 400-weight text by default.
   - Clean All Listings hierarchy.
   - Clean Create Listing / editor styling support.
   - Keeps editor overlay scoped under #az-admin-editor-root.
========================================================= */

:root{
  --az-bg:#f7f9fc;
  --az-surface:#ffffff;
  --az-surface-soft:#f9fafb;
  --az-sidebar:#ffffff;
  --az-sidebar-2:#fbfcfe;
  --az-text:#0f172a;
  --az-muted:#667085;
  --az-faint:#98a2b3;
  --az-line:#e3e9f1;
  --az-line-soft:#edf1f5;
  --az-blue:#2563eb;
  --az-blue-soft:#eff6ff;
  --az-green:#16a34a;
  --az-green-soft:#ecfdf3;
  --az-red:#dc2626;
  --az-red-soft:#fef2f2;
  --az-orange:#f59e0b;
  --az-orange-soft:#fff7ed;
  --az-radius:16px;
  --az-radius-sm:11px;
  --az-shadow:0 14px 38px rgba(15,23,42,.055);
  --az-shadow-soft:0 6px 20px rgba(15,23,42,.035);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  min-height:100%;
}

body{
  margin:0;
  background:var(--az-bg);
  color:var(--az-text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:14px;
  line-height:1.45;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button,
input,
textarea,
select{
  font:400 13px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

button{
  cursor:pointer;
}

button:disabled{
  cursor:not-allowed;
  opacity:.52;
}

a{
  color:var(--az-blue);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

/* =========================================================
   APP SHELL
========================================================= */

.az-admin-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  background:var(--az-bg);
}

.az-sidebar{
  position:sticky;
  top:0;
  align-self:start;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:22px 14px;
  background:linear-gradient(180deg,var(--az-sidebar) 0%,var(--az-sidebar-2) 100%);
  border-right:1px solid var(--az-line);
  color:#344054;
  box-shadow:4px 0 20px rgba(15,23,42,.025);
}

.az-brand{
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 4px 20px;
  margin:0 0 14px;
  border-bottom:1px solid var(--az-line-soft);
}

.az-logo-mark{
  flex:0 0 auto;
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef4ff;
  color:#1d4ed8;
  font-size:14px;
  font-weight:600;
  letter-spacing:-.04em;
  box-shadow:none;
}

.az-brand strong{
  display:block;
  color:#0f172a;
  font-size:15px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:.01em;
  text-transform:lowercase;
}

.az-brand span{
  display:block;
  margin-top:5px;
  color:#667085;
  font-size:10px;
  line-height:1.1;
  font-weight:500;
  letter-spacing:.20em;
  text-transform:uppercase;
}

.az-nav{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.az-nav-group{
  margin:20px 0 7px;
  padding:0 8px;
  color:#98a2b3;
  font-size:10px;
  font-weight:600;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.az-nav-btn{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:9px 11px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#475467;
  text-align:left;
  font-size:12.5px;
  line-height:1.2;
  font-weight:500;
  transition:background .14s ease,color .14s ease,transform .14s ease;
}

.az-nav-btn:hover{
  background:#f2f6ff;
  color:#1d4ed8;
  transform:translateX(1px);
}

.az-nav-btn.is-active{
  background:#eaf1ff;
  color:#2563eb;
  font-weight:600;
  box-shadow:none;
}

.az-sidebar-status{
  margin-top:auto;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:11px;
  border:1px solid #ccefdc;
  background:#f0fff7;
  color:#067647;
  font-size:11px;
  font-weight:600;
}

.az-sidebar-status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.10);
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.az-main{
  min-width:0;
  padding:0 28px 38px;
}

.az-topbar{
  position:sticky;
  top:0;
  z-index:900;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 -28px 24px;
  padding:14px 28px;
  border-bottom:1px solid var(--az-line);
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 18px rgba(15,23,42,.03);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.az-topbar h1{
  margin:0;
  color:var(--az-text);
  font-size:30px;
  line-height:1.08;
  font-weight:500;
  letter-spacing:-.04em;
}

.az-topbar p{
  margin:7px 0 0;
  color:var(--az-muted);
  font-size:13px;
  font-weight:400;
}

.az-user-pill{
  flex:0 0 auto;
  min-height:36px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 12px;
  border:1px solid var(--az-line);
  border-radius:999px;
  background:#fff;
  color:#344054;
  font-size:12px;
  font-weight:400;
  box-shadow:none;
}

.az-user-pill strong{
  color:#0f172a;
  font-size:12px;
  font-weight:500;
}

.az-page{
  display:none;
}

.az-page.is-active{
  display:block;
}

.az-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.az-page-head h2{
  margin:0;
  color:var(--az-text);
  font-size:24px;
  line-height:1.12;
  font-weight:500;
  letter-spacing:-.03em;
}

.az-page-head p{
  margin:6px 0 0;
  color:var(--az-muted);
  font-size:13px;
  font-weight:400;
}

/* =========================================================
   CARDS / DASHBOARD
========================================================= */

.az-card{
  background:var(--az-surface);
  border:1px solid var(--az-line);
  border-radius:18px;
  box-shadow:var(--az-shadow-soft);
  padding:18px;
}

.az-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.az-card-head h3{
  margin:0;
  color:var(--az-text);
  font-size:15px;
  font-weight:500;
  letter-spacing:-.01em;
}

.az-metrics-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.az-metric{
  min-height:110px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.az-metric span{
  display:block;
  color:#475467;
  font-size:12px;
  font-weight:400;
}

.az-metric strong{
  display:block;
  margin:10px 0 4px;
  color:#0f172a;
  font-size:30px;
  line-height:1;
  font-weight:500;
  letter-spacing:-.04em;
}

.az-metric small{
  color:var(--az-muted);
  font-size:12px;
  font-weight:400;
}

.az-good{
  color:#15803d !important;
}

.az-warn{
  color:#b45309 !important;
}

.az-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);
  gap:18px;
  align-items:start;
}

/* =========================================================
   BUTTONS
========================================================= */

.az-primary-btn,
.az-light-btn,
.az-mini-btn,
.az-icon-btn,
.az-admin-btn,
.az-cloudflare-publish-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  text-decoration:none;
  white-space:nowrap;
}

.az-primary-btn,
.az-admin-btn.primary{
  min-height:36px;
  padding:8px 14px;
  border:1px solid #0f172a;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  font-weight:500;
}

.az-primary-btn:hover,
.az-admin-btn.primary:hover{
  background:#111827;
  text-decoration:none;
}

.az-light-btn,
.az-mini-btn,
.az-admin-btn{
  min-height:34px;
  padding:8px 12px;
  border:1px solid var(--az-line);
  background:#fff;
  color:#0f172a;
  font-size:12px;
  font-weight:400;
}

.az-light-btn:hover,
.az-mini-btn:hover,
.az-admin-btn:hover{
  background:#f8fafc;
  text-decoration:none;
}

.az-mini-btn{
  min-height:30px;
  padding:6px 10px;
}

.az-danger-btn,
.az-mini-btn.az-danger-btn{
  border-color:#fecaca;
  color:#dc2626;
  background:#fff;
}

.az-danger-btn:not(:disabled):hover,
.az-mini-btn.az-danger-btn:not(:disabled):hover{
  background:#fef2f2;
}

.az-cloudflare-publish-btn{
  min-height:34px;
  padding:8px 14px;
  border:1px solid var(--az-green);
  background:var(--az-green);
  color:#fff;
  font-size:12px;
  font-weight:500;
  box-shadow:none;
}

.az-cloudflare-publish-btn:hover{
  background:#15803d;
  border-color:#15803d;
}

/* =========================================================
   SIMPLE TABLES
========================================================= */

.az-table{
  display:grid;
  overflow:hidden;
  border:1px solid var(--az-line-soft);
  border-radius:14px;
  background:#fff;
}

.az-table-row{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) .7fr .7fr auto;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:12px 14px;
  border-bottom:1px solid var(--az-line-soft);
  color:#344054;
  font-size:13px;
  font-weight:400;
}

.az-table-row:last-child{
  border-bottom:0;
}

.az-table-head{
  min-height:40px;
  background:#f9fafb;
  color:#667085;
  font-size:11px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.08em;
}

/* =========================================================
   ALL LISTINGS - CLEAN HIERARCHY
========================================================= */

.az-admin-listings-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:0 0 14px;
  margin:0 0 14px;
  border-bottom:1px solid var(--az-line-soft);
}

.az-admin-listings-card-head h3{
  margin:0;
  color:#0f172a;
  font-size:16px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:-.01em;
}

.az-admin-listings-card-head p{
  margin:5px 0 0;
  color:#667085;
  font-size:12px;
  line-height:1.4;
  font-weight:400;
}

.az-admin-listings-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.az-admin-publish-status-row{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #d8f3df;
  background:#f5fff8;
  color:#166534;
  border-radius:13px;
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}

.az-admin-publish-status-row strong{
  font-weight:500;
}

.az-admin-listing-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:10px 0 12px;
}

.az-admin-listing-toolbar span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 9px;
  border:1px solid var(--az-line);
  background:#fff;
  color:#344054;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:400;
  white-space:nowrap;
}

.az-admin-import-bridge{
  margin:12px 0;
  border:1px solid #d7e6ff;
  background:#f7fbff;
  border-radius:14px;
  overflow:hidden;
}

.az-admin-import-bridge summary{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  cursor:pointer;
  color:#0f172a;
  font-size:13px;
  font-weight:500;
}

.az-admin-import-bridge summary span{
  color:#2563eb;
  font-size:12px;
  font-weight:400;
}

.az-admin-import-bridge-body{
  display:grid;
  gap:10px;
  padding:12px;
  border-top:1px solid #d7e6ff;
  background:#fff;
}

.az-admin-import-bridge-body p{
  margin:0;
  color:#667085;
  font-size:12px;
  font-weight:400;
}

.az-admin-import-bridge textarea,
.az-code-box{
  width:100%;
  min-height:130px;
  border:1px solid #d8dee8;
  border-radius:13px;
  background:#fff;
  color:#0f172a;
  padding:12px;
  resize:vertical;
  outline:none;
  font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.az-admin-import-bridge textarea:focus,
.az-code-box:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

.az-admin-import-bridge-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.az-admin-import-bridge pre{
  margin:0;
  border:1px solid #1f2937;
  background:#0f172a;
  color:#e5e7eb;
  border-radius:13px;
  padding:12px;
  overflow:auto;
  font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Search + Filters */
.az-admin-filter-panel{
  margin:12px 0 16px;
  border:1px solid var(--az-line);
  border-radius:16px;
  background:#fff;
  overflow:visible;
  box-shadow:none;
}

.az-admin-search-hero{
  position:relative;
  padding:16px;
}

.az-admin-search-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.az-admin-search-title-left{
  display:flex;
  align-items:flex-start;
  min-width:0;
  gap:0;
}

.az-admin-search-icon,
.az-admin-search-input-shell > span,
.az-admin-filter-trigger-icon,
.az-admin-filter-menu-search span{
  display:none !important;
}

.az-admin-search-title-left label{
  display:block;
  margin:0;
  color:#0f172a;
  font-size:15px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:-.01em;
}

.az-admin-search-title-left p{
  margin:4px 0 0;
  color:#667085;
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}

.az-admin-filter-main-toggle,
.az-admin-filter-text-link,
.az-admin-advanced-filter-head button,
.az-admin-clear-all-link{
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  color:#2563eb !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:400 !important;
  cursor:pointer;
}

.az-admin-filter-main-toggle:hover,
.az-admin-filter-text-link:hover,
.az-admin-advanced-filter-head button:hover,
.az-admin-clear-all-link:hover{
  color:#1d4ed8 !important;
  text-decoration:underline;
}

.az-admin-search-input-shell{
  min-height:42px;
  display:flex;
  align-items:center;
  border:1px solid #d8dee8;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.az-admin-search-input{
  flex:1 1 auto;
  min-width:0;
  height:40px;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#0f172a;
  padding:0 12px !important;
  outline:none;
  font-size:13px;
  font-weight:400;
}

.az-admin-search-input::placeholder{
  color:#98a2b3;
}

.az-admin-search-input-shell:focus-within{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

.az-admin-search-input-shell kbd{
  flex:0 0 auto;
  margin-right:8px;
  border:0;
  border-radius:999px;
  background:#f1f5f9;
  color:#667085;
  padding:4px 8px;
  font:400 10px/1 Inter, ui-sans-serif, system-ui;
}

.az-admin-advanced-filter-shell{
  border-top:1px solid var(--az-line-soft);
  padding:14px 16px 16px;
}

.az-admin-advanced-filter-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.az-admin-advanced-filter-head span{
  color:#0f172a;
  font-size:13px;
  font-weight:400;
}

.az-admin-filter-dropdown-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(118px,1fr));
  gap:10px;
}

.az-admin-advanced-filter-shell,
.az-admin-advanced-filter-shell button,
.az-admin-advanced-filter-shell strong,
.az-admin-advanced-filter-shell span,
.az-admin-advanced-filter-shell label{
  font-weight:400;
}

.az-admin-filter-control{
  position:relative;
  min-width:0;
}

.az-admin-filter-label{
  margin:0 0 6px;
  color:#344054;
  font-size:11px;
  line-height:1;
  font-weight:400;
}

.az-admin-filter-trigger{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid #d8dee8;
  border-radius:11px;
  background:#fff;
  color:#0f172a;
  padding:8px 10px;
  font-size:12px;
  font-weight:400;
}

.az-admin-filter-trigger:hover{
  background:#f9fafb;
}

.az-admin-filter-trigger strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:400;
}

.az-admin-filter-chevron{
  color:#2563eb;
  font-size:12px;
}

.az-admin-filter-menu{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:1000;
  width:min(320px,80vw);
  max-height:320px;
  display:flex;
  flex-direction:column;
  border:1px solid #d8dee8;
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.14);
  overflow:hidden;
}

.az-admin-filter-menu-search{
  display:flex;
  align-items:center;
  padding:9px;
  border-bottom:1px solid var(--az-line-soft);
}

.az-admin-filter-menu-search input{
  width:100%;
  min-height:34px;
  border:1px solid #e3e8ef;
  border-radius:10px;
  padding:7px 9px;
  outline:none;
  font-size:12px;
  font-weight:400;
}

.az-admin-filter-menu-options{
  overflow:auto;
  padding:6px;
}

.az-admin-filter-menu-divider{
  padding:8px 9px 5px;
  color:#667085;
  font-size:10px;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.az-admin-filter-option{
  width:100%;
  min-height:34px;
  display:grid;
  grid-template-columns:16px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#0f172a;
  padding:7px 8px;
  text-align:left;
  font-size:12px;
  font-weight:400;
}

.az-admin-filter-option:hover,
.az-admin-filter-option.is-selected{
  background:#f3f7ff;
}

.az-admin-filter-check{
  color:#2563eb;
  font-weight:400;
}

.az-admin-filter-option-label{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.az-admin-filter-count{
  color:#667085;
  font-size:11px;
  font-weight:400;
}

.az-admin-active-filter-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  padding:10px;
  border:1px solid var(--az-line-soft);
  border-radius:12px;
  background:#f9fafb;
}

.az-admin-active-filter-left,
.az-admin-active-filter-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.az-admin-active-filter-title{
  color:#0f172a;
  font-size:12px;
  font-weight:400;
}

.az-admin-active-none,
.az-admin-active-chip{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:400;
}

.az-admin-active-none{
  background:#eef2f7;
  color:#667085;
}

.az-admin-active-chip{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}

/* Listings table */
.az-admin-listing-header-row,
.az-admin-listing-row{
  display:grid;
  grid-template-columns:minmax(260px,1.55fr) minmax(220px,1.2fr) minmax(130px,.55fr) 100px 140px 116px;
  gap:12px;
  align-items:center;
}

.az-admin-listing-header-row{
  min-height:38px;
  padding:0 12px;
  color:#667085;
  font-size:11px;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.08em;
  border-top:1px solid var(--az-line-soft);
  border-bottom:1px solid var(--az-line-soft);
}

.az-admin-listing-table{
  max-height:560px;
  overflow:auto;
  border-bottom-left-radius:14px;
  border-bottom-right-radius:14px;
}

.az-admin-listing-row{
  min-height:64px;
  padding:10px 12px;
  border-bottom:1px solid var(--az-line-soft);
  background:#fff;
}

.az-admin-listing-row:hover{
  background:#f9fafb;
}

.az-admin-listing-title{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.az-admin-listing-title strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#0f172a;
  font-size:13px;
  font-weight:500;
}

.az-admin-listing-meta-stacked{
  display:grid;
  gap:1px;
  margin-top:3px;
  padding-left:17px;
  color:#667085;
  font-size:11px;
  line-height:1.25;
  font-weight:400;
}

.az-admin-listing-meta-stacked code{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#667085;
  font:400 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.az-admin-listing-website a{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#2563eb;
  font-size:12px;
  font-weight:400;
}

.az-admin-listing-created{
  display:grid;
  gap:2px;
  color:#0f172a;
  font-size:12px;
  font-weight:400;
}

.az-admin-listing-created small{
  color:#667085;
  font-size:11px;
  font-weight:400;
}

.az-admin-listing-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.az-admin-status-dot-only{
  flex:0 0 auto;
  width:9px;
  height:9px;
  display:inline-block;
  border-radius:999px;
  background:#98a2b3;
}

.az-admin-status-dot-only.az-green{
  background:var(--az-green);
  box-shadow:0 0 0 4px rgba(22,163,74,.12);
}

.az-admin-status-dot-only.az-red{
  background:var(--az-red);
  box-shadow:0 0 0 4px rgba(220,38,38,.10);
}

.az-admin-plan-badge,
.az-admin-health-badge,
.az-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:23px;
  border-radius:999px;
  padding:5px 9px;
  font-size:10px;
  line-height:1;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.az-admin-plan-badge{
  border:1px solid #bae6fd;
  background:#e0f2fe;
  color:#0369a1;
}

.az-plan-subscriber,
.az-plan-sponsored,
.az-plan-enterprise,
.az-plan-verified{
  border-color:#bbf7d0;
  background:#dcfce7;
  color:#047857;
}

.az-admin-health-badge.az-green,
.az-badge-green{
  border:1px solid #bbf7d0;
  background:#dcfce7;
  color:#047857;
}

.az-admin-health-badge.az-red{
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#dc2626;
}

.az-badge-orange{
  border:1px solid #fed7aa;
  background:#fff7ed;
  color:#c2410c;
}

/* =========================================================
   FORMS + CREATE LISTING
========================================================= */

.az-form-card{
  display:grid;
  gap:10px;
  max-width:760px;
}

.az-form-card label{
  color:#344054;
  font-size:12px;
  font-weight:400;
  margin-top:4px;
}

.az-form-card input,
.az-form-card textarea,
.az-form-card select,
.az-create-field-grid input,
.az-create-field-grid textarea,
.az-create-output{
  width:100%;
  border:1px solid #d8dee8;
  border-radius:13px;
  background:#fff;
  color:#0f172a;
  padding:11px 12px;
  outline:none;
  font:400 13px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

.az-form-card textarea{
  min-height:120px;
  resize:vertical;
}

.az-form-card input:focus,
.az-form-card textarea:focus,
.az-form-card select:focus,
.az-create-field-grid input:focus,
.az-create-field-grid textarea:focus,
.az-create-output:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

.az-placeholder{
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#667085;
  background:#f9fafb;
  border:1px dashed #cfd6e2;
  border-radius:14px;
  font-size:13px;
  font-weight:400;
}

/* Elite Create Listing Builder */
.az-admin-create-elite-shell{
  display:grid;
  gap:18px;
  max-width:1280px;
}

.az-create-hero-card,
.az-create-card{
  background:#fff;
  border:1px solid var(--az-line);
  border-radius:20px;
  box-shadow:var(--az-shadow-soft);
  padding:20px;
}

.az-create-hero-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.az-create-kicker{
  display:inline-flex;
  margin-bottom:8px;
  color:#16a34a;
  font-size:11px;
  font-weight:400;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.az-create-hero-card h3,
.az-create-card h4{
  margin:0;
  color:#0f172a;
  font-size:18px;
  font-weight:500;
  letter-spacing:-.02em;
}

.az-create-card h4{
  font-size:15px;
}

.az-create-hero-card p{
  margin:6px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.45;
  font-weight:400;
}

.az-create-hero-actions,
.az-create-actions-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.az-create-grid-two{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.az-create-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--az-line-soft);
}

.az-create-section-head span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#15803d;
  border-radius:999px;
  padding:5px 9px;
  font-size:10px;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:nowrap;
}

.az-create-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.az-create-field-grid label{
  display:grid;
  gap:7px;
  color:#344054;
  font-size:12px;
  font-weight:400;
}

.az-create-field-grid label.wide{
  grid-column:1/-1;
}

.az-create-field-grid textarea,
.az-create-output{
  resize:vertical;
}

.az-create-output{
  margin-top:12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  line-height:1.5;
}

.az-create-help{
  margin:10px 0 0;
  color:#667085;
  font-size:12px;
  font-weight:400;
}

/* =========================================================
   ORIGINAL MODAL
========================================================= */

.az-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.az-modal.is-open{
  display:block;
}

.az-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(4px);
}

.az-modal-panel{
  position:absolute;
  top:50%;
  left:50%;
  width:min(760px,calc(100vw - 36px));
  max-height:calc(100vh - 36px);
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--az-line);
  border-radius:22px;
  box-shadow:0 34px 110px rgba(15,23,42,.28);
}

.az-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  border-bottom:1px solid var(--az-line);
  background:#fff;
}

.az-modal-head h3{
  margin:0;
  color:#0f172a;
  font-size:18px;
  font-weight:500;
  letter-spacing:-.02em;
}

.az-modal-head p{
  margin:5px 0 0;
  color:#667085;
  font-size:13px;
  font-weight:400;
}

.az-icon-btn{
  width:36px;
  height:36px;
  border:1px solid var(--az-line);
  background:#fff;
  color:#0f172a;
  font-size:22px;
  line-height:1;
}

.az-icon-btn:hover{
  background:#f9fafb;
}

.az-modal-body{
  padding:18px 20px;
  overflow:auto;
}

/* =========================================================
   SCOPED EDITOR OVERLAY
========================================================= */

#az-admin-editor-root{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:none;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color:#0f172a;
}

#az-admin-editor-root.is-open{
  display:block;
}

#az-admin-editor-root *,
#az-admin-editor-root *::before,
#az-admin-editor-root *::after{
  box-sizing:border-box;
}

#az-admin-editor-root .az-admin-editor-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(5px);
}

#az-admin-editor-root .az-admin-editor-modal{
  position:absolute;
  inset:24px;
  margin:auto;
  width:min(1420px, calc(100vw - 48px));
  height:min(880px, calc(100vh - 48px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.95);
  border-radius:22px;
  box-shadow:0 34px 110px rgba(15,23,42,.30);
}

#az-admin-editor-root .az-admin-editor-header{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--az-line);
}

#az-admin-editor-root .az-editor-title-block h2{
  margin:0;
  color:#0f172a;
  font-size:28px;
  line-height:1.05;
  font-weight:500;
  letter-spacing:-.04em;
}

#az-admin-editor-root .az-editor-title-block p{
  margin:8px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.4;
  font-weight:400;
}

#az-admin-editor-root .az-live-pill{
  display:inline-flex;
  align-items:center;
  margin-left:10px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid #bbf7d0;
  background:#ecfdf5;
  color:#047857;
  font-size:10px;
  font-weight:500;
  text-transform:uppercase;
  vertical-align:middle;
  letter-spacing:.03em;
}

#az-admin-editor-root .az-live-pill.is-closed{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#c2410c;
}

#az-admin-editor-root .az-live-pill.is-unknown{
  border-color:#e5e7eb;
  background:#f8fafc;
  color:#667085;
}

#az-admin-editor-root .az-editor-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

#az-admin-editor-root .az-admin-editor-close{
  width:auto;
  min-width:48px;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--az-line);
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  font-size:0 !important;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

#az-admin-editor-root .az-admin-editor-close::before{
  content:"Close";
  font-size:11px;
  font-weight:400;
  color:#0f172a;
}

#az-admin-editor-root .az-admin-editor-form{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
}

#az-admin-editor-root .az-editor-layout{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-columns:210px minmax(0,1fr) 292px;
  gap:16px;
  padding:16px 22px 82px;
}

#az-admin-editor-root .az-editor-main,
#az-admin-editor-root .az-editor-left-rail,
#az-admin-editor-root .az-editor-right-rail{
  min-height:0;
  overflow:auto;
  scrollbar-width:thin;
}

#az-admin-editor-root .az-editor-left-rail,
#az-admin-editor-root .az-rail-card,
#az-admin-editor-root .az-admin-editor-section{
  background:#fff;
  border:1px solid var(--az-line);
  border-radius:16px;
  box-shadow:var(--az-shadow-soft);
}

#az-admin-editor-root .az-editor-left-rail{
  padding:14px;
}

#az-admin-editor-root .az-left-rail-title{
  margin:0 0 10px;
  color:#667085;
  font-size:11px;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.12em;
}

#az-admin-editor-root .az-editor-left-rail button{
  width:100%;
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:0 0 6px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#344054;
  padding:8px 10px;
  font-size:12px;
  font-weight:400;
  text-align:left;
}

#az-admin-editor-root .az-editor-left-rail button:hover{
  background:#f3f4f6;
  color:#0f172a;
}

#az-admin-editor-root .az-editor-left-rail button.danger{
  margin-top:12px;
  border:1px solid #fecaca;
  background:#fff7f7;
  color:#b91c1c;
}

#az-admin-editor-root .az-admin-editor-section{
  padding:16px;
  margin-bottom:14px;
}

#az-admin-editor-root .az-admin-editor-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:1px solid var(--az-line-soft);
}

#az-admin-editor-root .az-admin-editor-section-head h3{
  margin:0;
  color:#0f172a;
  font-size:15px;
  font-weight:500;
  line-height:1.25;
  letter-spacing:-.01em;
}

#az-admin-editor-root .az-admin-editor-section-head p{
  margin:4px 0 0;
  color:#667085;
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}

#az-admin-editor-root .az-admin-section-pill,
#az-admin-editor-root .az-admin-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:999px;
  padding:5px 10px;
  font-size:10px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.06em;
  border:1px solid #bbf7d0;
  background:#ecfdf5;
  color:#166534;
}

#az-admin-editor-root .az-admin-status-pill.red,
#az-admin-editor-root .az-admin-section-pill.red{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

#az-admin-editor-root .az-command-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

#az-admin-editor-root .az-command-card{
  min-height:82px;
  border:1px solid var(--az-line);
  background:#f9fafb;
  border-radius:14px;
  padding:13px;
}

#az-admin-editor-root .az-command-card span{
  display:block;
  color:#475467;
  font-size:12px;
  font-weight:400;
}

#az-admin-editor-root .az-command-card strong{
  display:block;
  margin-top:6px;
  color:#0f172a;
  font-size:26px;
  line-height:1;
  font-weight:500;
  letter-spacing:-.04em;
}

#az-admin-editor-root .az-command-card small{
  display:block;
  margin-top:7px;
  color:#667085;
  font-size:11px;
  line-height:1.25;
  font-weight:400;
}

#az-admin-editor-root .az-hours-card.green{
  background:#ecfdf5;
  border-color:#bbf7d0;
}

#az-admin-editor-root .az-hours-card.red{
  background:#fef2f2;
  border-color:#fecaca;
}

#az-admin-editor-root .az-command-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

#az-admin-editor-root .az-command-chips span{
  border:1px solid var(--az-line);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  color:#344054;
  font-size:11px;
  font-weight:400;
}

#az-admin-editor-root .az-admin-editor-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

#az-admin-editor-root .az-admin-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#0f172a;
  font-size:12px;
  font-weight:400;
}

#az-admin-editor-root .az-admin-field.wide{
  grid-column:1/-1;
}

#az-admin-editor-root .az-admin-field span{
  color:#344054;
  font-size:12px;
  font-weight:400;
}

#az-admin-editor-root .az-required-pill{
  display:inline-flex;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  font-size:9px;
  font-weight:500;
  letter-spacing:.02em;
}

#az-admin-editor-root .az-admin-field input,
#az-admin-editor-root .az-admin-field textarea,
#az-admin-editor-root .az-admin-field select{
  width:100%;
  border:1px solid #d8dee8;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  padding:10px 12px;
  outline:none;
  font:400 13px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

#az-admin-editor-root .az-admin-field textarea{
  resize:vertical;
  min-height:44px;
}

#az-admin-editor-root .az-admin-field input:focus,
#az-admin-editor-root .az-admin-field textarea:focus,
#az-admin-editor-root .az-admin-field select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

#az-admin-editor-root .az-admin-field small{
  min-height:14px;
  color:#667085;
  font-size:11px;
  font-weight:400;
}

#az-admin-editor-root .az-admin-field.is-required input,
#az-admin-editor-root .az-admin-field.is-required textarea,
#az-admin-editor-root .az-admin-field.is-required select{
  border-color:#fecaca;
  background:#fffafa;
}

#az-admin-editor-root .az-admin-field.is-required small{
  color:#b91c1c;
}

#az-admin-editor-root .az-admin-field.is-review input,
#az-admin-editor-root .az-admin-field.is-review textarea,
#az-admin-editor-root .az-admin-field.is-review select{
  border-color:#fed7aa;
  background:#fffdf8;
}

#az-admin-editor-root .az-admin-field.is-review small{
  color:#b45309;
}

#az-admin-editor-root .az-media-command{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:14px;
  align-items:center;
  border:1px solid var(--az-line);
  background:#f9fafb;
  border-radius:14px;
  padding:12px;
  margin-bottom:14px;
}

#az-admin-editor-root .az-hero-preview{
  height:92px;
  border-radius:12px;
  border:1px solid var(--az-line);
  overflow:hidden;
  background:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#667085;
  font-size:12px;
}

#az-admin-editor-root .az-hero-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

#az-admin-editor-root .az-media-command h4,
#az-admin-editor-root .az-rail-card h3{
  margin:0;
  color:#0f172a;
  font-size:14px;
  font-weight:500;
}

#az-admin-editor-root .az-media-command p,
#az-admin-editor-root .az-rail-card p{
  margin:5px 0 10px;
  color:#667085;
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}

#az-admin-editor-root .az-inline-actions,
#az-admin-editor-root .az-admin-editor-footer > div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

#az-admin-editor-root .az-editor-right-rail{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-right:2px;
}

#az-admin-editor-root .az-rail-card{
  padding:14px;
}

#az-admin-editor-root .az-rail-eyebrow{
  color:#2563eb;
  font-size:10px;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.13em;
  margin-bottom:8px;
}

#az-admin-editor-root .az-strength-box{
  height:56px;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  margin:12px 0;
}

#az-admin-editor-root .az-strength-box strong{
  font-size:32px;
  font-weight:500;
  letter-spacing:-.05em;
}

#az-admin-editor-root .az-strength-box span{
  font-size:11px;
  font-weight:400;
  color:#cbd5e1;
}

#az-admin-editor-root .az-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

#az-admin-editor-root .az-kpi-grid div{
  background:#f9fafb;
  border:1px solid var(--az-line);
  border-radius:11px;
  padding:8px 6px;
  text-align:center;
}

#az-admin-editor-root .az-kpi-grid strong{
  display:block;
  color:#0f172a;
  font-size:13px;
  font-weight:500;
}

#az-admin-editor-root .az-kpi-grid span{
  display:block;
  margin-top:2px;
  color:#667085;
  font-size:10px;
  font-weight:400;
}

#az-admin-editor-root .az-rail-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

#az-admin-editor-root .az-rail-title-row span,
#az-admin-editor-root .az-monitor-list b.green{
  color:#047857;
}

#az-admin-editor-root .az-monitor-list b.red,
#az-admin-editor-root .az-rail-title-row span.red{
  color:#b91c1c;
}

#az-admin-editor-root .az-rail-title-row button{
  border:0;
  background:transparent;
  color:#2563eb;
  font-size:11px;
  font-weight:400;
}

#az-admin-editor-root .az-monitor-list,
#az-admin-editor-root .az-opportunity-list{
  list-style:none;
  padding:0;
  margin:8px 0 0;
}

#az-admin-editor-root .az-monitor-list li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  border-bottom:1px solid var(--az-line-soft);
  color:#667085;
  font-size:12px;
  font-weight:400;
}

#az-admin-editor-root .az-monitor-list li:last-child{
  border-bottom:0;
}

#az-admin-editor-root .az-monitor-list b{
  color:#0f172a;
  font-weight:500;
  text-align:right;
}

#az-admin-editor-root .az-opportunity-list li{
  position:relative;
  padding:7px 0 7px 15px;
  border-bottom:1px solid var(--az-line-soft);
  color:#344054;
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}

#az-admin-editor-root .az-opportunity-list li:last-child{
  border-bottom:0;
}

#az-admin-editor-root .az-opportunity-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:13px;
  width:5px;
  height:5px;
  border-radius:999px;
  background:#f59e0b;
}

#az-admin-editor-root .az-rail-actions{
  display:grid;
  gap:8px;
}

#az-admin-editor-root .az-rail-actions button{
  min-height:36px;
  border:1px solid var(--az-line);
  border-radius:12px;
  background:#f9fafb;
  color:#0f172a;
  padding:8px 10px;
  font-size:12px;
  font-weight:400;
  text-align:left;
}

#az-admin-editor-root .az-rail-actions button:hover{
  background:#eef2ff;
  border-color:#c7d2fe;
}

#az-admin-editor-root .az-similar-list{
  display:grid;
  gap:8px;
  margin-top:10px;
}

#az-admin-editor-root .az-similar-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--az-line);
  background:#f9fafb;
  border-radius:12px;
  padding:10px;
  text-align:left;
}

#az-admin-editor-root .az-similar-item strong{
  display:block;
  color:#0f172a;
  font-size:12px;
  font-weight:500;
}

#az-admin-editor-root .az-similar-item small{
  display:block;
  margin-top:2px;
  color:#667085;
  font-size:11px;
  font-weight:400;
}

#az-admin-editor-root .az-similar-item b{
  color:#047857;
  font-size:12px;
  font-weight:500;
}

#az-admin-editor-root .az-admin-secondary-btn,
#az-admin-editor-root .az-admin-primary-btn{
  border-radius:999px;
  min-height:36px;
  padding:8px 14px;
  font-size:12px;
  font-weight:400;
  cursor:pointer;
  border:1px solid #d8dee8;
  background:#fff;
  color:#0f172a;
  font-family:inherit;
}

#az-admin-editor-root .az-admin-primary-btn{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
}

#az-admin-editor-root .az-admin-secondary-btn:hover{
  background:#f9fafb;
}

#az-admin-editor-root .az-admin-primary-btn:hover{
  background:#111827;
}

#az-admin-editor-root .az-admin-editor-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 22px;
  background:rgba(255,255,255,.98);
  border-top:1px solid var(--az-line);
  box-shadow:0 -14px 30px rgba(15,23,42,.05);
  z-index:5;
}

#az-admin-editor-root .az-admin-editor-footer > span{
  color:#667085;
  font-size:11px;
  font-weight:400;
}

#az-admin-editor-root .az-json-panel{
  position:absolute;
  top:90px;
  right:36px;
  bottom:80px;
  width:min(560px, calc(100vw - 80px));
  z-index:20;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#0f172a;
  color:#e5e7eb;
  border-radius:18px;
  box-shadow:0 28px 80px rgba(15,23,42,.34);
  border:1px solid rgba(148,163,184,.25);
}

#az-admin-editor-root .az-json-panel > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(148,163,184,.22);
}

#az-admin-editor-root .az-json-panel h3{
  margin:0;
  font-size:13px;
  font-weight:500;
}

#az-admin-editor-root .az-json-panel button{
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
}

#az-admin-editor-root .az-json-panel pre{
  flex:1;
  min-height:0;
  overflow:auto;
  margin:0;
  padding:14px;
  font:11px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Delete modal */
#az-admin-editor-root .az-delete-modal-backdrop{
  position:absolute;
  inset:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.42);
}

#az-admin-editor-root .az-delete-modal{
  width:min(460px,100%);
  border-radius:22px;
  border:1px solid #fecaca;
  background:#fff;
  box-shadow:0 30px 90px rgba(15,23,42,.30);
  padding:22px;
}

#az-admin-editor-root .az-delete-modal h3{
  margin:0;
  color:#991b1b;
  font-size:18px;
  font-weight:500;
}

#az-admin-editor-root .az-delete-modal p{
  margin:10px 0;
  color:#344054;
  font-size:13px;
  font-weight:400;
}

#az-admin-editor-root .az-delete-modal strong{
  color:#0f172a;
  font-weight:500;
}

#az-admin-editor-root .az-delete-modal input{
  width:100%;
  margin:10px 0 14px;
  border:1px solid #fecaca;
  border-radius:13px;
  padding:11px 12px;
  font:500 14px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#az-admin-editor-root .az-delete-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

#az-admin-editor-root .az-delete-confirm{
  background:#991b1b;
  border-color:#991b1b;
  color:#fff;
}

#az-admin-editor-root .az-delete-confirm:disabled{
  opacity:.45;
}

#az-admin-editor-toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:2147483647;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  font:500 13px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  box-shadow:0 18px 50px rgba(15,23,42,.24);
  transform:translateY(20px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

#az-admin-editor-toast.show{
  transform:translateY(0);
  opacity:1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1320px){
  .az-admin-filter-dropdown-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .az-admin-listing-header-row,
  .az-admin-listing-row{
    grid-template-columns:minmax(230px,1.4fr) minmax(180px,1fr) minmax(130px,.55fr) 96px 132px 106px;
  }

  #az-admin-editor-root .az-editor-layout{
    grid-template-columns:190px minmax(0,1fr);
  }

  #az-admin-editor-root .az-editor-right-rail{
    display:none;
  }
}

@media(max-width:980px){
  .az-admin-shell{
    grid-template-columns:1fr;
  }

  .az-sidebar{
    position:relative;
    min-height:auto;
  }

  .az-main{
  padding:0 28px 38px;
}

  .az-topbar,
  .az-page-head,
  .az-admin-listings-card-head,
  .az-create-hero-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .az-metrics-grid,
  .az-dashboard-grid,
  .az-admin-filter-dropdown-grid,
  .az-create-grid-two,
  .az-create-field-grid{
    grid-template-columns:1fr;
  }

  .az-admin-active-filter-strip{
    align-items:flex-start;
    flex-direction:column;
  }

  .az-admin-listing-header-row{
    display:none;
  }

  .az-admin-listing-row{
    grid-template-columns:1fr;
    align-items:start;
  }

  .az-admin-listing-actions{
    justify-content:flex-start;
  }

  #az-admin-editor-root .az-admin-editor-modal{
    inset:12px;
    width:calc(100vw - 24px);
    height:calc(100vh - 24px);
  }

  #az-admin-editor-root .az-editor-layout{
    grid-template-columns:1fr;
    padding:12px 14px 82px;
  }

  #az-admin-editor-root .az-editor-left-rail{
    display:none;
  }

  #az-admin-editor-root .az-command-grid,
  #az-admin-editor-root .az-admin-editor-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   APROXZ ADMIN — UI-ONLY SHELL POLISH
   Version: 2026-08-28_ADMIN_CSS_V5_3_APPROVED_LIGHT_CORPORATE_UI

   Scope:
   - Improves only the global top toolbar and existing left rail.
   - Keeps page modules, dashboard, maps, listings, ads, editors,
     routing, APIs, calculations, persistence, and business logic untouched.
========================================================= */

.az-admin-shell{
  grid-template-columns:264px minmax(0,1fr);
}

.az-sidebar{
  padding:22px 16px 20px;
  box-shadow:10px 0 30px rgba(15,23,42,.035);
}

.az-brand{
  min-height:54px;
  padding:0 4px 20px;
  margin-bottom:12px;
}

.az-nav{
  gap:3px;
}

.az-nav-group{
  margin:20px 0 7px;
  padding:0 8px;
  color:#98a2b3;
  font-size:10px;
  font-weight:600;
  letter-spacing:.17em;
}

.az-nav-btn{
  min-height:38px;
  padding:9px 11px;
  border-radius:10px;
  color:#475467;
  font-size:12.5px;
  transition:background .14s ease,color .14s ease,transform .14s ease;
}

.az-nav-btn:hover{
  background:#f2f6ff;
  color:#1d4ed8;
  transform:translateX(1px);
}

.az-nav-btn.is-active{
  background:#eaf1ff;
  color:#2563eb;
  box-shadow:none;
}

.az-sidebar-status{
  min-height:42px;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(22,163,74,.14);
}

.az-main{
  padding:0 32px 42px;
}

.az-topbar{
  position:sticky;
  top:0;
  z-index:900;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 -28px 24px;
  padding:14px 28px;
  border-bottom:1px solid var(--az-line);
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 18px rgba(15,23,42,.03);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.az-global-search{
  flex:1 1 520px;
  max-width:560px;
  min-width:260px;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px 0 13px;
  border:1px solid #dfe5ed;
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.az-global-search:focus-within{
  border-color:#93b4f8;
  background:#fff;
  box-shadow:0 0 0 3px rgba(37,99,235,.09);
}

.az-global-search input{
  flex:1 1 auto;
  min-width:0;
  height:40px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#0f172a;
  font-size:12.5px;
}

.az-global-search input::placeholder{
  color:#8b98aa;
}

.az-global-search kbd{
  flex:0 0 auto;
  padding:4px 7px;
  border:1px solid #e2e8f0;
  border-radius:7px;
  background:#fff;
  color:#64748b;
  box-shadow:0 1px 1px rgba(15,23,42,.03);
  font:500 10px/1 Inter,ui-sans-serif,system-ui;
}

.az-topbar-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.az-toolbar-btn,
.az-toolbar-icon-btn,
.az-toolbar-logout{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#243044;
  font-size:12px;
  font-weight:500;
  line-height:1;
  transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease;
}

.az-toolbar-btn{
  padding:0 11px;
}

.az-toolbar-btn:hover,
.az-toolbar-icon-btn:hover{
  border-color:#e2e8f0;
  background:#f8fafc;
}

.az-toolbar-btn-primary{
  padding:0 13px;
  border-color:#dbe3ed;
  background:#fff;
  color:#0f172a;
  box-shadow:0 3px 10px rgba(15,23,42,.04);
}

.az-toolbar-btn-primary:hover{
  border-color:#cbd5e1;
  background:#f8fafc;
}

.az-toolbar-btn-quiet{
  color:#344054;
}

.az-toolbar-plus{
  font-size:18px;
  font-weight:400;
  line-height:1;
}

.az-toolbar-chevron{
  margin-left:1px;
  color:#64748b;
  font-size:13px;
}

.az-toolbar-icon,
.az-toolbar-icon-btn svg{
  width:17px;
  height:17px;
  flex:0 0 auto;
}

.az-toolbar-icon-btn{
  position:relative;
  width:38px;
  padding:0;
}

.az-toolbar-notification-dot{
  position:absolute;
  top:7px;
  right:7px;
  width:6px;
  height:6px;
  border:2px solid #fff;
  border-radius:50%;
  background:#2563eb;
  box-sizing:content-box;
}

.az-toolbar-divider{
  width:1px;
  height:30px;
  margin:0 3px;
  background:#e5e9ef;
}

.az-user-pill{
  min-height:42px;
  gap:10px;
  padding:4px 6px;
  border:0;
  border-radius:10px;
  background:transparent;
}

.az-user-avatar{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eaf1ff;
  color:#2557c7;
  font-size:11px;
  font-weight:600;
}

.az-user-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  line-height:1;
}

.az-user-copy strong{
  color:#101828;
  font-size:11.5px;
  font-weight:600;
}

.az-user-copy small{
  color:#667085;
  font-size:10px;
  font-weight:400;
}

.az-toolbar-logout{
  padding:0 12px;
  border-color:#e1e6ee;
  background:#fff;
  color:#0f172a;
}

.az-toolbar-logout:hover{
  border-color:#cbd5e1;
  background:#f8fafc;
}

.az-page-head{
  margin-bottom:18px;
}

@media (max-width:1280px){
  .az-toolbar-btn-quiet span{
    display:none;
  }

  .az-global-search{
    max-width:430px;
  }
}

@media (max-width:1080px){
  .az-admin-shell{
    grid-template-columns:205px minmax(0,1fr);
  }

  .az-main{
    padding-left:22px;
    padding-right:22px;
  }

  .az-topbar{
    margin-left:-22px;
    margin-right:-22px;
    padding-left:22px;
    padding-right:22px;
  }

  .az-user-copy,
  .az-toolbar-divider{
    display:none;
  }
}

@media (max-width:820px){
  .az-admin-shell{
    display:block;
  }

  .az-sidebar{
    position:relative;
    min-height:auto;
  }

  .az-sidebar-status{
  min-height:42px;
  padding:10px 12px;
  border:1px solid #ccefdc;
  border-radius:11px;
  background:#f0fff7;
  color:#067647;
}

  .az-topbar{
    position:relative;
    flex-wrap:wrap;
  }

  .az-global-search{
    flex-basis:100%;
    max-width:none;
    order:2;
  }

  .az-topbar-actions{
    width:100%;
  }
}