/* backstage.css */

/* Ensure [hidden] always hides — overrides display:flex/grid on component classes */
[hidden] { display: none !important; }

:root {
  --bg:           #F7F5F2;
  --surface:      #FFFFFF;

  /* Layout */
  --sidebar-w:          240px;
  --topbar-h:           56px;
  --banners-h:          0px;
  --customer-banner-h:  0px;
  --sidebar-bg:         #192E28;
  --sidebar-text:       #8FBDB5;
  --sidebar-text-dim:   #5A8880;
  --sidebar-hover:      rgba(255,255,255,0.07);
  --sidebar-active-bg:  rgba(45,107,92,0.40);
  --sidebar-active-clr: #FFFFFF;
  --sidebar-border:     rgba(255,255,255,0.08);
  --teal:         #2D6B5C;
  --teal-dark:    #1E4D41;
  --teal-light:   #EAF2EF;
  --text:         #1A1A1A;
  --text-muted:   #6B6560;
  --border:       #E0DDD9;
  --error-bg:     #FDF1F0;
  --error-border: #E8B4B0;
  --error-text:   #8B2020;
  --radius:       10px;
  --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ── LOGIN LAYOUT ─────────────────────────── */

.login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.login-logo-img {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  border-radius: 11px;
}
.login-logo-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.login-card h1 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.375rem;
}

.login-card .subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}


/* ── FORM ELEMENTS ────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input[type="email"],
.field input[type="text"] {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 107, 92, 0.15);
}


/* ── 6-DIGIT CODE INPUT ───────────────────── */

.code-input {
  width: 100%;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.code-input::placeholder {
  color: var(--border);
  letter-spacing: 0.4em;
}

.code-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 107, 92, 0.15);
}


/* ── BUTTON ───────────────────────────────── */

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ── ALERTS ───────────────────────────────── */

.alert {
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.alert-success {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
}

.alert-dev {
  background: #FFF8E1;
  border: 1px solid #F0C040;
  color: #7A5C00;
  font-size: 0.9rem;
}


/* ── LINK BUTTON ──────────────────────────── */

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: var(--teal);
}


/* ── BACK LINK ────────────────────────────── */

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--teal);
}


/* ── FOOTER ───────────────────────────────── */

.login-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ── DESKTOP (login card) ─────────────────── */

@media (min-width: 480px) {
  .login-card {
    padding: 3rem 2.5rem;
  }
}


/* ═══════════════════════════════════════════
   APP LAYOUT
═══════════════════════════════════════════ */

body.bs-app {
  background: var(--bg);
  display: block;
}


/* ── Mobile top bar ───────────────────────── */

.bs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  background: var(--sidebar-bg);
  padding: 0 1rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}

.bs-topbar-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.bs-topbar-user {
  font-size: 0.8rem;
  color: var(--sidebar-text);
}

/* Hamburger button */
.bs-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.bs-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile overlay */
.bs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 299;
}
.bs-overlay.visible { display: block; }


/* ── Sidebar ──────────────────────────────── */

.bs-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.bs-sidebar.open { transform: translateX(0); }

.bs-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}
.bs-brand-logo {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  border-radius: 8px;
}
.bs-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sidebar-text-dim);
}

/* Nav */
.bs-nav {
  flex: 1;
  padding: 0.75rem 0;
}

.bs-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
.bs-nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.bs-nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-clr);
}
.bs-nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Sidebar footer */
.bs-sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--sidebar-border);
}
.bs-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bs-user-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-user-role {
  font-size: 0.725rem;
  color: var(--sidebar-text-dim);
  margin-top: 0.1rem;
}
.bs-logout-btn {
  color: var(--sidebar-text-dim);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.75rem;
  transition: color 0.15s;
}
.bs-logout-btn:hover { color: #fff; }


/* ── Main content ─────────────────────────── */

.bs-main {
  min-height: 100vh;
  margin-top: var(--topbar-h);
  transition: margin-left 0.25s ease;
}

.bs-content {
  padding: 1.5rem 1.25rem 3rem;
  max-width: 1200px;
}

.bs-page-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}


/* ── Customer mode banner ─────────────────── */

.bs-customer-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-h); /* mobile: below topbar */
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--teal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  flex-wrap: nowrap;
}
@media (min-width: 769px) {
  .bs-customer-banner {
    left: var(--sidebar-w);
    top: 0;
  }
}
.bs-banner-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bs-banner-exit {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
  transition: background 0.15s;
}
.bs-banner-exit:hover { background: rgba(0,0,0,0.35); }


/* ── Dashboard stat cards ─────────────────── */

.bs-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.bs-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.bs-stat-icon { color: var(--teal); }
.bs-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.bs-stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.bs-placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
}


/* ── Desktop overrides (≥769px) ───────────── */

@media (min-width: 769px) {
  .bs-topbar    { display: none; }
  .bs-overlay   { display: none !important; }

  .bs-sidebar {
    transform: translateX(0);
    transition: none;
  }

  .bs-main {
    margin-left: var(--sidebar-w);
    margin-top: 0;
  }

  .bs-content {
    padding: 2rem 2.5rem 3rem;
  }

  .bs-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ═══════════════════════════════════════════
   SHARED UI COMPONENTS
═══════════════════════════════════════════ */

/* ── Page header ──────────────────────────── */

.bs-page-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bs-search-wrap {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.bs-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.bs-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.bs-search-input:focus {
  outline: none;
  border-color: var(--teal);
}
.bs-search-input::-webkit-search-cancel-button { cursor: pointer; }

.bs-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ── User cards ───────────────────────────── */
.bs-user-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .bs-user-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .bs-user-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.bs-user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.bs-user-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.bs-user-card--inactive { opacity: 0.55; }
.bs-user-card-self {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ── Buttons ──────────────────────────────── */

.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.bs-btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.bs-btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.bs-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.bs-btn-secondary:hover { background: var(--bg); }

.bs-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.bs-btn-ghost:hover { color: var(--text); background: var(--bg); }

.bs-btn-danger {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
}
.bs-btn-danger:hover { background: #962d22; }


/* ── Badges ───────────────────────────────── */

.bs-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.bs-badge-success { background: #E6F4EF; color: #1A6B3C; }
.bs-badge-warning { background: #FEF3CD; color: #7A5200; }
.bs-badge-danger  { background: #FDECEA; color: #8B1A1A; }
.bs-badge-info    { background: #E8F0FE; color: #1A47A1; }
.bs-badge-neutral { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }


/* ── Contract expiry banner ───────────────── */

.bs-contract-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) + var(--customer-banner-h));
  z-index: 79;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}
@media (min-width: 769px) {
  .bs-contract-banner {
    left: var(--sidebar-w);
    top: var(--customer-banner-h);
  }
}
.bs-contract-banner.warning {
  background: #FEF3CD;
  color: #7A5200;
  border-bottom: 1px solid #F0C040;
}
.bs-contract-banner.expired {
  background: #FDECEA;
  color: #8B1A1A;
  border-bottom: 1px solid #E8B4B0;
}
.bs-contract-banner a {
  color: inherit;
  font-weight: 600;
  margin-left: 0.75rem;
}


/* ═══════════════════════════════════════════
   CUSTOMER CARDS
═══════════════════════════════════════════ */

.bs-customer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bs-cust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bs-cust-card.inactive { opacity: 0.6; }

.bs-cust-card-header {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bs-cust-card-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.bs-cust-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-cust-type {
  font-size: 0.75rem;
  opacity: 0.8;
}
.bs-cust-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px;
}

.bs-cust-card-body {
  padding: 0.875rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bs-cust-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}
.bs-cust-subdomain {
  font-family: monospace;
  font-size: 0.775rem;
}
.bs-cust-contract {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bs-cust-card-foot {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: auto;
}


/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */

.bs-form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  overflow: hidden; /* prevent Quill/wide content from bleeding out */
}

.bs-form-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.bs-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bs-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0; /* prevent grid blowout */
}
.bs-field-full { grid-column: 1 / -1; }

.bs-field label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text);
}
.bs-field label .req { color: var(--teal); }

.bs-field input[type="text"],
.bs-field input[type="email"],
.bs-field input[type="tel"],
.bs-field input[type="url"],
.bs-field input[type="date"],
.bs-field select,
.bs-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.bs-field input:focus,
.bs-field select:focus,
.bs-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,107,92,0.12);
}

.bs-field-error {
  font-size: 0.8rem;
  color: var(--error-text);
}

/* Subdomain addon */
.bs-input-addon {
  display: flex;
  align-items: center;
}
.bs-input-addon input { border-radius: var(--radius) 0 0 var(--radius); }
.bs-addon-suffix {
  border: 1px solid var(--border);
  border-left: none;
  background: var(--bg);
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

/* Colour pickers */
.bs-color-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bs-color-field input[type="color"] {
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  cursor: pointer;
  background: var(--bg);
  flex-shrink: 0;
}
.bs-hex-input {
  flex: 1;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Contrast preview */
.bs-contrast-preview {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.bs-contrast-ratio {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
}
.contrast-pass { background: #E6F4EF; color: #1A6B3C; }
.contrast-warn { background: #FEF3CD; color: #7A5200; }
.contrast-fail { background: #FDECEA; color: #8B1A1A; }

/* Logo placeholder */
.bs-logo-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* CSS-only initials avatar (no logo uploaded) */
.bs-logo-initials {
  width: 44px;
  height: 44px;
  border: 3px solid currentColor;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: end;
  justify-content: start;
  font-weight: 700;
  /* font-size: 0.50rem; */
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}
.bs-logo-initials--bar {
  width: 48px;
  height: 48px;
  font-size: 0.8rem;
}

/* Social media grid — 1 col mobile, 2 col tablet, 3 col desktop */
.bs-social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px)  { .bs-social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bs-social-grid { grid-template-columns: repeat(3, 1fr); } }

/* Form actions */
.bs-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem;
}


/* ── Desktop ──────────────────────────────── */

@media (min-width: 769px) {
  .bs-customer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bs-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .bs-customer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ── Statistics ───────────────────────────── */

.bs-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bs-stats-museum-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

/* Period tabs */
.bs-period-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem;
}
.bs-period-tab {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.bs-period-tab:hover  { color: var(--text); background: var(--border); }
.bs-period-tab.active { background: var(--teal); color: #fff; }

/* Stat cards */
.bs-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bs-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.bs-stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.bs-stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Panel layout */
.bs-stats-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bs-stats-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.bs-stats-panel-full {
  margin-bottom: 1rem;
}
.bs-stats-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.bs-stats-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Bar chart rows */
.bs-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.bs-bar-row:last-child { margin-bottom: 0; }
.bs-bar-label {
  font-size: 0.8rem;
  color: var(--text);
  min-width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bs-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bs-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  transition: width 0.3s ease;
  min-width: 2px;
}
.bs-bar-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* Stat table */
.bs-stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.bs-stat-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
.bs-stat-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bs-stat-table tr:last-child td { border-bottom: none; }
.bs-col-num  { text-align: right; }
.bs-stat-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.bs-stat-muted { color: var(--text-muted); }

/* Completion / rate badge */
.bs-pct-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.bs-pct-badge.good { background: #D1F0E0; color: #1A5C35; }
.bs-pct-badge.mid  { background: #FFF3CD; color: #7A5000; }
.bs-pct-badge.low  { background: #FDE8E8; color: #8B2020; }

/* Pincode stats */
.bs-pincode-stats  { display: flex; flex-direction: column; gap: 0.5rem; }
.bs-pincode-row    { display: flex; justify-content: space-between; font-size: 0.875rem; }
.bs-pincode-rate   { margin-top: 0.5rem; }
.bs-pincode-rate .bs-bar-track { margin-bottom: 0.35rem; height: 10px; }
.bs-pincode-rate span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* Daily trend chart */
.bs-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  padding-bottom: 1.4rem;
  position: relative;
}
.bs-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.bs-trend-bar {
  width: 100%;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
  min-height: 0;
  transition: height 0.2s ease;
}
.bs-trend-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1;
}

/* Desktop */
@media (min-width: 769px) {
  .bs-stat-cards   { grid-template-columns: repeat(4, 1fr); }
  .bs-stats-panels { grid-template-columns: repeat(2, 1fr); }
}


/* ── Card panel ──────────────────────────────────────── */

.bs-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bs-card-narrow { max-width: 680px; }
.bs-card-hint {
  padding: 1rem 1.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* ── Generic data table ──────────────────────────────── */

.bs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bs-table th {
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.bs-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.bs-table tr:last-child td { border-bottom: none; }
.bs-table tbody tr:hover { background: var(--bg); }
.bs-tc { text-align: center; }
.bs-tr { text-align: right; }
.bs-table-actions { white-space: nowrap; }

.bs-mono {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.82em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}


/* ── Small button variant ────────────────────────────── */

.bs-btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}


/* ── Flash alerts ────────────────────────────────────── */

.bs-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.bs-alert-success { background: #E6F4EF; color: #1A5C35; border-color: #B2DBC8; }
.bs-alert-error   { background: #FDECEA; color: #8B1A1A; border-color: #F5C0BD; }
.bs-alert-warning { background: #FEF3CD; color: #7A5200; border-color: #F5D87A; }
.bs-alert-info    { background: #E8F0FE; color: #1A47A1; border-color: #9BB5F9; }

/* ── CSV import section ───────────────────── */
.bs-csv-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}
.bs-csv-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bs-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.875rem;
}
.bs-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  width: 0%;
  transition: width 0.25s ease;
}
.bs-csv-result {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.bs-csv-result--ok    { background: #E6F4EF; color: #1A5C35; border-color: #B2DBC8; }
.bs-csv-result--error { background: #FDECEA; color: #8B1A1A; border-color: #F5C0BD; }


/* ── Language checklist (admin museum selection) ─────── */

.bs-card-foot {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.bs-lang-checklist {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}
.bs-lang-row {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.bs-lang-row:last-child { border-bottom: none; }
.bs-lang-row:hover { background: var(--bg); }

.bs-lang-check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  flex: 1;
}
.bs-lang-check-label input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--teal); flex-shrink: 0; }

.bs-lang-default-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  padding: 0.5rem 0 0.5rem 2rem;
}
.bs-lang-default-label input[type="radio"] { accent-color: var(--teal); }
.bs-lang-default-label:has(input:checked) { color: var(--teal); font-weight: 600; }
.bs-lang-default-label:has(input:disabled) { opacity: 0.35; cursor: default; }

.bs-lang-flag { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.bs-lang-iso  { margin-left: auto; padding-right: 0.5rem; }

.bs-lang-audience-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  padding: 0.5rem 0 0.5rem 2rem;
  min-width: 3rem;
}
.bs-lang-audience-label input[type="checkbox"] { accent-color: var(--teal); flex-shrink: 0; }
.bs-lang-audience-label:has(input:checked)  { color: var(--teal); }
.bs-lang-audience-label:has(input:disabled) { opacity: 0.35; cursor: default; }


/* ── Paginatitel subtitel ────────────────────────────── */

.bs-page-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.bs-texts-missing  { color: #8B2020; font-weight: 600; }
.bs-texts-complete { color: #1A6B3C; font-weight: 600; }


/* ── UI teksten-editor ───────────────────────────────── */

.bs-texts-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.bs-texts-fallback { font-style: italic; }

.bs-texts-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.bs-texts-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bs-texts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}
.bs-texts-row:last-child { border-bottom: none; }
.bs-texts-row-empty .bs-texts-val-col { background: #FFFBF0; }

.bs-texts-ref-col {
  padding: 0.5rem 0.625rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: stretch;
}
.bs-texts-val-col {
  padding: 0.5rem 0.625rem;
  display: flex;
  align-items: stretch;
}

.bs-texts-ref-input,
.bs-texts-input,
.bs-texts-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.55rem;
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.45;
}
.bs-texts-ref-input {
  background: var(--bg);
  color: var(--text-muted);
  cursor: default;
  resize: none;
}
.bs-texts-input,
.bs-texts-textarea {
  background: #fff;
  transition: border-color 0.15s;
}
.bs-texts-input:focus,
.bs-texts-textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.bs-texts-textarea,
.bs-texts-ref-input[rows] { resize: vertical; }

@media (max-width: 600px) {
  .bs-texts-row         { grid-template-columns: 1fr; }
  .bs-texts-ref-col     { border-right: none; border-bottom: 1px solid var(--border); }
}


/* ── Subdomain availability indicator ─────── */

.bs-subdomain-check {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 1.2em;
  margin-top: 0.25rem;
}
.bs-sub-available { color: #1A6B3C; }
.bs-sub-taken     { color: #8B2020; }
.bs-sub-checking  { color: var(--text-muted); }


/* ── Number input (not in base rule) ─────────────── */

.bs-field input[type="number"] {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.bs-field input[type="number"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,107,92,0.12);
}

/* File input */
.bs-file-input { font-size: 0.875rem; color: var(--text); cursor: pointer; }
.bs-field-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }


/* ── Tours grid ──────────────────────────────────── */

.bs-tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bs-tour-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bs-tour-card.inactive { opacity: 0.65; }

.bs-tour-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  flex-shrink: 0;
}
.bs-tour-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.bs-tour-body  { padding: 1rem; flex: 1; }
.bs-tour-title { font-weight: 600; font-size: 1rem; margin-bottom: 0.2rem; }
.bs-tour-tagline { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.bs-tour-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.bs-tour-flags { font-size: 1.1rem; line-height: 1; letter-spacing: 0.08em; }

.bs-tour-foot {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Photo preview inside edit form */
.bs-tour-edit-preview {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Photo crop overlay ─────────────────────────────── */

.bs-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bs-crop-overlay[hidden] { display: none; }

.bs-crop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.bs-crop-bar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.bs-crop-bar-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bs-crop-panels {
  display: flex;
  flex: 1;
  min-height: 0;
}

.bs-crop-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--border);
}
.bs-crop-panel:last-child { border-right: none; }

.bs-crop-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.bs-crop-panel-label strong { color: var(--text); }

.bs-crop-canvas {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #111;
  position: relative;
}
.bs-crop-canvas > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 768px) {
  .bs-crop-panels {
    flex-direction: column;
    overflow-y: auto;
  }
  .bs-crop-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: 380px;
    flex: none;
  }
  .bs-crop-panel:last-child { border-bottom: none; }
  .bs-crop-bar-title { font-size: 0.8125rem; }
}

@media (min-width: 600px)  { .bs-tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bs-tour-grid { grid-template-columns: repeat(3, 1fr); } }


/* ── Translation sections (tour edit) ────────────── */

.bs-trans-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.bs-trans-section + .bs-trans-section { }
.bs-trans-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.bs-trans-header .bs-lang-flag { font-size: 1.15rem; }

/* ── Default-name pin (naast vertaald naaminput) ─── */

.bs-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bs-default-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  user-select: none;
  line-height: 1;
}
.bs-default-pin input[type="radio"] { display: none; }
.bs-default-pin:hover { color: var(--teal); border-color: var(--teal); }
.bs-default-pin.is-default {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-light);
}
.bs-default-name-display {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.525rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}
.bs-default-name-display.is-empty { color: var(--text-muted); font-style: italic; }

/* ── Audience translation cards ──────────────────── */

.bs-trans-group { padding-top: 0; margin-top: 0; }
.bs-trans-group + .bs-trans-group {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.bs-trans-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.bs-trans-group-header .bs-lang-flag { font-size: 1.15rem; }

.bs-trans-audience-card {
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.bs-trans-audience-card:last-child { margin-bottom: 0; }
.bs-trans-audience-card--adults   { background: #F5F3F0; }
.bs-trans-audience-card--children { background: #EEF4F1; }

.bs-trans-audience-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.bs-trans-audience-label-text { display: flex; align-items: center; gap: 0.4rem; }
.bs-trans-clear-btn {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  line-height: 1.6;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.bs-trans-clear-btn:hover { color: var(--error-text); border-color: var(--error-border); }

/* ── Completeness pill (edit bar + tour card) ─────────── */
.bs-completeness-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1;
}
.bs-completeness-pill--complete { background: #E6F4EF; color: #1A6B3C; }
.bs-completeness-pill--partial  { background: #FEF3CD; color: #7A5200; }
.bs-completeness-pill--empty    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }


/* ── Edit bar: fixed full-width from sidebar ─────────── */

.bs-edit-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) + var(--banners-h)); /* mobile: below topbar + any banners */
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
@media (min-width: 769px) {
  .bs-edit-bar {
    left: var(--sidebar-w);
    top: var(--banners-h); /* desktop: directly below any banners */
    padding: 0.625rem 2.5rem;
  }
}
/* Reserve space for fixed banners + bar in the content flow */
.bs-edit-bar-space {
  height: calc(68px + var(--banners-h));
  margin-bottom: 1.5rem;
}

.bs-edit-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.bs-edit-bar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.bs-edit-bar-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bs-edit-bar-heading {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.bs-edit-bar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}
.bs-edit-bar-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.bs-edit-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Translation section divider ─────────────────── */

.bs-trans-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* ── Quill editor overrides ──────────────────────── */

.bs-quill-wrap    { position: relative; }
.bs-quill-hidden  { display: none; }
.bs-quill-editor  { min-height: 120px; font-size: 0.9rem; }
.bs-quill-counter { font-size: 0.75rem; color: var(--text-muted); text-align: right; margin-top: 0.25rem; }
.bs-quill-counter--over { color: var(--error, #c0392b); font-weight: 600; }
.ql-toolbar.ql-snow {
  border-color: var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap; /* toolbar buttons wrap on narrow screens */
}
.ql-container.ql-snow {
  border-color: var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  height: auto !important;
}
.ql-editor { word-break: break-word; }

/* ── Edit bar: thumbnail breadcrumb (poi_edit) ───────── */

.bs-edit-bar-thumb-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.bs-edit-bar-thumb-link:hover { opacity: 1; }
.bs-edit-bar-sep {
  font-size: 1.1rem;
  color: var(--border);
  flex-shrink: 0;
  line-height: 1;
  margin: 0 0.1rem;
}

/* ── POI section on tour edit page ──────────────────── */

.bs-poi-section {
  margin-top: 2rem;
}
.bs-poi-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.bs-poi-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.bs-poi-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
@media (min-width: 769px) {
  .bs-poi-card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
.bs-poi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.bs-poi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.bs-poi-card--inactive { opacity: 0.6; }
.bs-poi-card-thumb {
  aspect-ratio: 3 / 2;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}
.bs-poi-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-poi-card-body {
  padding: 0.6rem 0.75rem 0.4rem;
  flex: 1;
}
.bs-poi-card-number {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.15rem;
}
.bs-poi-card-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.bs-poi-card-foot {
  padding: 0.5rem 0.75rem 0.75rem;
}

/* ── POI photo gallery (poi_edit.php) ────────────────── */

.bs-poi-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.bs-poi-photo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  position: relative;
  cursor: grab;
  transition: box-shadow 0.15s, opacity 0.15s;
  min-width: 350px;
}
.bs-poi-photo-card--dragging  { opacity: 0.4; box-shadow: none; cursor: grabbing; }
.bs-poi-photo-card--over      { box-shadow: inset 0 0 0 2px var(--teal); }
.bs-poi-photo-drag {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  padding: 2px 4px;
  cursor: grab;
  line-height: 1;
}
.bs-poi-photo-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.bs-poi-photo-placeholder {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
}
.bs-poi-photo-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  flex-wrap: wrap;
}
.bs-poi-cover-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  flex: 1;
}
.bs-poi-ba-row {
  padding: 0 0.5rem 0.5rem;
}
.bs-poi-ba-select {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.25rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.bs-btn-xs {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: calc(var(--radius) * 0.6);
}
.bs-btn-xs-danger {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: calc(var(--radius) * 0.6);
  background: none;
  border: 1px solid var(--error-border);
  color: var(--error-text);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}
.bs-btn-xs-danger:hover { background: var(--error-bg); }

/* ── Audio track cards ───────────────────────────────── */

.bs-audio-track-card {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.75rem 0.75rem 0.5rem;
  margin-bottom: 0.6rem;
}
.bs-audio-track-card--dragging { opacity: 0.4; box-shadow: none; cursor: grabbing; }
.bs-audio-track-card--over     { box-shadow: inset 0 0 0 2px var(--teal); }

.bs-audio-track-drag {
  color: var(--text-muted);
  cursor: grab;
  padding: 0.25rem 0.1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.bs-audio-track-drag:active { cursor: grabbing; }

.bs-audio-track-body {
  flex: 1;
  min-width: 0;
}

.bs-audio-track-delete {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.bs-track-summary {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0;
  list-style: none;
}
.bs-track-summary::-webkit-details-marker { display: none; }
.bs-track-summary::before { content: '▶ '; font-size: 0.6em; }
details[open] .bs-track-summary::before { content: '▼ '; }

.bs-new-track-panel {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg);
}
.bs-new-track-panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.bs-new-track-header {
  display: flex;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.bs-new-track-row {
  display: block;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.bs-new-track-row:first-child {
  border-top: none;
  padding-top: 0;
}
.bs-new-track-row input[type="text"],
.bs-new-track-row input[type="file"] {
  min-width: 0;
}

/* ── Audio preview player ────────────────────────────── */
.bs-audio-preview {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  height: 2rem;
}

/* ── Per-translation audio + video sections ─────────── */
.bs-trans-audio-section,
.bs-trans-video-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.bs-trans-track-list {
  display: flex;
  flex-direction: column;
}
.bs-trans-track-slot {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.bs-trans-track-slot:first-child {
  border-top: none;
  padding-top: 0;
}
.bs-trans-track-slot--master { cursor: default; }
.bs-trans-track-slot--dragging { opacity: 0.5; }
.bs-trans-track-slot--over { outline: 2px dashed var(--teal); outline-offset: 2px; }
.bs-trans-track-header {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.bs-trans-track-header--readonly {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.bs-trans-track-num {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-offset, #ebebeb);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bs-trans-track-name-input { flex: 1; min-width: 8rem; }
.bs-trans-track-label { color: var(--text); }
.bs-track-file-area { margin: 0.25rem 0 0.25rem 1.1rem; }
.bs-track-intl-info {
  margin: 0.25rem 0 0.25rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.bs-track-transcript { margin-top: 0.5rem; }

/* ── Disabled section (grayed, non-interactive) ──────── */
.bs-section--disabled {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* ── Small field label above file inputs ─────────────── */
.bs-field-label-sm {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* ── Video poster thumbnail widget ───────────────────── */
.bs-vpost-wrap {
  display: inline-block;
  margin-bottom: .35rem;
}
.bs-vpost-thumb {
  display: block;
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.bs-vpost-actions {
  display: flex;
  gap: .35rem;
  margin-top: .3rem;
}

/* ── Video track cards ────────────────────────────────── */
.bs-vtrack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .875rem 1rem;
  margin-bottom: .65rem;
}
.bs-vtrack-card-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
}
.bs-vtrack-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .3rem;
  border-radius: 99px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.bs-vtrack-name-input {
  flex: 1;
  min-width: 0;
  font-size: .875rem;
  padding: .3rem .5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
}
.bs-vtrack-name-label {
  flex: 1;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.bs-vtrack-section {
  padding-top: .6rem;
  margin-top: .6rem;
  border-top: 1px solid var(--border);
}
.bs-vtrack-section-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

/* Styled upload button (label wraps hidden file input) */
.bs-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  overflow: hidden;
}
.bs-upload-btn:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}
.bs-upload-btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Progress bar for video XHR uploads */
.bs-vtrack-progress {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  max-width: 320px;
}
.bs-vtrack-progress .bs-progress-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.bs-vtrack-progress .bs-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  width: 0%;
  transition: width .1s linear;
}
.bs-vtrack-progress .bs-progress-pct {
  font-size: .75rem;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
  white-space: nowrap;
}

/* Non-master companion section for new audio tracks */
.bs-new-track-lang-rows {
  margin-top: 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: var(--bg);
}
.bs-new-track-lang-row {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.bs-new-track-lang-row:first-child {
  border-top: none;
  padding-top: 0;
}

/* Non-master companion section for new video tracks */
.bs-new-vtrack-lang-rows {
  margin-top: 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: var(--bg);
}
.bs-new-vtrack-lang-row {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.bs-new-vtrack-lang-row:first-child {
  border-top: none;
  padding-top: 0;
}
.bs-new-vtrack-row {
  display: block;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.bs-new-vtrack-row:first-child {
  border-top: none;
  padding-top: 0;
}
.bs-new-vtrack-row input[type="text"],
.bs-new-vtrack-row input[type="file"] {
  min-width: 0;
}

/* ── Warning button variant ──────────────────────────── */
.bs-btn-warning { background: #D97706; border-color: #D97706; color: #fff; }
.bs-btn-warning:hover { background: #b45309; border-color: #b45309; }

/* ── Video card — 2-row layout (Figma) ───────────────── */
.bs-vcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-bottom: .75rem; }
.bs-vcard-row { display: flex; align-items: center; gap: .75rem; padding-bottom: .65rem; margin-bottom: .65rem; border-bottom: 1px solid var(--border); }
.bs-vcard-row:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.bs-vcard-thumb { position: relative; flex-shrink: 0; border-radius: 7px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; background-image: repeating-conic-gradient(#ccc8c0 0% 25%, #f0ede9 0% 50%); background-size: 14px 14px; }
.bs-vcard-thumb--photo { width: 80px; height: 80px; }
.bs-vcard-thumb--video { width: 120px; height: 80px; }
.bs-vcard-thumb input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bs-vcard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-vcard-thumb-label { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); pointer-events: none; text-align: center; padding: .3rem; }
.bs-vcard-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.bs-vcard-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.bs-vcard-title-input { width: 100%; font-size: .875rem; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); box-sizing: border-box; }
.bs-vcard-uploaded { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--text-muted); }
.bs-vcard-filename { font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.bs-vcard-progress { display: flex; align-items: center; gap: .5rem; }
.bs-vcard-progress .bs-progress-track { flex: 1; height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bs-vcard-progress .bs-progress-fill { height: 100%; background: var(--teal); border-radius: 3px; width: 0%; transition: width .1s linear; }
.bs-vcard-progress .bs-progress-pct { font-size: .72rem; color: var(--text-muted); min-width: 2.2rem; text-align: right; white-space: nowrap; }
.bs-vcard-save-btn { width: 100%; margin-top: .85rem; justify-content: center; }
.bs-vcard-add-link { display: inline-block; margin-top: .6rem; font-size: .875rem; color: var(--teal); cursor: pointer; background: none; border: none; padding: 0; text-decoration: none; font-weight: 500; }
.bs-vcard-add-link:hover { text-decoration: underline; }
.bs-vcard-thumb-readonly { cursor: default; }

/* ── Media type selector ─────────────────────────────── */

.bs-media-type-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bs-media-type-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  user-select: none;
}
.bs-media-type-btn input { display: none; }
.bs-media-type-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.bs-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.bs-media-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.bs-media-filename {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.bs-badge-success {
  background: #e6f4ee;
  color: #1a6b40;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* ── Price rows (customer edit form) ── */
.bs-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.bs-price-label {
  flex: 1;
  min-width: 0;
}
.bs-price-amount-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 7rem;
  flex-shrink: 0;
}
.bs-price-currency {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bs-price-amount {
  width: 100%;
  text-align: right;
}
.bs-price-remove {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
}
.bs-price-remove:hover { color: var(--error-text); }



/* ── Tour sharing ────────────────────────────────────── */

/* Inkomende uitnodiging banner */
.bs-share-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #FFFBEA;
  border: 1px solid #F0C040;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.bs-share-invite-body  { flex: 1; min-width: 0; }
.bs-share-invite-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Gedeeld badge + status per tour card */
.bs-share-outgoing {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bs-share-outgoing-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.bs-share-outgoing-museum {
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Extern tour card */
.bs-tour-card-extern {
  border-left: 3px solid var(--teal);
}
.bs-badge-extern {
  background: var(--teal-light);
  color: var(--teal-dark);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.bs-tour-extern-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Modal overlay */
.bs-share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
}
.bs-share-overlay.active { display: block; }

/* Modal panel */
.bs-share-modal {
  display: none;
  position: fixed;
  z-index: 310;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  flex-direction: column;
}
.bs-share-modal.active { display: flex; }

.bs-share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 0;
}
.bs-share-modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.bs-share-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color 0.15s;
}
.bs-share-modal-close:hover { color: var(--text); }

.bs-share-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bs-share-modal-foot {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Form elements inside modal */
.bs-share-field { display: flex; flex-direction: column; gap: 0.4rem; }
.bs-share-label { font-size: 0.875rem; font-weight: 500; }

.bs-share-radio-group { display: flex; flex-direction: column; gap: 0.4rem; }
.bs-share-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* POI dropdown toggle */
.bs-share-poi-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  background: var(--bg);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s;
}
.bs-share-poi-dropdown:hover { border-color: var(--teal); }

/* POI checklist */
.bs-share-poi-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  padding: 0.4rem 0;
  margin-top: 0.25rem;
}
.bs-share-poi-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.1s;
}
.bs-share-poi-item:hover { background: var(--bg); }
.bs-share-poi-empty {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Museum select */
.bs-share-select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bs-share-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,107,92,0.15);
}

/* Warning block */
.bs-share-warning {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: #FFF8E1;
  border: 1px solid #F0C040;
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  font-size: 0.825rem;
  color: #7A5200;
}
