/* ============================================================
   Portal Meditatii Mate – Styles
   Original design preserved; additions marked with NEW.
   ============================================================ */

:root {
  --ink: #202124;
  --muted: #666f7a;
  --line: #d9dde3;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #176b87;
  --accent-dark: #0f5167;
  --green: #2c7a4b;
  --red: #a23b3b;
  --amber: #a7651a;
  --blue-soft: #e9f5f8;
  --green-soft: #eaf7ef;
  --red-soft: #f8eaea;
  --amber-soft: #fff2df;
  --shadow: 0 18px 44px rgba(26, 32, 44, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(23, 107, 135, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(52, 120, 82, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
  white-space: normal;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(23, 107, 135, 0.18);
}

button:active {
  transform: translateY(1px);
}

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

/* NEW: focus-visible ring for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
  transition: border-color 120ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}

/* NEW: invalid input state */
input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  max-width: 740px;
}

h2 {
  font-size: 1.35rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.09);
  background: rgba(251, 250, 247, 0.9);
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #263238;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  flex-shrink: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow-wrap: anywhere;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tab-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-width: 0;
}

.tab-button:hover,
.tab-button.active {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 68px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.76fr);
  gap: 24px;
  align-items: start;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.intro-panel {
  display: grid;
  gap: 26px;
  min-height: calc(100vh - 150px);
  align-content: center;
  padding: 22px 0;
}

.intro-panel p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.formula-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.formula-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  color: #39434d;
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 0.94rem;
}

.price-block {
  display: grid;
  gap: 3px;
  width: fit-content;
  border-left: 5px solid var(--green);
  background: var(--green-soft);
  padding: 16px 18px;
}

.price-block span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-block strong {
  font-size: 1.3rem;
}

.info-list {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.info-list div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
}

.info-list strong {
  font-size: 1rem;
}

.info-list span {
  color: var(--muted);
  line-height: 1.45;
}

.panel {
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}

.panel-header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lookup-form,
.student-form {
  display: grid;
  gap: 12px;
}

.inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.inline-controls.compact {
  max-width: 460px;
}

.ghost-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button:hover {
  border-color: var(--accent);
  background: var(--blue-soft);
  box-shadow: none;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* NEW: error text variant */
.error-text {
  color: var(--red);
  font-weight: 700;
}

.empty-state {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fcfcfb;
  color: var(--muted);
  padding: 22px;
}

.empty-state strong {
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.account-view {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.summary-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.metric {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 1.6rem;
  overflow-wrap: anywhere;
}

.payment-box {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-page {
  display: grid;
  gap: 18px;
}

.pay-option {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.pay-option.active {
  border-color: var(--accent);
  background: var(--blue-soft);
}

.manual-hours {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.manual-hours span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.manual-hours input {
  min-height: 34px;
  margin-top: 6px;
  padding: 6px 8px;
}

.transfer-box {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  padding: 14px;
}

.checkout-panel {
  display: grid;
  gap: 18px;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.method-switch button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.method-switch button.active {
  border-color: var(--accent);
  background: var(--blue-soft);
  color: var(--accent-dark);
}

.checkout-details {
  border-left-color: var(--accent);
}

.transfer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(167, 101, 26, 0.18);
  padding-bottom: 8px;
  min-width: 0;
}

.transfer-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.transfer-line code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.copy-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.copy-button {
  min-height: 32px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.82rem;
}

.copy-button:hover {
  border-color: var(--accent);
  background: var(--blue-soft);
  box-shadow: none;
}

.history,
.student-list,
.payment-list,
.admin-calendar {
  display: grid;
  gap: 10px;
}

.history-row,
.student-row,
.payment-row,

.row-title {
  display: grid;
  gap: 4px;
}

.row-title strong {
  overflow-wrap: anywhere;
}

.row-title span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.pill.pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.confirmed {
  background: var(--green-soft);
  color: var(--green);
}

.pill.cancelled {
  background: var(--red-soft);
  color: var(--red);
}

.legend,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot.free {
  background: var(--green);
}

.dot.busy {
  background: var(--red);
}

/* ── Time-Grid Calendar (replaces old .calendar-table) ──────── */

.time-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  user-select: none;
}

/* ── Header row (day labels) ─────────────────────────────────── */
.tg-header {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  top: auto;
  z-index: 4;
}

.tg-gutter-placeholder {
  flex: 0 0 52px;
  border-right: 1px solid var(--line);
}

.tg-col-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-right: 1px solid var(--line);
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tg-col-header:last-child {
  border-right: 0;
}

.tg-day-short {
  display: none;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tg-day-full {
  font-size: 0.82rem;
  color: var(--ink);
}

/* ── Body (gutter + columns) ─────────────────────────────────── */
.tg-body {
  display: flex;
  overflow-y: auto;
  overflow-x: auto;
  max-height: 560px;
  -webkit-overflow-scrolling: touch;
}

/* ── Left gutter (time labels) ───────────────────────────────── */
.tg-gutter {
  flex: 0 0 52px;
  position: relative;
  border-right: 1px solid var(--line);
  background: var(--paper);
  /* height is set by the tallest column; labels are absolute */
}

.tg-hour-label {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* ── Columns wrapper ─────────────────────────────────────────── */
.tg-cols {
  display: flex;
  flex: 1;
  min-width: 0;
}

/* ── Single day column ───────────────────────────────────────── */
.tg-col {
  flex: 1;
  position: relative;
  border-right: 1px solid var(--line);
  min-width: 80px;   /* minimum so events are readable on mobile */
}

.tg-col:last-child {
  border-right: 0;
}

/* ── Background grid lines ───────────────────────────────────── */
.tg-line-hour,
.tg-line-half {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.tg-line-hour {
  border-top: 1px solid var(--line);
  z-index: 0;
}

.tg-line-half {
  border-top: 1px dashed rgba(217, 221, 227, 0.6);
  z-index: 0;
}

/* ── Event blocks ────────────────────────────────────────────── */
.tg-event {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 6px;
  padding: 5px 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 1;
  transition: filter 120ms ease, transform 120ms ease;
  cursor: default;
}

.tg-event:hover {
  filter: brightness(0.96);
  transform: scale(1.012);
  z-index: 2;
}

/* Free slot – green tint */
.tg-event--free {
  background: var(--green-soft);
  border: 1px solid rgba(44, 122, 75, 0.25);
  color: var(--green);
}

/* Booked slot – accent blue tint */
.tg-event--booked {
  background: var(--blue-soft);
  border: 1px solid rgba(23, 107, 135, 0.28);
  color: var(--accent-dark);
}

.tg-event-time {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  opacity: 0.75;
  line-height: 1;
  white-space: nowrap;
}

.tg-event-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.tg-event-name {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Admin-mode event controls ───────────────────────────────── */
.tg-event-controls {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.tg-select {
  width: 100%;
  min-height: 26px;
  height: 26px;
  padding: 2px 5px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 4px;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  /* override global input styles */
  line-height: 1.2;
}

.tg-select:focus {
  border-color: var(--accent);
  outline: none;
  background: #fff;
}

/* Admin calendar wrapper – add a little top space */
#admin-calendar .time-grid {
  margin-top: 4px;
}

/* NEW: Admin login form (replaces PIN form) */
.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  align-items: start;
  gap: 28px;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-form button[type=submit] {
  margin-top: 4px;
}

.admin-view {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.85rem;
}

.danger {
  border-color: var(--red);
  background: var(--red);
}

.danger:hover {
  background: #842f2f;
  box-shadow: none;
}


/* NEW: Slots grid in parent view */
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
  padding: 10px 14px;
  font-size: 0.88rem;
}

.slot-item strong {
  color: var(--accent-dark);
}

.slot-item span {
  color: var(--muted);
}

/* NEW: Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-inline::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202124;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(23, 107, 135, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 245, 248, 0.92)),
    var(--panel);
  box-shadow: 0 12px 32px rgba(26, 32, 44, 0.09);
  padding: 22px clamp(18px, 4vw, 32px);
}

.footer-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.footer-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-copy strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.footer-copy span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.footer-phone {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 210px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 8px;
  background: #263238;
  color: #fff;
  padding: 13px 16px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.footer-phone:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(23, 107, 135, 0.2);
  transform: translateY(-1px);
}

.footer-phone span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-phone strong {
  font-size: 1.04rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .topbar,
  .panel-header,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .two-column,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: auto;
    padding-top: 10px;
  }

  .summary-grid,
  .metrics,
  .checkout-summary,
  .method-switch,
  .payment-options,
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* NEW: admin login stacks on mobile */
  .admin-login {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-phone {
    width: 100%;
    min-width: 0;
  }



  /* Time-grid: show short day labels on medium screens */
  .tg-day-full  { display: none; }
  .tg-day-short { display: block; }
  .tg-col { min-width: 60px; }
  .tg-body { max-height: 480px; }
}

@media (max-width: 560px) {
  .workspace {
    width: min(100% - 24px, 1180px);
    padding: 22px 0 44px;
  }

  .site-footer {
    width: min(100% - 24px, 1180px);
    margin-bottom: 20px;
  }

  .footer-content {
    padding: 18px;
  }

  .topbar {
    gap: 12px;
    padding: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .tab-button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .inline-controls {
    grid-template-columns: 1fr;
  }

  .inline-controls button,
  .form-actions button,
  .row-actions button,
  .method-switch button,
  #go-to-payment {
    width: 100%;
  }

  .panel {
    padding: 16px;
    box-shadow: 0 10px 28px rgba(26, 32, 44, 0.1);
  }

  .intro-panel {
    gap: 18px;
  }

  .intro-panel p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .formula-strip span {
    flex: 1 1 100%;
    text-align: center;
  }

  .price-block {
    width: 100%;
  }

  h1 {
    font-size: 1.95rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 1.18rem;
  }

  /* Time-grid mobile: compact column headers */
  .tg-gutter-placeholder,
  .tg-gutter { flex: 0 0 40px; }
  .tg-hour-label { font-size: 0.65rem; right: 4px; }
  .tg-col { min-width: 52px; }
  .tg-event { padding: 3px 4px; }
  .tg-event-time { font-size: 0.65rem; }
  .tg-event-label { font-size: 0.7rem; }
  .tg-body { max-height: 420px; }
  .tg-select { font-size: 0.64rem; min-height: 22px; height: 22px; }

  .transfer-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .copy-value {
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }


}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* NEW: Multi-student picker (when siblings share a phone) */
.student-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.picker-card {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  font-weight: 400;
}

.picker-card strong {
  font-size: 1rem;
  font-weight: 700;
}

.picker-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.picker-card:hover {
  border-color: var(--accent);
  background: var(--blue-soft);
  box-shadow: none;
}
