/* ===================== THEME ===================== */
:root {
  --orange: #ea6c1f;
  --orange-dark: #cf5c15;
  --black: #16181d;
  --ink: #23262d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }

/* The [hidden] attribute must always win, even over display:flex/grid rules. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

h1, h2, h3 { margin: 0; }

.brand {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sm { font-size: 18px; }

.muted { color: var(--muted); }

/* ===================== BUTTONS ===================== */
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  font-family: inherit;
}
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }

.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9ccd2; background: #fafafa; }

.btn-grey { background: #6b7280; color: #fff; }
.btn-grey:hover { background: #565c66; }

/* ===================== SIGN IN ===================== */
.signin-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.signin-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}

.brand-roof { color: var(--orange); line-height: 0; margin-bottom: 8px; }
.brand-roof svg { width: 94px; height: auto; }
.signin-card .brand { font-size: 26px; margin-bottom: 4px; }
.signin-sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

.field { display: block; text-align: left; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .estimate-meta input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .estimate-meta input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,108,31,.15);
}

.signin-error { color: #c0392b; font-size: 13px; margin: 0 0 12px; }
.signin-hint { color: var(--muted); font-size: 12px; margin: 18px 0 0; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.topbar .brand { color: var(--orange); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.company-name { font-weight: 600; font-size: 14px; color: #fff; }
.topbar .btn-ghost { background: transparent; color: #fff; border-color: #3a3d44; }
.topbar .btn-ghost:hover { background: #23262d; }

/* Trash-can button in the top bar, with a live count badge */
.trash-btn { display: inline-flex; align-items: center; gap: 6px; }
.trash-icon { font-size: 15px; line-height: 1; }
.trash-count {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  line-height: 1.5;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Two-column: Recent Estimates on the left, New Estimate on the right */
.columns {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.recent-panel { position: sticky; top: 20px; }

.company-banner {
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 32px;
}
.company-banner h2 { font-size: 30px; }
.company-banner p { margin: 8px 0 0; opacity: .9; font-size: 16px; }
.banner-logo {
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-logo img { display: block; height: 150px; width: auto; max-width: 300px; object-fit: contain; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
/* Recent Estimates / Recent Invoices / Saved for Later — slightly trimmed height */
.recent-panel .panel { padding: 16px 20px; }
.recent-panel .panel .panel-head { margin-bottom: 9px; }
.panel-head h2 { font-size: 17px; }
.estimate-title-input {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: -8px;
  font-family: inherit;
  width: 480px;
  max-width: 100%;
}
/* Face ID lock + enrollment */
#lock-view .btn-block { margin-top: 10px; }
.linklike {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.linklike:hover { color: var(--black); }
.faceid-dialog { max-width: 420px; }
.faceid-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.recent-search {
  /* Pull left by the border + left padding so the placeholder text lines up
     with the panel heading and the list text, while the right edge stays flush. */
  width: calc(100% + 13px);
  box-sizing: border-box;
  margin: 2px 0 6px -13px;
  padding: 6px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.recent-search:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,108,31,.15);
}
.estimate-title-input:hover { border-color: var(--line); }
.estimate-title-input:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(234,108,31,.15);
}

/* ===================== RECENT ===================== */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}
.recent-item:hover { border-color: var(--orange); background: #fff8f3; }
.recent-item .ri-title { font-weight: 600; }
.recent-item .ri-meta { font-size: 12px; color: var(--muted); }
.recent-item .ri-total { font-weight: 700; color: var(--orange); }
.recent-del {
  border: none; background: none; color: var(--muted);
  cursor: pointer; font-size: 16px; padding: 4px 6px;
}
.recent-del:hover { color: #c0392b; }
.recent-more {
  border: none; background: none; color: var(--orange);
  cursor: pointer; font-size: 13px; font-weight: 600;
  padding: 4px 2px; align-self: flex-start;
}
.recent-more:hover { text-decoration: underline; }

/* ===================== PRESETS ===================== */
.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}
.preset-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.preset-btn:hover { border-color: var(--orange); color: var(--orange); }
.preset-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ===================== ESTIMATE META ===================== */
.estimate-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0 20px;
  max-width: 480px;
}
.meta-desc { resize: vertical; height: 39px; min-height: 39px; line-height: 1.2; }

/* ===================== ROOM CARDS ===================== */
#rooms { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.room-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.room-title {
  font-size: 16px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--black);
  padding: 2px 0;
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 12px;
  text-overflow: ellipsis;
}
.room-title:focus { outline: none; border-bottom: 2px solid var(--orange); }
.title-preset {
  flex: 0 0 auto;
  width: 3rem;               /* tiny — just a caret button next to the title */
  margin-right: 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 4px;
  cursor: pointer;
}
.title-preset:hover { border-color: var(--orange); }
.room-remove {
  border: none;
  background: #f3f4f6;
  color: var(--muted);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.room-remove:hover { background: #fde8e8; color: #c0392b; }

/* Job Description (left) + prices (right) */
.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: stretch;
}
.job-desc-col { display: flex; flex-direction: column; }
/* Allowance sections are description-only: no price column, full-width desc. */
.room-card.allowance .job-row { grid-template-columns: 1fr; }
.room-card.allowance .price-col { display: none; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }

.desc-wrap { position: relative; flex: 1; }
.desc-wrap textarea {
  width: 100%;
  height: 100%;
  min-height: 160px;
  resize: vertical;
  padding-right: 44px;
}
.voice-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.voice-btn:hover { border-color: var(--orange); }
.voice-btn.recording { background: var(--orange); border-color: var(--orange); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Prices: stacked column on the right, bigger boxes */
.price-col { display: flex; flex-direction: column; gap: 14px; }
.price-field { display: block; }
.price-field span { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; }
.price-input-wrap { position: relative; }
.price-input-wrap::before {
  content: "$";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px;
}
.price-input-wrap input.price {
  width: 100%;
  padding: 13px 44px 13px 26px;   /* room for $ (left) and mic (right) */
  font-size: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.price-input-wrap input.price:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,108,31,.15);
}
.price-input-wrap input.total { font-weight: 700; }
.voice-num {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  font-size: 14px;
}

/* Custom section: Total or Percentage (e.g. a builder's fee) */
.pct-or {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pct-wrap::before { content: ""; }        /* no $ prefix on the percentage field */
.pct-wrap::after {
  content: "%";
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px;
}
.pct-wrap input.pct {
  width: 100%;
  padding: 13px 30px 13px 12px;   /* room for the % on the right */
  font-size: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.pct-wrap input.pct:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,108,31,.15);
}
/* When a percentage is driving the total, show the total as read-only */
.price-input-wrap input.total[readonly] { background: #f3f4f6; color: var(--muted); }

/* ===================== ADD ROOM ===================== */
.add-room-row { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; }
.add-room-row select { max-width: 260px; }

/* ===================== FOOTER ===================== */
.estimate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 6px;
}
.grand-total { display: flex; flex-direction: column; }
.grand-total span { font-size: 13px; color: var(--muted); }
.grand-total strong { font-size: 26px; color: var(--black); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================== PDF LAYOUT (Bid Proposal) ===================== */
#pdf-root { position: absolute; left: -9999px; top: 0; }
#pdf-root.rendering { left: 0; top: 0; z-index: 1; }
#pdf-cover {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
}
#pdf-cover.show { display: flex; }
.pdf-page {
  width: 760px;
  padding: 34px 44px;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

/* --- Fixed letterhead (identical on every estimate) --- */
.ph-header { text-align: center; margin-bottom: 18px; }
.ph-name {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
}
.ph-slogan {
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive;
  font-size: 22px;
  margin-top: 2px;
}
.ph-addr, .ph-phone { font-size: 17px; margin-top: 2px; }
.ph-doctitle { font-size: 17px; font-style: italic; text-decoration: underline; margin-top: 2px; }

/* --- Filled fields --- */
.ph-fields { margin-bottom: 18px; }
.ph-line { font-size: 15px; line-height: 1.5; }
.ph-line .lbl { font-weight: 700; }
.ph-gap { height: 14px; }
.ph-jobdesc { display: flex; align-items: flex-end; gap: 10px; }
.ph-jobdesc .lbl { font-weight: 700; white-space: nowrap; }
.ph-jobdesc .val { flex: 1; border-bottom: 1px solid #000; min-height: 18px; padding: 0 4px 2px; }

/* --- Work box with columns --- */
.ph-box {
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.ph-box-title {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 2px solid #000;
}
.ph-colhead, .ph-row, .ph-filler, .ph-foot {
  display: grid;
  grid-template-columns: 1fr 110px 110px 120px;
}
.ph-colhead {
  font-weight: 700;
  font-size: 13px;
}
.ph-colhead > div { padding: 5px 8px; }
/* Keep the short underline only beneath the Materials/Labor/Total columns
   (invoice: just Total); the long segment over the description column is gone. */
.ph-colhead .c-num { text-align: center; border-left: 2px solid #000; border-bottom: 2px solid #000; }

.ph-rows { flex: 1; display: flex; flex-direction: column; }
/* Extra bottom padding separates each section so its numbers read clearly
   with their header; padding (not margin) keeps the column lines continuous. */
.ph-row > div { padding: 8px 8px 28px; }
.ph-row .c-num { border-left: 2px solid #000; text-align: right; font-size: 13px; }
.ph-row .sec-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.ph-row .sec-desc { font-weight: 400; font-size: 13px; white-space: pre-wrap; margin-top: 0; line-height: 1.35; }

/* min-height guarantees breathing room above the foot line even when the box
   is full; the filler carries the vertical column lines so they stay connected
   all the way down to the horizontal divider. */
.ph-filler { flex: 1; min-height: 16px; }
.ph-filler .c-num { border-left: 2px solid #000; }

/* Bottom row: allowances note at the left, TOTAL box at the right. */
.ph-foot {
  border-top: 2px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 28px;
}
.ph-foot-allow { flex: 1; padding: 8px; text-align: left; font-size: 13px; }
.ph-foot-allow .allow-head { font-weight: 700; font-size: 14px; margin-bottom: 1px; }
.ph-foot-allow .allow-note { font-weight: 400; font-size: 12px; font-style: italic; }
.ph-foot-allow .allow-item { text-align: left; margin-bottom: 3px; white-space: pre-wrap; }
.ph-foot-allow .allow-name { font-weight: 700; }
.ph-foot-total { display: flex; align-items: stretch; flex: none; }
.ph-foot-total .c-label { text-align: right; font-weight: 700; padding: 8px; font-size: 14px; align-self: center; }
.ph-foot-total .c-total {
  border-left: 2px solid #000;
  border-top: 2px solid #000;   /* closes the top of the total box */
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  padding: 8px;
  min-width: 120px;
}

/* --- Invoice variant: only a Total column (no Materials/Labor) --- */
.invoice .ph-colhead, .invoice .ph-row, .invoice .ph-filler {
  grid-template-columns: 1fr 120px;
}

/* --- Multi-page output: each sheet wraps only the rows it holds (no forced
       full-page box), so the TOTAL follows the last row with no big gap. --- */
.pdf-doc { width: max-content; }
.pdf-page.paged .ph-box { min-height: 0; } /* size to content, not the old 560px form height */
.ph-row, .ph-foot, .ph-colhead { break-inside: avoid; page-break-inside: avoid; }

/* ===================== RECENTLY DELETED (TRASH) MODAL ===================== */
.trash-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.trash-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.trash-dialog {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.trash-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.trash-dialog-head h2 { font-size: 18px; }
.trash-sub { font-size: 13px; margin: 0 0 16px; }
#trash-list { overflow-y: auto; flex: 1; min-height: 40px; }
.trash-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.trash-clear {
  border: none;
  background: none;
  color: #c0392b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  font-family: inherit;
}
.trash-clear:hover { text-decoration: underline; }
.trash-restore {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--orange);
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
}
.trash-restore:hover { border-color: var(--orange); background: #fff8f3; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  /* minmax(0, 1fr) lets the column shrink to the screen width so wide content
     (search boxes, recent-item rows) wraps instead of overflowing sideways. */
  .columns { grid-template-columns: minmax(0, 1fr); }
  .recent-panel { position: static; }
}
@media (max-width: 640px) {
  .job-row { grid-template-columns: 1fr; }
  .estimate-footer { flex-direction: column; align-items: stretch; }
  .actions .btn { flex: 1; }

  /* Trim the chrome so more of the estimate fits on a phone screen. */
  .topbar { padding: 10px 14px; }
  .topbar .brand.brand-sm { font-size: 15px; }
  .topbar-right { gap: 8px; }
  .company-name { display: none; }   /* redundant — also shown in the banner */

  /* Fluid spacing/type: everything scales smoothly with the screen width, so
     a smaller iPhone (mini / SE) stays compact while a larger one (Pro Max /
     Plus) gets a bit more breathing room — no per-model rules needed. */
  .container { padding: clamp(12px, 4vw, 18px) clamp(12px, 4vw, 18px) 72px; }
  .columns { gap: clamp(12px, 4vw, 18px); }
  .panel { padding: clamp(14px, 4.5vw, 20px); }
  .recent-panel .panel { padding: clamp(13px, 4vw, 18px) clamp(14px, 4.5vw, 20px); }

  .company-banner {
    flex-direction: column;
    text-align: center;
    padding: clamp(18px, 6vw, 28px) clamp(16px, 5vw, 24px);
    gap: 14px;
    margin-bottom: clamp(14px, 4vw, 20px);
  }
  .company-banner h2 { font-size: clamp(20px, 6.5vw, 28px); }
  .company-banner p { font-size: clamp(13px, 3.8vw, 16px); }
  .banner-logo img { height: clamp(60px, 20vw, 90px); }

  /* iOS zooms the page in whenever you focus an input whose font is under
     16px. Bumping every form control to 16px on phones stops that jump —
     desktop keeps its original sizing (this only applies on narrow screens). */
  .field input, .estimate-meta input, select, textarea,
  .desc-wrap textarea, .price-input-wrap input.price,
  .estimate-title-input, #username, #password {
    font-size: 16px;
  }
}

/* Respect the phone safe areas (notch / Dynamic Island / home indicator)
   when the app is launched fullscreen from the home screen. A light strip
   above the dark top bar keeps the status-bar text readable. */
@supports (padding: max(0px)) {
  .topbar { padding-left: max(20px, env(safe-area-inset-left));
            padding-right: max(20px, env(safe-area-inset-right)); }
  /* Push the app content (dark top bar) below the status bar / notch. */
  #app-view { padding-top: env(safe-area-inset-top); }
  body { padding-bottom: env(safe-area-inset-bottom); }
  /* Keep the sign-in and lock cards clear of the notch and home indicator. */
  .signin-wrap {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}
