/* AM Studio admin — Arabic first, RTL, works on a phone. Brand colours from the AM Gallery theme. */
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #f6f2ea;
  --card: #ffffff;
  --ink: #1d1a17;
  --muted: #6d665e;
  --line: #e6dfd3;
  --coral: #ef6a4c;
  --cobalt: #2f45c8;
  --lime: #d9ec6c;
  --green: #1f8a4c;
  --amber: #b86b00;
  --red: #c4372b;
  --r: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 1px 2px rgb(29 26 23 / 0.04), 0 8px 24px -12px rgb(29 26 23 / 0.18);
  color-scheme: light;
}

/* Smooth page-to-page fade (browsers that support cross-document view transitions). */
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0; line-height: 1.3; }
h1 small, h2 small { color: var(--muted); font-weight: 400; font-size: 0.8em; margin-inline-start: 0.4em; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; }
h2 > span:first-child { display: inline-flex; align-items: center; gap: 0.45rem; }
h2 > span:first-child > .i { color: var(--coral); }
.h1 { display: flex; align-items: center; gap: 0.55rem; }
.h1 > span { min-width: 0; }

/* Icons */
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.i--h { width: 2.1rem; height: 2.1rem; padding: 0.42rem; border-radius: 11px; background: var(--lime); color: var(--ink); vertical-align: middle; }
.btn .i, .badge .i { width: 1.05em; height: 1.05em; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 1.25rem; background: var(--ink); color: #fff; }
.top a { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.brand__mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 0.8rem/1 system-ui, sans-serif; letter-spacing: 0.02em; }
.brand--big { color: var(--ink); justify-content: center; font-size: 1.05rem; }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 999px; opacity: 0.82; transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s, transform 0.2s var(--ease); }
.nav a:hover { text-decoration: none; background: rgb(255 255 255 / 0.1); opacity: 1; }
.nav a:active { transform: scale(0.96); }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); opacity: 1; }
.nav a[aria-current="page"] .i { color: var(--coral); }
.who { display: flex; align-items: center; gap: 0.75rem; }
.who__name { display: grid; line-height: 1.2; text-align: end; }
.who__name small { opacity: 0.7; font-size: 0.75rem; }
.who form { margin: 0; }

.main { max-width: 1200px; margin: 0 auto; padding: 1.25rem; display: grid; gap: 1.25rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.4rem 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; min-width: 0; box-shadow: var(--shadow); }
.card--warn { border-color: #f2d58a; background: linear-gradient(#fffaf0, #fff); }
.card--warn h2 > span:first-child > .i { color: var(--amber); }
.card.narrow { max-width: 460px; }
.cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.stack { display: grid; gap: 0.85rem; }
.grid2 { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid3 { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

/* Stats */
.stats { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { position: relative; display: grid; gap: 0.15rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s; }
.stat:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgb(29 26 23 / 0.35); }
.stat__icon { position: absolute; inset-block-start: 0.85rem; inset-inline-end: 0.9rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgb(255 255 255 / 0.7); color: var(--ink); transition: transform 0.35s var(--ease); }
.stat:hover .stat__icon { transform: rotate(-10deg) scale(1.08); }
.stat--new .stat__icon { color: #7a5600; }
.stat--due .stat__icon { color: var(--red); }
.stat--paid .stat__icon { color: var(--green); }
.stat strong { font-size: 2rem; line-height: 1; font-family: system-ui, sans-serif; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.stat--new { background: #fff4d6; border-color: #f2d58a; }
.stat--due { background: #fde9e4; border-color: #f4b8a8; }
.stat--paid { background: #e5f5ea; border-color: #a9d9b9; }

/* Lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; padding: 0.6rem 0.4rem; margin-inline: -0.4rem; border-top: 1px solid var(--line); border-radius: 10px; transition: background 0.2s var(--ease); }
.rows li:hover { background: #faf7f1; }
.rows li.is-warn b { color: var(--amber); }
.warn-text { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--amber); font-weight: 600; }
.rows li:first-child { border-top: 0; }
.rows li > a:first-child { flex: 1 1 14rem; color: var(--ink); }
.rows li > a:first-child .muted { display: block; font-size: 0.85rem; }
.empty { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); padding: 0.75rem 0; margin: 0; }
.empty .i { color: var(--coral); opacity: 0.7; }
.log { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; max-height: 260px; overflow: auto; }
.log li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.3rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: #efe9de; color: var(--ink); font-size: 0.8rem; white-space: nowrap; }
a.badge:hover { text-decoration: none; background: #e5dccb; }
.badge--new { background: #fff1c7; color: #7a5600; }
.badge--contacted { background: #e7ecff; color: var(--cobalt); }
.badge--placed { background: #e3f4e8; color: var(--green); }
.badge--completed { background: #ece7f7; color: #5b3fa6; }
.badge--cancelled { background: #eee; color: #888; text-decoration: line-through; }
.badge--pay-paid { background: var(--green); color: #fff; }
.badge--pay-partial { background: #ffe2b8; color: var(--amber); }
.badge--pay-unpaid { background: #fbd8d2; color: var(--red); }
.badge--pay-none, .badge--pay-cancelled { background: #eee; color: #777; }
.badge--warn { background: #fff1c7; color: #7a5600; }
.badge--g-forming { background: #fff1c7; color: #7a5600; }
.badge--g-running { background: #e3f4e8; color: var(--green); }
.badge--g-finished { background: #eee; color: #777; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card .table-wrap { border: 0; border-radius: 0; margin-inline: -0.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 0.6rem 0.75rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table th { font-weight: 600; color: var(--muted); font-size: 0.8rem; background: #faf7f1; }
.table tbody tr:hover { background: #fcfaf6; }
.table--compact th, .table--compact td { padding: 0.4rem 0.5rem; }
.table--att td.c, .table--att th.c { text-align: center; padding-inline: 0.35rem; min-width: 2rem; }
td.off { color: #ccc; }
td.att--present, li.att--present { background: #e3f4e8; color: var(--green); font-weight: 700; }
td.att--absent, li.att--absent { background: #fbe3df; color: var(--red); font-weight: 700; }
td.att--makeup, li.att--makeup { background: #e7ecff; color: var(--cobalt); font-weight: 700; }

.meter { inline-size: 5rem; block-size: 0.5rem; vertical-align: middle; accent-color: var(--coral); }

/* Forms */
.field { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.field > span { color: var(--muted); font-size: 0.82rem; }
.field--grow { flex: 1 1 12rem; }
input, select, textarea { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid #d3cabb; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: transparent; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-top: 0.75rem; }
.inline-form .field { flex: 1 1 8rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filters input[type="search"] { flex: 1 1 16rem; width: auto; }
.filters select { width: auto; }
.error { color: var(--red); }
.alert { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; padding: 0.7rem 1rem; border-radius: 10px; background: #fbe3df; color: var(--red); }
.alert .i { margin-top: 0.2em; }
.alert--warn { background: #fff4d6; color: #7a5600; }
.flash { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.7rem 1rem; border-radius: 10px; background: #e3f4e8; color: var(--green); }
.toast { position: fixed; z-index: 20; inset-block-start: 4.5rem; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 2rem); padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -14px rgb(0 0 0 / 0.45); font-weight: 600; }
.toast .i { color: var(--lime); }
.toast.is-leaving { animation: toast-out 0.4s var(--ease) both !important; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(0.96); } }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--primary:hover { box-shadow: 0 8px 20px -10px rgb(29 26 23 / 0.6); }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 1.1em; height: 1.1em; border-radius: 50%; border: 2px solid var(--muted); border-color: var(--muted) transparent; animation: spin 0.7s linear infinite; }
.btn--primary.is-busy::after { border-color: #fff transparent; }
@keyframes spin { to { transform: rotate(1turn); } }
.btn:hover { text-decoration: none; background: #f3eee5; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #3a342e; }
.btn--ghost { border-color: var(--line); background: transparent; }
.top .btn--ghost { color: #fff; border-color: rgb(255 255 255 / 0.3); }
.btn--danger { border-color: var(--red); color: var(--red); }
.btn--sm { padding: 0.3rem 0.75rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-size: 0.85rem; cursor: pointer; }
.tel { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }

.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0 0 0.75rem; }
.kv div { background: #faf7f1; border-radius: 10px; padding: 0.5rem 0.75rem; }
.kv dt { color: var(--muted); font-size: 0.8rem; }
.kv dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.kv dd.due { color: var(--red); }

/* Attendance strip on a registration */
.att { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.4rem; }
.att__cell { display: grid; place-items: center; padding: 0.35rem; border-radius: 10px; background: #f3eee5; font-size: 0.75rem; text-align: center; }
.att__cell b { font-size: 1rem; }

/* Group sessions */
.sessions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.sessions li { position: relative; border: 1px solid var(--line); border-radius: 12px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s; }
.sessions li:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3cabb; }
.sessions li.is-today { border-color: var(--coral); box-shadow: 0 0 0 3px rgb(239 106 76 / 0.15); }
.sessions li.warn { border-color: #f2d58a; background: #fffaf0; }
.sessions .sub { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--cobalt); }
.sessions .warn-text { font-size: 0.75rem; font-weight: 600; }
.sessions .moved { position: absolute; inset-block-end: 0.5rem; inset-inline-end: 0.6rem; color: var(--muted); font-style: normal; }
.sessions li.past { background: #faf7f1; }
.sessions a { display: grid; padding: 0.55rem 0.75rem; color: var(--ink); }
.sessions a:hover { text-decoration: none; background: #f6f1e7; border-radius: 12px; }
.sessions b { font-size: 1.2rem; }
.sessions small { color: var(--muted); }
.sessions em { position: absolute; inset-block-start: 0.5rem; inset-inline-end: 0.6rem; font-style: normal; font-size: 0.7rem; background: var(--lime); padding: 0 0.4rem; border-radius: 999px; }

/* Attendance form */
.roster { list-style: none; margin: 0 0 1rem; padding: 0; }
.roster li { display: grid; grid-template-columns: minmax(10rem, 1fr) auto; gap: 0.5rem 1rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.roster__who { display: grid; }
.roster__note { grid-column: 1 / -1; }
.seg { display: inline-flex; border: 0; margin: 0; padding: 0; gap: 0.3rem; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.9rem; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--cobalt); }
.seg--present input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.seg--absent input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.seg--makeup input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* Timetable */
.timetable th small { display: block; font-weight: 400; }
.timetable td { vertical-align: top; min-width: 8.5rem; white-space: normal; }
.timetable .today { background: #fffbea; }
.slot { display: grid; gap: 0.05rem; padding: 0.45rem 0.6rem; margin-bottom: 0.35rem; border-radius: 10px; background: #eef1ff; color: var(--ink); border-inline-start: 4px solid var(--cobalt); font-size: 0.85rem; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s; }
.slot:hover { text-decoration: none; background: #e2e7ff; transform: translateY(-2px); box-shadow: var(--shadow); }
.slot small { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); }
.slot--sub { background: #f2ecff; border-inline-start-color: #6b4fd1; }
.slot--warn { background: #fff4d6; border-inline-start-color: var(--amber); }
.slot--warn .warn-text { color: var(--amber); }

/* Login */
.login { min-height: 80vh; display: grid; place-items: center; }
.login__card { width: min(100%, 380px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.75rem; display: grid; gap: 1rem; text-align: center; }
.login__card form { text-align: start; }

/* Group form: days and quick buttons */
fieldset.days { border: 0; padding: 0; margin: 0; }
fieldset.days legend { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.35rem; padding: 0; }
.chipset { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip-check span { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid #d3cabb; border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.9rem; transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.chip-check input:active + span { transform: scale(0.94); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.4rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ink); flex-shrink: 0; }
.check span { display: inline; }
.field > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.field--inline { display: inline-flex; align-items: center; gap: 0.4rem; }
.field--inline select, .field--inline input { width: auto; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; }
.toolbar p { margin: 0; }
.inline-form--tight { margin: 0; gap: 0.4rem; align-items: center; flex-wrap: nowrap; }
.inline-form--tight input, .inline-form--tight select { width: auto; min-width: 8rem; }
.danger-zone { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.pulse { animation: pulse 0.6s var(--ease); }
@keyframes pulse { 30% { box-shadow: 0 0 0 4px rgb(217 236 108 / 0.9); } }

/* Teachers */
.tcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tcard { display: grid; gap: 0.6rem; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s; }
.tcard:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 16px 34px -18px rgb(29 26 23 / 0.4); }
.tcard p { margin: 0; display: flex; gap: 0.35rem; align-items: baseline; }
.tcard .kv { margin: 0; }
.kv dd small { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.tcard__head { display: flex; align-items: center; gap: 0.75rem; }
.tcard__head > div { display: grid; flex: 1; line-height: 1.3; }
.tcard__go { color: var(--muted); transition: transform 0.25s var(--ease); }
.tcard:hover .tcard__go { transform: translateX(-4px); color: var(--ink); }
.avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: 1.1rem; }
.hours { display: grid; gap: 0.4rem; }
.hours__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 12px; transition: background 0.2s var(--ease), opacity 0.2s; opacity: 0.6; }
.hours__row.is-on { background: #f6f9e3; opacity: 1; }
.hours__row .chip-check { min-width: 6.5rem; }
.hours__row .chip-check span { width: 100%; text-align: center; }

/* Motion: content rises in gently; switched off for people who prefer less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { 50% { transform: scale(1.08); } }
.main > * { animation: rise 0.5s var(--ease) both; }
.main > *:nth-child(2) { animation-delay: 0.04s; }
.main > *:nth-child(3) { animation-delay: 0.08s; }
.main > *:nth-child(4) { animation-delay: 0.12s; }
.main > *:nth-child(5) { animation-delay: 0.16s; }
.main > *:nth-child(n + 6) { animation-delay: 0.2s; }
.main > .toast { animation: toast-in 0.5s var(--ease) both; animation-delay: 0s; }
.stats .stat, .tcards .tcard, .sessions li { animation: rise 0.5s var(--ease) both; }
.stats .stat:nth-child(2), .tcards .tcard:nth-child(2) { animation-delay: 0.06s; }
.stats .stat:nth-child(3), .tcards .tcard:nth-child(3) { animation-delay: 0.12s; }
.stats .stat:nth-child(4), .tcards .tcard:nth-child(n + 4) { animation-delay: 0.18s; }
.sessions li:nth-child(n + 4) { animation-delay: 0.05s; }
.sessions li:nth-child(n + 7) { animation-delay: 0.1s; }
.sessions li:nth-child(n + 10) { animation-delay: 0.15s; }
.seg__opt span { display: inline-flex !important; align-items: center; gap: 0.3rem; transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.seg__opt input:checked + span { animation: pop 0.3s var(--ease); }
.login__card { animation: rise 0.6s var(--ease) both; box-shadow: 0 24px 60px -30px rgb(29 26 23 / 0.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 720px) {
  .nav a span { font-size: 0.9rem; }
  .who .btn span { display: none; }
  .inline-form--tight { flex-wrap: wrap; }
  .top { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .brand > span:last-child { display: none; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .who { margin-inline-start: auto; }
  .main { padding: 0.85rem; gap: 0.85rem; }
  h1 { font-size: 1.25rem; }
  .roster li { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr 1fr; }
}
