:root {
  --bg: #f1efe8;
  --bg-strong: #e8e3d7;
  --panel: rgba(255, 252, 247, 0.94);
  --panel-strong: #fffdf9;
  --ink: #17212b;
  --muted: #64707a;
  --line: rgba(23, 33, 43, 0.1);
  --line-strong: rgba(23, 33, 43, 0.18);
  --accent: #2b5568;
  --accent-soft: rgba(43, 85, 104, 0.12);
  --accent-2: #9f6f2f;
  --accent-3: #6b3f43;
  --success: #2f7550;
  --warning: #9f6f2f;
  --danger: #a14a43;
  --shadow: 0 24px 70px rgba(52, 45, 31, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(43, 85, 104, 0.15), transparent 24%),
    radial-gradient(circle at top right, rgba(159, 111, 47, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
}

h1,
h2,
h3,
h4 {
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(241, 239, 232, 0.88);
  backdrop-filter: blur(18px);
}

.welcome-card {
  width: min(1040px, 100%);
  padding: 46px;
  border-radius: 34px;
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-card h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.8vw, 74px);
  line-height: 0.95;
}

.welcome-card p {
  margin-top: 16px;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 30px;
}

.welcome-panel,
.panel,
.stat-card,
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.welcome-panel {
  padding: 24px;
}

.welcome-panel h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.feature-list,
.list,
.timeline {
  display: grid;
  gap: 10px;
}

.feature-item,
.list-item,
.timeline-item,
.schedule-entry,
.callout-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.welcome-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.btn,
.welcome-btn {
  border-radius: 14px;
  padding: 14px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.welcome-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.welcome-btn.primary {
  background: linear-gradient(135deg, var(--accent), #4c6f7e);
  color: #fff;
  box-shadow: 0 14px 28px rgba(43, 85, 104, 0.22);
}

.btn-secondary,
.welcome-btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-danger {
  background: rgba(161, 74, 67, 0.12);
  color: var(--danger);
  border: 1px solid rgba(161, 74, 67, 0.18);
}

.btn-small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.app-shell {
  display: none;
  min-height: 100vh;
}

.app-shell.active {
  display: flex;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 300px;
  padding: 24px 18px 20px;
  overflow-y: auto;
  background: rgba(255, 253, 249, 0.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.sidebar-header {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(43, 85, 104, 0.14), rgba(159, 111, 47, 0.12)),
    var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.sidebar-header h2 {
  margin-top: 10px;
  font-size: 29px;
}

.sidebar-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-title {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}

.nav-item:hover {
  background: rgba(43, 85, 104, 0.06);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(43, 85, 104, 0.14), rgba(159, 111, 47, 0.12));
  border-color: rgba(43, 85, 104, 0.16);
  color: var(--accent);
  font-weight: 700;
}

.nav-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,253,249,0.96) 24%);
}

.sidebar-footer .btn {
  width: 100%;
  margin-top: 10px;
}

.save-status {
  margin-top: 10px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.main {
  margin-left: 300px;
  width: calc(100% - 300px);
  padding: 32px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-header {
  margin-bottom: 20px;
}

.page-header.compact h1 {
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 0.98;
}

.page-header p,
.mini-note,
.lead,
.callout-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-card,
.panel,
.stat-card {
  padding: 22px;
}

.hero-card.hero-academic {
  background:
    linear-gradient(135deg, rgba(43, 85, 104, 0.12), rgba(159, 111, 47, 0.11)),
    var(--panel);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.dashboard-hero .hero-title {
  font-size: clamp(26px, 3vw, 42px);
}

.dashboard-hero .hero-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.dashboard-hero .hero-aside {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-hero .mini-stat-value {
  font-size: clamp(21px, 2.3vw, 30px);
}

.dashboard-panel {
  padding: 18px;
}

.dashboard-panel .panel-header {
  margin-bottom: 12px;
}

.timeline.compact,
.list.compact {
  gap: 8px;
}

.timeline.compact .timeline-item,
.list.compact .list-item {
  padding: 12px 14px;
}

.dashboard-metrics .stat-card {
  padding: 18px;
}

.hero-title {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

.hero-title span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

.hero-meta,
.tag-row,
.action-row,
.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 18px;
}

.hero-aside {
  display: grid;
  gap: 14px;
}

.mini-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--line);
}

.mini-stat-label,
.stat-label,
.course-code,
.course-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-stat-value,
.stat-value {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
}

.mini-stat-sub,
.stat-sub,
.course-card-meta,
.timeline-meta,
.schedule-entry small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pill,
.chip,
.status,
.course-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill,
.chip,
.status.soft,
.course-swatch {
  background: #fff;
  border: 1px solid var(--line);
}

.status.yes {
  background: rgba(47, 117, 80, 0.12);
  border: 1px solid rgba(47, 117, 80, 0.18);
  color: var(--success);
}

.status.no {
  background: rgba(161, 74, 67, 0.12);
  border: 1px solid rgba(161, 74, 67, 0.18);
  color: var(--danger);
}

.status.pending {
  background: rgba(159, 111, 47, 0.12);
  border: 1px solid rgba(159, 111, 47, 0.18);
  color: var(--warning);
}

.cards-4,
.cards-5,
.grid-2,
.field-grid,
.course-grid,
.schedule-grid,
.schedule-preview {
  display: grid;
  gap: 18px;
}

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

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

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

.field-grid .field {
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-inline {
  min-width: 220px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.list-item.stacked {
  align-items: center;
}

.list-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.timeline-item.warning {
  border-color: rgba(159, 111, 47, 0.2);
}

.timeline-item.danger {
  border-color: rgba(161, 74, 67, 0.2);
}

.timeline-title {
  font-weight: 800;
}

.timeline-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.progress-shell {
  width: 100%;
  height: 12px;
  background: rgba(23, 33, 43, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.62);
}

.empty-tight {
  padding: 14px;
}

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

.course-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,250,242,0.88) 100%);
}

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

.course-card h4 {
  margin-top: 6px;
  font-size: 26px;
}

.course-card-notes {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.mini-grid div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
}

.mini-grid strong {
  display: block;
  font-size: 21px;
}

.mini-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.tone-slate {
  box-shadow: inset 0 0 0 1px rgba(52, 74, 92, 0.05);
}

.tone-navy {
  background: linear-gradient(180deg, rgba(240, 245, 250, 0.96), rgba(255, 252, 247, 0.9));
}

.tone-forest {
  background: linear-gradient(180deg, rgba(241, 247, 242, 0.96), rgba(255, 252, 247, 0.9));
}

.tone-burgundy {
  background: linear-gradient(180deg, rgba(248, 241, 241, 0.96), rgba(255, 252, 247, 0.9));
}

.tone-teal {
  background: linear-gradient(180deg, rgba(239, 248, 247, 0.96), rgba(255, 252, 247, 0.9));
}

.tone-gold {
  background: linear-gradient(180deg, rgba(249, 246, 239, 0.96), rgba(255, 252, 247, 0.9));
}

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

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

.schedule-day {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
}

.schedule-day.compact {
  padding: 14px;
}

.schedule-day-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.schedule-entry {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.schedule-entry-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.callout-card strong {
  display: block;
  font-size: 15px;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(23, 33, 43, 0.08);
  font-family: Consolas, monospace;
  font-size: 0.95em;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-width: 220px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

@media (max-width: 1320px) {
  .cards-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .cards-4,
  .course-grid,
  .schedule-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-hero .hero-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell.active {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 22px;
  }

  .welcome-grid,
  .grid-2,
  .field-grid,
  .cards-5,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .welcome-card {
    padding: 28px;
  }

  .cards-4,
  .course-grid,
  .schedule-preview,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .list-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .timeline-side {
    justify-items: start;
    text-align: left;
  }
}


/* Installable browser PWA additions */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

.mobile-topbar,
.mobile-drawer,
.mobile-drawer-scrim,
.mobile-tabbar {
  display: none;
}

.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  align-items: center;
  gap: 10px;
  min-height: calc(68px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-title {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.mobile-title strong,
.mobile-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-title span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-topbar .btn,
.mobile-drawer .btn {
  min-width: 0;
  padding: 10px 12px;
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-tab-btn {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 800;
}

.mobile-tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(43, 85, 104, 0.3);
}

.mobile-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(23, 37, 31, 0.38);
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 39;
  width: min(390px, 92vw);
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(18px + var(--safe-top)) 16px calc(18px + var(--safe-bottom));
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(23, 37, 31, 0.18);
}

.mobile-drawer-header,
.mobile-drawer-actions {
  display: grid;
  gap: 10px;
}

.mobile-drawer-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 14px;
}

.mobile-drawer-actions {
  margin-bottom: 14px;
}

.app-shell.drawer-open .mobile-drawer,
.app-shell.drawer-open .mobile-drawer-scrim {
  display: block;
}

@media (pointer: coarse), (max-width: 980px) {
  html,
  body {
    height: 100% !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.drawer-open) {
    position: static !important;
    overflow-y: hidden !important;
  }

  .app-shell {
    width: 100%;
    max-width: 100%;
  }

  .main,
  .page-stack,
  .page.active {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .welcome-screen {
    position: fixed;
    inset: 0;
    min-height: 0;
    height: 100dvh !important;
    align-items: flex-start;
    padding: calc(18px + var(--safe-top)) 14px calc(18px + var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .welcome-card {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 980px) {
  .app-shell.active {
    display: block;
    position: fixed !important;
    inset: 0 !important;
    width: 100%;
    max-width: 100%;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0;
    padding-top: calc(74px + var(--safe-top));
    padding-bottom: calc(78px + var(--safe-bottom));
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .mobile-topbar {
    display: flex;
  }

  .mobile-tabbar {
    display: grid;
  }

  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .welcome-grid,
  .today-hero,
  .today-visual-grid,
  .grid-2,
  .grid-3,
  .cards-3,
  .cards-4,
  .field-grid,
  .field-grid.three,
  .mobile-drawer-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel,
  .stat-card,
  .mini-card,
  .med-card,
  .welcome-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .page-header h1 {
    font-size: 34px;
    line-height: 1;
  }

  .panel-header,
  .list-item,
  .med-header,
  .action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .table-wrap {
    overflow-x: auto;
    max-width: 100%;
  }
}


.mobile-drawer {
  background: var(--panel-strong, #fffdf9) !important;
  border-left: 1px solid var(--line-strong, rgba(23, 33, 43, 0.18));
  box-shadow: -22px 0 54px rgba(23, 33, 43, 0.28);
}

.mobile-drawer-scrim {
  background: rgba(23, 33, 43, 0.48);
  backdrop-filter: blur(2px);
}


@media (display-mode: standalone) and (min-width: 981px) {
  html,
  body {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
  }

  body:not(.drawer-open) {
    overflow-y: auto !important;
  }

  .app-shell.active {
    display: flex;
    position: static !important;
    inset: auto !important;
    width: 100%;
    min-height: 100vh;
    height: auto !important;
    max-height: none !important;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible !important;
  }

  .main {
    margin-left: 300px;
    width: calc(100% - 300px);
    padding: 32px;
    overflow: visible !important;
  }

  .sidebar {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
  }

  .mobile-topbar,
  .mobile-tabbar {
    display: none !important;
  }
}
