:root {
  --ink: #172033;
  --muted: #6b7280;
  --line: #dee2e6;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --brand: #0d6efd;
  --brand-strong: #084298;
  --accent: #20c997;
  --accent-soft: #e6f7f6;
  --warm: #fd7e14;
  --warm-soft: #fff3cd;
  --green: #198754;
  --amber: #b58100;
  --red: #dc3545;
  --radius: 0.75rem;
  --shadow: 0 1rem 3rem rgba(13, 110, 253, 0.13);
  --shadow-soft: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.08);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 13, 110, 253;
  --bs-success: var(--green);
  --bs-danger: var(--red);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-strong);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 6%, rgba(13, 110, 253, 0.1), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(32, 201, 151, 0.13), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #f4f7fb 46%, #eef7f5 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 110, 253, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 110, 253, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { color: var(--brand); }

.app {
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  padding: 0 14px 104px;
}

.content { padding: 6px 0 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  margin: 0 -14px 18px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  box-shadow: 0 0.75rem 2rem rgba(33, 37, 41, 0.08);
  backdrop-filter: blur(18px);
}

.toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #087f5b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: 22px;
  line-height: 1.1;
  margin: 8px 0 5px;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(53, 92, 125, 0.22);
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.96), rgba(32, 201, 151, 0.9)),
    var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, var(--warm), var(--accent));
}

.hero h2 {
  margin: 0 0 9px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stats.stats-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  background: rgba(255, 255, 255, 0.16);
  padding: 14px 10px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.stat b {
  display: block;
  font-size: 24px;
  color: #ffffff;
}

.stat span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
  gap: 12px;
}

.section-head h2,
.section-head h3 {
  font-size: 17px;
  margin: 0;
  letter-spacing: 0;
}

.section-head a,
.text-link {
  font-size: 13px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.filter-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-panel-collapsed {
  display: none !important;
}

.filter-toggle-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(219, 227, 238, 0.94);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.92)),
    #ffffff;
  color: var(--brand-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.filter-toggle-button span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-toggle-button span::before {
  content: "⌕";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.filter-toggle-button b {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4db;
  color: var(--amber);
  font-size: 10px;
  text-transform: uppercase;
}

.filter-toggle-button i {
  font-style: normal;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.filter-toggle-button.open i {
  transform: rotate(180deg);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.filter-grid label {
  margin-top: 0;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.filter-actions .btn,
.load-more .btn {
  width: auto;
  min-height: 44px;
}

.load-more {
  display: flex;
  justify-content: center;
  margin: 16px 0 6px;
}

.load-more span {
  color: var(--muted);
  font-weight: 800;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.home-actions .btn {
  width: 100%;
  min-height: 56px;
  padding: 14px;
  justify-content: flex-start;
  border-left: 4px solid var(--accent);
}

.home-actions .btn:nth-child(3n + 2) { border-left-color: var(--warm); }
.home-actions .btn:nth-child(3n + 3) { border-left-color: var(--brand); }

.parent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 12px;
  margin-bottom: 14px;
}

.child-card,
.focus-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(219, 227, 238, 0.94);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.child-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid var(--accent);
}

.child-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  object-fit: cover;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.child-card span,
.focus-card span,
.insight-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.child-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.child-card p,
.focus-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.focus-card {
  border-left: 4px solid var(--warm);
}

.focus-card strong {
  display: block;
  color: var(--brand-strong);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.insight-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(219, 227, 238, 0.94);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.insight-card strong {
  display: block;
  color: var(--brand);
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

.quick-actions .btn {
  min-height: 48px;
}

.quick-actions .btn.secondary {
  width: 100%;
}

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

.today-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: #ffffff;
  border: 1px solid rgba(219, 227, 238, 0.94);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.mini-item.has-check {
  grid-template-columns: 28px minmax(0, 1fr);
  border-color: rgba(13, 110, 253, 0.32);
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.08)),
    #ffffff;
}

.mini-item i {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.mini-item.has-check i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 0;
  color: #ffffff;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.mini-item-replaced {
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.42);
  background: rgba(233, 236, 239, 0.7);
  box-shadow: none;
}

.mini-item-replaced i {
  opacity: 0.45;
  filter: grayscale(0.55);
}

.mini-item-replaced strong,
.mini-item-replaced p {
  color: #6b7280;
}

.mini-item.amber i {
  background: var(--warm);
}

.mini-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.mini-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.parent-dashboard {
  display: grid;
  gap: 14px;
}

.parent-dashboard .parent-hero {
  margin-bottom: 0;
}

.parent-dashboard .child-card,
.parent-dashboard .focus-card,
.parent-dashboard .insight-card,
.parent-dashboard .mini-item {
  border-radius: 20px;
}

.parent-dashboard .child-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 20px;
  border: 1px solid rgba(0, 166, 166, 0.18);
  border-left: 0;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 251, 235, 0.92)),
    #ffffff;
}

.parent-dashboard .child-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--warm));
}

.parent-dashboard .child-avatar {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(49, 46, 129, 0.16);
}

.parent-dashboard .child-card span,
.parent-dashboard .focus-card span,
.parent-dashboard .insight-card span {
  color: var(--brand);
}

.parent-dashboard .child-card h2 {
  color: var(--brand-strong);
  font-size: 28px;
}

.parent-dashboard .focus-card {
  display: grid;
  align-content: center;
  border: 1px solid rgba(249, 115, 91, 0.18);
  border-left: 0;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.parent-dashboard .focus-card strong {
  font-size: 28px;
}

.parent-dashboard .insight-card {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 16px;
  border: 1px solid rgba(219, 227, 238, 0.88);
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.parent-dashboard .insight-card::before {
  content: "";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(0, 166, 166, 0.1);
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
}

.parent-dashboard .insight-card:nth-child(1)::before { content: "▦"; }
.parent-dashboard .insight-card:nth-child(2)::before { content: "✓"; background: rgba(245, 158, 11, 0.12); color: #b45309; }
.parent-dashboard .insight-card:nth-child(3)::before { content: "◷"; background: rgba(49, 46, 129, 0.1); color: var(--brand-strong); }
.parent-dashboard .insight-card:nth-child(4)::before { content: "Rp"; background: rgba(16, 185, 129, 0.12); color: #047857; font-size: 15px; }

.parent-dashboard .insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.parent-dashboard .quick-actions {
  margin: 0;
}

.parent-dashboard .dashboard-grid {
  margin-top: 0;
}

.parent-dashboard .section-head {
  margin-top: 10px;
}

.parent-dashboard .mini-item {
  border-color: rgba(219, 227, 238, 0.84);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #ffffff;
}

.parent-dashboard .mini-item i {
  width: 12px;
  height: 32px;
  margin-top: 1px;
  border-radius: 999px;
}

.parent-dashboard .mini-item.has-check {
  border-color: rgba(13, 110, 253, 0.32);
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.08)),
    #ffffff;
}

.parent-dashboard .mini-item.has-check i {
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.parent-dashboard .mini-item-replaced {
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.42);
  background:
    linear-gradient(135deg, rgba(243, 244, 246, 0.9), rgba(229, 231, 235, 0.82)),
    #f3f4f6;
  box-shadow: none;
}

.empty.compact {
  padding: 18px 14px;
  text-align: left;
}

.card,
.form-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(222, 226, 230, 0.94);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.card:hover,
.form-card:hover {
  border-color: rgba(13, 110, 253, 0.16);
}

.card-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.datebox {
  min-width: 58px;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #087f7f;
  border: 1px solid rgba(0, 166, 166, 0.18);
}

.datebox b {
  display: block;
  font-size: 22px;
}

.datebox span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.card h3,
.card h2 {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: 0;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

.meta,
.schedule-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 11px;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e9ecef;
  color: #495057;
}

.pill.green {
  background: #d1e7dd;
  color: #0f5132;
}

.pill.amber {
  background: #fff3cd;
  color: #664d03;
}

.chip {
  background: var(--accent-soft);
  color: #087f5b;
}

.finance-hero { margin-bottom: 18px; }

.finance-va-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.finance-va-link:hover,
.finance-va-link:focus-visible { background: rgba(255, 255, 255, 0.24); color: #ffffff; }

.admin-finance-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.admin-finance-hero-actions form { margin: 0; }
.admin-finance-hero-actions .hero-btn { width: auto; background: #ffffff; color: var(--brand); box-shadow: none; }
.admin-finance-hero-actions .hero-btn:disabled { opacity: 0.72; cursor: wait; }
.admin-finance-hero-actions .finance-va-link { margin-top: 0; }
.admin-finance-hero > small { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.78); }

.va-info-modal .modal-header p { margin: 4px 0 0; color: var(--muted); }
.va-info-modal .modal-title { font-size: 21px; }
.va-info-modal .va-status-card { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.va-info-modal .modal-footer .btn { width: auto; }
.va-info-modal .modal-footer form { margin: 0; }
.va-admin-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.va-admin-table { min-width: 680px; margin: 0; }
.va-table-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.va-modal-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: #eef7ff; color: var(--muted); line-height: 1.55; }
.va-batch-status:not(:empty) { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius); background: #fff8df; color: #664d03; font-weight: 800; }
.va-modal-sync { margin-top: 14px; }
.va-modal-sync .btn { width: auto; }
.va-info-modal .modal-info { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); }
.va-info-modal .modal-info h3 { margin-top: 0; }

.spp-report-modal .modal-header p { margin: 4px 0 0; color: var(--muted); }
.spp-report-modal .modal-title { font-size: 21px; }
.spp-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.spp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.spp-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.spp-report-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.spp-report-table th, .spp-report-table td { padding: 9px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #ffffff; }
.spp-report-table th { position: sticky; top: 0; z-index: 2; background: var(--surface-soft); color: var(--ink); text-align: center; }
.spp-report-table th:nth-child(3), .spp-report-table td:nth-child(3) { min-width: 210px; text-align: left; }
.spp-report-table tr:last-child td { border-bottom: 0; }
.spp-report-table th:last-child, .spp-report-table td:last-child { border-right: 0; }
.spp-status-cell { text-align: center; font-size: 18px; font-weight: 900; }
.spp-paid { color: var(--green); }
.spp-unpaid { color: var(--red); }
.spp-unknown { color: var(--amber); cursor: help; }
.spp-empty { color: var(--muted); }
.spp-month-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.spp-month-summary div { padding: 13px; border-radius: var(--radius); background: var(--surface-soft); border: 1px solid var(--line); }
.spp-month-summary span { display: block; color: var(--muted); font-size: 12px; }
.spp-month-summary strong { display: block; margin-top: 5px; font-size: 25px; }
.spp-report-modal .modal-footer .btn { width: auto; }
.spp-export-button { background: linear-gradient(135deg, #198754, #20a96b); }

.hero-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .hero-btn { width: auto; box-shadow: none; }
.hero-actions .hero-btn.secondary { color: var(--brand); }

.va-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}

.va-status-card h2 { margin: 4px 0; font-size: 20px; }
.va-status-card p { margin: 0; }
.va-number-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.va-status-card .va-number { color: var(--brand); font-size: clamp(20px, 4vw, 28px); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.va-status-card .va-sync-time { margin-top: 5px; color: var(--muted); font-size: 12px; }
.va-sync-form { margin-top: 12px; }
.va-sync-form .btn { width: auto; }
.va-password-card { margin-bottom: 18px; }
.va-password-card h3 { margin-top: 0; }
.va-pill-copy { border: 0; min-width: 38px; min-height: 34px; font-size: 18px; cursor: pointer; }
.va-pill-copy:hover, .va-pill-copy:focus-visible { filter: brightness(0.96); }
.va-status-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.va-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.va-steps .card { margin: 0; }
.va-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
}
.va-steps h3 { margin: 12px 0 6px; font-size: 17px; }
.va-steps p, .va-notice p { margin: 0; color: var(--muted); line-height: 1.6; }
.va-notice { margin-top: 18px; border-left: 4px solid var(--amber); }
.va-notice h3 { margin-top: 0; }
.va-notice .actions { margin-top: 16px; }

.finance-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}

.finance-create { margin-bottom: 18px; }

.modal-info {
  border-left: 4px solid var(--amber);
  background: #fffdf7;
}

.modal-info h3 {
  margin-bottom: 6px;
}

.finance-create > summary {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
}

.finance-create > summary::-webkit-details-marker { display: none; }
.finance-create > summary span { color: var(--muted); font-size: 12px; }

.finance-card {
  border-left: 4px solid var(--accent);
}

.finance-card.paid { border-left-color: var(--green); }
.finance-card.unpaid { border-left-color: var(--red); }
.finance-card.history { border-left-color: var(--brand); }
.finance-card.history.paid { border-left-color: var(--green); }
.finance-card.history.unpaid { border-left-color: var(--red); }
.finance-card.overdue { border-left-color: var(--amber); background: #fffdf7; }
.finance-card.unpaid.overdue { border-left-color: var(--red); }

.finance-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.finance-card-head strong {
  white-space: nowrap;
  color: var(--brand);
  font-size: 16px;
}

.finance-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.finance-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: end;
  border-left: 4px solid var(--brand);
}

.finance-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.finance-summary strong {
  display: block;
  color: var(--brand);
  font-size: 24px;
  line-height: 1.2;
}

.finance-summary p {
  margin: 6px 0 0;
}

.finance-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.finance-filter .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

.payment-action {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.payment-action > summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}

.payment-action form { margin-top: 8px; }

.proof-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.finance-plan form,
.inline-form { margin: 0; }

.finance-plan .btn {
  width: auto;
  padding: 9px 12px;
  font-size: 12px;
}

.report-hero {
  margin-bottom: 14px;
}

.report-grid {
  margin-top: 0;
}

.report-grid .insight-card {
  border-left: 4px solid var(--accent);
}

.report-grid .insight-card:nth-child(2) { border-left-color: var(--warm); }
.report-grid .insight-card:nth-child(3) { border-left-color: var(--brand); }
.report-grid .insight-card:nth-child(4) { border-left-color: var(--green); }

.report-section {
  overflow: hidden;
}

.book-reader-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.book-reader-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 166, 166, 0.1), rgba(245, 158, 11, 0.1)),
    #ffffff;
  border: 1px solid rgba(219, 227, 238, 0.96);
  box-shadow: var(--shadow-soft);
}

.book-reader-head h2 {
  margin: 8px 0 6px;
  color: var(--brand-strong);
}

.book-reader-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.book-frame {
  width: 100%;
  min-height: min(820px, 76dvh);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.book-list {
  display: grid;
  gap: 12px;
}

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

.book-subject-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(219, 227, 238, 0.94);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.book-subject-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 166, 166, 0.22);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.book-subject-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--subject-color), var(--accent));
  color: #ffffff;
  font-size: 25px;
  box-shadow: 0 14px 28px rgba(53, 92, 125, 0.16);
}

.book-subject-card strong {
  display: block;
  color: var(--brand-strong);
  font-size: 17px;
  line-height: 1.3;
}

.book-subject-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.book-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-color: rgba(0, 166, 166, 0.18);
}

.book-card-completed {
  background: rgba(248, 250, 252, 0.78);
  border-color: rgba(148, 163, 184, 0.42);
}

.book-card-completed .book-page-badge,
.book-card-completed .book-title-row,
.book-card-completed .book-card-body > p {
  opacity: 0.58;
}

.book-card-completed .book-page-badge {
  filter: grayscale(0.35);
}

.book-page-badge {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(49, 46, 129, 0.16);
}

.book-page-badge span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-page-badge b {
  font-size: 28px;
  line-height: 1;
}

.book-card-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.book-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.book-title-row h3 {
  margin: 0;
  color: var(--brand-strong);
  overflow-wrap: anywhere;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.book-progress-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.book-mark-button {
  width: auto;
  min-height: 36px;
  padding: 8px 13px;
  color: var(--brand-strong);
  border-color: rgba(13, 110, 253, 0.22);
}

.book-done-pill {
  border: 1px solid rgba(25, 135, 84, 0.18);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-confirm-dialog {
  border-top: 5px solid var(--accent);
}

.book-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.book-confirm-actions .btn {
  width: 100%;
}

.danger-zone {
  margin-top: 10px;
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(254, 242, 242, 0.9);
}

.report-table-wrap {
  overflow-x: auto;
}

.button-link {
  border: 0;
  background: transparent;
  padding: 12px 0 0;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)),
    #ffffff;
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(219, 227, 238, 0.94);
  box-shadow: 0 -12px 30px rgba(23, 32, 51, 0.08);
}

.bottom-nav.role-management {
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: center;
}

.desktop-nav-item {
  display: none !important;
}

.mobile-nav-item {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  padding: 8px 4px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-item .icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 13px;
  background: #eef3f8;
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
}

.mobile-nav-item:hover {
  color: var(--brand-strong);
  background: #ffffff;
  border-color: rgba(0, 166, 166, 0.16);
  transform: translateY(-1px);
}

.mobile-nav-item:disabled {
  opacity: 0.68;
  cursor: wait;
}

.mobile-nav-item.active {
  color: var(--brand-strong);
  background: var(--accent-soft);
  border-color: rgba(0, 166, 166, 0.16);
}

.mobile-nav-item.active .icon {
  background: #ffffff;
  color: var(--accent);
}

.nav-item-schedule {
  min-height: 76px;
  margin-top: -24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 32px rgba(53, 92, 125, 0.28);
}

.nav-item-schedule .icon {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 22px;
}

.nav-item-schedule.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-strong), var(--accent));
  box-shadow: 0 18px 38px rgba(53, 92, 125, 0.34);
}

.nav-item-schedule.active .icon {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.nav-menu-sheet {
  display: none;
}

.bottom-nav.menu-open .nav-menu-sheet {
  display: block;
}

.nav-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 21;
  border: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(3px);
}

.nav-menu-panel {
  position: fixed;
  z-index: 22;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(86px + env(safe-area-inset-bottom));
  max-width: 520px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(219, 227, 238, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.nav-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nav-menu-head strong {
  color: var(--brand-strong);
  font-size: 15px;
}

.nav-menu-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

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

.nav-menu-grid a,
.nav-menu-grid button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(219, 227, 238, 0.92);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.nav-menu-grid form {
  margin: 0;
}

.nav-menu-grid form button {
  width: 100%;
}

.nav-menu-grid .icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--brand);
}

.nav-menu-grid a.active {
  color: var(--brand-strong);
  border-color: rgba(0, 166, 166, 0.22);
  background: var(--accent-soft);
}

.cache-clear-button .icon {
  color: var(--amber);
  background: #fff4db;
}

.logout-menu-button .icon {
  color: var(--red);
  background: #fee2e2;
}

.is-pwa body {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(237, 242, 247, 0.98), rgba(247, 250, 252, 0.98)),
    var(--bg);
  overscroll-behavior-y: none;
}

.is-pwa .app {
  max-width: none;
  min-height: 100dvh;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.is-pwa .topbar {
  top: 0;
  margin-left: calc(-1 * max(14px, env(safe-area-inset-left)));
  margin-right: calc(-1 * max(14px, env(safe-area-inset-right)));
  padding-top: calc(16px + env(safe-area-inset-top));
  background:
    linear-gradient(135deg, rgba(53, 92, 125, 0.98), rgba(0, 166, 166, 0.92)),
    var(--brand);
  color: #ffffff;
  border-bottom: 0;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.16);
}

.is-pwa .topbar .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.is-pwa .topbar p {
  color: rgba(255, 255, 255, 0.82);
}

.is-pwa .topbar .avatar {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.is-pwa .bottom-nav {
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(219, 227, 238, 0.82);
  box-shadow: 0 -18px 38px rgba(23, 32, 51, 0.12);
}

.is-pwa .mobile-nav-item {
  min-height: 62px;
  border-radius: 18px;
  padding: 8px 7px;
}

.is-pwa .mobile-nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 22px rgba(53, 92, 125, 0.18);
}

.is-pwa .mobile-nav-item.active .icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.is-pwa .login {
  min-height: 100dvh;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 16px 0 8px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(206, 212, 218, 0.96);
  border-radius: var(--radius);
  padding: 0.8125rem 0.95rem;
  background: #ffffff;
  font: inherit;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(13, 110, 253, 0.58);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.16);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0.8125rem 1rem;
  background: linear-gradient(135deg, var(--brand), #6610f2);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(53, 92, 125, 0.22);
}

.btn.secondary {
  width: auto;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(222, 226, 230, 0.96);
  box-shadow: 0 7px 18px rgba(23, 32, 51, 0.08);
}

.btn.secondary.icon { padding: 11px 14px; }

.btn.danger {
  background: #f8d7da;
  color: #842029;
  border: 1px solid rgba(220, 53, 69, 0.24);
  box-shadow: none;
}

.btn.danger:hover,
.btn.secondary:hover { filter: brightness(0.98); }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.flash {
  padding: 13px 15px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  background: #e8f7ef;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.16);
}

.flash.error {
  background: #fff0ec;
  color: #b42318;
  border-color: rgba(249, 115, 91, 0.22);
}

.login {
  min-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 16px 40px;
}

.login-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.brandmark {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  background: #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 31px;
  box-shadow: 0 18px 40px rgba(53, 92, 125, 0.24);
  margin-bottom: 20px;
  object-fit: contain;
  padding: 8px;
}

.brandmark:not(img) {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  padding: 0;
}

.login-intro {
  margin-bottom: 18px;
}

.login h1 {
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: 0;
}

.login p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.8;
}

.login-highlights {
  display: none;
}

.login-schedule-slider {
  margin: 18px 0;
}

.login-schedule-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.login-schedule-track::-webkit-scrollbar {
  display: none;
}

.login-current-schedule {
  min-height: 132px;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 166, 166, 0.12), rgba(249, 115, 91, 0.1)),
    #ffffff;
  border: 1px solid rgba(0, 166, 166, 0.18);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.login-current-schedule.next {
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(255, 193, 7, 0.1)),
    #ffffff;
  border-color: rgba(13, 110, 253, 0.16);
}

.login-current-schedule span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #087f7f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-current-schedule.next span {
  background: #eef6ff;
  color: var(--brand-strong);
}

.login-current-schedule strong {
  display: block;
  color: var(--brand-strong);
  font-size: 18px;
  line-height: 1.25;
}

.login-current-schedule p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-schedule-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.login-schedule-dots button {
  width: 8px;
  height: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.36);
  cursor: pointer;
}

.login-schedule-dots button.active {
  width: 20px;
  background: var(--brand);
}

.login-card-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.login-card-head p {
  margin-bottom: 18px;
  font-size: 13px;
}

.pin-code {
  position: relative;
  margin-top: 8px;
  cursor: text;
}

.pin-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  color: transparent;
  caret-color: transparent;
  border: 0;
  background: transparent;
  cursor: text;
}

.pin-input:focus {
  box-shadow: none;
}

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

.pin-boxes span {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px solid rgba(148, 163, 184, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.88)),
    #ffffff;
  color: var(--brand-strong);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.pin-boxes span.filled {
  border-color: rgba(0, 166, 166, 0.34);
  background:
    linear-gradient(135deg, rgba(224, 247, 244, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.pin-code.focused .pin-boxes span.active {
  border-color: rgba(0, 166, 166, 0.86);
  box-shadow: 0 0 0 4px rgba(0, 166, 166, 0.14), 0 14px 28px rgba(0, 166, 166, 0.14);
  transform: translateY(-1px);
}

.login > .form-card {
  width: min(100%, 440px);
}

.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.help a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
}

.profile {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.photo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 28px;
  border: 1px solid rgba(0, 166, 166, 0.16);
}

.profile h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.profile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.student-profile-card {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  gap: 18px;
  border: 1px solid rgba(49, 46, 129, 0.1);
  background:
    linear-gradient(135deg, rgba(49, 46, 129, 0.08), rgba(0, 166, 166, 0.08) 48%, rgba(245, 158, 11, 0.1)),
    #ffffff;
}

.student-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--brand), var(--accent), var(--warm));
}

.profile-photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 112px;
  padding-left: 5px;
}

.student-profile-card .photo {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 34px rgba(49, 46, 129, 0.18);
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
}

.profile-main {
  position: relative;
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
  align-content: center;
}

.profile-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-profile-card h2 {
  color: var(--brand-strong);
  font-size: 22px;
  line-height: 1.22;
}

.student-profile-card p {
  color: var(--ink);
  font-weight: 800;
}

.profile-badges,
.profile-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(49, 46, 129, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.profile-mini-grid {
  margin-top: 4px;
}

.profile-mini-grid div {
  min-width: 128px;
  flex: 1 1 128px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(219, 227, 238, 0.74);
}

.profile-mini-grid strong,
.profile-mini-grid span {
  display: block;
}

.profile-mini-grid strong {
  color: var(--brand);
  font-size: 11px;
  margin-bottom: 4px;
}

.profile-mini-grid span {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.student-profile-hub {
  align-items: flex-start;
}

.student-profile-hub .profile-main {
  gap: 10px;
}

.profile-edit-panel {
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 227, 238, 0.78);
  box-shadow: 0 14px 30px rgba(49, 46, 129, 0.08);
}

.profile-edit-panel h3 {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 16px;
}

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

.profile-form-grid label {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
}

.profile-form-grid input {
  margin-top: 5px;
  background: #ffffff;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-quick-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(49, 46, 129, 0.18);
}

.profile-quick-actions form,
.profile-quick-actions .btn {
  min-width: 160px;
}

.copy-value {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.copy-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(49, 46, 129, 0.12);
  border-radius: 9px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.copy-button:hover {
  border-color: rgba(49, 46, 129, 0.28);
  background: rgba(49, 46, 129, 0.06);
}

.list {
  display: grid;
  gap: 12px;
}

.students-directory {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.96)),
    #ffffff;
}

.students-directory .filter-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 227, 238, 0.82);
  box-shadow: none;
}

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

.student-list-item {
  position: relative;
  overflow: hidden;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 100%;
  border-color: rgba(49, 46, 129, 0.1);
  background:
    linear-gradient(135deg, rgba(0, 166, 166, 0.08), rgba(245, 158, 11, 0.08)),
    #ffffff;
}

.student-list-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--warm));
}

.student-list-avatar {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  font-weight: 900;
  font-size: 26px;
  box-shadow: 0 12px 24px rgba(49, 46, 129, 0.14);
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(219, 227, 238, 0.96);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.12);
}

.student-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.student-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.student-title strong {
  color: var(--brand-strong);
  font-size: 15px;
  line-height: 1.35;
}
.student-title .pill { font-size: 10px; }
.student-subtitle small {
  color: var(--muted);
  font-weight: 700;
}

.student-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.student-info .item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 227, 238, 0.72);
}

.student-info .item strong {
  color: var(--brand);
  font-size: 11px;
}

.student-info .item span {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-contact {
  font-size: 13px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.student-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: stretch;
}

.student-action .btn.secondary {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
}

.section-note {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 14px;
  line-height: 1.7;
}

.empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}

.empty .icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tabs a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(219, 227, 238, 0.96);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tabs a.active {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  overflow: hidden;
  border: 1px solid rgba(222, 226, 230, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-table th,
.admin-table td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid rgba(222, 226, 230, 0.96);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #495057;
  font-weight: 900;
  background: #f8f9fa;
}

.admin-table tr:hover { background: rgba(13, 110, 253, 0.045); }

.notification-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(0, 166, 166, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 243, 0.84)),
    #ffffff;
}

.attendance-manual-card {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(53, 92, 125, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
  box-shadow: 0 16px 34px rgba(37, 70, 98, 0.08);
}

.attendance-manual-card form {
  display: grid;
  gap: 14px;
}

.attendance-manual-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}

.attendance-manual-heading h2 {
  margin: 5px 0 4px;
  color: #213c56;
  font-size: clamp(20px, 3vw, 26px);
}

.attendance-manual-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.attendance-manual-icon {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 24px;
  background: linear-gradient(135deg, #355c7d, #00a6a6);
  box-shadow: 0 10px 20px rgba(53, 92, 125, 0.22);
}

.manual-access-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #cce6f5;
  border-radius: 12px;
  color: #245a78;
  background: #edf8ff;
  font-size: 13px;
}

.manual-access-note i {
  color: #1683b5;
}

.manual-fields-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 1fr);
  gap: 14px;
}

.manual-today-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #e8f3ff;
  color: #24537a;
  font-weight: 700;
}

.manual-today-badge i {
  color: #1683b5;
  font-size: 19px;
}

.manual-today-badge span {
  display: grid;
  gap: 2px;
}

.manual-today-badge small {
  color: #5c7890;
  font-size: 11px;
  font-weight: 600;
}

.manual-submit {
  justify-self: start;
  min-width: 210px;
}

.attendance-history-card {
  overflow: hidden;
  border: 1px solid rgba(53, 92, 125, 0.12);
  box-shadow: 0 14px 30px rgba(37, 70, 98, 0.06);
}

.history-count {
  padding: 7px 11px;
  border-radius: 999px;
  color: #24537a;
  background: #e8f3ff;
  font-size: 12px;
  font-weight: 800;
}

.attendance-row {
  padding: 16px 0;
  border-top: 1px solid #edf1f5;
}

.attendance-row-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.attendance-date-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #167d83;
  background: #e8f8f5;
}

.attendance-row-main p,
.attendance-row-main small {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
}

.attendance-map-button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  color: #167d83;
  background: #e8f8f5;
  font-weight: 800;
  cursor: pointer;
}

.attendance-map-button:hover {
  background: #d6f1ec;
}

.attendance-no-location {
  color: #8793a0;
  font-size: 12px;
}

.attendance-map-dialog {
  width: min(720px, calc(100% - 28px));
}

.attendance-map-dialog iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  margin: 4px 0 15px;
  border: 0;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .attendance-manual-heading {
    align-items: flex-start;
  }

  .attendance-manual-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 20px;
  }

  .manual-fields-grid {
    grid-template-columns: 1fr;
  }

  .manual-submit {
    width: 100%;
  }

  .attendance-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .attendance-map-dialog iframe {
    min-height: 280px;
  }
}

.attendance-tracker i,
.btn i {
  margin-right: 0.35rem;
}

.notification-card h2 {
  margin: 7px 0 6px;
  font-size: 20px;
}

.notification-card p {
  margin: 0;
  color: var(--muted);
}

.notification-card .btn {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .notification-card {
    display: grid;
  }

  .notification-card .btn {
    width: 100%;
  }
}

.schedule-week-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border-color: rgba(0, 166, 166, 0.18);
  background:
    linear-gradient(135deg, rgba(224, 247, 244, 0.9), rgba(255, 248, 225, 0.72)),
    #ffffff;
}

.schedule-week-head {
  align-items: flex-start;
  margin: 2px 0 0;
}

.schedule-week-head .profile-kicker {
  margin: 0;
  box-shadow: 0 8px 18px rgba(0, 166, 166, 0.08);
}

.schedule-week-head > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid rgba(0, 166, 166, 0.16);
}

.schedule-date-filter {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1fr) auto 44px auto auto;
  grid-template-areas: "prev picker submit next today export";
  gap: 10px;
  align-items: end;
  margin: 0 0 4px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.schedule-date-filter label {
  grid-area: picker;
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.schedule-date-filter button {
  grid-area: submit;
}

.schedule-date-filter label span {
  display: block;
  margin-bottom: 7px;
}

.schedule-date-filter input {
  margin: 0;
  min-height: 44px;
  background: #ffffff;
}

.week-step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--brand);
  border: 1px solid rgba(0, 166, 166, 0.18);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.week-step:hover,
.week-step:focus-visible {
  background: rgba(0, 166, 166, 0.08);
  outline: none;
}

.week-prev {
  grid-area: prev;
}

.week-next {
  grid-area: next;
}

.today-chip {
  grid-area: today;
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}

.schedule-export-chip {
  grid-area: export;
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}

.schedule-child-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 166, 166, 0.16);
}

.schedule-child-note .meta {
  margin-top: 8px;
}

.schedule-add-trigger {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 166, 166, 0.16);
}

.schedule-add-trigger:hover,
.schedule-add-trigger:focus-visible {
  background: var(--brand-strong);
  outline: none;
}

.app-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
}

.app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
}

.dialog-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(255, 251, 235, 0.96)),
    #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

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

.dialog-head h2 {
  margin: 7px 0 0;
  color: var(--brand-strong);
  font-size: 20px;
}

.dialog-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 46, 129, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(219, 227, 238, 0.82);
}

.mode-switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mode-switch input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.dialog-card label {
  margin: 0;
}

.homework-completed-trigger {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.homework-completed-trigger:hover,
.homework-completed-trigger:focus-visible {
  filter: brightness(0.96);
  outline: 2px solid rgba(0, 166, 166, 0.22);
  outline-offset: 2px;
}

.homework-completed-dialog {
  width: min(680px, calc(100vw - 28px));
}

.completed-student-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.completed-student-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(219, 227, 238, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.completed-student-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 166, 166, 0.12);
  color: var(--brand-strong);
  font-weight: 950;
}

.completed-student-row strong,
.completed-student-row p,
.completed-student-row small {
  overflow-wrap: anywhere;
}

.completed-student-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.completed-student-row small {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.completed-student-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-day {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 166, 166, 0.14);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.86)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.schedule-day::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand), var(--accent), var(--warm));
}

.schedule-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 6px;
}

.schedule-day-head strong {
  display: block;
  color: var(--brand-strong);
  font-size: 17px;
  line-height: 1.2;
}

.schedule-day-head span {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(219, 227, 238, 0.86);
}

.schedule-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid rgba(219, 227, 238, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.schedule-item-active {
  position: relative;
  border-color: rgba(13, 110, 253, 0.48);
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.1)),
    #ffffff;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.16);
}

.schedule-item-active::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.schedule-item-active .schedule-marker {
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12), 0 10px 22px rgba(15, 23, 42, 0.14);
}

.schedule-item-replaced {
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.52);
  background: rgba(233, 236, 239, 0.72);
}

.schedule-item-replaced .schedule-marker {
  opacity: 0.55;
}

.schedule-item-replaced .schedule-item-title {
  color: #6b7280;
}

.schedule-item-body {
  flex: 1;
  min-width: 0;
}

.schedule-item:first-of-type {
  margin-top: 0;
}

.schedule-marker {
  width: 12px;
  height: 34px;
  border-radius: 999px;
  margin-top: 2px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.schedule-item-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
}

.schedule-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.schedule-time {
  background: #eef6ff;
  color: var(--brand-strong);
  border-color: rgba(53, 92, 125, 0.18);
}

.pill.replaced {
  background: #e9ecef;
  color: #495057;
  border: 1px dashed rgba(107, 114, 128, 0.48);
}

.pill.active-now {
  background: #dbeafe;
  color: var(--brand-strong);
  border: 1px solid rgba(13, 110, 253, 0.18);
}

.schedule-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.schedule-replaced-note {
  color: #6b7280 !important;
  font-style: italic;
}

.schedule-empty {
  margin-top: 6px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.schedule-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.schedule-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(219, 227, 238, 0.96);
}

.schedule-list-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.schedule-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-time-fields label {
  margin-top: 0;
}

.schedule-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.schedule-admin-actions .btn {
  flex: 1 1 170px;
  justify-content: center;
}

.schedule-inline-actions,
.schedule-inline-delete {
  margin-top: 10px;
}

.schedule-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.schedule-inline-actions form {
  margin: 0;
}

.schedule-inline-actions .btn,
.schedule-inline-delete .btn {
  min-height: 36px;
  padding: 8px 12px;
}

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

.admin-actions form {
  display: inline-flex;
  margin: 0;
}

.admin-actions .btn {
  width: auto;
  padding: 10px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-actions .btn.secondary { background: #f8fafc; }
.admin-actions .btn.danger { background: #fff0ec; }

.admin-student-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.admin-student-toolbar p {
  margin: 0;
}

.admin-student-list {
  display: grid;
  gap: 14px;
}

.admin-student-card {
  display: grid;
  gap: 14px;
}

.admin-student-summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.admin-student-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:17px;object-fit:cover;border:2px solid #fff;box-shadow:0 4px 14px rgba(51,65,85,.16)}
.admin-photo-field{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;margin-bottom:16px;padding:13px;border:1px solid #dbe3ea;border-radius:15px;background:#f8fafc}.admin-photo-field>img,.admin-photo-field>span{width:68px;height:68px;display:grid;place-items:center;border-radius:16px;object-fit:cover;background:#e8eafc;color:#4338ca;font-size:25px;font-weight:900}.admin-photo-field label{margin:0}.admin-photo-field small{display:block;margin-top:5px;color:#64748b;font-size:10px}

.admin-edit-panel {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-edit-panel > summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.admin-edit-panel > summary::-webkit-details-marker {
  display: none;
}

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

.form-grid label {
  margin-top: 10px;
}

.reset-pin-form {
  margin: -8px 0 0;
}

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

@media (min-width: 860px) {
  body { padding: 22px; }

  .app {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 44px);
    padding: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 227, 238, 0.82);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .app:has(.login) {
    display: block;
    max-width: 1120px;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.88));
  }

  .app:has(.login) > div {
    min-height: calc(100vh - 44px);
  }

  .login {
    min-height: calc(100vh - 44px);
    padding: 36px;
  }

  .login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: stretch;
    border: 1px solid rgba(219, 227, 238, 0.96);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(23, 32, 51, 0.16);
  }

  .login-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    margin: 0;
    padding: 42px;
    background:
      linear-gradient(135deg, rgba(53, 92, 125, 0.96), rgba(0, 166, 166, 0.82)),
      var(--brand);
    color: #ffffff;
  }

  .login-intro .brandmark {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: none;
  }

  .login-intro img.brandmark {
    background: #ffffff;
  }

  .login-intro h1 {
    max-width: 360px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.05;
  }

  .login-intro p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
  }

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

  .login-highlights span {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 900;
  }

  .login-schedule-slider {
    margin: 24px 0;
  }

  .login-current-schedule {
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
  }

  .login-current-schedule.next {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .login-current-schedule span {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
  }

  .login-current-schedule strong {
    color: #ffffff;
    font-size: 22px;
  }

  .login-current-schedule p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
  }

  .login-schedule-dots button {
    background: rgba(255, 255, 255, 0.36);
  }

  .login-schedule-dots button.active {
    background: #ffffff;
  }

  .login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 42px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }

  .login-card-head h2 {
    font-size: 24px;
  }

  .topbar {
    grid-column: 2;
    position: sticky;
    margin: 0;
    border-left: 1px solid rgba(219, 227, 238, 0.82);
  }

  .content {
    grid-column: 2;
    padding: 24px;
    min-width: 0;
  }

  .bottom-nav {
    position: sticky;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    padding: 96px 16px 18px;
    border-top: 0;
    border-right: 1px solid rgba(219, 227, 238, 0.88);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.9)),
      #f8fafc;
    overflow-y: auto;
  }

  .bottom-nav::before {
    content: "Kelas 1C";
    position: absolute;
    top: 22px;
    left: 18px;
    right: 18px;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding-left: 58px;
    color: var(--brand-strong);
    font-size: 18px;
    font-weight: 900;
    background:
      linear-gradient(135deg, rgba(0, 166, 166, 0.12), rgba(249, 115, 91, 0.08)),
      #ffffff;
    border: 1px solid rgba(219, 227, 238, 0.92);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  .bottom-nav::after {
    content: "1C";
    position: absolute;
    top: 31px;
    left: 30px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(53, 92, 125, 0.22);
  }

  .desktop-nav-item {
    position: relative;
    display: flex !important;
    flex: none;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    place-items: initial;
    align-content: initial;
    gap: 11px;
    text-align: left;
    width: 100%;
    font-size: 13px;
    font-weight: 900;
    color: #526174;
    text-decoration: none;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
    white-space: normal;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  .desktop-nav-item:hover {
    color: var(--brand-strong);
    background: #ffffff;
    border-color: rgba(219, 227, 238, 0.94);
    transform: translateX(2px);
    box-shadow: var(--shadow-soft);
  }

  .desktop-nav-item.active {
    color: var(--brand-strong);
    background: #ffffff;
    border-color: rgba(0, 166, 166, 0.2);
    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.1);
  }

  .desktop-nav-item.active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--warm));
  }

  .mobile-nav-item,
  .nav-menu-sheet {
    display: none !important;
  }

  .desktop-nav-item .icon {
    margin: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    border-radius: 13px;
    background: #eef3f8;
    color: var(--brand);
    font-size: 17px;
    text-align: center;
  }

  .desktop-nav-item.active .icon {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #ffffff;
  }

  .desktop-nav-item.cache-clear-button {
    margin-top: auto;
    color: var(--amber);
    background: #fffdf7;
    border-color: rgba(245, 158, 11, 0.18);
  }

  .desktop-nav-item.cache-clear-button .icon {
    color: var(--amber);
    background: #fff4db;
  }

  .home-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    max-width: 640px;
  }
}

@media (min-width: 1080px) {
  .content {
    padding: 28px 32px;
  }

  .home-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .students-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 16px 14px 14px;
  }

  .hero,
  .card,
  .form-card,
  .list-item {
    padding: 15px;
  }

  .hero h2 {
    font-size: 23px;
  }

  .va-status-card { grid-template-columns: auto minmax(0, 1fr); }
  .va-status-card > .pill { grid-column: 1 / -1; justify-self: start; }
  .va-sync-form .btn { width: 100%; }
  .va-steps { grid-template-columns: 1fr; }
  .hero-actions .hero-btn, .va-notice .actions .btn { width: 100%; }
  .admin-finance-hero-actions, .admin-finance-hero-actions form, .admin-finance-hero-actions .hero-btn, .admin-finance-hero-actions .finance-va-link { width: 100%; }
  .admin-finance-hero-actions .finance-va-link { justify-content: center; }
  .va-info-modal .modal-footer .btn, .va-info-modal .modal-footer form, .va-modal-sync .btn { width: 100%; }
  .spp-month-summary { grid-template-columns: 1fr; }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats.stats-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .parent-hero,
  .dashboard-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .child-card,
  .focus-card {
    padding: 15px;
  }

  .child-avatar {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }

  .parent-dashboard .child-card {
    align-items: flex-start;
    padding: 18px 15px 15px;
  }

  .parent-dashboard .child-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .parent-dashboard .child-card h2,
  .parent-dashboard .focus-card strong {
    font-size: 23px;
  }

  .parent-dashboard .insight-card {
    min-height: 118px;
  }

  .student-profile-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 20px;
  }

  .student-profile-card::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 6px;
  }

  .profile-photo-wrap {
    min-width: 0;
    padding-left: 0;
  }

  .student-profile-card .photo {
    width: 94px;
    height: 94px;
    border-radius: 24px;
  }

  .profile-kicker {
    margin: 0 auto;
  }

  .profile-badges,
  .profile-mini-grid {
    justify-content: center;
    width: 100%;
  }

  .profile-edit-panel {
    width: 100%;
    text-align: left;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions,
  .profile-actions .btn {
    width: 100%;
  }

  .profile-actions {
    align-items: stretch;
  }

  .profile-quick-actions form,
  .profile-quick-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .finance-card-head,
  .schedule-list-item,
  .list-item {
    grid-template-columns: 1fr;
  }

  .student-list-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .student-list-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .student-list-item .student-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .student-list-item .student-action .btn {
    width: 100%;
    justify-content: center;
  }

  .finance-card-head,
  .schedule-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-summary,
  .finance-filter,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .schedule-week-head {
    align-items: stretch;
  }

  .schedule-week-head > span {
    white-space: normal;
    text-align: center;
  }

  .schedule-date-filter {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "picker picker"
      "prev next"
      "submit today"
      "export export";
    padding: 10px;
  }

  .schedule-date-filter label {
    grid-column: auto;
  }

  .schedule-date-filter .btn,
  .today-chip,
  .schedule-export-chip {
    width: 100%;
  }

  .week-step {
    width: 100%;
  }

  .schedule-day {
    padding: 13px;
    border-radius: 18px;
  }

  .schedule-day-head {
    padding-left: 4px;
  }

  .schedule-day-head strong {
    font-size: 16px;
  }

  .schedule-item {
    padding: 11px;
    gap: 10px;
  }

  .schedule-item-title {
    font-size: 14px;
  }

  .schedule-time-fields {
    grid-template-columns: 1fr;
  }

  .schedule-admin-actions .btn,
  .schedule-inline-actions .btn,
  .schedule-inline-actions form,
  .schedule-inline-delete .btn {
    width: 100%;
    justify-content: center;
  }

  .dialog-card {
    padding: 15px;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions .btn,
  .load-more .btn {
    width: 100%;
  }

  .finance-card-head strong {
    white-space: normal;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }

  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions .btn,
  .admin-actions form {
    width: 100%;
  }

  .admin-actions .btn {
    justify-content: center;
  }

  .admin-student-toolbar,
  .admin-student-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .book-reader-head,
  .book-card,
  .book-subject-grid {
    grid-template-columns: 1fr;
  }

  .book-reader-head .btn {
    width: 100%;
    justify-content: center;
  }

  .book-frame {
    min-height: 74dvh;
  }

  .book-page-badge {
    width: 74px;
  }

  .book-title-row {
    display: grid;
  }

  .book-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stats.stats-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pin-boxes {
    gap: 6px;
  }

  .pin-boxes span {
    border-radius: 12px;
    font-size: 22px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .mobile-nav-item {
    font-size: 9px;
  }
}

/* Kas kelas */
.cash-hero{background:linear-gradient(135deg,#164e63,#0f766e);color:#fff}.cash-hero .profile-kicker,.cash-hero p{color:#d9f7f1}.cash-toolbar form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,210px) auto auto;gap:12px;align-items:end}.cash-toolbar label{margin:0}.cash-flow-jump{grid-column:1/-1;width:100%;min-height:54px;display:grid;grid-template-columns:40px minmax(0,1fr) 24px;align-items:center;gap:11px;padding:8px 12px;border:1px solid #78c9af;border-radius:14px;background:linear-gradient(135deg,#effcf6,#ecfeff);color:#075b43;text-decoration:none;box-shadow:0 5px 14px rgba(15,118,110,.1);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.cash-flow-jump:hover{color:#064e3b;border-color:#36a882;box-shadow:0 8px 20px rgba(15,118,110,.17);transform:translateY(-1px)}.cash-flow-jump-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#0f766e;color:#fff;font-size:21px;font-weight:900}.cash-flow-jump strong,.cash-flow-jump small{display:block;line-height:1.2}.cash-flow-jump strong{font-size:14px}.cash-flow-jump small{margin-top:3px;color:#52756a;font-size:11px;font-weight:600}.cash-flow-jump-arrow{justify-self:end;color:#0f766e;font-size:20px;font-weight:900}.cash-student-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.cash-student{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;margin:0;padding:14px;transition:.18s ease}.cash-student.is-paid{background:#effcf6;border-color:#a7e4c7}.cash-student-number{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#eef2ff;color:#355c7d;font-weight:800}.cash-student p{margin:3px 0 0;font-size:12px;color:#64748b}.cash-student form{margin:0}.cash-toggle{border:0;border-radius:999px;padding:10px 13px;background:#e8edf3;color:#334155;font-weight:800;white-space:nowrap}.cash-toggle.paid{background:#158765;color:#fff}.cash-table-wrap{overflow:auto}.cash-report table{width:100%;border-collapse:separate;border-spacing:0;min-width:920px}.cash-report th,.cash-report td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:center}.cash-report th:first-child,.cash-report td:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1}.cash-report td.paid{background:#dff7ea;color:#087455;font-weight:900}.cash-settings{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr);gap:24px}.cash-settings form{display:grid;gap:12px}.parent-cash-card{margin:18px 0}.parent-cash-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.cash-month-chips{display:grid;grid-template-columns:repeat(12,minmax(42px,1fr));gap:7px;margin:16px 0}.cash-month-chips span{display:grid;place-items:center;gap:2px;padding:9px 3px;border-radius:12px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:700}.cash-month-chips span b{font-size:15px}.cash-month-chips .paid{background:#dcfce7;color:#087455}.cash-month-chips .unpaid{background:#fff1f2;color:#be123c}.cash-payment-note{margin:0;padding:13px 15px;border-radius:14px;background:#fff8e8;color:#755215;font-size:13px;line-height:1.55}.cash-other-section{scroll-margin-top:18px;margin:26px 0}.cash-flow-heading{align-items:flex-end}.cash-flow-heading p{margin:4px 0 0;color:#64748b;font-size:13px}.cash-export-actions{display:grid;grid-template-columns:repeat(2,minmax(112px,1fr));gap:0;padding:4px;border:1px solid #b8d8ce;border-radius:15px;background:#eff8f5;box-shadow:0 5px 14px rgba(15,118,110,.08)}.cash-export-actions a{display:grid;grid-template-columns:27px 1fr;align-items:center;gap:7px;min-height:45px;padding:6px 10px;border-radius:11px;color:#0f5f4c;text-decoration:none;transition:.18s ease}.cash-export-actions a+a{border-left:1px solid #c8ded7;border-radius:0 11px 11px 0}.cash-export-actions a:hover{background:#fff;color:#064e3b;box-shadow:0 3px 10px rgba(15,118,110,.12)}.cash-export-actions a>span:first-child{font-size:19px;font-weight:900;text-align:center}.cash-export-actions strong,.cash-export-actions small{display:block;line-height:1.15}.cash-export-actions strong{font-size:12px}.cash-export-actions small{margin-top:3px;color:#678078;font-size:9px}.cash-other-stats{margin-bottom:16px}.cash-other-stats .stat{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:118px;background:#fff;border:1px solid #dbe6ea;color:#334155}.cash-other-stats .stat b{color:#0f766e;font-size:19px}.cash-other-stats .stat small{margin-top:auto;color:#64748b;font-size:11px;line-height:1.35}.cash-stat-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.cash-stat-label{font-size:12px;font-weight:800;color:#334155}.cash-info-button{flex:0 0 auto;width:25px;height:25px;display:grid;place-items:center;padding:0;border:1px solid #8ecdb9;border-radius:50%;background:#effcf6;color:#087455;font-family:Georgia,serif;font-size:14px;font-weight:800;line-height:1;cursor:pointer;transition:.18s ease}.cash-info-button:hover,.cash-info-button:focus-visible{background:#0f766e;color:#fff;border-color:#0f766e;transform:scale(1.06)}.cash-other-stats .cash-combined-balance{background:#effcf6;border-color:#8ed5bb}.cash-other-stats .cash-combined-balance.is-negative{background:#fff1f2;border-color:#f4a8b4}.cash-other-stats .cash-combined-balance.is-negative b{color:#be123c}.cash-info-dialog .dialog-card{max-width:460px}.cash-info-content{display:grid;grid-template-columns:42px 1fr;align-items:start;gap:13px;padding:16px;border:1px solid #cce5dc;border-radius:15px;background:#f2fbf7}.cash-info-content>span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#0f766e;color:#fff;font-family:Georgia,serif;font-size:22px;font-weight:800}.cash-info-content p{margin:0;color:#334155;line-height:1.65}
@media(max-width:1050px){.cash-toolbar form{grid-template-columns:minmax(0,1fr) minmax(150px,.55fr)}.cash-toolbar form>.btn{width:100%;justify-content:center}.cash-flow-jump{grid-column:1/-1}}
@media(max-width:800px){.cash-toolbar form,.cash-settings{grid-template-columns:1fr}.cash-student-list{grid-template-columns:1fr}.cash-month-chips{grid-template-columns:repeat(6,1fr)}}
@media(max-width:520px){.cash-student{grid-template-columns:42px 1fr}.cash-student form{grid-column:1/-1}.cash-toggle{width:100%}.parent-cash-head{align-items:flex-start;flex-direction:column}.cash-month-chips{grid-template-columns:repeat(4,1fr)}}

.cash-student-actions{display:grid;gap:6px}.cash-multi-button{border:0;background:transparent;color:#0f766e;font-size:12px;font-weight:800;padding:3px}.cash-month-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:16px 0}.cash-month-picker label{display:flex;align-items:center;gap:9px;margin:0;padding:11px;border:1px solid #dbe3ea;border-radius:14px;cursor:pointer}.cash-month-picker label:has(input:checked){background:#e7f8ef;border-color:#73cda4}.cash-month-picker input{width:19px;height:19px;margin:0;accent-color:#158765}.cash-month-picker span{display:grid}.cash-month-picker small{color:#64748b}.cash-month-picker .already-paid small{color:#087455}
.cash-report tfoot th,.cash-report tfoot td{font-weight:800;border-top:2px solid #bfd1ca;background:#f1faf6}.cash-report .cash-subtotal-row td{font-size:11px;white-space:nowrap;color:#285846}.cash-report .cash-total-row th{text-align:right;position:static;background:#d9f4e6;color:#075b43}.cash-report .cash-total-row td{background:#bde9d2;color:#064e3b;white-space:nowrap}
.cash-correction-note{padding:11px 13px;border-radius:12px;background:#fff7e6;border:1px solid #f3d49a;color:#7a5310;font-size:12px;line-height:1.5}
@media(max-width:520px){.cash-student-actions{grid-column:1/-1}.cash-student-actions form{grid-column:auto}.cash-month-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Pemasukan dan pengeluaran lain */
.other-transaction-hero{background:linear-gradient(135deg,#4338ca,#0f766e);color:#fff}.other-transaction-hero .profile-kicker,.other-transaction-hero p{color:#dceafe}.transaction-form{margin:18px 0}.transaction-form form{display:grid;gap:12px;margin-top:16px}.transaction-sign-check{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #b8ddd0;border-radius:14px;background:#effcf6}.transaction-sign-check input{width:20px;height:20px;margin:0;accent-color:#158765}.transaction-filter{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(160px,.7fr) auto auto;gap:12px;align-items:end}.transaction-filter label{margin:0}.transaction-list{display:grid;gap:12px}.transaction-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:start;margin:0}.transaction-item.is-income{border-left:4px solid #16a36a}.transaction-item.is-expense{border-left:4px solid #e27b45}.transaction-direction{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;font-size:22px;font-weight:900;background:#eef2ff;color:#4338ca}.is-income .transaction-direction{background:#dcfce7;color:#087455}.is-expense .transaction-direction{background:#fff1e8;color:#b45309}.transaction-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.transaction-title h3{margin:7px 0 0;font-size:17px}.transaction-amount{font-size:17px;white-space:nowrap}.is-income .transaction-amount{color:#087455}.is-expense .transaction-amount{color:#b45309}.transaction-main>p{margin:7px 0;color:#64748b;font-size:12px}.transaction-notes{margin:10px 0;padding:11px 13px;border-radius:12px;background:#f8fafc;color:#475569;font-size:13px}.transaction-evidence{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:10px}.transaction-evidence form,.transaction-delete{margin:0}.transaction-signed{padding:8px 11px;border-radius:999px;background:#dcfce7;color:#087455;font-size:12px;font-weight:800}
@media(max-width:760px){.transaction-filter{grid-template-columns:1fr 1fr}.transaction-item{grid-template-columns:44px minmax(0,1fr)}.transaction-delete{grid-column:1/-1}.transaction-delete .btn{width:100%}.transaction-title{display:grid}.transaction-amount{grid-row:1}}
@media(max-width:520px){.transaction-filter{grid-template-columns:1fr}.transaction-title{gap:8px}}

/* Pick Up */
.pickup-admin-hero{background:linear-gradient(135deg,#0f766e,#2563eb);color:#fff}.pickup-admin-hero .profile-kicker,.pickup-admin-hero p{color:#d9f7f1}.pickup-admin-form form{display:grid;gap:18px}.pickup-day-list{display:grid;gap:10px}.pickup-day-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1fr);gap:14px;align-items:center;padding:13px 15px;border:1px solid #dbe6ea;border-radius:15px;background:#f8fafc}.pickup-day-row label{margin:0}.pickup-day-toggle{display:flex;align-items:center;gap:10px}.pickup-day-toggle input{width:20px;height:20px;margin:0;accent-color:#0f766e}.pickup-parent-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:15px;align-items:center;margin:18px 0;border-color:#cbd5e1}.pickup-parent-card.is-enabled{background:linear-gradient(135deg,#effcf6,#eff6ff);border-color:#8ed5bb}.pickup-parent-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#e0f2fe;font-size:25px}.pickup-parent-card h2{margin:4px 0;font-size:18px}.pickup-parent-card p{margin:0;color:#64748b;font-size:13px}.pickup-info{display:grid;grid-template-columns:38px 1fr;gap:10px;padding:13px;border-radius:14px;background:#eff6ff;color:#334155}.pickup-info span{font-size:24px}.pickup-info p{margin:0;line-height:1.55}.pickup-dialog .notification-card.compact{margin:0;padding:13px;box-shadow:none}.pickup-dialog .dialog-card{display:grid;gap:13px}
@media(max-width:600px){.pickup-day-row,.pickup-parent-card{grid-template-columns:1fr}.pickup-parent-card .btn{width:100%}.pickup-day-row{gap:8px}}
@media(max-width:600px){.cash-flow-heading{align-items:stretch}.cash-export-actions{display:grid;grid-template-columns:1fr 1fr}.cash-export-actions .btn{justify-content:center}.cash-other-stats .stat{min-height:132px}}
.attendance-tracker{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:14px 18px;border:1px solid #cce4df;border-radius:16px;background:#f0faf8;color:#285f59}.attendance-tracker .btn{width:auto;flex:0 0 auto}.attendance-list{display:grid;gap:0}.attendance-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e8edf1}.attendance-row:last-child{border-bottom:0}.attendance-row p,.attendance-row small{margin:4px 0 0;color:#667784}.attendance-meta{display:flex;align-items:flex-end;gap:8px;flex-direction:column}.attendance-meta a{font-size:.88rem}.attendance-delete-form{margin:2px 0 0}.attendance-delete-button{padding:5px 10px;border:1px solid #f0b5b5;border-radius:9px;background:#fff5f5;color:#b42323;font-size:11px;font-weight:800;cursor:pointer;transition:.18s ease}.attendance-delete-button:hover,.attendance-delete-button:focus-visible{background:#b42323;border-color:#b42323;color:#fff}.attendance-confirm{margin-bottom:16px}[data-attendance-permit-form]{margin-top:16px}
@media(max-width:640px){.attendance-tracker,.attendance-row{align-items:stretch;flex-direction:column}.attendance-tracker .btn{width:100%}.attendance-meta{align-items:flex-start;flex-direction:row;justify-content:space-between}}
.attendance-adjust-page{width:min(100%,560px);margin:32px auto 0}.attendance-adjust-card{overflow:hidden;border:1px solid #d9e5e2;border-radius:28px;background:#fff;box-shadow:0 22px 55px rgba(29,72,68,.13)}.attendance-adjust-head{display:grid;grid-template-columns:58px minmax(0,1fr);gap:15px;align-items:center;padding:26px 26px 22px;background:linear-gradient(135deg,#eafaf5 0%,#eef5ff 100%);border-bottom:1px solid #dcebe7}.attendance-adjust-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:19px;background:linear-gradient(145deg,#0f8b72,#176b87);color:#fff;font-size:29px;font-weight:900;box-shadow:0 10px 23px rgba(15,139,114,.23)}.attendance-adjust-head .profile-kicker{color:#0f766e}.attendance-adjust-head h2{margin:4px 0 3px;font-size:25px;line-height:1.15;color:#183b42}.attendance-adjust-head p{margin:0;color:#60747b;font-size:14px;font-weight:700}.attendance-security-note{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center;margin:20px 24px 0;padding:12px 14px;border:1px solid #dce9e6;border-radius:14px;background:#f7fbfa;color:#526b69}.attendance-security-note span{font-size:18px;text-align:center}.attendance-security-note p{margin:0;font-size:12px;line-height:1.5}.attendance-adjust-card form{padding:22px 24px 26px}.attendance-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;border:0}.attendance-choice legend{grid-column:1/-1;margin:0 0 2px;padding:0;color:#334b52;font-size:13px;font-weight:800}.attendance-choice-button{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;min-height:82px;padding:13px;text-align:left;border:1.5px solid #d9e2e6;border-radius:17px;background:#fff;color:#344b52;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease}.attendance-choice-button:hover{transform:translateY(-1px);border-color:#9fcfc2}.attendance-choice-button.active{border-color:#29a183;background:#edfaf6;box-shadow:0 5px 14px rgba(15,139,114,.1)}.attendance-choice-button.permit.active{border-color:#e0a233;background:#fff8e8;box-shadow:0 5px 14px rgba(180,115,16,.1)}.attendance-choice-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e6f6f1;color:#0f8069;font-size:18px;font-weight:900}.attendance-choice-button.permit .attendance-choice-icon{background:#fff1cf;color:#a3650a}.attendance-choice-button strong,.attendance-choice-button small{display:block}.attendance-choice-button strong{font-size:13px;line-height:1.25}.attendance-choice-button small{margin-top:4px;color:#728188;font-size:10px;line-height:1.35}.attendance-adjust-panel{margin-top:18px;padding:18px;border:1px solid #dce7e5;border-radius:18px;background:#fbfdfd}.attendance-adjust-panel.permit{border-color:#efdfb9;background:#fffcf5}.attendance-adjust-panel label{margin:0}.attendance-adjust-panel label>span,.attendance-adjust-panel label>small{display:block}.attendance-adjust-panel label>span{color:#30474e;font-size:14px;font-weight:800}.attendance-adjust-panel label>small{margin:4px 0 10px;color:#718087;font-size:11px}.attendance-adjust-panel input,.attendance-adjust-panel textarea{background:#fff;border-color:#cbdcda}.attendance-adjust-panel input[type=time]{min-height:56px;font-size:20px;font-weight:800;letter-spacing:.04em;color:#174e51}.attendance-adjust-panel textarea{min-height:112px;resize:vertical;line-height:1.55}.attendance-submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:15px;min-height:51px;border-radius:14px}.attendance-submit.permit{background:linear-gradient(135deg,#c47a12,#e09b32);box-shadow:0 9px 18px rgba(180,115,16,.17)}.attendance-adjust-footnote{margin:14px 10px 0;text-align:center;color:#718087;font-size:11px}.attendance-adjust-panel[hidden]{display:none!important}
@media(max-width:600px){.attendance-adjust-page{margin:10px auto 0}.attendance-adjust-card{border-radius:22px}.attendance-adjust-head{grid-template-columns:50px minmax(0,1fr);padding:21px 18px 18px}.attendance-adjust-icon{width:50px;height:50px;border-radius:16px;font-size:24px}.attendance-adjust-head h2{font-size:21px}.attendance-security-note{margin:15px 16px 0}.attendance-adjust-card form{padding:18px 16px 21px}.attendance-choice{grid-template-columns:1fr}.attendance-choice-button{min-height:70px}.attendance-adjust-panel{padding:16px}}

/* Tabungan MadinaPay */
.savings-hero{background:linear-gradient(135deg,#065f46,#0f766e 55%,#0891b2);color:#fff}.savings-hero .profile-kicker,.savings-hero p,.savings-hero small{color:#d5f5ec}.savings-hero h2{font-size:31px}.savings-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 10px}.savings-hero-actions .hero-btn{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.4);color:#fff;text-decoration:none}.savings-report,.savings-history{margin:18px 0}.savings-table-wrap{overflow:auto}.savings-report table{min-width:920px}.savings-balance{color:#047857;font-weight:900;white-space:nowrap}.savings-password-alert{margin:18px 0;border-color:#f2c66d;background:#fff8e8}.savings-password-alert strong{color:#9a5d08}.savings-password-alert p{margin:6px 0 0;color:#745b35}.savings-sync{margin:18px 0}.savings-history-list{display:grid;gap:0}.savings-history-list article{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:13px;align-items:center;padding:14px 2px;border-bottom:1px solid #e7edf0}.savings-history-list article:last-child{border-bottom:0}.savings-transaction-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;font-size:21px;font-weight:900}.savings-transaction-icon.credit{background:#dcfce7;color:#047857}.savings-transaction-icon.debit{background:#fff1f2;color:#be123c}.savings-history-list strong,.savings-history-list p,.savings-history-list small{display:block}.savings-history-list p{margin:4px 0;color:#64748b;font-size:12px}.savings-history-list small{color:#64748b;font-size:10px}.savings-history-list article>b{font-size:14px;white-space:nowrap}.savings-history-list b.credit{color:#047857}.savings-history-list b.debit{color:#be123c}@media(max-width:600px){.savings-hero-actions{display:grid}.savings-hero-actions .btn{width:100%}.savings-history-list article{grid-template-columns:40px minmax(0,1fr)}.savings-history-list article>b{grid-column:2}.savings-transaction-icon{width:38px;height:38px}.savings-hero h2{font-size:26px}}

.savings-status-button{display:grid;justify-items:center;gap:4px;padding:3px;border:0;background:transparent;cursor:pointer}.savings-status-button:hover .pill,.savings-status-button:focus-visible .pill{box-shadow:0 0 0 3px rgba(15,118,110,.13)}.savings-status-button small{color:#64748b;font-size:9px}.savings-detail-dialog .dialog-card{max-width:650px}.savings-detail-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.savings-detail-summary>div{padding:14px;border:1px solid #cde5dc;border-radius:15px;background:#effaf6}.savings-detail-summary span,.savings-detail-summary strong{display:block}.savings-detail-summary span{color:#64748b;font-size:10px}.savings-detail-summary strong{margin-top:5px;color:#047857;font-size:15px}.savings-detail-notice{margin:12px 0;padding:12px 14px;border:1px solid #f2c66d;border-radius:13px;background:#fff8e8;color:#80540d;font-size:12px;line-height:1.5}.savings-history-list.modal-list{max-height:430px;overflow:auto;padding-right:5px}@media(max-width:520px){.savings-detail-summary{grid-template-columns:1fr}.savings-detail-dialog .dialog-card{padding:17px}.savings-history-list.modal-list{max-height:55vh}}

.savings-pagination{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #e7edf0}.savings-pagination>div{display:flex;justify-content:center;gap:5px}.savings-pagination a,.savings-pagination span{display:grid;place-items:center;min-height:34px;padding:6px 10px;border:1px solid #d7e3df;border-radius:10px;color:#0f766e;text-decoration:none;font-size:11px;font-weight:800}.savings-pagination a.active{border-color:#0f766e;background:#0f766e;color:#fff}.savings-pagination .disabled{color:#a0aab2;background:#f8fafc}.savings-page-info{margin:9px 0 0;text-align:center;color:#64748b;font-size:10px}@media(max-width:520px){.savings-pagination{grid-template-columns:1fr 1fr}.savings-pagination>div{grid-column:1/-1;grid-row:1}.savings-pagination>a,.savings-pagination>span{grid-row:2}.savings-pagination>a:last-child,.savings-pagination>span:last-child{grid-column:2}}

/* Papan peringkat */
.ranking-hero{background:linear-gradient(135deg,#6d28d9,#db2777);color:#fff}.ranking-hero .profile-kicker,.ranking-hero p{color:#f3e8ff}.ranking-create{margin:18px 0}.ranking-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.ranking-board{margin:0;padding:20px}.ranking-board-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}.ranking-board-head label{margin:0}.ranking-board-head label span{display:block;margin-bottom:7px;font-size:11px;font-weight:800;color:#64748b}.ranking-board-head input{font-size:18px;font-weight:800;color:#312e81}.ranking-count{margin-bottom:10px;padding:6px 10px;border-radius:999px;background:#f3e8ff;color:#6d28d9;font-size:11px;font-weight:800;white-space:nowrap}.ranking-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:16px 0 12px}.ranking-add-row .btn{white-space:nowrap}.ranking-list{display:grid;gap:9px;margin:0;padding:0;list-style:none;counter-reset:none}.ranking-list li{display:grid;grid-template-columns:34px 30px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:67px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:15px;background:#fff;box-shadow:0 3px 9px rgba(51,65,85,.05);transition:transform .15s ease,opacity .15s ease,border-color .15s ease}.ranking-list li:nth-child(1){border-color:#f0c94f;background:#fffbeb}.ranking-list li:nth-child(2){border-color:#bdc7d4;background:#f8fafc}.ranking-list li:nth-child(3){border-color:#d8a177;background:#fff7ed}.ranking-list li.is-dragging{opacity:.55;border-color:#8b5cf6;transform:scale(.985)}.ranking-position{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#ede9fe;color:#6d28d9;font-size:14px;font-weight:900}.ranking-list li:nth-child(1) .ranking-position{background:#fbbf24;color:#713f12}.ranking-list li:nth-child(2) .ranking-position{background:#cbd5e1;color:#334155}.ranking-list li:nth-child(3) .ranking-position{background:#d97706;color:#fff}.ranking-drag{padding:4px;border:0;background:transparent;color:#94a3b8;font-size:24px;line-height:1;cursor:grab}.ranking-drag:active{cursor:grabbing}.ranking-list strong,.ranking-list small{display:block}.ranking-list strong{color:#27364a;font-size:14px}.ranking-list small{overflow:hidden;margin-top:3px;color:#718096;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.ranking-row-actions{display:flex;gap:3px}.ranking-row-actions button{width:29px;height:29px;padding:0;border:1px solid #dbe3ea;border-radius:9px;background:#f8fafc;color:#475569;font-weight:900;cursor:pointer}.ranking-row-actions .remove{border-color:#fecaca;background:#fff1f2;color:#be123c}.ranking-empty{padding:25px 15px;text-align:center;border:1px dashed #cbd5e1;border-radius:15px;color:#64748b;font-size:12px}.ranking-actions{display:flex;justify-content:flex-end;margin-top:15px}.ranking-delete{margin:9px 0 0;text-align:right}.ranking-delete .btn{padding:7px 11px;font-size:11px}
.ranking-public-toggle{display:flex;align-items:center;gap:11px;margin:14px 0 0;padding:12px 14px;border:1px solid #c4b5fd;border-radius:14px;background:#f5f3ff;cursor:pointer}.ranking-public-toggle input{width:20px;height:20px;margin:0;accent-color:#7c3aed}.ranking-public-toggle span,.ranking-public-toggle strong,.ranking-public-toggle small{display:block}.ranking-public-toggle strong{color:#5b21b6;font-size:12px}.ranking-public-toggle small{margin-top:3px;color:#776b8d;font-size:10px}
.ranking-date-field{display:flex;align-items:center;gap:7px;margin:7px 0 0;color:#64748b;font-size:10px;font-weight:800}.ranking-date-field input{width:auto;min-height:32px;padding:4px 7px;border-radius:8px;background:#fff;font-size:11px}
.login-ranking-float{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;width:min(100%,940px);margin:18px auto 0;padding:0 16px 22px}.login-ranking-card{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;gap:11px;align-items:center;width:100%;padding:13px 14px;text-align:left;border:1px solid rgba(255,255,255,.7);border-radius:18px;background:linear-gradient(135deg,rgba(76,29,149,.96),rgba(190,24,93,.95));color:#fff;box-shadow:0 12px 28px rgba(76,29,149,.22);cursor:pointer;animation:rankingFloatIn .45s ease both}.login-ranking-trophy{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.16);font-size:25px}.login-ranking-card small,.login-ranking-card strong,.login-ranking-card em{display:block}.login-ranking-card small{color:#e9d5ff;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.login-ranking-card strong{overflow:hidden;margin:3px 0;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.login-ranking-card em{color:#fce7f3;font-size:10px;font-style:normal}.login-ranking-arrow{font-size:28px}.public-ranking-dialog .dialog-card{max-width:580px}.public-ranking-list{display:grid;gap:10px;margin:18px 0 0;padding:0;list-style:none}.public-ranking-list li{display:grid;grid-template-columns:35px 54px minmax(0,1fr);gap:12px;align-items:center;padding:11px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}.public-ranking-list li:nth-child(1){background:#fffbeb;border-color:#f1cc55}.public-ranking-list li:nth-child(2){background:#f8fafc;border-color:#cbd5e1}.public-ranking-list li:nth-child(3){background:#fff7ed;border-color:#dca579}.public-ranking-number{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:#ede9fe;color:#6d28d9;font-weight:900}.public-ranking-list img,.public-ranking-avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;object-fit:cover;background:#ede9fe;color:#6d28d9;font-size:20px;font-weight:900}.public-ranking-list strong,.public-ranking-list p,.public-ranking-list small{display:block}.public-ranking-list p{margin:3px 0;color:#64748b;font-size:11px}.public-ranking-list small{color:#8b5cf6;font-size:10px;font-weight:700}.parent-ranking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.parent-ranking-board{margin:0}.parent-ranking-board .section-head{align-items:flex-start}.parent-ranking-board .section-head h2{margin:3px 0 0}.parent-ranking-board .section-head>small{color:#64748b;font-size:10px}@keyframes rankingFloatIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}@media(max-width:800px){.parent-ranking-grid{grid-template-columns:1fr}}@media(max-width:700px){.login-ranking-float{grid-template-columns:1fr;width:100%;margin-top:12px;padding:0 12px 18px}.login-ranking-card{box-shadow:0 8px 20px rgba(76,29,149,.18)}.public-ranking-dialog .dialog-card{padding:18px}.public-ranking-list li{grid-template-columns:31px 46px minmax(0,1fr)}.public-ranking-list img,.public-ranking-avatar{width:44px;height:44px}}
@media(max-width:900px){.ranking-board-grid{grid-template-columns:1fr}}@media(max-width:520px){.ranking-board{padding:15px}.ranking-board-head{grid-template-columns:1fr}.ranking-count{justify-self:start;margin:0}.ranking-add-row{grid-template-columns:1fr}.ranking-add-row .btn{width:100%}.ranking-list li{grid-template-columns:31px 24px minmax(0,1fr)}.ranking-row-actions{grid-column:2/-1;justify-content:flex-end}.ranking-row-actions button{width:34px}.ranking-actions .btn{width:100%}}
.ranking-create-grid{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(240px,1.35fr);gap:12px}.ranking-create-grid label{margin:0}.ranking-entry-body{min-width:0}.championship-list li{align-items:start}.championship-fields{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:10px;padding:11px;border-radius:12px;background:#f8f7ff;border:1px solid #e9e5ff}.championship-fields label{margin:0;color:#5b5680;font-size:9px;font-weight:800}.championship-fields label:last-child{grid-column:1/-1}.championship-fields input{min-height:36px;margin-top:4px;padding:7px 9px;font-size:11px;background:#fff}.championship-fields input[type=file]{padding:6px}.championship-fields small{margin-top:4px!important;color:#0f766e!important;white-space:normal!important}
.achievement-world{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(360px,1.2fr);align-items:center;min-height:520px;margin:18px 0;padding:42px;overflow:hidden;border-radius:30px;background:radial-gradient(circle at 72% 45%,rgba(56,189,248,.22),transparent 34%),linear-gradient(135deg,#11184b 0%,#271058 50%,#071d3d 100%);color:#fff;box-shadow:0 28px 60px rgba(28,20,78,.24)}.achievement-world:before,.achievement-world:after{content:"";position:absolute;z-index:-1;border-radius:50%;background:#fff;box-shadow:110px 70px #fff,260px 20px #fff,410px 110px #fff,590px 40px #fff,730px 145px #fff}.achievement-world:before{width:2px;height:2px;top:45px;left:60px;opacity:.65}.achievement-world:after{width:1px;height:1px;right:80px;bottom:70px;opacity:.5}.world-copy{position:relative;z-index:3}.world-copy .profile-kicker{color:#67e8f9;letter-spacing:.14em}.world-copy h2{max-width:360px;margin:8px 0 12px;font-size:38px;line-height:1.05;color:#fff}.world-copy p{max-width:350px;margin:0;color:#cbd5ff;line-height:1.65}.world-controls{display:flex;align-items:center;gap:12px;margin-top:24px}.world-controls button{width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:18px;cursor:pointer}.world-controls button:hover{background:#fff;color:#312e81}.world-controls span{font-size:12px;color:#b9c3ec}.globe-stage{position:relative;min-height:430px;display:grid;place-items:center;perspective:900px}.globe{position:absolute;width:330px;aspect-ratio:1;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 33% 28%,#a5f3fc 0 3%,#22d3ee 9%,#1769aa 30%,#172554 68%,#080f2f 100%);box-shadow:inset -55px -30px 80px rgba(1,5,30,.7),inset 24px 10px 35px rgba(255,255,255,.18),0 0 75px rgba(34,211,238,.35);animation:globeHover 6s ease-in-out infinite}.globe:before{content:"";position:absolute;inset:9% 4%;border:18px dotted rgba(103,232,249,.22);border-radius:48% 52% 42% 58%;transform:rotate(-18deg)}.globe-grid{position:absolute;inset:0;border-radius:50%;background:repeating-linear-gradient(0deg,transparent 0 31px,rgba(255,255,255,.13) 32px 33px),repeating-linear-gradient(90deg,transparent 0 51px,rgba(255,255,255,.12) 52px 53px);animation:globeSpin 18s linear infinite}.globe-shine{position:absolute;inset:10% 48% 52% 12%;border-radius:50%;background:rgba(255,255,255,.26);filter:blur(15px)}.achievement-orbit{position:relative;z-index:2;width:100%;min-height:430px;display:grid;place-items:center}.achievement-float-card{position:absolute;width:min(92%,360px);display:grid;grid-template-columns:112px 1fr;gap:15px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.25);border-radius:23px;background:rgba(11,19,63,.82);backdrop-filter:blur(14px);box-shadow:0 20px 45px rgba(0,0,0,.32);opacity:0;transform:translate3d(65px,24px,-100px) rotateY(-12deg) scale(.88);pointer-events:none;transition:.65s cubic-bezier(.2,.8,.2,1)}.achievement-float-card.active{opacity:1;transform:translate3d(58px,0,45px) rotateY(-4deg);pointer-events:auto}.achievement-photo{height:142px;overflow:hidden;border-radius:16px;background:linear-gradient(145deg,#fbbf24,#f97316);display:grid;place-items:center}.achievement-photo img{width:100%;height:100%;object-fit:cover}.achievement-photo>span{font-size:42px;font-weight:900;color:#fff}.achievement-float-card small,.achievement-float-card strong,.achievement-float-card time{display:block}.achievement-float-card small{color:#67e8f9;font-size:9px;font-weight:900;text-transform:uppercase}.achievement-float-card h3{margin:4px 0 7px;color:#fff;font-size:22px}.achievement-float-card strong{color:#fde047;font-size:15px}.achievement-float-card p{margin:5px 0;color:#e0e7ff;font-size:12px;line-height:1.4}.achievement-float-card time{color:#a5b4fc;font-size:10px;font-weight:700}@keyframes globeSpin{to{transform:translateX(53px)}}@keyframes globeHover{50%{transform:translateY(-10px) rotate(2deg)}}
@media(max-width:800px){.ranking-create-grid{grid-template-columns:1fr}.achievement-world{grid-template-columns:1fr;padding:28px 22px}.world-copy{text-align:center}.world-copy h2,.world-copy p{margin-left:auto;margin-right:auto}.world-controls{justify-content:center}.globe-stage{min-height:410px}.achievement-float-card.active{transform:translate3d(0,35px,45px)}}@media(max-width:520px){.championship-fields{grid-template-columns:1fr}.championship-fields label:last-child{grid-column:auto}.achievement-world{min-height:720px;border-radius:23px}.world-copy h2{font-size:30px}.globe{width:270px}.achievement-float-card{grid-template-columns:86px 1fr}.achievement-photo{height:116px}.achievement-float-card h3{font-size:18px}}

/* Portal awal kelas */
.app:has(.login-portal){max-width:1440px;background:#f5f7ff}.app:has(.login-portal)>div{min-height:100vh}.login.login-portal{display:block;min-height:100vh;padding:0;background:radial-gradient(circle at 10% 8%,rgba(125,211,252,.3),transparent 25%),radial-gradient(circle at 90% 25%,rgba(251,191,36,.16),transparent 22%),#f7f9ff}.login-portal-shell{width:min(100%,1320px);margin:auto;padding:24px 34px 28px}.portal-brand{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.portal-brand-main{display:flex;align-items:center;gap:12px}.portal-brand-main img{width:52px;height:52px;padding:5px;border-radius:15px;background:#fff;object-fit:contain;box-shadow:0 8px 24px rgba(30,41,93,.12)}.portal-brand-main span,.portal-brand-main strong{display:block}.portal-brand-main span{color:#64748b;font-size:11px;font-weight:800}.portal-brand-main strong{margin-top:2px;color:#172554;font-size:17px}.portal-year{padding:8px 13px;border:1px solid #dfe5f4;border-radius:999px;background:#fff;color:#475569;font-size:11px;font-weight:900}.portal-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(350px,.7fr);min-height:500px;overflow:hidden;border:1px solid rgba(219,227,238,.8);border-radius:32px;background:#fff;box-shadow:0 28px 70px rgba(37,45,91,.15)}.portal-welcome{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;min-height:500px;padding:52px;overflow:hidden;background:linear-gradient(135deg,#263d89 0%,#3d4fc4 48%,#1679b6 100%);color:#fff}.portal-welcome:before{content:"";position:absolute;z-index:-1;width:380px;height:380px;right:-110px;top:-100px;border:65px solid rgba(255,255,255,.07);border-radius:50%}.portal-welcome:after{content:"";position:absolute;z-index:-1;width:220px;height:220px;left:-80px;bottom:-110px;border-radius:50%;background:rgba(45,212,191,.18)}.portal-kicker{display:block;color:#5eead4;font-size:10px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.portal-copy h1{max-width:580px;margin:10px 0 14px;color:#fff;font-size:54px;line-height:1;letter-spacing:-.035em}.portal-copy p{max-width:570px;margin:0;color:#dbeafe;font-size:16px;line-height:1.65}.portal-schedule{width:min(100%,520px);margin:26px 0 0}.portal-schedule .login-current-schedule{min-height:115px;padding:17px 19px;border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.13);box-shadow:none;backdrop-filter:blur(8px)}.portal-schedule .login-current-schedule.next{background:rgba(255,255,255,.09)}.portal-schedule .login-current-schedule span{margin-bottom:8px;background:rgba(94,234,212,.15);color:#99f6e4}.portal-schedule .login-current-schedule strong{color:#fff;font-size:21px}.portal-schedule .login-current-schedule p{margin:5px 0 0;color:#dbeafe}.portal-schedule .login-schedule-dots button{background:rgba(255,255,255,.35)}.portal-schedule .login-schedule-dots button.active{background:#fff}.portal-orbits span{position:absolute;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.1);color:#fff;font-weight:900;backdrop-filter:blur(5px);animation:portalFloat 5s ease-in-out infinite}.portal-orbits span:nth-child(1){width:50px;height:50px;right:8%;top:34%;color:#fde047;font-size:24px}.portal-orbits span:nth-child(2){width:62px;height:62px;right:23%;top:13%;transform:rotate(8deg)}.portal-orbits span:nth-child(3){width:58px;height:58px;right:7%;bottom:18%;animation-delay:-2s}.portal-orbits span:nth-child(4){width:55px;height:55px;right:29%;bottom:8%;animation-delay:-3s;font-size:23px}.portal-login-panel{position:relative;display:flex;flex-direction:column;justify-content:center;padding:42px 40px;background:#fff}.portal-login-icon{width:52px;height:52px;display:grid;place-items:center;margin-bottom:19px;border-radius:17px;background:linear-gradient(135deg,#eef2ff,#ecfeff);color:#3d4fc4;font-size:22px}.portal-login-panel .login-card-head h2{margin:8px 0 7px;color:#172554;font-size:29px}.portal-login-panel .login-card-head p{margin:0 0 24px;color:#64748b;font-size:12px;line-height:1.55}.portal-login-panel label{margin-top:13px;color:#334155;font-size:11px;font-weight:900}.portal-input{position:relative}.portal-input i{position:absolute;z-index:1;left:15px;top:50%;transform:translateY(-50%);color:#94a3b8}.portal-input input{padding-left:42px}.portal-login-panel input{border-color:#dce3f0;background:#f9fbff}.portal-login-panel input:focus{border-color:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.1)}.portal-login-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:49px;margin-top:22px;border-radius:14px;background:linear-gradient(135deg,#3d4fc4,#166eaa);box-shadow:0 10px 22px rgba(61,79,196,.22)}.portal-login-panel .help{margin:15px 0 0;text-align:center;font-size:11px}.portal-section{margin-top:24px;padding:27px 28px;border:1px solid #e1e6f1;border-radius:26px;background:#fff;box-shadow:0 14px 38px rgba(45,53,94,.08)}.portal-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:19px}.portal-section-head h2{margin:5px 0 0;color:#172554;font-size:25px}.portal-section-head>span{color:#64748b;font-size:10px;font-weight:800}.subject-ribbon{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.subject-chip{min-width:0;min-height:124px;padding:15px 10px;text-align:center;border:1px solid color-mix(in srgb,var(--subject-color) 22%,#e2e8f0);border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--subject-color) 9%,white),#fff);transition:transform .2s ease,box-shadow .2s ease}.subject-chip:hover{transform:translateY(-4px);box-shadow:0 12px 24px color-mix(in srgb,var(--subject-color) 15%,transparent)}.subject-chip span{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 11px;border-radius:15px;background:var(--subject-color);color:#fff;font-size:20px;box-shadow:0 8px 18px color-mix(in srgb,var(--subject-color) 26%,transparent)}.subject-chip strong{display:block;overflow:hidden;color:#334155;font-size:11px;line-height:1.35}.ranking-showcase{background:linear-gradient(135deg,#fffbeb,#fff 50%,#f5f3ff)}.ranking-showcase .portal-kicker{color:#a16207}.portal-ranking-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.portal-ranking-card{display:grid;grid-template-columns:52px minmax(0,1fr) 22px;gap:12px;align-items:center;width:100%;padding:15px;text-align:left;border:1px solid #e9d9a7;border-radius:19px;background:rgba(255,255,255,.9);color:#334155;cursor:pointer;box-shadow:0 8px 22px rgba(128,91,20,.07);transition:.2s ease}.portal-ranking-card:hover{transform:translateY(-3px);border-color:#e5b93f;box-shadow:0 13px 28px rgba(128,91,20,.13)}.portal-trophy{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#fef3c7,#fde68a);font-size:26px}.portal-ranking-card small,.portal-ranking-card strong,.portal-ranking-card em{display:block}.portal-ranking-card small{color:#a16207;font-size:8px;font-weight:900;text-transform:uppercase}.portal-ranking-card strong{overflow:hidden;margin:4px 0;color:#1e293b;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.portal-ranking-card em{overflow:hidden;color:#64748b;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.portal-ranking-card>i{color:#c08a14}.portal-footer{display:flex;justify-content:space-between;gap:20px;padding:24px 4px 4px;color:#7c879b;font-size:10px}@keyframes portalFloat{50%{translate:0 -9px;rotate:3deg}}
@media(max-width:1050px){.portal-main{grid-template-columns:1fr 360px}.portal-welcome{padding:40px}.portal-copy h1{font-size:46px}.subject-ribbon{grid-template-columns:repeat(4,minmax(0,1fr))}.portal-ranking-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.login-portal-shell{padding:16px}.portal-brand{margin-bottom:14px}.portal-brand-main span{display:none}.portal-brand-main strong{font-size:14px}.portal-year{font-size:9px}.portal-main{grid-template-columns:1fr;border-radius:24px}.portal-welcome{min-height:400px;padding:31px 24px}.portal-copy h1{font-size:39px}.portal-copy p{font-size:14px}.portal-orbits span:nth-child(2),.portal-orbits span:nth-child(4){display:none}.portal-login-panel{padding:31px 24px}.portal-section{padding:22px 18px;border-radius:22px}.subject-ribbon{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px}.subject-chip{flex:0 0 126px;scroll-snap-align:start}.portal-ranking-grid{grid-template-columns:1fr}.portal-section-head{align-items:flex-start;flex-direction:column}.portal-section-head>span{display:none}.portal-footer{flex-direction:column;text-align:center;gap:5px}}
@media(max-width:420px){.login-portal-shell{padding:11px}.portal-brand-main img{width:43px;height:43px}.portal-welcome{min-height:370px}.portal-copy h1{font-size:34px}.portal-login-panel .login-card-head h2{font-size:25px}.portal-orbits span:nth-child(1){top:38%;right:5%}.portal-orbits span:nth-child(3){bottom:7%}.portal-ranking-card{grid-template-columns:46px minmax(0,1fr) 16px}.portal-trophy{width:44px;height:44px}}
.portal-home-link{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:8px 13px;border:1px solid #cfd8ee;border-radius:999px;background:#eef2ff;color:#3155b7;text-decoration:none;font-size:11px;font-weight:900;transition:.2s}.portal-home-link:hover{border-color:#8095d7;background:#e2e8ff;transform:translateY(-1px)}.portal-home-link+.portal-year{margin-left:8px}@media(max-width:600px){.portal-home-link{padding:8px 10px;font-size:0}.portal-home-link i{font-size:12px}.portal-home-link+.portal-year{margin-left:5px}}
.teacher-hero{background:linear-gradient(135deg,#075985,#2563eb);color:#fff}.teacher-hero .profile-kicker,.teacher-hero p{color:#dbeafe}.teacher-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.teacher-admin-card{margin:0}.teacher-photo-preview{width:86px;height:86px;display:grid;place-items:center;margin-bottom:16px;overflow:hidden;border:4px solid #dbeafe;border-radius:24px;background:#eff6ff;color:#2563eb;font-size:34px;font-weight:900}.teacher-photo-preview img{width:100%;height:100%;object-fit:cover}@media(max-width:700px){.teacher-admin-grid{grid-template-columns:1fr}}

.absence-manager header{display:flex;justify-content:space-between;gap:16px;align-items:center}.absence-manager h2{margin:5px 0}.absence-manager header p{color:#64748b;font-size:12px}.absence-date{display:flex;align-items:end;gap:12px;margin:20px 0}.absence-date label{max-width:210px}.absence-tools{display:grid;grid-template-columns:1fr 120px 1fr auto;align-items:end;gap:10px;padding:16px;border-radius:14px;background:#f3f6fa}.absence-tools label{font-size:11px}.absence-select-all{display:flex;align-items:center;gap:9px;padding:17px 0;font-size:12px}.absence-select-all span{margin-left:auto;color:#556b81}.absence-manager input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;accent-color:#327b70;flex:0 0 18px}.absence-roster{display:grid;gap:8px}.absence-entry{display:grid;grid-template-columns:minmax(180px,1fr) 115px minmax(180px,1.5fr);gap:12px;align-items:center;padding:12px;border:1px solid #dde4ec;border-radius:12px;background:#fff}.absence-entry[hidden]{display:none}.absence-entry.is-selected{border-color:#76ad9e;background:#f3faf7}.absence-student{display:flex;gap:10px;align-items:center;margin:0}.absence-number{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#e9eff5;color:#4b6479;font-size:11px;flex-shrink:0}.absence-student strong,.absence-student small,.absence-student em{display:block}.absence-student strong{font-size:13px}.absence-student small{color:#68798a;font-size:9px;margin-top:2px}.absence-student em{font-size:9px;font-style:normal;color:#8b653d;margin-top:3px}.absence-kind,.absence-note{margin:0}.absence-kind>span,.absence-note>span{display:block;font-size:10px;margin-bottom:4px;color:#68798a}.absence-save{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.absence-save small{color:#64748b;font-size:10px;max-width:400px}.absence-save button:disabled{opacity:.45;cursor:default}@media(max-width:760px){.absence-tools{grid-template-columns:1fr 1fr}.absence-entry{grid-template-columns:1fr 100px}.absence-note{grid-column:1/-1}.absence-save{align-items:stretch;flex-direction:column}.absence-manager header{align-items:start}.absence-date{flex-wrap:wrap}}

.rich-editor{border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#fff;margin:8px 0 16px}.rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#f1f5f9}.rich-toolbar button{border:1px solid #cbd5e1;border-radius:6px;background:white;color:#243b53;padding:6px 9px;cursor:pointer}.rich-input{min-height:180px;max-height:480px;overflow:auto;padding:14px;outline-offset:-3px}.rich-content{overflow-wrap:anywhere;line-height:1.65}.rich-content ul,.rich-content ol{padding-left:24px}.rich-content a{text-decoration:underline}.rich-content p{margin:0 0 10px}
