/* Evenli demo: the phone recording beside a ticket built from the app's own parts
   (lib/app/theme.dart light theme, core/ui/ticket.dart, settlement_page.dart). */
.ev-play { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 440px); justify-content: center; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(36px, 4vw, 56px); }
.ev-demo {
  --demo-bg: #e9f1ef; --demo-fg: #14211f; --demo-soft: #55625f;
  --demo-accent: #0b7c7c; --demo-accent-fg: #fff; --demo-line: rgba(20, 33, 31, 0.1); --demo-radius: 34px;
  justify-self: center; max-width: 360px;
  box-shadow: 0 0 0 9px #14211f, 0 0 0 10px #3a4744, 0 40px 80px -30px rgba(9, 60, 59, 0.55);
  margin: 10px;
}

.ev-panel {
  --ev-ground: #e9f1ef; --ev-ink: #14211f; --ev-muted: #55625f; --ev-primary: #0b7c7c; --ev-coral: #f87a68; --ev-border: #e9eeec;
  display: grid; color: var(--ev-ink);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.4; filter: drop-shadow(0 18px 30px rgba(13, 43, 42, 0.1));
}
.ev-panel ul { list-style: none; margin: 0; padding: 0; }

/* TicketBorder: 20px corners and two punched 9px notches where the halves meet */
.ev-ticket { position: relative; background: #fff; }
.ev-top { border-radius: 20px 20px 0 0; padding: 12px 0 10px;
  -webkit-mask: radial-gradient(circle 9px at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ev-bottom { border-radius: 0 0 20px 20px; padding: 18px 20px 14px;
  -webkit-mask: radial-gradient(circle 9px at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat; }
/* Perforation: 2px dots every 8px, inset past the notches */
.ev-bottom::before { content: ""; position: absolute; top: -1px; left: 17px; right: 17px; height: 4px;
  background: radial-gradient(circle 2px at 2px 2px, var(--ev-ground) 98%, transparent) 0 0 / 8px 4px repeat-x; }

/* Steps as CheckboxListTiles: avatar-sized tinted icon, title, subtitle, checkbox */
.ev-step { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 10px 20px; transition: background-color 0.3s ease; }
.ev-step.is-now { background: rgba(11, 124, 124, 0.08); }
.ev-step-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--tink); transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ev-step.is-now .ev-step-icon { transform: scale(1.08); }
.ev-step-icon svg { width: 22px; height: 22px; fill: currentColor; }
.ev-step-text { display: grid; min-width: 0; }
.ev-step-text b { font-size: 1rem; font-weight: 500; }
.ev-step-text small { color: var(--ev-muted); font-size: 0.875rem; }
.ev-check { display: grid; place-items: center; width: 18px; height: 18px; margin: 3px; border-radius: 2px; box-shadow: inset 0 0 0 2px var(--ev-muted); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.ev-check svg { width: 16px; height: 16px; fill: #fff; transform: scale(0); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ev-step.is-done .ev-check { background: var(--ev-primary); box-shadow: none; }
.ev-step.is-done .ev-check svg { transform: scale(1); }

/* Per person, as on the settle-up ticket */
.ev-title { margin: 0 0 4px; font-size: 1rem; font-weight: 500; }
.ev-member { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 0; }
.ev-member img { display: block; width: 32px; height: 32px; border-radius: 50%; }
.ev-member-main { display: grid; min-width: 0; }
.ev-member-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ev-name { font-size: 1rem; }
.ev-result { font-family: Manrope, Roboto, system-ui, sans-serif; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ev-ink); }
.ev-result[data-sign="1"] { color: var(--ev-primary); }
.ev-result[data-sign="0"] { color: var(--ev-muted); }
.ev-paid { color: var(--ev-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.ev-bar { position: relative; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--ev-ground); }
.ev-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--ev-coral); transition: left 0.5s ease, width 0.5s ease; }
.ev-bar i[data-sign="1"] { background: var(--ev-primary); }

.ev-play + .sig-note { text-align: center; margin-top: 28px; }

@media (max-width: 820px) {
  .ev-play { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ev-demo { width: calc(100% - 20px); max-width: 340px; }
  .ev-panel { width: 100%; max-width: 440px; }
}
@media (max-width: 420px) {
  .ev-step { padding: 9px 16px; gap: 12px; }
  .ev-bottom { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-step, .ev-step-icon, .ev-check, .ev-check svg, .ev-bar i { transition: none; }
}
