:root {
  color-scheme: light;
  --app-font-family: "Tajawal", "Noto Sans Arabic", sans-serif;
  --app-bg: #ffffff;
  --app-bg-accent: #ffffff;
  --app-surface: #ffffff;
  --app-surface-alt: #f8fafc;
  --app-text: #172033;
  --app-muted: #64748b;
  --app-border: rgba(15, 23, 42, 0.12);
  --app-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --app-header-shadow: none;
  --app-link: #1d3b70;
  --app-link-hover: #17325d;
  --app-hero-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --app-hero-accent: rgba(148, 163, 184, 0.18);
  --app-hero-text: #172033;
  --app-hero-muted: #526077;
  --app-chip-bg: #eef2f7;
  --app-chip-text: #23416e;
  --app-grid-gap: 1rem;
}

html[data-ui-mode="modern"] {
  --app-bg: #f7f3ec;
  --app-bg-accent:
    radial-gradient(circle at top, rgba(37, 73, 127, 0.18), transparent 32%),
    linear-gradient(180deg, #f8f4ee 0%, #fcfbf8 54%, #f2ece2 100%);
  --app-surface: rgba(255, 255, 255, 0.82);
  --app-surface-alt: rgba(255, 252, 248, 0.98);
  --app-text: #1a3154;
  --app-muted: #6d7587;
  --app-border: rgba(37, 73, 127, 0.12);
  --app-shadow: 0 24px 56px rgba(26, 49, 84, 0.1);
  --app-header-shadow: 0 16px 42px rgba(26, 49, 84, 0.08);
  --app-link: #24477e;
  --app-link-hover: #17325c;
  --app-hero-gradient: linear-gradient(135deg, #24457c 0%, #2f5a95 62%, #d5b28c 165%);
  --app-hero-accent: rgba(255, 255, 255, 0.1);
  --app-hero-text: #f8fafc;
  --app-hero-muted: rgba(241, 245, 249, 0.78);
  --app-chip-bg: rgba(255, 255, 255, 0.14);
  --app-chip-text: #f8fafc;
  --app-grid-gap: 1.25rem;
}

html,
body {
  min-height: 100%;
}

body.app-body {
  margin: 0;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-font-family);
  transition: background-color 220ms ease, color 220ms ease;
}

html[data-ui-mode="modern"] body.app-body {
  background: var(--app-bg-accent);
  background-attachment: fixed;
}

a {
  color: var(--app-link);
}

a:hover {
  color: var(--app-link-hover);
}

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

.app-header {
  padding: 0.85rem 0 0;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.35rem 0;
}

html[data-ui-mode="modern"] .app-header__inner {
  padding: 0.9rem 1rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 1.5rem;
  box-shadow: var(--app-header-shadow);
  backdrop-filter: blur(18px);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.app-brand:hover {
  color: inherit;
}

.app-brand__logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  object-fit: contain;
  padding: 0.35rem;
  background: var(--app-surface-alt);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-ui-mode="modern"] .app-brand__logo {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.app-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-brand__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--app-muted);
}

.app-brand__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--app-text);
  line-height: 1.2;
}

.app-desktop-nav,
.app-actions,
.app-mobile-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.app-actions {
  flex-shrink: 0;
}

.app-desktop-nav {
  display: none;
}

.app-nav-link,
.app-mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: var(--app-text);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.app-logout-form {
  display: inline-flex;
  margin: 0;
}

button.app-nav-link,
button.app-mobile-link {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.app-nav-link:hover,
.app-mobile-link:hover {
  color: var(--app-link-hover);
  background: rgba(29, 59, 112, 0.06);
}

.app-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface-alt);
  color: var(--app-text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

html[data-ui-mode="modern"] .app-icon-button {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18);
}

.app-icon-button i {
  font-size: 1rem;
  line-height: 1;
}

.app-icon-button .fa::before {
  color: currentColor;
}

.app-icon-button:focus-visible,
.app-nav-link:focus-visible,
.app-mobile-link:focus-visible {
  outline: 2px solid rgba(15, 76, 129, 0.22);
  outline-offset: 2px;
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-ui-mode-toggle] [data-mode-icon="modern"] {
  display: none;
}

html[data-ui-mode="modern"] [data-ui-mode-toggle] [data-mode-icon="legacy"] {
  display: none;
}

html[data-ui-mode="modern"] [data-ui-mode-toggle] [data-mode-icon="modern"] {
  display: inline-flex;
}

.app-mobile-menu-button {
  display: inline-flex;
}

.app-mobile-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 1.25rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

html:not([data-ui-mode="modern"]) .app-mobile-panel {
  box-shadow: none;
}

.app-mobile-links {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.app-mobile-link {
  justify-content: flex-start;
  border-radius: 1rem;
  padding-inline: 1rem;
}

.app-content {
  padding-top: 0.35rem;
  padding-bottom: 2.5rem;
}

html[data-ui-mode="modern"] .app-content {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.app-content__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html[data-ui-mode="modern"] .app-content__stack {
  gap: 1.25rem;
}

.app-auth-container {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.app-login-shell {
  display: flex;
  flex-direction: column;
}

.app-login-shell,
.app-login-shell *,
.app-login-shell *::before,
.app-login-shell *::after {
  box-sizing: border-box;
}

.app-login-main {
  display: grid;
  flex: 1;
  align-items: center;
  padding: clamp(2rem, 6vh, 4.5rem) 0 3rem;
}

.app-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(22rem, 1fr);
  overflow: hidden;
  min-height: 34rem;
  border: 1px solid var(--app-border);
  border-radius: 1.5rem;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.app-login-panel__media {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(29, 59, 112, 0.95), rgba(41, 89, 147, 0.9)),
    var(--app-surface-alt);
}

.app-login-panel__media img {
  width: min(13rem, 52vw);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.app-login-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.app-login-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-login-eyebrow {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-login-copy h1 {
  margin: 0;
  color: var(--app-text);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.app-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-form-field label {
  color: var(--app-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.app-form-field input,
.app-form-field .form-control {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.95rem;
  background: var(--app-surface-alt);
  color: var(--app-text);
  font-family: var(--app-font-family);
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.app-form-field input:focus,
.app-form-field .form-control:focus {
  border-color: rgba(29, 59, 112, 0.46);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 59, 112, 0.1);
}

.app-form-error,
.app-field-error {
  color: #9f1d1d;
  font-size: 0.88rem;
  font-weight: 700;
}

.app-form-error {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(159, 29, 29, 0.18);
  border-radius: 0.95rem;
  background: rgba(254, 242, 242, 0.92);
}

.app-form-error ul,
.app-field-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.95rem;
  background: #1d3b70;
  color: #ffffff;
  font-family: var(--app-font-family);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.app-primary-button:hover {
  background: #17325d;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(29, 59, 112, 0.18);
}

.app-primary-button:focus-visible {
  outline: 2px solid rgba(15, 76, 129, 0.28);
  outline-offset: 3px;
}

html[data-ui-mode="modern"] .btn,
html[data-ui-mode="modern"] button:not(.app-icon-button),
html[data-ui-mode="modern"] .form-control,
html[data-ui-mode="modern"] .form-select,
html[data-ui-mode="modern"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-ui-mode="modern"] select,
html[data-ui-mode="modern"] textarea {
  border-radius: 1rem;
}

html[data-ui-mode="modern"] .btn,
html[data-ui-mode="modern"] button:not(.app-icon-button) {
  box-shadow: none;
}

html[data-ui-mode="modern"] .form-control,
html[data-ui-mode="modern"] .form-select,
html[data-ui-mode="modern"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-ui-mode="modern"] select,
html[data-ui-mode="modern"] textarea {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

html[data-ui-mode="modern"] .app-login-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

html[data-ui-mode="modern"] .app-login-panel__media {
  background:
    linear-gradient(135deg, rgba(36, 69, 124, 0.98), rgba(58, 105, 162, 0.88) 62%, rgba(213, 178, 140, 0.62)),
    var(--app-surface-alt);
}

html[data-ui-mode="modern"] .app-primary-button {
  background: #24477e;
  box-shadow: 0 12px 28px rgba(36, 71, 126, 0.16);
}

html[data-ui-mode="modern"] .table,
html[data-ui-mode="modern"] table {
  background: rgba(255, 255, 255, 0.84);
}

html[data-ui-mode="modern"] th,
html[data-ui-mode="modern"] td {
  border-color: rgba(148, 163, 184, 0.26);
}

html[data-ui-mode="modern"] thead th {
  background: rgba(226, 232, 240, 0.52);
}

html[data-ui-mode="modern"] .card-block {
  min-height: 8.6rem;
  border: 1px solid var(--app-border);
  border-radius: 1.5rem;
  box-shadow: var(--app-shadow);
}

html[data-ui-mode="modern"] .home-container {
  gap: 1rem;
}

html[data-ui-mode="modern"] .core-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

html[data-ui-mode="modern"] .core-page-header {
  display: flex;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0 !important;
  padding: 1.25rem;
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(26, 49, 84, 0.07);
  backdrop-filter: blur(16px);
}

html[data-ui-mode="modern"] .core-page-header__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

html[data-ui-mode="modern"] .core-page-header__eyebrow {
  margin: 0;
  color: #6d7587;
  font-size: 0.78rem;
  font-weight: 800;
}

html[data-ui-mode="modern"] .core-page-header__title {
  margin: 0;
  color: #1a3154;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.35;
}

html[data-ui-mode="modern"] .core-page-header__copy {
  margin: 0;
  color: #5e6d82;
  font-size: 0.94rem;
  line-height: 1.7;
}

html[data-ui-mode="modern"] .core-page-header__actions,
html[data-ui-mode="modern"] .core-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

html[data-ui-mode="modern"] .core-panel {
  overflow: hidden;
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(26, 49, 84, 0.07);
}

html[data-ui-mode="modern"] .core-panel > .card-header,
html[data-ui-mode="modern"] .core-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(37, 73, 127, 0.08);
  background: rgba(248, 250, 252, 0.62);
  color: #1a3154;
}

html[data-ui-mode="modern"] .core-panel > .card-body,
html[data-ui-mode="modern"] .core-panel__body {
  padding: 1.1rem;
}

html[data-ui-mode="modern"] .core-panel .table {
  margin-bottom: 0;
}

html[data-ui-mode="modern"] .core-panel .table thead th {
  color: #1a3154;
  font-size: 0.82rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-empty-state {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed rgba(37, 73, 127, 0.18);
  border-radius: 1.15rem;
  background: rgba(248, 250, 252, 0.72);
  color: #6d7587;
  font-weight: 700;
  text-align: center;
}

html[data-ui-mode="modern"] .core-count-badge,
html[data-ui-mode="modern"] .core-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 73, 127, 0.08);
  background: #eef3fa;
  color: #24477e;
  font-size: 0.8rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-meta-badge {
  background: rgba(255, 255, 255, 0.78);
  color: #56657b;
}

html[data-ui-mode="modern"] .core-form-grid {
  display: grid;
  gap: 1rem;
}

html[data-ui-mode="modern"] .core-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

html[data-ui-mode="modern"] .core-form-field label {
  margin: 0;
  color: #1a3154;
  font-size: 0.9rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-sticky-actions {
  position: sticky;
  bottom: 0;
  padding: 0.9rem;
  border-top: 1px solid rgba(37, 73, 127, 0.1);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

html[data-ui-mode="modern"] .core-task-card {
  border-color: rgba(37, 73, 127, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(26, 49, 84, 0.07);
}

html[data-ui-mode="modern"] .core-task-card__title {
  color: #1a3154;
  font-size: 1rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  color: #6d7587;
  font-size: 0.82rem;
  font-weight: 700;
}

html[data-ui-mode="modern"] .task-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
}

html[data-ui-mode="modern"] .task-images img {
  border-radius: 0.9rem;
  border-color: rgba(37, 73, 127, 0.12);
}

html[data-ui-mode="modern"] .core-filter-panel {
  padding: 1rem;
}

html[data-ui-mode="modern"] .core-filter-panel .filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 0;
  gap: 0.85rem;
}

html[data-ui-mode="modern"] .core-filter-panel .filter-group {
  flex: 1 1 12rem;
}

html[data-ui-mode="modern"] .core-filter-panel .filter-label {
  color: #1a3154;
  font-size: 0.86rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

html[data-ui-mode="modern"] .core-summary-grid.alert {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-ui-mode="modern"] .core-summary-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(37, 73, 127, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  color: #1a3154;
  font-weight: 800;
}

html[data-ui-mode="modern"] .core-table-scroll {
  overflow: auto;
  border-radius: 1rem;
}

html[data-ui-mode="modern"] .core-table-scroll table {
  min-width: 58rem;
}

html[data-ui-mode="modern"] .core-section-heading {
  margin: 0;
  color: #1a3154;
  font-size: 1.08rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-detail-card .table th {
  width: 13rem;
  color: #1a3154;
  font-weight: 900;
  background: rgba(248, 250, 252, 0.72);
}

html[data-ui-mode="modern"] .core-detail-card .table td {
  color: #334155;
}

html[data-ui-mode="modern"] .core-simple-form {
  max-width: 52rem;
}

html[data-ui-mode="modern"] .core-simple-form form {
  display: grid;
  gap: 1rem;
}

html[data-ui-mode="modern"] .core-simple-form form p {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

html[data-ui-mode="modern"] .core-simple-form form > div:not(.core-action-row):not(.form-check):not(.core-file-action) {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

html[data-ui-mode="modern"] .core-simple-form form label {
  color: #1a3154;
  font-size: 0.9rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-simple-form input:not([type="checkbox"]):not([type="radio"]),
html[data-ui-mode="modern"] .core-simple-form select,
html[data-ui-mode="modern"] .core-simple-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(37, 73, 127, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  color: #172033;
}

html[data-ui-mode="modern"] .core-simple-form textarea {
  min-height: 7rem;
}

html[data-ui-mode="modern"] .core-simple-form .helptext {
  color: #6d7587;
  font-size: 0.82rem;
  line-height: 1.6;
}

html[data-ui-mode="modern"] .core-simple-form .errorlist {
  margin: 0;
  padding: 0;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 800;
  list-style: none;
}

html[data-ui-mode="modern"] .stat-grid {
  gap: 0.85rem;
}

html[data-ui-mode="modern"] .stat-card,
html[data-ui-mode="modern"] .attendance-browser-card,
html[data-ui-mode="modern"] .active-session-card {
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(26, 49, 84, 0.06);
}

html[data-ui-mode="modern"] .stat-label,
html[data-ui-mode="modern"] .stat-card h3 {
  color: #6d7587;
  font-weight: 800;
}

html[data-ui-mode="modern"] .stat-value,
html[data-ui-mode="modern"] .stat-card .value {
  color: #1a3154;
  font-weight: 900;
}

html[data-ui-mode="modern"] .filter-card,
html[data-ui-mode="modern"] .report-card {
  border-color: rgba(37, 73, 127, 0.1);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(26, 49, 84, 0.07);
}

html[data-ui-mode="modern"] .status-tag,
html[data-ui-mode="modern"] .badge-pill,
html[data-ui-mode="modern"] .status-pill,
html[data-ui-mode="modern"] .branch-pill,
html[data-ui-mode="modern"] .branch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  border-radius: 999px;
  font-weight: 900;
}

html[data-ui-mode="modern"] .core-leave-card {
  position: relative;
  padding: 1rem;
}

html[data-ui-mode="modern"] .core-leave-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  color: #334155;
}

html[data-ui-mode="modern"] .core-leave-card__section-title {
  margin: 0 0 0.7rem;
  color: #1a3154;
  font-size: 1rem;
  font-weight: 900;
}

html[data-ui-mode="modern"] .nav-tabs {
  border-bottom-color: rgba(37, 73, 127, 0.12);
}

html[data-ui-mode="modern"] .nav-tabs .nav-link {
  color: #56657b;
  font-weight: 900;
}

html[data-ui-mode="modern"] .nav-tabs .nav-link.active {
  border-color: rgba(37, 73, 127, 0.12) rgba(37, 73, 127, 0.12) #ffffff;
  color: #1a3154;
}

html[data-ui-mode="modern"] .core-report-page {
  max-width: 44rem;
}

html[data-ui-mode="modern"] .core-report-page .card {
  overflow: hidden;
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(26, 49, 84, 0.06);
}

html[data-ui-mode="modern"] .core-report-page .card-body {
  padding: 1.1rem;
}

html[data-ui-mode="modern"] .core-report-page .card-title {
  color: #1a3154;
  font-weight: 900;
}

html[data-ui-mode="modern"] .report-filter-panel,
html[data-ui-mode="modern"] .report-range-summary {
  max-width: none;
  margin: 0;
  border-color: rgba(37, 73, 127, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(26, 49, 84, 0.07);
}

html[data-ui-mode="modern"] .report-filter-button {
  background: #24477e;
}

html[data-ui-mode="modern"] .report-switch-link {
  width: fit-content;
  margin-bottom: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

html[data-ui-mode="modern"] .core-file-action {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

html[data-ui-mode="modern"] .core-file-action input {
  flex: 1;
}

html[data-ui-mode="modern"] .core-expense-list {
  display: grid;
  gap: 0.75rem;
}

html[data-ui-mode="modern"] .core-expense-item {
  margin-bottom: 0;
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.78);
  color: #1a3154;
}

html[data-ui-mode="modern"] .core-expense-thumb {
  max-width: 9rem;
  max-height: 9rem;
  border: 1px solid rgba(37, 73, 127, 0.12);
  border-radius: 0.85rem;
}

html[data-ui-mode="modern"] .core-refund-workspace #shipment,
html[data-ui-mode="modern"] .core-refund-workspace #skus,
html[data-ui-mode="modern"] .core-refund-workspace #buttons {
  width: 100%;
}

html[data-ui-mode="modern"] .core-refund-workspace #skus > div {
  padding: 0.8rem;
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

html[data-ui-mode="modern"] .core-refund-workspace #skus img {
  border: 1px solid rgba(37, 73, 127, 0.1);
  border-radius: 0.85rem;
}

html[data-ui-mode="modern"] .core-refunds-page .tab-pane {
  overflow-x: auto;
}

html[data-ui-mode="modern"] .core-refunds-page table {
  min-width: 70rem;
}

html[data-ui-mode="modern"] .core-admin-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

html[data-ui-mode="modern"] .core-warning-list {
  display: grid;
  gap: 0.85rem;
}

html[data-ui-mode="modern"] .core-warning-card {
  padding: 1rem;
  border: 1px solid rgba(180, 35, 24, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 245, 245, 0.86);
  color: #1a3154;
}

html[data-ui-mode="modern"] .core-warning-card p {
  margin: 0;
  white-space: pre-wrap;
}

html[data-ui-mode="modern"] .core-membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.core-check-list,
.core-check-items,
.core-cash-list,
.core-branch-amount-grid {
  display: grid;
  gap: 0.75rem;
}

.core-check-card,
.core-check-row,
.core-check-result,
.core-cash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.core-check-card,
.core-cash-card {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  background: #ffffff;
}

.core-check-card {
  color: inherit;
  text-decoration: none;
}

.core-check-card:hover {
  color: inherit;
}

.core-check-card > div,
.core-cash-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.core-check-card > div span,
.core-check-result strong,
.core-cash-card__branch {
  color: var(--app-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.core-check-row,
.core-check-result {
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.72);
}

.core-check-row__title,
.core-cash-card__amount {
  color: var(--app-text);
  font-weight: 900;
}

.core-cash-card__amount {
  font-size: 1.35rem;
}

.core-cash-card__users {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.core-summary-item--success {
  border-color: rgba(25, 135, 84, 0.22) !important;
  background: rgba(240, 253, 244, 0.82) !important;
}

.core-summary-item--danger {
  border-color: rgba(220, 53, 69, 0.22) !important;
  background: rgba(254, 242, 242, 0.82) !important;
}

html[data-ui-mode="modern"] .core-check-category {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(37, 73, 127, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.62);
}

html[data-ui-mode="modern"] .core-check-card,
html[data-ui-mode="modern"] .core-check-row,
html[data-ui-mode="modern"] .core-check-result,
html[data-ui-mode="modern"] .core-cash-card {
  border-color: rgba(37, 73, 127, 0.1);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(26, 49, 84, 0.06);
}

html[data-ui-mode="modern"] .core-check-result.is-complete {
  border-color: rgba(25, 135, 84, 0.22);
  background: rgba(240, 253, 244, 0.78);
}

html[data-ui-mode="modern"] .core-check-result.is-missing {
  border-color: rgba(220, 53, 69, 0.2);
  background: rgba(254, 242, 242, 0.78);
}

html[data-ui-mode="modern"] .core-check-result.is-complete strong {
  color: #198754;
}

html[data-ui-mode="modern"] .core-check-result.is-missing strong {
  color: #b42318;
}

html[data-ui-mode="modern"] .core-simple-form form > .core-branch-amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}

html[data-ui-mode="modern"] .core-branch-amount-grid .input-group {
  align-items: stretch;
}

@media (max-width: 767px) {
  html[data-ui-mode="modern"] .core-page-header {
    flex-direction: column;
  }

  html[data-ui-mode="modern"] .core-page-header__actions {
    width: 100%;
  }

  html[data-ui-mode="modern"] .core-summary-grid {
    grid-template-columns: 1fr;
  }

  html[data-ui-mode="modern"] .core-detail-card .table th {
    width: 9rem;
  }

  html[data-ui-mode="modern"] .core-leave-card__meta {
    grid-template-columns: 1fr;
  }

  html[data-ui-mode="modern"] .core-file-action {
    flex-direction: column;
  }

  html[data-ui-mode="modern"] .core-admin-grid {
    grid-template-columns: 1fr;
  }

  .core-check-card,
  .core-check-row,
  .core-check-result,
  .core-cash-card {
    align-items: stretch;
    flex-direction: column;
  }

  .core-check-row .btn-group {
    width: 100%;
  }

  .core-check-row .btn-group .btn {
    flex: 1 1 0;
  }
}

.app-home-search {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-home-search__label {
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.app-home-search__control {
  position: relative;
  display: flex;
  align-items: center;
}

.app-home-search__icon {
  position: absolute;
  inset-inline-start: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--app-muted);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.app-home-search__input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 3rem 0.85rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: var(--app-surface-alt);
  color: var(--app-text);
  font-family: var(--app-font-family);
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.app-home-search__input:focus {
  border-color: rgba(29, 59, 112, 0.46);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 59, 112, 0.1);
}

.app-home-search__empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: var(--app-surface-alt);
  color: var(--app-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

html[data-ui-mode="modern"] .app-home-search {
  padding: 1rem;
  border: 1px solid rgba(37, 73, 127, 0.08);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(26, 49, 84, 0.07);
}

html[data-ui-mode="modern"] .app-home-search__input {
  background: rgba(255, 255, 255, 0.92);
}

.app-home-favorites {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 1.35rem;
  background: var(--app-surface);
}

.app-home-favorites[hidden] {
  display: none;
}

.app-home-favorites__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-home-favorites__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-home-favorites__title {
  margin: 0;
  color: var(--app-text);
  font-size: 1.05rem;
  font-weight: 900;
}

.app-home-favorites__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: var(--app-chip-bg);
  color: var(--app-chip-text);
  font-size: 0.76rem;
  font-weight: 800;
}

.app-home-favorites__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.app-favorite-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: var(--app-surface-alt);
  color: var(--app-text);
  text-decoration: none;
}

.app-favorite-link:hover {
  color: var(--app-link-hover);
  border-color: rgba(29, 59, 112, 0.18);
}

.app-favorite-link__star,
.app-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-favorite-link__star {
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  background: rgba(213, 178, 140, 0.18);
  color: #9c6e3f;
}

.app-favorite-link__star svg,
.app-favorite-toggle svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.app-favorite-link__star svg {
  fill: currentColor;
}

.app-favorite-link__body {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
}

.app-favorite-link__title,
.app-favorite-link__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-favorite-link__title {
  color: var(--app-text);
  font-size: 0.92rem;
  font-weight: 900;
}

.app-favorite-link__meta {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-card,
.card-block {
  position: relative;
}

.app-favorite-toggle {
  position: absolute;
  z-index: 4;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #6d7587;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-card .app-favorite-toggle {
  top: 0.85rem;
  inset-inline-end: 0.85rem;
}

.card-block .app-favorite-toggle {
  bottom: 0.75rem;
  inset-inline-start: 0.75rem;
}

.app-favorite-toggle:hover {
  color: #9c6e3f;
  border-color: rgba(156, 110, 63, 0.28);
  transform: translateY(-1px);
}

.app-favorite-toggle:focus-visible {
  outline: 2px solid rgba(15, 76, 129, 0.24);
  outline-offset: 2px;
}

.app-favorite-toggle.is-active {
  color: #9c6e3f;
  border-color: rgba(156, 110, 63, 0.3);
  background: rgba(213, 178, 140, 0.2);
}

.app-favorite-toggle.is-active svg {
  fill: currentColor;
}

html[data-ui-mode="modern"] .app-home-favorites {
  border-color: rgba(37, 73, 127, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(26, 49, 84, 0.07);
}

html[data-ui-mode="modern"] .app-favorite-link {
  background: rgba(255, 255, 255, 0.8);
}

html:not([data-ui-mode="modern"]) .app-home-search,
html:not([data-ui-mode="modern"]) .app-home-favorites,
html:not([data-ui-mode="modern"]) .app-favorite-toggle {
  display: none !important;
}

html[data-ui-mode="modern"] .app-home-favorites[hidden] {
  display: none;
}

.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.8rem;
  background: var(--app-hero-gradient);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -2.2rem;
  bottom: -3.2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: var(--app-hero-accent);
}

.dashboard-hero__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-hero-muted);
}

.dashboard-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--app-hero-text);
}

.dashboard-hero__copy {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--app-hero-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.dashboard-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.dashboard-stat {
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: var(--app-chip-bg);
  color: var(--app-chip-text);
}

.dashboard-stat__value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.dashboard-stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.dashboard-section__head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-section__eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--app-link);
}

.dashboard-section__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--app-text);
}

.dashboard-section__sub {
  margin: 0;
  max-width: 42rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--app-muted);
}

.dashboard-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(29, 59, 112, 0.08);
  color: var(--app-hero-text);
  font-size: 0.8rem;
  font-weight: 700;
}

html[data-ui-mode="modern"] .dashboard-pill {
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--app-grid-gap);
}

.dashboard-grid--featured .dashboard-card {
  min-height: 11.5rem;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 10.5rem;
  padding: 1.1rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  color: var(--app-text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -2rem;
  bottom: -2.65rem;
  width: 8.25rem;
  height: 8.25rem;
  border-radius: 999px;
  background: var(--card-glow, rgba(37, 73, 127, 0.08));
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
  color: var(--app-text);
}

.dashboard-card__header,
.dashboard-card__footer,
.dashboard-card__meta {
  position: relative;
  z-index: 1;
}

.dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.dashboard-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  border: 1px solid rgba(37, 73, 127, 0.08);
  background: var(--card-icon-bg, #e8eff9);
  color: var(--card-icon-color, #24477e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--card-icon-color, #24477e);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-muted);
}

.dashboard-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.dashboard-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--card-icon-color, #24477e);
}

.dashboard-card__action svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-card__title,
.dashboard-card__copy {
  position: relative;
  z-index: 1;
}

.dashboard-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.dashboard-card__copy {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(30, 41, 59, 0.78);
}

html[data-ui-mode="modern"] .dashboard-card {
  border-color: rgba(37, 73, 127, 0.1);
  box-shadow: var(--app-shadow);
}

html[data-ui-mode="modern"] .dashboard-card__copy {
  color: rgba(15, 23, 42, 0.72);
}

.dashboard-card[data-tone="navy"] {
  --card-icon-bg: #e8eff9;
  --card-icon-color: #24477e;
  --card-glow: rgba(36, 71, 126, 0.09);
}

.dashboard-card[data-tone="sand"] {
  --card-icon-bg: #f7efe3;
  --card-icon-color: #9c6e3f;
  --card-glow: rgba(213, 178, 140, 0.22);
}

.dashboard-card[data-tone="sky"] {
  --card-icon-bg: #e9f1f8;
  --card-icon-color: #3f668c;
  --card-glow: rgba(88, 129, 177, 0.15);
}

.dashboard-card[data-tone="sage"] {
  --card-icon-bg: #edf3ef;
  --card-icon-color: #53745f;
  --card-glow: rgba(137, 165, 146, 0.16);
}

.dashboard-card[data-tone="rose"] {
  --card-icon-bg: #f8ecec;
  --card-icon-color: #9b5b62;
  --card-glow: rgba(197, 134, 144, 0.16);
}

.dashboard-card[data-tone="slate"] {
  --card-icon-bg: #edf0f4;
  --card-icon-color: #56657b;
  --card-glow: rgba(116, 129, 145, 0.16);
}

@media (max-width: 767px) {
  .app-auth-container {
    width: min(100% - 1.25rem, 32rem);
  }

  .app-login-main {
    align-items: start;
    padding-top: 1.25rem;
  }

  .app-login-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 1.1rem;
  }

  .app-login-panel__media {
    min-height: 8.5rem;
    padding: 1.25rem;
  }

  .app-login-panel__media img {
    width: 6.75rem;
    padding: 0.8rem;
    border-radius: 1.35rem;
  }

  .app-login-panel__content {
    padding: 1.35rem;
  }

  .app-login-copy h1 {
    font-size: 1.85rem;
  }
}

@media (min-width: 768px) {
  .app-desktop-nav {
    display: flex;
  }

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

  .app-mobile-menu-button,
  .app-mobile-panel {
    display: none !important;
  }

  .app-header__inner {
    gap: 1rem;
  }

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

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

  .dashboard-section__head {
    align-items: end;
    justify-content: space-between;
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .dashboard-hero {
    padding: 1.65rem 1.8rem;
  }

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

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

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