/* =====================================================================
   Khatu shyam Homes — Admin layer
   Extends css/style.css (the original template). Uses ONLY the template's
   design tokens (ink / slate / azure / amber / porcelain, Bricolage +
   Hanken Grotesk, radii and shadows) so the admin reads as the same product.
   ===================================================================== */

/* ---------- shell ---------- */
.admin-body { background: var(--paper); min-height: 100vh; }

.admin-header-inner { max-width: none; padding-inline: var(--pad); }
.admin-body .site-header { background: rgba(251,250,246,.95); border-bottom-color: var(--line); }

.brand-tag {
  font-family: var(--f-body); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber-700); background: #fff5e4; padding: .22rem .55rem; border-radius: 999px; margin-left: .15rem;
}

.user-chip { cursor: default; max-width: 260px; }
.user-chip .saved-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions .btn .ic { width: 18px; height: 18px; }

.admin-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  /* keeps the ink sidebar column full-height on long pages */
  background: linear-gradient(90deg, var(--ink) 0, var(--ink) 264px, transparent 264px);
}

/* ---------- sidebar (desktop) — ink surface like the template's dark sections ---------- */
.admin-sidebar.main-nav {
  margin: 0;
  position: sticky; top: 74px; align-self: start;
  height: calc(100vh - 74px); overflow-y: auto;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(46,107,240,.22), transparent 60%),
    var(--ink);
  color: #dbe6f4;
  padding: 1.6rem 1rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

.side-head { padding: 0 .5rem; }
.side-head .kicker { margin-bottom: .9rem; }
.side-user { display: flex; align-items: center; gap: .7rem; padding: .75rem; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid var(--line-ink); }
.side-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber); color: #241800; font-family: var(--f-display); font-weight: 800; font-size: 1rem;
}
.side-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.side-user-text strong { color: #fff; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-text small { color: var(--muted-ink); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-list.nav-list { flex-direction: column; align-items: stretch; gap: .2rem; }
.side-list a,
.side-logout button {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .72rem .85rem; border-radius: var(--r-sm);
  color: #c6d5e8; font-weight: 600; font-size: .98rem; font-family: var(--f-body);
  background: transparent; border: 0; cursor: pointer; text-align: left; position: relative;
}
.side-list a .ic, .side-logout .ic { width: 20px; height: 20px; color: var(--muted-ink); }
.side-list a:hover, .side-logout button:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-list a.is-active { background: rgba(245,165,36,.14); color: #fff; }
.side-list a.is-active .ic { color: var(--amber); }
.side-list a.is-active::before {
  content: ""; position: absolute; left: -1rem; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber);
}
.side-logout { margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line-ink); }
.side-logout button:hover .ic { color: var(--amber); }

.admin-sidebar .nav-close { background: rgba(255,255,255,.08); border-color: var(--line-ink); color: #fff; }

/* ---------- content ---------- */
.admin-content { min-width: 0; display: flex; flex-direction: column; }
.admin-main { flex: 1; padding: clamp(1.25rem, 3vw, 2.25rem) var(--pad) clamp(2rem, 4vw, 3rem); min-width: 0; }

.page-head { margin-bottom: 1.5rem; }
.page-head .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-head .section-intro { margin-top: .4rem; font-size: 1rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--danger { background: #c0392b; color: #fff; }
.btn--danger:hover { background: #a93226; color: #fff; }
.btn--ghost { background: #fff; }

/* ---------- notes (flash / validation) — based on template .cta-note ---------- */
.note {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.note .ic { width: 20px; height: 20px; margin-top: .1rem; }
.note ul { margin: .35rem 0 0; padding-left: 1.1rem; font-weight: 500; }
.note--success { background: #eefaf1; color: #1c6b3f; border-color: #cdebd7; }
.note--error   { background: #fdf0ee; color: #8a1c1c; border-color: #f3d3cd; }
.note--info    { background: #eef3fe; color: #1f4fb8; border-color: #d3e0fb; }
.note--warn    { background: #fff5e4; color: #7a4a00; border-color: #f7dfb1; }

/* ---------- stat cards (template .cat-tile) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(.7rem, 1.5vw, 1.1rem); margin-bottom: 1.75rem; }
.stat-grid .cat-tile { padding: 1.2rem 1.15rem; }
.stat-value { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.cat-icon--azure { background: rgba(46,107,240,.12); color: var(--azure); }
.cat-icon--amber { background: #fff5e4; color: var(--amber-700); }

/* ---------- panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1.5rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.15rem; }
.panel-body { padding: 1.2rem; }
.panel-empty { padding: 2rem 1.2rem; text-align: center; color: var(--muted); margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: start; }
.dash-grid .panel { margin-bottom: 0; }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 720px; }
.data-table--compact { min-width: 0; }
.data-table--compact td:last-child { white-space: nowrap; }
.data-table th {
  text-align: left; white-space: nowrap; padding: .75rem .8rem; background: var(--porcelain);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.data-table td { padding: .75rem .8rem; border-top: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.data-table tbody tr:hover td { background: #fdfcf8; }
.data-table .t-strong { font-weight: 700; color: var(--ink); }
.data-table .t-muted { color: var(--muted); font-size: .85rem; display: block; }
.data-table .t-nowrap { white-space: nowrap; }
.data-table .t-num { font-variant-numeric: tabular-nums; }
.thumb { width: 64px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: #e7ecf2; border: 1px solid var(--line); }

.flat-count { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.flat-count strong { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }

/* row actions — styled like template .agent-contact */
.actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.act {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  font-weight: 600; font-size: .82rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); padding: .38rem .7rem; border-radius: 999px; cursor: pointer; font-family: var(--f-body);
}
.act:hover { color: var(--ink); border-color: var(--ink); background: var(--porcelain); }
.act .ic { width: 15px; height: 15px; color: var(--azure); }
.act--amber { background: #fff5e4; border-color: #f7dfb1; }
.act--amber .ic { color: var(--amber-700); }
.act--danger .ic { color: #c0392b; }
.act--danger:hover { border-color: #c0392b; background: #fdf0ee; color: #8a1c1c; }

/* ---------- status pills (template .badge, inline) ---------- */
.pill {
  display: inline-block; white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .3rem .66rem; border-radius: 999px; line-height: 1.2;
}
.pill--ok    { background: #e6f6ec; color: #1c6b3f; }
.pill--muted { background: #eceae4; color: #5B6B7A; }
.pill--ink   { background: var(--sale); color: #fff; }
.pill--new   { background: var(--amber); color: #241800; }
.pill--azure { background: rgba(46,107,240,.12); color: var(--azure-600); }
.pill--warn  { background: #fff0db; color: #8a5300; }
.pill--soft  { background: var(--porcelain); color: #3d4f61; }

/* ---------- filters (template .searchbar command bar, not floating) ---------- */
.searchbar.searchbar--static { transform: none; margin: 0 0 1.5rem; box-shadow: var(--shadow-sm); padding: .6rem; }
.search-fields.search-fields--filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .3rem; }
.search-fields--filters .field { min-width: 0; }
.search-fields--filters .field-input { min-height: 30px; }
.filter-actions { display: flex; gap: .4rem; align-items: stretch; padding: .35rem; }
.filter-actions .search-submit { padding: .8rem 1.2rem; flex: 1; }
.filter-reset {
  display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1rem;
  border-radius: var(--r-md); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; background: #fff;
}
.filter-reset:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- forms (template .cta-form / .cta-field) ---------- */
.cta-form.form-card { box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.form-section-title { font-size: 1.05rem; margin: 1.4rem 0 .9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }

.cta-field select,
.cta-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .8rem .9rem; font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: var(--paper);
}
.cta-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; }
.cta-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.cta-field select:focus, .cta-field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46,107,240,.16); background-color: #fff; }
.cta-field input[type="file"] { padding: .6rem .7rem; font-size: .9rem; background: #fff; }
.cta-field .req { color: #c0392b; margin-left: .15rem; }
.cta-field .is-invalid { border-color: #c0392b !important; background-color: #fffafa; }
.field-error { display: block; color: #a93226; font-size: .84rem; font-weight: 600; margin-top: .35rem; }
.field-hint { display: block; color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.cta-field input:disabled, .cta-field select:disabled { opacity: .6; cursor: not-allowed; }

.inline-load { display: flex; gap: .5rem; align-items: stretch; }
.inline-load select { flex: 1; min-width: 0; }
.inline-load .btn { white-space: nowrap; border-radius: var(--r-sm); }

.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* property image slots */
.image-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.image-slot { border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem; background: var(--paper); }
.image-slot-title { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .55rem; }
.image-slot-preview { aspect-ratio: 3 / 2; border-radius: var(--r-sm); overflow: hidden; background: #e7ecf2; margin-bottom: .6rem; display: grid; place-items: center; color: var(--muted); }
.image-slot-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-slot-preview .ic { width: 32px; height: 32px; }
.image-slot input[type="file"] { width: 100%; font-size: .85rem; }
.image-slot .remove-toggle { display: flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; color: #8a1c1c; margin-top: .55rem; cursor: pointer; }

/* ---------- property summary strip (flats per property) ---------- */
.prop-summary { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1rem 1.2rem; }
.prop-summary img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.prop-summary-main { flex: 1; min-width: 200px; }
.prop-summary-main h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.prop-summary-main p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: .35rem; font-size: .92rem; }
.prop-summary-main p .ic { width: 16px; height: 16px; color: var(--azure); }
.prop-summary .hero-stats { gap: 1.5rem; }
.prop-summary .stat-num { color: var(--ink); font-size: 1.7rem; }
.prop-summary .stat-label { color: var(--muted); }

/* ---------- detail view ---------- */
.detail-list { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 0; }
.detail-list dt, .detail-list dd { padding: .8rem 1.2rem; border-top: 1px solid var(--line); margin: 0; }
.detail-list dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: #fdfcf8; }
.detail-list dt:first-of-type, .detail-list dd:first-of-type { border-top: 0; }
.detail-message { white-space: pre-line; }

/* ---------- confirm delete ---------- */
.confirm-card { max-width: 640px; }
.confirm-card h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.confirm-card p { color: var(--muted); }
.confirm-card .stat-strip { margin-top: 1rem; }

/* ---------- pagination (template .chip) ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.pager-info { margin: 0; color: var(--muted); font-size: .9rem; }
.pager-list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.pager .chip { display: inline-block; padding: .42rem .9rem; font-size: .88rem; }
.pager a.chip:hover { color: var(--ink); }
.chip.is-disabled { opacity: .45; cursor: not-allowed; }
.pager-gap { display: inline-block; padding: .42rem .3rem; color: var(--muted); }

/* ---------- footer ---------- */
.admin-footer { padding: 0; }
.admin-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem var(--pad); }
.admin-footer-brand { color: #fff; font-size: 1.05rem; }
.admin-footer-brand:hover { color: #fff; }
.admin-footer-brand .brand-mark { width: 28px; height: 28px; background: rgba(255,255,255,.1); }
.admin-footer-brand .brand-mark svg { width: 18px; height: 18px; }
.admin-footer-inner p { margin: 0; color: var(--muted-ink); font-size: .88rem; }

/* =====================================================================
   LOGIN (template hero + cta-form)
   ===================================================================== */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-hero { flex: 1; display: flex; align-items: center; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.login-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; width: 100%; }
.login-brand { display: flex; width: max-content; color: #fff; margin-bottom: 2rem; }
.login-brand .brand-mark { background: rgba(255,255,255,.1); border: 1px solid var(--line-ink); }
.login-brand:hover { color: #fff; }
.login-grid .cta-form { max-width: 440px; width: 100%; justify-self: end; }
.login-grid .cta-form .note { margin-bottom: 1rem; }
.login-grid .hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1280px) {
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .image-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  /* sidebar becomes the template's off-canvas drawer (#mainNav + js/main.js), sliding from the left */
  .admin-sidebar.main-nav {
    position: fixed; top: 0; left: 0; right: auto; z-index: 1001;
    height: 100dvh; width: min(300px, 84vw);
    padding: 4.75rem 1rem 2rem;
    transform: translateX(-105%);
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.main-nav.open { transform: translateX(0); }
  .admin-sidebar .nav-close { top: 1rem; right: 1rem; }
  .side-list a.is-active::before { display: none; }
  .admin-sidebar .nav-cta-mobile { margin-top: auto; }

  .login-grid { grid-template-columns: 1fr; }
  .login-grid .cta-form { justify-self: stretch; max-width: none; }
}

@media (max-width: 720px) {
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dd { border-top: 0; padding-top: 0; }
  .page-head.section-head--row { align-items: flex-start; }
  .pager { justify-content: center; }
}

@media (max-width: 560px) {
  .image-slots { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .user-chip { padding: .5rem; }
  .filter-actions { flex-direction: row; }
}

@media (max-width: 480px) {
  .admin-header-inner { gap: .6rem; }
  .admin-header-inner .brand { font-size: 1.1rem; min-width: 0; }
  .admin-header-inner .brand-word { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-tag { display: none; }
  .header-actions { gap: .45rem; }
}

@media (min-width: 861px) {
  .admin-sidebar .nav-cta-mobile, .admin-sidebar .nav-close { display: none; }
}

/* =====================================================================
   PROPERTY HUB (tabs, tiles, content managers) — template chips/tiles
   ===================================================================== */
.prop-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .1rem 0 .6rem; margin: -0.4rem 0 1.4rem; }
.prop-tabs .chip { flex: none; white-space: nowrap; padding: .45rem .95rem; font-size: .88rem; }
.prop-tabs .chip:hover { color: var(--ink); }
.prop-tabs .chip.is-active { color: #fff; }

.hub-heading { font-size: 1.05rem; margin: .4rem 0 .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--f-body); font-weight: 700; }
.hub-tile .cat-name { font-size: .98rem; }
.hub-tile .hub-value { font-size: 1.6rem; margin-top: .2rem; }

.order-input { width: 70px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .35rem .5rem; font-family: var(--f-body); background: var(--paper); }
.order-input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46,107,240,.16); }

.side-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #241800; font-size: .74rem; font-weight: 800; display: inline-grid; place-items: center; }

.terms-rent { margin: 0; padding: .8rem .9rem; border-radius: var(--r-sm); background: var(--porcelain); font-weight: 700; color: var(--ink); }

.amenity-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.amenity-option { display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; }
.amenity-option .ic { width: 18px; height: 18px; color: var(--azure); }
.amenity-option:has(input:checked) { border-color: var(--azure); background: rgba(46,107,240,.06); }
.amenity-option.is-inactive { opacity: .6; }
.amenity-option small { color: var(--muted); font-weight: 500; }

.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; padding: 1.2rem; }
.gallery-admin-item { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.gallery-admin-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e7ecf2; }
.gallery-admin-item figcaption { padding: .7rem .8rem; display: grid; gap: .45rem; }
.gallery-admin-item.is-hidden img { opacity: .45; }
.gallery-order { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); font-weight: 600; }

.map-frame { position: relative; aspect-ratio: 4 / 3; background: #e7ecf2; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- custom URL + SEO fields ---------- */
.url-field{display:flex;align-items:stretch;border:1px solid var(--line,#dcd6cc);border-radius:10px;overflow:hidden;background:#fff}
.url-field.is-invalid{border-color:#c0392b}
.url-field .url-prefix{text-transform:none;letter-spacing:0;font-weight:500;display:flex;align-items:center;padding:0 .7rem;background:#f4f1ec;color:#6b6358;font-size:.85rem;white-space:nowrap;max-width:55%;overflow:hidden;text-overflow:ellipsis;border-right:1px solid var(--line,#dcd6cc)}
.url-field input{margin:0 !important;border:0 !important;border-radius:0 !important;flex:1;min-width:0;box-shadow:none !important}
.char-count{font-weight:600;color:#6b6358}
.char-count.is-long{color:#b45309}
.url-link{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;word-break:break-all}
.url-link svg{width:14px;height:14px;flex:none}
.cell-url{display:block;font-size:.78rem;color:#6b6358;margin-top:.15rem;word-break:break-all}
@media (max-width:600px){.url-field{flex-direction:column}.url-field .url-prefix{max-width:none;border-right:0;border-bottom:1px solid var(--line,#dcd6cc);padding:.4rem .7rem}}

/* ---------- gallery: main photo ---------- */
.gallery-admin-item.is-primary { outline: 3px solid #f5a524; outline-offset: -3px; }
.badge-primary { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; background: #fff4db; color: #8a5a00; font-size: .75rem; font-weight: 700; }
.badge-primary svg { width: 12px; height: 12px; }
.badge-demo { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; background: #eef2ff; color: #3949ab; font-size: .7rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
