:root {
  --ink: #171e60;
  --ink-soft: #535d7d;
  --muted: #8994a8;
  --line: #e7eaf0;
  --panel: #ffffff;
  --surface: #f5f7fa;
  --navy: #171e60;
  --teal: #3342a0;
  --teal-dark: #171e60;
  --teal-soft: #eff1ff;
  --blue: #4264c5;
  --blue-soft: #eef2ff;
  --amber: #e8a23c;
  --amber-soft: #fff6e7;
  --red: #e46666;
  --red-soft: #fff0f0;
  --purple: #7e6ce0;
  --purple-soft: #f1efff;
  --shadow: 0 10px 28px rgba(24, 38, 62, 0.07);
  --shadow-lg: 0 24px 70px rgba(16, 30, 51, 0.18);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 250px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
  color: #dce4ef;
  background:
    radial-gradient(circle at 16% 8%, rgba(91, 108, 216, 0.22), transparent 26%),
    linear-gradient(180deg, #171e60 0%, #111746 100%);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  margin-bottom: 29px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, #5264c8, #171e60);
  box-shadow: 0 8px 18px rgba(23, 30, 96, 0.24);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.sidebar-logo-shell {
  width: 34px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.sidebar-logo-shell img {
  width: 31px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  color: white;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-copy span {
  margin-top: 4px;
  color: #8494ab;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item,
.help-button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-item {
  position: relative;
  min-height: 43px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 10px;
  color: #aab6c7;
  font-size: 13px;
  text-align: left;
  transition: 180ms ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: #d7aa5b;
}

.nav-icon,
.nav-icon svg,
[data-icon] svg {
  width: 18px;
  height: 18px;
}

.nav-count {
  min-width: 25px;
  padding: 2px 7px;
  border-radius: 10px;
  color: #9ba9bb;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  text-align: center;
}

.nav-count.alert {
  color: #ffd9d9;
  background: rgba(229, 100, 100, 0.2);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7aa5b;
}

.nav-section-label {
  padding: 0 13px;
  margin: 31px 0 12px;
  color: #64748a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.sidebar-footer {
  margin-top: auto;
  padding: 24px 12px 0;
}

.storage-copy {
  display: flex;
  justify-content: space-between;
  color: #8d9bad;
  font-size: 10px;
}

.storage-copy strong {
  color: #b9c5d3;
}

.storage-track {
  height: 4px;
  margin: 9px 0 8px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
}

.storage-track span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #5264c8, #d7aa5b);
}

.sidebar-footer p {
  margin: 0 0 19px;
  color: #69798e;
  font-size: 9px;
}

.help-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #8796aa;
  font-size: 11px;
  text-align: left;
}

.main-panel {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
}

.search-box {
  width: min(410px, 40vw);
  height: 39px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f6f8;
  color: #8b96a8;
  transition: 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(51, 66, 160, 0.4);
  background: white;
  box-shadow: 0 0 0 3px rgba(51, 66, 160, 0.1);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #9ba5b3;
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid #e0e4ea;
  border-radius: 5px;
  color: #9ca6b4;
  background: white;
  font-family: inherit;
  font-size: 9px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: #f3f5f8;
}

.mobile-menu {
  display: none;
  margin-right: 8px;
}

.notification-button {
  position: relative;
  color: #657288;
}

.notification-button i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 2px solid white;
  border-radius: 50%;
  background: #ef6a69;
}

.top-divider {
  width: 1px;
  height: 27px;
  margin: 0 13px;
  background: var(--line);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.profile-copy {
  display: grid;
  min-width: 69px;
  text-align: left;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.avatar-teal { background: linear-gradient(145deg, #23bda1, #148a78); }
.avatar-blue { background: linear-gradient(145deg, #7098ed, #486fd0); }
.avatar-purple { background: linear-gradient(145deg, #9a8ae9, #7160c8); }
.avatar-amber { background: linear-gradient(145deg, #edb65c, #ce8730); }
.avatar-red { background: linear-gradient(145deg, #ed8a8a, #cf5a5a); }
.avatar-slate { background: linear-gradient(145deg, #8090a8, #5d6a7e); }

.page-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 29px 34px 52px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.heading-copy h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.heading-copy p strong {
  color: var(--teal-dark);
  font-weight: 600;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.primary-button,
.secondary-button,
.ghost-button,
.compact-button {
  border-radius: 9px;
  cursor: pointer;
  transition: 160ms ease;
}

.primary-button,
.secondary-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--teal);
  color: white;
  background: var(--teal);
  box-shadow: 0 6px 14px rgba(23, 30, 96, 0.18);
}

.primary-button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid #dfe4ea;
  color: #566277;
  background: white;
}

.secondary-button:hover {
  border-color: #ccd3dc;
  background: #fafbfc;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid #e9ecf1;
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 14px rgba(28, 42, 66, 0.035);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--stat-soft);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #768298;
  font-size: 10px;
}

.stat-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--stat-color);
  background: var(--stat-soft);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 12px;
}

.stat-value strong {
  font-family: Georgia, serif;
  font-size: 27px;
}

.trend {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-size: 9px;
}

.trend.warning {
  color: var(--red);
}

.stat-card p {
  margin: 7px 0 0;
  color: #a0a9b7;
  font-size: 9px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(290px, 0.84fr);
  gap: 16px;
}

.panel {
  border: 1px solid #e8ebf0;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 18px rgba(27, 41, 64, 0.035);
}

.panel-header {
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f3;
}

.panel-title h2 {
  margin: 0;
  font-size: 13px;
}

.panel-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 19px 20px 11px;
}

.pipeline-step {
  position: relative;
  padding: 12px 12px 10px;
  border-radius: 10px;
  background: #f7f9fb;
}

.pipeline-step::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -7px;
  width: 7px;
  height: 1px;
  background: #e2e6eb;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step span {
  color: #758197;
  font-size: 9px;
}

.pipeline-step strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 19px;
}

.pipeline-bar {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8ecf1;
}

.pipeline-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--step-color);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  height: 39px;
  padding: 0 12px;
  color: #909aaa;
  background: #fbfcfd;
  font-size: 9px;
  font-weight: 600;
  text-align: left;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 20px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 20px;
}

.data-table td {
  height: 57px;
  padding: 0 12px;
  border-top: 1px solid #f0f2f5;
  color: #58657a;
  font-size: 10px;
}

.data-table tbody tr {
  cursor: pointer;
  transition: 140ms ease;
}

.data-table tbody tr:hover {
  background: #fbfdfd;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.student-cell .avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.student-cell strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
}

.student-cell span {
  display: block;
  margin-top: 3px;
  color: #9ba5b4;
  font-size: 8px;
}

.school-name {
  max-width: 170px;
  overflow: hidden;
  color: #39465c;
  text-overflow: ellipsis;
}

.school-name small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #9aa4b2;
  font-size: 8px;
  text-overflow: ellipsis;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 8px;
  font-weight: 600;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-green { color: #118875; background: #e9f8f4; }
.status-blue { color: #5377cc; background: #edf3ff; }
.status-amber { color: #c08028; background: #fff5e5; }
.status-red { color: #cf5d5d; background: #fff0f0; }
.status-purple { color: #735fc3; background: #f1efff; }
.status-gray { color: #7e8998; background: #f1f3f6; }

.deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6d788b;
  font-size: 9px;
}

.deadline.urgent {
  color: #db6262;
}

.task-list {
  padding: 7px 20px 5px;
}

.task-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 65px;
  border-bottom: 1px solid #f0f2f5;
}

.task-item:last-child {
  border-bottom: 0;
}

.task-kind {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--task-color);
  background: var(--task-soft);
}

.task-copy {
  min-width: 0;
}

.task-copy strong {
  display: block;
  overflow: hidden;
  color: #3b485e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #929cab;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-time {
  max-width: 112px;
  overflow: hidden;
  color: #9da6b3;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-time.overdue {
  color: #de6464;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 16px 20px 19px;
}

.quick-action {
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #edf0f3;
  border-radius: 11px;
  background: #fbfcfd;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.quick-action:hover {
  border-color: #cfe8e3;
  background: #f8fdfc;
  transform: translateY(-1px);
}

.quick-action-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--action-color);
  background: var(--action-soft);
}

.quick-action strong {
  display: block;
  color: #4d5a6e;
  font-size: 9px;
}

.quick-action span {
  display: block;
  margin-top: 4px;
  color: #a0a8b5;
  font-size: 7px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #edf0f3;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.student-table {
  min-width: 980px;
}

.application-table {
  min-width: 940px;
}

.deferral-table {
  min-width: 860px;
}

.deferral-history-table,
.email-alert-table,
.material-table {
  min-width: 980px;
}

.application-table th:nth-child(2),
.application-table td:nth-child(2),
.deferral-table th:nth-child(2),
.deferral-table td:nth-child(2),
.deferral-history-table th:nth-child(3),
.deferral-history-table td:nth-child(3),
.email-alert-table th:nth-child(3),
.email-alert-table td:nth-child(3),
.material-table th:nth-child(4),
.material-table td:nth-child(4) {
  white-space: normal;
}

.application-table th:last-child,
.application-table td:last-child,
.deferral-table th:last-child,
.deferral-table td:last-child {
  min-width: 150px;
}

.deferral-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.deferral-toolbar > div:first-child {
  display: grid;
  gap: 5px;
}

.deferral-toolbar strong {
  color: var(--ink);
  font-size: 13px;
}

.deferral-toolbar span {
  color: var(--ink-soft);
  font-size: 10px;
}

.deferral-ready {
  padding: 14px;
  border: 1px solid rgba(38, 136, 121, 0.22);
  border-radius: 8px;
  background: var(--teal-soft);
}

.deferral-ready strong {
  display: block;
  color: var(--teal-dark);
  font-size: 13px;
}

.deferral-ready p {
  margin: 5px 0 0;
  color: #51736e;
  font-size: 10px;
  line-height: 1.55;
}

.modal textarea[name="body"] {
  min-height: 260px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.error-text {
  color: var(--red) !important;
}

.filter-button,
.view-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  color: #657287;
  background: white;
  font-size: 9px;
  cursor: pointer;
}

.view-button {
  width: 34px;
  justify-content: center;
  padding: 0;
}

.view-button.active {
  color: var(--teal-dark);
  border-color: #cce9e3;
  background: var(--teal-soft);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f3;
}

.tab-button {
  position: relative;
  height: 100%;
  border: 0;
  color: #8b95a5;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.tab-button.active {
  color: var(--ink);
  font-weight: 600;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--teal);
}

.student-page-table .data-table td {
  height: 65px;
}

.progress-cell {
  width: 100px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #8e98a7;
  font-size: 8px;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf0f3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.forms-hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 28px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #dfece9;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 50%, rgba(35, 183, 158, 0.2), transparent 25%),
    linear-gradient(135deg, #f0fbf8 0%, #f8fcfb 55%, #eef8f6 100%);
}

.forms-hero-copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.forms-hero h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
}

.forms-hero p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #6f7d90;
  font-size: 10px;
  line-height: 1.7;
}

.hero-metric {
  min-width: 180px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(27, 79, 70, 0.08);
  backdrop-filter: blur(8px);
}

.hero-metric span {
  color: #829087;
  font-size: 9px;
}

.hero-metric strong {
  display: block;
  margin: 5px 0 7px;
  font-family: Georgia, serif;
  font-size: 24px;
}

.hero-metric small {
  color: var(--teal-dark);
  font-size: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-card {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid #e7ebef;
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 15px rgba(27, 42, 65, 0.035);
  cursor: pointer;
  transition: 180ms ease;
}

.form-card:hover {
  border-color: #cce6e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.form-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.form-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--form-color);
  background: var(--form-soft);
}

.form-card-menu {
  border: 0;
  color: #9aa4b2;
  background: transparent;
  cursor: pointer;
}

.form-card h3 {
  margin: 16px 0 7px;
  font-size: 12px;
}

.form-card p {
  min-height: 34px;
  margin: 0;
  color: #8d97a6;
  font-size: 9px;
  line-height: 1.6;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  color: #8f99a8;
  font-size: 8px;
}

.form-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.form-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #eff1f4;
}

.form-status {
  padding: 4px 8px;
  border-radius: 10px;
  color: #118875;
  background: #eaf8f5;
  font-size: 8px;
}

.form-status.draft {
  color: #8a7482;
  background: #f2eff2;
}

.form-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 8px;
  font-weight: 600;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-column {
  min-height: 480px;
  padding: 13px;
  border-radius: 14px;
  background: #f0f3f6;
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #5d697c;
  font-size: 10px;
  font-weight: 600;
}

.kanban-header span {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 8px;
  color: #7d8898;
  background: #e2e6eb;
  font-size: 8px;
}

.kanban-card {
  padding: 14px;
  margin-bottom: 9px;
  border: 1px solid #e5e9ee;
  border-radius: 11px;
  background: white;
  box-shadow: 0 3px 10px rgba(29, 43, 65, 0.035);
}

.kanban-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.kanban-card strong {
  font-size: 10px;
  line-height: 1.45;
}

.priority {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--priority-color);
}

.kanban-card p {
  margin: 8px 0 10px;
  color: #8c96a5;
  font-size: 8px;
  line-height: 1.55;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #909aa8;
  font-size: 8px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #6383ca;
  font-size: 7px;
}

.empty-page {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px dashed #dce2e8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.empty-state {
  max-width: 390px;
  padding: 40px;
  color: #7f8a9b;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 16px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.empty-state h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 16px;
}

.empty-state p {
  margin: 0 0 20px;
  font-size: 10px;
  line-height: 1.7;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  background: rgba(18, 31, 50, 0.36);
  opacity: 0;
  transition: 200ms ease;
}

.drawer-backdrop.open,
.modal-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.student-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(520px, 94vw);
  overflow-y: auto;
  background: white;
  box-shadow: -18px 0 50px rgba(17, 30, 49, 0.16);
  transform: translateX(102%);
  transition: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.student-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.drawer-header strong {
  font-size: 13px;
}

.close-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #7f8999;
  background: #f4f6f8;
  cursor: pointer;
}

.student-hero {
  display: flex;
  gap: 14px;
  padding: 22px;
}

.student-hero .avatar {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.student-hero h2 {
  margin: 2px 0 4px;
  font-size: 17px;
}

.student-hero p {
  margin: 0;
  color: #8a95a5;
  font-size: 9px;
}

.student-tags {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.tag {
  padding: 4px 7px;
  border-radius: 8px;
  color: #67758a;
  background: #f0f3f6;
  font-size: 8px;
}

.student-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 22px 19px;
  border: 1px solid #e8ebef;
  border-radius: 11px;
}

.summary-item {
  padding: 12px;
  border-right: 1px solid #e8ebef;
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item span {
  color: #929cab;
  font-size: 8px;
}

.summary-item strong {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.drawer-section {
  padding: 19px 22px;
  border-top: 1px solid #edf0f3;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h3 {
  margin: 0;
  font-size: 11px;
}

.application-item {
  position: relative;
  padding: 0 0 18px 22px;
}

.application-item:last-child {
  padding-bottom: 0;
}

.application-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--application-color);
  box-shadow: 0 0 0 1px var(--application-color);
}

.application-item::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 4px;
  left: 5px;
  width: 1px;
  background: #e1e5ea;
}

.application-item:last-child::after {
  display: none;
}

.application-item strong {
  display: block;
  font-size: 10px;
}

.application-item p {
  margin: 5px 0 7px;
  color: #8a94a4;
  font-size: 8px;
}

.credential-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e6e9ed;
  border-radius: 10px;
  background: #f8f9fb;
}

.credential-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credential-copy strong {
  display: block;
  font-size: 9px;
}

.credential-copy span {
  display: block;
  margin-top: 3px;
  color: #98a1af;
  font-size: 8px;
}

.missing-list {
  display: grid;
  gap: 8px;
}

.missing-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid #efe6d5;
  border-radius: 9px;
  background: #fffbf4;
  color: #6d624f;
  font-size: 8px;
  line-height: 1.45;
}

.missing-item span:last-child {
  color: #bc812d;
  white-space: nowrap;
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 70;
}

.modal {
  width: min(780px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 17px;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: 200ms ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 11px;
}

.modal-title-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.modal-title-group h2 {
  margin: 0;
  font-size: 14px;
}

.modal-title-group p {
  margin: 4px 0 0;
  color: #8d97a6;
  font-size: 8px;
}

.form-progress {
  padding: 14px 22px;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfd;
}

.form-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #7f8a9b;
  font-size: 8px;
}

.form-progress .progress-track {
  height: 5px;
}

.modal-body {
  max-height: calc(90vh - 205px);
  overflow-y: auto;
  padding: 22px;
}

.form-section-title {
  margin: 0 0 14px;
  font-size: 11px;
}

.form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #5d697c;
  font-size: 9px;
  font-weight: 600;
}

.required {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dde2e8;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 10px;
  transition: 160ms ease;
}

.field input,
.field select {
  height: 38px;
  padding: 0 11px;
}

.field textarea {
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(51, 66, 160, 0.62);
  box-shadow: 0 0 0 3px rgba(51, 66, 160, 0.1);
}

.field-note {
  color: #9aa4b2;
  font-size: 8px;
}

.upload-zone {
  min-height: 105px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed #cdd6df;
  border-radius: 10px;
  color: #8792a3;
  background: #fafbfc;
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover {
  color: var(--teal-dark);
  border-color: #abd9d0;
  background: #f8fdfc;
}

.upload-zone strong {
  display: block;
  margin: 7px 0 4px;
  color: #657286;
  font-size: 9px;
}

.upload-zone span {
  font-size: 8px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a95a4;
  font-size: 8px;
}

.save-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  background: #18302e;
  box-shadow: 0 12px 30px rgba(18, 38, 36, 0.22);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #173b36;
  background: #56d7c0;
}

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 16px 0 40px rgba(17, 30, 49, 0.2);
  }

  .main-panel {
    grid-column: 1;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    padding: 0 18px;
  }

  .page-content {
    padding: 24px 18px 42px;
  }

  .profile-copy,
  .profile-button > svg,
  .search-box kbd {
    display: none;
  }

  .search-box {
    width: min(56vw, 360px);
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .heading-actions {
    justify-content: flex-start;
  }

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

  .pipeline-step::after {
    display: none;
  }

  .forms-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Account menu and student lifecycle */
.profile-menu-wrap {
  position: relative;
}

.profile-button[aria-expanded="true"] {
  background: #f1f4f8;
}

.profile-chevron {
  display: grid;
  width: 16px;
  transition: transform 160ms ease;
}

.profile-button[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 12px);
  right: 0;
  width: 288px;
  padding: 8px;
  border: 1px solid #e4e8ee;
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(35, 46, 75, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.98);
  transform-origin: top right;
  transition: 150ms ease;
}

.profile-menu-wrap .profile-menu.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
}

.profile-menu-head div {
  display: grid;
  min-width: 0;
}

.profile-menu-head strong {
  font-size: 11px;
}

.profile-menu-head small {
  margin-top: 3px;
  overflow: hidden;
  color: #8b96a5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: #596579;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-menu > button:hover {
  color: #26346f;
  background: #f3f5f9;
}

.profile-menu > button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.profile-menu > button > span {
  display: grid;
}

.profile-menu > button strong {
  font-size: 10px;
}

.profile-menu > button small {
  margin-top: 3px;
  color: #929cab;
  font-size: 8px;
}

.profile-menu-divider {
  height: 1px;
  margin: 6px 8px;
  background: #edf0f3;
}

.profile-menu .profile-menu-logout {
  color: #a84c51;
}

.student-filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #f1f3f6;
}

.student-filter-tabs button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #758194;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.student-filter-tabs button span {
  margin-left: 3px;
  color: #9aa3b0;
}

.student-filter-tabs button.active {
  color: #25316f;
  background: white;
  box-shadow: 0 2px 8px rgba(40, 51, 89, .1);
  font-weight: 700;
}

.lifecycle-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.lifecycle-badge.active {
  color: #167a69;
  background: #e7f7f2;
}

.lifecycle-badge.inactive {
  color: #9a6267;
  background: #f7ecee;
}

.student-inactive-row {
  color: #7e8998;
  background: #fbfbfc;
}

.student-inactive-row .school-name,
.student-inactive-row .progress-cell {
  opacity: .7;
}

.inactive-student-note {
  margin: 0 22px 18px;
  padding: 13px 14px;
  border: 1px solid #ecdadd;
  border-radius: 11px;
  color: #835b60;
  background: #fcf4f5;
}

.inactive-student-note strong {
  font-size: 10px;
}

.inactive-student-note p {
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

.inactive-student-note small {
  display: block;
  margin-top: 7px;
  color: #aa878b;
  font-size: 8px;
}

.student-record-actions {
  display: grid;
  gap: 13px;
  background: #fafbfc;
}

.student-record-actions > div:first-child strong {
  font-size: 10px;
}

.student-record-actions > div:first-child p {
  margin: 5px 0 0;
  color: #8a95a5;
  font-size: 8px;
  line-height: 1.6;
}

.record-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.danger-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #edcfd2;
  border-radius: 9px;
  color: #a84850;
  background: #fff8f8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:hover {
  border-color: #ddaeb2;
  background: #fff0f1;
}

.danger-button svg,
.record-action-buttons svg {
  width: 15px;
  height: 15px;
}

.profile-info-note,
.delete-warning {
  padding: 12px 14px;
  border-radius: 10px;
  color: #68758a;
  background: #f3f6f9;
  font-size: 9px;
  line-height: 1.65;
}

.delete-warning {
  border: 1px solid #efd6d8;
  color: #8c555b;
  background: #fff5f5;
}

.delete-warning strong {
  display: block;
  font-size: 11px;
}

.delete-warning p {
  margin: 6px 0 0;
}

body.compact-mode .page-content {
  padding-top: 20px;
}

body.compact-mode .data-table th,
body.compact-mode .data-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.compact-mode .stat-card {
  min-height: 102px;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  transition-duration: .01ms !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
}

@media (max-width: 590px) {
  .profile-button {
    display: flex;
    padding: 3px;
  }

  .profile-button .profile-copy,
  .profile-button .profile-chevron {
    display: none;
  }

  .profile-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    width: min(310px, calc(100vw - 24px));
  }

  .student-filter-tabs {
    width: 100%;
  }

  .student-filter-tabs button {
    flex: 1;
  }

  .record-action-buttons > button {
    width: 100%;
  }
}

.catalog-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.catalog-summary-grid article {
  min-height: 120px;
  display: grid;
  align-content: center;
  padding: 19px 21px;
  border: 1px solid #e8ebf0;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fafbfe);
  box-shadow: 0 5px 18px rgba(26, 40, 70, 0.04);
}

.catalog-summary-grid span,
.catalog-summary-grid small {
  color: #7d889b;
  font-size: 12px;
}

.catalog-summary-grid strong {
  margin: 6px 0 5px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 29px;
}

.catalog-source-note,
.visa-compliance-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.catalog-source-note {
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #dce6f2;
  border-radius: 13px;
  color: #315e79;
  background: #f3f9fc;
}

.catalog-source-note > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.catalog-source-note div {
  display: grid;
  gap: 4px;
}

.catalog-source-note strong {
  font-size: 13px;
}

.catalog-source-note span {
  color: #668093;
  font-size: 12px;
  line-height: 1.55;
}

.catalog-level-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 16px;
}

.catalog-level-strip-empty {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  color: #6b7688;
  background: #fff;
}

.catalog-level-strip button {
  min-width: 0;
  height: 82px;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  color: #6b7688;
  background: #fff;
  cursor: pointer;
}

.catalog-level-strip button:hover {
  border-color: rgba(45, 120, 165, 0.28);
  background: #f7fbfd;
}

.catalog-level-strip button.active {
  border-color: rgba(45, 120, 165, 0.45);
  color: #235d80;
  background: #eef7fb;
}

.catalog-level-strip i {
  width: 14px;
  max-height: 42px;
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #2d78a5, #62ad8c);
}

.catalog-level-strip i[style*="height:0px"] {
  width: 14px;
  height: 2px !important;
  background: #d8e0ea;
}

.catalog-level-strip span {
  font-size: 10px;
  white-space: nowrap;
}

.catalog-level-strip strong {
  font-size: 11px;
  color: var(--navy);
  line-height: 1.2;
  text-align: center;
}

.catalog-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.catalog-provider-panel {
  overflow: hidden;
}

.catalog-provider-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #edf0f3;
}

.catalog-provider-panel-head div {
  display: grid;
  gap: 3px;
}

.catalog-provider-panel-head strong {
  color: var(--navy);
  font-size: 14px;
}

.catalog-provider-panel-head span {
  color: #8a95a6;
  font-size: 12px;
}

.catalog-provider-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfe;
}

.catalog-provider-filter-row button {
  min-width: 0;
  min-height: 32px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  color: #667386;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-provider-filter-row button:hover,
.catalog-provider-filter-row button.active {
  border-color: rgba(45, 120, 165, 0.35);
  color: #235d80;
  background: #eef7fb;
}

.catalog-provider-list {
  max-height: 560px;
  overflow: auto;
  padding: 8px;
}

.catalog-provider-list button {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: #526176;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.catalog-provider-list button:hover,
.catalog-provider-list button.active {
  color: #235d80;
  background: #eef7fb;
}

.catalog-provider-list span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-provider-list small,
.catalog-provider-empty {
  color: #8a95a6;
  font-size: 11px;
}

.catalog-provider-empty {
  padding: 12px;
}

.catalog-panel {
  overflow: hidden;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #edf0f3;
  background: #fcfdff;
}

.catalog-toolbar select,
.catalog-city-input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  color: #46536b;
  background: white;
  font-size: 12px;
  outline: 0;
}

.catalog-toolbar select:focus,
.catalog-city-input:focus {
  border-color: rgba(51, 66, 160, 0.48);
  box-shadow: 0 0 0 3px rgba(51, 66, 160, 0.08);
}

.catalog-search {
  min-width: 290px;
  flex: 1 1 340px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  color: #8691a3;
  background: white;
}

.catalog-search svg {
  width: 17px;
  height: 17px;
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.catalog-city-input {
  width: 112px;
}

.catalog-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  color: #5e6b7f;
  background: white;
  font-size: 12px;
  white-space: nowrap;
}

.catalog-record-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 19px;
  color: #8994a5;
  background: #fafbfc;
  font-size: 11px;
}

.catalog-record-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.catalog-record-line span:last-child {
  text-align: right;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid #edf0f3;
  color: #737f91;
  font-size: 12px;
}

.catalog-pagination div {
  display: flex;
  gap: 8px;
}

.catalog-pagination button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.catalog-course-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fafbfc;
}

.catalog-course-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 0.9fr) minmax(172px, 0.55fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #fff;
}

.catalog-course-main,
.catalog-course-meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.catalog-course-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 0;
}

.catalog-empty-state {
  padding: 28px 18px;
  color: #8b96a7;
  background: #fafbfc;
  text-align: center;
  font-size: 13px;
}

.catalog-table td {
  vertical-align: middle;
  white-space: normal;
}

.catalog-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.catalog-table th:nth-child(1) {
  width: 31%;
}

.catalog-table th:nth-child(2) {
  width: 24%;
}

.catalog-table th:nth-child(3) {
  width: 17%;
}

.catalog-table th:nth-child(4) {
  width: 14%;
}

.catalog-table th:nth-child(5) {
  width: 14%;
}

.catalog-course-title,
.catalog-provider,
.catalog-status {
  display: grid;
  gap: 5px;
}

.catalog-course-title {
  min-width: 0;
  max-width: 100%;
}

.catalog-course-title strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #222c63;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-course-title small,
.catalog-provider small,
.catalog-status small,
.catalog-checked {
  color: #8c96a7;
  font-size: 11px;
  line-height: 1.4;
}

.catalog-provider {
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.catalog-provider > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.catalog-provider strong,
.catalog-provider small,
.catalog-status strong,
.catalog-status small,
.catalog-source-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-provider-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #5263bf;
  background: #eef1ff;
}

.catalog-provider-mark svg {
  width: 17px;
  height: 17px;
}

.catalog-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.catalog-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #536177;
  background: #f0f3f8;
  font-size: 11px;
}

.catalog-status strong {
  color: #318173;
  font-size: 12px;
}

.catalog-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  color: #3342a0;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
}

.catalog-source-link-search,
.catalog-source-link-derived {
  color: #6f7788;
  font-weight: 500;
}

.catalog-source-link-derived {
  color: #9a6a21;
}

.catalog-link-missing {
  color: #9aa3b1;
  font-size: 11px;
}

.catalog-source-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.catalog-checked {
  display: block;
  margin-top: 0;
  text-align: right;
}

.matcher-page-grid {
  display: grid;
  grid-template-columns: minmax(560px, 0.92fr) minmax(480px, 1.08fr);
  gap: 17px;
  align-items: start;
}

.matcher-form-panel {
  overflow: hidden;
}

.matcher-form-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f3;
  background: linear-gradient(135deg, #f5f6ff, #fff);
}

.matcher-form-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #5d55bf;
  background: #e9e8ff;
}

.matcher-form-icon svg {
  width: 22px;
  height: 22px;
}

.matcher-form-head h2,
.matcher-result-title h2 {
  margin: 0;
  font-size: 17px;
}

.matcher-form-head p {
  margin: 5px 0 0;
  color: #8290a4;
  font-size: 12px;
}

.matcher-form {
  padding: 20px 22px 22px;
}

.consultation-quick-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #dfe7ec;
  border-radius: 10px;
  background: #f7fafb;
}

.consultation-quick-box strong {
  color: #253047;
  font-size: 13px;
}

.consultation-quick-box small,
.consultation-actions span {
  display: block;
  margin-top: 3px;
  color: #7c8798;
  font-size: 10px;
  line-height: 1.45;
}

.consultation-quick-box textarea {
  min-height: 116px;
  resize: vertical;
}

.consultation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.matcher-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0 14px;
}

.matcher-section-title > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #3342a0;
  font-size: 11px;
  font-weight: 700;
}

.matcher-section-title div {
  display: grid;
  gap: 2px;
}

.matcher-section-title strong {
  font-size: 13px;
}

.matcher-section-title small {
  color: #929cac;
  font-size: 10px;
}

.matcher-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 22px;
}

.matcher-field-grid .field {
  gap: 7px;
}

.matcher-field-grid .field > span {
  color: #556176;
  font-size: 12px;
  font-weight: 600;
}

.matcher-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #e2e5ef;
  border-radius: 11px;
  background: #fafaff;
}

.matcher-checkbox input {
  margin-top: 3px;
}

.matcher-checkbox span {
  display: grid;
  gap: 3px;
}

.matcher-checkbox strong {
  font-size: 12px;
}

.matcher-checkbox small {
  color: #8792a4;
  font-size: 11px;
}

.matcher-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 17px;
}

.matcher-submit-row > span {
  color: #8b95a5;
  font-size: 11px;
}

.matcher-result-panel {
  min-width: 0;
}

.matcher-result-title {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 2px;
}

.matcher-result-title > div {
  display: grid;
  gap: 3px;
}

.matcher-result-title > div > span {
  color: #7b72cf;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.consultation-assessment {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #dfe7ec;
  border-radius: 12px;
  background: #fbfcfd;
}

.consultation-assessment-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.consultation-assessment-head > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #3342a0;
  background: #eef1ff;
}

.consultation-assessment-head strong {
  color: #253047;
  font-size: 13px;
}

.consultation-assessment-head small,
.consultation-disclaimer {
  display: block;
  margin-top: 2px;
  color: #7e8898;
  font-size: 10px;
}

.consultation-signal-grid,
.consultation-advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.consultation-signal-grid div,
.consultation-advice-grid > div {
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  background: white;
  border: 1px solid #edf0f3;
}

.consultation-signal-grid span {
  display: block;
  color: #8a95a6;
  font-size: 9px;
}

.consultation-signal-grid strong,
.consultation-advice-grid strong {
  color: #24315e;
  font-size: 11px;
}

.consultation-advice-grid p {
  margin: 6px 0 0;
  color: #5f6b7c;
  font-size: 10px;
  line-height: 1.45;
}

.matcher-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 36px;
  border: 1px dashed #d9deea;
  border-radius: 16px;
  color: #6f68c9;
  background: linear-gradient(145deg, #fff, #fafaff);
  text-align: center;
}

.matcher-empty > svg {
  width: 38px;
  height: 38px;
}

.matcher-empty div {
  display: grid;
  gap: 7px;
}

.matcher-empty strong {
  color: #303a70;
  font-size: 15px;
}

.matcher-empty span {
  max-width: 360px;
  color: #8993a4;
  font-size: 12px;
  line-height: 1.55;
}

.matcher-results {
  display: grid;
  gap: 12px;
}

.matcher-result-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e5e8ef;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 17px rgba(27, 41, 64, 0.04);
}

.matcher-rank {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 16px 8px;
  color: white;
  background: linear-gradient(160deg, #3342a0, #222a72);
}

.matcher-rank > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 10px;
}

.matcher-rank strong {
  font-family: Georgia, serif;
  font-size: 25px;
}

.matcher-rank small {
  margin-top: 2px;
  color: #bfc6f4;
  font-size: 9px;
}

.matcher-result-main {
  min-width: 0;
  padding: 17px 18px 14px;
}

.matcher-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.matcher-result-head > div {
  min-width: 0;
}

.matcher-result-head > div > span {
  color: #7f8999;
  font-size: 11px;
}

.matcher-result-head h3 {
  margin: 5px 0 10px;
  color: #222c63;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.matcher-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #3b776f;
  background: #eaf6f3;
  font-size: 10px;
  font-weight: 600;
}

.matcher-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.matcher-explain > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f7f8fb;
}

.matcher-explain strong {
  margin-bottom: 2px;
  color: #536078;
  font-size: 10px;
}

.matcher-explain span {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 5px;
  color: #6e798b;
  font-size: 10px;
  line-height: 1.4;
}

.matcher-explain span svg {
  width: 12px;
  height: 12px;
  color: #358778;
}

.matcher-explain span.warning svg {
  color: #d68d31;
}

.matcher-immigration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.matcher-immigration-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #43516a;
  background: #eef5f3;
  font-size: 10px;
}

.matcher-immigration-strip svg {
  width: 12px;
  height: 12px;
  color: #287b70;
}

.matcher-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf0f3;
  color: #8b95a4;
  font-size: 10px;
}

.matcher-result-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3342a0;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.matcher-result-footer a svg {
  width: 13px;
  height: 13px;
}

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

  .catalog-level-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .catalog-workspace {
    grid-template-columns: 1fr;
  }

  .catalog-provider-list {
    max-height: 320px;
  }

  .catalog-course-card {
    grid-template-columns: 1fr;
  }

  .catalog-course-actions {
    justify-items: start;
  }

  .catalog-checked,
  .catalog-source-link {
    text-align: left;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
  }

  .matcher-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .catalog-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-search,
  .catalog-toolbar select,
  .catalog-city-input,
  .catalog-check {
    width: 100%;
    min-width: 0;
  }

  .catalog-record-line,
  .catalog-pagination,
  .matcher-submit-row,
  .matcher-result-head,
  .matcher-result-footer,
  .consultation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .matcher-field-grid,
  .matcher-explain,
  .consultation-signal-grid,
  .consultation-advice-grid {
    grid-template-columns: 1fr;
  }

  .matcher-result-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .matcher-form,
  .matcher-form-head {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.job-market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.job-market-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-market-search label {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  height: 46px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  background: #f9fbfc;
}

.job-market-search svg {
  width: 17px;
  height: 17px;
  color: #27766d;
}

.job-market-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #253047;
  font: inherit;
}

.job-market-context {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  background: #fbfcfd;
}

.job-market-context span {
  color: #7c8798;
  font-size: 10px;
  font-weight: 700;
}

.job-market-context strong {
  color: #223066;
  font-size: 16px;
}

.job-market-context small {
  color: #6d788a;
  font-size: 11px;
  line-height: 1.45;
}

.job-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.job-stat-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: white;
}

.job-stat-grid span,
.job-stat-grid small {
  display: block;
  color: #7b8798;
  font-size: 11px;
}

.job-stat-grid strong {
  display: block;
  margin: 6px 0 4px;
  color: #202a63;
  font-family: Georgia, serif;
  font-size: 30px;
}

.job-market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 16px;
  margin-bottom: 16px;
}

.job-employer-table {
  overflow-x: auto;
}

.job-employer-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.job-employer-table th {
  padding: 10px 8px;
  color: #7c8798;
  border-bottom: 1px solid #edf0f3;
  font-size: 11px;
  text-align: left;
}

.job-employer-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f2f5;
  color: #344056;
  font-size: 12px;
  vertical-align: top;
}

.job-employer-table td strong,
.job-employer-table td small {
  display: block;
}

.job-employer-table td small {
  margin-top: 4px;
  color: #8993a4;
  font-size: 10px;
}

.job-employer-table td span {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #4d596d;
  font-size: 10px;
}

.job-role-grid {
  display: grid;
  gap: 10px;
}

.job-role-grid article {
  padding: 13px;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  background: #fbfcfd;
}

.job-role-grid span,
.job-role-grid small {
  display: block;
  color: #7d8797;
  font-size: 10px;
}

.job-role-grid strong {
  display: block;
  margin-top: 5px;
  color: #223066;
  font-size: 13px;
}

.job-role-grid p {
  margin: 7px 0 5px;
  color: #28736c;
  font-size: 11px;
  line-height: 1.45;
}

.job-ad-list {
  display: grid;
  gap: 10px;
}

.job-ad-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  background: white;
}

.job-ad-main {
  min-width: 0;
}

.job-source {
  display: inline-flex;
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #27766d;
  background: #e8f6f3;
  font-size: 10px;
  font-weight: 700;
}

.job-ad-card h3 {
  margin: 8px 0 6px;
  color: #202a63;
  font-size: 14px;
  line-height: 1.45;
}

.job-ad-card p {
  margin: 0;
  color: #667186;
  font-size: 12px;
}

.job-ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.job-ad-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10px;
}

.job-ad-salary {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid #edf0f3;
}

.job-ad-salary strong {
  color: #253047;
  font-size: 13px;
}

.job-ad-salary small {
  color: #768193;
  font-size: 10px;
  line-height: 1.45;
}

.job-ad-salary a {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 4px;
  margin-top: 2px;
  color: #3342a0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.job-ad-salary a svg {
  width: 13px;
  height: 13px;
}

.job-gap-good,
.job-gap-low {
  width: max-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.job-gap-good {
  color: #1f6d61;
  background: #e7f7f2;
}

.job-gap-low {
  color: #9a5d16;
  background: #fff5e5;
}

.job-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 28px;
  border: 1px dashed #d9dee8;
  border-radius: 12px;
  color: #6b7484;
  text-align: center;
}

.job-empty svg {
  width: 32px;
  height: 32px;
  color: #27766d;
}

.job-empty strong {
  color: #263062;
  font-size: 14px;
}

.job-empty span {
  max-width: 460px;
  font-size: 12px;
  line-height: 1.55;
}

.job-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.job-source-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #e1e7ee;
  border-left: 4px solid #9aa5b5;
  border-radius: 10px;
  background: #fbfcfd;
}

.job-source-card.ready {
  border-left-color: #2e887b;
}

.job-source-card.error {
  border-left-color: #d06060;
}

.job-source-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.job-source-card strong {
  color: #253047;
  font-size: 12px;
}

.job-source-card span {
  flex: 0 0 auto;
  color: #536078;
  font-size: 10px;
  font-weight: 700;
}

.job-source-card p {
  margin: 0;
  color: #697588;
  font-size: 11px;
  line-height: 1.45;
}

.job-source-card small {
  color: #9aa4b2;
  font-size: 10px;
}

.job-source-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  color: #3342a0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.job-source-card a svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1180px) {
  .job-market-hero,
  .job-market-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .job-market-search,
  .job-ad-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .job-stat-grid,
  .job-source-grid {
    grid-template-columns: 1fr;
  }

  .job-ad-salary {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid #edf0f3;
  }
}

/* Visa workspace */
.visa-compliance-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #dfe4f4;
  border-radius: 14px;
  color: #2d376c;
  background: linear-gradient(135deg, #f7f8ff, #f2f7fb);
}

.visa-compliance-note > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: #35459f;
}

.visa-compliance-note strong,
.visa-compliance-note span {
  display: block;
}

.visa-compliance-note strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.visa-compliance-note span {
  color: #6f7991;
  font-size: 12px;
  line-height: 1.5;
}

.visa-empty-state {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #ced5e9;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 22%, rgba(68, 86, 179, .09), transparent 32%),
    linear-gradient(180deg, #fbfcff, #f7f9fc);
}

.visa-empty-state h2 {
  margin: 18px 0 8px;
  color: #222b54;
  font-size: 21px;
}

.visa-empty-state p {
  max-width: 520px;
  margin: 0 0 22px;
  color: #778097;
  font-size: 13px;
  line-height: 1.7;
}

.visa-empty-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #35459f;
  background: #e9edff;
  box-shadow: 0 14px 32px rgba(48, 62, 143, .14);
}

.visa-empty-icon svg {
  width: 31px;
  height: 31px;
}

.visa-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.visa-stage-list,
.visa-deadline-list {
  padding: 4px 20px 20px;
}

.visa-stage-row {
  display: grid;
  grid-template-columns: 110px minmax(80px, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.visa-stage-row > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f6;
}

.visa-stage-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3342a0, #6579d0);
}

.visa-stage-row strong {
  color: #293158;
  text-align: right;
}

.visa-deadline-item {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.visa-deadline-item:last-child {
  border-bottom: 0;
}

.visa-deadline-item > svg {
  width: 16px;
  color: #9aa3b5;
}

.visa-deadline-item strong,
.visa-deadline-item small {
  display: block;
}

.visa-deadline-item strong {
  color: #252d4f;
  font-size: 12px;
}

.visa-deadline-item small {
  margin-top: 4px;
  color: #8a93a5;
  font-size: 11px;
}

.visa-date-box {
  padding: 7px 5px;
  border-radius: 8px;
  color: #6c4c17;
  font-size: 10px;
  text-align: center;
  background: #fff3dc;
}

.visa-upcoming-panel {
  margin-top: 0;
}

.visa-case-table tbody tr,
[data-visa-case-id] {
  cursor: pointer;
}

.visa-client-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visa-client-cell strong,
.visa-client-cell small,
.table-subline {
  display: block;
}

.visa-client-cell small,
.table-subline {
  margin-top: 3px;
  color: #9099aa;
  font-size: 10px;
}

.avatar-indigo {
  color: #3342a0;
  background: #ebeeff;
}

.visa-priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.priority-normal {
  color: #657084;
  background: #eef1f5;
}

.priority-high {
  color: #8d5a12;
  background: #fff0cf;
}

.priority-urgent {
  color: #ac3f4c;
  background: #ffe8eb;
}

.visa-key-dates span {
  display: block;
  color: #737d91;
  font-size: 10px;
  line-height: 1.7;
}

.task-count {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 8px;
  color: #7d8799;
  background: #f0f2f6;
}

.task-count.has-open {
  color: #8b5b19;
  background: #fff1d8;
}

.visa-task-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.visa-task-column {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #f7f8fb;
}

.visa-task-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #e7eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 44, 85, .04);
}

.visa-task-card.done {
  opacity: .68;
}

.visa-task-card > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.visa-task-card input {
  margin-top: 3px;
}

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

.visa-task-card strong {
  color: #252d4e;
  font-size: 12px;
}

.visa-task-card small {
  margin-top: 4px;
  color: #8a93a5;
  font-size: 10px;
}

.visa-task-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.visa-task-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  color: #737d91;
  font-size: 9px;
  background: #f1f3f7;
}

.visa-task-meta button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  border: 0;
  color: #4053ae;
  font-size: 10px;
  background: transparent;
  cursor: pointer;
}

.visa-task-meta svg {
  width: 12px;
}

.visa-case-hero {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 23px 24px 20px;
  border-bottom: 1px solid #e9ecf2;
}

.visa-hero-mark {
  width: 52px;
  height: 52px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #34449f;
  background: #e9edff;
}

.visa-hero-mark svg {
  width: 25px;
}

.visa-hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.visa-hero-title h2 {
  margin: 0;
  color: #222a4b;
  font-size: 22px;
}

.visa-case-hero p {
  margin: 6px 0 10px;
  color: #818a9c;
  font-size: 11px;
}

.visa-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.visa-detail-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fafbfc;
}

.visa-detail-grid span,
.visa-detail-grid strong,
.visa-detail-grid small {
  display: block;
}

.visa-detail-grid span {
  color: #929aab;
  font-size: 9px;
}

.visa-detail-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #303856;
  font-size: 11px;
}

.visa-detail-grid small {
  margin-top: 3px;
  color: #8d96a8;
  font-size: 9px;
}

.visa-notes {
  margin-top: 12px;
  padding: 13px;
  border-radius: 10px;
  background: #f7f8fb;
}

.visa-notes span {
  color: #8f98a9;
  font-size: 9px;
}

.visa-notes p {
  margin: 6px 0 0;
  color: #4f5870;
  font-size: 11px;
  line-height: 1.65;
}

.visa-drawer-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.visa-drawer-task:last-child {
  border-bottom: 0;
}

.visa-drawer-task.done {
  opacity: .6;
}

.visa-drawer-task input {
  margin-top: 3px;
}

.visa-drawer-task strong,
.visa-drawer-task small {
  display: block;
}

.visa-drawer-task strong {
  color: #303856;
  font-size: 11px;
}

.visa-drawer-task small {
  margin-top: 4px;
  color: #9099aa;
  font-size: 9px;
}

.visa-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.visa-admin-actions p {
  margin: 4px 0 0;
  color: #8c95a6;
  font-size: 10px;
}

@media (max-width: 980px) {
  .visa-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .visa-task-board {
    grid-template-columns: 1fr;
  }

  .visa-detail-grid {
    grid-template-columns: 1fr;
  }

  .visa-empty-state {
    min-height: 270px;
  }
}

/* Education dashboard workspace */
.home-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr);
  gap: 16px;
  margin-bottom: 16px;
}

.home-operations-grid,
.home-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.home-action-table {
  min-width: 720px;
}

.home-action-table tbody tr {
  cursor: pointer;
}

.destination-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #52617a;
  font-size: 10px;
  background: #eef2f7;
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 16px;
}

.home-quick-actions button {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 11px;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  color: #34405a;
  text-align: left;
  background: #fbfcfe;
  cursor: pointer;
  transition: 160ms ease;
}

.home-quick-actions button:hover {
  border-color: #d4daea;
  background: #fff;
  box-shadow: 0 8px 20px rgba(35, 45, 83, .07);
  transform: translateY(-1px);
}

.home-quick-actions button > span {
  width: 34px;
  height: 34px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 10px;
  color: var(--action-color);
  background: var(--action-soft);
}

.home-quick-actions button svg {
  width: 17px;
  height: 17px;
}

.home-quick-actions strong,
.home-quick-actions small {
  display: block;
  min-width: 0;
}

.home-quick-actions strong {
  align-self: end;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-actions small {
  align-self: start;
  margin-top: 3px;
  overflow: hidden;
  color: #929bad;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-status-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 16px 18px 18px;
}

.home-status-matrix button {
  min-height: 67px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #edf0f4;
  border-radius: 11px;
  text-align: left;
  background: #fafbfc;
  cursor: pointer;
  transition: 150ms ease;
}

.home-status-matrix button:hover {
  border-color: #d8ddeb;
  background: #fff;
}

.home-status-matrix button strong {
  color: #242d52;
  font-family: Georgia, serif;
  font-size: 20px;
}

.home-distribution-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 18px 20px 22px;
}

.distribution-group h3 {
  margin: 0 0 14px;
  color: #303a59;
  font-size: 11px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: #6c778d;
  font-size: 9px;
}

.distribution-row > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.distribution-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3342a0, #6679d0);
}

.distribution-row.intake i {
  background: linear-gradient(90deg, #2d8b7d, #64b4a6);
}

.distribution-row strong {
  color: #303956;
  text-align: right;
}

.conversion-funnel {
  display: grid;
  gap: 11px;
  padding: 18px 20px 22px;
}

.conversion-step {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid #e8ebf2;
  border-radius: 12px;
  background: #fbfcfe;
}

.conversion-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--funnel-width);
  opacity: calc(.12 - var(--funnel-index) * .015);
  background: linear-gradient(90deg, #4052b1, #7485d7);
}

.conversion-step > * {
  position: relative;
}

.conversion-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #3e50aa;
  background: #e9edff;
}

.conversion-icon svg {
  width: 16px;
}

.conversion-step div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.conversion-step strong {
  color: #252e54;
  font-family: Georgia, serif;
  font-size: 20px;
}

.conversion-step div span {
  color: #6e798e;
  font-size: 10px;
}

.conversion-step em {
  color: #52617c;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .home-command-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .home-operations-grid,
  .home-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-quick-actions,
  .home-status-matrix,
  .home-distribution-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-status-matrix {
    gap: 7px;
    padding: 13px;
  }

  .home-distribution-body {
    gap: 22px;
  }
}

@media (max-width: 430px) {
  .home-quick-actions,
  .home-distribution-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 590px) {
  .stats-grid,
  .form-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-right {
    justify-content: flex-end;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .modal-body {
    padding: 17px;
  }

  .student-summary {
    grid-template-columns: 1fr;
  }

  .summary-item {
    border-right: 0;
    border-bottom: 1px solid #e8ebef;
  }

  .summary-item:last-child {
    border-bottom: 0;
  }
}

.compact-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  color: #657287;
  background: white;
  font-size: 8px;
  cursor: pointer;
}

.compact-button:hover {
  color: var(--teal-dark);
  border-color: #bcded7;
  background: #f8fdfc;
}

.compact-button svg {
  width: 13px;
  height: 13px;
}

.record-count {
  color: #929cab;
  font-size: 9px;
}

.count-warning {
  color: #d47b34;
  font-weight: 600;
}

.count-success {
  color: #168d79;
  font-weight: 600;
}

.raw-status {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  color: #68758a;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.long-cell {
  width: min(480px, 38vw);
  max-height: 52px;
  overflow: hidden;
  color: #5b687c;
  line-height: 1.5;
  white-space: normal;
}

.empty-table {
  height: 180px !important;
  color: #96a0ae !important;
  text-align: center;
}

.empty-inline,
.empty-column {
  padding: 28px 14px;
  color: #96a0ae;
  font-size: 9px;
  text-align: center;
}

.email-alert-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-bottom: 16px;
}

.email-alert-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.email-alert-status {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.email-alert-status.ready {
  border-color: rgba(51, 66, 160, 0.22);
  background: var(--blue-soft);
}

.email-alert-status strong {
  font-size: 16px;
}

.email-alert-status span,
.email-alert-status small {
  color: var(--ink-soft);
  font-size: 13px;
}

.email-alert-error {
  color: var(--red) !important;
}

.email-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.email-alert-actions .primary-button,
.email-alert-actions .secondary-button {
  width: auto;
}

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

.email-setup-guide {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.email-setup-guide .panel-header {
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.email-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
  counter-reset: email-guide-step;
}

.email-guide-steps li {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  counter-increment: email-guide-step;
}

.email-guide-steps li::before {
  content: counter(email-guide-step);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.email-guide-steps strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.email-guide-steps span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.toggle-row {
  min-height: 42px;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toggle-row input {
  width: auto;
}

.toggle-row span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.email-config-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-config-list span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.email-config-list .ok {
  color: #16735e;
  background: #e9f8f4;
}

.email-config-list .missing {
  color: #9a6721;
  background: var(--amber-soft);
}

.email-endpoints {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.email-endpoints code {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 12px;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.real-application-list {
  display: grid;
  gap: 12px;
}

.real-application-card {
  padding: 14px;
  border: 1px solid #e5e9ee;
  border-radius: 11px;
  background: #fbfcfd;
}

.application-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-card-head strong {
  display: block;
  font-size: 10px;
}

.application-card-head p {
  margin: 5px 0 0;
  color: #8792a3;
  font-size: 8px;
  line-height: 1.5;
}

.application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  color: #8691a1;
  font-size: 8px;
}

.raw-note {
  max-height: 108px;
  overflow-y: auto;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  color: #5e6a7d;
  background: white;
  font-size: 8px;
  line-height: 1.6;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.application-missing {
  display: grid;
  gap: 6px;
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px solid #e9edf1;
}

.missing-check {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  color: #665d50;
  font-size: 8px;
  line-height: 1.45;
  cursor: pointer;
}

.missing-check input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--teal);
}

.missing-check small {
  color: #bd812d;
}

.missing-check.done span {
  color: #969ea9;
  text-decoration: line-through;
}

.missing-check.done small {
  color: #16917c;
}

.full-width {
  width: 100%;
}

.credential-reveal {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid #e3e7eb;
  border-radius: 11px;
  background: #f8f9fb;
}

.credential-reveal strong {
  display: block;
  margin: 0 0 7px;
  color: #566276;
  font-size: 9px;
}

.credential-reveal pre {
  padding: 11px;
  margin: 0 0 16px;
  overflow-x: auto;
  border-radius: 8px;
  color: #24334a;
  background: white;
  font-family: Consolas, monospace;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.credential-reveal a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
}

.credential-reveal a svg {
  width: 14px;
  height: 14px;
}

.report-bars {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.report-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  color: #647186;
  font-size: 9px;
}

.report-row strong {
  color: var(--ink);
  text-align: right;
}

.report-track {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf0f3;
}

.report-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3342a0, #6577d1);
}

.brand-copy span {
  max-width: 150px;
  line-height: 1.35;
}

.login-brand .brand-copy strong {
  font-size: 18px;
}

.login-brand .brand-copy span {
  color: #9da9d6;
}

.login-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 27px;
  border-radius: 4px;
  background: linear-gradient(90deg, #171e60, #d7aa5b);
}

.login-card-head > span {
  color: #3342a0;
}

.avatar-teal {
  background: linear-gradient(145deg, #4e62c9, #171e60);
}

.primary-button {
  border-color: #3342a0;
  background: linear-gradient(135deg, #3342a0, #171e60);
  box-shadow: 0 6px 14px rgba(23, 30, 96, 0.18);
}

.primary-button:hover {
  border-color: #111746;
  background: #111746;
}

.status-green {
  color: #247b66;
  background: #eaf7f1;
}

.app-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 1.15fr) minmax(420px, 0.85fr);
  background: #fff;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 46px 58px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 22%, rgba(91, 108, 216, 0.3), transparent 27%),
    radial-gradient(circle at 22% 78%, rgba(215, 170, 91, 0.12), transparent 30%),
    linear-gradient(145deg, #1b2571 0%, #171e60 58%, #101641 100%);
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255,255,255,.025),
    0 0 0 140px rgba(255,255,255,.018);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-logo-shell {
  width: 45px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.login-logo-shell img {
  width: 40px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.login-message {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: auto 0;
}

.login-message .eyebrow {
  color: #e1bd79;
}

.login-message h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 4.4vw, 66px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.login-message p {
  max-width: 560px;
  margin: 24px 0 0;
  color: #aab9ca;
  font-size: 14px;
  line-height: 1.9;
}

.login-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.login-metrics div {
  display: grid;
  gap: 5px;
}

.login-metrics strong {
  font-family: Georgia, serif;
  font-size: 26px;
}

.login-metrics span {
  color: #8193aa;
  font-size: 10px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 70% 20%, rgba(51, 66, 160, .1), transparent 25%),
    #f7f9fb;
}

.login-card {
  width: min(390px, 100%);
  padding: 38px;
  border: 1px solid #e5e9ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(24, 38, 62, .1);
}

.login-card-brand {
  display: none;
}

.login-card-head > span {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.login-card-head h2 {
  margin: 12px 0 7px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.login-card-head p {
  margin: 0 0 28px;
  color: #8b96a6;
  font-size: 10px;
}

.login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #586579;
  font-size: 10px;
  font-weight: 600;
}

.login-field input {
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dce2e8;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fbfcfd;
  font-size: 11px;
}

.login-field input:focus {
  border-color: rgba(51,66,160,.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(51,66,160,.1);
}

.login-button {
  width: 100%;
  height: 44px;
  margin-top: 7px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3342a0, #171e60);
  box-shadow: 0 9px 20px rgba(23,30,96,.22);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.login-button:hover {
  background: #111746;
}

.login-error {
  min-height: 18px;
  color: #d85e5e;
  font-size: 9px;
}

.login-help {
  margin: 20px 0 0;
  color: #98a1af;
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.login-help code {
  color: #68758a;
  font-size: 8px;
}

.login-company {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
  color: #a1a9b6;
  font-size: 8px;
  letter-spacing: .04em;
  text-align: center;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a8798;
  font-size: 9px;
}

.sync-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5264c8;
  box-shadow: 0 0 0 3px rgba(82,100,200,.12);
}

.password-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 34px;
  color: #755821;
  background: #fff5df;
  border-bottom: 1px solid #f2dfb9;
  font-size: 9px;
}

.password-banner.show {
  display: flex;
}

.password-banner button {
  border: 0;
  color: #9d6718;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.permission-note {
  padding: 10px 13px;
  margin-bottom: 16px;
  border-radius: 9px;
  color: #68758a;
  background: #f3f6f8;
  font-size: 9px;
  line-height: 1.6;
}

.toolbar-search {
  width: 260px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe4e9;
  border-radius: 8px;
  outline: 0;
  font-size: 9px;
}

.toolbar-search:focus {
  border-color: #8e9ade;
  box-shadow: 0 0 0 3px rgba(51,66,160,.08);
}

.user-role {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 10px;
  color: #5b6f95;
  background: #edf3ff;
  font-size: 8px;
  font-weight: 600;
}

.active-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #168d79;
}

.active-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.active-dot.inactive {
  color: #a0a8b4;
}

.audit-action {
  color: #43516a;
  font-weight: 600;
}

.student-operations .section-heading {
  align-items: center;
}

.section-note {
  color: #8a95a5;
  font-size: 10px;
}

.student-operation-list {
  display: grid;
  gap: 8px;
}

.student-operation-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
}

.student-operation-item:last-child {
  border-bottom: 0;
}

.student-operation-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.student-operation-main strong {
  color: #253047;
  font-size: 11px;
}

.student-operation-main span {
  color: #5d6878;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.student-operation-main small {
  color: #929cac;
  font-size: 9px;
}

.student-operation-action {
  display: flex;
  justify-content: flex-end;
}

.operation-undo {
  white-space: nowrap;
}

.operation-state {
  color: #8f98a7;
  font-size: 9px;
  white-space: nowrap;
}

.operation-state.undone {
  color: #168d79;
  font-weight: 700;
}

.modal-wide {
  width: min(920px, 96vw);
}

.modal-narrow {
  width: min(520px, 96vw);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-metric {
  padding: 12px;
  border: 1px solid #e7ebef;
  border-radius: 9px;
  background: #fafbfc;
}

.detail-metric span {
  color: #8d97a6;
  font-size: 8px;
}

.detail-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.loading-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: #8b96a6;
  font-size: 10px;
}

.loading-state::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border: 2px solid #dfe5ea;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 28px;
  }

  .login-card {
    width: min(430px, 100%);
  }

  .login-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
  }

  .login-card-brand img {
    width: 30px;
    height: 39px;
    object-fit: contain;
  }

  .login-card-brand div {
    display: grid;
    line-height: 1.2;
  }

  .login-card-brand strong {
    color: #171e60;
    font-size: 15px;
    letter-spacing: .03em;
  }

  .login-card-brand span {
    max-width: 190px;
    margin-top: 4px;
    color: #7e88a4;
    font-size: 8px;
    letter-spacing: .1em;
  }

  .sync-state {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 18px;
  }

  .login-card {
    padding: 30px 25px;
    border-radius: 17px;
  }

  .login-card::before {
    margin-bottom: 23px;
  }

  .login-card-head h2 {
    font-size: 25px;
  }
}

/* Readability, translation resilience, and responsive hardening */
html {
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  min-width: 0;
}

svg {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(66, 100, 197, 0.25);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none !important;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  width: 260px;
}

.brand-copy span,
.nav-section-label,
.sidebar-footer p,
.search-box kbd,
.profile-copy small,
.stat-card p,
.trend,
.panel-title p,
.pipeline-step span,
.student-cell span,
.school-name small,
.task-copy p,
.task-time,
.quick-action span,
.progress-label,
.form-meta,
.form-status,
.form-open,
.kanban-header span,
.kanban-card p,
.kanban-card-footer,
.mini-avatar,
.student-hero p,
.tag,
.summary-item span,
.application-item p,
.credential-copy span,
.modal-title-group p,
.form-progress-copy,
.field-note,
.upload-zone span,
.save-state,
.record-count,
.application-card-head p,
.application-meta,
.raw-note,
.missing-check,
.credential-reveal strong,
.credential-reveal pre,
.credential-reveal a,
.detail-metric span,
.sync-state,
.password-banner,
.password-banner button,
.permission-note,
.user-role,
.report-row {
  font-size: 11px;
}

.storage-copy,
.help-button,
.heading-copy p,
.stat-top,
.text-button,
.data-table th,
.deadline,
.filter-button,
.tab-button,
.forms-hero p,
.form-card p,
.kanban-header,
.empty-state p,
.section-heading h3,
.field label,
.compact-button,
.toast,
.detail-metric strong,
.loading-state,
.toolbar-search {
  font-size: 12px;
}

.search-box input,
.profile-copy strong,
.primary-button,
.secondary-button,
.data-table td,
.student-cell strong,
.task-copy strong,
.quick-action strong,
.form-card h3,
.application-item strong,
.summary-item strong,
.application-card-head strong,
.field input,
.field select,
.field textarea {
  font-size: 13px;
}

.panel-title h2,
.drawer-header strong,
.modal-title-group h2 {
  font-size: 15px;
}

.nav-item {
  min-height: 46px;
  font-size: 14px;
}

.nav-count {
  font-size: 11px;
}

.topbar {
  height: 72px;
}

.page-content {
  padding: 32px 38px 58px;
}

.heading-copy h1 {
  font-size: 28px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  height: auto;
  padding: 10px 17px;
}

.stat-card {
  min-height: 138px;
}

.stat-value strong {
  font-size: 30px;
}

.panel-header {
  min-height: 67px;
}

.data-table th {
  height: 44px;
}

.data-table td {
  height: 63px;
}

.status-badge {
  font-size: 10px;
}

.task-item {
  min-height: 72px;
}

.quick-action {
  min-height: 70px;
}

.toolbar {
  flex-wrap: wrap;
}

.toolbar-search {
  width: min(320px, 70vw);
  height: 40px;
}

.filter-button,
.view-button {
  min-height: 38px;
}

.form-card {
  min-height: 238px;
}

.forms-hero h2 {
  font-size: 25px;
}

.student-hero h2 {
  font-size: 19px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 11px;
  text-decoration: none;
}

.missing-item {
  font-size: 11px;
}

.modal {
  max-width: calc(100vw - 32px);
}

.modal-body {
  overscroll-behavior: contain;
}

.field input,
.field select {
  height: 44px;
  padding: 0 13px;
}

.field textarea {
  min-height: 96px;
  padding: 12px 13px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  visibility: hidden;
  background: rgba(11, 17, 48, 0.38);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.sidebar-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.login-screen,
.login-visual {
  min-height: 100vh;
  min-height: 100dvh;
}

.login-screen {
  grid-template-columns: minmax(520px, 1.08fr) minmax(460px, 0.92fr);
}

.login-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 64px);
}

.login-card {
  position: relative;
  isolation: isolate;
  width: min(440px, 100%);
  max-width: 100%;
  padding: 42px;
  overflow: hidden;
  contain: layout paint;
  border-radius: 22px;
}

.login-card::before {
  width: 46px;
  height: 4px;
  margin-bottom: 30px;
}

.login-card-head > span {
  font-size: 11px;
}

.login-card-head h2 {
  font-size: 31px;
  line-height: 1.3;
}

.login-card-head p {
  margin-bottom: 30px;
  font-size: 13px;
}

.login-field {
  gap: 9px;
  margin-bottom: 19px;
  font-size: 13px;
}

.login-field input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  font-size: 14px;
}

.login-password-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.login-password-wrap input {
  padding-right: 62px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 48px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: #59698b;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: #171e60;
  background: #eef1fb;
}

.login-button {
  width: 100%;
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.login-error {
  min-height: 22px;
  font-size: 12px;
  line-height: 1.5;
}

.login-help,
.login-company {
  font-size: 11px;
}

.login-metrics strong {
  font-size: 28px;
}

.login-metrics span {
  font-size: 11px;
}

@media (max-width: 1120px) {
  .login-screen {
    grid-template-columns: minmax(470px, 1fr) minmax(430px, 0.9fr);
  }
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px;
  }

  .login-card {
    width: min(460px, 100%);
  }

  .login-card-brand strong {
    font-size: 17px;
  }

  .login-card-brand span {
    max-width: 230px;
    font-size: 10px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: min(290px, 86vw);
  }

  .page-content {
    padding: 26px 20px 48px;
  }
}

@media (max-width: 590px) {
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
  }

  .search-box {
    width: 100%;
  }

  .profile-button {
    display: none;
  }

  .page-content {
    padding: 22px 14px 42px;
  }

  .heading-copy h1 {
    font-size: 25px;
  }

  .heading-actions {
    grid-template-columns: 1fr;
  }

  .heading-actions .primary-button,
  .heading-actions .secondary-button {
    width: 100%;
  }

  .password-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .toolbar-search {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 18px 18px 10px 10px;
  }

  .modal-body {
    max-height: calc(100dvh - 220px);
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 14px;
  }

  .login-card {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .login-card-head h2 {
    font-size: 27px;
  }

  .login-card-brand {
    margin-bottom: 24px;
  }

  .login-company {
    overflow-wrap: anywhere;
  }
}

@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;
  }
}

/* School naming and alias library */
.school-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.school-summary article {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #e6e9f2;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(74, 120, 232, 0.11), transparent 42%),
    #fff;
  box-shadow: 0 10px 26px rgba(22, 32, 82, 0.05);
}

.school-summary span,
.school-summary small {
  display: block;
  color: #7d8798;
}

.school-summary span {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.school-summary strong {
  display: block;
  margin-bottom: 5px;
  color: #171e60;
  font-size: 30px;
  line-height: 1;
}

.school-summary small {
  font-size: 12px;
}

.school-library-panel {
  overflow: hidden;
}

.school-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f5;
}

.school-library-toolbar strong {
  display: block;
  margin-bottom: 4px;
  color: #202744;
  font-size: 16px;
}

.school-library-toolbar p {
  margin: 0;
  color: #8a93a4;
  font-size: 12px;
}

.school-library-search {
  width: min(340px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #dfe4ed;
  border-radius: 12px;
  color: #7f8999;
  background: #f8f9fc;
}

.school-library-search:focus-within {
  border-color: #8797df;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 100, 197, 0.12);
}

.school-library-search svg {
  width: 17px;
  height: 17px;
}

.school-library-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  background: transparent;
}

.school-library-table {
  min-width: 860px;
}

.school-library-table td {
  height: auto;
  min-height: 68px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.school-standard-name {
  display: flex;
  align-items: center;
  gap: 11px;
}

.school-standard-name strong,
.school-standard-name small {
  display: block;
}

.school-standard-name strong {
  color: #202744;
  white-space: normal;
}

.school-standard-name small {
  margin-top: 3px;
  color: #929bac;
  font-size: 11px;
}

.school-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #4257bd;
  background: #eef1ff;
}

.school-mark svg {
  width: 17px;
  height: 17px;
}

.alias-list {
  max-width: 440px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}

.alias-chip,
.source-school-alias {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #536177;
  background: #f0f3f8;
}

.alias-chip {
  min-height: 25px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.3;
}

.alias-empty {
  color: #a4abb7;
  font-size: 11px;
}

.source-school-alias {
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  font-size: 10px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: #8b94a5;
  font-size: 11px;
  line-height: 1.45;
}

[data-school-row][hidden] {
  display: none;
}

@media (max-width: 820px) {
  .school-summary {
    grid-template-columns: 1fr;
  }

  .school-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .school-library-search {
    width: 100%;
  }
}

@media (max-width: 590px) {
  .profile-menu-wrap .profile-button {
    display: flex;
    padding: 3px;
  }

  .profile-menu-wrap .profile-copy,
  .profile-menu-wrap .profile-chevron {
    display: none;
  }
}

@media (max-width: 820px) {
  .email-alert-grid,
  .email-alert-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 590px) {
  .deferral-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions .compact-button {
    width: 100%;
  }

  .email-alert-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .email-alert-actions .primary-button,
  .email-alert-actions .secondary-button {
    width: 100%;
  }

  .email-setup-guide .panel-header {
    align-items: stretch;
  }

  .email-guide-steps {
    grid-template-columns: 1fr;
  }

  .email-guide-steps li {
    min-height: auto;
  }
}
