/* Live site: no prototype bar, and the sign-in screens. */
:root { --chrome-h: 0px; }
#app.phone { width: 100%; } /* no prototype phone frame, before or after sign-in */
.live-loading { padding: 40vh 0 0; text-align: center; color: var(--muted, #777); }
.live-auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; background: var(--bg, #f8f4ef); }
.live-card { width: 100%; max-width: 380px; }
.live-card h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink, #241816); }
.live-lede { margin: 0 0 24px; font-size: 17px; line-height: 1.4; color: var(--ink, #241816); opacity: 0.85; }
.live-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink, #241816); }
.live-card input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--fill, rgba(80, 40, 20, 0.08)); color: var(--ink, #241816); font: inherit; font-size: 19px; box-sizing: border-box; }
.live-card input#live-code { letter-spacing: 0.3em; font-size: 24px; font-variant-numeric: tabular-nums; }
.live-card input:focus-visible { outline: 2px solid var(--accent, #b3261e); outline-offset: 1px; }
.live-err { margin: 10px 0 0; color: var(--accent, #b3261e); font-size: 15px; }
.live-btn { width: 100%; height: 52px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--accent-button, #b3261e); color: var(--accent-on, #fff); font: inherit; font-size: 17px; font-weight: 700; }
.live-btn:disabled { opacity: 0.6; }
/* Busy (adding with AI waits ~8 s for the model): the label stays at full contrast and a spinner shows it's working,
   instead of fading the whole button (wrap-up audit, fix 8). The extra class outranks `.live-btn:disabled` and base.css's `button:disabled`. */
.live-btn.is-busy:disabled { opacity: 1; color: var(--accent-on, #fff); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: progress; }
.live-btn.is-busy::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; box-sizing: border-box; animation: live-spin 0.8s linear infinite; }
@keyframes live-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .live-btn.is-busy::before { animation-duration: 2.4s; } }
.live-link { display: block; margin: 12px auto 0; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--accent, #b3261e); font: inherit; font-size: 16px; font-weight: 600; }
.live-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 100; margin: 0; padding: 12px 16px; max-width: min(90vw, 420px); border-radius: 14px; background: var(--ink, #241816); color: var(--bg, #fff); font-size: 15px; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.live-toast.is-on { opacity: 1; }
/* Onboarding from the invite link. */
.live-card { position: relative; }
.live-dates { margin: 0 0 16px; font-size: 17px; font-weight: 600; color: var(--accent, #b3261e); }
.live-q { margin: 0 0 16px; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink, #241816); }
.live-opt { font-weight: 400; color: var(--muted, #6b6b6b); font-size: 20px; }
.live-hint { margin: 8px 0 0; font-size: 15px; color: var(--muted, #6b6b6b); }
.live-step { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted, #6b6b6b); }
.live-back { position: absolute; top: -56px; left: -8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--fill, rgba(80,40,20,.08)); }
.live-back::after { content: ""; display: block; width: 22px; height: 22px; margin: auto; background: var(--ink, #241816);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 6 8.5 12l6 6'/></svg>") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 6 8.5 12l6 6'/></svg>") center / 22px 22px no-repeat; }
.live-choices { display: flex; flex-direction: column; gap: 10px; }
.live-choice { min-height: 56px; padding: 0 18px; border: 1.5px solid var(--separator, rgba(36,24,22,.16)); border-radius: 14px; background: var(--elevated, #fff); color: var(--ink, #241816); font: inherit; font-size: 18px; font-weight: 600; text-align: left; }
.live-choice.is-on { border-color: var(--accent, #b3261e); background: color-mix(in srgb, var(--accent, #b3261e) 10%, var(--elevated, #fff)); }
/* Ajustes: account, invite link, guests. */
.live-panel { margin: 24px 16px 0; padding: 16px; border-radius: 16px; background: var(--fill, rgba(80,40,20,.06)); }
.live-panel h2 { margin: 0 0 8px; font-size: 17px; }
.live-panel p { margin: 0 0 12px; }
.live-url { padding: 10px 12px; border-radius: 10px; background: var(--bg, #fff); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; user-select: all; }
.live-row { display: flex; flex-wrap: wrap; gap: 8px; }
.live-pill { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg, #fff); color: var(--ink, #241816); font: inherit; font-weight: 600; }
.live-pill.is-primary { background: var(--accent-button, #b3261e); color: var(--accent-on, #fff); }
.live-pill.is-danger { background: var(--bg, #fff); color: #b3261e; box-shadow: inset 0 0 0 1.5px #b3261e; }
.live-guests { list-style: none; margin: 0; padding: 0; }
.live-guests li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--separator, rgba(36,24,22,.16)); }
.live-guests li:last-child { border-bottom: 0; }
.live-muted { color: var(--muted, #6b6b6b); font-weight: 400; }
/* Adding with AI: a full screen over the app, one scroll (the page behind is locked). */
body.live-add-open { overflow: hidden; }
.live-add { position: fixed; inset: 0; z-index: 200; overflow-y: auto; background: var(--bg, #f8f4ef); color: var(--ink, #241816); -webkit-overflow-scrolling: touch; }
.live-add .live-add-bar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 52px; padding: 4px 8px; background: color-mix(in srgb, var(--bg, #f8f4ef) 90%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 0.5px solid var(--separator, rgba(36,24,22,.16)); }
.live-add .live-add-bar h1 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.live-add .live-add-bar .btn-text { min-height: 44px; padding: 0 8px; border: 0; background: none; text-decoration: none; color: var(--accent, #b3261e); font: inherit; font-size: 17px; justify-self: start; }
.live-add .live-add-bar .btn-text.is-strong { justify-self: end; font-weight: 700; }
.live-add .live-add-body { max-width: 560px; margin: 0 auto; padding: 20px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
.live-add .live-q { display: block; margin: 8px 0 12px; font-size: 26px; font-weight: 700; line-height: 1.15; }
.live-add input, .live-add textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--fill, rgba(80,40,20,.08)); color: var(--ink, #241816); font: inherit; font-size: 18px; }
.live-add textarea { resize: vertical; line-height: 1.35; }
.live-add input:focus-visible, .live-add textarea:focus-visible { outline: 2px solid var(--accent, #b3261e); outline-offset: 1px; }
.live-add .prog-h { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted, #6b6b6b); }
.live-add .live-label { margin-top: 16px; }
.live-add .la-place { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--elevated, #fff); border: 1px solid var(--separator, rgba(36,24,22,.16)); }
.live-add .la-place span { color: var(--muted, #6b6b6b); font-size: 15px; }
.live-add .la-place em { margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted, #6b6b6b); }
.live-add .la-others { margin-top: 8px; }
.live-add .la-others summary { min-height: 44px; display: flex; align-items: center; color: var(--accent, #b3261e); font-weight: 600; cursor: pointer; }
.live-add .la-other { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 6px 0 0; padding: 10px 14px; border: 1px solid var(--separator, rgba(36,24,22,.16)); border-radius: 12px; background: transparent; color: var(--ink, #241816); font: inherit; text-align: left; }
.live-add .la-other span { color: var(--muted, #6b6b6b); font-size: 14px; }
.live-add .la-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.live-add .prog-mode { min-height: 44px; padding: 0 14px; border: 1px solid var(--separator, rgba(36,24,22,.16)); border-radius: 999px; background: var(--elevated, #fff); color: var(--ink, #241816); font: inherit; font-weight: 500; }
.live-add .prog-mode[aria-checked="true"] { background: var(--ink, #241816); color: var(--bg, #fff); border-color: var(--ink, #241816); }
.live-add .la-facts { margin: 12px 0 0; color: var(--muted, #6b6b6b); font-size: 15px; }
.live-form { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 4px 0 8px; }
.live-form input, .live-form select { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--bg, #fff); color: var(--ink, #241816); font: inherit; font-size: 17px; }
.live-form .live-row { margin-top: 10px; }
.live-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.live-guests li { align-items: center; }
.live-guests li > span { min-width: 0; }
/* Ya está en Planes, and ¿Cuál de estos? (2026-11-16). */
.live-add .la-other strong { font-size: 17px; }
.live-add .la-other .la-when { color: var(--accent, #b3261e); font-weight: 600; }
.live-add .la-other .la-tag { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--fill, #f1ebe6); color: var(--ink, #241816); font-size: 12px; font-weight: 600; }
.live-add .la-exists { border-color: var(--ink, #241816); }
.live-add .live-add-review > .live-link { margin-top: 14px; }
.live-add .la-other .la-hood { color: var(--ink, #241816); font-weight: 600; font-size: 15px; }

/* Foto in Nuevo plan (2026-11-22): the candidates side by side, Sin foto last; a logo shows on its color. */
.live-add .la-photos, .ed-photo .la-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.live-add .la-photo, .ed-photo .la-photo { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 14px; border: 2px solid var(--separator, rgba(36,24,22,.16)); background: var(--elevated, #fff); color: var(--ink, #241816); font: inherit; text-align: left; cursor: pointer; }
.live-add .la-photo img, .ed-photo .la-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--fill, #eee); }
.live-add .la-photo.is-logo img, .ed-photo .la-photo.is-logo img { object-fit: contain; padding: 14px; box-sizing: border-box; background: transparent; }
.live-add .la-photo span, .ed-photo .la-photo span { padding: 6px 10px 8px; font-size: 13px; color: var(--muted, #6b6b6b); background: var(--elevated, #fff); }
.live-add .la-photo.is-none, .ed-photo .la-photo.is-none { justify-content: center; align-items: center; min-height: 96px; }
.live-add .la-photo.is-none span, .ed-photo .la-photo.is-none span { font-size: 15px; color: var(--ink, #241816); background: transparent; }
.live-add .la-photo[aria-checked="true"], .ed-photo .la-photo[aria-checked="true"] { border-color: var(--accent-button, #b3261e); }
.live-add .la-logo, .ed-photo .la-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-size: 16px; }
.live-add .la-logo input, .ed-photo .la-logo input { width: 20px; height: 20px; accent-color: var(--accent-button, #b3261e); }
