:root {
  --app-pink: #fb2a84;
  --app-purple: #8f39ef;
  --app-blue: #1667f2;
  --app-teal: #19a7c9;
  --app-green: #34b970;
  --app-yellow: #f6b72a;
  --app-bg: #f7f7fc;
  --app-surface: #ffffff;
  --app-soft: #f8f6ff;
  --app-border: rgba(24, 31, 54, .08);
  --app-shadow: 0 18px 50px rgba(36, 42, 70, .08);
  --nav-bg: rgba(255, 255, 255, .94);
  --text-strong: #15182f;
  --text-soft: #777f93;
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --app-bg: #0d1727;
  --app-surface: #142238;
  --app-soft: #192941;
  --app-border: rgba(235, 241, 255, .09);
  --app-shadow: 0 18px 54px rgba(0, 0, 0, .26);
  --nav-bg: rgba(20, 34, 56, .94);
  --text-strong: #f6f8ff;
  --text-soft: #a6afc2;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-strong);
  background: var(--app-bg);
}

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

button,
input {
  font: inherit;
}

.dashboard-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--app-bg);
}

.dashboard-main {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 1.13rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand > span:last-child span {
  color: var(--app-blue);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 28px;
  color: var(--app-pink);
}

.brand-mark i {
  position: absolute;
  font-size: 2.25rem;
  line-height: 1;
}

.brand-mark span,
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 3px solid var(--app-purple);
  border-radius: 50%;
  background: var(--app-surface);
}

.brand-mark span {
  left: 9px;
  bottom: 2px;
}

.brand-mark::before {
  left: 17px;
  bottom: 7px;
}

.brand-mark::after {
  right: 7px;
  bottom: 2px;
  border-color: var(--app-blue);
}

.desktop-sidebar {
  display: none;
}

.sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 22px;
  background: var(--app-surface);
  border-right: 1px solid var(--app-border);
}

.sidebar-brand {
  margin-bottom: 42px;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 750;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--app-pink);
  background: color-mix(in srgb, var(--app-pink) 10%, transparent);
}

.sidebar-nav a:hover {
  transform: translateX(2px);
}

.sidebar-nav i {
  font-size: 1.15rem;
}

.sidebar-nav strong {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--app-pink);
  font-size: .72rem;
}

.profile-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--text-strong);
  background: transparent;
  text-align: left;
}

.profile-card:hover {
  background: var(--app-soft);
}

.profile-card img,
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card img {
  width: 42px;
  height: 42px;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong {
  font-size: .88rem;
}

.profile-card small {
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 650;
}

.app-offcanvas {
  --bs-offcanvas-width: min(86vw, 315px);
  background: var(--app-surface);
  color: var(--text-strong);
}

.app-offcanvas .offcanvas-header {
  padding: 24px 22px 14px;
}

.app-offcanvas .offcanvas-body {
  padding: 16px 18px 24px;
}

.mobile-dashboard,
.mobile-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.mobile-screen {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--app-surface);
}

.mobile-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 20px;
  scrollbar-width: none;
}

.mobile-content::-webkit-scrollbar {
  display: none;
}

.status-bar,
.mobile-topbar,
.top-actions,
.stat-title,
.section-heading,
.assignment-footer,
.bottom-nav,
.bottom-nav a,
.desktop-header,
.desktop-actions,
.desktop-stat-card,
.card-heading,
.calendar-header,
.schedule-toolbar {
  display: flex;
  align-items: center;
}

.status-bar {
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: .85rem;
  font-weight: 750;
}

.status-icons {
  display: flex;
  gap: 5px;
  font-size: .86rem;
}

.mobile-topbar {
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 26px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-strong);
  background: transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: var(--app-soft);
}

.icon-btn i {
  font-size: 1.22rem;
  line-height: 1;
}

.top-actions {
  gap: 2px;
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--app-pink);
  font-size: .62rem;
  font-weight: 850;
  border: 2px solid var(--app-surface);
}

.hero-copy {
  margin-bottom: 22px;
}

.hero-copy .greeting {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.2;
}

.hero-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: .91rem;
  font-weight: 550;
}

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

.stat-card {
  min-width: 0;
  border-radius: 6px;
  padding: 14px 10px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.stat-title {
  gap: 6px;
  margin-bottom: 14px;
  font-size: .67rem;
  font-weight: 800;
  white-space: nowrap;
}

.stat-title i {
  font-size: .92rem;
}

.stat-title span {
  min-width: 0;
}

.stat-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-strong);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 850;
}

.stat-card small {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 720;
}

.stat-events {
  color: var(--app-pink);
  background: linear-gradient(135deg, rgba(251, 42, 132, .13), rgba(251, 42, 132, .04));
}

.stat-assignments {
  color: var(--app-blue);
  background: linear-gradient(135deg, rgba(22, 103, 242, .13), rgba(22, 103, 242, .04));
}

.stat-documents {
  color: var(--app-purple);
  background: linear-gradient(135deg, rgba(143, 57, 239, .13), rgba(143, 57, 239, .04));
}

.content-section {
  margin-bottom: 26px;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: .96rem;
  font-weight: 850;
}

.section-heading a {
  color: var(--app-purple);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 20px;
}

.week-strip button {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 0;
  border: 0;
  color: var(--text-strong);
  background: transparent;
}

.week-strip span {
  color: var(--text-soft);
  font-size: .64rem;
  font-weight: 800;
}

.week-strip strong {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .96rem;
  line-height: 1;
  font-weight: 850;
}

.week-strip .active strong {
  color: #fff;
  background: linear-gradient(135deg, var(--app-pink), var(--app-purple), var(--app-blue));
  box-shadow: 0 10px 22px rgba(143, 57, 239, .32);
}

.event-list {
  display: grid;
  gap: 15px;
}

.event-row {
  display: grid;
  grid-template-columns: 52px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  font-size: .87rem;
}

.event-row time,
.event-row strong {
  color: var(--text-strong);
  font-weight: 800;
}

.event-row small {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 700;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-pink {
  background: var(--app-pink);
}

.dot-blue {
  background: var(--app-blue);
}

.dot-purple {
  background: var(--app-purple);
}

.dot-yellow {
  background: var(--app-yellow);
}

.content-card {
  margin: 0 0 26px;
  padding: 16px;
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.assignment-card .section-heading {
  margin-bottom: 12px;
}

.assignment-card p {
  margin: 0 0 2px;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 700;
}

.assignment-card h3,
.news-card h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 850;
}

.assignment-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.avatar-stack {
  display: flex;
  min-width: 116px;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--app-surface);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}

.avatar-stack img + img {
  margin-left: -5px;
}

.scheduled-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--app-green);
  background: color-mix(in srgb, var(--app-green) 14%, transparent);
  font-size: .75rem;
  font-weight: 850;
  white-space: nowrap;
}

.news-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.news-card img {
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: 8px;
  object-fit: cover;
}

.news-card p {
  margin: 5px 0 8px;
  color: var(--text-soft);
  font-size: .79rem;
  line-height: 1.35;
  font-weight: 650;
}

.news-card time {
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 750;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 30;
  flex: 0 0 auto;
  justify-content: space-around;
  min-height: 74px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--app-border);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 54px;
  color: var(--text-soft);
  font-size: .67rem;
  font-weight: 750;
  transition: color .18s ease, transform .18s ease;
}

.bottom-nav i {
  font-size: 1.14rem;
  line-height: 1;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--app-pink);
}

.desktop-content {
  max-width: 1780px;
  margin: 0 auto;
  padding: 30px 34px 34px;
}

.desktop-header {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.desktop-header h1 {
  margin: 0 0 5px;
  font-size: 1.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.desktop-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: .98rem;
  font-weight: 650;
}

.desktop-actions {
  gap: 14px;
}

.search-box {
  width: min(320px, 28vw);
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--app-surface);
  box-shadow: 0 10px 34px rgba(48, 54, 89, .04);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-strong);
  background: transparent;
  font-size: .9rem;
}

.search-box input::placeholder {
  color: color-mix(in srgb, var(--text-soft) 72%, transparent);
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(270px, .95fr) minmax(300px, 1fr) minmax(330px, 1.08fr) minmax(280px, .92fr);
  gap: 20px;
  align-items: start;
}

.desktop-stats {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.desktop-stat-card,
.dash-card {
  background: var(--app-surface);
  border: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
  border-radius: 8px;
  box-shadow: var(--app-shadow);
}

.desktop-stat-card {
  min-height: 112px;
  gap: 18px;
  padding: 22px;
}

.desktop-stat-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.desktop-stat-card strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.75rem;
  line-height: 1.08;
  font-weight: 900;
}

.desktop-stat-card p {
  margin: 5px 0 0;
  color: var(--app-blue);
  font-size: .82rem;
  font-weight: 720;
}

.desktop-stat-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #fff;
  font-size: 1.55rem;
}

.icon-purple {
  background: linear-gradient(135deg, var(--app-purple), #c20fbe);
}

.icon-pink {
  background: linear-gradient(135deg, var(--app-pink), #f51469);
}

.icon-blue {
  background: linear-gradient(135deg, var(--app-blue), #0096ff);
}

.dash-card {
  padding: 22px;
}

.dash-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
}

.card-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.card-heading a,
.card-link {
  color: var(--app-blue);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.quick-card {
  grid-column: 4;
}

.side-card {
  grid-column: 4;
}

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

.quick-grid a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--text-strong);
  font-size: .79rem;
  font-weight: 760;
}

.quick-grid i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--app-blue);
  background: color-mix(in srgb, var(--app-blue) 11%, transparent);
}

.quick-grid a:nth-child(2) i,
.quick-grid a:nth-child(4) i {
  color: var(--app-pink);
  background: color-mix(in srgb, var(--app-pink) 11%, transparent);
}

.calendar-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-header button,
.schedule-toolbar button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--text-strong);
  background: transparent;
}

.calendar-header a {
  color: var(--app-purple);
  font-size: .74rem;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 8px;
  text-align: center;
}

.calendar-grid span {
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 850;
}

.calendar-grid time {
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .86rem;
  font-weight: 760;
}

.calendar-grid time.active {
  color: #fff;
  background: linear-gradient(135deg, var(--app-pink), var(--app-purple));
  box-shadow: 0 10px 22px rgba(143, 57, 239, .28);
}

.mini-event-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 20px;
}

.mini-event-list p {
  display: grid;
  grid-template-columns: 10px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: .78rem;
}

.mini-event-list time,
.mini-event-list small {
  color: var(--text-soft);
}

.mini-event-list strong {
  font-size: .8rem;
}

.card-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.schedule-toolbar {
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--text-strong);
}

.schedule-toolbar span {
  display: flex;
  gap: 4px;
}

.desktop-schedule-list {
  display: grid;
}

.desktop-schedule-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--app-border);
}

.desktop-schedule-list time {
  font-weight: 850;
}

.desktop-schedule-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: .92rem;
}

.desktop-schedule-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 700;
}

.desktop-news-list {
  display: grid;
  gap: 18px;
}

.desktop-news-list article {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
}

.desktop-news-list img {
  width: 100%;
  aspect-ratio: 1.14;
  border-radius: 8px;
  object-fit: cover;
}

.desktop-news-list h3 {
  margin: 0 0 6px;
  font-size: .96rem;
  font-weight: 850;
}

.desktop-news-list p {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 650;
}

.desktop-news-list time {
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 750;
}

.person-list,
.prayer-list,
.document-list,
.group-list,
.upcoming-list {
  display: grid;
  gap: 16px;
}

.person-list article,
.document-list article,
.group-list article,
.prayer-list article,
.upcoming-list article {
  display: grid;
  align-items: center;
  gap: 12px;
}

.person-list article {
  grid-template-columns: 38px 1fr 22px;
}

.person-list img,
.prayer-list img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.person-list strong,
.document-list strong,
.group-list strong,
.prayer-list strong,
.upcoming-list h3 {
  display: block;
  color: var(--text-strong);
  font-size: .86rem;
  font-weight: 850;
}

.person-list small,
.document-list small,
.group-list small,
.prayer-list small,
.upcoming-list p {
  display: block;
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 680;
}

.person-list i {
  color: var(--app-pink);
}

.upcoming-list article {
  grid-template-columns: 44px 1fr;
}

.upcoming-list time span,
.upcoming-list time strong {
  display: block;
  text-align: center;
}

.upcoming-list time span {
  color: var(--text-soft);
  font-size: .67rem;
  font-weight: 850;
}

.upcoming-list time strong {
  color: var(--text-strong);
  font-size: 1.18rem;
  line-height: 1.1;
  font-weight: 900;
}

.upcoming-list h3,
.upcoming-list p {
  margin: 0;
}

.document-list article,
.group-list article {
  grid-template-columns: 36px 1fr;
}

.file,
.group-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: .62rem;
  font-weight: 850;
}

.file.pdf {
  background: #ed3159;
}

.file.xls {
  background: #22a95a;
}

.file.doc {
  background: #1877f2;
}

.group-icon {
  font-size: .98rem;
}

.group-icon.teal {
  background: var(--app-teal);
}

.group-icon.blue {
  background: #4d49d8;
}

.group-icon.pink {
  background: #e94b95;
}

.group-icon.purple {
  background: #be19ba;
}

.prayer-list article {
  grid-template-columns: 38px 1fr 8px;
  align-items: start;
}

.prayer-list p {
  margin: 2px 0;
  color: var(--text-soft);
  font-size: .75rem;
  line-height: 1.28;
  font-weight: 650;
}

.prayer-list article > span {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
}

.poll-card > p {
  margin: 0 0 18px;
  color: var(--text-strong);
  font-size: .83rem;
  font-weight: 800;
}

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

.poll-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 760;
}

.poll-list article > div {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-purple) 16%, transparent);
}

.poll-list article > div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-purple), var(--app-pink));
}

@media (min-width: 992px) {
  .dashboard-shell {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
  }

  .desktop-sidebar {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100dvh;
  }
}

@media (max-width: 1360px) {
  .desktop-content {
    padding-inline: 24px;
  }

  .desktop-grid {
    grid-template-columns: repeat(3, minmax(270px, 1fr));
  }

  .desktop-stats {
    grid-column: 1 / -1;
  }

  .quick-card,
  .birthdays-card,
  .prayers-card,
  .poll-card {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .desktop-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 430px) {
  .mobile-content {
    padding-inline: 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
  }

  .brand-mark i {
    font-size: 2rem;
  }

  .top-actions {
    gap: 0;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .mobile-stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 13px 8px;
  }

  .stat-title {
    gap: 5px;
    font-size: .62rem;
  }

  .event-row {
    grid-template-columns: 44px 8px minmax(0, 1fr);
    gap: 10px;
  }

  .event-row small {
    grid-column: 3;
  }

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

  .news-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .mobile-topbar .avatar {
    display: none;
  }

  .brand {
    font-size: .94rem;
  }

  .stat-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    white-space: normal;
  }
}
