.portal-body {
  margin: 0;
  min-height: 100svh;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--sky);
  color: var(--ink);
}

/* =========================
   NAV
========================= */

.portal-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.portal-center {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: center;
}

.portal-right {
  flex: 0 0 auto;
}

.portal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.portal-brand__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.portal-logo {
  width: 32px;
  height: auto;
  display: block;
}

.portal-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.portal-brand__name {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--navy);
}

.portal-brand__sub {
  font-size: 12px;
  color: #7a8296;
  font-weight: 600;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--navy) !important;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 42, 107, 0.06);
  border: 1px solid rgba(27, 42, 107, 0.14);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-link:hover {
  background: rgba(27, 42, 107, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.portal-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.portal-link.is-active {
  background: var(--navy);
  color: #fff !important;
  border-color: var(--navy);
}

.portal-logout {
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* =========================
   MOBILE DRAWER NAV
========================= */

.nav-toggle,
.nav-overlay,
.mobile-drawer {
  display: none;
}

/* =========================
   MAIN / TOAST
========================= */

.portal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
}

.toast {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 9999;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-notice { background: var(--navy); }
.toast-alert { background: #991b1b; }
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   GENERIC
========================= */

.export-pdf-wrapper {
  margin-top: 20px;
  text-align: center;
}

.export-pdf-btn {
  display: inline-flex;
  align-items: center;
  background-color: #1b2a6b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.export-pdf-btn:hover {
  background-color: #16225a;
}

.portal-main input,
.portal-main select,
.portal-main textarea {
  padding: 10px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
}

/* =========================
   PORTAL GRID / TILES
========================= */

.portal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.tile {
  position: relative;
  overflow: hidden;
  background: #e6e9ef;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--x, 50%) var(--y, 50%),
    rgba(27, 42, 107, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tile:hover::after {
  opacity: 1;
}

.tile-large {
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.tile-clock {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.tile-icon {
  width: 40px;
  margin: 10px auto;
}

.tile-icon-small {
  width: 28px;
  margin: 10px auto;
}

.hours-number {
  font-size: 32px;
  font-weight: 700;
}

.week-row {
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.day-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #7aa3c7;
}

.dot-empty { background: transparent; }
.dot-complete { background: #a7d3a8; }
.dot-upcoming { background: #7fb2d6; }

.btn-in {
  background: #a7d3a8;
  border: none;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600;
}

.btn-break {
  background: #7fb2d6;
  border: none;
  padding: 14px 24px;
  border-radius: 40px;
  font-weight: 600;
}

.btn-out {
  background: #c76d6d;
  border: none;
  padding: 14px 24px;
  border-radius: 40px;
  font-weight: 600;
}

.schedule {
  margin-top: 10px;
}

/* =========================
   SHIFT BUILDER
========================= */

.shift-slider-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.shift-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.shift-slider-title {
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.shift-slider-readout {
  font-weight: 900;
  font-size: 13px;
}

.shift-slider-sub {
  font-weight: 700;
  font-size: 12px;
  opacity: 0.75;
  margin-left: 8px;
}

.shift-timeline {
  width: 100%;
}

.shift-timeline-hours {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.shift-hour {
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}

.shift-track {
  position: relative;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.85);
  height: 62px;
  overflow: hidden;
}

.shift-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.shift-grid-cell {
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.shift-grid-cell:first-child {
  border-left: 0;
}

.shift-pill {
  position: absolute;
  top: 10px;
  height: 42px;
  border-radius: 999px;
  background: rgba(127, 178, 214, 0.3);
  border: 1px solid rgba(127, 178, 214, 0.7);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px 10px;
  min-width: 40px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.shift-pill-time {
  font-weight: 900;
  font-size: 13px;
}

.shift-pill-meta {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.shift-sliders {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.shift-sliders input[type="range"] {
  width: 100%;
}

/* =========================
   FORMS
========================= */

.portal-form-grid label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.portal-form-grid input[type="text"],
.portal-form-grid input[type="email"],
.portal-form-grid input[type="date"],
.portal-form-grid input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
}

.portal-form-grid input:focus {
  outline: none;
  border-color: rgba(27, 42, 107, 0.5);
  box-shadow: 0 0 0 3px rgba(27, 42, 107, 0.12);
}

.break-timer {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(27, 42, 107, 0.18);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  max-width: 420px;
}

.break-timer__title {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.break-timer__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
  font-size: 13px;
}

.break-timer__overdue {
  margin-top: 8px;
  font-weight: 800;
  color: #991b1b;
}

/* =========================
   MANAGE USERS
========================= */

.users-toolbar {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.users-filters {
  flex: 1 1 680px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-weight: 900;
  font-size: 12px;
  color: var(--navy);
  opacity: 0.9;
}

.filter-input,
.filter-select {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.95);
}

.filter-select {
  min-width: 160px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.users-toolbar__right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 107, 0.18);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, filter 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--navy);
  color: white;
  border-color: rgba(27, 42, 107, 0.3);
}

.btn-ghost {
  background: rgba(27, 42, 107, 0.06);
  color: var(--navy);
}

.btn-wide {
  padding-left: 18px;
  padding-right: 18px;
}

.users-table-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px;
  color: var(--navy);
  background: rgba(27, 42, 107, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.users-table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.users-table tbody tr:nth-child(even) {
  background: rgba(127, 178, 214, 0.1);
}

.users-table tbody tr.is-inactive {
  opacity: 0.75;
}

.user-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(27, 42, 107, 0.1);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.user-name {
  font-weight: 900;
}

.user-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.muted {
  opacity: 0.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-navy { background: rgba(27, 42, 107, 0.1); color: var(--navy); }
.badge-sky { background: rgba(127, 178, 214, 0.2); color: var(--navy); }
.badge-green { background: rgba(16, 185, 129, 0.16); color: #065f46; border-color: rgba(16, 185, 129, 0.22); }
.badge-gray { background: rgba(0, 0, 0, 0.06); color: rgba(0, 0, 0, 0.65); }

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.inline-form {
  display: inline;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 42, 107, 0.2);
  background: rgba(255, 255, 255, 0.65);
  color: var(--navy);
  font-weight: 900;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, filter 0.12s ease;
}

.mini-pill:hover {
  transform: translateY(-1px);
  background: rgba(127, 178, 214, 0.22);
}

.mini-pill:active {
  transform: translateY(0);
}

.mini-pill.danger {
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.25);
  background: rgba(255, 255, 255, 0.65);
}

.mini-pill.danger:hover {
  background: rgba(153, 27, 27, 0.1);
}

.user-actions form button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 42, 107, 0.2);
  background: rgba(255, 255, 255, 0.65);
  color: var(--navy);
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, filter 0.12s ease;
}

.user-actions form button:hover {
  transform: translateY(-1px);
  background: rgba(127, 178, 214, 0.22);
}

.user-actions form button:active {
  transform: translateY(0);
}

.user-actions form button.mini-pill.danger,
.user-actions form button.danger {
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.25);
}

.user-actions form button.danger:hover {
  background: rgba(153, 27, 27, 0.1);
}

.users-table .mini-pill.mini-pill-md {
  padding: 8px 14px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

/* =========================
   PAGE HEAD / FORM CARD
========================= */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 6px 0 16px;
  flex-wrap: wrap;
}

.page-sub {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 13px;
}

.form-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  font-weight: 900;
  font-size: 12px;
  color: var(--navy);
  opacity: 0.9;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.field__input:focus {
  border-color: rgba(27, 42, 107, 0.35);
  box-shadow: 0 0 0 3px rgba(127, 178, 214, 0.25);
}

.toggles {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 22px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--navy);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.password-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.help-text {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

.form-errors {
  background: rgba(153, 27, 27, 0.08);
  border: 1px solid rgba(153, 27, 27, 0.18);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.form-errors__title {
  color: #991b1b;
  font-weight: 900;
  margin-bottom: 8px;
}

.form-errors__list {
  margin: 0;
  padding-left: 18px;
  color: #991b1b;
}

.form-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 8px 12px;
  border-radius: 12px;
}

/* =========================
   SHARED CARD / TABLE
========================= */

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(27, 42, 107, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.card__title {
  font-weight: 900;
  color: var(--navy);
}

.card__meta {
  font-size: 13px;
  opacity: 0.85;
}

.nice-table {
  width: 100%;
  border-collapse: collapse;
}

.nice-table thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nice-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.nice-table tbody tr:nth-child(even) {
  background: rgba(127, 178, 214, 0.1);
}

.nice-table tbody tr:hover {
  background: rgba(127, 178, 214, 0.18);
}

.date-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-cell__dow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(27, 42, 107, 0.1);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
}

.date-cell__date {
  font-weight: 900;
}

.empty-state {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.empty-state__title {
  font-weight: 900;
  color: var(--navy);
}

.empty-state__sub {
  margin-top: 6px;
  opacity: 0.75;
  font-size: 13px;
}

/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 900px) {
  .form-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .toggles {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .portal-nav__inner {
    gap: 10px;
    padding: 10px 12px;
  }

  .portal-brand {
    min-width: auto;
  }

  .portal-brand__name {
    font-size: 13px;
  }

  .portal-brand__sub {
    font-size: 11px;
  }

  .portal-logo {
    width: 28px;
  }

  .portal-center,
  .portal-right {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid 1px solid rgba(27, 42, 107, 0.3);
    border-radius: 999px;
    background: rgba(27, 42, 107, 0.12);
    color: var(--navy);  /* dark icon instead of white */
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .nav-toggle:hover {
    background: rgba(27, 42, 107, 0.2);
    transform: translateY(-1px);
  }

  .nav-toggle:active {
    transform: translateY(0);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(9, 16, 44, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    padding: 14px;
    z-index: 9999;
    background: rgba(27, 42, 107, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: -14px 0 30px rgba(0, 0, 0, 0.22);
    transform: translateX(105%);
    transition: transform 0.24s ease;
  }

  body.nav-open .mobile-drawer {
    transform: translateX(0);
  }

  .mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
  }

  .mobile-drawer__title {
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    font-weight: 800;
    transition: background 0.15s ease, transform 0.15s ease;
  }

  .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .mobile-nav-link:active {
    transform: translateY(0);
  }

  .mobile-drawer__footer {
    margin-top: auto;
    padding-top: 12px;
  }

  .mobile-logout {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .portal-main {
    padding: 14px 12px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tile-large,
  .tile-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .tile {
    padding: 16px;
    border-radius: 18px;
  }

  .week-row {
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .dot-row {
    gap: 10px;
    flex-wrap: wrap;
  }

  .day-dot {
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mcard {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
  }

  .mcard__title {
    font-weight: 900;
    color: var(--navy);
  }

  .mcard__sub {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.75;
  }

  .mcard__body {
    margin-top: 10px;
    line-height: 1.35;
  }

  .mcard__actions,
  .user-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .mcard__actions a,
  .mcard__actions form,
  .user-actions a,
  .user-actions form {
    width: 100%;
  }

  .mcard__actions .mini-pill,
  .mcard__actions form button,
  .user-actions .mini-pill,
  .user-actions form button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .inline-form {
    display: block;
    width: 100%;
  }

  .muser-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
  }

  .muser-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    white-space: nowrap;
  }

  .mcard--inactive {
    opacity: 0.75;
  }

  .users-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field,
  .filter-input,
  .filter-select,
  .filter-actions,
  .users-toolbar__right,
  .btn,
  .btn-wide {
    width: 100%;
  }

  .filter-actions {
    flex-direction: column;
  }

  .users-toolbar__right {
    justify-content: stretch;
  }

  .users-table-card {
    overflow-x: auto;
  }
}

@media (min-width: 821px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}
.portal-nav {
  background-color: rgba(127, 178, 214, 0.7);
}