:root {
  --bg: #f3f7fb;
  --bg-strong: #e9f2f7;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --surface-tint: #eef7fa;
  --brand: #0e7186;
  --brand-dark: #123e56;
  --brand-deep: #102d44;
  --accent: #c95f4b;
  --ink: #172b3f;
  --muted: #66788a;
  --line: #dce7ee;
  --line-strong: #c9d9e3;
  --success-bg: #e5f6ed;
  --success: #216342;
  --warning-bg: #fff1d9;
  --warning: #855400;
  --danger-bg: #fde9e7;
  --danger: #983a31;
  --shadow-sm: 0 8px 22px rgba(18, 62, 86, 0.08);
  --shadow: 0 18px 46px rgba(18, 62, 86, 0.11);
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(14, 113, 134, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 52%, #edf5f8 100%);
  background-size: 44px 44px, auto;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 260px;
  background: linear-gradient(135deg, rgba(14, 113, 134, 0.15), rgba(18, 62, 86, 0.08) 48%, transparent);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; }

.dashboard-home {
  background: #f7fbfe;
}

.dashboard-home::before {
  display: none;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #f7fbfe;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  min-height: 54px;
  text-decoration: none;
}

.dashboard-brand img {
  max-width: 190px;
  height: auto;
}

.sidebar-menu {
  display: grid;
  gap: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 850;
}

.sidebar-menu a span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  color: var(--brand);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: #eaf8fa;
  color: var(--brand);
}

.sidebar-help {
  margin-top: auto;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sidebar-help strong {
  color: var(--brand-dark);
}

.sidebar-help a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.dashboard-main {
  min-width: 0;
  padding: 0 42px 42px;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  background: rgba(247, 251, 254, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-links,
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-links a,
.topbar-auth a,
.topbar-auth button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--brand-dark);
  text-decoration: none;
  font: inherit;
  font-weight: 850;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topbar-links a.active::after,
.topbar-links a:hover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.topbar-auth a,
.topbar-auth button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.topbar-auth .primary {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 28px;
  align-items: start;
  padding: 42px 0 28px;
}

.dashboard-hero p {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-weight: 850;
}

.dashboard-hero h1 {
  margin: 0;
  color: #111c30;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.dashboard-hero span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.metric-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span {
  color: var(--brand-dark);
  font-weight: 850;
}

.metric-card strong {
  margin-top: 18px;
  color: #111c30;
  font-size: 2.25rem;
  line-height: 1;
}

.metric-card small {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 850;
}

.metric-card.accent small {
  color: var(--accent);
}

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

.module-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 150px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0a8ba0, #044a62);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 16px 32px rgba(14, 113, 134, 0.22);
}

.module-icon.coral {
  background: linear-gradient(145deg, #0f91a1, #0b5f73);
}

.module-feature-card h2 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 1.28rem;
}

.module-feature-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.status-chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 850;
}

.status-chip.teal {
  background: #dff5f4;
  color: var(--brand);
}

.status-chip.coral {
  background: #ffebe7;
  color: var(--accent);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.14rem;
}

.panel-heading a {
  color: #0b4f95;
  text-decoration: none;
  font-weight: 850;
  font-size: 0.9rem;
}

.dashboard-list {
  display: block;
}

.dashboard-list .session-card {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 17px 22px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.dashboard-list .session-card::before {
  display: none;
}

.dashboard-list .session-card:last-child {
  border-bottom: 0;
}

.dashboard-list .session-card .pill-row {
  margin-bottom: 2px;
}

.dashboard-list .session-card h3 {
  font-size: 1rem;
}

.dashboard-list .session-card p {
  margin-bottom: 6px;
  font-size: 0.91rem;
  line-height: 1.45;
}

.dashboard-list .session-card .button-row {
  margin-top: 2px;
}

.feedback-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #f3beb4;
  border-radius: 12px;
  background: #fff7f4;
  color: var(--accent);
}

.feedback-strip span {
  color: var(--ink);
  line-height: 1.5;
}

.login-gate-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.login-gate-panel h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.login-gate-panel p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-page-header .section-kicker {
  margin-bottom: 7px;
}

.admin-page-header h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.admin-page-header span {
  display: block;
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-header-actions {
  flex: 0 0 auto;
}

/* Density and cross-site product shell refinements */
body {
  font-size: 14px;
}

.dashboard-shell {
  grid-template-columns: 228px minmax(0, 1fr);
}

.dashboard-sidebar {
  gap: 18px;
  padding: 18px 14px;
}

.dashboard-brand {
  min-height: 44px;
}

.dashboard-brand img {
  max-width: 168px;
}

.sidebar-menu {
  gap: 5px;
}

.sidebar-menu a {
  min-height: 40px;
  padding: 9px 11px;
  gap: 9px;
  font-size: 0.9rem;
}

.sidebar-menu a span {
  width: 20px;
}

.dashboard-main {
  padding: 0 28px 30px;
}

.dashboard-topbar {
  min-height: 64px;
}

.topbar-links,
.topbar-auth {
  gap: 15px;
}

.topbar-links a,
.topbar-auth a,
.topbar-auth button {
  min-height: 34px;
  font-size: 0.9rem;
}

.topbar-auth a,
.topbar-auth button {
  padding: 7px 11px;
}

.topbar-links a.active::after,
.topbar-links a:hover::after {
  bottom: -15px;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: 22px;
  padding: 22px 0 18px;
  align-items: stretch;
}

.dashboard-hero p {
  margin-bottom: 8px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.dashboard-hero h1 {
  max-width: 620px;
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.dashboard-hero span {
  max-width: 560px;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.dashboard-actions {
  gap: 10px;
  margin-top: 16px;
}

.metric-grid {
  align-self: stretch;
  gap: 10px;
}

.metric-card {
  min-height: 104px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.metric-card span {
  font-size: 0.86rem;
  line-height: 1.25;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 1.65rem;
}

.metric-card small {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 0.78rem;
}

.module-walkthroughs,
.dashboard-panels {
  gap: 16px;
}

.module-feature-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 124px;
  padding: 18px;
}

.module-feature-card .button {
  grid-column: 2;
  justify-self: start;
}

.module-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  font-size: 1.45rem;
}

.module-feature-card h2 {
  font-size: 1.08rem;
}

.module-feature-card p {
  margin-bottom: 10px;
  line-height: 1.45;
}

.status-chip {
  padding: 5px 9px;
  font-size: 0.76rem;
}

.panel-heading {
  padding: 16px 18px 11px;
}

.dashboard-list .session-card {
  gap: 5px;
  padding: 13px 18px;
}

.dashboard-list .session-card h3 {
  font-size: 0.96rem;
}

.dashboard-list .session-card p {
  font-size: 0.84rem;
}

.feedback-strip {
  margin-top: 18px;
  padding: 14px 16px;
}

.button {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.pill,
.attendance-pill,
.submission-state-header span {
  min-height: 25px;
  padding: 5px 8px;
  font-size: 0.7rem;
}

body:not(.dashboard-home) {
  background: #f7fbfe;
}

body:not(.dashboard-home)::before {
  display: none;
}

body:not(.dashboard-home) .site-shell {
  width: min(1180px, calc(100% - 36px));
  padding: 16px 0 34px;
}

body:not(.dashboard-home) .site-nav {
  position: sticky;
  top: 10px;
  margin-bottom: 14px;
  min-height: 58px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

body:not(.dashboard-home) .site-nav a,
body:not(.dashboard-home) .site-nav button,
body:not(.dashboard-home) .auth-badge {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.88rem;
}

body:not(.dashboard-home) .site-nav .nav-brand-link {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
  font-weight: 900;
}

body:not(.dashboard-home) .hero {
  padding: 24px;
  border-radius: 12px;
}

body:not(.dashboard-home) .hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

body:not(.dashboard-home) .hero p {
  margin-top: 9px;
  font-size: 0.94rem;
  line-height: 1.55;
}

body:not(.dashboard-home) .hero-kicker {
  margin-bottom: 7px;
  font-size: 0.66rem;
}

body:not(.dashboard-home) .brand-card {
  min-width: 76px;
  min-height: 76px;
}

body:not(.dashboard-home) .brand-card img {
  width: 58px;
}

body:not(.dashboard-home) .stat-card {
  max-width: 230px;
  padding: 14px;
}

.section-card,
.form-card,
.admin-card,
.auth-card {
  padding: 20px;
}

.section-card h2,
.form-card h2,
.admin-card h2,
.auth-card h2 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.section-card p,
.form-card p,
.admin-card p,
.auth-card p {
  margin-bottom: 13px;
  line-height: 1.55;
}

.grid-3,
.grid-2 {
  gap: 13px;
  margin-top: 18px;
}

.summary-card {
  padding: 14px 15px;
}

.summary-card .label,
.module-tile .label,
.field label {
  font-size: 0.68rem;
}

.agenda-item,
.assigned-test-card,
.module-tile,
.mini-card,
.builder-block,
.builder-item {
  padding: 13px;
}

.field input,
.field select,
.field textarea {
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.field textarea {
  min-height: 92px;
}

.admin-tablist {
  padding: 7px;
  gap: 6px;
}

.admin-nav-button {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.mini-grid {
  gap: 10px;
}

.mini-card {
  padding: 14px;
}

.mini-card small {
  font-size: 1.22rem;
}

th,
td {
  padding: 10px 11px;
}

.modal-card {
  padding: 20px;
}

.home-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(14, 113, 134, 0.9), rgba(16, 45, 68, 0.96)),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.home-hero .hero-compact {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5.6vw, 5.4rem);
}

.home-hero p {
  max-width: 680px;
  font-size: 1.12rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 60px rgba(7, 26, 42, 0.26);
}

.hero-panel-header span,
.hero-panel-header strong,
.hero-metric-row strong,
.hero-metric-row span {
  display: block;
}

.hero-panel-header span {
  margin-bottom: 5px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 850;
}

.hero-panel-header strong {
  color: var(--brand-deep);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.hero-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-metric-row div {
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.hero-metric-row strong {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 1.35rem;
}

.hero-metric-row span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.9rem;
}

.hub-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hub-overview article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hub-overview span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.hub-overview strong {
  color: var(--brand-deep);
  font-size: 1rem;
}

.hub-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.session-section {
  margin-top: 18px;
  padding: 30px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading-row p:last-child {
  margin-bottom: 0;
}

.site-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.site-nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a,
.site-nav button,
.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-nav a:hover,
.site-nav button:hover {
  transform: translateY(-1px);
  background: var(--surface-tint);
  border-color: var(--line);
}

.site-nav a.primary,
.site-nav button.primary,
.button.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 9px 20px rgba(14, 113, 134, 0.22);
}

.auth-badge {
  background: #f2f8fb;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 35%),
    linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.06);
}

.hero-grid,
.hero-compact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.hero-compact-copy,
.hero-grid > div:first-child {
  max-width: 860px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.section-kicker {
  color: var(--brand);
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 14px 0 0;
  max-width: 790px;
  color: rgba(255, 255, 255, 0.83);
  line-height: 1.65;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-card,
.stat-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-card {
  display: grid;
  place-items: center;
  min-width: 104px;
  min-height: 104px;
  padding: 14px;
}

.brand-card img {
  width: 76px;
  max-width: 100%;
  display: block;
  filter: brightness(0) invert(1);
}

.stat-card {
  max-width: 260px;
  padding: 18px;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  margin-bottom: 8px;
  color: #fff;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.92rem;
}

.section-card,
.summary-card,
.form-card,
.admin-card,
.auth-card,
.modal-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section-card,
.form-card,
.admin-card,
.auth-card {
  padding: 26px;
}

.primary-section {
  margin-top: 24px;
}

.section-card h2,
.form-card h2,
.admin-card h2,
.auth-card h2 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.section-card h3,
.form-card h3,
.admin-card h3 {
  color: var(--ink);
}

.section-card p,
.form-card p,
.admin-card p,
.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.summary-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
  opacity: 0.8;
}

.summary-card .label,
.module-tile .label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-card .value,
.module-tile .value {
  color: var(--brand-dark);
  font-weight: 850;
  line-height: 1.45;
}

.session-list,
.management-grid,
.stack-block,
.assigned-tests,
.agenda-list,
.builder-list,
.admin-content,
.admin-panel {
  display: grid;
  gap: 16px;
}

.session-section .session-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.session-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(14, 113, 134, 0.055), rgba(255, 255, 255, 0) 38%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(18, 62, 86, 0.07);
  min-height: 100%;
}

.session-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.session-card h3 {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.session-card p {
  margin: 0 0 16px;
  max-width: 980px;
  color: #536778;
  line-height: 1.65;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill,
.attendance-pill,
.submission-state-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf5f8;
  color: #526d7e;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill,
.attendance-pill.status-attending {
  background: var(--success-bg);
  color: var(--success);
}

.attendance-pill.status-maybe {
  background: var(--warning-bg);
  color: var(--warning);
}

.attendance-pill.status-not_attending {
  background: var(--danger-bg);
  color: var(--danger);
}

.strong-pill {
  background: rgba(14, 113, 134, 0.12);
  color: var(--brand-dark);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 62, 86, 0.12);
}

.button.secondary {
  background: var(--surface-soft);
}

.button.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #f3c7c2;
}

.button.ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.button-row.compact .button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 0.84rem;
}

.button-row.compact {
  flex-wrap: nowrap;
  gap: 6px;
}

.button-row.compact .button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.74rem;
  white-space: nowrap;
}

td .button-row.compact {
  min-width: max-content;
}

th:last-child,
td:last-child {
  width: 1%;
  white-space: nowrap;
}

.agenda-item,
.assigned-test-card,
.module-tile,
.mini-card,
.builder-block,
.builder-item,
.attendee-card {
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.agenda-item,
.assigned-test-card,
.module-tile,
.mini-card,
.builder-block,
.builder-item {
  padding: 16px;
}

.agenda-item .time {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
}

.agenda-item strong,
.assigned-test-card h3 {
  display: block;
  margin: 0 0 6px;
  color: var(--brand-deep);
}

.agenda-item p,
.assigned-test-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 113, 134, 0.12);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.message {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 750;
  line-height: 1.5;
}

.message.show { display: block; }
.message.success { background: var(--success-bg); color: var(--success); }
.message.error { background: var(--danger-bg); color: var(--danger); }

.admin-topbar {
  margin-bottom: 18px;
}

.admin-tablist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.admin-nav-button {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-nav-button:hover {
  background: var(--surface-tint);
}

.admin-nav-button.active {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 113, 134, 0.18);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-header h2,
.section-header h3 {
  margin: 0 0 6px;
}

.section-header p {
  margin: 0;
}

.management-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

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

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

.mini-card small,
.mini-card strong,
.mini-card span,
.project-card h3,
.project-card h4 {
  display: block;
}

.mini-card strong {
  color: var(--brand-dark);
}

.mini-card small {
  margin-top: 8px;
  color: var(--brand);
  font-size: 1.55rem;
  font-weight: 900;
}

.mini-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.project-card h3,
.project-card h4 {
  margin: 0;
}

.project-card h4 {
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.checkbox-inline input {
  margin: 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

/* Enterprise dashboard reset: remove the oversized concept treatment. */
.dashboard-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.dashboard-sidebar {
  gap: 16px;
  padding: 18px 14px;
}

.dashboard-brand {
  display: grid;
  gap: 9px;
  min-height: auto;
  padding: 0 10px 14px;
  border-bottom: 1px solid var(--line);
}

.dashboard-brand img {
  max-width: 112px;
  max-height: 82px;
  object-fit: contain;
}

.dashboard-brand span {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-main {
  padding: 0 28px 30px;
}

.dashboard-topbar {
  min-height: 60px;
  padding: 0;
}

.topbar-title {
  display: grid;
  gap: 3px;
}

.topbar-title strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.topbar-title span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  gap: 20px;
  padding: 18px 0 16px;
  align-items: stretch;
}

.dashboard-hero h1 {
  max-width: 620px;
  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
}

.dashboard-hero span {
  max-width: 560px;
  margin-top: 9px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.metric-grid {
  gap: 9px;
}

.metric-card {
  min-height: 88px;
  padding: 12px;
  box-shadow: none;
}

.metric-card span {
  font-size: 0.82rem;
  line-height: 1.22;
}

.metric-card strong {
  margin-top: 5px;
  font-size: 1.35rem;
}

.metric-card small {
  margin-top: 7px;
  padding-top: 7px;
  font-size: 0.74rem;
}

.module-walkthroughs,
.dashboard-panels {
  gap: 14px;
}

.module-feature-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  min-height: 104px;
  padding: 14px;
  box-shadow: none;
}

.module-feature-card .button {
  grid-column: auto;
  justify-self: end;
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  font-size: 1rem;
  box-shadow: none;
}

.module-feature-card h2 {
  font-size: 1rem;
}

.module-feature-card p {
  margin-bottom: 8px;
  line-height: 1.42;
}

.dashboard-panel {
  box-shadow: none;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f3f8fb;
  color: var(--brand-dark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: #43586b;
  line-height: 1.45;
}

.footer-note,
.auth-gate {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: rgba(248, 251, 253, 0.92);
  color: var(--muted);
  line-height: 1.65;
}

.auth-gate {
  margin-top: 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-top: 24px;
}

.submission-state {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--success-bg);
  border: 1px solid #bee4cd;
  color: var(--success);
  margin-bottom: 16px;
}

.submission-state p {
  margin: 10px 0 0;
}

.submission-state-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.submission-state-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.attendee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.attendee-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  min-height: 104px;
}

.attendee-card strong {
  display: block;
  line-height: 1.35;
}

.attendee-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feedback-panel {
  display: block;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(201, 95, 75, 0.12), rgba(255, 255, 255, 0.96) 44%),
    #fff;
  border: 1px solid #efd1ca;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.feedback-toggle {
  list-style: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
}

.feedback-toggle::-webkit-details-marker {
  display: none;
}

.feedback-toggle strong {
  display: block;
  font-size: 1.16rem;
  color: #8d3f32;
}

.feedback-toggle small {
  display: block;
  margin-top: 7px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #755c55;
}

.feedback-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 0;
  font-weight: 800;
  flex-shrink: 0;
}

.feedback-panel[open] .feedback-toggle-icon::before {
  content: "-";
  font-size: 1.5rem;
}

.feedback-panel:not([open]) .feedback-toggle-icon::before {
  content: "+";
  font-size: 1.5rem;
}

.feedback-content {
  padding: 0 22px 22px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 45, 68, 0.58);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.modal-card {
  padding: 28px;
}

.session-nav {
  display: grid;
  gap: 8px;
}

.session-nav button {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.session-nav button.active {
  background: var(--surface-tint);
  color: var(--brand-dark);
  border-color: rgba(14, 113, 134, 0.3);
}

.platform-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.platform-banner strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.platform-banner span {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Semantic colour and icon pass: keep Medray blue as the base, then use
   restrained accents to make status and module ownership easier to scan. */
:root {
  --request: #0f8a8f;
  --request-bg: #e4f7f6;
  --uat: #4758b8;
  --uat-bg: #eef1ff;
  --contract: #b85f45;
  --contract-bg: #fff0eb;
  --admin: #6a4fb0;
  --admin-bg: #f3efff;
  --complete: #238052;
  --complete-bg: #e7f7ee;
  --attention: #b26a00;
  --attention-bg: #fff4dc;
}

.dashboard-home {
  background: #f8fbfd;
}

.sidebar-menu a span,
.module-icon,
.metric-card::after,
.admin-nav-button::before {
  line-height: 1;
}

.sidebar-menu a:nth-child(2) span {
  color: var(--request);
}

.sidebar-menu a:nth-child(3) span {
  color: var(--uat);
}

.sidebar-menu a.admin-only span {
  color: var(--admin);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: linear-gradient(90deg, rgba(15, 138, 143, 0.12), rgba(15, 138, 143, 0.04));
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(201, 217, 227, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98));
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}

.metric-card::after {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 900;
}

.metric-card:nth-child(1)::before { background: var(--request); }
.metric-card:nth-child(1)::after {
  content: "▦";
  background: var(--request-bg);
  color: var(--request);
}

.metric-card:nth-child(2)::before { background: var(--uat); }
.metric-card:nth-child(2)::after {
  content: "✓";
  background: var(--uat-bg);
  color: var(--uat);
}

.metric-card:nth-child(3)::before { background: var(--complete); }
.metric-card:nth-child(3)::after {
  content: "☑";
  background: var(--complete-bg);
  color: var(--complete);
}

.metric-card:nth-child(4)::before { background: var(--attention); }
.metric-card:nth-child(4)::after {
  content: "!";
  background: var(--attention-bg);
  color: var(--attention);
}

.metric-card small {
  color: var(--request);
}

.metric-card:nth-child(2) small {
  color: var(--uat);
}

.metric-card:nth-child(3) small {
  color: var(--complete);
}

.metric-card.accent small,
.metric-card:nth-child(4) small {
  color: var(--attention);
}

.module-feature-card {
  position: relative;
}

.module-feature-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--brand);
}

.module-feature-card.request-card {
  background:
    linear-gradient(90deg, rgba(15, 138, 143, 0.06), transparent 46%),
    #fff;
}

.module-feature-card.contract-card {
  background:
    linear-gradient(90deg, rgba(184, 95, 69, 0.07), transparent 46%),
    #fff;
}

.request-card::before,
.theme-requests::before {
  background: var(--request);
}

.contract-card::before,
.theme-contracts::before {
  background: var(--contract);
}

.validation-card::before,
.theme-uat::before {
  background: var(--uat);
}

.request-card .module-icon {
  background: linear-gradient(145deg, #12a4a8, #0a6572);
}

.contract-card .module-icon,
.module-icon.coral {
  background: linear-gradient(145deg, #d36b4f, #8f3e31);
}

.status-chip.teal {
  background: var(--request-bg);
  color: var(--request);
}

.status-chip.coral {
  background: var(--contract-bg);
  color: var(--contract);
}

.session-card.theme-requests {
  background:
    linear-gradient(90deg, rgba(15, 138, 143, 0.07), rgba(255, 255, 255, 0) 34%),
    #fff;
}

.session-card.theme-contracts {
  background:
    linear-gradient(90deg, rgba(184, 95, 69, 0.07), rgba(255, 255, 255, 0) 34%),
    #fff;
}

.session-card.theme-uat,
.session-card.validation-card {
  background:
    linear-gradient(90deg, rgba(71, 88, 184, 0.065), rgba(255, 255, 255, 0) 34%),
    #fff;
}

.pill.status-info,
.status-pill {
  background: var(--uat-bg);
  color: var(--uat);
}

.pill.status-success,
.attendance-pill.status-attending {
  background: var(--complete-bg);
  color: var(--complete);
}

.pill.status-warning,
.attendance-pill.status-maybe {
  background: var(--attention-bg);
  color: var(--attention);
}

.pill.status-danger,
.attendance-pill.status-not_attending {
  background: var(--danger-bg);
  color: var(--danger);
}

.feedback-strip {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  border-color: rgba(178, 106, 0, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 244, 220, 0.92), rgba(255, 255, 255, 0.96));
  color: var(--attention);
}

.feedback-strip::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--attention-bg);
  color: var(--attention);
  font-weight: 900;
}

.admin-page-header {
  background:
    linear-gradient(90deg, rgba(106, 79, 176, 0.09), rgba(255, 255, 255, 0.96) 48%),
    #fff;
  border-left: 4px solid var(--admin);
}

.admin-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-nav-button::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-nav-button[data-view="overview"]::before { content: "▦"; }
.admin-nav-button[data-view="projects"]::before { content: "◫"; color: var(--request); background: var(--request-bg); }
.admin-nav-button[data-view="modules"]::before { content: "▣"; color: var(--contract); background: var(--contract-bg); }
.admin-nav-button[data-view="workshops"]::before { content: "▤"; color: var(--request); background: var(--request-bg); }
.admin-nav-button[data-view="validation"]::before { content: "✓"; color: var(--uat); background: var(--uat-bg); }
.admin-nav-button[data-view="users"]::before { content: "●"; color: var(--complete); background: var(--complete-bg); }
.admin-nav-button[data-view="feedback"]::before { content: "!"; color: var(--attention); background: var(--attention-bg); }
.admin-nav-button[data-view="settings"]::before { content: "⚙"; color: var(--admin); background: var(--admin-bg); }

.admin-nav-button.active::before {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.login-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #103653, #0e7186 58%, #184063);
}

.login-path-card {
  display: grid;
  gap: 10px;
  min-width: 300px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-deep);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 44px rgba(7, 26, 42, 0.2);
}

.login-path-card strong,
.login-path-card span {
  display: block;
}

.login-path-card strong {
  font-size: 1.12rem;
}

.login-path-card span {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.4;
}

.login-path-card span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--complete-bg);
  color: var(--complete);
  font-size: 0.68rem;
  font-weight: 900;
}

.progress-row {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.progress-row div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.progress-row strong {
  color: var(--brand-deep);
  font-size: 0.98rem;
}

.progress-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0f5;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--uat), var(--complete));
}

.pill.status-admin {
  background: var(--admin-bg);
  color: var(--admin);
}

.invite-card {
  border-left: 4px solid var(--uat);
  background:
    linear-gradient(90deg, rgba(71, 88, 184, 0.08), rgba(255, 255, 255, 0.98) 44%),
    #fff;
}

.table-wrap table td:first-child strong {
  color: var(--brand-deep);
}

.table-wrap small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-card .progress-row {
  min-width: 150px;
}

.user-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.user-picker-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.user-picker-item:has(input:checked) {
  border-color: rgba(71, 88, 184, 0.35);
  background: var(--uat-bg);
}

.user-picker-item input {
  margin-top: 4px;
}

.user-picker-item span,
.user-picker-item strong,
.user-picker-item small,
.user-picker-item em {
  display: block;
}

.user-picker-item strong {
  color: var(--brand-deep);
}

.user-picker-item small {
  margin-top: 3px;
  color: var(--muted);
}

.user-picker-item em {
  margin-top: 5px;
  color: var(--request);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

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

  .dashboard-sidebar {
    position: static;
    height: auto;
  }

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

  .sidebar-help {
    display: none;
  }

  .dashboard-main {
    padding: 0 22px 32px;
  }

  .dashboard-hero,
  .module-walkthroughs,
  .dashboard-panels {
    grid-template-columns: 1fr;
  }

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

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

  .hero-grid,
  .hero-compact,
  .home-hero .hero-compact,
  .hub-overview {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-side {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .dashboard-topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
  }

  .topbar-links,
  .topbar-auth {
    gap: 10px;
  }

  .topbar-links a.active::after,
  .topbar-links a:hover::after {
    display: none;
  }

  .module-feature-card {
    grid-template-columns: 1fr;
  }

  .site-shell {
    width: min(100% - 28px, 1240px);
    padding-top: 14px;
  }

  .site-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-3,
  .grid-2,
  .module-grid,
  .auth-grid,
  .mini-grid,
  .management-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 26px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.3rem);
  }

  .section-header,
  .submission-state-header,
  .platform-banner,
  .section-heading-row,
  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .dashboard-main {
    padding: 0 14px 24px;
  }

  .dashboard-sidebar {
    padding: 16px 14px;
  }

  .sidebar-menu,
  .metric-grid,
  .feedback-strip,
  .login-gate-panel {
    grid-template-columns: 1fr;
  }

  .login-gate-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero {
    padding-top: 26px;
  }

  .dashboard-hero h1 {
    font-size: 2.25rem;
  }

  .site-shell {
    width: min(100% - 20px, 1240px);
    padding-bottom: 28px;
  }

  .site-nav-links,
  .site-nav a,
  .site-nav button,
  .button,
  .button-row {
    width: 100%;
  }

  .site-nav a,
  .site-nav button,
  .button {
    justify-content: center;
  }

  .hero,
  .section-card,
  .form-card,
  .admin-card,
  .auth-card,
  .modal-card {
    padding: 20px;
  }

  .session-card {
    padding: 18px;
  }

  .hero-metric-row,
  .session-section .session-list {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }
}
