/* Wardrobe builder: My wardrobe (#/wardrobe), item detail (#/item/:id) and the scan flow sheet.
   Prefixes: .wd- wardrobe screen, .it- item screen, .sf- scan flow + item form (sheets live in #overlay-root). */

/* ================= Shared: scan frame corners ================= */
.sf-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--ink-2);
  opacity: 0.55;
  pointer-events: none;
  transition: border-color 0.3s, opacity 0.3s, transform 0.45s var(--ease);
}
.sf-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.sf-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.sf-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.sf-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

/* ================= My wardrobe ================= */
[data-screen="wardrobe"] .screen-header { margin-bottom: 18px; }

/* --- Empty: hero scan card --- */
.wd-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.wd-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  padding: 0 4px;
}
.wd-hero-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.wd-hero-title svg { width: 18px; height: 18px; color: var(--ink-2); }
.wd-hero-tag { font-size: 10.5px; color: var(--muted); }
.wd-hero-frame {
  position: relative;
  align-self: stretch;
  height: 300px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-md);
}
.wd-hero-art {
  position: relative;
  height: 80%;
  width: auto;
  max-width: 76%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(58, 26, 51, 0.12));
  animation: wd-float 5s ease-in-out infinite;
}
.wd-hero-ground {
  position: absolute;
  left: 22%; right: 22%; bottom: 9%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 26, 51, 0.14), transparent);
}
.wd-hero-scan { animation-duration: 2.6s; opacity: 0.85; }
@keyframes wd-float { 50% { transform: translateY(-4px); } }
.wd-hero-label { margin: 10px 0 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.wd-shutter {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--olive), var(--shadow-1);
  transition: transform 0.15s var(--ease);
}
.wd-shutter:active { transform: scale(0.93); }
.wd-shutter-in {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--olive-600);
  color: var(--on-olive);
}
.wd-shutter-in svg { width: 24px; height: 24px; }
.wd-hero-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0 12px; }
.wd-hero-link svg { width: 17px; height: 17px; }
.wd-hero-foot { margin: 16px 0 0; text-align: center; font-size: 14.5px; color: var(--ink-2); }

.wd-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.wd-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 17%; right: 17%;
  border-top: 1.5px dashed var(--line-strong);
}
.wd-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.wd-step-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--olive-50);
  color: var(--olive-700);
  box-shadow: 0 0 0 5px var(--bg);
}
.wd-step-ic svg { width: 20px; height: 20px; }
.wd-step strong { font-size: 13px; font-weight: 600; color: var(--plum); line-height: 1.25; }
.wd-step span { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* --- Filled: chips, summary bar, grid --- */
.wd-filled > .chips { margin-bottom: 4px; scroll-padding-inline: var(--gutter); }
.wd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 8px; }
.wd-summary { margin: 0; font-size: 13px; color: var(--muted); }
.wd-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-right: -6px;
  padding: 0 6px 0 10px;
  border: 0;
  background: none;
  color: var(--olive-700);
  font-size: 13.5px;
  font-weight: 600;
}
.wd-sort-ic svg { width: 15px; height: 15px; transform: rotate(90deg); }
.wd-tip { width: 100%; margin: 0 0 14px; border: 0; text-align: left; line-height: 1.35; }
.wd-tip > span:nth-child(2) { flex: 1; }
.wd-tip-go svg { width: 16px; height: 16px; color: var(--ink-2); }

.wd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wd-tile {
  --tint: #9A9A9A;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--tint) 15%, var(--surface-2));
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s var(--ease);
  -webkit-touch-callout: none;
}
.wd-tile:active { transform: scale(0.97); }
.wd-tile.wd-enter { animation: wd-tile-in 0.42s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms); }
.wd-tile.wd-new { animation: wd-pop 0.6s var(--ease) both; }
@keyframes wd-tile-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes wd-pop { 0% { opacity: 0; transform: scale(0.85); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: none; } }
.wd-photo {
  position: relative;
  display: block;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: 13px;
  background: color-mix(in srgb, var(--tint) 18%, var(--surface));
}
.wd-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.wd-photo img.loaded { opacity: 1; }
.wd-photo-missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); }
.wd-photo-missing svg { width: 40px; height: 40px; opacity: 0.6; }
.wd-label {
  display: block;
  padding: 9px 4px 11px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-fav {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--rose-ink);
  box-shadow: var(--shadow-1);
}
.wd-fav svg { width: 15px; height: 15px; fill: currentColor; }
.wd-new-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--olive-600);
  color: var(--on-olive);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wd-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--olive-700);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.15s;
}
.wd-add-tile:active { transform: scale(0.97); background: var(--surface-2); }
.wd-add-tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--olive-50); }
.wd-add-tile-ic svg { width: 22px; height: 22px; }

/* --- Add + sort sheets --- */
.wd-add { display: grid; gap: 10px; }
.wd-add-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-align: left;
  transition: transform 0.15s var(--ease), background 0.15s;
}
.wd-add-option:active { transform: scale(0.98); background: var(--surface-2); }
.wd-add-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--olive-50); color: var(--olive-700); }
.wd-add-ic svg { width: 22px; height: 22px; }
.wd-add-text { flex: 1; min-width: 0; }
.wd-add-text strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--plum); }
.wd-add-text span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.wd-add-go svg { width: 18px; height: 18px; color: var(--muted); }
.wd-add-tip { display: flex; align-items: center; gap: 8px; margin: 6px 2px 0; font-size: 13px; color: var(--ink-2); }
.wd-add-tip svg { width: 16px; height: 16px; flex: none; color: var(--rose-ink); }

.wd-sort-list { display: grid; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); }
.wd-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 15.5px;
  text-align: left;
  color: var(--ink);
}
.wd-sort-option:active { background: var(--surface-2); }
.wd-sort-option[aria-checked="true"] { font-weight: 600; color: var(--plum); }
.wd-sort-check svg { width: 20px; height: 20px; color: var(--olive-700); }

/* ================= Item detail ================= */
[data-screen="item"] { --tint: #9A9A9A; }
.it-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.it-back { margin-left: -10px; }
.it-top-label { color: var(--muted); }
.it-fav { background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-1); }
.it-fav[aria-pressed="true"] { background: var(--rose-50); color: var(--rose-ink); }
.it-fav[aria-pressed="true"] svg { fill: currentColor; }
.it-fav.pop svg { animation: it-heart 0.45s var(--ease); }
@keyframes it-heart { 40% { transform: scale(1.3); } }

.it-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(92vw, 360px);
  max-height: 46vh;
  min-height: 240px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--tint) 12%, var(--surface-2));
  overflow: hidden;
}
.it-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.it-photo.loaded { opacity: 1; transform: none; }
.it-photo-missing { color: var(--ink-2); }
.it-photo-missing svg { width: 72px; height: 72px; opacity: 0.5; }

.it-head { margin: 20px 0 16px; }
.it-kicker { display: inline-flex; align-items: center; gap: 6px; }
.it-kicker svg { width: 15px; height: 15px; }
.it-name {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--plum);
}

.it-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.it-stat { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--r-md); background: var(--olive-50); }
.it-stat .eyebrow { font-size: 10.5px; color: var(--olive-700); }
.it-stat strong { margin-top: 4px; font-family: var(--font-serif); font-size: 26px; font-weight: 500; line-height: 1.1; color: var(--plum); }
.it-stat span:last-child { font-size: 12.5px; color: var(--ink-2); }
.it-unworn strong { color: var(--plum); }

.it-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.it-actions .btn { padding: 0 14px; }

.it-details { margin-top: 18px; padding: 4px 16px; }
.it-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 10px 0; }
.it-row + .it-row { border-top: 1px solid var(--line); }
.it-row-label { flex: none; font-size: 14px; color: var(--ink-2); }
.it-row-value { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: right; }
.it-warmth { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.it-warmth i { display: block; width: 5px; border-radius: 2px; background: var(--surface-3); }
.it-warmth i:nth-child(1) { height: 6px; }
.it-warmth i:nth-child(2) { height: 10px; }
.it-warmth i:nth-child(3) { height: 14px; }
.it-warmth i.on { background: var(--olive); }
.it-occasions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.it-occasion { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }

.it-similar .section-head { margin-bottom: 6px; }
.it-similar-note { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.it-similar-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.it-similar-row::-webkit-scrollbar { display: none; }
.it-mini {
  flex: none;
  width: 112px;
  padding: 6px 6px 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--tint) 13%, var(--surface-2));
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
}
.it-mini:active { transform: scale(0.97); }
.it-mini-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: var(--surface); }
.it-mini-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.it-mini-photo img.loaded { opacity: 1; }
.it-mini-label { display: block; padding: 6px 2px 8px; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-unique { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--olive-50); font-size: 14px; color: var(--ink); }
.it-unique svg { width: 18px; height: 18px; flex: none; color: var(--olive-700); }
.it-remove { margin-top: 28px; }

/* ================= Scan flow sheet + item form ================= */
.sheet:has(> .sf) { padding-bottom: 0; }
.sf { display: flex; flex-direction: column; gap: 18px; }
.sf[data-state="scanning"], .sf[data-state="error"] { padding-bottom: calc(20px + var(--safe-bottom)); }

.sf-stage { padding: 12px 12px 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.sf-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(230px, 42vh, 340px);
  height: clamp(230px, 42dvh, 340px);
  overflow: hidden;
  border-radius: var(--r-md);
  transition: height 0.5s var(--ease);
}
.sf[data-state="found"] .sf-frame,
.sf[data-state="manual"] .sf-frame { height: 188px; }
.sf-photo {
  max-width: calc(100% - 52px);
  max-height: calc(100% - 44px);
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.5s var(--ease);
}
.sf-photo.ready { opacity: 1; transform: none; }
.sf-frame-empty { display: none; color: var(--muted); }
.sf-frame-empty svg { width: 44px; height: 44px; }
.sf[data-state="error"] .sf-frame { height: 150px; }
.sf[data-state="error"] .sf-photo { display: none; }
.sf[data-state="error"] .sf-frame-empty { display: block; }
.sf .scanline { z-index: 1; }
.sf:not([data-state="scanning"]) .scanline { display: none; }
.sf[data-state="scanning"] .sf-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(123, 138, 99, 0.10));
  pointer-events: none;
}
.sf[data-state="found"] .sf-corner { border-color: var(--olive); opacity: 1; }
.sf[data-state="found"] .sf-corner.tl { transform: translate(6px, 6px); }
.sf[data-state="found"] .sf-corner.tr { transform: translate(-6px, 6px); }
.sf[data-state="found"] .sf-corner.bl { transform: translate(6px, -6px); }
.sf[data-state="found"] .sf-corner.br { transform: translate(-6px, -6px); }

.sf-status { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; text-align: center; }
.sf-status-main { max-width: 100%; font-size: 15px; font-weight: 500; color: var(--ink-2); text-wrap: balance; }
.sf[data-state="found"] .sf-status-main,
.sf[data-state="manual"] .sf-status-main,
.sf[data-state="error"] .sf-status-main { font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.25; color: var(--plum); }
.sf-status-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 9px; vertical-align: -6px; border-radius: 50%; background: var(--rose-50); color: var(--rose-ink); }
.sf-status-ic svg { width: 16px; height: 16px; }
.sf[data-state="found"] .sf-status-ic { background: var(--olive); color: var(--on-olive); animation: sf-pop 0.55s var(--ease) both; }
.sf[data-state="found"] .sf-status-ic svg { stroke-width: 2.4; }
.sf-status-sub { max-width: 320px; font-size: 13.5px; color: var(--muted); }
.sf[data-state="scanning"] .sf-status-sub { animation: sf-fade 1.15s ease infinite; }
.sf-status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sf-status-actions .btn:not([hidden]) { margin-top: 8px; }
.sf-retry { min-height: 44px; }
.sf-skip { min-height: 44px; margin-top: 4px; font-size: 13.5px; }
.sf-dots { display: inline-flex; gap: 3px; margin-left: 3px; }
.sf-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: sf-dot 1.2s ease-in-out infinite; }
.sf-dots i:nth-child(2) { animation-delay: 0.15s; }
.sf-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sf-dot { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes sf-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }
@keyframes sf-fade { 0% { opacity: 0.35; } 30%, 70% { opacity: 1; } 100% { opacity: 0.35; } }

.sf-form-slot:empty { display: none; }
.sf-form-slot { animation: sf-rise 0.45s var(--ease) both; }
@keyframes sf-rise { from { opacity: 0; transform: translateY(10px); } }

/* Form */
.sf-form { display: flex; flex-direction: column; gap: 20px; }
.sf-form .field + .field { margin-top: 0; }
.sf-form .label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sf-label-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.sf-form .chips .chip { min-height: 40px; }
.sf-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-select { position: relative; }
.sf-select .select { -webkit-appearance: none; appearance: none; padding-right: 36px; text-overflow: ellipsis; }
.sf-select-ic { position: absolute; top: 50%; right: 12px; transform: translateY(-50%) rotate(90deg); color: var(--ink-2); pointer-events: none; line-height: 0; }
.sf-select-ic svg { width: 16px; height: 16px; }
.sf-form .segmented button { min-height: 42px; }

.sf-colour-row { display: flex; align-items: center; gap: 12px; }
.sf-colour-big { width: 48px; height: 48px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), var(--shadow-1); transition: background 0.2s; }
.sf-swatches {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 8px calc(-1 * var(--gutter)) 0;
  padding: 2px calc(var(--gutter) - 4px);
  scrollbar-width: none;
}
.sf-swatches::-webkit-scrollbar { display: none; }
.sf-sw {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.sf-sw-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sw, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13);
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}
.sf-sw:active .sf-sw-dot { transform: scale(0.9); }
.sf-sw[aria-pressed="true"] .sf-sw-dot,
.sf-sw.custom.on .sf-sw-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13), 0 0 0 2px var(--bg), 0 0 0 4px var(--olive); }
.sf-sw.from-photo::after {
  content: '';
  position: absolute;
  right: 4px; bottom: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 2px var(--bg);
}
.sf-sw.custom .sf-sw-dot { background: var(--sw, transparent); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.sf-sw.custom .sf-sw-dot svg { width: 16px; height: 16px; }
.sf-sw.custom.on .sf-sw-dot svg { display: none; }
.sf-sw-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }

/* Sticky footer with the save buttons */
.sf-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  margin: -6px calc(-1 * var(--gutter)) 0;
  padding: 18px var(--gutter) calc(12px + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 18px);
}
.sf-another { min-height: 44px; font-size: 14.5px; }
.sf-error { margin: 0 0 6px; text-align: center; font-size: 13.5px; color: var(--danger); }
.sf-edit { gap: 0; }
.sf-edit .sf-footer { margin-top: 10px; }
