/* ==========================================================================
   style.css — SeekaSpray
   Mobile-first styles. Designed to feel like a native phone app.
   Uses CSS custom properties (variables) so the colour theme is easy to change.
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS — change these to retheme the whole app
   -------------------------------------------------------------------------- */
:root {
  /* Main palette */
  --bg:          #f0f2f5;
  --card:        #ffffff;
  --header:      #1e2d3d;
  --header-text: #ffffff;
  --accent:      #2e7d52;       /* primary green used for buttons and active states */
  --accent-dark: #1f5e3c;
  --text:        #1e2d3d;
  --text-muted:  #6b7a8d;
  --border:      #dde1e7;
  --danger:      #c0392b;

  /* Orchard type colours */
  --red:   #e74c3c;
  --gold:  #e8a020;
  --green: #2e7d52;
  --grey:  #95a5a6;

  /* Layout */
  --header-h:  56px;
  --radius:    12px;
  --radius-sm: 8px;
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
svg { display: block; }

/* --------------------------------------------------------------------------
   SCREEN SYSTEM
   Only the active screen is visible. JS toggles the 'hidden' class.
   -------------------------------------------------------------------------- */
.screen { position: fixed; inset: 0; overflow-y: auto; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   LOGIN / SETUP SCREENS
   -------------------------------------------------------------------------- */
#login-screen, #setup-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--header);
}

.login-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  margin: 16px;
}

.app-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  margin-bottom: 4px;
}

.app-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   FORM ELEMENTS (shared across login, modals, settings)
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

textarea { min-height: 80px; resize: vertical; }

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-outline   { border: 1.5px solid var(--border); color: var(--text); }
.btn-sm        { padding: 7px 14px; font-size: 13px; }
.btn-full      { width: 100%; }
.btn-icon      { padding: 8px; border-radius: 50%; }
.mt-8          { margin-top: 8px; }
.mt-16         { margin-top: 16px; }

/* --------------------------------------------------------------------------
   APP LAYOUT — header + scrollable page
   -------------------------------------------------------------------------- */
#app-screen {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;   /* scroll is per-page, not the whole screen */
}

/* Fixed top navigation header */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-tabs {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  position: relative;
  transition: color 0.15s;
}

.nav-tab svg { width: 24px; height: 24px; }

/* Active tab gets full brightness + a bottom accent line */
.nav-tab.active {
  color: #fff;
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

/* --------------------------------------------------------------------------
   PAGES
   -------------------------------------------------------------------------- */
.page {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sticky sub-header with title + search inside each page */
.page-top {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 12px 16px 10px;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sub-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  font-size: 14px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   EVENT CARDS (used on This Week, Booked, Shared pages)
   -------------------------------------------------------------------------- */
.events-list {
  padding: 12px 12px 80px;
}

.event-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.event-card:active { box-shadow: 0 3px 12px rgba(0,0,0,0.12); }

/* Coloured left bar that shows the area type */
.event-card-bar {
  width: 4px;
  border-radius: 4px;
  align-self: stretch;
  flex-shrink: 0;
  min-height: 50px;
}
.bar-red   { background: var(--red); }
.bar-gold  { background: var(--gold); }
.bar-green { background: var(--green); }
.bar-none  { background: var(--grey); }

.event-card-body { flex: 1; min-width: 0; }

.event-card-path {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.event-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Status pills */
.status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pending  { background: #fff3cd; color: #856404; }
.status-booked   { background: #d1ecf1; color: #0c5460; }
.status-complete { background: #d4edda; color: #155724; }

/* Book button on event cards */
.btn-book {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Complete button */
.btn-complete {
  background: #27ae60;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 24px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   GANTT CHART (Year page)
   -------------------------------------------------------------------------- */
.gantt-page-top { display: flex; flex-direction: column; gap: 6px; }

.gantt-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* The outer wrapper is a flex row: fixed labels on the left, scrollable chart on the right */
.gantt-outer {
  position: fixed;
  top: calc(var(--header-h) + 88px);   /* below header + page-top */
  left: 0; right: 0; bottom: 0;
  display: flex;
  overflow: hidden;
}

/* Left column of row labels — scrolls vertically but NOT horizontally */
.gantt-labels {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;           /* JS syncs vertical scroll with the chart panel */
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 5;
}

/* Right panel — scrolls in both directions */
.gantt-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* The actual chart canvas inside the scroll panel */
.gantt-chart { position: relative; }

/* A single row in the Gantt (shared by labels panel and chart panel) */
.gantt-row {
  height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

/* Month header row at the very top of the chart (sticky) */
.gantt-month-header {
  height: 28px;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--header);
}

.gantt-month-cell {
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  border-right: 1px solid rgba(255,255,255,0.15);
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
}

/* A single day column inside a row (used to draw the grid lines) */
.gantt-day-col {
  position: absolute;
  top: 0; bottom: 0;
  border-right: 1px solid rgba(0,0,0,0.05);
}

/* "Today" marker vertical line */
.gantt-today-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--danger);
  z-index: 3;
  pointer-events: none;
}

/* An event bar drawn inside a row */
.gantt-event-bar {
  position: absolute;
  top: 7px; bottom: 7px;
  border-radius: 4px;
  opacity: 0.85;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: opacity 0.1s;
}
.gantt-event-bar:active { opacity: 1; }

/* Region header rows in the Gantt */
.gantt-region-row {
  background: var(--header);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  height: 30px;
}

/* Labels for region rows */
.gantt-label-region {
  height: 30px;
  background: var(--header);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Labels for area rows */
.gantt-label-area {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 14px;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  gap: 6px;
}

/* Small colour dot before the area label */
.area-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Spacer in the labels column to match the month header height */
.gantt-label-spacer {
  height: 28px;
  background: var(--header);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   ACCORDION (Complete page)
   -------------------------------------------------------------------------- */
.accordion-root { padding: 12px 12px 80px; }

.accordion-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.accordion-header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-chevron {
  width: 18px; height: 18px;
  transition: transform 0.2s;
  color: var(--text-muted);
}
.accordion-open .accordion-chevron { transform: rotate(180deg); }

.accordion-body { display: none; padding: 0 16px 12px; }
.accordion-open .accordion-body { display: block; }

.accordion-sub { margin-left: 12px; margin-top: 8px; }

.completed-event-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.completed-event-row:last-child { border-bottom: none; }
.completed-event-name { font-weight: 600; }
.completed-event-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   SETTINGS PAGE
   -------------------------------------------------------------------------- */

/* Sub-tab bar inside settings */
.settings-tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;   /* below the page-top header */
  z-index: 9;
}

.stab {
  flex: 1;
  padding: 11px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
}
.stab.active { color: var(--accent); border-bottom-color: var(--accent); }

.stab-panel {
  padding: 16px 12px 80px;
}

.panel-actions {
  margin-bottom: 14px;
}

/* Hint text shown at the top of some panels */
.hint-text {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* Region/area tree in the regions editor */
.region-card {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--header);
  color: #fff;
}
.region-header-name { flex: 1; font-weight: 700; font-size: 15px; }

.area-item {
  padding: 11px 14px 11px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.area-item:last-child { border-bottom: none; }
.area-item-name { flex: 1; font-size: 14px; }

.area-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.badge-red   { background: #fde8e8; color: var(--red); }
.badge-gold  { background: #fef3cd; color: #a07000; }
.badge-green { background: #e2f5ec; color: var(--green); }
.badge-none  { background: var(--bg); color: var(--text-muted); }

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

.icon-btn {
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 16px; height: 16px; }

.add-area-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  width: 100%;
  background: none;
  border-top: 1px dashed var(--border);
}

/* Events nested inside an area in the settings tree */
.area-events-list { background: var(--bg); padding: 4px 0; }
.area-event-row {
  display: flex;
  align-items: center;
  padding: 8px 14px 8px 28px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.area-event-row:last-child { border-bottom: none; }
.area-event-name { flex: 1; font-size: 13px; }

/* Default events editor rows */
.defaults-block { margin-bottom: 20px; }
.type-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.red-heading   { background: #fde8e8; color: var(--red); }
.green-heading { background: #e2f5ec; color: var(--green); }
.gold-heading  { background: #fef3cd; color: #a07000; }

.default-event-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.default-event-row input { flex: 1; padding: 8px 12px; font-size: 13px; }

/* Users list in settings */
.user-row {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.user-row-name { flex: 1; font-weight: 600; }
.user-row-meta { font-size: 12px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   DATA TAB
   -------------------------------------------------------------------------- */
.data-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.data-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.data-card p  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.file-label input[type="file"] { display: none; }

.file-name-display {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  min-height: 16px;
}

/* User badge (top right of settings page, shows who is logged in) */
.user-badge {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   MODAL / POPUP
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: flex-end;   /* slides up from the bottom like a native sheet */
  justify-content: center;
  padding: 0;
}

.modal-box {
  background: var(--card);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 40px;
  position: relative;
}

/* Drag handle at the top of every modal */
.modal-box::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-section {
  margin-bottom: 16px;
}

.modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.modal-value {
  font-size: 15px;
  margin-bottom: 4px;
}

/* Close button in the top-right of a modal */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Photo grid inside the event detail modal */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  background: var(--bg);
}

.add-photo-btn {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Share user checkboxes */
.share-user-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.share-user-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* Colour picker for area type selection */
.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.color-option {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s;
}
.color-option.selected { border-color: var(--text); }
.color-option-red   { background: #fde8e8; color: var(--red); }
.color-option-gold  { background: #fef3cd; color: #a07000; }
.color-option-green { background: #e2f5ec; color: var(--green); }
.color-option-none  { background: var(--bg); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   FULLSCREEN PHOTO VIEWER
   -------------------------------------------------------------------------- */
.photo-viewer-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.photo-viewer-close {
  position: absolute;
  top: 16px; right: 16px;
  color: #fff;
  font-size: 32px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   DESKTOP CENTERING
   On wide screens, keep the content at phone width
   -------------------------------------------------------------------------- */
@media (min-width: 540px) {
  #login-screen, #setup-screen { padding: 24px; }

  .app-header { max-width: 480px; left: 50%; transform: translateX(-50%); right: auto; }
  .nav-tabs { justify-content: center; }

  .page { max-width: 480px; left: 50%; transform: translateX(-50%); right: auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

  .gantt-outer { max-width: 480px; left: 50%; transform: translateX(-50%); right: auto; }

  .modal-overlay { align-items: center; }
  .modal-box { border-radius: var(--radius); max-height: 85vh; }
  .modal-box::before { display: none; }
}
