html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

:root {
  --mp-primary: #0037b0;
  --mp-primary-strong: #1d4ed8;
  --mp-background: #f7f9fb;
  --mp-surface: #ffffff;
  --mp-surface-soft: #f2f4f6;
  --mp-on-surface: #191c1e;
  --mp-on-surface-variant: #434655;
  --mp-outline: #c4c5d7;

  --mp-line-strong: rgba(196, 197, 215, 0.55);
  --mp-line-medium: rgba(196, 197, 215, 0.45);
  --mp-line-soft: rgba(196, 197, 215, 0.4);
  --mp-line-faint: rgba(196, 197, 215, 0.65);

  --mp-overlay-strong: rgba(255, 255, 255, 0.95);
  --mp-scrim: rgba(0, 0, 0, 0.45);

  --mp-active-shadow: 0 6px 16px rgba(0, 55, 176, 0.2);
  --mp-hover-strong: #e8ebef;

  --surface-background: var(--mp-background);
  --surface-surface: var(--mp-surface);
  --surface-surface-soft: var(--mp-surface-soft);
  --surface-surface-low: var(--mp-surface-soft);
  --surface-surface-lowest: var(--mp-surface);
  --surface-surface-container: #eceef0;
  --surface-surface-high: #e6e8ea;
  --surface-surface-highest: #e0e3e5;

  --surface-input: #ffffff;
  --surface-input-hover: #f8fafc;
  --surface-row-hover: #edf2fb;
  --border-input: #c0cada;
  --border-input-focus: #456fda;

  --text-primary: var(--mp-on-surface);
  --text-secondary: var(--mp-on-surface-variant);
  --text-outline: #747686;

  --border-subtle: var(--mp-line-strong);
  --border-soft: var(--mp-line-medium);
  --border-softest: var(--mp-line-soft);

  --primary-color: var(--mp-primary);
  --primary-strong: var(--mp-primary-strong);
  --primary-text: var(--mp-primary);
  --primary-on: #ffffff;

  --tertiary-color: #004f35;
  --tertiary-container: #85f8c4;
  --error-color: #ba1a1a;
  --error-container: #ffdad6;
}

body.theme-dark {
  --mp-primary: #3b66d6;
  --mp-primary-strong: #4f7be0;
  --mp-background: #0f141e;
  --mp-surface: #161d29;
  --mp-surface-soft: #1d2634;
  --mp-on-surface: #edf1fa;
  --mp-on-surface-variant: #aab7d1;
  --mp-outline: #334055;

  --mp-line-strong: rgba(99, 116, 145, 0.55);
  --mp-line-medium: rgba(99, 116, 145, 0.45);
  --mp-line-soft: rgba(99, 116, 145, 0.35);
  --mp-line-faint: rgba(99, 116, 145, 0.65);

  --mp-overlay-strong: rgba(18, 24, 35, 0.94);
  --mp-scrim: rgba(2, 6, 12, 0.72);

  --mp-active-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --mp-hover-strong: #253246;

  --surface-background: var(--mp-background);
  --surface-surface: var(--mp-surface);
  --surface-surface-soft: var(--mp-surface-soft);
  --surface-surface-low: #202b3b;
  --surface-surface-lowest: #161d29;
  --surface-surface-container: #2a3447;
  --surface-surface-high: #303c50;
  --surface-surface-highest: #36445b;

  --surface-input: #1f2938;
  --surface-input-hover: #253246;
  --surface-row-hover: #32415a;
  --border-input: #566a8d;
  --border-input-focus: #7ea4ff;

  --text-primary: var(--mp-on-surface);
  --text-secondary: var(--mp-on-surface-variant);
  --text-outline: #8fa1c1;

  --border-subtle: var(--mp-line-strong);
  --border-soft: var(--mp-line-medium);
  --border-softest: var(--mp-line-soft);

  --primary-color: var(--mp-primary);
  --primary-strong: var(--mp-primary-strong);
  --primary-text: #9bb8ff;
  --primary-on: #ffffff;

  --tertiary-color: #9df0cf;
  --tertiary-container: #0f4f3d;
  --error-color: #ffb4ab;
  --error-container: #5d1d1a;
}

.app-body {
  margin: 0;
  min-height: 100vh;
  background: var(--mp-background);
  color: var(--mp-on-surface);
  font-family: "Inter", sans-serif;
}

.app-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border: 1px solid var(--mp-line-faint);
  border-radius: 0.75rem;
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface-variant);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-theme-toggle .material-symbols-outlined {
  font-size: 1.1rem;
}

.app-theme-toggle:hover {
  background: var(--mp-hover-strong);
  color: var(--mp-on-surface);
}

.app-theme-toggle:focus-visible {
  outline: 2px solid var(--mp-primary);
  outline-offset: 2px;
}

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

.app-sidebar {
  width: 18rem;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--mp-line-strong);
  background: var(--mp-surface);
  transition: width 0.2s ease;
}

.app-sidebar.is-collapsed {
  width: 5.5rem;
}

.app-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
  height: 4rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--mp-line-medium);
}

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

.app-brand .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--mp-primary);
  color: var(--primary-on);
  font-size: 1.25rem;
}

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

.app-brand-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--mp-on-surface);
  white-space: nowrap;
}

.app-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mp-on-surface-variant);
  white-space: nowrap;
}

.app-sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--mp-on-surface-variant);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-sidebar-collapse-btn:hover {
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface);
}

.app-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  color: var(--mp-on-surface-variant);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-nav-link .material-symbols-outlined {
  font-size: 1.25rem;
}

.app-nav-link:hover {
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface);
}

.app-nav-link.is-active {
  background: var(--mp-primary);
  color: var(--primary-on);
  box-shadow: var(--mp-active-shadow);
}

.app-sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-group-title {
  margin: 0.95rem 0.6rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mp-on-surface-variant);
}

.app-sidebar-footer {
  border-top: 1px solid var(--mp-line-soft);
  padding: 1rem;
}

.app-sidebar-account {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-sidebar-account .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--mp-on-surface-variant);
}

.app-sidebar.is-collapsed [data-sidebar-logo-text],
.app-sidebar.is-collapsed [data-sidebar-label],
.app-sidebar.is-collapsed [data-sidebar-group-title] {
  display: none;
}

.app-sidebar.is-collapsed .app-sidebar-header,
.app-sidebar.is-collapsed .app-brand,
.app-sidebar.is-collapsed .app-nav-link,
.app-sidebar.is-collapsed .app-sidebar-account {
  justify-content: center;
}

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

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--mp-line-medium);
  background: var(--mp-overlay-strong);
  backdrop-filter: blur(8px);
}

.app-topbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.app-topbar-title-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-topbar-kicker {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mp-on-surface-variant);
}

.app-topbar-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mp-on-surface);
}

.app-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--mp-line-strong);
  border-radius: 0.75rem;
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface-variant);
}

.app-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1rem;
}

body.theme-dark :is(.app-content, .app-public-content) {
  color: var(--text-primary);
}

body.theme-dark :is(.app-content, .app-public-content) .text-danger {
  color: var(--error-color) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-surface-container-highest {
  background-color: var(--surface-surface-highest) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-surface-container-high {
  background-color: var(--surface-surface-high) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-surface-container-lowest {
  background-color: var(--surface-surface-lowest) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-surface-container-low {
  background-color: var(--surface-surface-low) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-surface-container {
  background-color: var(--surface-surface-container) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-on-surface-variant {
  color: var(--text-secondary) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-on-surface {
  color: var(--text-primary) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .border-outline-variant,
body.theme-dark :is(.app-content, .app-public-content) .border-outline-variant\/20,
body.theme-dark :is(.app-content, .app-public-content) .border-outline-variant\/30,
body.theme-dark :is(.app-content, .app-public-content) .border-outline-variant\/40,
body.theme-dark :is(.app-content, .app-public-content) .border-outline-variant\/50,
body.theme-dark :is(.app-content, .app-public-content) .border-outline-variant\/70 {
  border-color: var(--border-input) !important;
}

body.theme-dark :is(.app-content, .app-public-content) input[type="text"],
body.theme-dark :is(.app-content, .app-public-content) input[type="email"],
body.theme-dark :is(.app-content, .app-public-content) input[type="password"],
body.theme-dark :is(.app-content, .app-public-content) input[type="url"],
body.theme-dark :is(.app-content, .app-public-content) input[type="search"],
body.theme-dark :is(.app-content, .app-public-content) input[type="date"],
body.theme-dark :is(.app-content, .app-public-content) select,
body.theme-dark :is(.app-content, .app-public-content) textarea {
  background-color: var(--surface-input) !important;
  border-color: var(--border-input) !important;
  color: var(--text-primary) !important;
}

body.theme-dark :is(.app-content, .app-public-content) input[type="text"]:hover,
body.theme-dark :is(.app-content, .app-public-content) input[type="email"]:hover,
body.theme-dark :is(.app-content, .app-public-content) input[type="password"]:hover,
body.theme-dark :is(.app-content, .app-public-content) input[type="url"]:hover,
body.theme-dark :is(.app-content, .app-public-content) input[type="search"]:hover,
body.theme-dark :is(.app-content, .app-public-content) input[type="date"]:hover,
body.theme-dark :is(.app-content, .app-public-content) select:hover,
body.theme-dark :is(.app-content, .app-public-content) textarea:hover {
  background-color: var(--surface-input-hover) !important;
}

body.theme-dark :is(.app-content, .app-public-content) input::placeholder,
body.theme-dark :is(.app-content, .app-public-content) textarea::placeholder {
  color: color-mix(in srgb, var(--text-secondary) 75%, transparent);
}

body.theme-dark :is(.app-content, .app-public-content) thead.bg-surface-container-low {
  background-color: var(--surface-surface-high) !important;
}

body.theme-dark :is(.app-content, .app-public-content) tr.hover\:bg-surface-container-low:hover,
body.theme-dark :is(.app-content, .app-public-content) tr.hover\:bg-surface-container-low\/60:hover {
  background-color: var(--surface-row-hover) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .divide-outline-variant\/20 > :not([hidden]) ~ :not([hidden]) {
  border-color: color-mix(in srgb, var(--border-input) 80%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-primary,
body.theme-dark :is(.app-content, .app-public-content) .bg-primary\/80,
body.theme-dark :is(.app-content, .app-public-content) .bg-primary-container,
body.theme-dark :is(.app-content, .app-public-content) .bg-primary-container\/80 {
  background-color: var(--primary-color) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-primary\/10 {
  background-color: color-mix(in srgb, var(--primary-color) 22%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .border-primary\/50 {
  border-color: color-mix(in srgb, var(--primary-color) 62%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-primary {
  color: var(--primary-text) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-primary:hover,
body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-primary\/90:hover,
body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-primary-container:hover {
  background-color: var(--primary-strong) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-primary\/20:hover {
  background-color: color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .shadow-primary\/30,
body.theme-dark :is(.app-content, .app-public-content) .shadow-primary\/40 {
  --tw-shadow-color: color-mix(in srgb, var(--primary-color) 45%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .focus\:border-primary:focus {
  border-color: var(--border-input-focus) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .focus\:ring-primary\/20:focus,
body.theme-dark :is(.app-content, .app-public-content) .focus-visible\:ring-primary\/40:focus-visible {
  --tw-ring-color: color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .focus\:ring-primary\/30:focus {
  --tw-ring-color: color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .focus-visible\:ring-outline-variant\/50:focus-visible {
  --tw-ring-color: color-mix(in srgb, var(--border-soft) 65%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-tertiary-fixed {
  background-color: color-mix(in srgb, var(--tertiary-container) 90%, #0f141e 10%) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-tertiary-fixed\/40 {
  background-color: color-mix(in srgb, var(--tertiary-container) 40%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-tertiary {
  color: color-mix(in srgb, var(--tertiary-color) 88%, white 12%) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .border-tertiary\/20 {
  border-color: color-mix(in srgb, var(--tertiary-color) 45%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .border-tertiary\/40 {
  border-color: color-mix(in srgb, var(--tertiary-color) 62%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .border-error\/20 {
  border-color: color-mix(in srgb, var(--error-color) 36%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .border-error\/30,
body.theme-dark :is(.app-content, .app-public-content) .border-error\/40 {
  border-color: color-mix(in srgb, var(--error-color) 52%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-error-container {
  background-color: color-mix(in srgb, var(--error-container) 92%, #0f141e 8%) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-error-container\/40 {
  background-color: color-mix(in srgb, var(--error-container) 42%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-error-container\/60 {
  background-color: color-mix(in srgb, var(--error-container) 62%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-error {
  color: color-mix(in srgb, var(--error-color) 92%, white 8%) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .bg-scrim\/70 {
  background-color: var(--mp-scrim) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-white {
  color: var(--primary-on) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-secondary\/90 {
  color: color-mix(in srgb, var(--text-secondary) 95%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .text-on-surface-variant\/60 {
  color: color-mix(in srgb, var(--text-secondary) 82%, transparent) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-surface-container:hover {
  background-color: var(--surface-surface-container) !important;
}

body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-surface-container-low:hover,
body.theme-dark :is(.app-content, .app-public-content) .hover\:bg-surface-container-low\/60:hover {
  background-color: var(--surface-row-hover) !important;
}

.app-footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--mp-line-medium);
  background: var(--mp-surface);
  color: var(--mp-on-surface-variant);
  font-size: 0.74rem;
}

.app-footer-link {
  color: var(--mp-primary);
  font-weight: 700;
  text-decoration: none;
}

.app-footer-link:hover {
  text-decoration: underline;
}

.app-login-partial {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-login-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-login-name {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--mp-on-surface-variant);
}

.app-login-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--mp-surface-soft);
  color: var(--mp-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.app-logout-form {
  margin: 0;
}

.app-logout-btn,
.app-login-link,
.app-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--mp-line-faint);
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.app-logout-btn:hover,
.app-login-link:hover,
.app-account-link:hover {
  background: var(--mp-hover-strong);
}

.app-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--mp-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.app-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-mobile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 18rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--mp-line-strong);
  background: var(--mp-surface);
  transform: translateX(-100%);
  transition: transform 0.18s ease;
}

.app-mobile-sidebar.is-open {
  transform: translateX(0);
}

.app-mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-mobile-sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--mp-line-strong);
  border-radius: 0.75rem;
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface-variant);
}

.app-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  color: var(--mp-on-surface-variant);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-mobile-nav-link:hover {
  background: var(--mp-surface-soft);
  color: var(--mp-on-surface);
}

.app-mobile-nav-link.is-active {
  background: var(--mp-primary);
  color: var(--primary-on);
}

.app-mobile-group-title {
  margin: 0.85rem 0.65rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mp-on-surface-variant);
}

.app-public-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--mp-line-medium);
  background: var(--mp-overlay-strong);
  backdrop-filter: blur(8px);
}

.app-public-brand {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mp-primary);
  text-decoration: none;
}

.app-public-content {
  flex: 1;
  padding: 1.5rem 1rem;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .app-topbar,
  .app-content,
  .app-footer,
  .app-public-header,
  .app-public-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .app-content,
  .app-public-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .app-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
  }
}

@media (max-width: 767.98px) {
  .app-sidebar {
    display: none;
  }

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

  .app-login-identity {
    display: none;
  }

  .app-theme-toggle {
    min-height: 2.1rem;
    padding: 0 0.65rem;
  }

  .app-topbar,
  .app-public-header {
    min-height: 3.75rem;
  }
}
