:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e6eaf2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hind Siliguri", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }
.public-bg { min-height: 100vh; background: linear-gradient(135deg, #eef5ff 0%, #f8fafc 48%, #eefdf7 100%); }
.registration-shell { max-width: 1120px; min-height: 100vh; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: 1fr 460px; gap: 44px; align-items: center; }
.registration-copy h1 { font-size: 40px; line-height: 1.14; margin: 8px 0 18px; color: #000; }
.registration-copy p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.class-overview {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
}
.class-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
}
.class-overview h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.22;
  color: #0f172a;
}
.class-overview p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #000;
}
.class-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.class-topics li {
  position: relative;
  min-height: 42px;
  padding: 10px 12px 10px 38px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 14px;
  background: #fff;
  color: #1e293b;
  font-weight: 700;
  line-height: 1.35;
}
.class-topics li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.mentor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .1);
}
.mentor-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 3px solid #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
}
.mentor-card strong,
.mentor-card span {
  display: block;
}
.mentor-card strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}
.mentor-card span {
  margin-top: 3px;
  color: #64748b;
  font-weight: 700;
}
.registration-copy > p:not(.eyebrow) {
  color: #000;
}
.eyebrow { color: var(--primary) !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ref-badge { display: inline-flex; padding: 10px 14px; border-radius: 999px; background: #e0f2fe; color: #075985; font-weight: 700; }
.registration-card, .auth-box { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; backdrop-filter: blur(12px); }
.auth-box { width: min(440px, calc(100% - 32px)); margin: 9vh auto; }
.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #344054; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fff; color: var(--ink); outline: none; transition: .18s ease; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.ghost { background: #eef2ff; color: #1e3a8a; }
.btn.danger { background: #fee2e2; color: #991b1b; }
.btn.full { width: 100%; }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.danger, .danger-text { background: #fee2e2; color: #991b1b; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 30; }
.modal-backdrop.active { display: flex; }
.success-modal { width: min(520px, 100%); background: #fff; border-radius: 22px; padding: 34px; text-align: center; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-size: 38px; margin: 0 auto 12px; font-weight: 900; }
.progress-modal { overflow: hidden; }
.loading-icon {
  animation: softPulse 1.2s ease-in-out infinite;
}
.cute-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  margin-top: 22px;
}
.cute-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #22c55e, #f59e0b);
  animation: fillProgress 4.5s linear forwards;
}
@keyframes fillProgress {
  to { width: 100%; }
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, .24); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
}
.admin-layout { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #111827; color: #e5e7eb; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.brand { color: #fff; font-size: 20px; font-weight: 900; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a { border-radius: 12px; padding: 12px 14px; color: #cbd5e1; font-weight: 700; }
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.partner-link { margin-top: auto; display: grid; gap: 8px; }
.partner-link small { color: #93c5fd; }
.partner-link input { background: #0f172a; color: #e5e7eb; border-color: #334155; }
.admin-main { min-width: 0; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar h1 { margin: 0; font-size: 24px; }
.topbar p { margin: 3px 0 0; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.user-chip small { color: var(--muted); text-transform: capitalize; }
.content { padding: 28px; }
.grid { display: grid; gap: 18px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(15,23,42,.05); padding: 20px; }
.card span { color: var(--muted); font-weight: 700; }
.card strong { display: block; font-size: 32px; margin-top: 8px; }
.two-col { grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters input, .filters select { min-width: 170px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 840px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #475467; background: #f8fafc; font-size: 13px; text-transform: uppercase; }
tr:hover td { background: #fbfdff; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; background: #eef2ff; color: #3730a3; white-space: nowrap; }
.badge.service-taken { background: #dcfce7; color: #166534; }
.badge.invalid { background: #fee2e2; color: #991b1b; }
.badge.pending-follow-up { background: #fef3c7; color: #92400e; }
.badge.class-joined, .badge.whatsapp-group-added { background: #e0f2fe; color: #075985; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination { display: flex; gap: 8px; margin-top: 16px; }
.pagination a { padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; }
.pagination a.active { background: var(--primary); color: #fff; }
.note-list { display: grid; gap: 10px; }
.note { border-left: 4px solid var(--primary); background: #f8fafc; padding: 12px; border-radius: 10px; }
.invoice { max-width: 860px; margin: 0 auto; background: #fff; padding: 42px; border-radius: 18px; border: 1px solid var(--line); }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.invoice-items {
  margin-top: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.invoice-table {
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.invoice-table th {
  padding: 15px 18px;
  background: #0f172a;
  color: #fff;
  border-bottom: 0;
  font-size: 12px;
  letter-spacing: .06em;
}
.invoice-table td {
  padding: 20px 18px;
  border-bottom: 0;
  background: #fff;
}
.invoice-table td strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}
.invoice-table td span {
  display: block;
  color: #64748b;
  line-height: 1.6;
}
.invoice-table th:nth-child(2),
.invoice-table td:nth-child(2) {
  width: 70px;
  text-align: center;
}
.invoice-table th:nth-child(3),
.invoice-table th:nth-child(4),
.invoice-table td:nth-child(3),
.invoice-table td:nth-child(4) {
  width: 145px;
  text-align: right;
}
.invoice-total {
  width: min(340px, 100%);
  margin: 24px 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
}
.invoice-total div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
}
.invoice-total div + div {
  border-top: 1px solid #cbd5e1;
  background: #0f766e;
  color: #fff;
}
.invoice-total span {
  color: inherit;
  font-weight: 700;
}
.invoice-total strong {
  font-size: 18px;
}
.icon-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
@media print { .sidebar, .topbar, .no-print { display: none !important; } .admin-layout { display: block; } .content { padding: 0; } .invoice { border: 0; box-shadow: none; } }
@media (max-width: 980px) {
  .registration-shell, .admin-layout, .stats, .two-col { grid-template-columns: 1fr; }
  .registration-copy h1 { font-size: 30px; }
  .class-topics { grid-template-columns: 1fr; }
  .class-overview h2 { font-size: 25px; }
  .mentor-card { width: 100%; }
  .sidebar { position: fixed; z-index: 20; transform: translateX(-100%); transition: .2s ease; width: 270px; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .icon-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px; }
}

/* Refreshed premium admin UI */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #cbd5e1;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --sidebar-bg: #0b1220;
  --sidebar-panel: rgba(255,255,255,.07);
  --shadow: 0 20px 55px rgba(17, 24, 39, .08);
}
.admin-body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .12), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}
.public-bg {
  background:
    linear-gradient(115deg, rgba(15, 118, 110, .12), transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #eef6f4 100%);
}
.registration-card, .auth-box {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, .62);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .11);
}
.registration-copy h1 {
  color: #000;
  max-width: 650px;
}
.eyebrow { color: var(--primary) !important; }
.admin-layout { grid-template-columns: 286px 1fr; }
.sidebar {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .1), transparent 28%),
    var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 22px 18px;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--sidebar-panel);
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #f59e0b);
  box-shadow: 0 12px 28px rgba(20, 184, 166, .22);
}
.brand svg, .sidebar nav svg, .icon-btn svg, .avatar-icon svg, .sidebar-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark svg { width: 22px; height: 22px; color: #fff; }
.sidebar nav { gap: 6px; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #aebdd2;
  font-weight: 760;
  border: 1px solid transparent;
}
.sidebar a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(2px);
}
.sidebar a svg { color: #7dd3fc; }
.partner-link {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.partner-link input {
  border-radius: 12px;
  background: rgba(15, 23, 42, .85);
}
.topbar {
  height: 86px;
  margin: 18px 22px 0;
  padding: 0 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .06);
}
.topbar h1 {
  font-size: 26px;
  letter-spacing: 0;
}
.content { padding: 22px; }
.card, .panel, .table-wrap {
  border-radius: 20px;
  border-color: rgba(148, 163, 184, .55);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}
.panel h2 {
  margin-top: 0;
  font-size: 18px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 16px;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(15, 118, 110, .08);
}
.stat-card span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}
.stat-card strong {
  font-size: 28px;
  letter-spacing: 0;
}
.stat-icon, .btn-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #ecfdf5;
  color: var(--primary);
}
.stat-icon::before, .btn-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  margin-right: 7px;
}
.users, .user { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M16 11a4 4 0 1 0-8 0M4 20a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.calendar { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 3v3M17 3v3M4 8h16M5 5h14a1 1 0 0 1 1 1v14H4V6a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E"); }
.trend { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 17 6-6 4 4 6-8M15 7h5v5'/%3E%3C/svg%3E"); }
.chart { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 19V5M4 19h16M8 16v-5M13 16V8M18 16v-3'/%3E%3C/svg%3E"); }
.chat { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 5h14v10H8l-3 4V5Z'/%3E%3C/svg%3E"); }
.check { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m5 13 4 4L19 7'/%3E%3C/svg%3E"); }
.award { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM9 14l-1 7 4-2 4 2-1-7'/%3E%3C/svg%3E"); }
.percent { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m19 5-14 14M7 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM17 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E"); }
.clock { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM12 7v5l3 2'/%3E%3C/svg%3E"); }
.alert-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 9v4M12 17h.01M10.3 4.8 2.8 18a2 2 0 0 0 1.7 3h15a2 2 0 0 0 1.7-3L13.7 4.8a2 2 0 0 0-3.4 0Z'/%3E%3C/svg%3E"); }
.plus { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.btn {
  gap: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .12);
}
.btn.primary {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}
.btn.primary:hover { background: linear-gradient(135deg, #115e59, #0f766e); }
.btn.ghost {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.danger {
  border: 1px solid #fecaca;
  box-shadow: none;
}
input, select, textarea {
  border-radius: 14px;
  background: #fbfdff;
}
.table-wrap { background: #fff; }
th {
  background: #f1f5f9;
  color: #334155;
  letter-spacing: .03em;
}
td { color: #1f2937; }
tr:hover td { background: #f8fbfb; }
.badge {
  border: 1px solid currentColor;
  background: #f8fafc;
}
.user-chip {
  border-radius: 16px;
  padding: 9px 12px;
}
.avatar-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: #ccfbf1;
}
.icon-btn {
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
.sidebar-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 16px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.sidebar-overlay {
  display: none;
}
@media (max-width: 980px) {
  .admin-layout { grid-template-columns: 1fr; }
  .topbar {
    min-height: 114px;
    height: auto;
    margin: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 14px;
    align-items: center;
  }
  .topbar > div:first-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 4px;
  }
  .topbar h1 { font-size: 24px; }
  .user-chip {
    grid-column: 2;
    justify-self: end;
    max-width: 100%;
  }
  .sidebar {
    width: 286px;
    z-index: 40;
    padding-top: 70px;
    box-shadow: 24px 0 60px rgba(15, 23, 42, .32);
  }
  .sidebar-close { display: grid; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(15, 23, 42, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
