/* Motion only reinforces real states. Ticket images and their quiet zones stay static. */
:root { --motion-fast: 140ms; --motion-normal: 220ms; --motion-ease: cubic-bezier(.2,.7,.2,1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button, .button, input, select, textarea, summary, .sidebar nav a {
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);
}
button:active:not(:disabled), .button:active { transform: translateY(1px); }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent); }
.page-head h1, .invite-cover h1, .invite-facts, .apeja-masthead { animation: arrive var(--motion-normal) var(--motion-ease) both; }
.invite-facts { animation-duration: 300ms; }
.notice, .response-saved, .update-status { animation: state-arrive var(--motion-normal) var(--motion-ease) both; }
.interest-option { transition: background-color var(--motion-fast), border-color var(--motion-fast); }
.interest-option:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 5%, #fff); }
.interest-option input { accent-color: var(--green); }
.confirmation-banner[data-completed="confirmed"] .success-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid currentColor; border-radius: 50%; margin-right: 9px; font-size: 15px;
  animation: success-mark 320ms var(--motion-ease) both;
}
.metrics strong, .interest-summary strong, .tracking-timeline li, .update-list-row, .guest-list tbody tr { animation: state-arrive var(--motion-normal) var(--motion-ease) both; }
form[aria-busy="true"] button[type="submit"], form[aria-busy="true"] button:not([type]) { cursor: progress; }
button[data-busy="true"]::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: middle; animation: busy-turn 800ms linear infinite; }
.form-progress { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ticket-ready-feedback { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--green); font-weight: 600; }
.ticket-ready-feedback span { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; animation: success-mark 320ms var(--motion-ease) both; }
.interest-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 20px; padding: 16px 0; border-block: 1px solid var(--border); font-size: 13px; }
.interest-summary strong { color: var(--ink); }
.response-meta { display: grid; gap: 5px; margin-bottom: 16px; }
.response-meta p { margin: 0; }
.dashboard-extra-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.dashboard-extra-filters label { min-width: 180px; flex: 1; font-size: 12px; }
.dashboard-extra-filters select { margin-top: 5px; }
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size var(--motion-normal) var(--motion-ease), content-visibility var(--motion-normal); transition-behavior: allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
@keyframes arrive { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes state-arrive { from { opacity: .7; } to { opacity: 1; } }
@keyframes success-mark { from { opacity: .5; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes busy-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  button:active:not(:disabled), .button:active { transform: none; }
}
