:root,
[data-theme="light"] {
  color-scheme: light;
  --color-primary: #6d28d9;
  --color-primary-hover: #5b21b6;
  --color-on-primary: #ffffff;
  --color-secondary: #7c3aed;
  --color-on-secondary: #ffffff;
  --color-accent: #9333ea;
  --color-accent-hover: #7e22ce;
  --color-on-accent: #ffffff;
  --color-background: #fbf9fd;
  --color-foreground: #16121f;
  --color-card: #ffffff;
  --color-card-foreground: #16121f;
  --color-muted: #f3eef8;
  --color-muted-foreground: #3f3652;
  --color-border: #cbbbe6;
  --color-destructive: #c4455a;
  --color-on-destructive: #ffffff;
  --color-danger-bg: #fdf2f4;
  --color-link: #5b21b6;
  --color-ring: #7c3aed;
  --line: color-mix(in srgb, var(--color-foreground) 16%, transparent);
  --font: "Inter", "Segoe UI", sans-serif;
  --space: 8px;
  --radius: 12px;
  --motion: 160ms;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #5b3cc4;
  --color-primary-hover: #6d4ed4;
  --color-on-primary: #ffffff;
  --color-secondary: #6d4ed4;
  --color-on-secondary: #ffffff;
  --color-accent: #9a4ec4;
  --color-accent-hover: #8840b0;
  --color-on-accent: #ffffff;
  --color-background: #0e0c12;
  --color-foreground: #ffffff;
  --color-card: #2a2438;
  --color-card-foreground: #ffffff;
  --color-muted: #3a334c;
  --color-muted-foreground: #f0eaf8;
  --color-border: #8f7eaa;
  --color-destructive: #ffb3c0;
  --color-on-destructive: #2a1216;
  --color-danger-bg: #3d2430;
  --color-link: #f0e4ff;
  --color-ring: #c4b5fd;
  --line: color-mix(in srgb, #ffffff 28%, transparent);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--color-foreground);
  background:
    radial-gradient(880px 420px at 0% -10%, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 70%),
    var(--color-background);
}

button, input, select { font: inherit; color: inherit; }

button, input, select {
  border: 1px solid var(--line);
  background: var(--color-card);
  border-radius: 10px;
}

button {
  min-height: 44px;
  padding: 8px 16px;
  cursor: pointer;
  background: var(--color-card);
  transition: background-color var(--motion) ease, border-color var(--motion) ease, color var(--motion) ease, transform var(--motion) ease;
}

button:hover { background: var(--color-muted); }

button:active:not(:disabled) { transform: translateY(1px) scale(0.98); }

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button[aria-busy="true"] { cursor: progress; }

button.primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

button.primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

button.accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
  font-weight: 600;
}

button.accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

input, select, .picker-face {
  min-height: 44px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--color-background) 62%, var(--color-card));
  color: var(--color-foreground);
  transition: border-color var(--motion) ease, box-shadow var(--motion) ease;
}

::placeholder {
  color: color-mix(in srgb, var(--color-foreground) 62%, transparent);
  opacity: 1;
}

input:hover, select:hover, .picker-face:hover {
  border-color: color-mix(in srgb, var(--color-primary) 46%, var(--color-border));
}

input:focus-visible, .picker.is-open .picker-face {
  border-color: color-mix(in srgb, var(--color-primary) 70%, var(--color-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--color-primary);
  padding: 0;
}

.picker { position: relative; }

.picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.picker-face {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  line-height: 1.35;
  background: color-mix(in srgb, var(--color-muted) 58%, var(--color-card));
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.picker-value { min-width: 0; }

.picker-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--color-primary);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.picker.is-open .picker-chevron { transform: rotate(180deg); }

.picker-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  box-shadow: 0 16px 36px color-mix(in srgb, #140c22 18%, transparent);
}

.picker-menu[hidden] { display: none; }

.picker.is-open .picker-menu { animation: menu-in 0.22s cubic-bezier(0.2, 0.85, 0.2, 1); }

.picker.is-closing .picker-menu { animation: menu-out 0.16s ease forwards; }

.picker-menu [role="option"] {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  line-height: 1.35;
  animation: option-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.picker-menu [role="option"]:nth-child(2) { animation-delay: 0.04s; }

.picker-menu [role="option"]:hover,
.picker-menu [role="option"]:focus-visible {
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.picker-menu [role="option"]:active { transform: none; }

.picker-menu [role="option"]::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.picker-menu [role="option"][aria-selected="true"] {
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-card));
  font-weight: 600;
}

.picker-menu [role="option"][aria-selected="true"]::before {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 3px var(--color-card);
  transform: scale(1.06);
}

.top, main, .toast { width: min(1680px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.mark rect { fill: currentColor; }

.mark path {
  fill: none;
  stroke: var(--color-on-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; }

h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.3; }

.progress {
  margin: 0;
  max-width: 360px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--color-foreground);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.progress:empty { display: none; }

.progress:not(:empty)::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex: 0 0 auto;
  animation: pulse 1.1s ease-in-out infinite;
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  width: min(520px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-foreground);
  animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.error {
  border-color: color-mix(in srgb, var(--color-destructive) 45%, transparent);
  background: var(--color-danger-bg);
  color: var(--color-destructive);
}

main {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  grid-template-areas:
    "connections bar"
    "results results"
    "schedule keep";
  gap: 16px;
  align-items: start;
  padding-bottom: 48px;
}

#connections { grid-area: connections; align-self: stretch; }
.bar { grid-area: bar; align-self: stretch; align-content: center; }
.modal {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.modal::backdrop {
  background: color-mix(in srgb, #0e0c12 64%, transparent);
}

#filter-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 9%, var(--color-card)), var(--color-card) 84px);
  box-shadow: 0 24px 64px color-mix(in srgb, #140c22 36%, transparent);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 { margin: 0; }

#close-filter {
  min-height: 36px;
  padding: 6px 12px;
}

#filter-form h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#filter-form h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

#filter-form .field > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

#filter-form fieldset {
  padding: 8px 10px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-muted) 62%, transparent);
}

#filter-form .check {
  border-radius: 10px;
  padding: 0 8px;
  transition: background-color var(--motion) ease;
}

#filter-form .check:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.results { grid-area: results; }
#auto-form { grid-area: schedule; }
#keep-card { grid-area: keep; }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

#connections {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.account input { width: 100%; min-height: 40px; margin-top: 8px; }

#filter-form > button,
#auto-form > button { width: 100%; }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-name {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.switch-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
}

.switch-btn[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-card));
}

.switch-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}

.logged-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.platform-block { display: grid; gap: 10px; }
.platform-block + .platform-block { margin-top: 18px; }

.platform-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.platform-title {
  margin: 0;
  font-size: 18px;
}

#open-filter { flex: 0 0 auto; }

#open-filter[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-card));
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
}

.results-head:not(:has(.counts:not(:empty), #open-filter)) { display: none; }

.wa-mark, .tg-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.wa-mark { color: #25d366; }
.tg-mark { color: #2AABEE; }

.field, .check { display: flex; gap: 8px; }
.field { flex-direction: column; margin: 12px 0; }
.check { align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.inline { display: flex; align-items: center; gap: 8px; }
.inline input { width: 96px; }

.hint {
  margin: 8px 0 0;
  color: var(--color-muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 12px 0 4px;
}

legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 4px;
}

.qr {
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  display: block;
  background: var(--color-card);
  border-radius: 20px;
  animation: qr-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.error-line {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--color-destructive);
  font-size: 14px;
}

.error-line:empty { display: none; }

.results { display: grid; gap: 12px; min-width: 0; }

.bar {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: color-mix(in srgb, var(--color-card) 92%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.search { display: grid; gap: 6px; min-width: 0; }

.search span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

.bar-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.bar-actions button {
  flex: 1 1 auto;
  min-width: max-content;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}

.counts {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 14px;
}

.counts:empty { display: none; }

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 240px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
}

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

th {
  position: sticky;
  top: 0;
  background: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

tr.match { box-shadow: inset 3px 0 0 var(--color-primary); }

tr.rest { color: var(--color-muted-foreground); }

.handle, .why, .meta {
  color: var(--color-muted-foreground);
  font-size: 13px;
  line-height: 1.4;
}

.why { margin-top: 4px; }
.name { font-weight: 600; color: var(--color-foreground); }

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.who-text { min-width: 0; }

.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.avatar.has-photo img { opacity: 1; }
.avatar.has-photo .avatar-letter { visibility: hidden; }

.avatar-letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

button.link {
  border: 0;
  background: transparent;
  color: var(--color-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button.link:hover { background: var(--color-muted); }

.group-title {
  margin: 8px 2px;
  font-size: 16px;
}

summary.group-title { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

.empty {
  margin: 0;
  padding: 32px 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-muted-foreground);
  line-height: 1.5;
}

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--color-muted);
  border-radius: 999px;
  padding: 0 0 0 12px;
  max-width: 100%;
}

.chips li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chips button { border-radius: 999px; }

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

tbody tr { animation: row-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
tbody tr:nth-child(2) { animation-delay: 0.03s; }
tbody tr:nth-child(3) { animation-delay: 0.06s; }
tbody tr:nth-child(4) { animation-delay: 0.09s; }
tbody tr:nth-child(5) { animation-delay: 0.12s; }
tbody tr:nth-child(6) { animation-delay: 0.15s; }
tbody tr:nth-child(7) { animation-delay: 0.18s; }
tbody tr:nth-child(n + 8) { animation-delay: 0.2s; }

.empty { animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

.boot[hidden] { display: none !important; }

.boot {
  min-height: 420px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.boot p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.chips li { animation: chip-in 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) both; }

@media (max-width: 1024px) {
  main { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .top, main, .toast { width: min(1680px, calc(100% - 24px)); }
  .top { align-items: flex-start; flex-direction: column; }
  .progress { max-width: none; text-align: left; }
  h1 { font-size: 24px; }
  main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "connections"
      "bar"
      "results"
      "schedule"
      "keep";
  }
  .bar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .bar-actions button { min-width: 0; white-space: normal; }
  .table-wrap { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .check-pop, .login-stage.is-success .qr, .login-stage.is-success .spinner { opacity: 1; transform: none; }
  .check-pop path { stroke-dashoffset: 0; }
  .login-stage.is-success .qr, .login-stage.is-success .spinner { display: none; }
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login[hidden], .app[hidden] { display: none !important; }

.theme-switch {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

.login.leave { animation: login-out 0.32s ease forwards; }

.login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 16px;
  align-items: start;
}

.login-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-brand .wa-mark,
.login-brand .tg-mark { width: 26px; height: 26px; }

.tg-mark { color: #2AABEE; }

.login-stage {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  position: relative;
}

.login .qr,
.account .qr {
  width: 168px;
  height: 168px;
  border-radius: 12px;
}

.login-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.login-actions input {
  width: 100%;
  min-height: 40px;
}

.login-stage.is-tg.is-qr::after {
  border-color: color-mix(in srgb, #2AABEE 70%, transparent);
}

@media (max-width: 640px) {
  .login-grid { grid-template-columns: minmax(0, 240px); }
}

.login-stage.is-qr::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 2px solid color-mix(in srgb, #25d366 70%, transparent);
  animation: qr-ring 2.2s ease-out infinite;
  pointer-events: none;
}

.login-note {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.login-note:empty { display: none; }

.login-error {
  margin: 0;
  min-height: 0;
  text-align: center;
  color: var(--color-destructive);
}

.login-error:empty { display: none; }

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, #25d366 28%, transparent);
  border-top-color: #25d366;
  animation: spin 0.8s linear infinite;
}

.login-stage.is-success .qr,
.login-stage.is-success .spinner {
  position: absolute;
  animation: qr-out 0.4s ease forwards;
}

.check-burst {
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
}

.ripple, .ripple.late {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #25d366;
  opacity: 0;
  animation: ripple 0.8s ease-out forwards;
}

.ripple.late { animation-delay: 0.16s; }

.check-pop {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #04210f;
  transform: scale(0.2);
  opacity: 0;
  animation: pop 0.55s cubic-bezier(0.2, 1.35, 0.35, 1) 0.08s forwards;
}

.check-pop svg { width: 68px; height: 68px; }

.check-pop path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw 0.4s ease 0.32s forwards;
}

.app.enter .top,
.app.enter main > .card,
.app.enter .bar,
.app.enter .results {
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app.enter main > .card:nth-child(3) { animation-delay: 0.06s; }
.app.enter main > .card:nth-child(5) { animation-delay: 0.1s; }
.app.enter main > .card:nth-child(6) { animation-delay: 0.14s; }
.app.enter .bar { animation-delay: 0.04s; }
.app.enter .results { animation-delay: 0.08s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes row-in {
  from { transform: translateY(8px); }
  to { transform: none; }
}

@keyframes chip-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%); }
}

@keyframes qr-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes qr-out {
  to { opacity: 0; transform: scale(0.86); }
}

@keyframes qr-ring {
  0% { opacity: 0.15; transform: scale(0.96); }
  70% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.2); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ripple {
  from { opacity: 0.55; transform: scale(0.8); }
  to { opacity: 0; transform: scale(1.7); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes login-out {
  to { opacity: 0; transform: scale(1.03); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes menu-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-4px) scale(0.98); }
}

@keyframes option-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
