/* Mustaqil Ta'lim — Design System 2026 */

:root {
  --brand: #1A6DB5;
  --brand-dark: #0E4A85;
  --brand-light: #E8F2FA;
  --brand-muted: #4A8FC4;
  --brand-soft: rgba(26, 109, 181, 0.08);

  --grey-0: #FFFFFF;
  --grey-5: #F4F7FA;
  --grey-10: #EAEFF4;
  --grey-20: #D8E0E8;
  --grey-30: #C1CCD8;
  --grey-40: #8B9AAB;
  --grey-50: #64748B;
  --grey-60: #475569;
  --grey-70: #334155;
  --grey-80: #1E293B;
  --grey-90: #0F172A;

  --success: #059669;
  --success-soft: #ECFDF5;
  --warning: #D97706;
  --warning-soft: #FFFBEB;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);

  --header-h: 4rem;
  --sidebar-w: 16rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--grey-5);
  color: var(--grey-90);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.app-authenticated {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(26, 109, 181, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 74, 133, 0.04), transparent 50%),
    var(--grey-5);
}

/* Sticky footer: kontent kam bo'lsa ham footer viewport pastida */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: margin 0.3s var(--ease);
}

.app-shell-main {
  flex: 1 0 auto;
  width: 100%;
}

.app-shell > footer {
  flex-shrink: 0;
  margin-top: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Layout ——— */
.content-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Teacher panel: to'liq kenglik (yarim-bo'sh layout yo'q) */
.content-container.page-full {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .content-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .content-container.page-full {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .content-container.page-full {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.page-shell {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .page-shell {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
}

.page-header {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.page-header-text {
  min-width: 0;
  flex: 1 1 16rem;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--grey-90);
  line-height: 1.25;
}

.page-subtitle {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--grey-50);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--grey-40);
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--grey-30);
}

/* Tabs */
.panel-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--grey-20);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.panel-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-50);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.panel-tab:hover {
  color: var(--grey-80);
}

.panel-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Form grid — to'liq kenglik, 2 ustun */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .form-span-2 {
    grid-column: 1 / -1;
  }
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-60);
  margin-bottom: 0.35rem;
}

.form-field .errorlist {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--danger);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.form-actions.form-span-2 {
  grid-column: 1 / -1;
}

/* Panel sections */
.panel-card {
  background: var(--grey-0);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--grey-20);
  background: var(--grey-5);
}

.panel-card-body {
  padding: 1.25rem;
}

.panel-card-body.flush {
  padding: 0;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  color: var(--grey-60);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--grey-5);
  color: var(--grey-90);
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .split-panels {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--grey-50);
}

.empty-state .stat-icon {
  margin: 0 auto 0.75rem;
}

/* ——— Typography helpers ——— */
.text-xsmall-regular { font-size: 0.625rem; line-height: 1rem; font-weight: 400; }
.text-small-regular { font-size: 0.75rem; line-height: 1.25rem; font-weight: 400; }
.text-small-semi { font-size: 0.75rem; line-height: 1.25rem; font-weight: 600; }
.text-base-regular { font-size: 0.875rem; line-height: 1.5rem; font-weight: 400; }
.text-base-semi { font-size: 0.875rem; line-height: 1.5rem; font-weight: 600; }
.text-large-regular { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.text-large-semi { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.text-xl-regular { font-size: 1.5rem; line-height: 2rem; font-weight: 400; }
.text-xl-semi { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.text-2xl-semi { font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
.text-3xl-semi { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.025em; }

/* ——— Buttons ——— */
.btn-primary,
.btn-secondary,
.contrast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 1px 2px rgba(14, 74, 133, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-muted) 0%, var(--brand) 100%);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--grey-0);
  color: var(--grey-80);
  border: 1px solid var(--grey-20);
}

.btn-secondary:hover {
  background: var(--grey-5);
  border-color: var(--grey-30);
}

.contrast-btn {
  border: 1px solid var(--grey-90);
  background: transparent;
  color: var(--grey-90);
  border-radius: 9999px;
}

.contrast-btn:hover {
  background: var(--grey-90);
  color: var(--grey-0);
}

/* ——— Cards ——— */
.card {
  background: var(--grey-0);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

@media (min-width: 768px) {
  .card {
    padding: 1.5rem;
  }
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card {
  background: var(--grey-0);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

a.stat-card:hover,
.stat-card.interactive:hover {
  border-color: var(--brand-muted);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand);
}

.stat-card .stat-icon.success {
  background: var(--success-soft);
  color: var(--success);
}

.stat-card .stat-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.stat-card .stat-icon.muted {
  background: var(--grey-10);
  color: var(--grey-50);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--grey-90);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey-50);
  margin-bottom: 0.25rem;
}

/* ——— Inputs ——— */
.medusa-input {
  position: relative;
  width: 100%;
}

.medusa-input input {
  width: 100%;
  padding: 1.1rem 1rem 0.35rem;
  height: 3.25rem;
  background: var(--grey-0);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--grey-90);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.medusa-input input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.medusa-input input:focus ~ label,
.medusa-input input:not(:placeholder-shown) ~ label {
  transform: translateY(-0.55rem);
  font-size: 0.625rem;
  color: var(--brand);
  font-weight: 600;
}

.medusa-input label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--grey-50);
  font-size: 0.875rem;
  pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease);
}

.field-control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--grey-0);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--grey-90);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field-control:hover {
  background: var(--grey-5);
}

.field-control:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--grey-0);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ——— Badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(5, 150, 105, 0.2);
}

.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(217, 119, 6, 0.2);
}

.badge-neutral {
  background: var(--grey-10);
  color: var(--grey-60);
  border-color: var(--grey-20);
}

/* ——— Tables / mobile lists ——— */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.data-table {
  min-width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--grey-5);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-50);
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--grey-20);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 0.15s var(--ease);
}

.data-table tbody tr:hover {
  background: var(--grey-5);
}

/* Desktop table / mobile cards */
.desktop-table {
  display: none;
}

.mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .desktop-table {
    display: block;
  }

  .mobile-cards {
    display: none;
  }
}

.task-card-mobile {
  display: block;
  padding: 1rem;
  background: var(--grey-5);
  border: 1px solid var(--grey-20);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

a.task-card-mobile:hover,
.task-card-mobile:hover {
  border-color: var(--brand-muted);
  background: var(--grey-0);
}

.task-card-mobile .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--grey-50);
}

/* ——— Filter bar ——— */
.filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}

@media (min-width: 640px) {
  .filter-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .filter-form.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-form.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .filter-form.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
}

.filter-actions .btn-primary,
.filter-actions .btn-secondary {
  flex: 1;
}

@media (min-width: 1024px) {
  .filter-actions .btn-primary,
  .filter-actions .btn-secondary {
    flex: none;
    width: 100%;
  }
}

/* ——— Sidebar ——— */
#sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--grey-30) transparent;
}

#sidebar::-webkit-scrollbar {
  width: 5px;
}

#sidebar::-webkit-scrollbar-thumb {
  background: var(--grey-30);
  border-radius: 999px;
}

.sidebar-nav-item {
  position: relative;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.sidebar-nav-item:hover {
  background-color: var(--brand-soft);
  color: var(--brand-dark);
}

.sidebar-nav-item.active {
  background-color: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
}

.sidebar-nav-item i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
}

@media (max-width: 1023px) {
  #sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  #sidebar.open {
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  #sidebar-toggle,
  #nav-menu-btn {
    display: none !important;
  }

  #sidebar-overlay {
    display: none !important;
  }
}

/* ——— Mobile nav FAB ——— */
#sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(14, 74, 133, 0.35);
  z-index: 50;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

#sidebar-toggle:hover {
  transform: scale(1.05);
}

#sidebar-toggle:active {
  transform: scale(0.97);
}

/* ——— Toast ——— */
@keyframes slide-in-right {
  from { transform: translateX(1.5rem); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(1.5rem); opacity: 0; }
}

.animate-slide-in-right {
  animation: slide-in-right 0.35s var(--ease);
}

.message-toast {
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  #messages-container {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }
}

/* ——— Login ——— */
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(26, 109, 181, 0.5), transparent 55%),
    linear-gradient(180deg, #0B3A66 0%, #1A6DB5 26%, #E8F2FA 26.05%, #F4F7FA 100%);
}

@media (min-width: 768px) {
  .login-page {
    background:
      radial-gradient(ellipse 50% 80% at 0% 50%, rgba(26, 109, 181, 0.35), transparent 55%),
      linear-gradient(105deg, #0B3A66 0%, #1A6DB5 38%, #F4F7FA 38.05%, #F4F7FA 100%);
  }
}

.login-card {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: login-rise 0.55s var(--ease);
}

@media (min-width: 640px) {
  .login-card {
    padding: 2.5rem 2rem;
  }
}

@keyframes login-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 1.125rem;
  object-fit: contain;
  border-radius: 50%;
  animation: logo-in 0.55s var(--ease) both;
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.login-brand .brand-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--grey-90);
  line-height: 1.2;
}

.login-brand .brand-department {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.4;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.login-brand .brand-tag {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--grey-50);
  line-height: 1.45;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Empty state ——— */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--grey-30);
  margin-bottom: 1rem;
}

/* ——— Info callout ——— */
.callout {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  border: 1px solid rgba(26, 109, 181, 0.15);
  font-size: 0.8125rem;
  color: var(--grey-70);
  line-height: 1.55;
}

.callout strong {
  color: var(--brand-dark);
}

/* ——— Header glass ——— */
.app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-20);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Safe area for mobile FAB */
.safe-fab {
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
}
