/* Public Bulk Add — standalone, no admin nav/sidebar dependency. */

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

:root {
  --primary: #6366f1;
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;

  --border-color: rgba(148, 163, 184, 0.2);
  --border-hover: rgba(148, 163, 184, 0.3);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

  --gradient-bg: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
                 radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --transition-fast: 150ms ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-secondary);
  background-image: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

.pub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg) var(--spacing-xl);
}

.pub-page-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bas-content {
  /* .pub-page is a column flex layout — no auto side-margins here, or
     cross-axis stretch gets defeated and wide descendants can blow the
     page out horizontally instead of scrolling inside their own box. */
  padding: var(--spacing-xl);
  max-width: 1600px;
  min-width: 0;
}

.bas-company-prompt {
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-xl);
  max-width: 480px;
}

.bas-company-prompt h3 {
  margin: 0 0 6px;
}

.bas-company-prompt p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Layout */
.bas-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--spacing-xl);
  align-items: start;
  min-width: 0;
}

.bas-layout[hidden] {
  display: none;
}

.bas-sessions,
.bas-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.bas-panel-head {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.bas-panel-head h3 {
  margin: 0 0 3px;
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--text-primary);
}

.bas-panel-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Session list */
.bas-session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--spacing-md);
  max-height: 640px;
  overflow-y: auto;
}

.bas-skeleton {
  height: 62px;
  border-radius: var(--radius-md, 0.75rem);
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: bas-shimmer 1.4s ease-in-out infinite;
}

@keyframes bas-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bas-session-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md, 0.75rem);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition-fast, all 0.15s ease);
  font-family: inherit;
}

.bas-session-card:hover {
  border-color: var(--border-hover);
}

.bas-session-card.active {
  border-color: var(--primary, #6366f1);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.bas-session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bas-session-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bas-session-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bas-new-session-row {
  display: flex;
  gap: 8px;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.bas-new-session-row input {
  flex: 1;
  min-width: 0;
}

/* Detail panel */
.bas-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.bas-detail-head h3 {
  margin: 0 0 3px;
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--text-primary);
}

.bas-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bas-detail-placeholder {
  display: none;
  grid-column: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg, 1rem);
  text-align: center;
  padding: var(--spacing-xl);
}

.bas-detail-placeholder.show {
  display: flex;
}

.bas-detail-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.5;
}

.bas-detail-placeholder p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 30ch;
}

/* Item grid */
.bas-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: var(--spacing-lg);
}

.bas-empty {
  padding: var(--spacing-xl);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.bas-item-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

.bas-item-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bas-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bas-item-photo svg {
  width: 28px;
  height: 28px;
  color: var(--text-disabled);
}

.bas-item-status {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bas-item-status.pending { background: rgba(245, 158, 11, 0.15); color: var(--warning, #f59e0b); }
.bas-item-status.approved { background: rgba(16, 185, 129, 0.15); color: var(--success, #10b981); }
.bas-item-status.rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger, #ef4444); }

.bas-item-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.bas-item-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bas-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bas-item-price {
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--primary, #6366f1);
  margin-top: 2px;
}

.bas-item-reason {
  font-size: 0.75rem;
  color: var(--danger, #ef4444);
  font-weight: 600;
  margin-top: 2px;
}

.bas-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}

.bas-item-login-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bas-item-login-hint a {
  color: var(--primary, #6366f1);
}

/* Buttons */
.bas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  transition: var(--transition-fast, all 0.15s ease);
}

.bas-btn svg {
  width: 14px;
  height: 14px;
}

.bas-btn-primary {
  background: linear-gradient(135deg, var(--primary, #6366f1), var(--accent, #ec4899));
  color: #fff;
}

.bas-btn-ghost {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.bas-btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.bas-btn-sm {
  padding: 6px 11px;
  font-size: 0.75rem;
  flex: 1;
}

.bas-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bas-input,
.bas-select,
.bas-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.bas-input:focus,
.bas-select:focus,
.bas-textarea:focus {
  outline: none;
  border-color: var(--primary, #6366f1);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Live camera / box-scan modal */
.bas-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  justify-content: flex-end;
}

.bas-scrim.hidden {
  display: none;
}

.bas-camera-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bas-camera-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 560px;
  padding: 16px 20px;
}

.bas-camera-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.bas-camera-head .bas-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bas-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
}

.bas-icon-btn svg {
  width: 16px;
  height: 16px;
}

.bas-camera-body {
  flex: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 1rem);
  background: #000;
}

.bas-camera-body video,
.bas-camera-body img {
  width: 100%;
  height: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #000;
}

.bas-camera-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  text-align: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
}

.bas-camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 560px;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}

.bas-camera-shutter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  flex: 0 0 auto;
}

.bas-camera-shutter:active {
  transform: scale(0.94);
}

.bas-camera-controls .bas-btn {
  color: #fff;
}

.bas-camera-controls .bas-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Box number scan-to-fill */
.addp-input-with-btn {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.addp-input-with-btn .addp-input {
  flex: 1;
  min-width: 0;
}

.addp-scan-btn {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 140, 140, 0.3);
  background: rgba(0, 140, 140, 0.08);
  color: #008c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.addp-scan-btn:active {
  background: rgba(0, 140, 140, 0.16);
}

.addp-scan-btn svg {
  width: 20px;
  height: 20px;
}

.bas-scan-container {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 62vh;
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  background: #000;
}

.bas-scan-container video {
  object-fit: cover;
}

.bas-scan-hint {
  margin: 0;
  color: #fff;
  font-size: 0.8125rem;
  text-align: center;
  opacity: 0.85;
}

/* Toast */
.bas-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 400;
  pointer-events: none;
}

.bas-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.bas-toast svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .bas-layout {
    grid-template-columns: 1fr;
  }

  .bas-detail-placeholder {
    grid-column: 1;
  }

  .bas-session-list {
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .bas-item-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Add / Edit Product — styled to match the iPad app's Add
   Product screen, optimized for mobile browsers first.
   ============================================================ */

.addp-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.55);
  align-items: flex-end;
  justify-content: center;
}

.addp-scrim.active {
  display: flex;
}

.addp-sheet {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.addp-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.addp-header-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  min-height: 40px;
}

.addp-header-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.addp-header-btn-primary {
  color: #008c8c;
  font-weight: 800;
}

.addp-header-title {
  flex: 1;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1f242e;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addp-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(12px, 4vw, 20px);
}

.addp-subtitle {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

/* Photo section */
.addp-photo-section {
  margin-bottom: 18px;
}

.addp-photo-well {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  overflow: hidden;
}

.addp-photo-well svg {
  width: 26px;
  height: 26px;
}

.addp-photo-well span {
  font-size: 0.8125rem;
  font-weight: 700;
}

.addp-photo-well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addp-photo-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.addp-chip-btn {
  flex: 1;
  min-width: 88px;
  text-align: center;
  appearance: none;
  border: 1px solid rgba(0, 140, 140, 0.28);
  background: #ffffff;
  color: #008c8c;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}

.addp-chip-btn:active {
  background: rgba(0, 140, 140, 0.1);
}

.addp-chip-btn-danger {
  border-color: rgba(239, 68, 68, 0.28);
  color: #ef4444;
}

.addp-field-inline {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.addp-field-inline .addp-input {
  flex: 1;
}

.addp-mini-btn {
  appearance: none;
  border: 1px solid rgba(0, 140, 140, 0.28);
  background: #008c8c;
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 44px;
}

/* Sections */
.addp-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.addp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1f242e;
  margin-bottom: 14px;
}

.addp-section-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #008c8c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fields */
.addp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.addp-field:last-child {
  margin-bottom: 0;
}

.addp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.addp-field-row:last-child {
  margin-bottom: 0;
}

.addp-field-row .addp-field {
  margin-bottom: 0;
}

.addp-field-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.addp-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1f242e;
}

.addp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.addp-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #008c8c;
  background: rgba(0, 140, 140, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.addp-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f7fa;
  font-family: inherit;
  /* 16px minimum keeps Mobile Safari from auto-zooming the page on focus */
  font-size: 16px;
  color: #1f242e;
  -webkit-appearance: none;
  appearance: none;
}

select.addp-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}

.addp-textarea {
  min-height: 84px;
  resize: vertical;
}

.addp-input:focus {
  outline: none;
  border-color: #008c8c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 140, 140, 0.14);
}

.addp-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.addp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f242e;
  padding-top: 4px;
  cursor: pointer;
}

.addp-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}

.addp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.addp-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.addp-toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.addp-toggle input:checked + .addp-toggle-slider {
  background: #008c8c;
}

.addp-toggle input:checked + .addp-toggle-slider::before {
  transform: translateX(18px);
}

.addp-bottom-spacer {
  height: max(12px, env(safe-area-inset-bottom));
}

/* Narrow phones: drop side-by-side fields to a single column */
@media (max-width: 420px) {
  .addp-field-row,
  .addp-field-row-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Tablet / desktop: centered card instead of a full-screen sheet */
@media (min-width: 700px) {
  .addp-scrim {
    align-items: center;
    padding: 24px;
  }

  .addp-sheet {
    width: min(560px, 100%);
    height: auto;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  }

  .addp-header {
    padding: 14px 16px;
    border-radius: 20px 20px 0 0;
  }
}
