/* Ninguém Viu — papel de carta e lacre de cera.
   Superfícies neutras; a cor fica nos envelopes e no lacre. */

:root {
  color-scheme: light;

  --bg: #ECEEF1;
  --surface: #FFFFFF;
  --surface-2: #F5F6F8;
  --ink: #1B2130;
  --ink-2: #545D6E;
  --ink-3: #7E8798;
  --line: rgba(27, 33, 48, .10);
  --line-2: rgba(27, 33, 48, .16);

  --wax: #AE242A;
  --wax-deep: #73161B;
  --wax-press: #951E24;
  --wax-soft: #F6E3E4;
  --ok: #2E6B4F;
  --wa: #1F7A4C;

  --r-ctl: 10px;
  --r-card: 16px;
  --r-env: 10px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 140ms;
  --t-mid: 260ms;

  --font: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Comic Neue", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(28px, 6vw, 36px); letter-spacing: -0.01em; }
h2 { font-size: 20px; }
p { margin: 0; }
a { color: var(--wax); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { display: block; }
.i { flex: none; }
.hand { font-family: var(--hand); font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--wax); outline-offset: 2px; border-radius: 4px; }

/* ── Topo ─────────────────────────────────────────────── */
.topbar { padding: 0 16px; }
.topbar__in {
  max-width: 1120px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 32px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 20px; }
.topbar__nav form { margin: 0; }
.topbar__nav a, .link-btn {
  color: var(--ink-2); text-decoration: none; font: inherit; font-size: 15px;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.topbar__nav a:hover, .link-btn:hover { color: var(--ink); }

/* ── Página ───────────────────────────────────────────── */
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 64px; flex: 1; }
.page--wide { max-width: 1120px; }
.page--public { max-width: 960px; padding-top: 40px; }
.foot { padding: 24px 16px 40px; display: flex; justify-content: center; opacity: .7; }
.foot .logo img { height: 24px; }

.back {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 16px -4px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 4px;
}
.back:hover { color: var(--ink); }

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 24px; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--wax); border-color: var(--wax); color: #fff; }
.btn--primary:hover { background: var(--wax-press); border-color: var(--wax-press); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(27, 33, 48, .05); color: var(--ink); }
.btn--danger { background: var(--surface); border-color: var(--wax); color: var(--wax); }
.btn--danger:hover { background: var(--wax-soft); }
.btn--wa { color: var(--wa); }
.btn--lg { height: 56px; padding: 0 24px; font-size: 17px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-ctl); border: 0; background: transparent; color: var(--ink-3);
  cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(27, 33, 48, .06); color: var(--ink); }
.icon-btn--wa:hover { color: var(--wa); }
.icon-btn.is-done, .btn.is-done { color: var(--ok); }

/* ── Formulários ──────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-card { background: var(--surface); border-radius: var(--r-card); padding: 24px 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=date], input[type=time] {
  width: 100%; min-width: 0; height: 52px; padding: 0 14px;
  border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: 400 17px var(--font);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: var(--ink-3); }
input:focus { outline: none; border-color: var(--wax); box-shadow: 0 0 0 3px var(--wax-soft); }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* Switch */
.switches { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; padding: 8px 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  flex: none; width: 48px; height: 28px; border-radius: 14px; margin-top: 2px;
  background: #CDD2DA; position: relative; transition: background-color var(--t-mid) var(--ease);
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px;
  background: #fff; box-shadow: 0 1px 2px rgba(27, 33, 48, .2);
  transition: transform var(--t-mid) var(--ease);
}
.switch input:checked + .switch__track { background: var(--wax); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--wax); outline-offset: 2px; }
.switch__text { display: flex; flex-direction: column; gap: 2px; }
.switch__text strong { font-weight: 500; }
.switch__text span { font-size: 14px; color: var(--ink-2); }

/* Avisos */
.flash { border-radius: var(--r-ctl); padding: 12px 16px; margin-bottom: 16px; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.flash--ok { border-color: rgba(46, 107, 79, .3); color: var(--ok); }
.flash--error { border-color: rgba(168, 32, 44, .3); color: var(--wax); }
.notice { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 16px; }

/* ── Envelope ─────────────────────────────────────────── */
.env {
  --paper: #D3B08A; --paper-flap: #C7A27A; --paper-fold: #CBA67E; --paper-in: #9C7A57; --on: #3B2A18;
  position: relative; display: block; width: 100%; aspect-ratio: 7 / 5;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left;
  container-type: inline-size; perspective: 1000px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
div.env { cursor: default; }
.env--kraft   { --paper: #D3B08A; --paper-flap: #C49D74; --paper-fold: #CAA67F; --paper-in: #8E6C4C; --on: #3B2A18; }
.env--pine    { --paper: #2F5D50; --paper-flap: #284F44; --paper-fold: #2B574B; --paper-in: #17332B; --on: #EAF1EC; }
.env--sky     { --paper: #A9C4E0; --paper-flap: #97B5D5; --paper-fold: #A0BDDA; --paper-in: #5F7F9F; --on: #1D2D40; }
.env--mustard { --paper: #E6C15D; --paper-flap: #D8B04A; --paper-fold: #DFB955; --paper-in: #9C7A22; --on: #3A2C08; }
.env--plum    { --paper: #6E3B5C; --paper-flap: #60324F; --paper-fold: #683756; --paper-in: #3B1C30; --on: #F5E9F0; }
.env--rose    { --paper: #EBB7B0; --paper-flap: #E0A39B; --paper-fold: #E6AEA6; --paper-in: #A86A62; --on: #4A221D; }

.env > span { position: absolute; }
.env__back { inset: 1px; border-radius: var(--r-env); background: var(--paper-in); z-index: 1; }

.env__card {
  left: 6%; right: 6%; top: 5%; bottom: 6%; z-index: 2;
  background: #FFFDF9; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; padding-top: 7cqw; gap: 1cqw;
  transform: translateY(0); visibility: hidden;
  transition: transform 700ms var(--ease) 380ms, visibility 0s linear 380ms;
  box-shadow: 0 1px 2px rgba(27, 33, 48, .12);
}
.env__card-label { font-size: max(12px, 4.4cqw); color: var(--ink-2); }
.env__card-name { font-size: max(24px, 13cqw); line-height: 1.05; color: var(--ink); text-align: center; padding: 0 4%; overflow-wrap: anywhere; }

.env__front { inset: 0; z-index: 3; border-radius: var(--r-env); background: var(--paper); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.env__front::before, .env__front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--paper-fold); }
.env__front::before { clip-path: polygon(0 0, 49% 56%, 0 100%); }
.env__front::after { clip-path: polygon(100% 0, 51% 56%, 100% 100%); }

.env__flap {
  left: 0; right: 0; top: 0; height: 56%; z-index: 4;
  transform-origin: 50% 0; transform: rotateX(0deg);
  filter: drop-shadow(0 1.5px 1px rgba(27, 33, 48, .22));
  transition: transform 520ms var(--ease), z-index 0s linear 260ms;
}
.env__flap i { display: block; width: 100%; height: 100%; background: var(--paper-flap); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: var(--r-env) var(--r-env) 0 0; }

.env__seal {
  left: 50%; top: 56%; width: 22%; aspect-ratio: 1; z-index: 5;
  transform: translate(-50%, -50%) rotate(-6deg);
  display: grid; place-items: center;
  transition: transform 300ms var(--ease), opacity 240ms var(--ease);
}
.env__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 1.5px 1.5px rgba(40, 6, 10, .35)); }
.env__seal path { fill: var(--wax); }
.env__seal circle { fill: none; stroke: var(--wax-deep); stroke-width: 34; opacity: .85; }
.env__seal > span {
  position: relative; color: #F4D6D3; font-weight: 600; font-size: max(13px, 7.4cqw); letter-spacing: .02em;
  text-shadow: 0 -1px 0 rgba(60, 8, 14, .55), 0 1px 0 rgba(255, 220, 220, .18);
}

.env__name {
  left: 6%; right: 6%; bottom: 5%; z-index: 5; text-align: center;
  color: var(--on); font-size: max(17px, 10.5cqw); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.env__badge {
  top: 8px; right: 8px; z-index: 6; font-size: 13px; font-weight: 500;
  padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--ink-2);
}

/* Estados no grid: já aberto */
.env.is-taken, .env.is-mine { cursor: pointer; }
.env.is-taken .env__seal, .env.is-mine .env__seal { opacity: 0; transform: translate(-50%, -40%) scale(.7) rotate(-20deg); }
.env.is-taken .env__flap, .env.is-mine .env__flap { transform: rotateX(28deg); }
.env.is-taken { opacity: .55; }
.env.is-mine .env__badge { background: var(--wax); color: #fff; }

/* Abrindo */
.env.open .env__flap { transform: rotateX(180deg); z-index: 1; }
.env.open .env__seal { opacity: 0; transform: translate(-50%, -30%) scale(.6) rotate(-24deg); }
.env.open .env__card { visibility: visible; transform: translateY(-62%); transition: transform 700ms var(--ease) 380ms, visibility 0s; }
.env.open .env__badge { display: none; }

button.env { transition: transform var(--t-fast) var(--ease); }
button.env:hover { transform: translateY(-2px); }
button.env:active { transform: scale(.98); }
button.env:focus-visible { outline: 3px solid var(--wax); outline-offset: 4px; border-radius: 12px; }

/* ── Início ───────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 24px 0 56px; align-items: center; }
.hero__text h1 { font-size: clamp(34px, 8.6vw, 60px); line-height: 1.04; letter-spacing: -0.025em; max-width: 13ch; }
.lead { font-size: 19px; color: var(--ink-2); margin-top: 20px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.hero__stage { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; margin: 0 auto; }
.hero__env { position: absolute; width: 72%; }
.hero__env--1 { left: 0; top: 30%; transform: rotate(-9deg); }
.hero__env--2 { right: 0; top: 34%; transform: rotate(7deg); }
.hero__env--3 { left: 14%; top: 46%; transform: rotate(-1deg); filter: drop-shadow(0 12px 18px rgba(27, 33, 48, .16)); }
.hero__env--1, .hero__env--2 { filter: drop-shadow(0 6px 10px rgba(27, 33, 48, .10)); }

.facts { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 32px 0 16px; border-top: 1px solid var(--line); }
.fact { color: var(--ink-2); }
.fact .i { color: var(--wax); margin-bottom: 12px; }
.fact h2 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.fact p { font-size: 16px; max-width: 36ch; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; min-height: calc(100dvh - 160px); padding: 0 0 48px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ── Login ────────────────────────────────────────────── */
.auth { max-width: 420px; margin: 32px auto 0; }
.auth h1 { margin-bottom: 8px; }
.auth > .muted { margin-bottom: 24px; }
.auth__alt { margin-top: 24px; font-size: 15px; color: var(--ink-2); text-align: center; }
.auth--sent { text-align: center; }
.auth--sent .muted { margin-bottom: 16px; }
.auth--sent .btn { margin-top: 24px; }
.sent-mark { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 32px; background: var(--wax-soft); color: var(--wax); display: grid; place-items: center; }

/* ── Grupos ───────────────────────────────────────────── */
.group-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.group-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px;
  background: var(--surface); border-radius: var(--r-card); color: var(--ink); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}
.group-row:hover { background: #FAFBFC; }
.group-row__seal, .mini-seal {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); color: var(--on); font-weight: 600;
}
.group-row__seal { width: 44px; height: 44px; font-size: 15px; }
.group-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.group-row__main strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-row__status { color: var(--ink-2); white-space: nowrap; }

.empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty__env { width: 200px; margin-bottom: 12px; }
.empty .btn { margin-top: 12px; }

.group-head { margin-bottom: 24px; }
.group-head__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.meta { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 15px; }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta .i { color: var(--ink-3); }

.panel { background: var(--surface); border-radius: var(--r-card); padding: 20px; margin-bottom: 12px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel__head h2 { font-size: 18px; }
.panel__head a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.panel .hint { margin-top: 4px; }
.panel form { margin: 0; }

.add-row { display: flex; gap: 8px; margin-top: 16px; }
.add-row input { flex: 1; }
.add-row .btn { height: 52px; padding: 0 18px; }
.add-row + .hint { margin-top: 8px; }

.people { list-style: none; margin: 16px 0 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; }
.mini-seal { width: 32px; height: 32px; font-size: 12px; }
.mini-seal.is-broken { opacity: .45; }
.people__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.status { font-size: 13px; color: var(--ink-3); }
.status--open { color: var(--ok); }

.progress { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 16px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 3px; }

.draw-bar { margin-top: 24px; }
.draw-bar .hint { margin-top: 10px; }

.share__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.share__url { grid-column: 1 / -1; font-size: 15px !important; color: var(--ink-2) !important; background: var(--surface-2) !important; }
.share__row .btn { height: 48px; }

.rule-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

.after-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
details > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 15px; padding: 10px 0;
}
details > summary::-webkit-details-marker { display: none; }
details > summary:hover { color: var(--ink); }
details[open] > summary { color: var(--ink); }
.confirm { background: var(--surface); border-radius: var(--r-card); padding: 16px; margin: 4px 0 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.confirm p { font-size: 15px; color: var(--ink-2); }
.danger-zone { margin-top: 24px; }
.danger-zone summary { color: var(--wax); }

@media (min-width: 560px) {
  .share__row { grid-template-columns: 1fr auto auto; }
  .share__url { grid-column: auto; }
  .form-card { padding: 28px; }
}
@media (max-width: 420px) { .hide-sm { display: none; } }

/* ── Links públicos ───────────────────────────────────── */
.pub-head { margin-bottom: 8px; }
.pub-head.center { text-align: center; }
.pub-head.center .meta { justify-content: center; }
.pub-hint { font-size: 17px; color: var(--ink-2); margin: 20px 0 24px; }

.envelopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 28px 16px; }
@media (min-width: 640px) { .envelopes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 24px; } }

.solo { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 16px; }
.solo__hi { font-size: 22px; color: var(--ink-2); margin: 8px 0 16px; }
.solo__stage { width: min(100%, 380px); padding-top: 40%; margin-top: 0; }
.solo__hint { margin-top: 24px; font-size: 17px; color: var(--ink-2); }
.solo__done { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; }

/* Folha de confirmação/revelação */
.sheet {
  width: min(100% - 24px, 440px); max-height: calc(100dvh - 24px);
  border: 0; border-radius: 20px; padding: 24px 20px 20px; background: var(--surface); color: var(--ink);
  overflow: auto;
}
.sheet::backdrop { background: rgba(27, 33, 48, .55); }
.sheet[open] { animation: sheet-in 240ms var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } }
.sheet__close { position: absolute; top: 8px; right: 8px; z-index: 10; }
.sheet__text { min-height: 150px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 8px 24px 16px; transition: opacity 200ms var(--ease); }
.sheet__text h2 { font-size: 24px; }
.sheet__sub { margin-top: 8px; color: var(--ink-2); }
.sheet.is-revealed .sheet__text { opacity: 0; }
.sheet__stage { width: min(100%, 320px); margin: -12px auto 0; }
.sheet__stage .env { cursor: default; }
.sheet__actions { display: none; flex-direction: column; gap: 8px; margin-top: 24px; }
.sheet__actions[data-step].is-active { display: flex; }
.sheet__wrong { align-self: center; font-size: 14px; color: var(--ink-3); margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.sheet.is-busy .sheet__actions { pointer-events: none; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation-duration: 1ms !important; }
}

[hidden] { display: none !important; }

.switch-extra { margin: 0 0 8px 62px; }

/* Avisos dos convidados */
.panel.alert { border: 1px solid rgba(168, 32, 44, .28); }
.alert__list { list-style: none; margin: 12px 0 16px; padding: 0; }
.alert__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.alert__list li:first-child { border-top: 0; }
.panel.alert .hint { margin-top: 10px; }

/* Nome editável na lista de participantes */
.name-edit {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
  padding: 6px 8px; margin-left: -8px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); font: inherit; text-align: left; cursor: text;
  transition: background-color var(--t-fast) var(--ease);
}
.name-edit__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-edit .i { color: var(--ink-3); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.name-edit:hover { background: var(--surface-2); }
.name-edit:hover .i, .name-edit:focus-visible .i { opacity: 1; }
@media (hover: none) { .name-edit .i { opacity: .6; } }
.name-input {
  flex: 1; min-width: 0; height: 40px !important; padding: 0 10px !important; margin-left: -8px;
  font-size: 17px !important;
}
.people__name .name-error { font-size: 13px; color: var(--wax); white-space: nowrap; }

/* Perguntas frequentes (home) */
.faq { padding: 48px 0 16px; max-width: 720px; }
.faq h2 { font-size: 24px; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 60ch; }

/* Aparelho que já abriu um envelope: os outros ficam travados */
.env.is-locked { opacity: .4; filter: saturate(.6); }
.env.is-locked:hover { transform: none; }

/* A lista não corta mais o campo de edição nem o hover do nome; o texto longo
   continua com reticências dentro do próprio botão */
.people__name { overflow: visible; }
.people__name .name-edit { max-width: calc(100% + 8px); }
