/* Design System Xô Bagunça (maria-luiza-organizer/DESIGN.md), com o ajuste da Maria Luiza em 07/10:
   títulos e subtítulos em Kollektif SEM negrito, amarelos (#f2d31d / #e9eb17), sempre sobre faixa dourada;
   texto branco sobre o dourado; verde musgo (#515221) no lugar do preto, inclusive no texto das listas.
   Áreas de uso (listas, formulários) continuam claras. Nenhum valor solto: tudo pelos tokens abaixo. */
:root {
  /* cores */
  --white: #ffffff;
  --gold: #b89400;
  --yellow: #f2d31d;
  --yellow-light: #e9eb17;
  --moss: #515221;
  --gold-hover: #9e7f00;
  --gold-press: #846a00;
  --cream: #fbf7e6;
  --gold-tint: #f6edc4;
  --ink: #515221; /* verde musgo no lugar do preto (pedido dela, 07/10) */
  --ink-soft: #5f6033;
  --line: #e8dfb4;
  --success: #6b7d1f;
  --danger: #a8432a;
  --focus-ring: 0 0 0 3px rgba(242, 211, 29, .55);

  /* tipografia */
  --font-display: "Kollektif", system-ui, sans-serif; /* títulos em Kollektif sem negrito (07/10) */
  --font-body: "Kollektif", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-xl: 28px; --fs-2xl: 40px;
  /* tamanho único de todos os títulos e de todos os subtítulos (pedido dela, 08/10) */
  --fs-title: 24px; --fs-subtitle: 18px;
  --lh-tight: 1.1; --lh-snug: 1.25; --lh-body: 1.5; --ls-display: .02em;

  /* forma, espaço e movimento */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --border-w: 1.5px;
  --shadow-sm: 0 1px 3px rgba(81, 82, 33, .12);
  --shadow-md: 0 6px 18px rgba(81, 82, 33, .14);
  --shadow-lg: 0 16px 40px rgba(81, 82, 33, .18);
  --ease: cubic-bezier(.3, .7, .3, 1);
  --dur: 180ms;

  color-scheme: only light;
}

/* Kollektif embutida junto do app (títulos sem negrito; negrito só em destaque de texto). */
@font-face { font-family: "Kollektif"; src: url("fonts/Kollektif.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kollektif"; src: url("fonts/Kollektif-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
/* O app esconde avisos e contadores com o atributo hidden; nenhum display pode vencê-lo. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--fs-md)/var(--lh-body) var(--font-body);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--yellow); text-underline-offset: 3px; }

/* ---------- topo (peça de marca): foto, dourado, cantos inferiores arredondados ---------- */
.hero {
  position: relative; height: 200px; overflow: hidden;
  background: var(--gold) url("header.jpg") center 30% / cover no-repeat;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-md);
}
/* A foto aparece só no alto; embaixo fica dourado liso para a logo (que já é dourada) ficar legível. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(81, 82, 33, .10) 0%, rgba(184, 148, 0, 0) 18%, rgba(184, 148, 0, .92) 42%, var(--gold) 52%);
}
.hero-bar {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-4);
  display: flex; align-items: flex-end; gap: var(--sp-3);
}
/* Avatar novo dela (já vem com a moldura dourada redonda). */
.avatar {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(81, 82, 33, .25));
}
/* Logo Tchau Bagunça! dela (bonequinha + casinha + nome + "Compras"), já pronta: só posicionada sobre o dourado. */
.hero h1 { margin: 0; font-weight: 400; line-height: var(--lh-tight); }
.hero .logo {
  display: block; width: min(320px, 82vw); height: auto;
  filter: drop-shadow(0 2px 4px rgba(81, 82, 33, .55));
}
.icon-btn {
  position: absolute; z-index: 1; top: calc(12px + env(safe-area-inset-top)); right: var(--sp-4);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(81, 82, 33, .55); color: var(--white); font-weight: 700; cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.icon-btn:active { transform: scale(.97); }
/* Mesma moldura do microfone: o círculo dourado dela no lugar do aro branco. */
.icon-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: url("circulo-dourado.png") center / contain no-repeat;
}

/* ---------- comando ---------- */
.command, main { max-width: 560px; margin: 0 auto; }
.command { display: flex; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3); }
.command input, .list-add input, dialog input, dialog select, .lot-add input {
  background: var(--white); color: var(--ink);
  border: var(--border-w) solid var(--line); border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.command input, .list-add input { flex: 1; min-width: 0; padding: var(--sp-3) var(--sp-4); }
input::placeholder { color: var(--ink-soft); opacity: .8; }
.command input:focus, .list-add input:focus, .lot-add input:focus, dialog input:focus, dialog select:focus {
  outline: none; border-color: var(--gold); box-shadow: var(--focus-ring);
}

/* ---------- botões: pílula ---------- */
.btn {
  border: var(--border-w) solid var(--gold); border-radius: var(--radius-pill); padding: 10px 20px; cursor: pointer;
  background: var(--gold); color: var(--yellow-light); font-weight: 700;
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { filter: brightness(.92); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .tab:focus-visible, .qty-btns button:focus-visible, .mic:focus-visible, .icon-btn:focus-visible {
  outline: none; box-shadow: var(--focus-ring);
}
.btn.small { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn.ghost { background: transparent; color: var(--yellow); border-color: var(--gold); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.gold { background: var(--yellow); color: var(--moss); border-color: var(--yellow); }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.link { background: none; border: 0; color: var(--yellow); font-weight: 700; cursor: pointer; padding: var(--sp-1) var(--sp-2); }

/* ---------- listas: cartões brancos sobre creme ---------- */
main { padding: 0 var(--sp-4) var(--sp-4); }
/* Título da tela: faixa dourada com título amarelo (Kollektif sem negrito). */
.section-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-3);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); background: var(--gold); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-snug); color: var(--yellow-light); font-weight: 400;
  letter-spacing: .02em; white-space: nowrap;
}
.section-head .btn { white-space: nowrap; flex-shrink: 0; background: var(--white); color: var(--yellow); border-color: var(--white); }
/* Subtítulo (categoria): etiqueta dourada com texto amarelo-claro, sem negrito. */
.cat {
  display: inline-block; margin: var(--sp-5) 0 var(--sp-2); padding: var(--sp-1) var(--sp-4);
  background: var(--gold); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--fs-subtitle); text-transform: uppercase; letter-spacing: .08em; font-weight: 400;
  color: var(--yellow-light);
}
.list {
  list-style: none; margin: 0; padding: 0 var(--sp-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.item {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { from { background: var(--gold-tint); } to { background: transparent; } }
.item-main { flex: 1; min-width: 0; background: none; border: 0; text-align: left; padding: 0; cursor: pointer; }
.item-name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.item-meta { display: block; font-size: var(--fs-sm); color: var(--ink-soft); }
.item-meta .low { color: var(--danger); font-weight: 700; }
.qty-btns { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.qty-btns button {
  width: 40px; height: 40px; border-radius: 50%; border: var(--border-w) solid var(--gold);
  background: var(--white); color: var(--yellow); font-size: 1.25rem; font-weight: 700; cursor: pointer;
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.qty-btns button:active { transform: scale(.97); }
.qty-btns button.plus { background: var(--gold); color: var(--yellow-light); }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700;
  white-space: nowrap; vertical-align: 1px;
}
.badge.vencido { background: var(--danger); color: var(--white); }
.badge.breve { background: var(--yellow); color: var(--moss); }
.badge.falta { background: var(--gold); color: var(--yellow-light); }
.badge.ok { background: var(--gold-tint); color: var(--moss); }

.check { width: 24px; height: 24px; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.item.done .item-name { text-decoration: line-through; color: var(--ink-soft); }

.empty {
  margin: var(--sp-5) 0; padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--gold-tint);
  border: var(--border-w) dashed var(--gold); text-align: center;
}
.empty p { margin: 0 0 var(--sp-3); }
.empty .btn { margin: var(--sp-1); }
.muted { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- abas, microfone, aviso ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(81, 82, 33, .10);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; min-width: 0; padding: 14px 2px; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; color: var(--ink-soft);
  border-top: 3px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab.active { color: var(--yellow); border-top-color: var(--gold); }
.count {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--yellow); color: var(--moss); font-size: var(--fs-xs); line-height: 20px;
}

.mic {
  position: fixed; z-index: 7; right: max(16px, calc(50% - 264px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--yellow-light); cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease);
}
/* Moldura: o círculo dourado dela no lugar do aro branco. */
.mic::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  background: url("circulo-dourado.png") center / contain no-repeat;
}
.mic:active { transform: scale(.97); }
.mic.listening { background: var(--gold-hover); animation: pulse 1.1s infinite; }
.mic.off { opacity: .6; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 211, 29, .9); }
  100% { box-shadow: 0 0 0 18px rgba(242, 211, 29, 0); }
}

.toast {
  position: fixed; z-index: 8; left: var(--sp-4); right: 96px; bottom: calc(84px + env(safe-area-inset-bottom));
  max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); background: var(--moss); color: var(--white);
  box-shadow: var(--shadow-lg);
}
.toast.error { border: 2px solid var(--yellow-light); }
.toast-alert { font-weight: 700; color: var(--yellow-light); }
.toast.error .link { color: var(--yellow-light); }

/* ---------- janelas (área de uso): branco, títulos dourados ---------- */
dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: hidden auto;
  border: 0; border-radius: var(--radius-lg); padding: var(--sp-5);
  color: var(--ink); background: var(--white); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(81, 82, 33, .6); }
/* Título da janela: faixa dourada no alto, amarelo, sem negrito. Subtítulo: etiqueta dourada, amarelo-claro. */
dialog h2 {
  margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4); padding: var(--sp-4) var(--sp-5);
  background: var(--gold); color: var(--yellow-light); font-family: var(--font-display);
  font-size: var(--fs-title); line-height: var(--lh-snug); font-weight: 400; letter-spacing: .02em;
}
dialog h3 {
  display: inline-block; margin: var(--sp-4) 0 var(--sp-2); padding: var(--sp-1) var(--sp-4);
  background: var(--gold); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--fs-subtitle); color: var(--yellow-light); font-weight: 400;
}
dialog label { display: block; margin: var(--sp-3) 0; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-soft); }
dialog label small { font-weight: 400; }
dialog input, dialog select { display: block; width: 100%; margin-top: 6px; padding: var(--sp-3); font-size: var(--fs-md); }
dialog select { min-width: 0; cursor: pointer; }
dialog select + input { margin-top: 6px; }
/* Categoria e Unidade em linhas próprias: os nomes das categorias dela são longos. */
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.lots { list-style: none; margin: 0; padding: 0; }
.lots li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-2); }
.lots input { margin: 0; min-width: 0; }
.lots .del, .item .del {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm); border: var(--border-w) solid var(--line);
  background: var(--white); color: var(--ink-soft); font-weight: 700; cursor: pointer;
}
.lot-add { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--sp-2); }
.lot-add input { padding: var(--sp-3); min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.spacer { flex: 1; }
/* Ajuda: comandos em destaque (escuro) e complementos/marcadores na cor da marca, como ela pediu. */
.examples { padding-left: 18px; }
.examples li { margin: 6px 0; color: var(--ink); }
.examples li::marker { color: var(--yellow); }
.examples .verb { color: var(--yellow); }
.examples .note { color: var(--ink-soft); }
.hl { color: var(--yellow); font-weight: 400; }
.font-credit { margin: var(--sp-4) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---------- página de contato (peça de marca): dourado, títulos amarelos, texto branco ---------- */
.actions form { margin: 0; }
dialog.contact { padding: 0 0 var(--sp-5); background: var(--gold); color: var(--white); }
dialog.contact > :not(.contact-top) { margin-left: var(--sp-5); margin-right: var(--sp-5); }
.contact-top { display: block; width: 100%; height: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
dialog.contact h2 { margin: var(--sp-4) var(--sp-5) var(--sp-3); padding: 0; background: none; color: var(--yellow-light); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-title); letter-spacing: var(--ls-display); }
dialog.contact h3 { display: block; padding: 0; background: none; color: var(--yellow-light); font-size: var(--fs-subtitle); }
.contact-link {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md); background: var(--moss); color: var(--white); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact-link:hover { filter: brightness(1.08); }
.contact-link:active { transform: scale(.97); }
/* Linha amarela "Instagram - CLIQUE AQUI" (só a rede em negrito) e contato em branco, sem negrito. */
.contact-link .cta { font-size: 1.1rem; font-weight: 400; color: var(--yellow-light); }
.contact-link .cta b { font-weight: 700; color: var(--white); }
.contact-link .who { font-size: var(--fs-md); font-weight: 400; color: var(--white); overflow-wrap: anywhere; }
.next-apps { list-style: none; padding: 0; }
.next-apps li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--gold-tint); font-weight: 700; font-size: 1.05rem; }
.contact-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-2); }
.contact-foot form { margin: 0; }
dialog.contact .btn { background: var(--yellow); color: var(--moss); border-color: var(--yellow); }

/* ---------- lista de compras: anotar item avulso ---------- */
.list-add { display: flex; gap: var(--sp-2); margin: var(--sp-2) 0; }

/* ---------- lista de compras: quanto comprar (amarelo, livre) e o estoque embaixo ---------- */
.item.shop { align-items: flex-start; }
.item.shop .check { margin-top: 2px; }
.shop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.buy { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink); }
.buy-qty {
  width: 84px; padding: 6px var(--sp-3); text-align: center;
  background: var(--yellow); color: var(--moss); font-weight: 700; font-size: var(--fs-md);
  border: var(--border-w) solid var(--yellow); border-radius: var(--radius-pill);
  transition: box-shadow var(--dur) var(--ease);
}
.buy-qty:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.buy-qty::placeholder { color: var(--moss); opacity: .7; }
.buy-unit { color: var(--ink); font-weight: 700; }
.item.done .buy-qty { opacity: .55; }
.buy-tip { padding: 0 var(--sp-2); border-radius: var(--radius-pill); background: var(--yellow); color: var(--moss); font-weight: 700; }

/* ---------- fim do teste das clientes (peça de marca; só no endereço de teste, depois da data) ---------- */
body.trial-over > :not(.trial-end) { display: none !important; }
body.trial-over { padding-bottom: 0; background: var(--gold); color: var(--white); }
html:has(body.trial-over) { background: var(--gold); }
.trial-end {
  max-width: 480px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 20px 32px; text-align: center;
}
.trial-end .avatar { width: 120px; height: 120px; margin: 0 auto var(--sp-4); display: block; }
.trial-end h1 {
  margin: 0 0 var(--sp-3); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-title);
  letter-spacing: var(--ls-display); color: var(--yellow-light); text-shadow: 0 2px 8px rgba(81, 82, 33, .45);
}
.trial-end p { margin: 0 0 var(--sp-3); font-size: 1.1rem; font-weight: 700; }
.trial-end .contact-link { text-align: left; }

/* ---------- botões da rodada 3 (08/10) ---------- */
/* Guardar Marcados e Entendi: verde musgo com letra branca. */
.btn.dark, .section-head .btn.dark { background: var(--moss); color: var(--white); border-color: var(--moss); }
/* v1.9: desativado continua verde musgo puro (antes ficava transparente e o dourado mudava o verde); so o texto apaga. */
.btn.dark:disabled, .section-head .btn.dark:disabled { opacity: 1; background: var(--moss); border-color: var(--moss); color: rgba(255,255,255,.55); }
/* Fale com [Maria Luiza] - CLIQUE AQUI: dourado; "Fale com" branco, "Clique Aqui" amarelo (v1.9); o nome é a assinatura dela. */
.btn.brand {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; line-height: 1.1;
  background: var(--gold); border-color: var(--gold); color: var(--yellow-light);
}
.btn.brand .sig { height: 2.3em; width: auto; margin: -4px 0 0; }
.btn.brand .break { flex-basis: 100%; height: 0; }
.white { color: var(--white); }

/* ---------- v2.1: editar categoria e foto, só dentro do item ---------- */
.cat-row { display: flex; gap: var(--sp-2); align-items: flex-end; }
.cat-row select { flex: 1; }
.cat-edit {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-sm); border: var(--border-w) solid var(--line);
  background: var(--white); color: var(--ink); font-size: var(--fs-md); cursor: pointer;
}
.rename-cat { margin: 0 0 var(--sp-3); padding: var(--sp-3); background: var(--gold-tint); border-radius: var(--radius-sm); }
.rename-cat label { margin-top: 0; }
.rename-warn { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--ink); }
.rename-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }
.photo-box { display: flex; gap: var(--sp-3); align-items: flex-start; flex-wrap: wrap; }
.photo-thumb { padding: 0; border: var(--border-w) solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; line-height: 0; }
.photo-thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); }
.photo-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: 1; min-width: 0; }
.photo-btns label.btn { display: inline-block; margin: 0; cursor: pointer; }
.photo-hint { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dialog.photo-zoom { text-align: center; }
dialog.photo-zoom img { max-width: 100%; max-height: 70dvh; border-radius: var(--radius-sm); }
dialog.photo-zoom form { margin-top: var(--sp-4); }
