:root {
  --primary: #005dac;
  --primary-light: #e8f1fb;
  --text: #191c1e;
  --muted: #6b7280;
  --surface: #f4f6f9;
  --white: #ffffff;
  --danger: #dc3545;
  --success-color: #006d3c;
  --gold: #d6aa57;
  --radius: 8px;
  --line: #d1d9e6;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}

.topbar {
  background: var(--white);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 93, 172, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-item {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}

.tab-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.tab-item.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 93, 172, 0.08);
  padding: 24px;
  margin-bottom: 0;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary-light);
}

.card-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.card-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 700;
}

.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 93, 172, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-hint {
  font-size: 13px;
  color: var(--muted);
}

input[type="color"] {
  width: 56px;
  height: 44px;
  padding: 4px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 40px;
  white-space: nowrap;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #004a8f;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  min-height: 34px;
}

.logo-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.logo-preview {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  padding: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
  position: relative;
  margin-bottom: 20px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-zone-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.upload-zone-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.gallery-hint {
  font-size: 13px;
  color: var(--muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.gallery-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  min-height: 60px;
}

.gallery-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  cursor: grab;
  transition: box-shadow 0.2s;
}

.gallery-thumb:active {
  cursor: grabbing;
}

.gallery-thumb.dragging {
  opacity: 0.45;
}

.gallery-thumb.drag-over {
  box-shadow: 0 0 0 3px var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.thumb-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  background: rgba(220, 53, 69, 0.88);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-thumb:hover .thumb-delete {
  opacity: 1;
}

.gallery-caption-editor {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.gallery-caption-editor-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.gallery-caption-editor-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.gallery-caption-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.gallery-caption-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fbfdff;
}

.gallery-caption-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.gallery-caption-fields {
  min-width: 0;
}

.gallery-caption-meta {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.schedule-activity-editor {
  display: grid;
  gap: 16px;
}

.schedule-activity-editor-head h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.schedule-activity-editor-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.schedule-activity-list {
  display: grid;
  gap: 14px;
}

.schedule-activity-item {
  display: grid;
  grid-template-columns: 68px minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5ebf4;
  border-radius: 10px;
  background: #fbfdff;
}

.schedule-activity-preview {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.schedule-activity-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.btn-danger:hover {
  background: #ffe4e6;
}

.admin-registered-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.admin-registered-head,
.admin-registered-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 90px 110px minmax(110px, 1.2fr) 120px;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
}

.admin-registered-head {
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-registered-row {
  background: #fff;
  border-top: 1px solid #edf2f7;
  font-size: 14px;
}

/* ── Attendees management ───────────────────────────── */
.attendees-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.attendees-stat {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attendees-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.attendees-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.attendees-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.attendees-search,
.attendees-filter {
  height: 40px;
  font-size: 14px;
}

.attendees-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.attendees-table-head,
.attendees-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.6fr) 80px 80px 110px minmax(0, 1.4fr) 120px 90px 110px;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
  font-size: 13px;
}

.attendees-table-head {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.attendees-row {
  background: #fff;
  border-top: 1px solid #edf2f7;
}

.attendees-row:hover { background: #f9fafb; }

.attendees-row > span {
  word-break: break-word;
  overflow-wrap: break-word;
}

.attendees-row .attendees-note {
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.attendees-empty {
  padding: 28px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  background: #fff;
}

.attendees-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.attendees-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.attendees-status.confirmed {
  background: #d1fae5;
  color: #065f46;
}

.attendees-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.attendees-actions button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.attendees-actions .btn-confirm {
  border-color: #10b981;
  color: #047857;
}

.attendees-actions .btn-confirm:hover {
  background: #10b981;
  color: #fff;
}

.attendees-actions .btn-unconfirm {
  border-color: #f59e0b;
  color: #b45309;
}

.attendees-actions .btn-unconfirm:hover {
  background: #f59e0b;
  color: #fff;
}

.attendees-actions .btn-delete {
  border-color: #ef4444;
  color: #b91c1c;
}

.attendees-actions .btn-delete:hover {
  background: #ef4444;
  color: #fff;
}

.attendees-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.attendees-pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s;
}

.attendees-pagination button:hover { background: #f3f4f6; }
.attendees-pagination button.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

@media (max-width: 960px) {
  .attendees-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .attendees-toolbar .attendees-search { grid-column: 1 / -1; }

  .attendees-table-head { display: none; }
  .attendees-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 14px;
  }
  .attendees-row > span::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .attendees-row .attendees-cell-actions {
    grid-column: 1 / -1;
  }
}

#toast-container {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: 10px;
  padding: 13px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 260px;
  max-width: 360px;
  border-left: 4px solid transparent;
  animation: toastIn 0.3s ease;
  pointer-events: all;
}

.toast.success {
  border-color: var(--success-color);
}

.toast.error {
  border-color: var(--danger);
}

.toast-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.live-editor-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
}

.live-editor-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.live-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-editor-sidebar-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fcfdff;
}

.live-editor-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.live-editor-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.live-editor-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.live-editor-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.live-editor-side-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.live-editor-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.live-editor-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-editor-section-btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.live-editor-section-btn:hover {
  border-color: #a9c5ef;
  background: #f8fbff;
}

.live-editor-section-btn.active {
  border-color: #9abdf0;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.live-editor-main {
  min-width: 0;
}

.live-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.live-editor-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-editor-toolbar-title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
}

.live-editor-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-editor-device-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #f6f9fc;
  border: 1px solid #dbe3ef;
}

.live-editor-device-btn {
  min-width: 86px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.live-editor-device-btn.active {
  background: #101828;
  color: #fff;
  font-weight: 700;
}

.live-editor-preview-stage {
  padding: 14px;
  border-radius: 18px;
  background: #eef3f8;
  border: 1px solid #dde6f0;
}

.live-editor-preview-shell {
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 290px);
  min-height: 680px;
  border-radius: 22px;
  overflow: hidden;
  background: #c8d3df;
  transition: width 0.25s ease;
}

.live-editor-preview-stage.is-tablet .live-editor-preview-shell {
  width: 860px;
  max-width: 100%;
}

.live-editor-preview-stage.is-mobile .live-editor-preview-shell {
  width: 412px;
  max-width: 100%;
}

.live-editor-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.editor-modal[hidden] {
  display: none;
}

.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.editor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.editor-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.editor-modal-dialog.is-wide {
  width: min(1120px, calc(100vw - 32px));
}

.editor-modal-head,
.editor-modal-footer {
  padding: 18px 22px;
  border-bottom: 1px solid #edf2f7;
}

.editor-modal-footer {
  border-top: 1px solid #edf2f7;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-modal-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.editor-modal-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.editor-modal-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.editor-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.editor-modal-body {
  padding: 20px 22px;
  overflow: auto;
  background: #f8fafc;
}

.editor-modal-status {
  font-size: 13px;
  color: var(--muted);
}

.editor-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section-card,
.content-block,
.content-array-item,
.tool-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.content-section-card {
  padding: 14px;
  margin-bottom: 14px;
}

.content-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.content-object {
  border-left: 2px solid #e5e7eb;
  padding-left: 10px;
  margin: 10px 0;
}

.content-object-title {
  font-size: 12px;
  font-weight: 700;
  color: #475467;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-field {
  margin-bottom: 10px;
}

.content-block {
  padding: 10px;
  margin: 10px 0;
}

.content-block-head,
.content-array-item-head,
.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.content-block-title,
.content-array-item-title,
.tool-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
}

.content-array-item {
  padding: 10px;
  margin: 8px 0;
  background: #f8fafc;
}

.content-empty {
  font-size: 13px;
  color: #667085;
  padding: 10px 0;
}

.tool-card {
  padding: 14px;
  margin-bottom: 16px;
}

.tool-card-copy {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.tool-inline {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.logo-preview-admin {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px;
}

.gallery-caption-chip {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .live-editor-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 10px 14px;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    flex-wrap: wrap;
  }

  .admin-wrap {
    padding: 16px 12px 80px;
  }

  .card {
    padding: 16px;
  }

  .card-head {
    margin-bottom: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid-admin {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .logo-row {
    flex-direction: column;
  }

  .gallery-caption-item {
    grid-template-columns: 1fr;
  }

  .admin-registered-head {
    display: none;
  }

  .admin-registered-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .schedule-activity-item {
    grid-template-columns: 1fr;
  }

  .schedule-activity-preview,
  .schedule-activity-actions {
    justify-self: start;
  }

  .live-editor-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .live-editor-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .live-editor-device-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .live-editor-device-btn {
    flex: 1;
    min-width: 0;
  }

  .live-editor-preview-shell,
  .live-editor-preview-stage.is-mobile .live-editor-preview-shell,
  .live-editor-preview-stage.is-tablet .live-editor-preview-shell {
    width: 100%;
    min-height: 520px;
    height: 70vh;
  }

  .editor-modal-dialog,
  .editor-modal-dialog.is-wide {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .editor-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-modal-actions {
    width: 100%;
  }

  .editor-modal-actions .btn {
    flex: 1;
  }
}
