/* Conf Companion — casino felt, marquee bulbs, show tickets, poker chips. */
:root {
  --felt: #0b3b2e;
  --felt-hi: #125a46;
  --felt-lo: #072a21;
  --bulb: #ffd45c;
  --bulb-glow: rgba(255, 212, 92, .55);
  --chip: #e0453a;
  --chip-blue: #2f6fd6;
  --paper: #fff3d6;
  --paper-edge: #eadbb6;
  --ink: #1c1a14;
  --ink-soft: #5b5444;
  --sage: #a9cbbb;
  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --tabs-h: 64px;
  /* Safe areas as tokens (notch, home indicator) so every rule reads the same values. */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  /* AWS accents on top of the casino table: squid ink surfaces, orange highlights. */
  --squid: #232f3e;
  --squid-lo: #161e2b;
  --squid-a: rgba(35, 47, 62, .94);
  --aws-orange: #ff9900;
  --aws-orange-deep: #c45500; /* orange that still reads on paper */
  --card: rgba(22, 30, 43, .42);
  --card-line: rgba(255, 243, 214, .1);
  /* builder grid: faint blueprint lines + rivets over the felt */
  --grid:
    radial-gradient(circle at 1px 1px, rgba(255, 243, 214, .075) 1.1px, transparent 1.7px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 243, 214, .022) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 243, 214, .022) 1px, transparent 1px) 0 0 / 24px 24px;
  --header-h: calc(var(--sat) + 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--paper);
  background:
    var(--grid),
    radial-gradient(120% 70% at 50% -10%, var(--felt-hi) 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, var(--felt-lo) 0%, transparent 70%),
    var(--felt);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabs-h) + var(--sab) + 16px);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--aws-orange); outline-offset: 2px; border-radius: 6px; }
dialog :focus-visible, .marquee :focus-visible, .ticket :focus-visible { outline-color: var(--aws-orange-deep); }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* ---------- header (squid ink console bar; status bar text sits on it) ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--header-h);
  padding: calc(var(--sat) + 10px) max(16px, var(--sar)) 10px max(16px, var(--sal));
  background: var(--squid-a);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 -1px 0 rgba(255, 153, 0, .35), 0 6px 18px rgba(0, 0, 0, .18);
  margin-bottom: 12px;
}
.brand { font-family: var(--display); font-size: 15px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.brand-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bulb); box-shadow: 0 0 10px var(--bulb-glow); }
.bell {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; white-space: nowrap;
  border: 1.5px solid rgba(255, 243, 214, .35); background: transparent;
  padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.bell.on { border-color: var(--aws-orange); color: var(--aws-orange); }
@media (max-width: 380px) {
  /* leave room for one more icon button in the header on small phones */
  .brand { font-size: 13px; letter-spacing: .02em; }
  .bell { padding: 0 10px; }
}

main { padding: 0 16px; max-width: 560px; margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0 0 8px; }

/* ---------- day chips (poker chips) ---------- */
.days { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  border: 0; display: grid; place-content: center; line-height: 1;
  color: var(--ink); background:
    radial-gradient(circle, var(--paper) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--paper) 0 15deg, var(--chip-blue) 15deg 30deg);
  box-shadow: inset 0 0 0 3px var(--paper), 0 3px 0 rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.day small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.day b { font-family: var(--display); font-size: 18px; font-weight: 400; }
.day[aria-pressed="true"] {
  background:
    radial-gradient(circle, var(--paper) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--paper) 0 15deg, var(--chip) 15deg 30deg);
  transform: translateY(-3px);
}
.day.past { opacity: .5; }

/* ---------- marquee (signature) ---------- */
.marquee {
  position: relative; margin: 4px 0 22px; padding: 26px 22px 22px;
  border-radius: 18px; color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 6px #7a1f17, 0 0 0 8px var(--bulb), 0 18px 40px rgba(0,0,0,.35), 0 0 40px rgba(255,212,92,.25);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; inset: -14px; border-radius: 26px; pointer-events: none;
  padding: 8px;
  background: radial-gradient(circle, #fff7d9 0 2.6px, var(--bulb) 3px 3.6px, transparent 4.2px) 0 0 / 16px 16px;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 4px var(--bulb-glow));
}
.marquee::after { background-position: 8px 8px; animation: chase 1.1s steps(1) infinite; }
.marquee::before { animation: chase 1.1s steps(1) infinite reverse; }
@keyframes chase { 0% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .marquee::before, .marquee::after { animation: none; } }

.marquee-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.marquee-kicker { display: grid; justify-items: start; gap: 5px; min-width: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.kick-tag {
  background: var(--squid); color: var(--aws-orange); padding: 4px 8px; border-radius: 5px;
  white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.kick-time { color: #7a1f17; padding-left: 2px; white-space: nowrap; }
.marquee-count { font-family: var(--display); font-size: clamp(22px, 7vw, 30px); line-height: 1; color: var(--chip); white-space: nowrap; text-align: right; }
.marquee h1 { font-family: var(--body); font-weight: 800; font-size: 25px; line-height: 1.12; margin: 12px 0 6px; letter-spacing: -.01em; text-wrap: balance; }
.marquee .where { margin: 0; color: var(--ink-soft); font-size: 15px; }
.leave {
  margin-top: 14px; display: flex; gap: 10px; align-items: center;
  border-top: 2px dashed var(--paper-edge); padding-top: 12px; font-size: 15px;
}
.leave .tag { font-family: var(--display); font-size: 13px; background: var(--ink); color: var(--bulb); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.marquee .now-strip { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.marquee-empty h1 { font-size: 22px; }

/* ---------- tickets ---------- */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticket {
  display: grid; grid-template-columns: 76px 1fr; color: var(--ink);
  background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 3px 0 rgba(0,0,0,.22);
  position: relative;
}
.ticket.optional { background: #e8dcc0; }
.ticket.optional .stub { background: #cbbd9c; }
.ticket.done { opacity: .55; }
.ticket.live { box-shadow: 0 0 0 3px var(--bulb), 0 3px 0 rgba(0,0,0,.22); }
.stub {
  background: var(--bulb); padding: 12px 8px; text-align: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px; line-height: 1.25;
  border-right: 2px dashed rgba(28,26,20,.35);
  display: flex; flex-direction: column; justify-content: center;
}
.stub small { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.ticket-body { padding: 12px 14px; min-width: 0; }
.ticket-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.ticket-body .loc { margin: 0; font-size: 13px; color: var(--ink-soft); }
.ticket-body .walk { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: #7a1f17; }
.ticket details { margin-top: 4px; }
.ticket summary { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--chip-blue); list-style: none; cursor: pointer; }
.ticket summary::after { content: "▾"; margin-left: 6px; font-size: 11px; transition: transform .15s ease; }
.ticket details[open] summary::after { transform: rotate(180deg); }
.ticket summary::-webkit-details-marker { display: none; }
.ticket details p { font-size: 14px; line-height: 1.45; margin: 8px 0 0; white-space: pre-line; }
.ticket .map { display: inline-flex; align-items: center; min-height: 36px; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--chip-blue); }
.ticket-body h3, .ticket details p { overflow-wrap: anywhere; }
.badge-opt { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 2px 6px; border-radius: 4px; vertical-align: 2px; margin-left: 4px; }

/* ---------- todos ---------- */
.todos { margin-top: 28px; }
.todos ul { list-style: none; margin: 0; padding: 0; }
.todos li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,243,214,.12); font-size: 15px; line-height: 1.35; }
.todos li.done span { text-decoration: line-through; color: var(--sage); }
.todos input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--bulb); margin-top: 1px; flex: none; }
.todo-add { display: flex; gap: 8px; margin-top: 12px; }
.todo-add input { flex: 1; min-width: 0; min-height: 46px; background: var(--card); border: 1.5px solid rgba(255,243,214,.2); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.todo-add input::placeholder { color: rgba(169,203,187,.75); }
.todo-add button { background: transparent; border: 1.5px solid var(--bulb); color: var(--bulb); border-radius: 10px; padding: 0 14px; font-weight: 600; }

/* ---------- chat ---------- */
#view-ask { display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-h) - 12px - var(--tabs-h) - var(--sab) - 16px); }
#view-ask[hidden] { display: none; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 0 0 12px; }
/* keep the newest message clear of the dock + tab bar when it scrolls into view */
.chat > * { scroll-margin-bottom: calc(var(--dock-h, 150px) + var(--tabs-h) + var(--sab) + 12px); }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.bubble.assistant { background: var(--paper); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.user { background: var(--bulb); color: var(--ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.thinking { display: inline-flex; gap: 5px; }
.bubble.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite; }
.bubble.thinking i:nth-child(2) { animation-delay: .15s; } .bubble.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.chat-intro { text-align: center; padding: 30px 10px 10px; color: var(--sage); }
.chat-intro b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--bulb); margin-bottom: 6px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest:empty { display: none; }
.suggest button { flex: none; min-height: 38px; border: 1.5px solid rgba(255,243,214,.3); background: var(--card); border-radius: 999px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.composer {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--squid); border: 1.5px solid rgba(255,243,214,.18); border-radius: 22px; padding: 5px 5px 5px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.composer:focus-within { border-color: var(--aws-orange); }
.composer textarea { flex: 1; min-width: 0; resize: none; background: transparent; border: 0; outline: 0; padding: 9px 0; max-height: 120px; font-size: 16px; line-height: 1.35; }
.composer textarea::placeholder { color: rgba(169,203,187,.8); }
.composer button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bulb); color: var(--ink); display: grid; place-content: center; box-shadow: 0 2px 0 var(--aws-orange); }

/* ---------- people ---------- */
.stack-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 16px; }
.stack-count { margin: 0; font-size: 15px; color: var(--sage); }
.stack-count strong { font-family: var(--display); font-weight: 400; font-size: 40px; color: var(--paper); line-height: 1; margin-right: 4px; }
.chips { display: flex; flex-direction: column-reverse; align-items: center; }
.chips span {
  width: 54px; height: 12px; border-radius: 50%; margin-top: -5px;
  background: repeating-linear-gradient(90deg, var(--chip) 0 8px, var(--paper) 8px 12px);
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.chips span:nth-child(3n+2) { background: repeating-linear-gradient(90deg, var(--chip-blue) 0 8px, var(--paper) 8px 12px); }
.chips span:nth-child(3n) { background: repeating-linear-gradient(90deg, var(--ink) 0 8px, var(--bulb) 8px 12px); }
.chips span.empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,243,214,.25); }
.people-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.people-actions > * { white-space: nowrap; }
.btn-primary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  background: var(--bulb); color: var(--ink); border: 0; border-radius: 12px; font-weight: 800; font-size: 16px; padding: 0 16px;
  box-shadow: 0 3px 0 var(--aws-orange);
  -webkit-user-select: none; user-select: none;
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--aws-orange); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; min-height: 48px; background: transparent; border: 1.5px solid rgba(255,243,214,.35); border-radius: 12px; font-weight: 600; padding: 0 14px; }
.btn-link { background: none; border: 0; color: var(--sage); text-decoration: underline; text-underline-offset: 3px; padding: 16px 0; font-size: 14px; }
.search { display: block; width: 100%; min-height: 46px; margin: 16px 0 10px; background: var(--card); border: 1.5px solid rgba(255,243,214,.2); border-radius: 12px; padding: 11px 14px; font-size: 16px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.search::placeholder { color: rgba(169,203,187,.75); }
.person { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 12px; }
.pchip {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center;
  font-family: var(--display); font-size: 17px; color: var(--ink);
  background: radial-gradient(circle, var(--paper) 0 54%, transparent 55%), repeating-conic-gradient(var(--paper) 0 20deg, var(--chip) 20deg 40deg);
}
.person:nth-child(3n+2) .pchip { background: radial-gradient(circle, var(--paper) 0 54%, transparent 55%), repeating-conic-gradient(var(--paper) 0 20deg, var(--chip-blue) 20deg 40deg); }
.person:nth-child(3n) .pchip { background: radial-gradient(circle, var(--bulb) 0 54%, transparent 55%), repeating-conic-gradient(var(--bulb) 0 20deg, var(--ink) 20deg 40deg); }
.person h3 { margin: 0; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.person .meta { margin: 2px 0 0; font-size: 13px; color: var(--sage); }
.person .note { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.person .next { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--bulb); }
.person .row { display: flex; gap: 8px; margin-top: 10px; font-size: 13px; }
.person .row a, .person .row button {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  color: var(--paper); background: rgba(255,243,214,.06); border: 1px solid rgba(255,243,214,.2); font-weight: 600; text-decoration: none;
}
.person .row [data-followup] { border-color: var(--bulb); color: var(--bulb); }
.people-empty { text-align: center; color: var(--sage); padding: 28px 10px; font-size: 15px; }

/* ---------- dialog ---------- */
dialog {
  width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - var(--sat) - var(--sab) - 24px);
  overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 18px; padding: 0; background: var(--paper); color: var(--ink);
}
dialog::backdrop { background: rgba(4, 20, 15, .7); }
#person-form { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#person-form h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; }
#person-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
#person-form input, #person-form textarea { width: 100%; min-width: 0; min-height: 46px; background: #fff; border: 1.5px solid var(--paper-edge); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--ink); font-weight: 400; }
#person-form textarea { resize: vertical; line-height: 1.4; }
#person-form ::placeholder { color: #9a9079; }
#person-form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 360px) { #person-form .two { grid-template-columns: minmax(0, 1fr); } }
#person-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
.scan-status { margin: 0; font-family: var(--mono); font-size: 13px; color: #7a1f17; }
.dialog-actions {
  position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  margin: 6px -20px -20px; padding: 12px 20px 20px; background: linear-gradient(rgba(255,243,214,0), var(--paper) 12px);
}
.dialog-actions .btn-ghost { border-color: var(--paper-edge); }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabs-h) + var(--sab)); padding-bottom: var(--sab);
  padding-left: var(--sal); padding-right: var(--sar);
  background: var(--squid-a);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,243,214,.1), 0 -6px 18px rgba(0,0,0,.18);
}
.tabs button { position: relative; border: 0; background: none; display: grid; place-content: center; justify-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #b8c4cf; }
.tab-ico { font-size: 20px; line-height: 1; }
.tabs button[aria-current="page"] { color: var(--aws-orange); }
.tabs button[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 3px; margin-left: -16px;
  border-radius: 0 0 3px 3px; background: var(--aws-orange); box-shadow: 0 0 10px rgba(255,153,0,.6);
}
.tabs button[aria-current="page"] .tab-ico { text-shadow: 0 0 10px rgba(255,153,0,.5); }
.tabs button:focus-visible { outline-offset: -4px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(var(--tabs-h) + var(--sab) + 14px);
  background: var(--squid); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-size: 15px; line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(255,243,214,.12), 0 8px 24px rgba(0,0,0,.35); width: max-content; max-width: calc(100% - 32px);
}
.demo-flag { pointer-events: none; opacity: .85; position: fixed; top: calc(var(--sat) + 60px); right: 6px; z-index: 6; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; background: var(--chip); color: #fff; padding: 3px 7px; border-radius: 4px; }

/* =====================================================================
   v2: Chip, onboarding, Vegas, problem sheet, follow-up, QR
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* header actions */
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.gear {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-content: center;
  border: 1.5px solid rgba(255, 243, 214, .35); background: transparent; color: var(--paper);
}

/* ---------- Chip boxes (fixed size even if the SVG is missing) ---------- */
.mascot { display: inline-block; flex: none; width: var(--m); height: var(--m); position: relative; }
.mascot img { display: block; width: 100%; height: 100%; }
.mascot.no-art img { visibility: hidden; }
.mascot.no-art::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 0 50%, transparent 51%), repeating-conic-gradient(var(--paper) 0 20deg, var(--chip) 20deg 40deg);
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
}

/* marquee: end of trip */
.marquee-end { display: flex; align-items: center; gap: 14px; }
.marquee-end h1 { margin-bottom: 0; }

/* chat: Chip avatar */
.arow { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 92%; }
.arow .bubble { max-width: none; min-width: 0; }
.arow .avatar { margin-bottom: 2px; }
.chat-intro .mascot { display: block; margin: 0 auto 10px; }

/* people: first-run empty state */
.people-first { display: grid; justify-items: center; gap: 10px; }

/* toast with Chip */
.toast { z-index: 60; display: flex; align-items: center; gap: 10px; }
.toast-chip { flex: none; }
.toast.alert { background: #3a0f0b; box-shadow: 0 0 0 1.5px var(--chip), 0 8px 24px rgba(0,0,0,.35); }

/* ---------- Esta noche en Vegas ---------- */
.vegas { margin-top: 28px; }
.vegas-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vegas-head .eyebrow { margin: 0; }
.vegas-near { margin: 0; font-size: 13px; color: var(--sage); }
.vegas-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vegas-filters button, .toggle {
  min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(255,243,214,.3); background: rgba(0,0,0,.15); color: var(--paper);
}
.vegas-filters button[aria-pressed="true"], .toggle[aria-pressed="true"] {
  background: var(--bulb); border-color: var(--bulb); color: var(--ink); box-shadow: 0 0 12px var(--bulb-glow);
}
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.place {
  background: var(--card); border: 1px solid var(--card-line); border-left: 4px solid var(--bulb);
  border-radius: 12px; padding: 12px 14px; min-width: 0;
}
.place-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.place h3 { margin: 0; font-size: 16px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.price { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--bulb); white-space: nowrap; }
.place-meta { margin: 3px 0 0; font-size: 13px; color: var(--sage); }
.place-tip { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.place .map { display: inline-flex; align-items: center; min-height: 36px; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--bulb); text-underline-offset: 3px; }
.places-msg { color: var(--sage); font-size: 14px; padding: 8px 0; }

/* ---------- Pregunta: dock with "Tengo un problema" ---------- */
.dock {
  position: sticky; z-index: 2; bottom: calc(var(--tabs-h) + var(--sab));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  margin: 0 -16px; padding: 22px 16px 10px;
  background: linear-gradient(rgba(9, 49, 38, 0), rgba(9, 49, 38, .97) 22px);
}
.dock .trouble { justify-self: start; }
.trouble {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 6px;
  border: 0; border-radius: 999px; background: var(--chip); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: inset 0 0 0 2px #e0453a, inset 0 0 0 3.5px rgba(255,243,214,.85), 0 3px 0 #8f2119;
}
.trouble span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center;
  font-family: var(--display); font-size: 15px; color: var(--chip);
  background: radial-gradient(circle, var(--paper) 0 55%, transparent 56%), repeating-conic-gradient(var(--paper) 0 30deg, #fff 30deg 60deg);
}

/* ---------- bottom sheets ---------- */
dialog.sheet {
  width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 20px 20px 0 0;
  max-height: calc(100dvh - var(--sat) - 24px);
}
dialog.sheet[open] { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.sheet-inner { padding: 10px 18px calc(18px + var(--sab)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* grab handle so the sheet reads as a sheet */
.sheet-inner::before { content: ""; justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--paper-edge); margin-bottom: 4px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.15; min-width: 0; }
.sheet-close { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--paper-edge); background: transparent; color: var(--ink); font-size: 16px; flex: none; }
.sheet-sub { margin: 0; font-size: 14px; color: var(--ink-soft); }
.sheet-eyebrow { color: var(--ink-soft); margin: 10px 0 0; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions > * { flex: 1 1 140px; }
.sheet .btn-ghost { border-color: var(--paper-edge); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sheet .btn-primary:disabled { opacity: .5; }

.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reasons button {
  min-height: 52px; padding: 8px 12px; border-radius: 12px; text-align: left; font-weight: 700; font-size: 15px; line-height: 1.2;
  background: #fff; border: 1.5px solid var(--paper-edge); color: var(--ink); box-shadow: 0 2px 0 var(--paper-edge);
}
.reasons button:active { transform: translateY(1px); }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper-edge); }
.contact-who { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.contact-who small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.contact-act { display: flex; gap: 6px; flex: none; }
.contact-act a {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px;
  background: var(--squid); color: var(--paper); font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 2px 0 var(--aws-orange);
}
.contacts-msg { color: var(--ink-soft); font-size: 14px; padding: 6px 0; }

.followup-status { margin: 0; font-family: var(--mono); font-size: 13px; color: #7a1f17; }
#followup-text {
  width: 100%; resize: vertical; background: #fff; border: 1.5px solid var(--paper-edge); border-radius: 12px;
  padding: 12px; font-size: 16px; line-height: 1.45; color: var(--ink);
}

/* people: QR button in the header */
.stack-right { display: flex; align-items: flex-end; gap: 14px; }
.qr-btn {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--bulb); background: transparent; color: var(--bulb); font-weight: 700; font-size: 14px;
}
.person .row { flex-wrap: wrap; row-gap: 6px; }

.qr-sheet .sheet-inner { justify-items: center; text-align: center; }
.qr-sheet .sheet-head { width: 100%; }
.qr-box { background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 0 0 4px var(--bulb), 0 0 0 6px #7a1f17; margin: 8px 0 4px; line-height: 0; }
.qr-box svg { display: block; width: min(260px, 66vw, 42dvh); height: auto; }
.qr-name { margin: 0; font-weight: 800; font-size: 18px; }
.qr-url { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.qr-edit { color: var(--chip-blue); padding: 6px 0; }

/* ---------- onboarding ---------- */
body.onb-open { overflow: hidden; }
.onb {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background:
    var(--grid),
    radial-gradient(120% 60% at 50% -10%, var(--felt-hi) 0%, transparent 60%),
    var(--felt);
  padding: var(--sat) var(--sar) 0 var(--sal);
}
.onb-top { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 6px; min-height: 60px; max-width: 560px; width: 100%; margin: 0 auto; }
.onb-steps { display: flex; align-items: center; gap: 12px; min-width: 0; }
.onb-steplbl { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
.onb-steplbl b { color: var(--aws-orange); font-weight: 600; }
.onb-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.onb-progress li {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255,243,214,.35);
}
.onb-progress li.done {
  background: radial-gradient(circle, var(--paper) 0 42%, transparent 44%), repeating-conic-gradient(var(--paper) 0 30deg, var(--chip-blue) 30deg 60deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.onb-progress li.cur {
  background: radial-gradient(circle, var(--paper) 0 42%, transparent 44%), repeating-conic-gradient(var(--paper) 0 30deg, var(--chip) 30deg 60deg);
  box-shadow: 0 0 0 2px var(--felt), 0 0 0 4px var(--aws-orange), 0 2px 0 rgba(0,0,0,.25);
  transform: translateY(-2px);
}
.onb-single { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.onb-close { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255,243,214,.35); background: transparent; font-weight: 600; font-size: 14px; }

.onb-stage {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding: 10px 16px 28px; max-width: 560px; width: 100%; margin: 0 auto;
}
/* welcome screen: center the content in the space instead of leaving a hole above the button */
.onb-stage[data-step="hola"] > .onb-chip { margin-top: auto; }
.onb-stage[data-step="hola"] > .onb-body { margin-bottom: auto; }
.onb-stage.enter { animation: onb-in .22s ease-out; }
@keyframes onb-in { from { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) {
  .onb-stage.enter, dialog.sheet[open] { animation: none; }
  .onb-progress li.cur { transform: none; }
}

.onb-chip { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 22px; }
.onb-chip .mascot { width: clamp(80px, 25vw, 104px); height: clamp(80px, 25vw, 104px); }
.speech {
  position: relative; flex: 1; min-width: 0; background: var(--paper); color: var(--ink);
  border-radius: 18px 18px 18px 6px; padding: 14px 16px; box-shadow: 0 3px 0 rgba(0,0,0,.22);
  margin-bottom: 8px;
}
.speech::before {
  content: ""; position: absolute; left: -9px; bottom: 10px; width: 16px; height: 16px; background: var(--paper);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.speech h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.15; color: #7a1f17; }
.speech h2:focus, .speech h2:focus-visible { outline: none; } /* tabindex=-1 target for screen readers only */
.speech p { margin: 0; font-size: 15px; line-height: 1.45; text-wrap: pretty; }

.onb-body { display: grid; gap: 18px; }
.onb-hero { text-align: center; padding: 8px 0; }
.onb-brand { margin: 0; font-family: var(--display); font-size: 28px; color: var(--bulb); text-shadow: 0 0 18px var(--bulb-glow); }
.onb-sub { margin: 4px 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.onb-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.onb-feats li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.onb-feats b { flex: none; font-size: 20px; color: var(--bulb); width: 22px; text-align: center; }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sage); border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 48px; background: var(--card); border: 1.5px solid rgba(255,243,214,.25); border-radius: 12px;
  padding: 10px 14px; font-size: 16px; font-weight: 400; color: var(--paper);
}
.field input:focus, .cal-form input:focus, .search:focus, .todo-add input:focus { border-color: var(--aws-orange); outline: none; }
.field input::placeholder, .cal-form input::placeholder { color: rgba(169,203,187,.7); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { min-height: 44px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; font-size: 26px; font-weight: 800; color: var(--ink);
  background: radial-gradient(circle, var(--paper) 0 55%, transparent 56%), repeating-conic-gradient(var(--paper) 0 20deg, var(--chip-blue) 20deg 40deg);
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.stepper output { font-family: var(--display); font-size: 40px; color: var(--paper); min-width: 2.2ch; text-align: center; line-height: 1; }
.onb-fine { margin: 0; font-size: 13px; line-height: 1.4; color: var(--sage); font-weight: 400; }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.howto li > b {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center;
  font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--ink); background: var(--bulb);
}
.howto strong { color: var(--bulb); }
.ico-share { vertical-align: -3px; color: var(--bulb); }
.cal-form { display: grid; gap: 10px; }
.cal-form input {
  width: 100%; min-height: 50px; background: var(--card); border: 1.5px solid rgba(255,243,214,.25); border-radius: 12px;
  padding: 10px 14px; font-family: var(--mono); font-size: 16px; color: var(--paper); /* 16px: no iOS zoom */
}
.cal-form .btn-primary { min-height: 52px; }
.cal-form .btn-primary:disabled, .onb-nav .btn-primary:disabled { opacity: .6; }
.cal-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.cal-msg.ok { background: var(--paper); color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.cal-msg.ok b { font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--chip); line-height: 1; }
.cal-msg.err { background: #3a0f0b; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--chip); }
.onb-skip { justify-self: center; padding: 8px 0; min-height: 44px; }
.onb-ok { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; background: var(--card); padding: 14px; border-radius: 12px; }
.onb-ok b { color: var(--bulb); font-size: 20px; }
.btn-big {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  border-radius: 14px; border: 1.5px solid var(--bulb); background: transparent; color: var(--bulb); font-weight: 800; font-size: 17px;
}
.btn-big.on { background: var(--bulb); color: var(--ink); }
.onb-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-summary li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 3px 0 rgba(0,0,0,.22); }
.onb-summary span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.onb-summary b { font-size: 16px; }

.onb-nav {
  flex: none; position: relative;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; width: 100%;
  padding: 12px max(16px, calc((100% - 528px) / 2)) calc(12px + var(--sab));
  background: var(--squid-a);
  box-shadow: inset 0 1px 0 rgba(255, 153, 0, .3);
}
/* content scrolling under the bar fades out instead of being cut */
.onb-nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; pointer-events: none; background: linear-gradient(rgba(11, 59, 46, 0), var(--felt)); }
.onb-nav.solo { grid-template-columns: minmax(0, 1fr); }
.onb-nav .btn-primary, .onb-nav .btn-ghost { min-height: 54px; font-size: 17px; }

/* follow-up language toggle */
.lang-toggle { justify-self: start; display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 10px; border-radius: 999px; background: rgba(28,26,20,.08); }
.lang-toggle button { border: 0; background: transparent; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lang-toggle button[aria-pressed="true"] { background: var(--squid); color: var(--aws-orange); }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   v4: welcome + invites, language toggle on felt, empty agenda, settings, privacy, quota
   ===================================================================== */
/* language toggle on the felt (welcome, onboarding); the paper version above is for sheets */
.lang-toggle.on-felt { margin: 0; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--card-line); }
.lang-toggle.on-felt button { color: var(--sage); min-height: 40px; }
.lang-toggle.on-felt button[aria-pressed="true"] { background: var(--squid); color: var(--aws-orange); box-shadow: 0 0 0 1px rgba(255, 153, 0, .35); }
.field .lang-toggle.on-felt { justify-self: start; }

/* welcome */
.welcome .onb-top .brand { font-size: 13px; }
.welcome .onb-stage { padding-bottom: 16px; }
.welcome-nav { gap: 8px; }
.welcome-invite { display: grid; gap: 6px; }
.welcome-invite label { font-size: 13px; font-weight: 600; color: var(--sage); }
.welcome-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.welcome-paste .welcome-row { grid-template-columns: 1fr 1.6fr; }
.welcome-invite input, .welcome-paste input {
  width: 100%; min-width: 0; min-height: 50px; background: var(--card); border: 1.5px solid rgba(255,243,214,.25); border-radius: 12px;
  padding: 10px 14px; font-family: var(--mono); font-size: 16px; color: var(--paper); /* 16px: no iOS zoom */
}
.welcome-invite input { text-transform: uppercase; letter-spacing: .12em; text-align: center; font-size: 18px; }
.welcome-invite input::placeholder { letter-spacing: .12em; }
.welcome-invite input:focus, .welcome-paste input:focus { border-color: var(--aws-orange); outline: none; }
.welcome-invite input::placeholder, .welcome-paste input::placeholder { color: rgba(169,203,187,.55); }
.welcome-invite .btn-primary, .welcome-paste .btn-primary, .welcome-paste .btn-ghost { min-height: 54px; font-size: 17px; }
.welcome-invite .btn-primary:disabled { opacity: .6; }
.welcome-paste { display: grid; gap: 8px; }
.welcome-note { margin: 0; font-size: 13px; line-height: 1.35; color: var(--bulb); text-align: center; }
.welcome-links { display: flex; justify-content: center; gap: 22px; }
.welcome-links .btn-link { padding: 8px 0; min-height: 40px; }
.welcome-err { margin: 0; min-height: 0; padding: 10px 12px; border-radius: 12px; background: #3a0f0b; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--chip); font-size: 14px; line-height: 1.35; }
.welcome-err:empty { display: none; }
.welcome-hint { margin: 0; font-size: 13px; line-height: 1.35; color: var(--paper); background: var(--card); border-radius: 10px; padding: 8px 12px; }
.welcome-fine { margin: 0; font-size: 12px; line-height: 1.4; color: var(--sage); text-align: center; }
@media (max-height: 760px) {
  .welcome .onb-feats { display: none; }
  .welcome .onb-sub { margin-bottom: 0; }
}

/* onboarding extras */
.onb-hint { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; padding: 12px 14px; }
.onb-hint b { color: var(--bulb); font-size: 18px; line-height: 1.1; }
.link-card { display: grid; gap: 10px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px; box-shadow: 0 0 0 3px var(--bulb), 0 0 0 5px #7a1f17, 0 6px 18px rgba(0,0,0,.25); margin-top: 6px; }
.link-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.2; color: #7a1f17; }
.link-card p { margin: 0; font-size: 14px; line-height: 1.4; }
.link-box { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.4; background: #fff; border: 1.5px dashed var(--paper-edge); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.link-warn { display: flex; gap: 8px; align-items: flex-start; color: #7a1f17; font-weight: 600; }
.link-warn b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; background: var(--chip); color: #fff; font-size: 12px; margin-top: 1px; }

/* empty agenda */
.agenda-empty { list-style: none; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 16px 8px; background: var(--card); border: 1px dashed rgba(255,243,214,.22); border-radius: 18px; }
.agenda-empty h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--bulb); text-shadow: 0 0 14px var(--bulb-glow); }
.agenda-empty p { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.45; color: var(--paper); }
.agenda-empty .btn-primary { width: 100%; max-width: 340px; margin-top: 6px; min-height: 52px; }
.agenda-empty .btn-link { padding: 10px 0; }

/* chat: quota message */
.bubble.quota { background: #3a0f0b; color: var(--paper); box-shadow: 0 0 0 1.5px var(--chip), 0 2px 0 rgba(0,0,0,.18); }

/* people: badge photo hint */
.badge-hint { margin: 8px 0 0; font-size: 12px; color: var(--sage); }

/* settings sheet */
.set-lang { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.set-lang .eyebrow { margin: 0; color: var(--ink-soft); }
.set-lang .lang-toggle { margin: 0; }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.set-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; text-align: left;
  background: #fff; border: 1.5px solid var(--paper-edge); border-radius: 12px; color: var(--ink); box-shadow: 0 2px 0 var(--paper-edge);
}
.set-list span, .set-delete { display: grid; gap: 2px; min-width: 0; }
.set-list b, .set-delete b { font-size: 16px; }
.set-list small, .set-delete small { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.set-chev { flex: none; color: var(--aws-orange-deep); }
.set-usage { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--ink-soft); }
.set-usage .eyebrow { margin: 0; color: var(--ink-soft); flex-basis: 100%; }
.set-usage b { font-family: var(--mono); color: var(--ink); }
.set-delete { width: 100%; text-align: left; padding: 12px 14px; margin-top: 6px; border-radius: 12px; background: transparent; border: 1.5px solid #c9483d; color: #7a1f17; }
.set-delete b { color: #a3271d; }
.set-fine { margin: 0; font-size: 12px; color: var(--ink-soft); }
.del-head { display: flex; align-items: center; gap: 12px; }
.del-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.del-err { margin: 0; font-size: 14px; color: #7a1f17; font-weight: 600; }
.btn-danger { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 0; border-radius: 12px; padding: 0 16px; font-weight: 800; font-size: 16px; background: var(--chip); color: #fff; box-shadow: 0 3px 0 #8f2119; }
.btn-danger:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f2119; }
.btn-danger:disabled, .sheet .btn-ghost:disabled { opacity: .55; }

/* invites (owner) */
.inv-create { display: grid; gap: 6px; }
.inv-create .eyebrow { margin: 0; color: var(--ink-soft); }
.inv-create-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inv-create-row .btn-primary { flex: 1 1 160px; }
.inv-stepper { gap: 8px; }
.inv-stepper button { width: 44px; height: 44px; font-size: 22px; }
.inv-stepper output { color: var(--ink); font-size: 30px; min-width: 2ch; }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; }
.inv { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--paper-edge); }
.inv code { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.inv-state { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #2c7a4b; }
.inv.used code { text-decoration: line-through; color: var(--ink-soft); }
.inv.used .inv-state { color: var(--ink-soft); }
.inv-act { display: flex; gap: 6px; }
.inv-act button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--squid); color: var(--paper); font-weight: 700; font-size: 13px; box-shadow: 0 2px 0 var(--aws-orange); }
.inv-act button:disabled { opacity: .35; }
.inv-qr { display: grid; justify-items: center; gap: 8px; text-align: center; }
.inv-qr .btn-ghost { width: 100%; }

/* privacy sheet */
.privacy-list { margin: 0; display: grid; gap: 10px; }
.privacy-list div { display: grid; gap: 2px; }
.privacy-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.privacy-list dd { margin: 0; font-size: 15px; line-height: 1.4; }
.privacy-list a { color: var(--chip-blue); font-weight: 600; }
.privacy-badge { margin: 4px 0 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--squid); color: var(--paper); font-size: 14px; line-height: 1.4; }
.privacy-badge b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; background: var(--aws-orange); color: var(--squid); font-size: 12px; margin-top: 1px; }
