/* GuestCam — guest upload, host dashboard, product page */
:root {
  --primary: #BB8588;
  --primary-dark: #9B6A75;
  --bg: #F7F4E8;
  --bg-soft: #EFEBCE;
  --lilac: #E5D4EC;
  --white: #fff;
  --text: #3A3233;
  --muted: #6B5E60;
  --border: #E5DFD0;
  --success: #08A48F;
  --danger: #BB8588;
  --radius: 14px;
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --shadow: 0 8px 24px rgba(58, 50, 51, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--lilac) 130%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  direction: rtl;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; border-radius: 10px; }

/* ---------- Header ---------- */
.eq-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(58, 50, 51, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
}
.eq-header-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}
.eq-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  justify-self: start;
  grid-column: 1;
}
.eq-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.eq-logo .brand-logo,
.eq-logo.brand-logo {
  display: block;
  height: 2.35rem;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}
.eq-logo:hover { opacity: 0.9; }
.eq-title {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Host header badges — single row, end-aligned with logout */
.eq-header-actions-host {
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
}
.eq-header-actions-host .eq-pill {
  max-width: 11rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
}
.eq-header-actions-host .eq-role-badge {
  flex-shrink: 0;
}
.eq-logout-btn {
  flex-shrink: 0;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(58, 50, 51, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}
.eq-logout-btn:hover {
  color: var(--primary-dark);
  border-color: rgba(187, 133, 136, 0.35);
  background: rgba(187, 133, 136, 0.1);
}
.eq-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(58, 50, 51, 0.06);
  border: 1px solid rgba(58, 50, 51, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.eq-product-badge:hover {
  background: rgba(187, 133, 136, 0.14);
  border-color: rgba(187, 133, 136, 0.28);
  color: var(--primary-dark);
}
.eq-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(187, 133, 136, 0.16), rgba(236, 231, 212, 0.7));
  border: 1px solid rgba(187, 133, 136, 0.28);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.eq-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  justify-self: end;
  grid-column: 3;
}
.eq-header-actions .btn-nav-login,
.eq-header-actions .eq-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
.eq-header-actions .btn-nav-login:hover,
.eq-header-actions .eq-nav-login:hover {
  background: var(--primary-dark);
  color: #fff;
}
.eq-site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  flex-wrap: nowrap;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
}
a.eq-site-link,
.eq-site-link {
  color: var(--muted) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
a.eq-site-link:link,
a.eq-site-link:visited,
a.eq-site-link:active,
a.eq-site-link:focus {
  color: var(--muted) !important;
  text-decoration: none !important;
  outline: none;
}
a.eq-site-link:hover,
a.eq-site-link.active,
.eq-site-link:hover,
.eq-site-link.active {
  color: var(--primary-dark) !important;
  text-decoration: none !important;
}

.eq-pill {
  display: inline-flex;
  align-items: center;
  max-width: 14rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(187, 133, 136, 0.18), rgba(229, 212, 236, 0.55));
  border: 1px solid rgba(187, 133, 136, 0.28);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Guest upload header: brand + product on start, event title on end — no absolute overlap */
.eq-header-guest .eq-header-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
  position: static;
}
.eq-header-guest .eq-title {
  position: static;
  left: auto;
  transform: none;
  margin: 0;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(58, 50, 51, 0.05);
  border: 1px solid rgba(58, 50, 51, 0.08);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  pointer-events: auto;
  z-index: auto;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.eq-header-guest .eq-title:hover {
  color: var(--primary-dark);
  background: rgba(187, 133, 136, 0.14);
  border-color: rgba(187, 133, 136, 0.28);
}
.eq-header-guest .eq-logo {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
}
.eq-header-guest .eq-pill {
  position: static;
  z-index: auto;
  margin-inline-start: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(14rem, 52vw);
}

.eq-main {
  max-width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  overflow: visible;
}
.eq-main-narrow { max-width: 520px; }

.eq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.eq-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.eq-error { color: #8a3d42; font-size: 0.875rem; margin-top: 0.5rem; }

.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.field > span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }

/* ---------- Guest upload page ---------- */
.eq-guest-head { text-align: center; margin-bottom: 1.25rem; }
.eq-guest-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
}
.eq-guest-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.35rem; }
.eq-guest-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.eq-guest-event {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(187, 133, 136, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.eq-dropzone {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem 1rem;
  border: 2px dashed rgba(187, 133, 136, 0.45);
  border-radius: var(--radius);
  background: rgba(239, 235, 206, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.eq-dropzone:hover,
.eq-dropzone.is-over {
  border-color: var(--primary);
  background: rgba(229, 212, 236, 0.35);
}
.eq-dropzone-title { font-weight: 700; }
.eq-dropzone-sub { color: var(--muted); font-size: 0.82rem; }

.eq-file-list {
  list-style: none;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.4rem;
}
.eq-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.85rem;
}
.eq-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-file-size { color: var(--muted); flex-shrink: 0; font-size: 0.78rem; }
.eq-file-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.eq-file-remove:hover { color: #8a3d42; }

.eq-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-top: 0.9rem;
}
.eq-progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.2s ease;
}

.eq-success { text-align: center; }
.eq-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(8, 164, 143, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
}

/* ---------- Host dashboard ---------- */
.eq-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 232, 0.65));
  border: 1px solid rgba(187, 133, 136, 0.18);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(58, 50, 51, 0.06);
}
.eq-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: none;
  background: transparent;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: right;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.eq-tab-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: rgba(58, 50, 51, 0.05);
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.eq-tab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}
.eq-tab-label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}
.eq-tab-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.9;
}
.eq-tab:hover:not(.active) {
  background: rgba(187, 133, 136, 0.08);
  color: var(--text);
}
.eq-tab:hover:not(.active) .eq-tab-icon {
  background: rgba(187, 133, 136, 0.14);
  color: var(--primary-dark);
}
.eq-tab.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(187, 133, 136, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.eq-tab.active .eq-tab-icon {
  background: rgba(187, 133, 136, 0.16);
  color: var(--primary-dark);
}
.eq-tab.active .eq-tab-hint {
  color: var(--primary);
  opacity: 1;
}

.eq-panel { display: none; }
.eq-panel.active { display: block; }

.eq-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eq-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.2rem;
}
.eq-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); }
.eq-stat-label { font-size: 0.8rem; color: var(--muted); }

.eq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.eq-kind-filter {
  display: inline-flex;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(58, 50, 51, 0.04);
}
.eq-kind-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.eq-kind-chip svg {
  flex: 0 0 auto;
  opacity: 0.85;
}
.eq-kind-chip:hover {
  color: var(--text);
  background: rgba(187, 133, 136, 0.08);
}
.eq-kind-chip.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(187, 133, 136, 0.35);
}
.eq-kind-chip.is-active svg {
  opacity: 1;
}
.eq-toolbar #refreshBtn {
  min-width: 6.5rem;
  height: 2.55rem;
  box-sizing: border-box;
  border-radius: 10px;
}
.eq-toolbar-spacer { flex: 1; }

.eq-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}
.eq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.eq-item-media {
  aspect-ratio: 1;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.eq-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-item-kind { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 0.5rem; }
.eq-item-body { padding: 0.6rem 0.7rem; display: grid; gap: 0.25rem; }
.eq-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eq-item-meta { font-size: 0.72rem; color: var(--muted); }
.eq-item-msg {
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
}
.eq-item-actions { padding: 0 0.7rem 0.7rem; }

.eq-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

.eq-qr-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) {
  .eq-qr-layout { grid-template-columns: 1fr; }
}
.eq-qr-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.eq-qr-box img {
  width: 100%;
  border-radius: 10px;
  background: #fff;
}
.eq-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  direction: ltr;
}
.eq-link-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.5rem;
}
.eq-link-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  direction: ltr;
  font-size: 0.8rem;
  background: #fff;
}

/* ---------- Product landing ---------- */
.eq-hero {
  position: relative;
  text-align: center;
  padding: 1.5rem 0 2rem;
  overflow: visible;
}
.eq-hero-qr {
  position: absolute;
  top: 0;
  left: max(-0.5rem, calc(50% - 52vw));
  width: clamp(96px, 14vw, 160px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
  filter: drop-shadow(0 10px 24px rgba(58, 50, 51, 0.12));
  animation: eq-qr-float 5.5s ease-in-out infinite;
  z-index: 1;
}
@media (min-width: 1200px) {
  .eq-hero-qr {
    left: -6rem;
  }
}
@keyframes eq-qr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.eq-hero-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(187, 133, 136, 0.14);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.eq-hero-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.65rem; line-height: 1.35; }
.eq-hero-sub {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}
.eq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.eq-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}
.eq-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}
.eq-step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.eq-step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.eq-step p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }

.eq-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.eq-role {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.eq-role h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--primary-dark); }
.eq-role ul { margin: 0 1rem 1rem; color: var(--muted); font-size: 0.875rem; line-height: 1.9; }

.eq-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.toast {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 50;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  max-width: calc(100% - 2rem);
  text-align: center;
}

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .eq-hero-title { font-size: 1.6rem; }
  .eq-hero-qr {
    width: 88px;
    opacity: 0.75;
    top: -0.25rem;
  }
  .eq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-roles { grid-template-columns: 1fr; }
  .eq-header-actions-host .eq-role-badge { display: none; }
  .eq-header-actions-host .eq-pill { max-width: 9rem; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .eq-header-inner {
    padding: 0.7rem 0.9rem;
    gap: 0.55rem 0.75rem;
    grid-template-columns: auto 1fr;
  }
  .eq-brand { grid-column: 1; }
  .eq-header-actions { grid-column: 2; }
  .eq-site-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.15rem;
    padding-top: 0.25rem;
    flex-wrap: wrap;
  }
  .eq-site-link { font-size: 0.85rem; }
  .eq-logo .brand-logo { height: 2rem; }
  .eq-title { font-size: 0.75rem; }
  .eq-pill { max-width: 9rem; font-size: 0.75rem; padding: 0.3rem 0.65rem; }
  .eq-header-actions .btn-ghost,
  .eq-logout-btn { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
  .eq-header-actions .eq-nav-login {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .eq-main { padding: 1.35rem 0.9rem 2.75rem; max-width: calc(100% - 0.5rem); }
  .eq-card { padding: 1rem; border-radius: 12px; }
  .field input, .field textarea { padding: 0.65rem 0.75rem; font-size: 1rem; }

  /* Guest upload */
  .eq-guest-icon { width: 60px; height: 60px; }
  .eq-guest-title { font-size: 1.15rem; }
  .eq-guest-sub { font-size: 0.875rem; }
  .eq-dropzone { padding: 1.5rem 0.75rem; }
  .eq-dropzone-sub { font-size: 0.75rem; }

  /* Host dashboard */
  .eq-tabs { gap: 0.25rem; padding: 0.25rem; margin-bottom: 1rem; border-radius: 14px; }
  .eq-tab { padding: 0.55rem 0.45rem; gap: 0.4rem; }
  .eq-tab-icon { width: 1.9rem; height: 1.9rem; border-radius: 9px; }
  .eq-tab-icon svg { width: 14px; height: 14px; }
  .eq-tab-label { font-size: 0.8rem; }
  .eq-tab-hint { display: none; }

  .eq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .eq-stat { padding: 0.65rem 0.75rem; }
  .eq-stat-value { font-size: 1.15rem; }
  .eq-stat-label { font-size: 0.72rem; }
  /* Last stat (upload time) is wider text — give it a full row, laid out inline */
  .eq-stat:last-child {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
  }
  .eq-stat:last-child .eq-stat-value { font-size: 0.95rem; order: 2; }
  .eq-stat:last-child .eq-stat-label { order: 1; }

  .eq-toolbar { gap: 0.4rem; }
  .eq-kind-filter {
    width: 100%;
    justify-content: stretch;
  }
  .eq-kind-chip {
    flex: 1;
    padding-inline: 0.4rem;
    font-size: 0.75rem;
  }
  .eq-kind-chip svg { display: none; }
  .eq-toolbar #refreshBtn {
    flex: 0 0 auto;
    min-width: 5.5rem;
    height: 2.4rem;
  }
  .eq-toolbar-spacer { display: none; }
  #downloadAllBtn { width: 100%; }

  .eq-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .eq-item-body { padding: 0.5rem 0.55rem; }
  .eq-item-name { font-size: 0.75rem; }
  .eq-item-meta { font-size: 0.68rem; }
  .eq-item-actions { padding: 0 0.55rem 0.55rem; }

  .eq-qr-box { padding: 0.85rem; }
  .eq-qr-box img { max-width: 240px; }
  .eq-link-row { flex-wrap: wrap; }
  /* 16px keeps iOS from zooming in when the field is tapped */
  .eq-link-row input { flex: 1 1 100%; font-size: 1rem; }
  .eq-link-row .btn { flex: 1; }

  /* Landing */
  .eq-hero { padding: 0.5rem 0 1.5rem; }
  .eq-hero-qr { display: none; }
  .eq-hero-title { font-size: 1.4rem; }
  .eq-hero-sub { font-size: 0.9rem; line-height: 1.75; }
  .eq-hero-actions .btn { flex: 1 1 100%; }
  .eq-steps { grid-template-columns: 1fr; gap: 0.6rem; }
  .eq-step { padding: 0.95rem 1rem; }
  .eq-section-title { font-size: 1.05rem; }
}

@media (max-width: 380px) {
  .eq-title { display: none; }
  .eq-header-guest .eq-title { display: none; }
  .eq-role-badge { display: none; }
  .eq-product-badge { font-size: 0.75rem; padding: 0.22rem 0.55rem; }
  .eq-gallery { gap: 0.5rem; }
  .eq-stats { grid-template-columns: 1fr; }
  .eq-stat { grid-template-columns: 1fr auto; align-items: center; }
  .eq-stat-value { order: 2; font-size: 1rem; }
  .eq-stat-label { order: 1; }
}
