/* SUMA V2 · Shared app surfaces and the animated registration guide.
   The original palettes are untouched unless data-palette="v2" is selected. */
html[data-palette="v2"] {
  --control-line:#8a8da4;
  --state-success-bg:#edf8f1;
  --state-success-line:#a0cbb0;
  --state-error-bg:#fff0f3;
  --state-error-line:#dfa5b0;
}

/* Surfaces, selections and content retain their existing layout. */
html[data-palette="v2"] .editorialApp {color-scheme:light;color:var(--text)}
html[data-palette="v2"] .editorialApp :is(.eventCard,.card,.reward,.person,.walletStats article,.matchingActivity) {
  background:var(--surface);
  color:var(--text);
  border-color:var(--line);
}
html[data-palette="v2"] .editorialApp :is(.emptyState,.conversationStarter,.memberStatus,.matchingWorkspace) {
  background:var(--soft);
  border-color:var(--line);
  color:var(--text);
}
html[data-palette="v2"] .editorialApp .emptySymbol {background:var(--surface);color:var(--brand-text)}
html[data-palette="v2"] .editorialApp :is(.small,.muted,.heroNote,.eventDate,.eventFacts dt,.personChoice small,.pilotIdentity) {color:var(--muted)}
html[data-palette="v2"] .editorialApp :is(.tag,.couponCode) {background:var(--soft);color:var(--text);border-color:var(--line)}
html[data-palette="v2"] .editorialApp .filterPill {background:var(--surface);color:var(--text);border-color:var(--control-line)}
html[data-palette="v2"] .editorialApp .filterPill:hover {background:var(--soft);border-color:var(--brand)}
html[data-palette="v2"] .editorialApp .filterPill[aria-pressed="true"] {background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
html[data-palette="v2"] .editorialApp .eventStripe {background:var(--soft);color:var(--ink)}
html[data-palette="v2"] .editorialApp .eventStripe.cultura {background:var(--brand);color:var(--on-brand)}
html[data-palette="v2"] .editorialApp .eventStripe.movimiento {background:var(--accent);color:var(--accent-ink)}
html[data-palette="v2"] .editorialApp .walletStats article:first-child {background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
html[data-palette="v2"] .editorialApp .walletStats article:first-child :is(strong,p) {color:inherit}
html[data-palette="v2"] .editorialApp :is(.availability,.confirmation,.approvedLabel) {color:var(--success)}

/* Form edges remain visible in both palettes; native date/select widgets follow the scheme. */
html[data-palette="v2"] .editorialApp :is(.input,select,textarea) {
  background-color:var(--field-bg);
  color:var(--ink);
  border-color:var(--control-line);
  caret-color:var(--brand);
}
html[data-palette="v2"] .editorialApp :is(.input,textarea)::placeholder {color:var(--muted);opacity:1}
html[data-palette="v2"] .editorialApp :is(.input,select,textarea):hover {border-color:var(--brand)}
html[data-palette="v2"] .editorialApp :is(.input,select,textarea):focus {border-color:var(--brand);box-shadow:0 0 0 3px var(--soft)}
html[data-palette="v2"] .editorialApp :is(.input,select,textarea):disabled {background-color:var(--soft);color:var(--muted);border-color:var(--line)}
html[data-palette="v2"] .editorialApp select {
  appearance:none;
  padding-right:2.75rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23606079' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 1rem center;
  background-size:12px 8px;
}
html[data-palette="v2"] .editorialApp input:-webkit-autofill {
  -webkit-text-fill-color:var(--ink);
  -webkit-box-shadow:0 0 0 1000px var(--field-bg) inset;
  caret-color:var(--brand);
}
html[data-palette="v2"] .editorialApp .check {background:var(--field-bg);color:var(--ink);border-color:var(--control-line)}
html[data-palette="v2"] .editorialApp .check:has(input:checked) {background:var(--soft);border-color:var(--brand);color:var(--brand-text)}
html[data-palette="v2"] .editorialApp input[type="checkbox"] {accent-color:var(--brand-text)}
html[data-palette="v2"] .editorialApp input[type="file"]::file-selector-button {
  font:inherit;
  padding:.6rem .85rem;
  margin-right:.75rem;
  border:1px solid var(--control-line);
  border-radius:7px;
  background:var(--soft);
  color:var(--ink);
  cursor:pointer;
}
html[data-palette="v2"] .editorialApp .notice {background:var(--soft);color:var(--text);border-color:var(--line)}
html[data-palette="v2"] .editorialApp .notice.ok {background:var(--state-success-bg);border-color:var(--state-success-line);color:var(--success)}
html[data-palette="v2"] .editorialApp .notice.error {background:var(--state-error-bg);border-color:var(--state-error-line);color:var(--danger)}
html[data-palette="v2"] .editorialApp dialog {background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:0 24px 100px #080c183d}
html[data-palette="v2"] .editorialApp dialog::backdrop {background:#080c18a6}
html[data-palette="v2"] .editorialApp.resetPage .authCard {background:var(--surface);border-color:var(--line)}
html[data-palette="v2"] .editorialApp.authPage .authCard .eyebrow,
html[data-palette="v2"] .editorialApp.authPage .authCard .tabs button.active,
html[data-palette="v2"] .editorialApp.authPage #forgot,
html[data-palette="v2"] .editorialApp.authPage .authHelp a {color:var(--brand-text)}
html[data-palette="v2"] .authEditorialVisual {background:#151725}
html[data-palette="v2"] .authEditorialVisual::after {background:linear-gradient(180deg,#10131e00 24%,#10131e99 68%,#10131eeb 100%)}
html[data-palette="v2"] .authEditorialCopy,
html[data-palette="v2"] .authEditorialCopy :is(h2,p,.eyebrow) {color:#fff}

/* Organizer and benefit views also receive the selected palette. */
html[data-palette="v2"] .editorialApp :is(.matchingSummary,.matchingMember,.matchingEmpty,.messageList) {background:var(--soft);border-color:var(--line);color:var(--text)}
html[data-palette="v2"] .editorialApp :is(.matchingReasonList span,.message) {background:var(--surface);border-color:var(--line);color:var(--text)}
html[data-palette="v2"] .editorialApp :is(.matchingAvatar,.matchingScore,.matchingMethod span,.message.mine) {background:var(--soft);color:var(--brand-text)}
html[data-palette="v2"] .editorialApp .matchingMethod {border-color:var(--line)}
html[data-palette="v2"] .editorialApp .matchingReviewBadge {background:var(--state-success-bg);color:var(--success)}
html[data-palette="v2"] .editorialApp .matchingReviewBadge::before,
html[data-palette="v2"] .editorialApp .statusDot.approved {background:var(--success)}
html[data-palette="v2"] .editorialApp .message time {color:var(--muted)}

/* This compact, local-only animation mirrors the app without changing its timing. */
html[data-palette="v2"] body.signupDemo {
  --cobalt:var(--brand);
  --coral:var(--accent);
  --cream:var(--bg);
  background:transparent;
  color:var(--ink);
  color-scheme:light;
}
html[data-palette="v2"] .signupDemo .phone {background:#141825;border-color:#141825;box-shadow:0 22px 50px -25px #14182566,inset 0 0 0 1px #60697d}
html[data-palette="v2"] .signupDemo :is(.phone-screen,.app-bar,.phone-bottom,.success-state) {background:var(--surface);color:var(--ink)}
html[data-palette="v2"] .signupDemo .app-bar {border-color:var(--line)}
html[data-palette="v2"] .signupDemo .phone-island {background:#141825}
html[data-palette="v2"] .signupDemo .phone-bottom i {background:var(--muted)}
html[data-palette="v2"] .signupDemo :is(.app-bar>span,.section-kicker,.mock-tabs span,.field-help,.phone-bottom span,.scene-email p,.email-note div>span,.profile-intro,.success-state p,.demo-time) {color:var(--muted)}
html[data-palette="v2"] .signupDemo .mock-tabs .active {color:var(--brand-text);border-color:var(--brand)}
html[data-palette="v2"] .signupDemo .mock-input {background:var(--field-bg);border-color:var(--control-line);color:var(--ink)}
html[data-palette="v2"] .signupDemo .mock-field.is-typing .mock-input {border-color:var(--brand);box-shadow:0 0 0 3px var(--soft)}
html[data-palette="v2"] .signupDemo .mock-field.is-typing .mock-input::after {background:var(--brand)}
html[data-palette="v2"] .signupDemo .mock-button {background:var(--brand);color:var(--on-brand)}
html[data-palette="v2"] .signupDemo .mock-button.is-pressed {background:var(--brand-hover);box-shadow:0 0 0 5px var(--soft)}
html[data-palette="v2"] .signupDemo .mail-illustration {background:var(--soft);color:var(--brand-text)}
html[data-palette="v2"] .signupDemo .mail-check {background:var(--accent);color:var(--accent-ink);border-color:var(--surface)}
html[data-palette="v2"] .signupDemo .scene-email .section-kicker {color:var(--brand-text)}
html[data-palette="v2"] .signupDemo .email-note {background:var(--field-bg);border-color:var(--line);box-shadow:none}
html[data-palette="v2"] .signupDemo .email-avatar {background:var(--brand);color:var(--on-brand)}
html[data-palette="v2"] .signupDemo .email-dot {background:var(--brand)}
html[data-palette="v2"] .signupDemo .interest-grid>span {background:var(--field-bg);border-color:var(--control-line);color:var(--ink)}
html[data-palette="v2"] .signupDemo .interest-grid>span.is-selected {background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
html[data-palette="v2"] .signupDemo .mock-check {border-color:var(--control-line)}
html[data-palette="v2"] .signupDemo .goal-choice.is-selected .mock-check {background:var(--brand);border-color:var(--brand)}
html[data-palette="v2"] .signupDemo .goal-choice.is-selected .mock-check::after {color:var(--on-brand)}
html[data-palette="v2"] .signupDemo .mock-select::after {border-color:var(--muted)}
html[data-palette="v2"] .signupDemo .success-mark {background:var(--state-success-bg);color:var(--success)}
html[data-palette="v2"] .signupDemo .success-state .section-kicker {color:var(--success)}
html[data-palette="v2"] .signupDemo .demo-controls button {color:var(--text)}
html[data-palette="v2"] .signupDemo .demo-controls button:hover {color:var(--brand-text)}
html[data-palette="v2"] .signupDemo .demo-progress {background:var(--line)}
html[data-palette="v2"] .signupDemo .demo-progress>span {background:var(--brand)}
