/* Tudo a Dois — estilos
   Base creme, terracota como cor principal, azulejo (azul) e mostarda como tons de apoio.
   Cada pessoa tem a sua cor: a 1.ª é azulejo, a 2.ª mostarda. O que é dos dois é terracota. */

:root {
  --cream: #f8f0e4;
  --paper: #fffaf1;
  --sand: #efe2cf;
  --line: #e3d4bf;
  --ink: #33241d;
  --ink-2: #6a5649;
  --ink-3: #8f7c6c;
  --terra: #b4532f;
  --terra-d: #8f3d20;
  --terra-soft: #f2d6c6;
  --azulejo: #4c6e87;
  --azulejo-soft: #dbe5ec;
  --mostarda: #b97d1e;
  --mostarda-soft: #f5e3bd;
  --sage: #667a58;
  --sage-soft: #e0e7d6;
  --danger: #a5382c;
  --danger-soft: #f6d9d4;
  --radius: 14px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--terra-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--azulejo); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marca ---------- */
.mark { display: inline-block; position: relative; width: 34px; height: 22px; flex: none; }
.mark i { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; }
.mark i:first-child { left: 0; background: var(--terra); }
.mark i:last-child { left: 12px; background: var(--azulejo); mix-blend-mode: multiply; }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-3); }
.boot .mark { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); } }

/* ---------- Estrutura ---------- */
.shell { min-height: 100dvh; display: block; }
.rail { display: none; }
.main { padding: calc(var(--safe-t) + 18px) 16px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 720px; margin: 0 auto; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.view-head p { color: var(--ink-2); font-size: .95rem; }
.stack { display: grid; gap: 14px; }
.stack-s { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
:where(svg[aria-hidden]) { width: 1.25em; height: 1.25em; flex: none; }
.row.wrap { flex-wrap: wrap; }
.row > svg { width: 22px; height: 22px; flex: none; color: var(--terra-d); }
.row > .grow { min-width: 0; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.section { margin-top: 26px; }
.section > h2 { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section > h2 .count { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-3); }

/* barra de navegação inferior (telemóvel) */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b);
}
.tab {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-height: var(--nav-h);
  border: 0; background: none; color: var(--ink-3); font-size: .72rem; text-decoration: none; position: relative;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--terra-d); font-weight: 600; }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--terra); }
.tab .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--terra); border: 2px solid var(--paper); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 240px 1fr; }
  .rail {
    display: flex; flex-direction: column; gap: 4px; padding: 28px 16px; position: sticky; top: 0; height: 100dvh;
    border-right: 1px solid var(--line); background: var(--paper);
  }
  .rail .brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 22px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
  .rail .tab { grid-auto-flow: column; justify-content: start; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-size: 1rem; }
  .rail .tab[aria-current="page"] { background: var(--terra-soft); }
  .rail .tab[aria-current="page"]::before { display: none; }
  .rail .tab .dot { top: 12px; left: 30px; }
  .rail .foot { margin-top: auto; padding: 12px; font-size: .8rem; color: var(--ink-3); }
  .tabbar { display: none; }
  .main { padding: 40px 32px 60px; max-width: 880px; }
  .home-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px 28px; align-items: start; }
  .home-grid .section:first-child { margin-top: 0; }
  .home-grid > .wide { grid-column: 1 / -1; }
}

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--terra); background: var(--terra); color: #fff; font-weight: 600;
  text-decoration: none; transition: transform .12s, background .15s; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: var(--terra-d); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--terra-d); }
.btn.ghost:hover { background: var(--terra-soft); }
.btn.quiet { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn.quiet:hover { background: var(--line); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }

.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  appearance: none; -webkit-appearance: none;
}
input[type=date], input[type=time] { min-width: 0; }
textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { display: grid; gap: 16px; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--terra); }
.switch input:checked::after { transform: translateX(20px); }
details.more { border-top: 1px dashed var(--line); padding-top: 12px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--terra-d); min-height: 32px; list-style: none; display: flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--terra-soft); font-weight: 700; }
details.more[open] > summary::before { content: "–"; }
details.more > .form { margin-top: 14px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink-2); font-size: .92rem; white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; }
.chip[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }
.chip.scroll { flex: none; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { min-height: 38px; border: 0; background: transparent; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(51,36,29,.15); }

/* ---------- Cartões ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card.tap { width: 100%; text-align: left; display: block; }
.card.tap:hover { border-color: var(--terra); }
.empty { text-align: center; padding: 30px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); display: grid; gap: 10px; justify-items: center; }
.empty h3 { color: var(--ink); }
.empty .mark { opacity: .8; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.pill.terra { background: var(--terra-soft); color: var(--terra-d); }
.pill.sage { background: var(--sage-soft); color: var(--sage); }
.pill.mostarda { background: var(--mostarda-soft); color: var(--mostarda); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill svg { width: 14px; height: 14px; }

/* interesse de cada um */
.who { display: inline-flex; align-items: center; gap: 4px; }
.avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 700; color: #fff; flex: none; }
.p0 { --pc: var(--azulejo); --pcs: var(--azulejo-soft); }
.p1 { --pc: var(--mostarda); --pcs: var(--mostarda-soft); }
.avatar { background: var(--pc); }
.lvl { display: inline-flex; gap: 2px; }
.lvl i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.lvl i.on { background: var(--pc, var(--terra)); }
.interest { display: inline-flex; align-items: center; gap: 8px; }
.interest .who { padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--pcs, var(--sand)); font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.interest .who.none { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); font-weight: 500; }
.interest .who.none .avatar { background: var(--line); }
.both-hot { background: var(--terra-soft); color: var(--terra-d); }

.opt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt {
  min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 600; font-size: .9rem; display: grid; place-items: center; gap: 0; padding: 6px 4px;
}
.opt small { font-weight: 500; color: var(--ink-3); font-size: .72rem; }
.opt[aria-pressed="true"] { background: var(--terra); color: #fff; border-color: var(--terra); }
.opt[aria-pressed="true"] small { color: #ffe9de; }

/* ---------- Ideias ---------- */
.idea { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.idea .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; color: var(--terra-d); }
.idea .ico svg { width: 24px; height: 24px; }
.idea .ttl { font-weight: 600; overflow-wrap: anywhere; }
.idea .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; color: var(--ink-3); margin-top: 2px; }
.idea .meta span { display: inline-flex; align-items: center; gap: 4px; }
.idea .meta svg { width: 14px; height: 14px; }
.idea .ints { display: grid; gap: 4px; justify-items: end; }
.idea.archived { opacity: .6; }
.list-items { display: grid; gap: 10px; }

/* ---------- Bilhetes (planos) ---------- */
.ticket {
  --stub: 78px; position: relative; display: grid; grid-template-columns: var(--stub) 1fr; text-align: left; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0; color: inherit;
  -webkit-mask: radial-gradient(circle 9px at var(--stub) 0, #0000 97%, #000) , radial-gradient(circle 9px at var(--stub) 100%, #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 9px at var(--stub) 0, #0000 97%, #000), radial-gradient(circle 9px at var(--stub) 100%, #0000 97%, #000);
  mask-composite: intersect;
}
.ticket .stub {
  display: grid; align-content: center; justify-items: center; padding: 12px 6px; border-right: 2px dashed var(--line);
  background: var(--terra); color: #fff; border-radius: 15px 0 0 15px; text-align: center; line-height: 1.05;
}
.ticket .stub .mo { font-size: .72rem; letter-spacing: .06em; text-transform: lowercase; opacity: .9; }
.ticket .stub .dd { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin: 2px 0; }
.ticket .stub .wd { font-size: .72rem; opacity: .9; }
.ticket .body { padding: 12px 14px; display: grid; gap: 4px; min-width: 0; }
.ticket .body h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.ticket .body .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .86rem; color: var(--ink-2); }
.ticket .body .meta span { display: inline-flex; align-items: center; gap: 4px; }
.ticket .body .meta svg { width: 15px; height: 15px; }
.ticket.proposed .stub { background: var(--paper); color: var(--terra-d); border-right-color: var(--terra); }
.ticket.proposed { border-style: dashed; border-color: var(--terra); }
.ticket.cancelled { opacity: .6; }
.ticket.cancelled .stub { background: var(--sand); color: var(--ink-3); }
.ticket.cancelled h3 { text-decoration: line-through; }
.ticket.big { --stub: 96px; }
.ticket.big .stub .dd { font-size: 2.5rem; }
.ticket.big .body h3 { font-size: 1.25rem; }
.ticket.big .body { padding: 16px 16px; gap: 6px; }
.ticket.mine .stub { }
.slip { display: grid; grid-template-columns: 6px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; width: 100%; padding: 0; }
.slip .bar { background: var(--pc); }
.slip .in { padding: 10px 14px; display: grid; gap: 2px; }
.slip .meta { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.slip.cancelled { opacity: .55; }
.slip.cancelled strong { text-decoration: line-through; }

.day-label { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink-2); margin: 18px 0 8px; }
.day-label.today { color: var(--terra-d); }

/* resposta a propostas */
.reply { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.todo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.todo-card.ask { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.todo-card .why { font-size: .88rem; color: var(--ink-2); }
.change { background: var(--mostarda-soft); border-radius: 10px; padding: 8px 12px; font-size: .88rem; color: var(--ink); }

/* mês */
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.month-head h2 { text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .75rem; color: var(--ink-3); padding: 4px 0; }
.cal .d {
  aspect-ratio: 1 / 1.05; border: 1.5px solid transparent; border-radius: 12px; background: var(--paper); display: grid; grid-template-rows: auto 1fr; justify-items: center; padding: 6px 0 4px; font-size: .95rem;
}
.cal .d.out { background: transparent; color: var(--ink-3); opacity: .5; }
.cal .d.today { border-color: var(--terra); font-weight: 700; }
.cal .d[aria-pressed="true"] { background: var(--terra-soft); }
.cal .dots { display: flex; gap: 3px; align-items: end; padding-bottom: 2px; flex-wrap: wrap; justify-content: center; max-width: 80%; }
.cal .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.cal .dots i.prop { background: transparent; border: 1.5px solid var(--terra); }
.cal .dots i.p0 { background: var(--azulejo); } .cal .dots i.p1 { background: var(--mostarda); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-3); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Desejos ---------- */
.wish { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.wish .ttl { font-weight: 600; overflow-wrap: anywhere; }
.wish .meta { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.wish.got .ttl { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-2); }

/* ---------- Cronologia ---------- */
.timeline { position: relative; display: grid; gap: 12px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 11px); }
.timeline .year { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--terra-d); margin-top: 8px; position: relative; }
.timeline .year::before { content: ""; position: absolute; left: -22px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--terra); border: 3px solid var(--cream); }
.exp { position: relative; display: grid; grid-template-columns: 1fr; text-align: left; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.exp::before { content: ""; position: absolute; left: -20px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--terra); }
.exp .meta { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.exp .meta span { display: inline-flex; align-items: center; gap: 4px; }
.exp .meta svg { width: 15px; height: 15px; }

/* ---------- Folhas (modais) ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(51,36,29,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; background: var(--cream); border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  animation: rise .22s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-b);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 8px 6px 20px; }
.sheet-head h2 { font-size: 1.25rem; }
.sheet-body { padding: 8px 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: 16px; align-content: start; }
.sheet-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--cream); }
.sheet-foot .btn { flex: 1; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; max-height: 88dvh; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

#toasts { position: fixed; z-index: 80; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .92rem; max-width: 520px; box-shadow: 0 6px 20px rgba(51,36,29,.25); animation: rise .2s ease-out; }
.toast.err { background: var(--danger); }

.banner { background: var(--mostarda-soft); border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.banner.err { background: var(--danger-soft); color: var(--danger); }

/* ---------- Entrada ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 18px 30px; }
.gate-in { width: 100%; max-width: 420px; display: grid; gap: 22px; }
.gate-brand { display: grid; justify-items: center; gap: 10px; text-align: center; }
.gate-brand .mark { transform: scale(1.8); margin: 14px 0 10px; }
.gate-brand h1 { font-size: 2.1rem; }
.gate-brand p { color: var(--ink-2); }
.code-box { font-family: var(--serif); font-size: 1.8rem; letter-spacing: .14em; text-align: center; padding: 14px; border: 2px dashed var(--terra); border-radius: 14px; background: var(--paper); user-select: all; }
.steps { display: grid; gap: 10px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; padding-left: 38px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--terra-soft); color: var(--terra-d); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }

.sugg { background: linear-gradient(135deg, var(--terra-soft), var(--mostarda-soft)); border-radius: 18px; padding: 18px; display: grid; gap: 10px; }
.sugg h3 { font-size: 1.2rem; }
.big-add { display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
hr.dash { border: 0; border-top: 1.5px dashed var(--line); margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
