/* BestHome Admin v2 — isolated, responsive control-panel layer */
html.is-admin-host #besthome-ai-chat { display:none !important; }
html.is-admin-host #admin-dashboard-cards.hidden { display:none !important; }
html.is-admin-host .admin-shell-main { min-width:0; overflow-x:clip; }
html.is-admin-host .admin-subtab-panel { min-width:0; max-width:100%; }
html.is-admin-host .admin-subtab-panel[hidden],
html.is-admin-host .admin-subtab-panel.hidden { display:none !important; }
html.is-admin-host .admin-subtab-panel > .glass-card,
html.is-admin-host .admin-subtab-panel > div > .glass-card {
  min-width:0; border:1px solid #e3e8f2 !important; background:#fff !important;
  color:#172033 !important; box-shadow:0 14px 38px rgba(15,23,42,.065) !important;
}
html.is-admin-host .admin-subtab-panel :is(h2,h3,h4,.text-white) { color:#172033 !important; }
html.is-admin-host .admin-subtab-panel :is(.text-gray-300,.text-gray-400,.text-gray-500) { color:#64748b !important; }
html.is-admin-host .admin-subtab-panel :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  max-width:100%; min-width:0; border-color:#dfe5ee !important; background:#f8fafc !important; color:#172033 !important;
}
html.is-admin-host .admin-subtab-panel :is(input,select,textarea):focus { border-color:#818cf8 !important; box-shadow:0 0 0 4px rgba(99,102,241,.09); }
html.is-admin-host .admin-subtab-panel button { overflow-wrap:anywhere; }
html.is-admin-host .admin-subtab-panel img,
html.is-admin-host .admin-subtab-panel video { max-width:100%; }
html.is-admin-host .admin-subtab-panel button { max-width:100%; }

html.is-admin-host:not(.admin-authenticated) #tab-admin-login {
  background:
    radial-gradient(circle at 72% 20%,rgba(99,102,241,.24),transparent 34%),
    linear-gradient(120deg,rgba(4,8,24,.91),rgba(12,20,48,.76)),
    url('/uploads/loginpage.webp') center/cover no-repeat !important;
}
html.is-admin-host:not(.admin-authenticated) #tab-admin-login::before {
  background:linear-gradient(135deg,rgba(99,102,241,.13),transparent 42%,rgba(14,165,233,.1)) !important;
  filter:none !important; transform:none !important;
}
html.is-admin-host #tab-admin-login .glass-card {
  padding:clamp(24px,4vw,38px) !important;
  border-radius:28px !important;
  background:rgba(12,19,43,.74) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:0 30px 90px rgba(0,0,0,.48) !important;
  backdrop-filter:blur(18px) saturate(130%) !important;
}
html.is-admin-host #tab-admin-login .public-auth-heading::before {
  content:'BESTHOME'; display:block; margin-bottom:10px; color:#a5b4fc;
  font-size:11px; font-weight:900; letter-spacing:.22em;
}
html.is-admin-host #tab-admin-login .public-auth-heading p { display:block !important; color:#aebbd2; font-size:13px; }
html.is-admin-host #tab-admin-login input { border-radius:15px !important; }
html.is-admin-host #tab-admin-login .login-submit-btn { border-radius:15px !important; }

.admin-manager-card { width:100%; min-width:0; overflow:hidden; border:1px solid #e3e8f2; border-radius:24px; background:#fff; box-shadow:0 18px 45px rgba(15,23,42,.07); }
.admin-manager-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:24px; border-bottom:1px solid #edf0f5; }
.admin-manager-kicker { display:block; margin-bottom:5px; color:#6366f1; font-size:10px; font-weight:950; letter-spacing:.16em; text-transform:uppercase; }
.admin-manager-header h2 { margin:0; color:#111827; font-size:24px; line-height:1.15; font-weight:950; letter-spacing:-.035em; }
.admin-manager-header p { margin:7px 0 0; color:#64748b; font-size:13px; font-weight:650; }
.admin-manager-tools { display:flex; align-items:center; gap:10px; min-width:min(100%,470px); }
.admin-manager-search { display:flex; flex:1; min-width:0; align-items:center; gap:10px; height:44px; padding:0 14px; border:1px solid #dfe5ee; border-radius:14px; background:#f8fafc; color:#94a3b8; }
.admin-manager-search:focus-within { border-color:#818cf8; box-shadow:0 0 0 4px rgba(99,102,241,.1); background:#fff; }
.admin-manager-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#172033; font-size:13px; font-weight:750; }
.admin-manager-refresh { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 15px; border:0; border-radius:14px; background:#111827; color:#fff; font-size:12px; font-weight:900; cursor:pointer; }
.admin-manager-refresh:hover { background:#312e81; }
.admin-manager-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 24px; background:#fafbfe; border-bottom:1px solid #edf0f5; }
.admin-manager-meta span { color:#312e81; font-size:12px; font-weight:950; }
.admin-manager-meta small { color:#94a3b8; font-size:11px; font-weight:700; }
.admin-table-wrap { width:100%; overflow-x:auto; }
.admin-data-table { width:100%; min-width:780px; border-collapse:collapse; text-align:left; }
.admin-data-table th { padding:13px 18px; background:#fff; color:#7b879b; font-size:10px; font-weight:950; letter-spacing:.1em; text-transform:uppercase; }
.admin-data-table td { padding:15px 18px; border-top:1px solid #edf0f5; color:#334155; font-size:12px; font-weight:700; vertical-align:middle; }
.admin-data-table tbody tr:hover { background:#fafbff; }
.admin-data-table td strong,.admin-data-table td a,.admin-data-table td small { display:block; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-data-table td strong { color:#111827; font-size:13px; font-weight:950; }
.admin-data-table td small { margin-top:4px; color:#94a3b8; font-size:10px; }
.admin-data-table td a { color:#475569; text-decoration:none; }
.admin-data-table td a+a { margin-top:4px; color:#6366f1; }
.admin-cv-vacancy { display:inline-flex; max-width:230px; padding:6px 9px; border-radius:999px; background:#eef2ff; color:#4338ca; font-size:11px; font-weight:900; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-cv-actions { display:flex; justify-content:flex-start; gap:7px; }
.admin-cv-view,.admin-cv-delete { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:36px; border:0; border-radius:11px; font-size:11px; font-weight:900; cursor:pointer; }
.admin-cv-view { padding:0 12px; background:#ecfdf5; color:#047857; }
.admin-cv-delete { width:36px; background:#fff1f2; color:#e11d48; }
.admin-table-state { padding:54px 20px !important; text-align:center; color:#94a3b8 !important; }
.admin-table-state--error { color:#be123c !important; }

@media (max-width:800px) {
  html.is-admin-host .admin-shell-main { padding-left:12px !important; padding-right:12px !important; }
  html.is-admin-host .admin-shell-topbar { max-width:calc(100vw - 24px); }
  html.is-admin-host .admin-topbar-actions .admin-current-date { display:none; }
  .admin-manager-header { flex-direction:column; padding:18px; }
  .admin-manager-tools { width:100%; min-width:0; }
  .admin-manager-meta { padding:11px 18px; }
  .admin-table-wrap { overflow:visible; }
  .admin-data-table { min-width:0; }
  .admin-data-table thead { display:none; }
  .admin-data-table,.admin-data-table tbody,.admin-data-table tr,.admin-data-table td { display:block; width:100%; }
  .admin-data-table tbody { padding:10px; }
  .admin-data-table tr { margin-bottom:10px; padding:12px; border:1px solid #e8ecf3; border-radius:16px; }
  .admin-data-table td { display:grid; grid-template-columns:90px minmax(0,1fr); gap:10px; padding:8px 4px; border:0; }
  .admin-data-table td::before { content:attr(data-label); color:#94a3b8; font-size:9px; font-weight:950; letter-spacing:.07em; text-transform:uppercase; }
}
@media (max-width:520px) {
  .admin-manager-tools { flex-direction:column; align-items:stretch; }
  .admin-manager-refresh { width:100%; }
  .admin-manager-meta small { display:none; }
  html.is-admin-host #tab-admin-login .glass-card { width:calc(100vw - 28px) !important; }
}

/* Admin v3 — one coherent system for every manager screen */
html.is-admin-host {
  --admin-sidebar:272px;
  --admin-bg:#f3f5f9;
  --admin-card:#fff;
  --admin-ink:#101828;
  --admin-muted:#667085;
  --admin-line:#e5e9f1;
  --admin-accent:#5b5ce2;
  --admin-accent-2:#3b82f6;
  --admin-radius:18px;
}
html.is-admin-host body { background:var(--admin-bg) !important; }
html.is-admin-host #tab-admin-dashboard { min-height:100vh; background:var(--admin-bg) !important; }
html.is-admin-host .admin-shell-sidebar {
  width:var(--admin-sidebar) !important; padding:18px 14px 14px !important;
  background:linear-gradient(180deg,#111a2e 0%,#16213a 58%,#101827 100%) !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
  box-shadow:12px 0 34px rgba(15,23,42,.14) !important;
}
html.is-admin-host .admin-sidebar-brand { border-color:rgba(255,255,255,.09) !important; color:#fff !important; }
html.is-admin-host .admin-sidebar-brand strong { color:#fff !important; }
html.is-admin-host .admin-sidebar-brand small { color:#8492ad !important; }
html.is-admin-host .admin-sidebar-brand__mark { background:linear-gradient(145deg,#7c6cff,#4096ff) !important; }
html.is-admin-host .admin-nav-section-label { color:#65738f !important; }
html.is-admin-host #admin-subtabs-container .admin-subtab-button {
  min-height:42px !important; padding:10px 12px !important; color:#aeb9cc !important;
  border:1px solid transparent !important; border-radius:12px !important; font-size:12px !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button i { color:#74839f !important; }
html.is-admin-host #admin-subtabs-container .admin-subtab-button:hover {
  color:#fff !important; background:rgba(255,255,255,.065) !important; border-color:rgba(255,255,255,.07) !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button.is-active,
html.is-admin-host #admin-subtabs-container .admin-subtab-button.active {
  color:#fff !important; background:linear-gradient(135deg,#655bea,#367cf6) !important;
  border-color:rgba(255,255,255,.13) !important; box-shadow:0 10px 25px rgba(45,69,180,.38) !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button.is-active i { color:#fff !important; }
html.is-admin-host .admin-sidebar-user-card {
  color:#fff !important; background:rgba(255,255,255,.065) !important; border-color:rgba(255,255,255,.09) !important;
}
html.is-admin-host .admin-sidebar-user-card strong { color:#fff !important; }
html.is-admin-host .admin-sidebar-user-card small { color:#99a7bf !important; }

html.is-admin-host .admin-shell-main {
  width:auto !important; max-width:none !important; min-width:0 !important;
  margin-left:var(--admin-sidebar) !important; padding:24px 28px 56px !important;
}
html.is-admin-host .admin-shell-topbar {
  top:12px !important; min-height:74px !important; margin:0 0 24px !important; padding:14px 16px 14px 20px !important;
  border:1px solid var(--admin-line) !important; border-radius:18px !important;
  background:rgba(255,255,255,.92) !important; box-shadow:0 10px 28px rgba(15,23,42,.055) !important;
}
html.is-admin-host .admin-topbar-eyebrow { color:#6c63ed !important; font-size:10px !important; letter-spacing:.16em !important; }
html.is-admin-host .admin-shell-topbar h1 { margin-top:3px; color:var(--admin-ink) !important; font-size:25px !important; letter-spacing:-.035em; }
html.is-admin-host .admin-current-date { border:1px solid var(--admin-line); border-radius:12px; background:#f8fafc; padding:10px 13px; }

html.is-admin-host .admin-subtab-panel {
  width:100% !important; max-width:none !important; min-width:0 !important; margin:0 !important;
  align-items:start !important; gap:20px !important; font-size:14px !important;
}
html.is-admin-host .admin-subtab-panel:not(.hidden) { animation:adminPanelIn .18s ease-out; }
@keyframes adminPanelIn { from { opacity:.35; transform:translateY(5px); } to { opacity:1; transform:none; } }

html.is-admin-host .admin-subtab-panel > .glass-card,
html.is-admin-host .admin-subtab-panel > div > .glass-card,
html.is-admin-host .admin-subtab-panel .project-form-card,
html.is-admin-host .admin-subtab-panel .ai-admin-shell {
  border:1px solid var(--admin-line) !important; border-radius:var(--admin-radius) !important;
  background:var(--admin-card) !important; box-shadow:0 12px 32px rgba(15,23,42,.055) !important;
}
html.is-admin-host .admin-subtab-panel :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  min-height:44px !important; padding:10px 13px !important; border:1px solid #dbe1eb !important;
  border-radius:11px !important; background:#f9fafc !important; color:#182230 !important;
  font-size:13px !important; line-height:1.35 !important;
}
html.is-admin-host .admin-subtab-panel textarea { min-height:100px !important; resize:vertical; }
html.is-admin-host .admin-subtab-panel :is(input,select,textarea)::placeholder { color:#98a2b3 !important; }
html.is-admin-host .admin-subtab-panel :is(input,select,textarea):focus {
  border-color:#7c83f6 !important; background:#fff !important; outline:0 !important;
  box-shadow:0 0 0 4px rgba(91,92,226,.1) !important;
}
html.is-admin-host .admin-subtab-panel label { color:#475467 !important; font-size:11px; font-weight:850; }
html.is-admin-host .admin-subtab-panel button:not(.admin-listing-action):not(.admin-cv-delete):not(.admin-cv-view) {
  min-height:40px; border-radius:11px; font-weight:850 !important;
}

/* Dashboard */
html.is-admin-host .admin-dashboard-stats { grid-template-columns:repeat(6,minmax(0,1fr)) !important; gap:16px !important; }
html.is-admin-host .admin-stat-card {
  position:relative; min-height:146px !important; padding:17px !important; border:1px solid var(--admin-line) !important;
  border-radius:18px !important; background:linear-gradient(155deg,#fff 55%,#f6f7ff) !important;
  box-shadow:0 10px 26px rgba(15,23,42,.05) !important;
}
html.is-admin-host .admin-stat-card::before { top:16px !important; bottom:16px !important; left:0 !important; width:3px !important; border-radius:0 4px 4px 0 !important; }
html.is-admin-host .admin-stat-card__icon { width:40px !important; height:40px !important; color:#5b5ce2 !important; background:#eef0ff !important; }
html.is-admin-host .admin-dashboard-widgets { gap:16px !important; grid-template-columns:1fr 1fr 1.15fr !important; }
html.is-admin-host .admin-widget-card { min-height:230px; border:1px solid var(--admin-line); border-radius:18px; box-shadow:0 10px 26px rgba(15,23,42,.045); }
html.is-admin-host .admin-mini-row { min-height:46px; }

/* Stable desktop layouts for every two-column manager */
@media (min-width:1024px) {
  html.is-admin-host #admin-subtab-seabreeze-manager,
  html.is-admin-host #admin-subtab-projects-manager,
  html.is-admin-host #admin-subtab-hero-sections,
  html.is-admin-host #admin-subtab-listing-hero,
  html.is-admin-host #admin-subtab-agents-manager,
  html.is-admin-host #admin-subtab-google-email,
  html.is-admin-host #admin-subtab-broadcast-notifications,
  html.is-admin-host #admin-subtab-vacancy-manager,
  html.is-admin-host #admin-subtab-gallery-manager,
  html.is-admin-host #admin-subtab-ads-manager,
  html.is-admin-host #admin-subtab-site-music {
    display:grid !important; grid-template-columns:minmax(320px,390px) minmax(0,1fr) !important;
  }
  html.is-admin-host #admin-subtab-projects-manager,
  html.is-admin-host #admin-subtab-hero-sections { grid-template-columns:minmax(380px,460px) minmax(0,1fr) !important; }
  html.is-admin-host #admin-subtab-seabreeze-manager > *,
  html.is-admin-host #admin-subtab-projects-manager > *,
  html.is-admin-host #admin-subtab-hero-sections > *,
  html.is-admin-host #admin-subtab-listing-hero > *,
  html.is-admin-host #admin-subtab-agents-manager > *,
  html.is-admin-host #admin-subtab-google-email > *,
  html.is-admin-host #admin-subtab-broadcast-notifications > *,
  html.is-admin-host #admin-subtab-vacancy-manager > *,
  html.is-admin-host #admin-subtab-gallery-manager > *,
  html.is-admin-host #admin-subtab-ads-manager > *,
  html.is-admin-host #admin-subtab-site-music > * { grid-column:auto !important; width:auto !important; min-width:0 !important; }
}

/* Hero manager: no more tiny centered column or runaway portrait previews */
html.is-admin-host #admin-subtab-hero-sections { max-width:none !important; }
html.is-admin-host #admin-subtab-hero-sections #admin-hero-slides-list,
html.is-admin-host #admin-subtab-listing-hero #admin-listing-hero-list { display:grid; grid-template-columns:1fr !important; gap:12px; }
html.is-admin-host #admin-hero-slides-list > .glass-card { width:100% !important; display:flex !important; }
html.is-admin-host #admin-hero-slides-list > .glass-card > .flex:first-child > div:first-child {
  width:96px !important; height:68px !important; flex:0 0 96px !important; border-radius:11px !important; overflow:hidden;
}
html.is-admin-host #admin-hero-slides-list > .glass-card > .flex:first-child > div:first-child :is(img,video) {
  width:100% !important; height:100% !important; max-height:none !important; aspect-ratio:auto !important; object-fit:cover !important;
}
html.is-admin-host #admin-hero-preview { min-height:260px !important; max-height:360px !important; border-radius:14px !important; overflow:hidden; }

/* Users */
html.is-admin-host #admin-subtab-agents-manager { grid-template-columns:minmax(300px,350px) minmax(0,1fr) !important; }
html.is-admin-host #admin-agents-grid { gap:12px !important; }
html.is-admin-host .admin-user-card { padding:16px !important; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
html.is-admin-host .admin-user-card:hover { transform:translateY(-1px); border-color:#cbd1ff !important; box-shadow:0 15px 34px rgba(91,92,226,.09) !important; }
html.is-admin-host .admin-user-card__layout { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:14px; align-items:start; }
html.is-admin-host .admin-user-card__avatar { width:58px !important; height:58px !important; border-radius:15px !important; object-fit:cover; }
html.is-admin-host .admin-user-card__avatar--fallback { display:grid; place-items:center; color:#5b5ce2; background:#eef0ff; font-size:20px; font-weight:950; }
html.is-admin-host .admin-user-card__body { display:grid; gap:10px; }
html.is-admin-host .admin-user-card__contact { display:grid; grid-template-columns:1.3fr .8fr .9fr; gap:12px; color:#475467; font-size:11px; }
html.is-admin-host .admin-user-card__stats { display:grid; grid-template-columns:repeat(6,minmax(68px,1fr)); gap:7px; text-align:center; }
html.is-admin-host .admin-user-card__stats > span { min-width:0; padding:8px 5px !important; border:1px solid #e7e9ff !important; border-radius:10px !important; background:#fafaff !important; }
html.is-admin-host .admin-user-card__stats strong { color:#182230 !important; font-size:12px; }
html.is-admin-host .admin-user-card__stats em { display:block; margin-top:2px; color:#7c8699 !important; font-size:8px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html.is-admin-host .admin-user-card__activity { color:#8490a3 !important; font-size:9px; line-height:1.4; }
html.is-admin-host .admin-user-card__actions { display:flex; flex-direction:column; gap:7px; }

/* Listings and generated content cards */
html.is-admin-host .admin-listing-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:16px !important; }
html.is-admin-host .admin-listing-management-card { border-radius:17px !important; box-shadow:0 9px 24px rgba(15,23,42,.055) !important; }
html.is-admin-host #admin-vacancies-list > .glass-card,
html.is-admin-host #admin-gallery-list > .glass-card,
html.is-admin-host #admin-ads-list > .glass-card,
html.is-admin-host #admin-music-list > .glass-card { padding:15px !important; border-radius:15px !important; }
html.is-admin-host #admin-projects-grid,
html.is-admin-host #admin-archived-projects-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:15px !important; }

/* Single-column and specialized managers */
html.is-admin-host #admin-subtab-ai-chat,
html.is-admin-host #admin-subtab-project-inquiries,
html.is-admin-host #admin-subtab-user-profile,
html.is-admin-host #admin-subtab-seabreeze-hero,
html.is-admin-host #admin-subtab-seabreeze-info-admin,
html.is-admin-host #admin-subtab-site-settings,
html.is-admin-host #admin-subtab-projects-archive,
html.is-admin-host #admin-subtab-cvs { width:100% !important; max-width:none !important; }
html.is-admin-host #admin-subtab-ai-chat .ai-admin-shell { min-height:640px; padding:20px !important; }
html.is-admin-host #admin-subtab-ai-chat .ai-admin-grid { grid-template-columns:minmax(280px,340px) minmax(0,1fr) !important; gap:14px !important; }
html.is-admin-host #admin-subtab-project-inquiries > *,
html.is-admin-host #admin-subtab-projects-archive > * { width:100% !important; max-width:none !important; }
html.is-admin-host #admin-subtab-user-profile { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
html.is-admin-host #admin-subtab-site-settings > .glass-card { width:100% !important; max-width:980px !important; }
html.is-admin-host #admin-subtab-seabreeze-hero,
html.is-admin-host #admin-subtab-seabreeze-info-admin { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
html.is-admin-host #admin-subtab-seabreeze-hero > *,
html.is-admin-host #admin-subtab-seabreeze-info-admin > * { min-width:0 !important; grid-column:auto !important; }
html.is-admin-host #admin-subtab-seabreeze-hero :is(img,video),
html.is-admin-host #admin-subtab-seabreeze-info-admin :is(img,video) { max-height:360px; object-fit:cover; border-radius:12px; }
html.is-admin-host #admin-subtab-cvs .admin-manager-card { width:100%; }

/* Toolbars and tables */
html.is-admin-host [id$="-filter"],html.is-admin-host [id*="-search-"] { min-width:0; }
html.is-admin-host .admin-table-wrap { border-radius:0 0 var(--admin-radius) var(--admin-radius); }
html.is-admin-host table { width:100%; }
html.is-admin-host th { color:#667085 !important; background:#f8fafc !important; }
html.is-admin-host td { border-color:#edf0f4 !important; }

@media (max-width:1400px) {
  html.is-admin-host .admin-dashboard-stats { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  html.is-admin-host .admin-listing-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  html.is-admin-host .admin-user-card__stats { grid-template-columns:repeat(3,minmax(70px,1fr)); }
}
@media (max-width:1180px) {
  html.is-admin-host .admin-dashboard-widgets { grid-template-columns:1fr 1fr !important; }
  html.is-admin-host .admin-quick-links { grid-column:1/-1; }
  html.is-admin-host #admin-subtab-hero-sections #admin-hero-slides-list { grid-template-columns:1fr; }
}
@media (max-width:900px) {
  html.is-admin-host .admin-shell-main { margin-left:0 !important; padding:14px 12px 40px !important; }
  html.is-admin-host .admin-shell-sidebar { width:min(290px,88vw) !important; }
  html.is-admin-host .admin-dashboard-widgets { grid-template-columns:1fr !important; }
  html.is-admin-host .admin-user-card__layout { grid-template-columns:50px minmax(0,1fr); }
  html.is-admin-host .admin-user-card__actions { grid-column:1/-1; flex-direction:row; justify-content:flex-end; }
  html.is-admin-host #admin-subtab-ai-chat .ai-admin-grid,
  html.is-admin-host #admin-subtab-user-profile,
  html.is-admin-host #admin-subtab-seabreeze-hero,
  html.is-admin-host #admin-subtab-seabreeze-info-admin { grid-template-columns:1fr !important; }
}
@media (max-width:640px) {
  html.is-admin-host .admin-dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
  html.is-admin-host .admin-stat-card { min-height:118px !important; padding:13px !important; }
  html.is-admin-host .admin-listing-card-grid,html.is-admin-host #admin-projects-grid,html.is-admin-host #admin-archived-projects-grid { grid-template-columns:1fr !important; }
  html.is-admin-host .admin-shell-topbar h1 { font-size:20px !important; }
  html.is-admin-host .admin-user-card__contact { grid-template-columns:1fr; gap:7px; }
  html.is-admin-host .admin-user-card__stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.is-admin-host #admin-subtab-hero-sections #admin-hero-slides-list,
  html.is-admin-host #admin-subtab-listing-hero #admin-listing-hero-list { grid-template-columns:1fr; }
}

/* v4 corrections: hidden listing editor must release its grid column */
@media (min-width:1024px) {
  html.is-admin-host body:not(.admin-listing-form-is-editing) #admin-subtab-seabreeze-manager {
    grid-template-columns:minmax(0,1fr) !important;
  }
  html.is-admin-host body:not(.admin-listing-form-is-editing) #admin-subtab-seabreeze-manager > .lg\:col-span-7 {
    grid-column:1 / -1 !important; width:100% !important; max-width:none !important;
  }
}
html.is-admin-host #admin-seabreeze-list.admin-listing-card-grid {
  width:100% !important; max-width:none !important; align-items:stretch !important;
}
html.is-admin-host #admin-seabreeze-list .admin-listing-management-card { width:100% !important; min-width:0 !important; }

/* v4 visual signature: clearly separated navigation and workspace */
html.is-admin-host .admin-shell-sidebar { background:#121a2d !important; }
html.is-admin-host .admin-shell-main { background:linear-gradient(180deg,#f5f7fb 0%,#eef2f7 100%) !important; }
html.is-admin-host .admin-shell-topbar { border-left:4px solid #625bea !important; }
html.is-admin-host .admin-subtab-panel > .glass-card,
html.is-admin-host .admin-subtab-panel > div > .glass-card { box-shadow:0 8px 24px rgba(16,24,40,.07) !important; }

/* v5 — stronger navigation identity and higher workspace contrast */
html.is-admin-host {
  --admin-bg:#e9edf5;
  --admin-card:#ffffff;
  --admin-ink:#0b1220;
  --admin-muted:#526078;
  --admin-line:#d7deea;
  --admin-accent:#6d5dfc;
}
html.is-admin-host .admin-shell-sidebar {
  isolation:isolate;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 18% 8%,rgba(112,93,255,.34),transparent 28%),
    radial-gradient(circle at 92% 72%,rgba(14,165,233,.18),transparent 34%),
    linear-gradient(180deg,#0b1020 0%,#111a32 54%,#08101f 100%) !important;
  border-right:1px solid rgba(148,163,184,.16) !important;
  box-shadow:18px 0 55px rgba(7,12,25,.24) !important;
}
html.is-admin-host .admin-shell-sidebar::before {
  content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:.28;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:28px 28px;
}
html.is-admin-host .admin-sidebar-brand {
  position:relative; min-height:70px !important; padding:13px 12px !important;
  border:1px solid rgba(255,255,255,.11) !important; border-radius:18px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.035)) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 16px 32px rgba(0,0,0,.18) !important;
}
html.is-admin-host .admin-sidebar-brand__mark {
  width:44px !important; height:44px !important; border-radius:14px !important;
  background:linear-gradient(145deg,#8b7cff,#4f8dff) !important;
  box-shadow:0 10px 25px rgba(79,70,229,.42) !important;
}
html.is-admin-host .admin-sidebar-brand strong { font-size:16px !important; letter-spacing:-.02em !important; }
html.is-admin-host .admin-sidebar-brand small { color:#9eabc2 !important; }
html.is-admin-host #admin-subtabs-container.admin-subtabs { padding:3px 2px 18px !important; gap:5px !important; }
html.is-admin-host .admin-nav-section-label {
  margin:14px 10px 5px !important; color:#75839e !important; font-size:9px !important;
  letter-spacing:.18em !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button {
  position:relative; min-height:46px !important; padding:10px 13px !important;
  color:#b9c4d7 !important; border-radius:13px !important; font-size:12.5px !important;
  letter-spacing:.005em; transition:background .18s,color .18s,transform .18s,border-color .18s !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button i {
  display:grid; width:28px; height:28px; place-items:center; border-radius:9px;
  color:#8e9bb2 !important; background:rgba(255,255,255,.055); transition:.18s;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button:hover {
  color:#fff !important; transform:translateX(3px); background:rgba(255,255,255,.075) !important;
  border-color:rgba(255,255,255,.08) !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button.is-active,
html.is-admin-host #admin-subtabs-container .admin-subtab-button.active {
  color:#fff !important; transform:translateX(3px);
  background:linear-gradient(110deg,#6d5dfc 0%,#4c74f5 65%,#298eea 100%) !important;
  box-shadow:0 12px 28px rgba(48,72,190,.42),inset 0 1px rgba(255,255,255,.18) !important;
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button.is-active::after,
html.is-admin-host #admin-subtabs-container .admin-subtab-button.active::after {
  content:""; position:absolute; right:9px; width:6px; height:6px; border-radius:50%;
  background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.13);
}
html.is-admin-host #admin-subtabs-container .admin-subtab-button.is-active i,
html.is-admin-host #admin-subtabs-container .admin-subtab-button.active i { color:#fff !important; background:rgba(255,255,255,.15); }
html.is-admin-host .admin-sidebar-user-card {
  padding:12px !important; border-radius:17px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.105),rgba(255,255,255,.045)) !important;
  border-color:rgba(255,255,255,.12) !important; box-shadow:0 14px 30px rgba(0,0,0,.17) !important;
}
html.is-admin-host .admin-sidebar-avatar { background:linear-gradient(145deg,#8c7dff,#526ff5) !important;color:#fff !important; }
html.is-admin-host .admin-shell-main {
  background:
    radial-gradient(circle at 95% 3%,rgba(99,102,241,.12),transparent 27rem),
    linear-gradient(180deg,#eef2f8 0%,#e7ecf4 100%) !important;
}
html.is-admin-host .admin-shell-topbar {
  border-color:#d5dce8 !important; border-left:0 !important;
  background:rgba(255,255,255,.94) !important;
  box-shadow:0 12px 34px rgba(20,30,55,.09) !important;
}
html.is-admin-host .admin-shell-topbar::before {
  content:""; align-self:stretch; width:4px; margin:-14px 3px -14px -20px;
  border-radius:18px 0 0 18px; background:linear-gradient(#765fff,#2f8df4);
}
html.is-admin-host .admin-subtab-panel > .glass-card,
html.is-admin-host .admin-subtab-panel > div > .glass-card,
html.is-admin-host .admin-manager-card,
html.is-admin-host .admin-widget-card,
html.is-admin-host .admin-stat-card {
  border-color:#d8deea !important;
  box-shadow:0 14px 35px rgba(22,34,58,.085) !important;
}
html.is-admin-host .admin-stat-card { background:linear-gradient(150deg,#fff 48%,#f0f2ff 100%) !important; }
html.is-admin-host .admin-stat-card:nth-child(2n) { background:linear-gradient(150deg,#fff 48%,#ecf8ff 100%) !important; }
html.is-admin-host .admin-stat-card:nth-child(3n) { background:linear-gradient(150deg,#fff 48%,#f3efff 100%) !important; }
html.is-admin-host .admin-data-table th { background:#edf1f7 !important; color:#46536a !important; }
html.is-admin-host .admin-data-table tbody tr:hover { background:#f1f3ff !important; }

@media(max-width:900px){
  html.is-admin-host .admin-shell-sidebar { box-shadow:24px 0 70px rgba(2,6,23,.48) !important; }
  html.is-admin-host .admin-shell-topbar::before { margin-left:-14px; }
}
