@import url("../../themes/theme1/site.css");

/* Login + admin console (imports themes/theme1/site.css for design tokens) */
.sign-in-page {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 18px 32px;
  color: var(--text-on-dark);
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(201, 165, 92, 0.12), transparent 52%),
    var(--navy-darkest);
}
.sign-in-page[hidden] {
  display: none !important;
}
.sign-in-page__inner {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 16px;
  background: var(--navy-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  padding: 28px 28px 22px;
}
.sign-in-page__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
}
.sign-in-page__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #8a6b2f);
  color: var(--navy-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sign-in-page__name {
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.sign-in-page__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sign-in-page__title {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
}
.sign-in-page__form.login-form {
  padding: 0;
}
.sign-in-page__site-link {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}
.sign-in-page__site-anchor {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.sign-in-page__site-anchor:hover {
  text-decoration: underline;
}

/* PWA install prompt (sign-in) */
.sign-in-pwa-dialog.user-modal[open] {
  z-index: 40;
  max-width: min(92vw, 380px);
  width: min(92vw, 380px);
  border-radius: 16px;
  border: 1px solid rgba(201, 165, 92, 0.4);
  background: linear-gradient(165deg, rgba(22, 36, 58, 0.98) 0%, #0a121c 45%, #070d14 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(201, 165, 92, 0.08);
}
.sign-in-pwa-dialog .user-modal__head {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  margin-bottom: 4px;
}
.sign-in-pwa-dialog__form.user-modal__form {
  padding: 18px 20px 20px;
  gap: 16px;
}
.sign-in-pwa-dialog__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 4px 4px;
}
.sign-in-pwa-dialog__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(201, 165, 92, 0.2), rgba(201, 165, 92, 0.05));
  border: 1px solid rgba(201, 165, 92, 0.35);
  color: var(--gold);
  font-size: 1.5rem;
}
.sign-in-pwa-dialog__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(240, 236, 228, 0.88);
}
.sign-in-pwa-dialog__actions.user-modal__actions {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 165, 92, 0.1);
  justify-content: stretch;
}
.sign-in-pwa-dialog__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}
@media (max-width: 480px) {
  .sign-in-pwa-dialog.user-modal[open] {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(calc(100vw - 28px), 380px);
    max-width: min(calc(100vw - 28px), 380px);
    height: auto;
    max-height: min(88dvh, 420px);
    border-radius: 16px;
    padding-top: 0;
    padding-bottom: 0;
  }
}
html {
  height: 100%;
}
html:has(body.is-admin) {
  overflow: hidden;
  height: 100%;
}
body.is-admin {
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  color-scheme: dark;
}
.public-site[hidden] {
  display: none !important;
}
.admin-app[hidden] {
  display: none !important;
}
.admin-app:not([hidden]) {
  display: flex;
  width: 100%;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--navy-darkest);
  color: var(--text-on-dark);
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(201, 165, 92, 0.2);
  background: var(--navy-dark);
  padding: 0 0 16px;
  overflow: hidden;
}
a.admin-sidebar__brand,
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
a.admin-sidebar__brand:hover {
  background: rgba(201, 165, 92, 0.08);
}
a.admin-sidebar__brand:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: -2px;
  z-index: 1;
}
.admin-sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #8a6b2f);
  color: var(--navy-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.admin-sidebar__name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}
.admin-sidebar__sub {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-sidebar__nav {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 165, 92, 0.4) rgba(4, 8, 14, 0.85);
}
.admin-sidebar__nav::-webkit-scrollbar {
  width: 8px;
}
.admin-sidebar__nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.admin-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(201, 165, 92, 0.35);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.admin-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 165, 92, 0.55);
  background-clip: padding-box;
}
.admin-nav__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-on-dark);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-nav__btn:hover {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
}
.admin-nav__btn.is-active {
  background: rgba(201, 165, 92, 0.2);
  color: var(--gold-light);
  font-weight: 600;
}
.admin-sidebar__out {
  flex-shrink: 0;
  margin: 16px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-sidebar__out:hover {
  background: rgba(201, 165, 92, 0.15);
  color: var(--gold-light);
}
.admin-frame {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #0a1018;
}
.admin-header {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
  box-sizing: border-box;
  min-height: 64px;
  padding: env(safe-area-inset-top, 0px) calc(8px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(201, 165, 92, 0.2);
  background: var(--navy-dark);
  flex-shrink: 0;
  z-index: 50;
  position: relative;
}
.admin-header__left {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 10px;
  align-self: center;
}
.admin-header__tail {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 64px;
  align-self: stretch;
}
.admin-header__iconnav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 4px 0 0;
  border-right: 1px solid rgba(201, 165, 92, 0.2);
  margin-right: 2px;
}
.admin-header__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(232, 226, 216, 0.88);
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.admin-header__iconbtn:hover {
  background: rgba(201, 165, 92, 0.1);
  border-color: rgba(201, 165, 92, 0.5);
  color: var(--gold-light);
}
.admin-header__iconbtn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.admin-header__iconbtn.is-active {
  color: var(--gold);
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.12);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.15);
}
.admin-header__site-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex-shrink: 0;
}
.admin-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(201, 165, 92, 0.45);
  background: #141c28;
  color: #f0ece4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-header__btn:hover {
  background: #1a2535;
  border-color: rgba(201, 165, 92, 0.65);
  color: #fff;
}
.admin-header__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.admin-header__btn--gold {
  color: #0a0f16;
  background: linear-gradient(180deg, #f0d896 0%, #c9a55c 50%, #a8863e 100%);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 4px rgba(0, 0, 0, 0.25);
}
.admin-header__btn--gold:hover {
  color: #05080c;
  background: linear-gradient(180deg, #f5e4b0 0%, #d4b86a 50%, #b8944a 100%);
  border-color: rgba(0, 0, 0, 0.4);
}
.admin-header__right {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}
.admin-profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-right: 0;
}
.admin-profile__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-profile__trigger:hover .admin-profile__avatar,
.admin-profile__trigger:focus-visible .admin-profile__avatar {
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.45);
}
.admin-profile__trigger:focus-visible {
  outline: none;
}
.admin-profile__trigger[aria-expanded="true"] .admin-profile__avatar {
  box-shadow: 0 0 0 2px var(--gold);
}
.admin-profile__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 165, 92, 0.25);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(201, 165, 92, 0.35);
  box-sizing: border-box;
  pointer-events: none;
}
.admin-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 1px);
  margin-top: 0;
  min-width: 220px;
  max-width: min(90vw, 280px);
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: var(--navy-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 80;
  box-sizing: border-box;
}
.admin-profile-dropdown[hidden] {
  display: none !important;
}
.admin-profile-dropdown__user {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-profile__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  word-wrap: break-word;
}
.admin-profile__role {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-profile-dropdown__signout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 16px 14px;
  border: none;
  border-radius: 0 0 9px 9px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.admin-profile-dropdown__signout:hover,
.admin-profile-dropdown__signout:focus-visible {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
  outline: none;
}
.admin-main {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 24px calc(16px + env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 165, 92, 0.45) rgba(4, 8, 14, 0.9);
}
.admin-main::-webkit-scrollbar {
  width: 8px;
}
.admin-main::-webkit-scrollbar-track {
  background: rgba(4, 8, 14, 0.75);
  border-radius: 0 4px 4px 0;
}
.admin-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 165, 92, 0.35) 0%, rgba(168, 134, 62, 0.45) 100%);
  border-radius: 4px;
  border: 2px solid rgba(4, 8, 14, 0.75);
  background-clip: padding-box;
}
.admin-main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(220, 190, 120, 0.55) 0%, rgba(201, 165, 92, 0.55) 100%);
  background-clip: padding-box;
}
.admin-panel[hidden] {
  display: none;
}
.admin-panel {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.admin-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 0.95rem + 1.4vw, 1.9rem);
  color: var(--white);
  margin: 0 0 12px;
}
.admin-panel__lede {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.settings-general__h {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.admin-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.admin-stat {
  padding: 20px;
  border-radius: 10px;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.15);
}
.admin-stat__val {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}
.admin-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.admin-stat__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
  opacity: 0.9;
}
.admin-statgrid--overview {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.admin-stat--locked {
  opacity: 0.58;
}
.admin-stat--locked .admin-stat__val {
  color: var(--text-muted);
  font-weight: 500;
}
.overview-charts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.overview-chart {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.14);
  box-sizing: border-box;
  min-width: 0;
}
.overview-chart__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.overview-chart__empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.overview-chart--combined .overview-chart__section + .overview-chart__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.overview-chart--combined .overview-chart__section .overview-chart__title {
  margin-bottom: 10px;
}
.overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.overview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.overview-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  font-style: normal;
}
.overview-stack {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
}
.overview-stack__seg {
  min-width: 0;
  height: 100%;
  transition: width 0.4s ease;
}
.overview-stack__seg--lead {
  background: linear-gradient(90deg, #5a6a8a, #8fa0c8);
}
.overview-stack__seg--client {
  background: linear-gradient(90deg, #2d6a45, #5cb87a);
}
.overview-stack__seg--pub {
  background: linear-gradient(90deg, #7a6630, #c9a55c);
}
.overview-stack__seg--draft {
  background: rgba(180, 180, 190, 0.35);
}
.overview-hbar {
  margin-bottom: 11px;
}
.overview-hbar:last-child {
  margin-bottom: 0;
}
.overview-hbar__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12px;
}
.overview-hbar__label {
  color: var(--text-on-dark);
  font-weight: 500;
}
.overview-hbar__val {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.overview-hbar__track {
  height: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.overview-hbar__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(201, 165, 92, 0.2), #c9a55c);
  transition: width 0.4s ease;
  max-width: 100%;
}
.overview-hbar__fill--muted {
  background: rgba(160, 170, 190, 0.35);
}
.admin-header__navdrawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 8px 0 0;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(232, 226, 216, 0.88);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.admin-header__navdrawer-toggle:hover {
  background: rgba(201, 165, 92, 0.1);
  border-color: rgba(201, 165, 92, 0.5);
  color: var(--gold-light);
}
.admin-header__navdrawer-toggle:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.admin-header__brand {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2.8vw, 1.32rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
a.admin-header__brand:hover {
  color: var(--gold-light);
}
a.admin-header__brand:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}
.admin-footer-nav {
  display: none;
  box-sizing: border-box;
  flex-shrink: 0;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  min-height: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(201, 165, 92, 0.22);
  background: rgba(6, 10, 18, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.admin-footer-nav__btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 72px;
  margin: 0;
  padding: 6px 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(232, 226, 216, 0.72);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.admin-footer-nav__btn:hover {
  color: var(--gold-light);
  background: rgba(201, 165, 92, 0.08);
}
.admin-footer-nav__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 1px;
}
.admin-footer-nav__btn.is-active {
  color: var(--gold);
  background: rgba(201, 165, 92, 0.12);
}
.admin-footer-nav__btn--menu {
  flex: 1 1 0;
  min-width: 0;
  max-width: 72px;
}
.admin-mobile-more-dialog.user-modal[open] {
  z-index: 220;
}
.wd-context-sheet__mount {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
}
.admin-mobile-more__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 12px;
  max-height: min(64dvh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-mobile-more__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  background: transparent;
  color: #f0ece4;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease;
}
.admin-mobile-more__row:hover {
  background: rgba(201, 165, 92, 0.08);
}
.admin-mobile-more__row:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: -2px;
}
.admin-mobile-more__row--danger {
  color: #f0b0a8;
}
.admin-mobile-more__ico {
  width: 22px;
  text-align: center;
  color: rgba(201, 165, 92, 0.85);
  flex-shrink: 0;
}
.admin-mobile-more__row--danger .admin-mobile-more__ico {
  color: rgba(240, 160, 150, 0.9);
}
.admin-mobile-more__list--tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 14px max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-right, 0px));
  max-height: min(70dvh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  margin: 0;
  padding: 12px 6px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.22);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row:hover {
  background: rgba(201, 165, 92, 0.12);
}
.admin-mobile-more__list--tiles .admin-mobile-more__ico {
  width: auto;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(248, 243, 234, 0.92);
  flex-shrink: 0;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row span {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row--danger {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border-color: rgba(200, 100, 90, 0.35);
}
.admin-mobile-more__list--tiles .admin-mobile-more__row--danger span {
  display: inline;
  white-space: normal;
}
.admin-mobile-more-dialog .user-modal__head {
  box-sizing: border-box;
  padding: 14px max(14px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  background: rgba(0, 0, 0, 0.12);
}
.admin-mobile-more-dialog .user-modal__head .user-modal__title {
  padding-top: 2px;
}
.admin-nav-backdrop {
  display: none;
}
@media (max-width: 900px) {
  .admin-app:not([hidden]) {
    flex-direction: column;
    min-height: 0;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    position: relative;
    --admin-footer-h: 58px;
  }
  .admin-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 180;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
  .admin-app--nav-open .admin-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .admin-header__navdrawer-toggle {
    display: inline-flex;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, calc(100vw - 48px));
    max-width: 300px;
    max-height: none;
    height: 100dvh;
    height: 100svh;
    flex-shrink: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: env(safe-area-inset-top, 0px) 0 calc(16px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(201, 165, 92, 0.22);
    border-bottom: none;
    transform: translate3d(-102%, 0, 0);
    transition: transform 0.22s ease;
    z-index: 200;
    overflow: hidden;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
    overscroll-behavior: contain;
  }
  .admin-app--nav-open .admin-sidebar {
    transform: translate3d(0, 0, 0);
  }
  .admin-sidebar__brand {
    border-bottom: 1px solid rgba(201, 165, 92, 0.15);
    min-height: 56px;
    padding: 0 16px;
    flex: 0 0 auto;
  }
  .admin-sidebar__nav {
    flex: 1 1 0;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 0;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav__btn {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-start;
  }
  .admin-sidebar__out {
    margin: 12px 12px 0;
    flex: 0 0 auto;
  }
  .admin-frame {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
  }
  .admin-header {
    position: relative;
    flex-wrap: nowrap;
  }
  .admin-header__site-btns,
  .admin-header__iconnav {
    display: none !important;
  }
  .admin-header__brand {
    display: block;
  }
  .admin-header__left {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }
  .admin-header__tail {
    margin-left: auto;
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    min-height: 0;
  }
  .admin-header__iconnav {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .admin-main {
    padding-bottom: calc(24px + var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
  }
  .admin-footer-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 170;
  }
  .admin-mobile-more-dialog.user-modal[open] {
    left: 0;
    top: auto;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    border-radius: 14px 14px 0 0;
    max-height: min(72dvh, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #panel-business .business-panel__head .business-panel__toolbar,
  #panel-properties .business-panel__head .business-panel__toolbar,
  #panel-settings .settings-panel__head .business-panel__toolbar,
  #panel-users .users-panel-head,
  #panel-contacts .users-panel-head,
  #panel-blog .users-panel-head,
  #panel-profile .users-panel-head {
    position: sticky;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 24, 0.92) 28%, #0a1018 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  #panel-webdesign .business-panel__head.wd-panel-head {
    position: sticky;
    top: 0;
    z-index: 35;
    margin-bottom: 6px;
    padding-bottom: 4px;
    background: rgba(10, 16, 24, 0.95);
    border-bottom: 1px solid rgba(201, 165, 92, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  #panel-webdesign .wd-add-item-slot:not([hidden]) {
    display: block;
    position: sticky;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    z-index: 32;
    padding: 10px 0 4px;
    margin: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 24, 0.9) 35%, #0a1018 100%);
  }
  #panel-properties .prop-panel-head .admin-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-business .business-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-contacts .contacts-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-users .team-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-blog .blog-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-profile .profile-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-settings .settings-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-home .admin-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
    margin: 0 0 10px;
  }
  #panel-business .business-panel__head,
  #panel-properties .prop-panel-head,
  #panel-webdesign .business-panel__head.wd-panel-head.settings-panel__head,
  #panel-users .team-panel-head,
  #panel-contacts .contacts-panel-head,
  #panel-blog .blog-panel-head,
  #panel-profile .profile-panel-head,
  #panel-settings .settings-panel__head {
    margin-bottom: 8px;
    gap: 8px 10px;
  }
  /* Brand / properties / settings: title row + actions; Brand section select lives in .business-form (see Team / Contacts). */
  #panel-business .business-panel__head,
  #panel-properties .prop-panel-head,
  #panel-settings .settings-panel__head {
    flex-wrap: nowrap;
    align-items: center;
  }
  #panel-business .business-form > .admin-tabs-mobile-select-wrap--biz {
    display: block;
    margin: 0 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #panel-business .business-form > .admin-tabs-mobile-select-wrap--biz .biz-panel-section-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
  }
  #panel-business .business-form > .admin-tabs-mobile-select-wrap--biz .biz-panel-section-field .admin-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 13px;
    padding: 8px 26px 8px 10px;
    line-height: 1.25;
    box-sizing: border-box;
  }
  #panel-business .business-panel__head .business-panel__toolbar,
  #panel-properties .prop-panel-head .business-panel__toolbar,
  #panel-settings .settings-panel__head .business-panel__toolbar {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }
  #panel-business .business-panel__title {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
  #panel-properties .prop-panel-head .admin-panel__title,
  #panel-settings .settings-panel__head .admin-panel__title {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
  .admin-tabs-mobile-select-wrap--settings {
    display: block;
    margin: 0 0 8px;
  }
  #panel-properties:not(.panel-properties--products) .admin-tabs-mobile-select-wrap--prop {
    display: block;
    margin: 0 0 8px;
  }
  #panel-properties #propListToolbar {
    display: none !important;
  }
  #panel-properties.panel-properties--products .admin-tabs-mobile-select-wrap--prop {
    display: none !important;
  }
  #panel-business .business-form > .admin-tabs[role="tablist"] {
    display: none !important;
  }
  #panel-properties:not(.panel-properties--products) .prop-shell > .admin-tabs.prop-tabs {
    display: none !important;
  }
  #panel-settings .settings-form > .admin-tabs[role="tablist"] {
    display: none !important;
  }
  #panel-contacts .contacts-shell > .admin-tabs.contacts-tabs {
    display: none !important;
  }
  #panel-contacts .admin-tabs-mobile-select-wrap--contacts {
    display: block;
    margin: 0 0 8px;
  }
  #panel-users .team-shell > .admin-tabs.team-role-tabs {
    display: none !important;
  }
  #panel-users .admin-tabs-mobile-select-wrap--team {
    display: block;
    margin: 0 0 8px;
  }
  #panel-blog .wd-card--blog .wd-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  #panel-blog .wd-card--blog .wd-card__head--blog {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  #panel-blog .wd-card--blog .blog-card__ex {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 2px;
  }
  #panel-properties .wd-card--prop .wd-card__prop-meta {
    display: none;
  }
  #panel-properties .wd-card--prop .wd-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  #panel-properties .wd-card--prop .wd-card__head {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
@media (min-width: 901px) {
  .admin-app--nav-open .admin-sidebar {
    transform: none;
  }
  .admin-app--nav-open .admin-nav-backdrop {
    display: none !important;
  }
  #panel-blog .wd-card--blog .blog-card__ex {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 2px;
  }
}
.login-form {
  padding: 24px 28px 28px;
}
.login-form__title {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}
.login-form__err {
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid rgba(200, 100, 100, 0.5);
  color: #f0b0b0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
}
.login-form code {
  color: var(--gold-light);
  font-size: 12px;
}
.login-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  margin-top: 12px;
}
.login-label:first-of-type {
  margin-top: 0;
}
.login-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: var(--navy-darkest);
  color: var(--text-on-dark);
  font-size: 15px;
}
.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-pale);
}
.login-form__actions {
  margin-top: 22px;
}

/* â€”â€” Admin: business form (tabbed) â€”â€” */
.business-form {
  margin-top: 8px;
  max-width: 100%;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.14);
  margin-bottom: 20px;
  padding-bottom: 0;
}
.admin-tabs__tab {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 165, 92, 0.1);
  border-bottom: none;
  color: rgba(240, 236, 228, 0.55);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.admin-tabs__tab:hover {
  color: var(--text-on-dark);
  background: rgba(201, 165, 92, 0.1);
  border-color: rgba(201, 165, 92, 0.18);
}
.admin-tabs__tab.is-active {
  color: var(--gold);
  background: var(--navy-card);
  border-color: rgba(201, 165, 92, 0.32);
  border-bottom: 1px solid var(--navy-card);
  box-shadow: 0 1px 0 rgba(201, 165, 92, 0.22) inset;
}
.admin-tabpanel {
  display: block;
  padding: 0 0 8px;
}
.admin-tabpanel[hidden] {
  display: none !important;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-tabs__tab {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
  }
}
.admin-field--full,
.admin-form-grid .admin-field--full {
  grid-column: 1 / -1;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.admin-field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.admin-field__hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.admin-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  justify-items: center;
  width: 100%;
}
.admin-image-block {
  min-width: 0;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .admin-image-pair {
    grid-template-columns: 1fr;
  }
  .admin-image-block--favicon {
    justify-self: stretch;
  }
}
/* Site logo / Favicon — compact dark-styled upload areas */
.admin-media-card {
  min-width: 0;
}
.admin-media-card__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px 2px;
}
.admin-media-card__outer {
  background: rgba(12, 20, 32, 0.55);
  border: 1px solid rgba(201, 165, 92, 0.28);
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.admin-media-card__dashed {
  position: relative;
  width: 100%;
  max-width: min(200px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 2px solid rgba(201, 165, 92, 0.45);
  border-radius: 8px;
  background: linear-gradient(165deg, #2a3a50 0%, #1e2c3e 45%, #162536 100%);
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.admin-media-card__dashed:hover {
  border-color: rgba(232, 200, 130, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(201, 165, 92, 0.2),
    0 6px 22px rgba(0, 0, 0, 0.4);
}
/* Fill the square: drop target covers full dashed area (click + drag) */
.admin-media-card__dashed .admin-dropzone--card {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 7px;
}
/* Hint behind; invisible file input covers full square (reliable browse on click) */
.admin-media-card__dashed .admin-dropzone--card .admin-dropzone__emptyui {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  box-sizing: border-box;
}
.admin-media-card__dashed .admin-dropzone--card .admin-dropzone__file {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  clip: auto;
  white-space: nowrap;
}
.admin-media-card__dashed .admin-dropzone__emptitle {
  font-size: 12px;
  font-weight: 700;
  color: #f6f1e8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.admin-media-card__dashed .admin-dropzone__emptype {
  font-size: 10px;
  max-width: 11rem;
  line-height: 1.25;
  color: rgba(230, 222, 208, 0.88);
  font-weight: 500;
}
.admin-media-card__preview {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  background: rgba(6, 10, 16, 0.92);
  box-sizing: border-box;
  border-radius: 7px;
}
.admin-media-card__img {
  display: block;
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
}
.admin-media-card__x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 8px;
  background: rgba(4, 8, 14, 0.85);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.admin-media-card__x:hover,
.admin-media-card__x:focus {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
  border-color: rgba(201, 165, 92, 0.45);
  outline: none;
  transform: scale(1.04);
}
.admin-dropzone--card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 7px;
}
.admin-dropzone__emptyui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: var(--text-muted);
  pointer-events: none;
  padding: 4px 8px;
}
.admin-media-card__dashed .admin-dropzone--card .admin-dropzone__ico {
  color: #e8c880;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  margin-bottom: 0;
  opacity: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.admin-dropzone--card .admin-dropzone__ico {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 2px;
  opacity: 0.88;
}
.admin-dropzone__emptitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.3;
}
.admin-dropzone__emptype {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 220px;
}
.admin-media-card__dashed .admin-dropzone--card:hover,
.admin-media-card__dashed .admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.12);
}
.admin-dropzone--card:hover,
.admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.06);
}
.admin-media-card__dashed .admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.18);
}
.admin-dropzone--card.is-dragover {
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.45);
  outline: none;
}
.admin-dropzone--card.is-error {
  background: rgba(196, 92, 74, 0.12);
}
.admin-media-card.is-filled .admin-dropzone--card[hidden] {
  display: none !important;
}
.admin-image-slot {
  min-width: 0;
}
.admin-dropzone[hidden] {
  display: none !important;
}
.admin-dropzone {
  position: relative;
  box-sizing: border-box;
  border: 1.5px dashed rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.2) 0%, rgba(12, 20, 32, 0.55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0;
  margin: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.admin-dropzone--logo {
  width: 100%;
  min-height: 128px;
}
.admin-dropzone--logo .admin-dropzone__hit {
  min-height: 128px;
}
.admin-dropzone--favicon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
@media (min-width: 641px) {
  .admin-image-block--favicon {
    justify-self: center;
  }
}
.admin-dropzone:hover {
  border-color: rgba(201, 165, 92, 0.65);
  background: linear-gradient(145deg, rgba(201, 165, 92, 0.07) 0%, rgba(0, 0, 0, 0.15) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(201, 165, 92, 0.12);
}
.admin-dropzone.is-dragover {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(201, 165, 92, 0.1);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.2);
  transform: scale(1.01);
}
.admin-dropzone.is-busy {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.2);
}
.admin-dropzone.is-error {
  border-color: #c45c4a;
  background: rgba(196, 92, 74, 0.08);
  animation: admin-drop-shake 0.45s ease;
}
@keyframes admin-drop-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.admin-dropzone:focus-within {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.25);
}
.admin-dropzone__hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 11px;
  outline: none;
}
.admin-dropzone--favicon .admin-dropzone__hit {
  min-height: 88px;
}
.admin-dropzone__file {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-dropzone__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.admin-dropzone:hover .admin-dropzone__visual,
.admin-dropzone.is-dragover .admin-dropzone__visual {
  color: #e4cf96;
  opacity: 1;
  transform: scale(1.04);
}
.admin-dropzone__plus .admin-dropzone__cell {
  stroke: rgba(201, 165, 92, 0.4);
  stroke-width: 1.25;
}
.admin-dropzone:hover .admin-dropzone__plus .admin-dropzone__cell,
.admin-dropzone.is-dragover .admin-dropzone__plus .admin-dropzone__cell {
  stroke: rgba(201, 165, 92, 0.75);
}
.admin-image-preview[hidden] {
  display: none !important;
}
.admin-image-preview {
  margin-top: 12px;
}
.admin-image-preview__box {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  vertical-align: top;
}
.admin-image-preview__img {
  display: block;
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.admin-image-preview--sm {
  margin-top: 0;
  align-self: start;
}
.admin-image-pair .admin-image-block--favicon .admin-image-preview--sm {
  margin-top: 12px;
}
.admin-image-preview--sm .admin-image-preview__img {
  max-width: 48px;
  max-height: 48px;
}
.admin-image-preview--sm .admin-image-preview__box {
  padding: 8px;
}
.admin-image-preview__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.admin-image-preview__dismiss::before,
.admin-image-preview__dismiss::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.admin-image-preview__dismiss::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.admin-image-preview__dismiss::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.admin-image-preview__dismiss:hover,
.admin-image-preview__dismiss:focus {
  background: #a94442;
  transform: scale(1.05);
  outline: none;
}
.admin-input,
.admin-textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: #080e16;
  color: var(--text-on-dark);
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
.admin-input::placeholder,
.admin-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}
.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-pale);
}
.admin-input[aria-invalid="true"] {
  border-color: #c45c5c;
  box-shadow: 0 0 0 1px rgba(196, 92, 92, 0.4);
}
.admin-input[aria-invalid="true"]:focus {
  border-color: #e07070;
  box-shadow: 0 0 0 1px rgba(224, 112, 112, 0.45);
}
.admin-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.admin-textarea--code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.admin-palette {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}
.admin-color-row:last-of-type {
  border-bottom: none;
}
.admin-color-row__label {
  flex: 0 0 160px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-on-dark);
}
.admin-color-swatch {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 6px;
  background: #080e16;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-color-hex {
  max-width: 200px;
  flex: 1 1 140px;
}
/* Business — title + save top row */
.business-panel__head,
.settings-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}
/* Web design toolbar: one row [title | theme + pages] + status (right) */
.business-panel__head.wd-panel-head.settings-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  flex-wrap: unset !important;
  justify-content: stretch;
}
.business-panel__head.wd-panel-head .wd-panel-head__left .admin-panel__title {
  align-self: center;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
  font-size: clamp(1.35rem, 1.2rem + 0.9vw, 1.85rem);
}
.business-panel__title {
  margin: 0;
}
.business-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  margin-left: auto;
  max-width: 100%;
}
.business-panel__bf-status {
  margin: 0;
  text-align: right;
  max-width: min(100%, 320px);
}
#panel-business .business-panel__head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  min-width: 0;
  box-sizing: border-box;
}
#panel-business .biz-brand-panel-head.business-panel__head {
  margin-bottom: 12px;
}
#panel-business .business-panel__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-business .biz-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-business .business-panel__bf-status {
  max-width: min(160px, 40vw);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-business .bf-panel-savebtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#panel-business .bf-panel-savebtn .fas {
  font-size: 1rem;
}
.admin-tabs-mobile-select-wrap {
  display: none;
}
.admin-tabs-mobile-select-wrap__field {
  margin-bottom: 0;
}
#panel-business .biz-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
#panel-business .biz-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-business .biz-panel-title__text {
  min-width: 0;
}
/* Sticky toolbars use z-index; keep titles above when the row is tight (narrow flex). */
#panel-business .business-panel__head .admin-panel__title,
#panel-properties .prop-panel-head .admin-panel__title,
#panel-settings .settings-panel__head .admin-panel__title {
  position: relative;
  z-index: 31;
}
.wd-panel-head {
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px 14px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.wd-panel-head .business-panel__toolbar {
  flex-shrink: 0;
  margin-left: 0;
  justify-self: end;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 0;
}
.wd-panel-head .business-panel__bf-status {
  max-width: min(200px, 28vw);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-panel-head__left {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 20px;
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.wd-panel-head__left::-webkit-scrollbar {
  height: 6px;
}
.wd-panel-head__left::-webkit-scrollbar-thumb {
  background: rgba(201, 165, 92, 0.25);
  border-radius: 3px;
}
/* Theme + pages: label + control on one line; theme gets more width, page select stays compact */
.wd-panel-head__theme-pages {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 18px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: clamp(300px, 42vw, 640px);
  box-sizing: border-box;
}
#panel-webdesign .wd-panel-head__theme-pages {
  flex: 1 1 auto;
  max-width: min(100%, clamp(320px, 56vw, 720px));
}
.wd-panel-head__theme-pages .wd-toolbar-field {
  flex-direction: row;
  align-items: center;
  gap: 8px 10px;
}
.wd-panel-head__theme-pages .wd-toolbar-field__label {
  white-space: nowrap;
  line-height: 1;
  margin: 0;
}
.wd-panel-head__theme-pages .wd-toolbar-field--theme {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(340px, 48vw);
}
.wd-panel-head__theme-pages .wd-theme-launch {
  max-width: 100%;
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage {
  overflow: hidden;
  align-self: center;
  line-height: 1;
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-select {
  flex: 0 1 auto;
  min-width: clamp(96px, 10vw, 140px);
  width: min(200px, 22vw);
  max-width: min(240px, 30vw);
}
/* Website — page selector: stronger frame; manage button matches theme launcher */
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row select.wd-toolbar-select.admin-input {
  min-height: 40px;
  border-width: 2px;
  border-color: rgba(201, 165, 92, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row select.wd-toolbar-select.admin-input:hover {
  border-color: rgba(201, 165, 92, 0.62);
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row select.wd-toolbar-select.admin-input:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(201, 165, 92, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-width: 2px;
  border-color: rgba(201, 165, 92, 0.5);
  border-radius: 8px;
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.16), rgba(201, 165, 92, 0.04));
  color: rgba(248, 243, 234, 0.95);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost:hover:not(:disabled) {
  border-color: rgba(201, 165, 92, 0.68);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.26), rgba(201, 165, 92, 0.08));
  color: #fff;
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.32);
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage .fas {
  font-size: 15px;
}
.wd-panel-head__center {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}
.wd-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}
.wd-toolbar-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.wd-toolbar-select {
  min-width: 72px;
  max-width: min(28vw, 168px);
  width: 100%;
}
.wd-toolbar-icon-btn {
  flex-shrink: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-sizing: border-box;
}
.wd-toolbar-icon-btn .fas {
  font-size: 14px;
}
.wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.wd-toolbar-field--pages-row .wd-toolbar-select {
  flex: 0 1 auto;
  min-width: 96px;
  width: min(28vw, 200px);
  max-width: min(36vw, 240px);
}
/* Web design: theme launcher — icon + name in one bordered control */
.wd-theme-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px 0 10px;
  min-height: 36px;
  max-width: min(48vw, 340px);
  min-width: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.38);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.16), rgba(201, 165, 92, 0.04));
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}
.wd-theme-launch:hover:not(:disabled) {
  border-color: rgba(201, 165, 92, 0.52);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.22), rgba(201, 165, 92, 0.07));
}
.wd-theme-launch:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 3px;
}
.wd-theme-launch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wd-theme-launch__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.wd-theme-launch__ico {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(240, 232, 216, 0.92);
  line-height: 1;
}
.wd-theme-launch__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f4efe6;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#panel-webdesign .user-modal.wd-item-modal.wd-theme-picker-dialog[open] {
  max-width: min(560px, 94vw);
  width: min(560px, 94vw);
  max-height: min(88vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.wd-theme-picker-dialog__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(88vh, 640px);
  overflow: hidden;
}
.wd-theme-picker-dialog__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.wd-theme-picker-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  max-height: min(52vh, 400px);
  overflow-y: auto;
  margin-top: 10px;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.wd-theme-picker-tile {
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  background: rgba(4, 10, 20, 0.35);
}
.wd-theme-picker-tile__title {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
.wd-theme-picker-tile__sub {
  font-size: 12px;
  line-height: 1.4;
  margin-top: -4px;
}
.wd-theme-picker-tile__apply {
  margin-top: auto;
  width: 100%;
}
.wd-theme-picker-tile__apply--applied {
  font-weight: 600;
  color: rgba(236, 228, 210, 0.98);
  background: rgba(46, 72, 58, 0.55);
  border: 1px solid rgba(120, 188, 152, 0.45);
  box-shadow: inset 0 0 0 1px rgba(120, 188, 152, 0.12);
  cursor: default;
}
.wd-theme-picker-tile__apply--applied:hover {
  background: rgba(46, 72, 58, 0.55);
  border-color: rgba(120, 188, 152, 0.45);
}
.wd-theme-picker-tile:has(.wd-theme-picker-tile__apply--applied) {
  border-color: rgba(120, 188, 152, 0.35);
  background: rgba(46, 72, 58, 0.22);
}
/* Block exists on another page layout — dim panel (Header/Footer never get this) */
.wd-panel--not-on-page {
  position: relative;
  min-height: 120px;
}
.wd-panel--not-on-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.78);
  border-radius: 8px;
  z-index: 4;
  pointer-events: none;
}
.wd-panel--not-on-page::before {
  content: "Hidden on the public page — use Show (eye) in the block list above to publish again.";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  max-width: 92%;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(232, 226, 216, 0.92);
  pointer-events: none;
}
@media (max-width: 900px) {
  .wd-panel-head .business-panel__toolbar {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .business-panel__toolbar {
    width: 100%;
    margin-left: 0;
  }
  .wd-panel-head .business-panel__toolbar {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .business-panel__bf-status {
    flex: 1 1 100%;
    text-align: left;
    max-width: none;
  }
  .wd-panel-head .business-panel__bf-status {
    flex: 0 1 auto;
    text-align: right;
    max-width: min(160px, 42vw);
  }
}
@media (max-width: 640px) {
  .admin-header__iconbtn {
    width: 44px;
    height: 44px;
  }
  .admin-profile__trigger {
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    box-sizing: border-box;
  }
  .wd-toolbar-icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .business-panel__head.wd-panel-head.settings-panel__head {
    grid-template-columns: 1fr;
  }
  .wd-panel-head .business-panel__toolbar {
    justify-self: stretch;
    width: 100%;
    justify-content: flex-start;
  }
  .wd-panel-head__left {
    flex-wrap: wrap;
  }
  .wd-panel-head__theme-pages {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field__label {
    white-space: normal;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field--theme {
    max-width: 100%;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .wd-theme-launch {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }
}
/* Website module: one compact toolbar row on narrow screens (title + theme icon + page select + manage) */
@media (max-width: 900px) {
  #panel-webdesign .wd-panel-head .business-panel__bf-status {
    max-width: min(140px, 26vw);
  }
  #panel-webdesign .wd-panel-head__left {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px 10px;
    min-width: 0;
  }
  #panel-webdesign .wd-panel-head__left .admin-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    flex: 0 0 auto;
    align-self: flex-end;
    min-width: 0;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.15;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #panel-webdesign .wd-panel-head__theme-pages {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: 8px;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field {
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
    min-width: 0;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--theme {
    flex: 0 0 auto;
    max-width: none;
    position: relative;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--pages-row {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  #panel-webdesign .wd-shell {
    margin-top: 4px;
  }
  #panel-webdesign .wd-theme-launch {
    width: 44px;
    min-width: 44px;
    height: 44px;
    max-width: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  #panel-webdesign .wd-theme-launch__inner {
    gap: 0;
    justify-content: center;
    max-width: none;
  }
  #panel-webdesign .wd-theme-launch__label {
    display: none !important;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-select {
    min-width: 0;
    width: 0;
    flex: 1 1 clamp(4.5rem, 34vw, 15rem);
    max-width: 100%;
  }
  #panel-webdesign .wd-panel-head__theme-slot:empty {
    display: none;
  }
  #wdMobileContextMount .wd-panel-head__theme-pages {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  #wdMobileContextMount .wd-toolbar-field {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }
  #wdMobileContextMount .wd-toolbar-field__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip-path: none;
    clip: auto;
    white-space: normal;
    border: 0;
  }
  #wdMobileContextMount .wd-theme-launch {
    width: 100%;
    max-width: none;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    box-sizing: border-box;
  }
  #wdMobileContextMount .wd-theme-launch__inner {
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
  }
  #wdMobileContextMount .wd-theme-launch__label {
    display: inline !important;
    min-width: 0;
  }
  #wdMobileContextMount .wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }
  #wdMobileContextMount .wd-toolbar-field--pages-row .wd-toolbar-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }
}
.business-form__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 165, 92, 0.2);
}
.bf-status {
  margin: 0;
  font-size: 14px;
  min-height: 1.25em;
  color: var(--text-muted);
}
.bf-status.is-ok {
  color: #8ecf9a;
}
.bf-status.is-err {
  color: #f0a0a0;
}
.business-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* â€”â€” Access: users table & role matrix â€”â€” */
.access-mount {
  min-height: 48px;
}
.access-table-wrap,
.access-users-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  background: #080e16;
}
.access-matrix {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}
.access-matrix thead {
  display: table-header-group;
}
.access-matrix tbody {
  display: table-row-group;
}
.access-matrix tr {
  display: table-row;
}
.access-matrix th,
.access-matrix td {
  display: table-cell;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  color: var(--text-on-dark);
  vertical-align: middle;
}
.access-matrix th {
  font-weight: 600;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.25);
}
.access-matrix th:first-child,
.access-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #0a1018;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
}
.access-matrix tr:last-child td {
  border-bottom: none;
}
.access-matrix__rowhead {
  font-weight: 500;
  color: var(--text-on-dark);
  white-space: nowrap;
  min-width: 120px;
}
/* Do not use display:flex on <td> — it breaks table layout and stacks cells. */
.access-matrix td.access-toggle {
  text-align: center;
  vertical-align: middle;
}
.access-matrix td.access-toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
}
.access-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.access-toggle__ui {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #2a2f38;
  border: 1px solid rgba(201, 165, 92, 0.25);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.access-toggle__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  transition: var(--transition);
}
.access-toggle input:checked + .access-toggle__ui {
  background: rgba(201, 165, 92, 0.35);
  border-color: var(--gold);
}
.access-toggle input:checked + .access-toggle__ui::after {
  left: 20px;
  background: var(--gold);
}
.access-toggle input:focus-visible + .access-toggle__ui {
  box-shadow: 0 0 0 2px var(--gold-pale);
}
.access-toggle--disabled {
  pointer-events: none;
  opacity: 0.45;
}
.access-users__role {
  min-width: 160px;
  max-width: 200px;
}
.access-users__user {
  font-weight: 500;
  color: var(--white);
}
.access-users-wrap .access-matrix td {
  line-height: 1.3;
}
.access-users__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.access-mount .admin-input {
  max-width: 200px;
}

/* Defeat legacy .admin-dropzone (gold) when using .admin-dropzone--card — rules must come after generic .admin-dropzone* blocks */
.admin-dropzone.admin-dropzone--card,
.admin-dropzone.admin-dropzone--card:hover,
.admin-dropzone.admin-dropzone--card.is-dragover,
.admin-dropzone.admin-dropzone--card.is-busy,
.admin-dropzone.admin-dropzone--card.is-error,
.admin-dropzone.admin-dropzone--card:focus-within {
  border: none;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}
.admin-dropzone.admin-dropzone--card:hover {
  background: rgba(201, 165, 92, 0.05);
}
.admin-dropzone.admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.4);
}
.admin-dropzone.admin-dropzone--card.is-error {
  background: rgba(196, 92, 74, 0.12);
  animation: admin-drop-shake 0.45s ease;
}
.admin-dropzone.admin-dropzone--card:focus-within {
  box-shadow: 0 0 0 1px rgba(201, 165, 92, 0.35);
  border: none;
}
.admin-dropzone.admin-dropzone--card .admin-dropzone__visual,
.admin-dropzone.admin-dropzone--card:hover .admin-dropzone__visual {
  display: none;
}

/* Users list + modals */
.users-panel-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 4px;
}
.users-table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.users-table th,
.users-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  vertical-align: middle;
}
.users-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}
.users-table tr:last-child td {
  border-bottom: none;
}
.users-table__sn {
  width: 3.5rem;
  text-align: center;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.users-table__act {
  min-width: 200px;
}
.users-table__ending {
  display: inline-block;
  max-width: 14rem;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
  color: var(--text-muted);
}
.users-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.users-restrict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.users-restrict input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.users-table-wrap--team .users-table__act {
  min-width: 200px;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.users-table-wrap--team .users-actions {
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
.team-iconbtn,
.blog-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}
.team-iconbtn i,
.blog-iconbtn i {
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}
.users-restrict--toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.users-restrict--toggle .user-block-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0.01;
}
.users-restrict-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 165, 92, 0.28);
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.users-restrict-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0ece4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.users-restrict--toggle:has(.user-block-toggle:checked) .users-restrict-toggle__track {
  background: rgba(180, 60, 50, 0.32);
  border-color: rgba(200, 80, 70, 0.55);
}
.users-restrict--toggle:has(.user-block-toggle:checked) .users-restrict-toggle__thumb {
  transform: translateX(18px);
}
.users-restrict--toggle:focus-within .users-restrict-toggle__track {
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.45);
}
.users-restrict--toggle:has(.user-block-toggle:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}
.users-restrict--toggle:has(.user-block-toggle:disabled) .users-restrict-toggle__track {
  opacity: 0.6;
}
.contacts-table-wrap .contacts-table .admin-input {
  width: 100%;
  max-width: 220px;
  min-width: 0;
  box-sizing: border-box;
}
.contacts-table .users-table__act {
  /* Room for two 40px icon buttons + gap inside padded td (avoid flex-wrap stack) */
  min-width: 124px;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.contacts-table .users-table__act .users-actions {
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}
.contacts-toolbar-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
}
.contacts-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-contacts .contacts-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-contacts .contacts-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-contacts .contacts-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-contacts .contacts-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-contacts .contacts-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-contacts .contacts-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#panel-users .team-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-users .team-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-users .team-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-users .team-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-users .team-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-users .team-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-users .wd-card--team .wd-card__team-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.1);
}
#panel-users .wd-card--team .wd-card__team-foot-label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
#panel-users .wd-card--team .wd-card__team-foot .users-restrict--toggle {
  margin: 0;
  flex-shrink: 0;
}
#panel-blog .blog-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-blog .blog-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-blog .blog-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-blog .blog-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-blog .blog-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-blog .blog-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-blog .wd-card--blog .wd-card__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: #f4efe8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#panel-blog .wd-card--blog .wd-card__head--blog {
  margin-top: 0;
  margin-bottom: 6px;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#panel-blog .wd-card--blog .wd-card__head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 auto;
}
#panel-blog .wd-card--blog .wd-card__head--blog .wd-card__actions {
  margin-left: auto;
}
#panel-blog .wd-card--blog .blog-card__updated {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
}
#panel-profile .profile-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-profile .profile-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-profile .profile-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-profile .profile-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-profile .profile-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-profile .profile-panel-savebtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-settings .settings-panel__head {
  flex-wrap: nowrap;
  align-items: center;
}
#panel-settings .settings-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-settings .settings-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-settings .settings-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-settings .settings-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-settings .settings-panel-savebtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-contacts .wd-card--contact .wd-card__title,
#panel-users .wd-card--team .wd-card__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: #f4efe8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#panel-contacts .wd-card--contact .wd-card__head--contact,
#panel-users .wd-card--team .wd-card__head--contact {
  margin-top: 0;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#panel-contacts .wd-card--contact .wd-card__head--contact {
  margin-bottom: 6px;
}
#panel-users .wd-card--team .wd-card__head--contact {
  margin-bottom: 0;
}
#panel-contacts .wd-card--contact .wd-card__head-left,
#panel-users .wd-card--team .wd-card__head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 auto;
}
#panel-contacts .wd-card--contact .wd-card__head--contact .wd-card__actions,
#panel-users .wd-card--team .wd-card__head--contact .wd-card__actions {
  margin-left: auto;
}
#panel-contacts .wd-card--contact .wd-card__contact-line {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
#panel-contacts .wd-card--contact .wd-card__contact-line--email {
  font-size: 12px;
}
.contacts-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}
.contacts-iconbtn i {
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}
.contacts-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 92, 0.35);
}
.contacts-badge--lead {
  color: #c9d4e8;
  background: rgba(80, 120, 200, 0.2);
}
.contacts-badge--client {
  color: #d8efd8;
  background: rgba(60, 140, 90, 0.28);
}
.contacts-badge--team-editor {
  color: #f4efe8;
  background: rgba(201, 165, 92, 0.16);
  border-color: rgba(201, 165, 92, 0.42);
}
.blog-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 92, 0.35);
}
.blog-badge--draft {
  color: #c9c3b8;
  background: rgba(120, 120, 120, 0.2);
}
.blog-badge--published {
  color: #d8efd8;
  background: rgba(60, 140, 90, 0.28);
}
.user-modal.blog-article-modal[open] {
  width: min(96vw, 920px);
  max-width: min(96vw, 920px);
  height: min(94vh, 860px);
  min-height: min(94vh, 480px);
  max-height: min(94vh, 860px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.user-modal.blog-article-modal[open] #blogArticleForm.blog-article-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  max-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.blog-article-modal__head {
  flex-shrink: 0;
  padding: 16px 20px 8px;
}
.blog-article-modal__title {
  margin: 0;
}
.blog-article-modal__tabs.admin-tabs {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0 20px 8px;
  padding-bottom: 0;
}
.blog-article-modal__tabs .admin-tabs__tab {
  padding: 8px 14px;
  font-size: 12px;
  margin-bottom: -1px;
}
.blog-article-modal__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 20px 12px;
  margin-right: 0;
}
.blog-article-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  box-sizing: border-box;
}
.blog-article-modal__panel[hidden] {
  display: none !important;
}
.blog-article-modal__row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px 16px;
  align-items: start;
}
@media (max-width: 560px) {
  .blog-article-modal__row2 {
    grid-template-columns: 1fr;
  }
}
.blog-article-modal__hint {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
}
.blog-article-modal__cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: -4px;
}
.blog-article-modal__err {
  flex-shrink: 0;
  margin: 0 20px;
}
.blog-article-modal__actions {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.admin-media-card--blog-modal .admin-media-card__dashed {
  min-height: 140px;
}
.blog-article-modal__excerpt {
  min-height: 5rem;
  max-height: min(22vh, 200px);
  resize: vertical;
  line-height: 1.45;
}
.blog-article-modal__body {
  min-height: 14rem;
  max-height: min(52vh, 520px);
  resize: vertical;
  line-height: 1.45;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-ghost {
  border: 1px solid rgba(201, 165, 92, 0.35);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-on-dark);
  cursor: pointer;
  font: inherit;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
}
.user-del {
  background: rgba(180, 60, 50, 0.25);
  border: 1px solid rgba(200, 80, 70, 0.45);
  color: #f0c0bc;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}
.user-del:hover:not(:disabled) {
  background: rgba(200, 70, 60, 0.45);
  color: #fff;
}
.user-del:disabled,
.user-edit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* User add/edit dialogs live outside .admin-app (body-level); do not scope under .admin-app */
.user-modal[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 400px;
  width: min(92vw, 400px);
  max-height: min(90vh, 640px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: #0a121c;
  color: #f0ece4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.user-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
@media (max-width: 480px) {
  .admin-mobile-more-dialog.user-modal[open] {
    top: auto;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    height: auto;
    max-height: min(72dvh, 560px);
    border-radius: 14px 14px 0 0;
    padding-top: 0;
  }
  .user-modal[open]:not(.admin-mobile-more-dialog) {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100dvh;
    max-height: 100svh;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }
  .user-modal[open] .user-modal__form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .user-modal.wd-item-modal[open],
  .user-modal.wd-item-modal.wd-nav-submenu-modal[open] {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100dvh;
    max-height: 100svh;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
  }
  #panel-webdesign .user-modal.wd-item-modal.wd-theme-picker-dialog[open] {
    max-width: none;
    width: 100%;
    max-height: 100dvh;
    max-height: 100svh;
  }
}
.user-modal__form {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.user-modal__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px;
}
/* Dismiss (X) — top-right row with title; use on .admin-dialog.user-modal */
.user-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  flex-shrink: 0;
}
.user-modal__head .user-modal__title,
.user-modal__head .wd-item-modal__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
button.user-modal__dismiss,
.user-modal__dismiss.btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 10px;
  margin: 0;
  border-radius: 8px;
}
.user-modal__dismiss i {
  font-size: 16px;
  line-height: 1;
}
.user-modal.wd-item-modal form.wd-item-modal__form--stacked > .user-modal__head {
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  background: rgba(0, 0, 0, 0.15);
}
.blog-article-modal__head.user-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wd-nav-submenu-modal__body .user-modal__head .wd-item-modal__title {
  margin: 0;
}
.user-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gold);
}
.user-modal__field .admin-input {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.user-modal__err {
  color: #f0a8a0;
  font-size: 13px;
  margin: 0;
}
.user-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 4px;
  padding-top: 4px;
}
/* User modals: high-contrast action buttons on dark surface */
.user-modal__actions .btn {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.user-modal__actions .btn-gold {
  color: #0a0f16;
  background: linear-gradient(180deg, #f0d896 0%, #c9a55c 50%, #a8863e 100%);
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
}
.user-modal__actions .btn-gold:hover {
  color: #05080c;
  background: linear-gradient(180deg, #f5e0a8 0%, #d4b86a 50%, #b8944a 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.user-modal__actions .btn-gold:focus-visible {
  outline: 2px solid #e8c880;
  outline-offset: 2px;
}
.user-modal__actions .btn-ghost {
  color: #f0ece4;
  background: #141c28;
  border-color: rgba(201, 165, 92, 0.55);
  box-shadow: none;
}
.user-modal__actions .btn-ghost:hover {
  color: #fff;
  background: #1a2535;
  border-color: #d4b57a;
}
.user-modal__actions .btn-ghost:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.65);
  outline-offset: 2px;
}

/* Full-size image lightbox (admin thumbnails) */
.admin-lightbox[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(96vw, 1280px);
  max-height: min(92dvh, 960px);
  margin: 0;
  padding: 48px 16px 16px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: #0a121c;
  color: #f0ece4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.admin-lightbox::backdrop {
  background: rgba(2, 6, 12, 0.88);
  backdrop-filter: blur(4px);
}
.admin-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-lightbox__close:hover,
.admin-lightbox__close:focus-visible {
  background: rgba(201, 165, 92, 0.15);
  color: #fff;
  outline: none;
}
.admin-lightbox__frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.admin-lightbox__img {
  max-width: 100%;
  max-height: min(78dvh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.admin-app img.admin-media-card__img,
.admin-app img.wd-card__thumb,
.admin-app img.prop-gallery-item__thumb,
.admin-app img.wd-dyn-thumb:not([hidden]) {
  cursor: zoom-in;
}

/* Public site preview (modal + responsive frame)
   Only style when [open] — a bare `display: flex` on <dialog> overrides the UA
   `display: none` for closed dialogs, so the preview was visible on every load. */
.admin-preview-dialog[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1280px);
  height: min(92dvh, 900px);
  max-height: 92dvh;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: #0a121c;
  color: #f0ece4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.admin-preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}
.admin-preview-dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.2);
  background: #060c12;
  flex-shrink: 0;
}
.admin-preview-dialog__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  flex: 0 0 auto;
}
.admin-preview-devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.admin-preview-devices__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: #121a24;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-preview-devices__btn:hover {
  color: #f0ece4;
  border-color: rgba(201, 165, 92, 0.45);
  background: #1a2430;
}
.admin-preview-devices__btn.is-active {
  color: #0a0f16;
  background: linear-gradient(180deg, #e0c27a, #b89245);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.admin-preview-devices__btn:focus-visible {
  outline: 2px solid #e8c880;
  outline-offset: 2px;
}
/* Icon-only device toggles (Web Design live preview + site preview dialog) */
.wd-live-preview__devices.admin-preview-devices,
.admin-preview-dialog .admin-preview-devices {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}
.wd-live-preview__devices .admin-preview-devices__btn,
.admin-preview-dialog .admin-preview-devices__btn {
  gap: 0;
  padding: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}
.wd-live-preview__devices .admin-preview-devices__btn i,
.admin-preview-dialog .admin-preview-devices__btn i {
  font-size: 1.05rem;
}
.admin-preview-dialog__close {
  margin: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 8px;
  background: #121a24;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-preview-dialog__close:hover,
.admin-preview-dialog__close:focus-visible {
  background: rgba(201, 165, 92, 0.12);
  color: #fff;
  outline: none;
}
.admin-preview-dialog__body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05080c;
}
.admin-preview-canvas {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.admin-preview-frame-wrap {
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: width 0.2s ease, max-width 0.2s ease, min-height 0.2s ease;
}
.admin-preview-frame-wrap[data-device="mobile"] {
  width: 100%;
  max-width: 390px;
  min-height: min(80dvh, 700px);
  height: min(80dvh, 700px);
  border: 3px solid #1a1a1a;
  border-radius: 12px;
}
.admin-preview-frame-wrap[data-device="tablet"] {
  width: 100%;
  max-width: 768px;
  min-height: min(78dvh, 720px);
  height: min(78dvh, 720px);
  border: 3px solid #2a2a2a;
  border-radius: 10px;
}
.admin-preview-frame-wrap[data-device="desktop"] {
  width: 100%;
  max-width: 100%;
  min-height: min(80dvh, 760px);
  height: min(80dvh, 760px);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  align-self: stretch;
  margin: 0;
}
.admin-preview-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: none;
  vertical-align: top;
  background: #fff;
}
@media (max-width: 600px) {
  .admin-preview-devices {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .admin-preview-dialog__head {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding-right: 50px;
  }
  .admin-preview-dialog__title {
    order: 0;
  }
  .admin-preview-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* Web design CMS (gallery, testimonials, hero, why, about) */
.wd-shell {
  margin-top: 8px;
}
.wd-mobile-view-toggle {
  display: none;
  flex-direction: row;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}
.wd-mobile-view-toggle__btn {
  flex: 1 1 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.wd-mobile-view-toggle__btn:hover {
  color: var(--text-on-dark);
  border-color: rgba(201, 165, 92, 0.5);
}
.wd-mobile-view-toggle__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.wd-mobile-view-toggle__btn.is-active {
  color: var(--gold-light);
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.14);
}
/* Web design: block list (left) + live preview (right) */
.wd-design-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px 22px;
  min-height: min(72vh, 760px);
  max-height: min(82vh, 920px);
}
.wd-design-split__blocks {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(260px, 34vw, 560px);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  align-items: stretch;
}
.wd-design-split__preview {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.wd-live-preview__toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.18);
}
.wd-live-preview__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.52);
  margin: 0;
  white-space: nowrap;
}
.wd-live-preview__devices {
  min-width: 0;
  justify-content: center;
}
.wd-live-preview__toolbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.wd-live-preview__refresh.btn {
  min-height: 32px;
  padding: 4px 10px;
}
/* Canvas: pan when device is taller than view — scrollbar hidden, scroll still works */
.wd-live-preview__canvas {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px 20px;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 80% at 50% 0%, rgba(25, 35, 55, 0.55) 0%, #050a10 45%);
}
.wd-live-preview__canvas::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.wd-live-preview__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: 0 8px 10px;
  box-sizing: border-box;
}
/* Outer chassis: real-world–style aspect ratios (portrait phone / portrait tablet / 16:9 monitor) */
.wd-live-preview__device-frame {
  --lv-bezel: 11px;
  --lv-bezel-bottom: 13px;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* Avoid full-width “landscape bar” before JS pins chassis width */
  width: auto;
  max-width: 100%;
  overflow: visible;
  border-radius: 28px;
  background: linear-gradient(165deg, #3a3a3e 0%, #0c0c0e 42%, #1e1e22 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(0, 0, 0, 0.85) inset,
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  padding: var(--lv-bezel) var(--lv-bezel) var(--lv-bezel-bottom);
  /* Do not transition width — JS sets it; animating width caused a visibly wrong first frame */
  transition:
    max-width 0.2s ease,
    max-height 0.2s ease,
    border-radius 0.2s ease,
    padding 0.2s ease;
}
.wd-live-preview__device-bezel {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* Mobile: glass width/zoom from JS; outer width hugs scaled viewport + bezel (no wide “tablet” shell). */
.wd-live-preview__device-frame[data-device="mobile"] {
  --lv-bezel: 10px;
  --lv-bezel-bottom: 12px;
  width: min(100%, 300px);
  max-width: min(100%, 360px);
  align-self: center;
  max-height: min(74dvh, 780px);
  border-radius: 36px;
  padding-top: 8px;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-bezel {
  height: 22px;
  margin-bottom: 2px;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-notch {
  display: block;
  width: 36%;
  min-width: 100px;
  max-width: 150px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #050505;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-cam,
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-dots {
  display: none;
}
/* Tablet: glass/zoom from JS; outer width hugs scaled 834×1112 + bezel (no wide empty chassis). */
.wd-live-preview__device-frame[data-device="tablet"] {
  --lv-bezel: 12px;
  --lv-bezel-bottom: 14px;
  width: min(100%, 520px);
  max-width: min(100%, 720px);
  align-self: center;
  max-height: min(70dvh, 960px);
  border-radius: 20px;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-bezel {
  height: 12px;
  margin-bottom: 4px;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-notch {
  display: none;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-cam {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3d4a5c, #0d1016 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-dots {
  display: none;
}
/* Desktop: glass/zoom from JS; outer width hugs scaled 1280×720 + tiny screen margins. */
.wd-live-preview__device-frame[data-device="desktop"] {
  --lv-bezel: 0;
  --lv-bezel-bottom: 0;
  width: min(100%, 960px);
  max-width: 100%;
  align-self: center;
  max-height: min(70dvh, 800px);
  border-radius: 10px;
  padding: 0;
  background: linear-gradient(180deg, #2c2c30 0%, #121214 8%, #0a0a0c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.5);
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-bezel {
  height: 28px;
  background: linear-gradient(180deg, #3a3a40 0%, #1e1e24 100%);
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  justify-content: flex-start;
  padding-left: 10px;
  gap: 5px;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-notch,
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-cam {
  display: none;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  font-size: 0;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots i:nth-child(2) {
  background: #febc2e;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots i:nth-child(3) {
  background: #28c840;
}
.wd-live-preview__device-stand {
  display: none;
  flex: 0 0 auto;
  width: 38%;
  min-width: 80px;
  max-width: 180px;
  height: 8px;
  margin: 2px auto 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #1a1a1e, #3a3a42, #1a1a1e);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}
.wd-live-preview__device-frame[data-device="desktop"] + .wd-live-preview__device-stand {
  display: block;
}
.wd-live-preview__device-screen {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.wd-live-preview__iframe-fit {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
/* Logical viewport aspect until JS scale runs — prevents flat wide first paint */
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__iframe-fit {
  aspect-ratio: 390 / 844;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__iframe-fit {
  aspect-ratio: 834 / 1112;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__iframe-fit {
  aspect-ratio: 1280 / 720;
}
/* Clips to scaled logical viewport; sized in JS so content + zoom fit the device “glass” */
.wd-live-preview__iframe-scale-box {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
}
.wd-live-preview__iframe-fit-inner {
  /* top left + scale: keeps logical viewport flush with glass; top center clips unevenly in some engines */
  transform-origin: top left;
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-screen,
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-screen {
  border-radius: 2px 2px 20px 20px;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-screen {
  border-radius: 0 0 4px 4px;
  margin: 0 1px 1px;
  flex: 1 1 auto;
}
/* Home indicator: mobile + tablet */
.wd-live-preview__device-frame[data-device="mobile"]::after,
.wd-live-preview__device-frame[data-device="tablet"]::after {
  content: "";
  flex: 0 0 auto;
  height: 5px;
  width: 32%;
  min-width: 56px;
  max-width: 100px;
  margin: 6px auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  align-self: center;
}
.wd-live-preview__device-frame[data-device="desktop"]::after {
  display: none;
}
.wd-live-preview__iframe {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  height: 100%;
  border: none;
  background: #060c18;
  vertical-align: top;
  /* width/height set in JS to logical viewport (390×844, 834×1112, 1280×720); long pages scroll inside iframe */
}
@media (max-width: 960px) {
  .wd-mobile-view-toggle {
    display: flex;
  }
  /* Editor tab: blocks only — live preview column hidden (use Preview tab for iframe) */
  .wd-shell--mobile-editor .wd-design-split__preview {
    display: none !important;
  }
  .wd-shell--mobile-editor .wd-design-split__blocks {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }
  .wd-shell--mobile-editor .wd-design-split {
    flex: 1 1 auto;
    min-height: 0;
  }
  .wd-shell--mobile-preview .wd-design-split__blocks {
    display: none;
  }
  .wd-shell--mobile-preview .wd-design-split {
    flex: 1 1 auto;
    min-height: min(52dvh, 560px);
  }
  .wd-shell--mobile-preview .wd-design-split__preview {
    flex: 1 1 auto;
    min-height: min(55dvh, 620px);
    max-height: none;
  }
  .wd-design-split {
    flex-direction: column;
    max-height: none;
    min-height: 0;
  }
  .wd-design-split__blocks {
    flex: 0 0 auto;
    max-height: min(48dvh, 520px);
  }
  .wd-design-split__preview {
    min-height: min(42dvh, 480px);
    flex: 1 1 min(42dvh, 480px);
  }
}
.wd-tabs.admin-tabs {
  flex-wrap: wrap;
}
.wd-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 20px;
  align-items: start;
}
.wd-modal-dynamic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.wd-dyn-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.wd-dyn-inline .admin-input {
  flex: 1 1 180px;
  min-width: 0;
}
.wd-dyn-thumb {
  display: block;
  max-width: 160px;
  max-height: 90px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}
.wd-dyn-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow: auto;
  padding: 8px 4px 4px;
  margin-top: 6px;
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}
.wd-dyn-icon-btn {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  border-radius: 8px;
  background: #121a24;
  color: #c9a55c;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.wd-dyn-icon-btn:hover {
  border-color: rgba(201, 165, 92, 0.55);
  color: #f0ece4;
}
.wd-dyn-icon-btn.is-active {
  border-color: rgba(201, 165, 92, 0.85);
  background: rgba(201, 165, 92, 0.12);
  color: #f0ece4;
}
.wd-nav-tree.wd-items {
  gap: 16px;
}
.wd-nav-block {
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.wd-nav-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}
.wd-nav-row__grip {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 4px 2px;
  margin: -2px 0;
  border-radius: 6px;
  color: rgba(240, 236, 228, 0.42);
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.wd-nav-row__grip:active {
  cursor: grabbing;
}
.wd-nav-row__grip[draggable="false"] {
  cursor: not-allowed;
  opacity: 0.35;
  pointer-events: none;
}
.wd-nav-block--dragging {
  opacity: 0.55;
}
.wd-nav-block--drag-over {
  outline: 2px dashed rgba(201, 165, 92, 0.45);
  outline-offset: 2px;
}
.wd-nav-row--sub {
  padding: 6px 0 6px 12px;
  margin: 4px 0 0 8px;
  border-left: 2px solid rgba(201, 165, 92, 0.28);
}
.wd-nav-row__main {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wd-nav-row__btn-icon {
  min-width: 2.25rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.wd-nav-row__actions .btn i {
  pointer-events: none;
}
.wd-nav-row__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f0ece4;
  line-height: 1.35;
}
.wd-nav-row__url {
  margin: 0;
  font-size: 12px;
  word-break: break-word;
}
.wd-nav-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.wd-nav-children {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.wd-nav-submenu-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}
.wd-nav-submenu-rows > .wd-nav-submodal-empty {
  margin: 0;
  padding: 8px 2px 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}
.wd-nav-submodal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.wd-nav-submodal-row__main {
  grid-column: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  align-items: end;
}
@media (max-width: 520px) {
  .wd-nav-submodal-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .wd-nav-submodal-row__main {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .wd-nav-submodal-row__actions {
    grid-column: 1;
    justify-content: flex-start;
  }
}
.wd-nav-submodal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wd-nav-submodal__lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.wd-nav-submodal-row__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
}
.wd-nav-submodal-row__actions .btn {
  margin: 0;
  padding: 8px 11px;
  min-height: 36px;
  min-width: 38px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(201, 165, 92, 0.32);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-on-dark);
  box-sizing: border-box;
  transition: var(--transition);
}
.wd-nav-submodal-row__actions .btn:hover {
  background: rgba(201, 165, 92, 0.12);
  border-color: rgba(201, 165, 92, 0.48);
  color: var(--gold-light);
  transform: none;
  box-shadow: none;
}
.wd-nav-submodal-row__actions .btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}

/* Manage pages modal — compact width, grid rows, scroll list only */
.user-modal.wd-item-modal.wd-mp-modal[open] {
  max-width: min(96vw, 640px);
  width: min(96vw, 640px);
  max-height: min(88vh, 520px);
}
.user-modal.wd-item-modal.wd-mp-modal .user-modal__form.wd-item-modal__form.wd-mp-modal__form {
  gap: 8px;
  padding: 12px 14px 12px;
  overflow: hidden;
  min-height: 0;
}
.wd-mp-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 56px;
  max-height: min(52vh, 380px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  box-sizing: border-box;
}
.wd-mp-rows__empty,
.wd-mp-rows__hint {
  font-size: 12px;
  margin: 0;
  line-height: 1.45;
  padding: 6px 2px 4px;
}
.wd-mp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.wd-mp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.wd-mp-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.wd-mp-row .admin-input--sm {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 13px;
}
.wd-mp-row--title-dup .wd-mp-title {
  border-color: rgba(220, 90, 90, 0.85);
  box-shadow: 0 0 0 1px rgba(220, 90, 90, 0.25);
}
.wd-mp-row--path-reserved .wd-mp-path {
  border-color: rgba(220, 90, 90, 0.85);
  box-shadow: 0 0 0 1px rgba(220, 90, 90, 0.25);
}
.wd-mp-iconbtn {
  min-width: 36px;
  min-height: 34px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.wd-mp-iconbtn i {
  font-size: 14px;
  line-height: 1;
}
.wd-mp-row__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1px;
  flex-shrink: 0;
}
.wd-mp-auto-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(28vh, 220px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  box-sizing: border-box;
}
.wd-mp-row--auto {
  align-items: center;
  opacity: 0.95;
  border-style: dashed;
}
.wd-mp-field--readonly .wd-mp-auto__value {
  font-size: 13px;
  line-height: 1.35;
  color: var(--cream, #e8e2d8);
  padding: 6px 9px;
  min-height: 34px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}
.wd-mp-auto__path {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: var(--gold-light, #e8c880);
}
.wd-mp-row__actions--auto {
  align-self: center;
  padding-bottom: 0;
}
.wd-mp-auto__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}
.wd-mp-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
  flex-shrink: 0;
}
.wd-mp-modal__footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wd-mp-modal__add {
  margin: 0;
}

.user-modal.wd-item-modal.wd-mp-auto-dialog[open] {
  max-width: min(96vw, 520px);
  width: min(96vw, 520px);
  max-height: min(86vh, 520px);
  z-index: 90080;
}
.user-modal.wd-item-modal.wd-mp-auto-dialog .wd-mp-auto-dialog__form {
  gap: 10px;
  padding: 12px 14px 12px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wd-mp-auto-dialog__rows {
  flex: 1 1 auto;
  min-height: 80px;
  max-height: min(62vh, 420px);
}

.user-modal.wd-item-modal.wd-mp-details-modal[open] {
  max-width: min(94vw, 440px);
  width: min(94vw, 440px);
  max-height: min(88vh, 420px);
  z-index: 90070;
}
.user-modal.wd-mp-details-modal .wd-mp-details-modal__form {
  gap: 10px;
  padding: 12px 14px 12px;
}
.wd-mp-details-modal__field {
  margin: 0;
}
.wd-mp-details-modal__textarea {
  min-height: 96px;
  resize: vertical;
}

/* Manage blocks order modal */
.user-modal.wd-item-modal.wd-mb-modal[open] {
  max-width: min(94vw, 420px);
  width: min(94vw, 420px);
  max-height: min(88vh, 520px);
}
.user-modal.wd-item-modal.wd-mb-modal .user-modal__form.wd-item-modal__form.wd-mb-modal__form {
  gap: 8px;
  padding: 12px 14px 12px;
  overflow: hidden;
  min-height: 0;
}
.wd-mb-modal__hint {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}
.wd-mb-sort-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 80px;
  max-height: min(50vh, 340px);
  overflow-y: auto;
  padding: 4px 2px 4px 0;
}
.wd-mb-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px;
  color: #f0ece4;
  box-sizing: border-box;
}
.wd-mb-sort-row--frozen {
  opacity: 0.92;
  flex-shrink: 0;
}
.wd-mb-sort-row--drag {
  cursor: grab;
}
.wd-mb-sort-row--drag:active {
  cursor: grabbing;
}
.wd-mb-sort-row.is-dragging {
  opacity: 0.55;
}
.wd-mb-sort-row__handle {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.wd-mb-sort-row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}
.user-modal.wd-mb-modal .wd-mb-modal__actions {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}

/* Web design: block order list + block content dialog */
.wd-block-order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 4px;
  padding-right: 8px;
  box-sizing: border-box;
}
.wd-bo-section__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.52);
}
.wd-bo-section--off {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.wd-bo-section__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.wd-bo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    outline 0.2s ease,
    outline-offset 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
}
.wd-bo-row--off {
  opacity: 0.9;
}
.wd-bo-row--active {
  outline: 2px solid rgba(201, 165, 92, 0.42);
  outline-offset: 1px;
}
.wd-bo-row--draggable {
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.wd-bo-row--draggable:active {
  cursor: grabbing;
}
.wd-bo-row--draggable .wd-bo-row__grip {
  cursor: inherit;
}
.wd-bo-row--dragging {
  opacity: 0.5;
  transform: scale(0.993);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  z-index: 3;
  position: relative;
}
.wd-bo-row--drop-target {
  outline: 2px solid rgba(201, 165, 92, 0.88);
  outline-offset: 2px;
  border-color: rgba(201, 165, 92, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .wd-bo-row {
    transition: none;
  }
  .wd-bo-row--dragging {
    transform: none;
  }
}
.wd-bo-row__grip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  color: rgba(240, 236, 228, 0.42);
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.wd-bo-row__grip:active {
  cursor: grabbing;
}
.wd-bo-row__grip--frozen {
  cursor: default;
  opacity: 0.65;
}
.wd-bo-row__grip[draggable="false"] {
  cursor: not-allowed;
  opacity: 0.35;
  pointer-events: none;
}
.wd-bo-row__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}
.wd-bo-row__label {
  font-weight: 600;
  font-size: 14px;
  color: #f0ece4;
}
.wd-bo-row__badge {
  font-size: 11px;
  font-weight: 500;
}
.wd-bo-row__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.wd-bo-row__btn-icon {
  min-width: 2.25rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.wd-bo-row__btn-icon i {
  pointer-events: none;
}
.wd-tabpanels-placeholder {
  display: none;
}
#panel-webdesign .user-modal.wd-item-modal.wd-block-content-dialog[open] {
  max-width: min(1120px, 96vw);
  width: min(1120px, 96vw);
  max-height: min(90vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 90040;
}
#wdItemDialog.admin-dialog.user-modal.wd-item-modal[open]:not(.wd-block-content-dialog) {
  z-index: 90050;
}
#wdBlockCopyDialog.admin-dialog.user-modal.wd-block-copy-dialog[open] {
  z-index: 90060;
  max-width: min(92vw, 480px);
  width: min(92vw, 480px);
  max-height: min(90vh, 640px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wd-block-copy-footer-opts .wd-footer-opts-fs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 6px;
}
.wd-block-copy-footer-opts .wd-footer-opts-fs legend {
  padding: 0 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 200, 128, 0.85);
}
.wd-footer-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.wd-footer-opt input {
  flex-shrink: 0;
}
.wd-fc-strip-wrap > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 200, 128, 0.85);
  margin-bottom: 6px;
}
.wd-fc-strip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  max-height: min(40vh, 280px);
  overflow-y: auto;
}
.wd-url-field {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.wd-url-field .admin-input {
  flex: 1 1 auto;
  min-width: 0;
}
.wd-internal-link-btn {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 6px 10px;
  min-width: 42px;
}
.wd-nav-submodal__field--url .wd-url-field {
  margin-top: 4px;
}
.wd-fc-strip-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.wd-fc-strip-row .wd-fc-strip-remove {
  flex-shrink: 0;
  padding: 6px 10px;
  min-width: auto;
}
@media (max-width: 420px) {
  .wd-fc-strip-row {
    grid-template-columns: 1fr;
  }
}
.wd-block-content-dialog__head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
}
.wd-block-content-dialog__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.wd-block-content-dialog__title-row .wd-item-modal__title {
  margin: 0;
}
.wd-block-content-dialog__heading-btn {
  flex-shrink: 0;
}
#wdBlockCopyOpenBtn[hidden] {
  display: none !important;
}
.wd-block-content-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  max-height: min(90vh, 920px);
  padding: 0;
  overflow: hidden;
}
.wd-block-content-dialog__inner.user-modal__form.wd-item-modal__form {
  gap: 0;
  padding: 0;
}
.wd-block-content-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
  flex-shrink: 0;
}
.wd-block-content-dialog__head .user-modal__title {
  margin: 0;
  font-size: 1.15rem;
  flex: 1 1 auto;
  min-width: 0;
}
.wd-block-content-dialog__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wd-block-content-dialog__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd-block-content-dialog__toolbar .btn.btn-gold {
  white-space: nowrap;
}
.wd-block-content-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.wd-block-content-dialog__body .wd-tabpanels {
  width: 100%;
  min-height: min(52vh, 520px);
}

@media (max-width: 560px) {
  .user-modal.wd-item-modal.wd-mp-modal[open] {
    max-width: min(96vw, 100%);
    width: min(96vw, 100%);
  }
  .wd-mp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wd-mp-row__actions {
    justify-content: flex-end;
    padding-bottom: 0;
  }
}

.wd-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 16px 0 14px;
}
.wd-section-toolbar__hint {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.wd-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(201, 165, 92, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.wd-view-toggle__btn {
  margin: 0;
  padding: 6px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  background: #121a24;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.wd-view-toggle__btn:hover {
  color: #f0ece4;
  background: #1a2430;
}
.wd-view-toggle__btn.is-active {
  background: linear-gradient(180deg, #e0c27a, #b89245);
  color: #0a0f16;
}
.wd-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wd-items--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.wd-items--grid .wd-card {
  margin: 0;
}
.wd-card {
  position: relative;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  padding: 12px 14px 14px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.wd-card__layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wd-card__body {
  flex: 1 1 0;
  min-width: 0;
}
.wd-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
}
.wd-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f0ece4;
  line-height: 1.35;
}
.wd-card__subtitle {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
}
.wd-card__slug {
  word-break: break-word;
}
.wd-card__excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.wd-card__empty {
  opacity: 0.45;
  font-weight: 500;
}
.wd-card__n {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.wd-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.wd-card__actions--iconrow {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.wd-card__actions--iconrow .btn.btn-sm {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#panel-properties .prop-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
#panel-properties .prop-panel-head .admin-panel__title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-properties .prop-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
#panel-properties .prop-panel-title__text {
  min-width: 0;
}
#panel-properties .prop-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-properties .prop-panel-head__toolbar.business-panel__toolbar {
  flex-shrink: 0;
  margin-left: 0;
  flex-wrap: nowrap;
  gap: 8px 10px;
  max-width: none;
}
#panel-properties .prop-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#panel-properties .wd-card--prop .wd-card__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: #f4efe8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#panel-properties .wd-card--prop .wd-card__head {
  margin-top: 0;
  margin-bottom: 6px;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}
#panel-properties .wd-card--prop .wd-card__subtitle {
  margin-top: 2px;
}
.wd-items--grid .wd-card--gallery .wd-card__grip {
  display: none;
}
.wd-card--gallery .wd-card__grip {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  min-height: 44px;
  margin: -2px 0 0;
  color: var(--text-muted, #8a8a8a);
  cursor: grab;
  border-radius: 6px;
  user-select: none;
  touch-action: none;
}
.wd-card--gallery .wd-card__grip i,
.wd-card--gallery .wd-card__grip svg {
  pointer-events: none;
}
.wd-card--gallery .wd-card__grip:active {
  cursor: grabbing;
}
.wd-card--gallery.is-dragging {
  opacity: 0.65;
}
.wd-card--gallery.is-dragover {
  outline: 1px dashed rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.06);
}
.wd-card--gallery .wd-card__thumbwrap {
  cursor: pointer;
}
.wd-card--gallery .wd-card__thumbwrap:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}
#wdItemDialog .admin-media-card--wd-modal .admin-media-card__preview,
#wdItemDialog .admin-media-card--wd-modal .admin-media-card__preview img {
  cursor: default;
}
.wd-card__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.wd-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.wd-card__imgrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.wd-card__file {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.wd-card__thumbwrap {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 165, 92, 0.2);
  max-width: 280px;
  background: rgba(0, 0, 0, 0.25);
}
.wd-card__thumbwrap--sm {
  margin-top: 0;
  width: 72px;
  height: 72px;
  max-width: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-card__thumbwrap--sm .wd-card__thumb {
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-card__thumbwrap--empty {
  border-style: dashed;
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.15);
}
.wd-card__thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  vertical-align: top;
}
.wd-modal__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wd-modal__preview {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 165, 92, 0.25);
  max-width: 100%;
}
.wd-modal__preview-img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}
.user-modal.wd-item-modal[open] {
  max-width: min(92vw, 500px);
  width: min(92vw, 500px);
  max-height: min(90vh, 560px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.user-modal.wd-nav-submenu-modal.wd-item-modal[open] {
  max-width: min(92vw, 640px);
  width: min(92vw, 640px);
  max-height: min(90vh, 620px);
}
/* Manage submenu — stacked shell: scroll list in body, footer fixed */
.user-modal.wd-item-modal.wd-nav-submenu-modal .user-modal__form.wd-item-modal__form.wd-nav-submenu-modal__inner {
  gap: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.wd-nav-submenu-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 14px;
}
.wd-nav-submenu-modal__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.wd-nav-submenu-modal__err {
  margin: 0;
}
.wd-nav-submenu-modal__body .wd-nav-submenu-rows {
  flex: 1 1 auto;
  min-height: 108px;
  max-height: min(46vh, 400px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 6px 4px 0;
  margin: 0;
}
.wd-nav-submenu-modal__add {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-light);
  cursor: pointer;
  border-radius: 10px;
  border: 1px dashed rgba(201, 165, 92, 0.42);
  background: rgba(0, 0, 0, 0.14);
  transition: var(--transition);
}
.wd-nav-submenu-modal__add:hover {
  color: #fff;
  border-color: rgba(201, 165, 92, 0.58);
  background: rgba(201, 165, 92, 0.08);
}
.wd-nav-submenu-modal__add:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.user-modal.wd-item-modal.wd-nav-submenu-modal .wd-nav-submenu-modal__footer.user-modal__actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  background: rgba(0, 0, 0, 0.22);
  gap: 10px;
}
.user-modal.wd-item-modal .user-modal__form.wd-item-modal__form:not(.wd-item-modal__form--stacked) {
  gap: 10px;
  padding: 14px 16px 16px;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}
.user-modal.wd-item-modal form.user-modal__form.wd-item-modal__form--stacked {
  gap: 0;
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wd-item-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-modal.wd-item-modal form.wd-item-modal__form--stacked > .wd-item-modal__actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  background: rgba(0, 0, 0, 0.2);
}
.wd-item-modal__title {
  margin-bottom: 2px;
}
.wd-item-modal__section {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gold);
}
.wd-item-modal__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: start;
}
@media (max-width: 440px) {
  .wd-item-modal__grid2 {
    grid-template-columns: 1fr;
  }
}
.wd-item-modal__textarea {
  min-height: 4.25rem;
  max-height: 9rem;
  resize: vertical;
  line-height: 1.45;
}
.wd-item-modal__media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
}
@media (max-width: 440px) {
  .wd-item-modal__media {
    grid-template-columns: 1fr;
  }
}
.wd-item-modal__url-field {
  margin: 0;
  min-width: 0;
  align-self: stretch;
}
.wd-item-modal__url-hint {
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0;
}
.wd-item-modal__actions {
  margin-top: 0;
  padding-top: 0;
  gap: 8px;
  justify-content: flex-end;
}
.wd-nav-style-fieldset {
  margin: 4px 0 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}
.wd-nav-style-fieldset__legend {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.wd-nav-style-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}
.wd-nav-style-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-on-dark);
  cursor: pointer;
}
.wd-nav-style-radio input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.wd-nav-style-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.wd-nav-row__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-darkest);
  background: var(--gold);
  border-radius: 999px;
  vertical-align: middle;
}
.admin-input--sm {
  font-size: 13px;
  padding: 7px 10px;
  min-height: 36px;
}
.admin-media-card--wd-modal {
  min-width: 0;
}
.admin-media-card--wd-modal .admin-media-card__label {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.35px;
}
.admin-media-card--wd-modal .admin-media-card__outer {
  padding: 6px;
  max-width: 122px;
  margin: 0 auto;
}
.admin-media-card--wd-modal .admin-media-card__dashed {
  max-width: 108px;
  max-height: 108px;
  margin: 0 auto;
}
.admin-media-card--wd-modal .admin-dropzone__emptitle {
  font-size: 11px;
}
.admin-media-card--wd-modal .admin-dropzone__emptype {
  font-size: 9px;
  max-width: 6.5rem;
}
.admin-media-card--wd-modal .admin-media-card__dashed .admin-dropzone--card .admin-dropzone__ico {
  font-size: 1.1rem;
}
#panel-properties.panel-properties--products #propTypeTabs {
  display: none !important;
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
}
.user-modal.prop-item-modal[open] {
  width: min(96vw, 960px);
  min-width: min(96vw, 320px);
  max-width: min(96vw, 960px);
  height: min(92vh, 780px);
  min-height: min(92vh, 520px);
  max-height: min(92vh, 780px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.user-modal.prop-item-modal[open] #propItemForm.prop-item-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  max-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.prop-type-step {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 22px;
  box-sizing: border-box;
  justify-content: flex-start;
}
.prop-type-step[hidden] {
  display: none !important;
}
.prop-type-step__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  max-width: 42rem;
}
.prop-type-step__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
@media (max-width: 560px) {
  .prop-type-step__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.prop-type-step__btn {
  margin: 0;
  padding: 14px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.prop-type-step__btn:hover {
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.08);
}
.prop-type-step__btn.is-selected {
  border-color: var(--gold);
  background: rgba(201, 165, 92, 0.14);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.25);
}
.prop-type-step__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.prop-type-step__actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.prop-form-step {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  padding: 14px 22px 16px;
  overflow: hidden;
}
.prop-form-step[hidden] {
  display: none !important;
}
.prop-item-modal__title {
  margin-bottom: 2px;
  flex-shrink: 0;
}
.prop-item-modal__tabs.admin-tabs {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 8px;
  padding-bottom: 0;
}
.prop-item-modal__tabs .admin-tabs__tab {
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: -1px;
}
.prop-item-modal__panels {
  flex: 1 1 auto;
  min-height: 420px;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -2px;
}
.prop-item-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  box-sizing: border-box;
}
.prop-item-modal__panel[hidden] {
  display: none !important;
}
.prop-item-modal__textarea {
  max-height: 10rem;
  resize: vertical;
  line-height: 1.45;
}
.prop-item-modal__cover-preview.wd-modal__preview {
  max-height: 200px;
  margin-bottom: 0;
}
.prop-item-modal__err {
  flex-shrink: 0;
  margin: 0;
}
.prop-item-modal__actions {
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.prop-modal__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
@media (max-width: 560px) {
  .prop-modal__row2 {
    grid-template-columns: 1fr;
  }
}
.prop-modal__row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 14px;
}
@media (max-width: 640px) {
  .prop-modal__row3 {
    grid-template-columns: 1fr;
  }
}
.prop-modal__check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.prop-modal__check input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.prop-modal__cover-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-media-card--prop-modal .admin-media-card__dashed {
  min-height: 120px;
}
.admin-media-card--prop-gallery .admin-media-card__dashed {
  min-height: 110px;
}
.prop-gallery-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.prop-gallery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  cursor: grab;
}
.prop-gallery-item:active {
  cursor: grabbing;
}
.prop-gallery-item.is-dragging {
  opacity: 0.55;
}
.prop-gallery-item.is-dragover {
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.55);
}
.prop-gallery-item__handle {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 14px;
  user-select: none;
}
.prop-gallery-item__thumbwrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.prop-gallery-item__thumbwrap--empty {
  border: 1px dashed rgba(201, 165, 92, 0.25);
}
.prop-gallery-item__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prop-gallery-item__url {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

/* Business profile — policy rows */
.bf-policies-list {
  max-width: 920px;
}
.bf-policies-row {
  border: 1px solid rgba(201, 165, 92, 0.18);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.12);
}
.bf-policies-row__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}