@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --navy-950: #071a2b;
  --navy-900: #0b2339;
  --navy-800: #123a5c;
  --navy-700: #175278;
  --teal-600: #0aa99a;
  --teal-500: #13c3b2;
  --sky-500: #2c9cf0;
  --ink: #132238;
  --muted: #6c7d90;
  --muted-light: #8d9bae;
  --canvas: #f2f6fb;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --line: #dce5ef;
  --line-strong: #cbd7e4;
  --success: #087a5b;
  --warning: #9a6810;
  --danger: #b53350;
  --info: #2463ae;
  --sidebar-width: 220px;
  --shadow-sm: 0 8px 22px rgba(18, 58, 92, 0.05);
  --shadow-md: 0 18px 45px rgba(18, 58, 92, 0.09);
  font-family: "IBM Plex Sans", Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  background:
    radial-gradient(circle at 82% -8%, rgba(44, 156, 240, 0.10), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0, var(--canvas) 34rem);
  font-size: 14px;
  line-height: 1.45;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

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

/* Zion-style navigation shell */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar-width);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #eef7ff;
  background:
    radial-gradient(circle at -15% 3%, rgba(44, 156, 240, 0.24), transparent 15rem),
    radial-gradient(circle at 10% 100%, rgba(19, 195, 178, 0.14), transparent 16rem),
    linear-gradient(180deg, #123b5f 0%, #0d2e4a 56%, #091f33 100%);
  box-shadow: 8px 0 28px rgba(7, 26, 43, 0.08);
}

.brand-lockup {
  width: 100%;
  padding: 0 5px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: transparent;
  text-align: left;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy-800);
  background: linear-gradient(145deg, #ffffff, #ddfbf7);
  box-shadow: 0 10px 24px rgba(4, 15, 26, 0.28);
  font: 800 1.18rem/1 Manrope, sans-serif;
}
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { font: 800 0.94rem/1.2 Manrope, sans-serif; }
.brand-copy small { color: rgba(238, 247, 255, 0.61); font-size: 0.67rem; white-space: nowrap; }

.sidebar-context {
  margin: 20px 2px 15px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.055);
}
.sidebar-context label,
.nav-section-label {
  color: rgba(238, 247, 255, 0.48);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sidebar-context select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: 0;
  color: #f6fbff;
  background: #173f62;
  font-size: 0.73rem;
}
.sidebar-context select:focus { border-color: rgba(92, 224, 211, 0.68); }
.sidebar-context option,
.sidebar-context optgroup { color: var(--ink); background: #fff; }
.sidebar-context > span { color: rgba(238, 247, 255, 0.62); font-size: 0.65rem; }

.side-nav { min-height: 320px; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 247, 255, 0.72);
  background: transparent;
  text-align: left;
  font: 600 0.77rem/1 Manrope, sans-serif;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-item.is-active {
  color: #fff;
  background: linear-gradient(110deg, rgba(19, 195, 178, 0.25), rgba(44, 156, 240, 0.17));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 8px 20px rgba(3, 14, 25, 0.13);
}
.nav-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-badge {
  min-width: 20px;
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: #d44b65;
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
}
.nav-divider { height: 1px; margin: 13px 8px 11px; display: block; background: rgba(255, 255, 255, 0.1); }
.nav-section-label { margin: 0 10px 5px; }
.settings-nav { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0 0 10px 10px; }

.content-shell { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 82px;
  padding: 14px 25px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.08);
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(249, 252, 255, 0.88);
  backdrop-filter: blur(15px);
}
.topbar-copy { min-width: 0; flex: 1; }
.eyebrow {
  margin: 0;
  color: var(--muted-light);
  font: 700 0.6rem/1.25 Manrope, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.topbar h1 { margin: 3px 0 1px; font: 800 1.32rem/1.15 Manrope, sans-serif; }
.topbar-copy > p:last-child { margin: 0; color: var(--muted); font-size: 0.72rem; }
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.sync-label { margin-right: 3px; color: var(--muted-light); font-size: 0.66rem; white-space: nowrap; }
.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #52667b;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.icon-btn:hover { border-color: #b9cddd; color: var(--navy-700); transform: translateY(-1px); }
.icon-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.icon-btn svg { width: 18px; height: 18px; }
.mobile-menu-btn { display: none; }
.icon-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #f9fcff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d44965;
  font-size: 0.51rem;
  font-weight: 800;
}
.profile-menu-wrap { position: relative; }
.profile-chip { min-height: 38px; margin-left: 3px; padding: 0 0 0 9px; border: 0; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: transparent; text-align: left; }
.profile-chip-button { cursor: pointer; }
.profile-chip-button:hover .profile-avatar { box-shadow: 0 0 0 4px rgba(19, 195, 178, 0.11); }
.profile-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--teal-600), var(--sky-500)); font: 800 0.8rem Manrope, sans-serif; }
.profile-copy { display: grid; gap: 0; }
.profile-copy strong { font-size: 0.7rem; }
.profile-copy small { color: var(--muted-light); font-size: 0.61rem; }
.profile-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 245px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(8, 30, 50, 0.18); }
.profile-menu-head { padding: 13px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.profile-menu-head strong { font-size: 0.72rem; }
.profile-menu-head span { overflow: hidden; color: var(--muted); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-action { width: 100%; min-height: 40px; padding: 0 14px; border: 0; display: flex; align-items: center; justify-content: space-between; color: var(--danger); background: #fff; font-size: 0.68rem; font-weight: 700; text-align: left; }
.profile-menu-action:hover { background: rgba(181, 51, 80, 0.05); }

.notification-wrap { position: relative; }
.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: min(330px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 55px rgba(8, 30, 50, 0.18);
}
.notification-panel-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.notification-panel-head strong { font: 700 0.78rem Manrope, sans-serif; }
.notification-panel-head > span { display: grid; gap: 1px; }
.notification-panel-head small { color: var(--muted); font-size: 0.6rem; }
.notification-seen-all { padding: 5px 7px; border: 0; border-radius: 7px; color: var(--navy-700); background: #eef5fa; font-size: 0.59rem; font-weight: 700; }
.notification-seen-all:hover { background: #e4eef5; }
.notification-item { width: 100%; min-height: 52px; padding: 0 8px 0 0; border: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 5px; background: #fff; text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-soft); }
.notification-open { min-width: 0; min-height: 51px; padding: 8px 6px 8px 14px; border: 0; display: flex; flex: 1; align-items: center; justify-content: space-between; background: transparent; text-align: left; }
.notification-open > span:first-child { display: flex; align-items: baseline; gap: 8px; }
.notification-item strong { color: var(--danger); font: 800 0.86rem Manrope, sans-serif; }
.notification-item small { color: var(--muted); font-size: 0.68rem; }
.notification-clear { padding: 5px 7px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 0.58rem; font-weight: 700; }
.notification-clear:hover { color: var(--danger); background: rgba(181, 51, 80, 0.07); }
.notification-empty { min-height: 132px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--success); text-align: center; }
.notification-empty > span { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 122, 91, 0.1); font-weight: 800; }
.notification-empty strong { font-size: 0.7rem; }
.notification-empty small { color: var(--muted); font-size: 0.6rem; }

/* Page structure and tabs */
.page-shell { width: 100%; max-width: 1540px; margin: 0 auto; padding: 0 23px 30px; flex: 1; }
.page-tabs {
  position: sticky;
  top: 82px;
  z-index: 22;
  min-height: 54px;
  margin: 0 -2px 16px;
  padding: 10px 2px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(246, 250, 254, 0.97) 72%, rgba(246, 250, 254, 0));
  scrollbar-width: none;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tab {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font: 700 0.72rem Manrope, sans-serif;
  white-space: nowrap;
}
.page-tab:hover { color: var(--navy-700); background: rgba(255, 255, 255, 0.7); }
.page-tab.is-active { border-color: var(--line); color: var(--navy-800); background: #fff; box-shadow: 0 6px 16px rgba(18, 58, 92, 0.07); }
.page-stack { display: grid; gap: 14px; }
.page-grid { display: grid; gap: 14px; }
.page-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.surface-panel,
.institution-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}
.surface-panel { padding: 16px; }
.panel-head,
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-head { min-height: 31px; margin-bottom: 13px; align-items: center; }
.panel-head h2,
.card-head h2 { margin: 0; font: 750 0.91rem/1.3 Manrope, sans-serif; }
.panel-head > div h2 { margin-bottom: 3px; }
.helper-text { margin: 0; color: var(--muted); font-size: 0.68rem; }
.empty-state { margin: 0; padding: 28px 10px; color: var(--muted); text-align: center; }
.empty-success { min-height: 235px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--success); text-align: center; }
.empty-success > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 122, 91, 0.1); font-size: 1.1rem; }
.empty-success strong { font: 750 0.88rem Manrope, sans-serif; }
.empty-success p { margin: 0; color: var(--muted); font-size: 0.7rem; }
.dashboard-greeting { min-height: 17px; margin: 4px 0 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font: 500 0.76rem/1.2 Manrope, sans-serif !important; }
.dashboard-greeting-lead { color: transparent; background: linear-gradient(135deg, var(--teal-600), var(--sky-500) 52%, #7768eb); background-clip: text; -webkit-background-clip: text; font-weight: 700; }
.dashboard-greeting-tail { color: var(--muted); font-weight: 400; }
.action-queue { width: 100%; min-height: 58px; padding: 10px 13px; border: 1px solid rgba(239, 174, 58, 0.24); border-radius: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; color: var(--ink); background: linear-gradient(110deg, rgba(239, 174, 58, 0.1), rgba(255, 255, 255, 0.96) 62%); box-shadow: var(--shadow-sm); text-align: left; }
.action-queue:hover { border-color: rgba(239, 174, 58, 0.45); transform: translateY(-1px); }
.action-queue-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--warning); background: rgba(239, 174, 58, 0.16); font: 800 0.8rem Manrope, sans-serif; }
.action-queue > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.action-queue strong { font-size: 0.72rem; }
.action-queue small { overflow: hidden; color: var(--muted); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }
.action-queue-arrow { color: var(--muted); font-size: 1.2rem; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.summary-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-card {
  min-height: 102px;
  padding: 13px;
  border: 1px solid rgba(18, 58, 92, 0.07);
  border-radius: 12px;
  display: grid;
  align-content: space-between;
  gap: 3px;
  background: linear-gradient(145deg, rgba(19, 195, 178, 0.1), #fff 68%);
}
.summary-card:nth-child(2) { background: linear-gradient(145deg, rgba(44, 156, 240, 0.11), #fff 68%); }
.summary-card:nth-child(3) { background: linear-gradient(145deg, rgba(119, 104, 235, 0.1), #fff 68%); }
.summary-card:nth-child(4) { background: linear-gradient(145deg, rgba(239, 174, 58, 0.12), #fff 68%); }
.summary-card > span { color: var(--muted); font-size: 0.66rem; font-weight: 600; }
.summary-card strong { overflow-wrap: anywhere; font: 800 1.25rem/1.1 Manrope, sans-serif; }
.summary-card small { color: var(--muted-light); font-size: 0.62rem; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-strip > div { min-width: 0; padding: 10px 11px; border-radius: 11px; background: #f5f8fc; }
.stat-strip strong,
.stat-strip span { display: block; }
.stat-strip strong { font: 800 0.96rem Manrope, sans-serif; }
.stat-strip span { margin-top: 1px; color: var(--muted); font-size: 0.61rem; }
.surface-panel > .stat-strip + .helper-text { margin-top: 10px; }

.readiness-list,
.compact-list { display: grid; }
.readiness-row,
.compact-row {
  width: 100%;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: center;
  background: transparent;
  text-align: left;
}
.readiness-row:last-child,
.compact-row:last-child { border-bottom: 0; }
.readiness-row:hover,
.compact-row:hover { background: #f8fbfe; }
.readiness-row { grid-template-columns: minmax(0, 1fr) 70px 70px; gap: 10px; }
.compact-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.readiness-row > span,
.compact-row > span:first-child { min-width: 0; display: grid; gap: 2px; }
.readiness-row > span:not(:first-child) { text-align: right; }
.readiness-row strong,
.compact-row strong { overflow: hidden; text-overflow: ellipsis; font-size: 0.73rem; white-space: nowrap; }
.readiness-row small,
.compact-row small { overflow: hidden; color: var(--muted); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }

.institution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.institution-card { padding: 16px; display: grid; gap: 14px; }
.card-head > div { min-width: 0; }
.card-head h2 { margin-top: 3px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.row-actions-start { justify-content: flex-start; flex-wrap: nowrap; }

.status-chip {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #5e6d7e;
  background: #edf2f7;
  font-size: 0.61rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-chip.success { color: var(--success); background: rgba(8, 122, 91, 0.1); }
.status-chip.info { color: var(--info); background: rgba(44, 156, 240, 0.11); }
.status-chip.warning { color: var(--warning); background: rgba(239, 174, 58, 0.16); }
.status-chip.danger { color: var(--danger); background: rgba(181, 51, 80, 0.11); }
.status-chip.neutral { color: #5c6e80; background: #edf2f7; }

.btn {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font: 700 0.7rem Manrope, sans-serif;
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.btn:hover { border-color: #adc5d8; box-shadow: 0 8px 18px rgba(18, 58, 92, 0.09); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 0.65rem; }
.btn-primary { border-color: transparent; color: #fff; background: linear-gradient(115deg, var(--teal-600), #168fbd); }
.btn-secondary { color: var(--navy-700); background: linear-gradient(180deg, #fff, #f7faff); }
.btn-quiet { border-color: transparent; color: var(--navy-700); background: #f2f7fb; }

/* Register, data tables and settings */
.filter-panel { padding-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.42fr); gap: 10px; }
.field { display: grid; gap: 5px; }
.field > span { color: var(--muted); font-size: 0.62rem; font-weight: 700; }
.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 0.72rem;
}
.field input:focus,
.field select:focus { border-color: rgba(10, 169, 154, 0.65); box-shadow: 0 0 0 3px rgba(19, 195, 178, 0.1); }
.selection-banner {
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(19, 195, 178, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(19, 195, 178, 0.06);
}
.selection-banner > span { display: grid; gap: 1px; }
.selection-banner strong { font-size: 0.7rem; }
.selection-banner small { color: var(--muted); font-size: 0.61rem; }

.table-wrap { width: 100%; overflow-x: auto; }
.surface-panel > .table-wrap { margin: 3px -16px -16px; width: calc(100% + 32px); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th { padding: 9px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #758598; background: #f7f9fc; text-align: left; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.065em; text-transform: uppercase; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #304258; vertical-align: middle; font-size: 0.68rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-session] { cursor: pointer; }
tbody tr[data-session]:hover { background: #f8fbfe; }
.primary-cell { min-width: 145px; display: grid; gap: 1px; }
.primary-cell strong { overflow: hidden; color: var(--ink); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.primary-cell small { color: var(--muted); font-size: 0.59rem; }
.money { color: var(--ink); font-weight: 700; white-space: nowrap; }
.pagination { padding: 12px 0 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.pagination > span { color: var(--muted); font-size: 0.64rem; }
.detail-list { display: grid; }
.detail-list > div { min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); font-size: 0.66rem; }
.detail-list strong { font-size: 0.69rem; text-align: right; }

/* Booking details */
.modal-shell { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr minmax(430px, 600px); }
.modal-backdrop { border: 0; background: rgba(5, 20, 34, 0.48); backdrop-filter: blur(3px); }
.modal-card { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #f5f8fc; box-shadow: -22px 0 60px rgba(7, 26, 43, 0.25); }
.modal-head { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: linear-gradient(125deg, var(--navy-800), var(--navy-700)); }
.modal-head .eyebrow { color: rgba(255, 255, 255, 0.58); }
.modal-head h2 { margin: 3px 0 0; font: 750 1.05rem Manrope, sans-serif; }
.modal-head .icon-btn { border-color: rgba(255, 255, 255, 0.18); color: #fff; background: rgba(255, 255, 255, 0.07); }
.modal-body { flex: 1; padding: 15px 18px 22px; overflow-y: auto; display: grid; align-content: start; gap: 11px; }
.modal-actions { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; background: #fff; }
.modal-card-compact { width: 100%; max-width: 520px; justify-self: end; }
.stack-form { gap: 13px; }
.form-two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; top: 50%; right: 5px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; transform: translateY(-50%); color: var(--navy-700); background: #eef4f8; font-size: 0.6rem; font-weight: 700; }
.password-hint { margin: -5px 0 0; color: var(--muted); font-size: 0.62rem; }
.modal-form-actions { margin-top: 3px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.error-text { margin: 0; padding: 9px 10px; border: 1px solid rgba(181, 51, 80, 0.16); border-radius: 8px; color: var(--danger); background: rgba(181, 51, 80, 0.06); font-size: 0.66rem; }
.detail-section { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.detail-section h3 { margin: 0 0 10px; font: 750 0.78rem Manrope, sans-serif; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 15px; }
.detail-item { min-width: 0; display: grid; gap: 2px; }
.detail-item span { color: var(--muted); font-size: 0.6rem; }
.detail-item strong { overflow-wrap: anywhere; font-size: 0.69rem; }
.detail-wide { grid-column: 1 / -1; }
.message-copy { margin: 11px 0 0; padding: 11px; border-radius: 9px; overflow-wrap: anywhere; color: #26465c; background: #eef7f7; font: 400 0.67rem/1.5 "IBM Plex Sans", sans-serif; white-space: pre-wrap; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; max-width: min(360px, calc(100vw - 30px)); padding: 11px 14px; border-radius: 10px; color: #fff; background: var(--navy-950); box-shadow: 0 16px 35px rgba(7, 26, 43, 0.25); font-size: 0.7rem; font-weight: 600; }
.toast.is-error { background: #932f48; }
.portal-footer { padding: 8px 20px 18px; color: #95a2b1; text-align: center; font-size: 0.59rem; }
.portal-footer strong { color: #697b8d; letter-spacing: 0.06em; }
.mobile-sidebar-backdrop { display: none; }
.print-sheet { display: none; }

/* Zion-style portal sign in */
.login-page { overflow: hidden; background: #f5f8fc; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 0.95fr) minmax(480px, 1.05fr); }
.login-visual { position: relative; overflow: hidden; padding: 54px; display: flex; align-items: flex-end; color: #fff; background: radial-gradient(circle at 15% 12%, rgba(44, 156, 240, 0.28), transparent 18rem), linear-gradient(145deg, #123e63 0%, #0d2d49 58%, #082139 100%); }
.login-visual::after { content: ""; position: absolute; right: -11rem; bottom: -12rem; width: 31rem; height: 31rem; border: 5rem solid rgba(19, 195, 178, 0.08); border-radius: 50%; }
.login-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.login-orb-one { top: 12%; right: 15%; width: 130px; height: 130px; border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.025); }
.login-orb-two { top: 29%; right: 32%; width: 16px; height: 16px; background: var(--teal-500); box-shadow: 0 0 32px rgba(19, 195, 178, 0.8); }
.login-visual-copy { position: relative; z-index: 2; max-width: 520px; }
.login-brand-mark, .mobile-login-mark { width: 48px; height: 48px; margin-bottom: 27px; border-radius: 14px; display: grid; place-items: center; color: var(--navy-800); background: linear-gradient(145deg, #fff, #ddfbf7); box-shadow: 0 12px 28px rgba(3, 14, 25, 0.25); font: 800 1.25rem Manrope, sans-serif; }
.login-visual .eyebrow { color: rgba(255, 255, 255, 0.55); }
.login-visual h1 { margin: 10px 0 13px; font: 800 clamp(2rem, 4vw, 3.6rem)/1.03 Manrope, sans-serif; letter-spacing: -0.05em; }
.login-visual-copy > p:last-child { max-width: 430px; margin: 0; color: rgba(237, 247, 255, 0.67); font-size: 0.82rem; }
.login-form-wrap { padding: 40px; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 90% 0%, rgba(44, 156, 240, 0.08), transparent 22rem), #f8fbff; }
.login-card { width: min(400px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 17px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 65px rgba(18, 58, 92, 0.11); }
.login-card-head { display: grid; gap: 3px; }
.login-card-head h2 { margin: 4px 0 2px; font: 800 1.45rem Manrope, sans-serif; }
.login-card-head > p:last-child { margin: 0; color: var(--muted); font-size: 0.7rem; }
.mobile-login-mark { display: none; }
.btn-block { width: 100%; min-height: 41px; }
.login-help { margin: -4px 0 0; color: var(--muted-light); font-size: 0.61rem; text-align: center; }
.login-footer { margin-top: 24px; color: var(--muted-light); font-size: 0.59rem; text-align: center; }
.login-footer strong { color: var(--muted); letter-spacing: 0.05em; }

@media (max-width: 1120px) {
  .summary-grid.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 840px) {
  .login-page { overflow-y: auto; }
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-wrap { min-height: 100vh; padding: 30px 18px; }
  .mobile-login-mark { margin-bottom: 14px; display: grid; }
  .sidebar { transform: translateX(-103%); transition: transform 0.2s ease; }
  body.mobile-sidebar-open .sidebar { transform: translateX(0); }
  .mobile-sidebar-backdrop { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(5, 20, 34, 0.42); }
  body.mobile-sidebar-open .mobile-sidebar-backdrop { display: block; }
  .content-shell { margin-left: 0; }
  .mobile-menu-btn { display: grid; }
  .topbar { padding: 12px 15px; }
  .page-shell { padding-right: 13px; padding-left: 13px; }
  .page-grid.two-up,
  .institution-grid { grid-template-columns: 1fr; }
  .profile-copy,
  .sync-label { display: none; }
  .profile-chip { padding-left: 7px; }
}

@media (max-width: 580px) {
  .login-form-wrap { padding: 22px 13px; }
  .login-card { padding: 23px 19px; border-radius: 15px; }
  .topbar { min-height: 70px; gap: 9px; }
  .topbar h1 { font-size: 1.08rem; }
  .topbar-copy > p:last-child,
  .topbar-copy .eyebrow { display: none; }
  .topbar-tools { gap: 5px; }
  .profile-chip { margin-left: 0; }
  .profile-avatar { width: 32px; height: 32px; }
  .page-tabs { top: 70px; margin-bottom: 12px; }
  .page-shell { padding-bottom: 22px; }
  .surface-panel,
  .institution-card { border-radius: 13px; }
  .surface-panel { padding: 13px; }
  .summary-grid,
  .summary-grid.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { min-height: 92px; padding: 11px; }
  .summary-card strong { font-size: 1.05rem; }
  .stat-strip { gap: 5px; }
  .stat-strip > div { padding: 9px 7px; }
  .filter-grid { grid-template-columns: 1fr; }
  .selection-banner { align-items: flex-start; flex-direction: column; }
  .selection-banner .row-actions { width: 100%; justify-content: flex-start; }
  .readiness-row { grid-template-columns: minmax(0, 1fr) 52px 52px; gap: 6px; }
  .surface-panel > .table-wrap { margin-right: -13px; margin-bottom: -13px; margin-left: -13px; width: calc(100% + 26px); }
  .modal-shell { grid-template-columns: 1fr; }
  .modal-backdrop { display: none; }
  .modal-card { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-wide { grid-column: auto; }
  .form-two-up { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { color: #111; background: #fff; font-size: 10px; }
  .app-shell,
  .modal-shell,
  .toast { display: none !important; }
  .print-sheet[aria-hidden="false"] { display: block; }
  .print-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #123a5c; display: flex; align-items: flex-start; justify-content: space-between; }
  .print-head p { margin: 0 0 3px; color: #557084; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
  .print-head h1 { margin: 0 0 3px; font: 800 20px Manrope, sans-serif; }
  .print-head span { color: #486074; font-size: 10px; }
  .print-summary { margin-bottom: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .print-summary > div { padding: 10px; border: 1px solid #cfd9e3; border-radius: 7px; }
  .print-summary strong,
  .print-summary span { display: block; }
  .print-summary strong { font-size: 16px; }
  .print-summary span { color: #617181; font-size: 8px; }
  .print-block { margin-top: 14px; break-inside: avoid; }
  .print-block h2 { margin: 0 0 7px; font-size: 12px; }
  .print-block ul { margin: 0; padding-left: 17px; }
  .print-sheet table { min-width: 0; font-size: 8px; }
  .print-sheet th { padding: 6px; border-color: #bfcbd6; color: #33485a; background: #edf2f6 !important; font-size: 7px; }
  .print-sheet td { padding: 6px; border-color: #d7e0e8; font-size: 8px; }
  .print-sheet footer { margin-top: 16px; padding-top: 8px; border-top: 1px solid #d7e0e8; color: #71808e; font-size: 7px; text-align: center; }
}
