:root {
  --bg: #fffcf6;
  --surface: rgba(255, 252, 246, 0.9);
  --surface-strong: #fffdf8;
  --line: rgba(187, 148, 58, 0.18);
  --text: #4a3714;
  --muted: #7a6740;
  --primary: #bb943a;
  --primary-deep: #8a6a20;
  --primary-soft: rgba(187, 148, 58, 0.14);
  --success: #1a8f63;
  --success-soft: rgba(26, 143, 99, 0.14);
  --warning: #c98619;
  --warning-soft: rgba(201, 134, 25, 0.16);
  --shadow: 0 28px 80px rgba(126, 97, 31, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

.rebodied-ticket-panel,
.rebodied-ticket-card,
.ticket-scanner,
.ticket-manual-form,
.ticket-scan-result {
  border: 1px solid rgba(143, 109, 34, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
}

.rebodied-ticket-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
}

.rebodied-ticket-panel h3 {
  margin: 6px 0;
}

.rebodied-ticket-panel p {
  margin: 0;
}

.rebodied-ticket-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  margin-top: 16px;
}

.rebodied-ticket-qr {
  width: 132px;
  height: 132px;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
}

.ticket-scanner {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.ticket-scanner-video {
  width: 100%;
  min-height: 320px;
  border-radius: 8px;
  background: #111827;
  object-fit: cover;
}

.ticket-scanner-actions,
.ticket-manual-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.ticket-manual-form {
  padding: 14px;
}

.ticket-manual-form label {
  flex: 1 1 260px;
}

.ticket-scan-result {
  padding: 14px 16px;
  font-weight: 700;
}

.ticket-scan-result.is-success {
  border-color: rgba(34, 127, 76, 0.3);
  background: rgba(232, 247, 239, 0.9);
  color: #16613a;
}

.ticket-scan-result.is-error {
  border-color: rgba(190, 72, 72, 0.3);
  background: rgba(255, 239, 239, 0.9);
  color: #8c2424;
}

@media (max-width: 700px) {
  .rebodied-ticket-panel,
  .rebodied-ticket-card {
    align-items: stretch;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(241, 232, 203, 0.82), transparent 24%),
    radial-gradient(circle at bottom right, rgba(214, 193, 137, 0.36), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #fff8ea 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(126, 97, 31, 0.18);
  opacity: 0.96;
}

.secondary-button:disabled,
.secondary-button.is-disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.55;
}

.secondary-button:disabled:hover,
.secondary-button.is-disabled:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.55;
}

.primary-button {
  padding: 14px 22px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.secondary-button {
  padding: 12px 18px;
  color: var(--primary-deep);
  background: rgba(187, 148, 58, 0.12);
}

.danger-button {
  padding: 12px 18px;
  color: #9a2f22;
  background: rgba(182, 61, 44, 0.12);
}

.secondary-button-strong {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.flash-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1200;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.flash {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(67, 46, 10, 0.2);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.flash:hover .flash-progress-bar,
.flash:focus-within .flash-progress-bar {
  animation-play-state: paused;
}

.flash-is-hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.flash-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.flash-copy strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.flash-copy p {
  margin: 0;
  color: inherit;
  line-height: 1.55;
}

.flash-indicator {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flash-close {
  align-self: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.flash-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.24);
}

.flash-progress-track {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.flash-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  animation: flash-progress-shrink var(--flash-duration, 2600ms) linear forwards;
}

.flash-success {
  color: #156f49;
  border-color: rgba(22, 122, 79, 0.26);
  background: linear-gradient(180deg, rgba(241, 255, 247, 0.98), rgba(224, 249, 234, 0.96));
}

.flash-success .flash-indicator {
  color: #ffffff;
  background: linear-gradient(135deg, #20a26b, #156f49);
}

.flash-success .flash-progress-bar {
  background: linear-gradient(90deg, rgba(32, 162, 107, 0.9), rgba(21, 111, 73, 0.95));
}

.flash-error {
  color: #a43131;
  border-color: rgba(183, 47, 47, 0.24);
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.99), rgba(255, 229, 229, 0.97));
}

.flash-error .flash-indicator {
  color: #ffffff;
  background: linear-gradient(135deg, #cf4545, #a43131);
}

.flash-error .flash-progress-bar {
  background: linear-gradient(90deg, rgba(207, 69, 69, 0.88), rgba(164, 49, 49, 0.96));
}

@keyframes flash-progress-shrink {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  width: min(1180px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-shell-signup {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
}

.auth-showcase {
  padding: 52px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(160deg, #e3cf98 0%, #bb943a 46%, #4a3714 100%);
  color: white;
}

.auth-showcase h1,
.auth-panel h2,
.topbar-title,
.hero-panel h1,
.panel-heading h2,
.card-grid h3,
.not-found-card h1,
.mini-blog-card h3 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  letter-spacing: -0.03em;
}

.auth-showcase h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 0.96;
}

.auth-copy {
  max-width: 52ch;
  margin: 18px 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.auth-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.84);
}

.auth-feature-list,
.checklist,
.list-stack {
  display: grid;
  gap: 14px;
}

.auth-feature-list {
  margin-top: 34px;
}

.auth-feature-card,
.auth-quote-card,
.checklist-item,
.snapshot-card,
.editorial-note,
.sidebar-summary,
.sidebar-user {
  border: 1px solid var(--line);
  border-radius: 22px;
}

.auth-feature-card,
.auth-quote-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.auth-feature-card strong,
.auth-quote-card strong {
  display: block;
  margin-bottom: 8px;
}

.auth-feature-card span,
.auth-quote-card span {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: 44px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(255, 249, 239, 0.96));
}

.auth-panel-inner {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.auth-panel h2 {
  font-size: 2.3rem;
  line-height: 1.02;
}

.auth-muted,
.topbar-subtitle,
.panel-copy,
.metric-card p,
.snapshot-card span,
.checklist-item,
.product-card p,
.blog-card p,
.not-found-card p,
.mini-blog-card p,
.sidebar-brand-tagline {
  color: var(--muted);
  line-height: 1.65;
}

.auth-form,
.form-grid {
  display: grid;
  gap: 16px;
}

.auth-form {
  margin-top: 20px;
}

.auth-form label,
.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.auth-form input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(187, 148, 58, 0.4);
  box-shadow: 0 0 0 4px rgba(187, 148, 58, 0.14);
}

.auth-button {
  width: 100%;
  margin-top: 6px;
}

.auth-footnote {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-footnote a {
  color: var(--primary-deep);
  font-weight: 700;
}

.auth-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.auth-support-links form {
  margin: 0;
}

.auth-support-links a {
  color: var(--primary-deep);
  font-weight: 700;
}

.auth-support-button {
  border: none;
  cursor: pointer;
  font: inherit;
}

.auth-helper-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.72);
}

.auth-helper-card p,
.auth-helper-card strong {
  margin: 0;
}

.auth-helper-card a {
  color: var(--primary-deep);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auth-code-block {
  display: block;
  padding: 14px 16px;
  border: 1px dashed rgba(187, 148, 58, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-deep);
  font-weight: 700;
  background: rgba(187, 148, 58, 0.12);
}

.dashboard-page {
  padding: 22px;
}

.dashboard-nav-open {
  overflow: hidden;
}

.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 22px;
}

.dashboard-ambient {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.65;
  pointer-events: none;
}

.dashboard-ambient-one {
  top: 30px;
  right: 70px;
  background: rgba(187, 148, 58, 0.2);
}

.dashboard-ambient-two {
  bottom: 30px;
  left: 100px;
  background: rgba(234, 220, 173, 0.72);
}

.dashboard-sidebar {
  position: sticky;
  top: 22px;
  height: fit-content;
}

.dashboard-sidebar-backdrop,
.sidebar-mobile-bar,
.dashboard-sidebar-toggle,
.dashboard-floating-toggle {
  display: none;
}

.sidebar-card,
.panel,
.metric-card,
.hero-panel,
.topbar,
.not-found-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-card {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.sidebar-mobile-bar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-mobile-bar .eyebrow {
  margin-bottom: 0;
}

.dashboard-sidebar-close,
.dashboard-sidebar-toggle,
.dashboard-floating-toggle {
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}

.dashboard-sidebar-close {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.dashboard-sidebar-close span {
  transform: translateY(-1px);
}

.sidebar-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.sidebar-brand-copy,
.topbar-copy,
.hero-copy,
.panel-heading > div {
  min-width: 0;
}

.sidebar-brand-title {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(1.75rem, 2vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  grid-column: 1 / -1;
}

.sidebar-brand-tagline {
  margin: 0;
  grid-column: 1 / -1;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 248, 229, 0.82);
}

.sidebar-summary,
.sidebar-user,
.snapshot-card,
.editorial-note,
.hero-panel,
.metric-card,
.mini-blog-card,
.checklist-item {
  background: rgba(255, 250, 240, 0.72);
}

.sidebar-summary,
.sidebar-user {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.sidebar-summary span,
.sidebar-user span,
.metric-label,
.card-meta-row span,
.list-row span,
.snapshot-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-user strong,
.sidebar-summary strong {
  display: block;
  margin-top: 4px;
}

.sidebar-signout {
  width: 100%;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.topbar,
.hero-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.topbar-copy,
.hero-copy {
  flex: 1 1 420px;
}

.topbar-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.topbar-heading {
  display: grid;
}

.topbar-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.topbar-heading {
  gap: 12px;
  max-width: 60ch;
}

.topbar-meta,
.hero-actions {
  flex: 0 0 auto;
}

.topbar-meta {
  display: grid;
  gap: 12px;
  align-content: start;
  width: min(100%, 320px);
}

.topbar-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  width: 100%;
}

.topbar-subtitle {
  max-width: none;
  margin: 0;
}

.topbar-chip {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.96), rgba(255, 246, 221, 0.9));
  border: 1px solid var(--line);
  min-width: 0;
  width: 100%;
}

.topbar-chip strong {
  display: block;
  margin-top: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topbar-chip-action {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topbar-chip-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(67, 46, 10, 0.08);
  background: rgba(255, 252, 240, 0.98);
}

.topbar-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-sidebar-toggle,
.dashboard-floating-toggle {
  margin-bottom: 0;
  font-weight: 700;
  min-height: 48px;
  padding: 0 16px;
  box-shadow: 0 10px 22px rgba(67, 46, 10, 0.06);
}

.dashboard-sidebar-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-sidebar-toggle-icon::before,
.dashboard-sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-sidebar-toggle-icon::before {
  top: -6px;
}

.dashboard-sidebar-toggle-icon::after {
  top: 6px;
}

.topbar-utility .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(187, 148, 58, 0.08);
  letter-spacing: 0.13em;
}

.hero-panel h1 {
  max-width: none;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.94;
  width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-grid-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.content-grid-wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.content-grid-overview {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: start;
}

.panel {
  padding: 28px;
}

.panel-tight {
  height: fit-content;
}

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-heading > div {
  flex: 1 1 260px;
}

.panel-heading h2 {
  font-size: 1.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-deep);
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--primary-soft);
}

.snapshot-grid,
.blog-mini-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.snapshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snapshot-card {
  padding: 20px;
}

.snapshot-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.14rem;
}

.editorial-note {
  margin-top: 20px;
  padding: 18px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row strong {
  display: block;
}

.list-row-spacious {
  padding: 14px 0 18px;
}

.list-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.activity-stack,
.editorial-list {
  display: grid;
  gap: 14px;
}

.activity-card,
.editorial-feature-card,
.editorial-list-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.84);
}

.activity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.activity-card-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
  flex: 1;
}

.activity-avatar {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--primary-deep);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(187, 148, 58, 0.2), rgba(244, 233, 201, 0.96));
}

.activity-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.activity-title-row {
  display: grid;
  gap: 6px;
}

.activity-title-row strong,
.editorial-feature-body h3,
.editorial-list-copy h3 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.activity-order-meta,
.activity-footnote,
.editorial-feature-meta,
.editorial-feature-footer,
.editorial-list-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.activity-order-meta {
  display: block;
  overflow-wrap: anywhere;
}

.activity-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(187, 148, 58, 0.12);
}

.activity-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.activity-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-card-side {
  display: grid;
  justify-items: end;
  gap: 12px;
  flex-shrink: 0;
}

.activity-tag-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-amount {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.panel-editorial {
  display: grid;
  gap: 16px;
}

.editorial-desktop-stack {
  display: grid;
  gap: 14px;
}

.editorial-carousel-mobile {
  display: none;
}

.editorial-feature-card {
  overflow: hidden;
}

.editorial-feature-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.editorial-feature-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.editorial-feature-meta,
.editorial-feature-footer,
.editorial-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editorial-feature-body h3 {
  font-size: 1.45rem;
  line-height: 1.04;
}

.editorial-feature-body p,
.editorial-list-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.editorial-list-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  align-items: center;
}

.editorial-list-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
}

.editorial-list-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.editorial-list-copy h3 {
  font-size: 1.05rem;
  line-height: 1.08;
}

.inventory-pill,
.status-chip,
.payment-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.inventory-healthy,
.payment-paid,
.status-delivered,
.status-published {
  color: var(--success);
  background: var(--success-soft);
}

.inventory-low,
.payment-pending,
.status-awaiting-payment {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-confirmed,
.status-draft,
.status-dispatched,
.status-preparing {
  color: var(--primary-deep);
  background: rgba(187, 148, 58, 0.14);
}

.empty-state {
  padding: 20px 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.blog-mini-grid,
.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-blog-card,
.product-card,
.blog-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.mini-blog-image,
.product-image,
.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-blog-image,
.product-card-media,
.blog-image {
  aspect-ratio: 4 / 3;
}

.mini-blog-body,
.product-card-body,
.blog-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.mini-blog-body h3,
.product-card h3,
.blog-card h3,
.not-found-card h1 {
  font-size: 1.25rem;
}

.mini-blog-body h3,
.product-card h3,
.blog-card h3 {
  margin: 0;
}

.card-meta-row,
.card-footer-row,
.blog-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-product-list {
  display: grid;
  gap: 14px;
}

.dashboard-product-list-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(126, 97, 31, 0.08);
}

.dashboard-product-list-item summary {
  list-style: none;
}

.dashboard-product-list-item summary::-webkit-details-marker {
  display: none;
}

.dashboard-product-list-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
}

.dashboard-product-list-main,
.dashboard-product-list-meta,
.dashboard-product-list-copy {
  display: flex;
  min-width: 0;
}

.dashboard-product-list-main {
  flex: 1 1 360px;
  align-items: center;
  gap: 16px;
}

.dashboard-product-list-thumb-wrap {
  width: 76px;
  height: 76px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid rgba(187, 148, 58, 0.16);
  background: rgba(255, 248, 229, 0.62);
}

.dashboard-product-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-product-list-copy {
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
}

.dashboard-product-list-title {
  overflow: hidden;
  color: var(--text);
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-product-list-subline,
.dashboard-product-list-detail-meta span {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-product-list-meta {
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-product-list-price {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.dashboard-product-list-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(187, 148, 58, 0.12);
}

.dashboard-product-list-toggle-close,
.dashboard-product-list-item[open] .dashboard-product-list-toggle-open {
  display: none;
}

.dashboard-product-list-item[open] .dashboard-product-list-toggle-close {
  display: inline;
}

.dashboard-product-list-panel {
  padding: 0 20px 20px;
}

.dashboard-product-list-detail-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.78);
}

.dashboard-product-list-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
}

.dashboard-product-list-detail-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dashboard-product-list-detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-product-list-description {
  margin: 0;
  color: var(--text);
  line-height: 1.68;
}

.dashboard-product-list-detail-meta {
  display: grid;
  gap: 8px;
}

.dashboard-size-stock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-size-stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(187, 148, 58, 0.12);
}

.dashboard-size-stock-chip.is-low {
  color: var(--warning);
  background: var(--warning-soft);
}

.dashboard-event-library-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-event-list {
  display: grid;
  gap: 14px;
}

.dashboard-event-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(126, 97, 31, 0.08);
}

.dashboard-event-list-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dashboard-event-list-thumb-wrap {
  width: 84px;
  height: 84px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid rgba(187, 148, 58, 0.16);
  background: rgba(255, 248, 229, 0.62);
}

.dashboard-event-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-event-list-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-event-list-title {
  overflow: hidden;
  color: var(--text);
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-event-list-subline,
.dashboard-event-list-meta-line {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-event-list-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-event-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-composer-grid {
  align-items: start;
}

.admin-form-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.badge-soft {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.form-grid-friendly {
  gap: 18px;
}

.image-upload-field {
  display: grid;
  gap: 10px;
}

.upload-field-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.image-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.image-upload-surface {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 236, 0.96));
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.image-upload-surface:hover {
  transform: translateY(-1px);
  border-color: rgba(187, 148, 58, 0.34);
  box-shadow: 0 18px 36px rgba(126, 97, 31, 0.1);
}

.image-upload-field:focus-within .image-upload-surface {
  border-color: rgba(187, 148, 58, 0.42);
  box-shadow: 0 0 0 4px rgba(187, 148, 58, 0.12);
}

.image-upload-preview {
  display: block;
  width: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(187, 148, 58, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.image-upload-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.image-upload-copy strong {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.image-upload-meta {
  color: var(--muted);
  line-height: 1.55;
}

.image-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(187, 148, 58, 0.12);
}

.product-size-inventory-section {
  gap: 14px;
}

.product-size-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.product-size-inventory-grid label {
  display: grid;
  gap: 10px;
}

.product-size-inventory-empty[hidden] {
  display: none !important;
}

.event-gallery-composer {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 248, 236, 0.94));
}

.event-gallery-composer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.event-gallery-composer-header > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-gallery-composer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.event-gallery-composer-header strong,
.event-gallery-item-label {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.event-gallery-composer-header span {
  color: var(--muted);
  line-height: 1.55;
}

.event-gallery-composer-list {
  display: grid;
  gap: 16px;
  max-height: min(54vh, 540px);
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
  scrollbar-width: thin;
}

.event-gallery-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 18px;
  border: 1px solid rgba(187, 148, 58, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(126, 97, 31, 0.05);
}

.event-gallery-item[hidden] {
  display: none !important;
}

.event-gallery-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
}

.event-gallery-remove {
  color: var(--danger);
  font-weight: 700;
}

.event-gallery-batch-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.event-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.event-editor-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.event-editor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(50, 35, 11, 0.34);
  backdrop-filter: blur(8px);
}

.event-editor-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1260px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 30px 70px rgba(67, 46, 10, 0.22);
}

.event-editor-modal-body {
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
}

.event-editor-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(67, 46, 10, 0.12);
}

.event-editor-modal-close::before {
  content: "\00d7";
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.event-editor-dismiss {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.form-section {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.72);
}

.form-section strong {
  font-size: 1rem;
}

.form-section span,
.field-note {
  color: var(--muted);
  line-height: 1.55;
}

.field-note {
  display: block;
  font-size: 0.84rem;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.admin-preview-panel {
  display: grid;
  gap: 18px;
}

.admin-preview-card,
.admin-event-card {
  box-shadow: none;
}

.form-grid textarea,
.form-grid .full-width,
.form-grid button {
  grid-column: 1 / -1;
}

.checklist-item {
  padding: 18px;
}

.card-action-row,
.table-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-action-row {
  margin-top: 2px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.confirm-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(50, 35, 11, 0.34);
  backdrop-filter: blur(8px);
}

.confirm-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 30px 70px rgba(67, 46, 10, 0.22);
}

.confirm-modal-copy {
  display: grid;
  gap: 10px;
}

.confirm-modal-copy h2 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.confirm-modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.confirm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.confirm-modal-confirm {
  border: 0;
}

.confirm-modal-confirm.is-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #cf4545, #a43131);
}

.confirm-modal-confirm.is-neutral {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-review-list {
  display: grid;
  gap: 0;
}

.security-stack,
.recovery-code-grid {
  display: grid;
  gap: 16px;
}

.security-note-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.78);
}

.security-note-card strong {
  display: block;
  margin-bottom: 8px;
}

.security-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.security-note-card-warning {
  color: #8b5a13;
  border-color: rgba(187, 148, 58, 0.28);
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.98), rgba(252, 239, 198, 0.96));
}

.security-note-card-warning p {
  color: inherit;
}

.recovery-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recovery-code-pill {
  display: block;
  padding: 16px 18px;
  border: 1px dashed rgba(187, 148, 58, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.security-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dashboard-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-review-item:first-child {
  padding-top: 0;
}

.dashboard-review-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-review-main {
  min-width: 0;
}

.dashboard-review-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.dashboard-review-title-row,
.dashboard-review-meta,
.dashboard-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-review-title-row h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.dashboard-review-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-review-rating {
  color: var(--primary);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.dashboard-review-message {
  margin: 16px 0 0;
  max-width: 72ch;
  color: var(--text);
}

.dashboard-review-actions {
  justify-content: flex-end;
  align-items: flex-start;
}

.order-primary {
  display: grid;
  gap: 4px;
}

.order-primary span {
  color: var(--muted);
  font-size: 0.9rem;
}

.not-found-shell {
  display: grid;
  place-items: center;
  width: min(720px, 100%);
}

.not-found-card {
  width: 100%;
  padding: 44px;
  text-align: center;
}

.not-found-card h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.not-found-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1260px) {
  .content-grid,
  .content-grid-wide,
  .metric-grid,
  .metric-grid-triple,
  .blog-mini-grid,
  .card-grid,
  .auth-shell,
  .auth-shell-signup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .dashboard-page {
    padding: 14px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1250;
    width: min(360px, calc(100vw - 18px));
    height: 100dvh;
    padding: 10px;
    transform: translateX(calc(-100% - 14px));
    transition: transform 0.24s ease;
    pointer-events: none;
  }

  .dashboard-nav-open .dashboard-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  .dashboard-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1240;
    border: 0;
    padding: 0;
    background: rgba(37, 26, 8, 0.38);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .dashboard-nav-open .dashboard-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-card {
    height: calc(100dvh - 20px);
    gap: 20px;
    padding: 22px;
    overflow-y: auto;
    border-radius: 28px;
  }

  .dashboard-sidebar-close,
  .dashboard-sidebar-toggle,
  .dashboard-floating-toggle {
    display: inline-flex;
  }

  .sidebar-mobile-bar {
    display: flex;
  }

  .sidebar-brand {
    row-gap: 8px;
  }

  .sidebar-brand-title {
    font-size: 1.9rem;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nav-link {
    min-height: 52px;
    justify-content: center;
    padding: 14px 12px;
    text-align: center;
  }

  .sidebar-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .sidebar-summary > div {
    min-width: 0;
  }

  .sidebar-summary strong {
    font-size: 1rem;
  }

  .sidebar-user {
    gap: 12px;
  }

  .sidebar-signout {
    width: 100%;
  }

  .dashboard-main {
    gap: 14px;
    padding-top: 58px;
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .topbar-copy,
  .topbar-meta {
    flex: 1 1 100%;
    width: 100%;
  }

  .topbar-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .topbar-subtitle {
    font-size: 0.94rem;
  }

  .topbar-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .topbar-chip {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
  }

  .dashboard-floating-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1230;
    margin: 0;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .topbar-utility .eyebrow {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .auth-page,
  .dashboard-page {
    padding: 12px;
  }

  .dashboard-main {
    padding-top: 54px;
  }

  .dashboard-floating-toggle {
    top: 12px;
    left: 12px;
  }

  .flash-stack {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .auth-showcase,
  .auth-panel,
  .panel,
  .sidebar-card,
  .metric-card,
  .hero-panel,
  .topbar,
  .not-found-card {
    padding: 18px;
  }

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

  .dashboard-event-list-item {
    grid-template-columns: 1fr;
  }

  .dashboard-product-list-summary,
  .dashboard-product-list-main,
  .dashboard-product-list-meta,
  .dashboard-product-list-detail-grid,
  .recovery-code-grid,
  .event-gallery-item {
    grid-template-columns: 1fr;
  }

  .dashboard-event-list-main {
    display: grid;
  }

  .dashboard-event-list-actions,
  .dashboard-event-library-actions {
    justify-content: flex-start;
  }

  .dashboard-event-list-thumb-wrap {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .image-upload-surface {
    grid-template-columns: 1fr;
  }

  .image-upload-preview {
    width: 100%;
    max-width: 220px;
  }

  .confirm-modal-dialog {
    padding: 22px;
  }

  .confirm-modal-actions {
    justify-content: stretch;
  }

  .confirm-modal-actions .secondary-button,
  .confirm-modal-actions .confirm-modal-confirm {
    width: 100%;
  }

  .dashboard-product-list-summary,
  .dashboard-product-list-main,
  .dashboard-product-list-meta {
    display: grid;
    justify-content: stretch;
  }

  .dashboard-product-list-meta {
    justify-items: start;
  }

  .dashboard-product-list-toggle {
    min-width: 0;
  }

  .dashboard-product-list-detail-grid {
    display: grid;
  }

  .dashboard-product-list-detail-image {
    max-width: 220px;
  }

  .panel-heading,
  .auth-support-links,
  .admin-form-stats {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .panel-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .sidebar-nav,
  .topbar-meta,
  .sidebar-summary {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    padding: 20px;
  }

  .nav-link {
    justify-content: flex-start;
    text-align: left;
  }

  .event-gallery-composer {
    padding: 18px;
  }

  .event-gallery-composer-actions {
    justify-content: flex-start;
  }

  .event-gallery-composer-list {
    max-height: 420px;
  }

  .event-editor-modal {
    padding: 10px;
  }

  .event-editor-modal-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 26px;
  }

  .event-editor-modal-body {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .event-editor-modal-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .topbar-chip {
    min-width: 0;
    width: 100%;
    border-radius: 16px;
  }

  .topbar-utility {
    gap: 8px;
  }

  .topbar-utility .eyebrow {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .editorial-carousel-mobile {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86%, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 8px 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .editorial-carousel-mobile::-webkit-scrollbar {
    display: none;
  }

  .editorial-carousel-card {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .editorial-desktop-stack {
    display: none;
  }

  .topbar-title,
  .hero-panel h1 {
    line-height: 1.02;
  }

  .metric-card strong,
  .activity-amount,
  .dashboard-review-title-row h3 {
    overflow-wrap: anywhere;
  }

  .metric-card strong {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  .activity-card,
  .activity-card-main,
  .editorial-list-item,
  .dashboard-review-item,
  .dashboard-review-header {
    grid-template-columns: 1fr;
  }

  .activity-card,
  .editorial-list-item,
  .dashboard-review-item {
    display: grid;
  }

  .activity-card-side,
  .activity-tag-row,
  .dashboard-review-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .activity-footnote,
  .editorial-feature-meta,
  .editorial-feature-footer,
  .editorial-list-meta,
  .security-action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-user {
    justify-items: start;
  }

  .list-meta,
  .activity-card-side {
    justify-items: start;
  }
}

@media (max-width: 540px) {
  .dashboard-page {
    padding: 10px;
  }

  .dashboard-main {
    gap: 12px;
    padding-top: 50px;
  }

  .sidebar-card,
  .panel,
  .metric-card,
  .hero-panel,
  .topbar,
  .not-found-card {
    border-radius: 24px;
  }

  .topbar,
  .hero-panel {
    gap: 14px;
    padding: 16px;
  }

  .sidebar-card,
  .panel,
  .metric-card {
    padding: 16px;
  }

  .dashboard-sidebar {
    width: min(100vw - 12px, 340px);
    padding: 6px;
  }

  .sidebar-card {
    height: calc(100dvh - 12px);
  }

  .dashboard-sidebar-toggle,
  .dashboard-floating-toggle,
  .dashboard-sidebar-close {
    min-width: 44px;
    min-height: 44px;
  }

  .dashboard-floating-toggle {
    width: fit-content;
    padding: 0 14px;
    top: 10px;
    left: 10px;
  }

  .editorial-carousel-mobile {
    grid-auto-columns: minmax(90%, 1fr);
  }

  .topbar-subtitle,
  .panel-copy,
  .metric-card p,
  .editorial-feature-body p,
  .editorial-list-copy p {
    font-size: 0.94rem;
  }
}
