@import url("./application-experience.css?v=20260718-06");
/* Administration dashboard v3: information architecture and visual system. */

:root,
body,
body.country-australia,
body.country-china,
body.country-philippines {
  --admin-navy: #152345;
  --admin-copy: #65708a;
  --admin-line: #e5eaf3;
  --admin-canvas: #f6f8fc;
  --admin-blue: #2674ea;
  --admin-blue-soft: #eaf2ff;
  --admin-green: #10a979;
  --admin-green-soft: #e7f9f2;
  --admin-purple: #7c43dd;
  --admin-purple-soft: #f2ebff;
  --admin-orange: #e98b24;
  --admin-orange-soft: #fff2e2;
  --admin-red: #e04b58;
  --admin-shadow: 0 16px 46px rgba(26, 52, 94, 0.075);
  --admin-shadow-hover: 0 22px 54px rgba(26, 52, 94, 0.13);
}

body {
  background: var(--admin-canvas);
  color: var(--admin-navy);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  grid-template-rows: 118px minmax(calc(100vh - 118px), 1fr);
  background:
    radial-gradient(circle at 89% 13%, rgba(69, 177, 244, 0.09), transparent 26%),
    radial-gradient(circle at 74% 92%, rgba(93, 115, 234, 0.07), transparent 28%),
    var(--admin-canvas);
}

/* Sidebar */

.app-header {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  z-index: 40;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 18px 18px;
  border: 0;
  border-right: 1px solid var(--admin-line);
  border-radius: 0;
  color: var(--admin-navy);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 8px 0 30px rgba(26, 52, 94, 0.035);
  overflow: hidden;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 9px 20px;
  border-bottom: 1px solid #f0f3f8;
}

.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px 17px 13px 17px;
  color: #fff;
  background: linear-gradient(145deg, #1673ea 8%, #12b6c8 92%);
  box-shadow: 0 9px 20px rgba(31, 119, 223, 0.25);
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-4deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px 11px 8px 11px;
}

.brand-copy { min-width: 0; display: grid; gap: 3px; }
.admin-sidebar-brand .brand-copy strong { color: var(--admin-navy); font-size: 20px; letter-spacing: -0.035em; }
.admin-sidebar-brand .brand-copy small { color: #8d99ae; font-size: 8px; font-weight: 850; letter-spacing: 0.12em; }

.admin-sidebar-nav {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 2px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dce4f0 transparent;
}

.sidebar-group-label {
  margin: 14px 12px 6px !important;
  color: #a0aabd !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: 0.11em !important;
  line-height: 1.3;
  text-transform: uppercase;
}

.admin-sidebar-dashboard,
.sidebar-direct-link,
.app-header .sidebar-module-link,
.app-header .sidebar-module > summary,
.app-header .hero-actions > button,
.app-header .hero-actions > .action-menu > summary,
.app-header .header-actions > button,
.app-header .header-actions > .action-menu > summary {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #58657d !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 660;
  text-align: left;
}

.admin-sidebar-dashboard {
  margin-bottom: 6px;
  color: #166ad9 !important;
  background: linear-gradient(90deg, #e9f2ff, #f3f7ff) !important;
  box-shadow: inset 3px 0 0 #2674ea !important;
}

.admin-sidebar-dashboard:hover,
.sidebar-direct-link:hover,
.app-header .sidebar-module-link:hover,
.app-header .sidebar-module > summary:hover,
.app-header .hero-actions > button:hover,
.app-header .hero-actions > .action-menu > summary:hover,
.app-header .header-actions > button:hover,
.app-header .header-actions > .action-menu > summary:hover {
  color: #1b2e53 !important;
  background: #f2f5fa !important;
  transform: none;
}

.nav-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #5d7299;
  background: transparent;
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
}

.admin-sidebar-dashboard .nav-icon {
  color: #1975e7;
  background: transparent;
  box-shadow: none;
  font-size: 21px;
}

.header-primary,
.header-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-actions { width: 100%; display: grid; gap: 2px; }
.hero-actions > .sidebar-group-label { margin-top: 18px !important; }
.app-header .action-menu { width: 100%; }
.app-header .action-menu[open] > summary { color: #1b2e53 !important; background: #f0f4fa !important; }
.app-header .sidebar-module > summary {
  position: relative;
  padding-right: 30px !important;
  list-style: none;
}

.app-header .sidebar-module > summary::-webkit-details-marker { display: none; }

.app-header .sidebar-module > summary::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  color: #9ba6b8;
  font-size: 18px;
  font-weight: 500;
  transform: translateY(-50%);
  transition: transform 150ms ease;
}

.app-header .sidebar-module[open] > summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.app-header .sidebar-module > summary:focus-visible {
  outline: 2px solid rgba(38, 116, 234, 0.42);
  outline-offset: -2px;
}

.sidebar-module-link > span:nth-child(2),
.sidebar-module > summary > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-module-link { position: relative; }

.sidebar-nav-divider {
  height: 1px;
  flex: 0 0 auto;
  margin: 13px 10px 10px;
  background: #edf0f5;
}

.sidebar-secondary-list { gap: 2px; }
.app-header .menu-list {
  position: static;
  width: 100%;
  max-height: 310px;
  margin: 2px 0 8px 19px;
  padding: 5px 5px 5px 10px;
  border: 0;
  border-left: 1px solid #dfe7f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto;
}

.app-header .menu-list button { min-height: 35px; color: #64718a; background: transparent; border-radius: 8px; font-size: 10.5px; }
.app-header .menu-list button:hover { color: #1e3156; background: #fff; }
.app-header .menu-list button > span { background: #e9eff8; color: #5d7093; }

.app-header #openActionCentre { display: flex !important; }

.sidebar-status-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.settings-link #cloudStatusDot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #9aa5b7;
  box-shadow: 0 0 0 3px rgba(154, 165, 183, 0.12);
}

.app-header .workspace-nav-active,
.app-header .sidebar-module .workspace-nav-active {
  color: #155fca !important;
  background: #eaf2ff !important;
  box-shadow: inset 3px 0 0 #2674ea !important;
}

/* Admin functions render as right-side workspace pages instead of modal overlays. */
.app-shell > main.admin-workspace-mode {
  max-width: none;
  padding: 18px 24px 24px;
  overflow: hidden;
}

.app-shell > main.admin-workspace-mode > :not(dialog.admin-workspace-dialog) {
  display: none !important;
}

dialog.admin-workspace-dialog[open] {
  position: static;
  inset: auto;
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: calc(100vh - 160px) !important;
  min-height: 560px;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border: 1px solid #e3e9f3;
  border-radius: 18px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 16px 46px rgba(26, 52, 94, 0.08);
  overflow: auto;
}

dialog.admin-workspace-dialog.admin-workspace-suspended {
  display: none !important;
}

dialog.admin-workspace-dialog::backdrop {
  display: none;
  background: transparent;
  backdrop-filter: none;
}

dialog.admin-workspace-dialog[open] > .dialog-shell,
dialog.admin-workspace-dialog[open] > form,
dialog.admin-workspace-dialog[open] > section,
dialog.admin-workspace-dialog[open] .agent-manager-shell,
dialog.admin-workspace-dialog[open] .course-management-shell,
dialog.admin-workspace-dialog[open] .finance-fullscreen-dialog-shell {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
}

dialog.admin-workspace-dialog[open] .dialog-header,
dialog.admin-workspace-dialog[open] .panel-toolbar {
  top: 0;
}

.settings-link.connected #cloudStatusDot {
  background: #12a678;
  box-shadow: 0 0 0 3px rgba(18, 166, 120, 0.13);
}

.country-switcher {
  width: auto;
  align-self: flex-start;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 3px;
  margin: 13px 0 2px 12px;
  padding: 3px;
  border: 1px solid #e4eaf2;
  border-radius: 9px;
  background: #f5f7fb;
}

.country-switcher button {
  min-width: 0;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #8b96a9;
  background: transparent;
  font-size: 9px;
  font-weight: 850;
}

.country-switcher button.active {
  color: #fff;
  background: #2674ea;
  box-shadow: 0 4px 10px rgba(38, 116, 234, 0.22);
}

.hero-count-badge {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--admin-red);
  font-size: 10px;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: #f9fbfe;
}

.sidebar-profile > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #337ff0, #7250d8);
  font-size: 13px;
  font-weight: 850;
}

.sidebar-profile div { min-width: 0; display: grid; gap: 2px; }
.sidebar-profile strong { overflow: hidden; color: #273654; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { overflow: hidden; color: #8a95a8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile b { color: #9ba6b8; font-size: 21px; }

/* Utility header */

.admin-utility-bar {
  position: sticky;
  top: 0;
  grid-column: 2;
  grid-row: 1;
  z-index: 30;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(300px, 470px) auto;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  padding: 18px clamp(24px, 3.1vw, 50px);
  border-bottom: 1px solid rgba(229, 234, 243, 0.9);
  background: rgba(249, 251, 255, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.utility-welcome { min-width: 0; }
.utility-welcome .utility-eyebrow {
  margin: 0 0 4px;
  color: #2880e9;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-utility-bar .utility-welcome h1 {
  margin: 0;
  color: var(--admin-navy);
  font-size: clamp(22px, 2vw, 29px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.utility-welcome h1 span { display: inline-block; font-size: 23px; transform: rotate(-7deg); }
.admin-utility-bar .utility-welcome > p:last-child { margin: 4px 0 0; color: #7c879c; font-size: 11px; font-weight: 570; }

.admin-global-search {
  min-width: 0;
  min-height: 47px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 15px;
  border: 1px solid #e0e7f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(26, 52, 94, 0.045);
}

.admin-global-search > span { color: #6f7e99; font-size: 22px; transform: rotate(-16deg); }
.admin-global-search input {
  width: 100%;
  min-height: 43px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #273654;
  background: transparent;
  box-shadow: none !important;
  font-size: 12px;
}

.admin-global-search input::placeholder { color: #a1aabc; }
.admin-global-search kbd { padding: 3px 7px; border: 1px solid #e2e7ef; border-radius: 6px; color: #8f99aa; background: #f8f9fc; font: 10px/1.2 inherit; }

.utility-actions { display: flex; align-items: center; gap: 9px; }
.utility-icon-button {
  width: 39px;
  height: 39px;
  min-height: 39px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e3e8f1;
  border-radius: 50%;
  color: #5d6c86;
  background: #fff;
  box-shadow: 0 5px 16px rgba(26, 52, 94, 0.04);
  font-size: 14px;
  font-weight: 800;
}

.utility-icon-button:hover { border-color: #b9cee9; color: #2674ea; background: #f7faff; }
.admin-user-pill { display: flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border: 1px solid #e3e8f1; border-radius: 999px; color: #33415f; background: #fff; font-size: 11px; }
.admin-user-pill span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #337ff0, #7250d8); font-weight: 850; }

/* Main dashboard */

.app-shell > main {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px) clamp(24px, 3.1vw, 50px) 64px;
  background: transparent;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.summary-card {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #e7ebf3;
  border-radius: 20px;
  color: var(--admin-navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--admin-shadow);
  text-align: left;
}

.summary-card:hover { border-color: color-mix(in srgb, var(--card-color) 34%, #e7ebf3); box-shadow: var(--admin-shadow-hover); transform: translateY(-2px); }
.summary-purple { --card-color: var(--admin-purple); --card-soft: var(--admin-purple-soft); }
.summary-blue { --card-color: var(--admin-blue); --card-soft: var(--admin-blue-soft); }
.summary-orange { --card-color: var(--admin-orange); --card-soft: var(--admin-orange-soft); }

.summary-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: var(--card-color);
  background: var(--card-soft);
  font-size: 27px;
  font-weight: 850;
}

.summary-copy { min-width: 0; display: grid; }
.summary-copy small { color: #6d7890; font-size: 11px; font-weight: 700; }
.summary-copy strong { margin: 3px 0 2px; color: var(--admin-navy); font-size: 27px; line-height: 1; }
.summary-copy em { overflow: hidden; color: #9099aa; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.summary-arrow { color: #9ba6b9; font-size: 28px; font-weight: 350; }

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.dashboard-section-heading div { min-width: 0; }
.dashboard-section-heading p { margin: 0 0 3px; color: #357be2; font-size: 9px; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.dashboard-section-heading h2 { margin: 0; color: var(--admin-navy); font-size: 21px; letter-spacing: -0.02em; }
.dashboard-section-heading > span { color: #8b95a8; font-size: 10.5px; }

.module-hub { margin-bottom: 34px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-card {
  --module-color: var(--admin-blue);
  --module-soft: var(--admin-blue-soft);
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 225px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  grid-template-rows: 1fr auto;
  gap: 16px 22px;
  padding: 26px 25px 20px;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 21px;
  background: linear-gradient(135deg, #fff 56%, color-mix(in srgb, var(--module-soft) 66%, #fff));
  box-shadow: var(--admin-shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -86px;
  z-index: -1;
  width: 210px;
  height: 210px;
  border: 24px solid color-mix(in srgb, var(--module-color) 8%, transparent);
  border-radius: 50%;
}

.module-card:hover { border-color: color-mix(in srgb, var(--module-color) 28%, #e5eaf2); box-shadow: var(--admin-shadow-hover); transform: translateY(-2px); }
.module-blue { --module-color: var(--admin-blue); --module-soft: var(--admin-blue-soft); }
.module-green { --module-color: var(--admin-green); --module-soft: var(--admin-green-soft); }
.module-purple { --module-color: var(--admin-purple); --module-soft: var(--admin-purple-soft); }
.module-orange { --module-color: var(--admin-orange); --module-soft: var(--admin-orange-soft); }

.module-card-copy { min-width: 0; }
.module-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 14px;
  color: var(--module-color);
  background: var(--module-soft);
  font-size: 21px;
  font-weight: 850;
}

.module-card-copy p { margin: 0 0 3px; color: var(--module-color); font-size: 9px; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.module-card-copy h3 { margin: 0 0 8px; color: #203253; font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; }
.module-card-copy > span:last-child { display: block; max-width: 360px; color: #748097; font-size: 11px; line-height: 1.55; }

.module-illustration {
  position: relative;
  align-self: center;
  width: 116px;
  height: 125px;
  padding: 36px 15px 12px;
  border: 2px solid color-mix(in srgb, var(--module-color) 18%, #fff);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--module-color) 10%, transparent);
  transform: rotate(2deg);
}

.module-illustration::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24px;
  border-radius: 12px 12px 0 0;
  background: color-mix(in srgb, var(--module-color) 28%, #fff);
}

.module-illustration::after { content: "• • •"; position: absolute; top: 5px; left: 11px; color: var(--module-color); font-size: 9px; letter-spacing: 2px; }
.module-illustration b { display: block; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 50%; background: color-mix(in srgb, var(--module-color) 75%, #fff); }
.module-illustration i { display: block; width: 100%; height: 7px; margin-top: 7px; border-radius: 999px; background: color-mix(in srgb, var(--module-color) 14%, #fff); }
.module-illustration i:nth-child(3) { width: 78%; }
.module-illustration i:nth-child(4) { width: 58%; }

.module-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-top: 15px; border-top: 1px solid #edf0f5; }
.module-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #788399;
  background: transparent;
  font-size: 10.5px;
  font-weight: 760;
}

.module-actions button:first-child { color: var(--module-color); background: var(--module-soft); }
.module-actions button:hover { color: var(--module-color); background: color-mix(in srgb, var(--module-soft) 75%, #fff); transform: none; }
.module-actions button b { margin-left: 6px; font-size: 15px; }

.queue-heading { margin-top: 3px; }
.student-management-dashboard-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.student-management-dashboard-scroll {
  min-height: 0;
  padding: 22px;
  overflow: auto;
  background: #f4f7fc;
}
.student-management-dashboard-scroll .queue-heading { margin-top: 0; }
.student-management-dashboard-scroll .dashboard-metrics { margin-bottom: 0; }
.messages-dashboard-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.messages-dashboard-content {
  min-height: 0;
  padding: 22px;
  overflow: auto;
  background: #f4f7fc;
}
.messages-dashboard-content .workflow-email-panel {
  margin: 0;
  padding: 20px;
  border-color: #dfe7f3;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
}
.dashboard-metrics { gap: 18px; margin-bottom: 18px; }
.metric-section {
  gap: 15px;
  padding: 21px;
  border: 1px solid #e4e9f1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--admin-shadow);
}

.metric-review-section,
.pipeline-section,
.daily-task-section { border-color: #e4e9f1; background: rgba(255, 255, 255, 0.92); }
.metric-section-heading { align-items: center; padding: 0 0 12px; border-bottom: 1px solid #edf1f6; }
.metric-section-heading h2 { color: #273654; font-size: 14px; }
.metric-section-heading p { color: #8b95a7; font-size: 10px; }
.metric-section-heading p strong { color: #273654; font-size: 12px; }
.metric-section-grid { grid-template-columns: repeat(4, minmax(128px, 1fr)); gap: 10px; }
.metric-review-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }

.metric {
  min-height: 91px;
  padding: 14px 15px !important;
  border: 1px solid #e7ebf2 !important;
  border-left: 1px solid #e7ebf2 !important;
  border-radius: 13px;
  background: #fff !important;
  box-shadow: none;
}

.metric::before { content: ""; display: block; width: 25px; height: 4px; margin-bottom: 9px; border-radius: 999px; background: #4c8de8; }
.metric:nth-child(4n + 2)::before { background: #17aa7c; }
.metric:nth-child(4n + 3)::before { background: #8754da; }
.metric:nth-child(4n + 4)::before { background: #ef9633; }
.metric.warning::before { background: #e45a64; }
.metric.ready::before { background: #18a779; }
.metric:hover,
.metric:focus-visible { border-color: #c9d7e9 !important; box-shadow: 0 12px 25px rgba(26, 52, 94, 0.085); transform: translateY(-2px); }
.metric span { color: #747f95; font-size: 10.5px !important; }
.metric strong { color: #263757; font-size: 23px !important; }
.metric small { color: #929bac; font-size: 9.5px; }
.metric em { margin-top: 6px; color: #54749e; font-size: 8.5px; }

body.teacher-mode .dashboard-summary,
body.teacher-mode .module-hub,
body.teacher-mode .queue-heading,
body.teacher-mode .admin-global-search,
body.teacher-mode .sidebar-direct-link,
body.teacher-mode .sidebar-profile {
  display: none !important;
}

@media (max-width: 1230px) {
  .app-shell { grid-template-columns: 252px minmax(0, 1fr); }
  .admin-utility-bar { grid-template-columns: minmax(250px, 1fr) minmax(260px, 400px) auto; }
  .metric-section-grid,
  .metric-review-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 1020px) {
  .admin-utility-bar { grid-template-columns: 1fr minmax(250px, 360px); }
  .utility-actions { display: none; }
  .module-card { grid-template-columns: minmax(0, 1fr) 98px; padding-right: 20px; }
  .module-illustration { width: 92px; transform: scale(0.9) rotate(2deg); transform-origin: right center; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .app-header {
    position: relative;
    min-height: 0;
    max-height: none;
    display: block;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    overflow: visible;
  }
  .admin-sidebar-brand { min-height: 48px; padding: 0 6px 12px; }
  .brand-mark { width: 37px; height: 37px; font-size: 18px; }
  .admin-sidebar-nav { display: block; padding: 8px 0 0; overflow: visible; }
  .admin-sidebar-nav > .sidebar-group-label,
  .admin-sidebar-dashboard,
  .sidebar-direct-link,
  .header-primary > .sidebar-group-label,
  .hero-actions > .sidebar-group-label,
  .header-actions > .sidebar-group-label,
  .sidebar-profile,
  .country-switcher { display: none !important; }
  .header-primary { display: block; }
  .hero-actions { display: flex; flex-flow: row nowrap; gap: 6px; padding-bottom: 3px; overflow-x: auto; }
  .app-header .hero-actions > button,
  .app-header .hero-actions > .action-menu > summary { min-width: 146px; }
  .header-actions { display: flex; flex-flow: row nowrap; gap: 6px; margin-top: 5px; overflow-x: auto; }
  .app-header .header-actions > button,
  .app-header .header-actions > .action-menu > summary { min-width: 146px; }
  .app-header .menu-list { position: absolute; z-index: 80; width: min(330px, calc(100vw - 28px)); max-height: 60vh; background: #fff; box-shadow: 0 20px 50px rgba(26, 52, 94, 0.18); }
  .admin-utility-bar { position: sticky; top: 0; grid-template-columns: minmax(0, 1fr) minmax(220px, 42vw); padding: 13px 18px; }
  .admin-utility-bar .utility-welcome h1 { font-size: 19px; }
  .utility-welcome .utility-eyebrow,
  .utility-welcome > p:last-child { display: none; }
  .app-shell > main { padding: 22px 18px 44px; }
  .app-shell > main.admin-workspace-mode { padding: 14px; overflow: visible; }
  dialog.admin-workspace-dialog[open] { height: auto !important; min-height: 70vh; overflow: visible; }
  dialog.admin-workspace-dialog[open] > .dialog-shell,
  dialog.admin-workspace-dialog[open] > form,
  dialog.admin-workspace-dialog[open] > section { height: auto !important; min-height: 70vh; }
  .dashboard-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
  .summary-card { min-height: 94px; grid-template-columns: 43px minmax(0, 1fr); gap: 10px; padding: 15px; border-radius: 15px; }
  .summary-icon { width: 43px; height: 43px; border-radius: 13px; font-size: 19px; }
  .summary-arrow { display: none; }
  .module-grid { grid-template-columns: 1fr; }
  .metric-section-grid,
  .metric-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .app-header .header-actions { display: flex !important; }
  .admin-utility-bar { grid-template-columns: 1fr auto; }
  .admin-global-search { width: 44px; min-height: 44px; display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .admin-global-search input,
  .admin-global-search kbd { display: none; }
  .admin-global-search > span { font-size: 21px; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .summary-card { min-height: 90px; grid-template-columns: 48px minmax(0, 1fr) auto; }
  .summary-icon { width: 48px; height: 48px; }
  .summary-arrow { display: block; }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .module-card { min-height: 218px; grid-template-columns: minmax(0, 1fr) 76px; gap: 13px; padding: 22px 18px 17px; }
  .module-illustration { width: 80px; transform: scale(0.75) rotate(2deg); transform-origin: right center; }
  .module-actions { overflow-x: auto; }
  .metric-section { padding: 16px; border-radius: 16px; }
  .metric-section-grid,
  .metric-review-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .module-card,
  .summary-card,
  .metric { transition: none; }
}

.agent-contract-sign-dialog{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 32px)}
.agent-contract-sign-dialog .contract-esign-form canvas{display:block;width:100%;height:140px;margin:8px 0;border:1px solid #b9c8df;border-radius:10px;background:#fff;touch-action:none}
