:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef4f8;
  --text: #17212f;
  --muted: #5f6f82;
  --line: #d7e0ea;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --danger: #b42318;
  --success: #067647;
  --warning: #b54708;
  --shadow: 0 18px 55px rgba(23, 33, 47, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.navlink {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.navlink:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language label {
  color: var(--muted);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-dropdown,
.app-menu {
  position: relative;
}

.language-select,
.language-option,
.menu-button,
.menu-item {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  padding: 0 12px;
}

.language-select:hover,
.language-option:hover,
.menu-button:hover,
.menu-item:hover {
  background: #f8fbff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.language-select:focus-visible,
.language-option:focus-visible,
.menu-button:focus-visible,
.menu-item:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.language-menu,
.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.language-option,
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  text-align: left;
  padding: 0 10px;
  text-decoration: none;
}

.language-option[aria-pressed="true"],
.menu-item[aria-current="page"] {
  background: #ecfdf3;
  color: var(--primary-strong);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  padding: 0 12px;
}

.menu-item.danger {
  color: var(--danger);
}

.menu-item-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.menu-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.menu-separator {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.flag-button {
  display: inline-grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.flag-button:hover {
  background: #f8fbff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.flag-button[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.flag-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.panel h2,
.panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
}

input:disabled,
select:disabled {
  border-color: #d0d5dd;
  background: #eef2f6;
  color: #667085;
  cursor: not-allowed;
  opacity: 1;
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  outline: 3px solid rgba(180, 35, 24, 0.14);
}

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

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

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
  background: var(--primary-strong);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.button.secondary:hover:not(:disabled) {
  border-color: var(--primary);
  background: #f8fbff;
  color: var(--primary-strong);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button.danger:hover:not(:disabled) {
  background: #912018;
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.2);
}

.button.is-loading {
  opacity: 0.78;
}

.button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

.button.secondary.is-loading::before {
  border-color: #d0d5dd;
  border-top-color: currentColor;
}

.button-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

.button.compact {
  min-height: 38px;
  padding: 8px 12px;
}

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

.status {
  min-height: 44px;
  margin-top: 14px;
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 700;
}

.status.success {
  background: #dcfae6;
  color: var(--success);
}

.status.error {
  background: #fee4e2;
  color: var(--danger);
}

.status.warning {
  background: #fef0c7;
  color: var(--warning);
}

.school-session {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.school-session-email {
  display: grid;
  width: 100%;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.school-session .button {
  min-width: 160px;
}

.qr-stage {
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  text-align: center;
}

.qr-card {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.qr-card img {
  width: min(360px, 86vw);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.muted {
  color: var(--muted);
}

.student-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.auth-shell {
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
}

.student-login-stack {
  display: grid;
  width: min(540px, 100%);
  gap: 18px;
  justify-items: center;
}

.school-image-slot {
  display: grid;
  width: min(340px, 78vw);
  min-height: 190px;
  place-items: center;
}

.school-image-slot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.auth-panel {
  display: grid;
  width: min(540px, 100%);
  gap: 18px;
  justify-items: center;
  padding: 28px;
}

.auth-loading {
  display: grid;
  width: min(480px, 100%);
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.auth-loading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.auth-loading p {
  margin: 0;
  color: var(--muted);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d9efe7;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

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

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 6px;
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.tab-button:hover {
  color: var(--primary-strong);
  transform: translateY(-1px);
}

.tab-button[aria-pressed="true"] {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 1px 6px rgba(23, 33, 47, 0.12);
}

.auth-view {
  --auth-control-width: min(420px, 100%);
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
}

.auth-view .field,
.auth-view .auth-actions,
.auth-view > .button {
  width: var(--auth-control-width);
}

.auth-panel label {
  font-weight: 500;
}

.remember-device {
  display: flex;
  width: var(--auth-control-width);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: -4px;
}

.remember-device input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.auth-actions {
  display: grid;
  gap: 12px;
  width: var(--auth-control-width);
  margin-top: 8px;
}

.auth-actions .button {
  width: 100%;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-separator span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-separator strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-login-toggle {
  min-height: 46px;
  background: var(--primary);
  color: #fff;
}

.admin-login-toggle:hover:not(:disabled) {
  background: var(--primary-strong);
  color: #fff;
}

.admin-login-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-submit {
  min-height: 48px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

.magic-link-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.magic-link-button:hover {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.magic-link-button:disabled {
  cursor: wait;
  opacity: 0.88;
  transform: none;
}

.magic-link-button:disabled:hover {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

.magic-link-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.magic-link-button.is-loading .magic-wand {
  display: none;
}

.magic-link-button.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

.magic-wand {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.magic-wand-stick {
  stroke: var(--primary-strong);
}

.magic-wand-tip,
.magic-sparkle {
  stroke: #2563eb;
}

.access-denied-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.access-denied-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.access-denied-card h1 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.dashboard-grid {
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1.08fr);
}

.dashboard-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-menu {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.admin-menu-group {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-menu-group span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-menu-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-menu-button:hover {
  background: var(--panel-soft);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

.admin-menu-button[aria-pressed="true"] {
  border-color: rgba(15, 118, 110, 0.24);
  background: #dcfae6;
  color: var(--primary-strong);
}

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

.admin-login-panel {
  width: min(720px, 100%);
  margin: 0 auto;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

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

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

.summary-card span {
  color: var(--muted);
  font-weight: 800;
}

.summary-card strong {
  font-size: 2rem;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.admin-toolbar {
  margin-bottom: 14px;
}

.admin-list {
  display: grid;
  max-height: 620px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.compact-list {
  max-height: 520px;
}

.admin-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.admin-item[data-student-id] {
  cursor: pointer;
}

.admin-item[data-student-id]:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.08);
}

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

.admin-item-head,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-item-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 6px;
}

.mini-row {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-row strong {
  color: var(--text);
  text-align: right;
}

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

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

.subscription-card {
  display: grid;
  width: 100%;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.subscription-card:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.1);
  transform: translateY(-1px);
}

.subscription-card[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.subscription-card.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.subscription-card small {
  color: var(--primary-strong);
  font-weight: 800;
}

.subscription-card.detailed {
  cursor: pointer;
}

.subscription-card.detailed strong {
  font-size: 1rem;
}

.account-lines {
  display: grid;
  gap: 6px;
}

.account-lines p {
  margin: 0;
}

.subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.subscription-row strong {
  color: var(--text);
  text-align: right;
}

.badge,
.availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 6px 9px;
  font-weight: 900;
}

.badge.success,
.availability.success {
  background: #dcfae6;
  color: var(--success);
}

.badge.danger,
.availability.danger {
  background: #fee4e2;
  color: var(--danger);
}

.availability {
  width: 100%;
  margin-top: 2px;
}

.empty-state {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.empty-state .button {
  width: fit-content;
  text-decoration: none;
}

.countdown {
  font-size: 1.05rem;
  font-weight: 900;
}

.subscription-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subscription-details span {
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.entitlement {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.entitlement strong {
  display: block;
  margin-bottom: 4px;
}

.scanner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background: #0b1220;
}

.scanner video {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 20%;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.result {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-soft);
}

.result.approved {
  background: #dcfae6;
  color: var(--success);
}

.result.rejected {
  background: #fee4e2;
  color: var(--danger);
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(3px);
}

.modal {
  display: grid;
  width: min(460px, 100%);
  gap: 14px;
  justify-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.modal-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.modal.approved .modal-icon {
  background: var(--success);
}

.modal.rejected .modal-icon {
  background: var(--danger);
}

.modal h2 {
  margin: 0;
  font-size: 1.55rem;
}

.modal-body {
  display: grid;
  gap: 8px;
  width: 100%;
  color: var(--muted);
  font-weight: 700;
}

.modal-body strong {
  color: var(--text);
  font-size: 1.05rem;
}

.modal-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.confirm-modal .modal-body {
  text-align: left;
}

.confirm-modal .modal-body p {
  margin: 0;
  text-align: center;
}

.confirm-field {
  margin: 4px 0 0;
}

.modal-actions {
  justify-content: center;
  margin-top: 0;
}

.hidden {
  display: none !important;
}

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

  .admin-login-grid,
  .admin-summary-grid,
  .admin-layout,
  .admin-columns,
  .admin-form-grid,
  .inline-control {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 18px;
  }
}
