/*
 * Flexee family look for SCM: the Financial Accounting V3 frame (Flux
 * sidebar, zinc greys) in SCM's own colours, restored in Round 3: red
 * #ed1c24 as the accent, slate blue #404565 as the second colour, Inter.
 *
 * Loaded after each page's own stylesheet (admin.css, faculty.css,
 * student.css, auth.css), so it only restyles: no page markup, form or
 * script depends on it. Plain CSS, no Tailwind, because the student pages
 * also load Bootstrap and the two clash on class names.
 *
 * The page stylesheets themselves had their colours mapped onto the same
 * palette (docs/LOOK_AND_FEEL.md lists the mapping).
 */

:root {
  --fx-sidebar-width: 16rem;
  --fx-font: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --fx-zinc-50: #fafafa;
  --fx-zinc-100: #f4f4f5;
  --fx-zinc-200: #e4e4e7;
  --fx-zinc-300: #d4d4d8;
  --fx-zinc-400: #a1a1aa;
  --fx-zinc-500: #71717a;
  --fx-zinc-600: #52525b;
  --fx-zinc-700: #3f3f46;
  --fx-zinc-800: #27272a;
  --fx-zinc-900: #18181b;
  --fx-zinc-950: #09090b;
  --fx-accent: #ed1c24;          /* SCM red ($clr-primary) */
  --fx-accent-hover: #c8141b;
  --fx-accent-soft: #fdecec;
  --fx-accent-strong-text: #a3121a;
  --fx-accent-ring: rgba(237, 28, 36, 0.25);
  --fx-secondary: #404565;       /* SCM slate ($clr-secondary) */
  --fx-secondary-soft: #eef0f6;
  --fx-success: #2f7d0b;         /* the original success green, darkened for text */
  --fx-success-soft: #eef7e8;
  --fx-help: #a7a7a7;
  --fx-info: #e5a000;
  --fx-danger: #dc2626;          /* red-600 */
  --fx-warning-bg: #fffbeb;      /* amber-50 */
  --fx-warning-border: #fcd34d;  /* amber-300 */
  --fx-warning-text: #92400e;    /* amber-800 */
  --fx-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --fx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ---------- Base ---------- */

html body {
  font-family: var(--fx-font);
  color: var(--fx-zinc-950);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--fx-font);
  letter-spacing: normal;
}

body ::selection { background: #f8c4c6; }

.fx-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Frame ---------- */

.adminTemplate .asideLeft.fx-sidebar {
  width: var(--fx-sidebar-width);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1rem;
  overflow-y: auto;
  background: var(--fx-zinc-50);
  border-right: 1px solid var(--fx-zinc-200);
  box-sizing: border-box;
  text-align: left;
}

.adminTemplate .asideRight {
  width: calc(100% - var(--fx-sidebar-width));
  min-height: 100vh;
  background: #fff;
}

.adminTemplate .adminLayout {
  box-sizing: border-box;
}

/* ---------- Sidebar ---------- */

.fx-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.fx-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  color: inherit;
}

.fx-brand:hover { text-decoration: none; }

.fx-brand-mark {
  display: flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: var(--fx-accent);
  color: #fff;
}

.fx-brand-mark svg { width: 1.25rem; height: 1.25rem; }

.fx-brand-text { min-width: 0; line-height: 1.25; }

.fx-brand-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fx-zinc-800);
}

.fx-brand-product {
  display: block;
  font-size: 0.75rem;
  color: var(--fx-zinc-500);
}

.fx-sidebar-close,
.fx-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--fx-zinc-500);
  cursor: pointer;
}

.fx-sidebar-close:hover,
.fx-menu-button:hover { background: rgba(39, 39, 42, 0.05); color: var(--fx-zinc-800); }

.fx-sidebar-close .fx-icon,
.fx-menu-button .fx-icon { width: 1.25rem; height: 1.25rem; }

.fx-nav { display: flex; flex-direction: column; gap: 1rem; }

.fx-nav-group { display: grid; gap: 0.125rem; }

.fx-nav-heading {
  padding: 0 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--fx-zinc-400);
}

.fx-nav-note {
  margin: 0 0 0.25rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: var(--fx-zinc-500);
}

.fx-sidebar .fx-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fx-zinc-500);
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.fx-sidebar .fx-nav-item .fx-icon { color: var(--fx-zinc-400); }

.fx-sidebar a.fx-nav-item:hover {
  background: rgba(39, 39, 42, 0.05);
  color: var(--fx-zinc-800);
  text-decoration: none;
}

.fx-sidebar a.fx-nav-item:hover .fx-icon { color: var(--fx-zinc-800); }

.fx-sidebar .fx-nav-item.is-current {
  background: #fff;
  border-color: var(--fx-zinc-200);
  box-shadow: var(--fx-shadow-xs);
  color: var(--fx-zinc-800);
}

.fx-sidebar .fx-nav-item.is-current .fx-icon { color: var(--fx-zinc-800); }

.fx-sidebar .fx-nav-item.is-disabled { opacity: 0.5; cursor: default; }

.fx-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.fx-badge {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: rgba(161, 161, 170, 0.15);
  font-size: 0.75rem;
  color: var(--fx-zinc-700);
}

.fx-spacer { flex: 1; }

/* ---------- Profile menu ---------- */

.fx-user-menu { position: relative; }

.fx-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--fx-zinc-500);
}

.fx-profile::-webkit-details-marker { display: none; }
.fx-profile::marker { content: ''; }
.fx-profile:hover { background: rgba(39, 39, 42, 0.05); color: var(--fx-zinc-800); }
.fx-profile.is-static { cursor: default; }
.fx-profile.is-static:hover { background: transparent; }

.fx-avatar {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--fx-zinc-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fx-zinc-800);
}

.fx-profile-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
}

.fx-profile-chevron { color: var(--fx-zinc-400); }

.fx-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.25rem);
  z-index: 50;
  padding: 0.25rem;
  border: 1px solid var(--fx-zinc-200);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: var(--fx-shadow-lg);
}

.fx-menu hr { margin: 0.25rem -0.25rem; border: 0; border-top: 1px solid var(--fx-zinc-200); }

.fx-menu-who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.fx-menu-who strong { display: block; font-weight: 500; color: var(--fx-zinc-800); }
.fx-menu-who small { display: block; color: var(--fx-zinc-500); font-size: 0.8125rem; overflow-wrap: anywhere; }

.fx-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fx-zinc-800);
  text-decoration: none;
}

.fx-menu a .fx-icon { color: var(--fx-zinc-400); }
.fx-menu a:hover { background: var(--fx-zinc-100); text-decoration: none; }

/* ---------- Top bar (small screens) and mimic banner ---------- */

.fx-topbar { display: none; }

.fx-mimic-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 2rem 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--fx-warning-border);
  border-radius: 0.75rem;
  background: var(--fx-warning-bg);
  font-size: 0.875rem;
  color: var(--fx-warning-text);
}

.fx-mimic-banner a { margin-left: auto; font-weight: 600; color: var(--fx-warning-text); text-decoration: underline; }

/* ---------- Content: buttons, fields, tables ---------- */

.asideRight button:not(.fx-menu-button):not(.fx-sidebar-close):not(.ui-button):not(.ui-datepicker-trigger),
.asideRight input[type="submit"],
.asideRight input[type="button"],
.asideRight .btn {
  border-radius: 0.5rem;
}

.asideRight input[type="text"],
.asideRight input[type="email"],
.asideRight input[type="number"],
.asideRight input[type="password"],
.asideRight input[type="date"],
.asideRight input[type="time"],
.asideRight input[type="url"],
.asideRight input[type="search"],
.asideRight select,
.asideRight textarea {
  border-radius: 0.5rem;
}

.asideRight input:focus,
.asideRight select:focus,
.asideRight textarea:focus {
  outline: none;
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px var(--fx-accent-ring);
}

.asideRight table th { color: var(--fx-zinc-800); }

/* Keep red where it means something is wrong or worst. */
.asideRight .danger,
.asideRight .text-danger,
.asideRight td.danger { color: var(--fx-danger); }

/* ---------- Footer ---------- */

.asideRight .fotter,
.asideRight .fotterWrap .fotter {
  background: transparent;
  border-top: 1px solid var(--fx-zinc-200);
  color: var(--fx-zinc-500);
  font-size: 0.75rem;
  text-transform: none;
}

.asideRight .fotter span { color: var(--fx-zinc-500); }

/* ---------- Small screens: the sidebar slides in ---------- */

@media (max-width: 1023px) {
  .adminTemplate .asideLeft.fx-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }

  body.fx-sidebar-open .adminTemplate .asideLeft.fx-sidebar {
    transform: none;
    box-shadow: var(--fx-shadow-lg);
  }

  .adminTemplate .asideRight { width: 100%; float: none; }

  .fx-sidebar-close,
  .fx-menu-button { display: inline-flex; }

  .fx-topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--fx-zinc-200);
    background: var(--fx-zinc-50);
  }

  .fx-mimic-banner { margin: 1rem 1rem 0; }
}

/* ---------- Page headings (Financial Accounting's page header) ---------- */

.asideRight .adminLayout { padding-top: 1.5rem; }

.asideRight .adminLayout h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: var(--fx-zinc-900);
}

.asideRight .adminLayout h3 {
  font-weight: 600;
  color: var(--fx-zinc-900);
}

.asideRight .adminLayout h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--fx-zinc-900);
  text-transform: none;
}

/* The firm or course name under a page title. */
.asideRight .adminLayout h2 + h3 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--fx-zinc-500);
}

/* "COURSE | SESSION NUMBER | TIMEZONE" reads as the eyebrow label. */
.simulationHeader .courseOverview .courseInfo > .item:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--fx-accent);
}

.simulationHeader .courseOverview .courseInfo > .item:first-child span { color: inherit; }

/* ---------- Cards: rounded like Financial Accounting's ---------- */

.asideRight .scorecard,
.asideRight .dataTable,
.asideRight .quarterCompleted,
.asideRight .invoiceDetail,
.asideRight .aiAnalysisControl,
.asideRight .quarterdateTiming,
.asideRight .facultyManagement,
.asideRight .course,
.asideRight .quickStatices,
.asideRight .increaseLicence,
.asideRight .deleteCourse,
.asideRight .coFacultyControl,
.asideRight .facultyContainer,
.asideRight .modificationContainer,
.asideRight .quarterAutosetup,
.asideRight .bulkInvite,
.asideRight .registrationLink,
.asideRight .firmManagement,
.asideRight .simulationTeamGroup,
.asideRight .metricsOverview,
.asideRight .performaceScore,
.asideRight .group {
  border-radius: 0.75rem;
  overflow: hidden;
}

.asideRight a.moveBack { border-radius: 0.5rem; }

/* Page titles: dark, not accent-coloured (the page stylesheets colour them). */
body .adminTemplate .asideRight .adminLayout .quarterInformation h2,
body .adminTemplate .asideRight .adminLayout .pageTitle h4,
body .adminTemplate .asideRight .adminLayout .commonHeader > h3,
body .adminTemplate .asideRight .adminLayout .headingContainer h3,
body .adminTemplate .asideRight .adminLayout .sectionTitle h4 {
  color: var(--fx-zinc-900);
  font-weight: 600;
}

body .adminTemplate .asideRight .fotter { background: transparent; padding: 1rem 2rem; }
body .adminTemplate .asideRight .fotter::before { display: none; }
body .adminTemplate .asideRight .fotter span { color: var(--fx-zinc-500); }

/* Warnings keep warning colours. */
body .decisionTemplate .distributionSection .distributionCenters .item div.dcClosedRequest h6 { color: var(--fx-danger); }
body .decisionTemplate .distributionSection .distributionCenters .item div.dcClosedRequest button { background: var(--fx-danger); border-color: var(--fx-danger); }

/* Manual chapters in the sidebar. */
.fx-sidebar .fx-nav-chapter { height: auto; min-height: 2rem; padding-top: 0.375rem; padding-bottom: 0.375rem; line-height: 1.25; white-space: normal; }
.fx-chapter-number { width: 1rem; flex-shrink: 0; font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--fx-zinc-400); }

/* ---------- Sign-in pages ---------- */

body .authentication { background: var(--fx-zinc-50); min-height: 100vh; }
body .authentication .logo { display: flex; justify-content: center; }
body .authentication .logo .fx-brand { padding: 0.5rem; }
body .authentication .logo .fx-brand-mark { width: 2.5rem; height: 2.5rem; }
body .authentication .logo .fx-brand-name { font-size: 1rem; }
body .authentication .loginForm {
  background: #fff;
  border: 1px solid var(--fx-zinc-200);
  border-radius: 0.75rem;
  box-shadow: var(--fx-shadow-xs);
}
body .authentication .loginForm h4,
body .authentication .loginForm h5 { color: var(--fx-zinc-900); font-weight: 600; }
body .authentication button,
body .authentication input { border-radius: 0.5rem; }

/* ---------- Plain pages (reporting sign-in) and shared pieces for the V3 features ---------- */

body.fx-plain { min-height: 100vh; margin: 0; background: var(--fx-zinc-50); display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1rem; box-sizing: border-box; }
.fx-plain-card { width: 100%; max-width: 28rem; background: #fff; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--fx-shadow-xs); }
.fx-plain-card h1 { font-size: 1.25rem; font-weight: 600; margin: 0.5rem 0 0.25rem; color: var(--fx-zinc-900); }
.fx-plain-brand { margin-bottom: 1rem; }
.fx-muted { color: var(--fx-zinc-500); }
.fx-small { font-size: 0.75rem; }
.fx-box { border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.5rem; margin: 1rem 0; }
.fx-box ul { margin: 0.25rem 0; padding-left: 1.25rem; }
.fx-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; font-size: 0.875rem; margin: 1rem 0; }
.fx-facts dt { color: var(--fx-zinc-500); }
.fx-facts dd { margin: 0; overflow-wrap: anywhere; }
.fx-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.fx-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.5rem; padding: 0 1rem; border-radius: 0.5rem; border: 1px solid var(--fx-zinc-200); background: #fff; color: var(--fx-zinc-800); font: 500 0.875rem var(--fx-font); cursor: pointer; text-decoration: none; }
.fx-button:hover { background: var(--fx-zinc-50); text-decoration: none; }
.fx-button-primary { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }
.fx-button-primary:hover { background: var(--fx-accent-hover); color: #fff; }
.fx-button-ghost { border-color: transparent; background: transparent; }
.fx-button-small { height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.fx-button[disabled] { opacity: 0.5; cursor: default; }
.fx-alert { border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem; margin: 1rem 0; }
.fx-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.fx-alert-info { background: var(--fx-zinc-50); border: 1px solid var(--fx-zinc-200); color: var(--fx-zinc-700); }
.fx-alert-success { background: var(--fx-success-soft); border: 1px solid #c9e4b8; color: var(--fx-success); }

/* ---------- Pages built for V3 (reporting, guide, Ask Claude, explanations, debrief) ---------- */

.fx-page { max-width: 100%; padding: 0 2rem 2rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1.5rem; box-sizing: border-box; font-family: var(--fx-font); }
.fx-page-header { border-bottom: 1px solid var(--fx-zinc-200); padding-bottom: 1.25rem; }
body .adminTemplate .asideRight .adminLayout .fx-page-header h1 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; margin: 0.125rem 0 0.25rem; color: var(--fx-zinc-900); }
.fx-page-header p { margin: 0; max-width: 48rem; }
.fx-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--fx-accent); margin: 0; }
.fx-card { background: #fff; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; padding: 1.25rem; }
body .adminTemplate .asideRight .adminLayout .fx-card-title { font-size: 1rem; line-height: 1.5rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--fx-zinc-900); }
body .adminTemplate .asideRight .adminLayout .fx-card-subtitle { font-size: 0.875rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--fx-zinc-800); }
.fx-card p { font-size: 0.875rem; line-height: 1.5rem; }
.fx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.fx-stat { border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.fx-stat span { display: block; font-size: 0.75rem; color: var(--fx-zinc-500); }
.fx-stat strong { display: block; font-size: 1.25rem; font-weight: 600; color: var(--fx-zinc-900); }
.fx-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fx-table th { text-align: left; font-weight: 500; color: var(--fx-zinc-500); border-bottom: 1px solid var(--fx-zinc-200); padding: 0.5rem 0.75rem; background: transparent; }
.fx-table td { border-bottom: 1px solid var(--fx-zinc-100); padding: 0.5rem 0.75rem; vertical-align: top; color: var(--fx-zinc-800); }
.fx-table .fx-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-table em { color: var(--fx-zinc-500); }
.fx-code { background: var(--fx-zinc-100); border-radius: 0.375rem; padding: 0.25rem 0.5rem; font-size: 0.8125rem; word-break: break-all; }
.fx-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; }
.fx-switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--fx-zinc-100); }
.fx-switch-row:first-of-type { border-top: 0; }
.fx-switch-row strong { display: block; font-size: 0.875rem; font-weight: 500; color: var(--fx-zinc-900); }
.fx-switch-row small { display: block; font-size: 0.8125rem; color: var(--fx-zinc-500); }
.fx-pill { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; background: var(--fx-zinc-100); color: var(--fx-zinc-700); }
.fx-pill-on { background: var(--fx-success-soft); color: var(--fx-success); }
.fx-prose { font-size: 0.9375rem; line-height: 1.65; color: var(--fx-zinc-800); max-width: 48rem; }
body .adminTemplate .asideRight .adminLayout .fx-prose h2 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--fx-zinc-900); }
body .adminTemplate .asideRight .adminLayout .fx-prose h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--fx-zinc-900); }
.fx-prose ul, .fx-prose ol { padding-left: 1.25rem; }
.fx-prose table { border-collapse: collapse; margin: 0.75rem 0; font-size: 0.875rem; }
.fx-prose th, .fx-prose td { border: 1px solid var(--fx-zinc-200); padding: 0.375rem 0.625rem; text-align: left; }
.fx-reading { border-left: 3px solid var(--fx-accent); background: var(--fx-zinc-50); border-radius: 0 0.5rem 0.5rem 0; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.6; }
.fx-reading p { margin: 0 0 0.5rem; }
.fx-reading small { color: var(--fx-zinc-500); }
.fx-textarea { width: 100%; min-height: 6rem; border: 1px solid var(--fx-zinc-300); border-radius: 0.5rem; padding: 0.5rem 0.75rem; font: 0.875rem/1.5 var(--fx-font); box-sizing: border-box; }
.fx-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--fx-zinc-900); margin: 0.75rem 0 0.25rem; }
.fx-help { display: block; font-size: 0.8125rem; color: var(--fx-zinc-500); margin-bottom: 0.375rem; }
.fx-bar { height: 0.5rem; border-radius: 9999px; background: var(--fx-zinc-100); overflow: hidden; }
.fx-bar > span { display: block; height: 100%; background: var(--fx-accent); }
.fx-page-flush { padding: 0; }
.fx-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; border-bottom: 1px solid var(--fx-zinc-200); padding-bottom: 0.5rem; }
.fx-tabs a { padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; color: var(--fx-zinc-500); text-decoration: none; border: 1px solid transparent; }
.fx-tabs a:hover { color: var(--fx-zinc-800); background: rgba(39, 39, 42, 0.05); }
.fx-tabs a.is-current { background: #fff; border-color: var(--fx-zinc-200); color: var(--fx-zinc-800); box-shadow: var(--fx-shadow-xs); }
.fx-tabs a.fx-tabs-action { margin-left: auto; color: var(--fx-accent); }
.fx-caption { font-size: 0.875rem; color: var(--fx-zinc-700); background: var(--fx-zinc-50); border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.fx-big { font-size: 1.5rem; font-weight: 600; color: var(--fx-zinc-900); margin: 0.25rem 0; }
.fx-row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.fx-table td .fx-bar { margin-top: 0.25rem; min-width: 3rem; }
.fx-ask-open { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 45; display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 1rem; border-radius: 9999px; border: 0; background: var(--fx-accent); color: #fff; font: 500 0.875rem var(--fx-font); box-shadow: var(--fx-shadow-lg); cursor: pointer; }
.fx-ask-open:hover { background: var(--fx-accent-hover); }
.fx-ask { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(28rem, 100vw); background: #fff; border-left: 1px solid var(--fx-zinc-200); box-shadow: var(--fx-shadow-lg); display: flex; flex-direction: column; padding: 1rem; box-sizing: border-box; font-family: var(--fx-font); }
.fx-ask[hidden] { display: none; }
.fx-ask-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.fx-ask-header .fx-sidebar-close { display: inline-flex; }
.fx-ask-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.5rem 0; }
.fx-ask-q { align-self: flex-end; max-width: 85%; background: var(--fx-zinc-100); border-radius: 0.75rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.fx-ask-a { font-size: 0.875rem; line-height: 1.55; color: var(--fx-zinc-800); }
.fx-ask-a p { margin: 0 0 0.5rem; }
.fx-ask-table { overflow-x: auto; margin: 0.5rem 0; }
.fx-ask-form { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--fx-zinc-200); padding-top: 0.75rem; }
.fx-ask-form .fx-textarea { min-height: 4.5rem; }
.fx-dashboard-reading { margin: 1rem 0; }
.fx-switch-row input[type="checkbox"] { accent-color: var(--fx-accent); width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin-top: 0.125rem; }

/* ---------- Quarter states and the course banner (round 1, item 83) ---------- */
.fx-state { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.fx-state-warmup { background: var(--fx-zinc-100); color: var(--fx-zinc-600); }
.fx-state-closed { background: #e0e7ff; color: #3730a3; }
.fx-state-closing { background: #fef3c7; color: #92400e; }
.fx-state-open { background: var(--fx-success-soft); color: var(--fx-success); }
.fx-state-upcoming { background: #fff; color: var(--fx-zinc-600); border: 1px solid var(--fx-zinc-200); }
.fx-course-banner { border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 0.75rem 0rem 1rem; font-size: 0.9375rem; background: var(--fx-zinc-50); border: 1px solid var(--fx-zinc-200); color: var(--fx-zinc-800); }
.fx-course-banner.is-closing { background: #fffbeb; border-color: #fde68a; }
.fx-course-banner.is-finished { background: #eef2ff; border-color: #c7d2fe; }
.fx-course-banner a { margin-left: 0.5rem; }
.commonHeader .quarters li .fx-state { display: block; margin-top: 0.25rem; text-align: center; }

/* ---------- Close dialog and progress (round 1, item 77) ---------- */
.fx-dialog { border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; padding: 1.25rem; max-width: 32rem; width: calc(100vw - 2rem); box-shadow: var(--fx-shadow-lg); font-family: var(--fx-font); }
.fx-dialog::backdrop { background: rgba(24, 24, 27, 0.4); }
.fx-dialog h3 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.fx-dialog label { display: block; margin: 0.5rem 0; }
.fx-close-progress .fx-bar { height: 0.5rem; background: var(--fx-zinc-100); border-radius: 9999px; overflow: hidden; }
.fx-close-progress .fx-bar span { display: block; height: 100%; background: var(--fx-accent); transition: width 0.5s; }
.fx-close-progress.is-stopped .fx-bar span { background: #d97706; }

/* ---------- Round 2: setup pages ---------- */
.fx-icon-button { background: none; border: 0; padding: 0.25rem; cursor: pointer; color: inherit; }
.fx-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.fx-inline-form > small { flex-basis: 100%; }
.fx-badge-test { display: inline-block; padding: 0 0.375rem; border-radius: 0.25rem; font-size: 0.6875rem; font-weight: 600; background: #fef3c7; color: #92400e; vertical-align: middle; }
.fx-button-danger { background: #b91c1c !important; color: #fff !important; border-color: #b91c1c !important; }
.fx-button-primary { background: var(--fx-accent); color: #fff; border: 0; border-radius: 0.375rem; padding: 0.5rem 1rem; font-weight: 600; cursor: pointer; }
.fx-button-primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.fx-button-secondary { background: #fff; color: var(--fx-zinc-800); border: 1px solid var(--fx-zinc-300, #d4d4d8); border-radius: 0.375rem; padding: 0.375rem 0.75rem; cursor: pointer; }
.fx-checklist { list-style: none; padding: 0; margin: 0.5rem 0; }
.fx-checklist li { padding: 0.125rem 0; }
.fx-checklist li::before { content: "○"; display: inline-block; width: 1.25rem; color: var(--fx-zinc-500); }
.fx-checklist li.is-done::before { content: "✓"; color: var(--fx-success); font-weight: 700; }
.fx-help { display: block; color: var(--fx-zinc-500); font-size: 0.8125rem; margin-top: 0.125rem; }
.fx-warning { border-radius: 0.5rem; padding: 0.5rem 0.75rem; margin: 0.5rem 0; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.fx-notice { border-radius: 0.5rem; padding: 0.5rem 0.75rem; margin: 0.5rem 0; background: var(--fx-secondary-soft); border: 1px solid #d5d8e6; color: var(--fx-secondary); }
.fx-search { width: 100%; max-width: 420px; padding: 0.5rem 0.75rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.375rem; margin: 0.5rem 0; }
/* Item 17: one heading style on every admin page (static pages included). */
body .adminTemplate .pageTitle h4 { color: var(--fx-zinc-900); font-weight: 600; font-size: 1.25rem; text-transform: none; }
body .adminTemplate .pageTitle p { color: var(--fx-zinc-600); }
.fx-table-wrap { overflow-x: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Item 51 */
.fx-ai-label { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--fx-secondary); background: var(--fx-secondary-soft); border-radius: 9999px; padding: 0.125rem 0.625rem 0.125rem 0.375rem; }
.courseDetail .wrapSection .sectionContainer .aiAnalysisControl:before { width: 40px; background-size: 32px; }
/* Item 58: the join block */
.fx-join { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; max-width: 100%; }
.fx-join > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.fx-join-url { word-break: break-all; font-family: ui-monospace, monospace; font-size: 0.8125rem; }
/* Item 79: breadcrumbs, wrapping on a phone */
.fx-breadcrumbs { margin: 0; font-size: 0.875rem; color: var(--fx-zinc-500); }
.fx-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fx-breadcrumbs li { display: inline-flex; align-items: center; gap: 0.25rem; }
.fx-breadcrumbs a { color: var(--fx-zinc-600); text-decoration: none; }
.fx-breadcrumbs a:hover { text-decoration: underline; }
.fx-breadcrumbs strong { color: var(--fx-zinc-900); font-weight: 600; }
/* Item 101: Performance */
.fx-chart { width: 100%; max-width: 720px; height: auto; display: block; }
.fx-chart-legend { list-style: none; padding: 0; margin: 0.25rem 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8125rem; color: var(--fx-zinc-600); }
.fx-chart-legend span { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.375rem; vertical-align: -1px; }
.fx-quarter-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 0.75rem; }
.fx-leader-row td { color: var(--fx-zinc-600); border-top: 1px solid var(--fx-zinc-200); }
/* Round 2: quarter ranges on one line, and plain inputs in inline forms */
.manageQuarter .quarterdateTiming .timing { flex: 1 1 auto; min-width: 0; }
.manageQuarter .quarterdateTiming .timing > p { white-space: nowrap; margin: 0 0 0.5rem; }
.fx-inline-form input[type="number"], .fx-inline-form input[type="text"], .fx-inline-form select { border: 1px solid var(--fx-zinc-300); border-radius: 0.375rem; padding: 0.375rem 0.5rem; min-width: 5rem; background: #fff; }
.fx-inline-form button[type="submit"]:not(.fx-button-secondary):not(.fx-button-primary):not(.fx-icon-button) { background: var(--fx-accent); color: #fff; border: 0; border-radius: 0.375rem; padding: 0.375rem 0.875rem; }
.fx-breadcrumbs { padding-top: 0.75rem; }
/* Item 59: the course header in normal case */
.simulationHeader .courseOverview .courseInfo .item, .simulationHeader .courseOverview .courseInfo .item span { text-transform: none; }
.fx-performance .fx-table td:first-child, .fx-performance .fx-leader-row td { white-space: nowrap; }
/* Round 3: the decision checklist under the course header (item 75) */
.commonHeader { flex-wrap: wrap; }
.commonHeader .fx-decision-checklist { flex-basis: 100%; order: 3; }
.fx-units { font-size: 0.75rem; color: var(--fx-zinc-500); font-weight: 500; margin-left: 0.375rem; }
.fx-cover-ok, .fx-cover-short { display: inline-block; margin-left: 0.75rem; padding: 0.0625rem 0.5rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500; }
.fx-cover-ok { background: var(--fx-success-soft); color: var(--fx-success); }
.fx-cover-short { background: #fffbeb; color: #92400e; }

/* Item 81: colour only the firm's own cell, by its place in the class. */
.dashboardTemplate .scorecardContainer .scorecard table tbody tr td.fx-place-best { background: var(--fx-success-soft); color: var(--fx-success); font-weight: 600; }
.dashboardTemplate .scorecardContainer .scorecard table tbody tr td.fx-place-middle { background: #fff6e0; color: #8a5a00; font-weight: 600; }
.dashboardTemplate .scorecardContainer .scorecard table tbody tr td.fx-place-worst { background: var(--fx-accent-soft); color: var(--fx-accent-hover); font-weight: 600; }
.dashboardTemplate .scorecardContainer .scorecard td .fx-rank { display: block; font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.performaceScore .item.fx-warmup, .performaceScore .item.fx-warmup span { color: #a3a3a3 !important; }

/* Item 84: statements as tables. */
.fx-table-scroll { overflow-x: auto; margin-bottom: 0.75rem; }
.fx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.fx-statement { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
table.fx-statement th, table.fx-statement td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #ececf1; text-align: right; white-space: nowrap; }
table.fx-statement th[scope="row"], table.fx-statement th[scope="rowgroup"] { text-align: left; font-weight: 400; }
table.fx-statement thead th { background: var(--fx-secondary-soft); color: var(--fx-secondary); font-weight: 600; }
table.fx-statement thead th:first-child { text-align: left; }
table.fx-statement tr.fx-statement-heading th { padding-top: 0.9rem; font-weight: 600; color: var(--fx-secondary); border-bottom: 1px solid #d9dbe6; }
table.fx-statement tr.fx-statement-total th, table.fx-statement tr.fx-statement-total td { font-weight: 600; border-top: 1px solid #c9ccd8; }
table.fx-statement tr.fx-statement-result th, table.fx-statement tr.fx-statement-result td { font-weight: 700; background: #fafafb; }
.fx-chart-title { font-size: 1rem; margin: 1.25rem 0 0.25rem; color: var(--fx-secondary); }
/* The sidebar lists the reports, so a report page uses the full width. */
.financialReports .reportContainer { grid-template-columns: minmax(0, 1fr); }
table.fx-statement tr.fx-statement-subtotal th, table.fx-statement tr.fx-statement-subtotal td { font-weight: 600; background: #fafafb; }
table.fx-statement tr.fx-statement-detail th { padding-left: 1.4rem; color: #555a72; }
table.fx-statement tr.fx-statement-note th, table.fx-statement tr.fx-statement-note td { color: #6b6f85; font-style: italic; }

/* Item 92: the quarter detail legend and signed changes. */
.fx-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.5rem 1.25rem; margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid #e4e4e7; border-radius: 0.375rem; background: #fafafb; }
.fx-legend div { display: flex; gap: 0.5rem; }
.fx-legend dt { font-weight: 700; color: var(--fx-secondary); min-width: 3.5rem; }
.fx-legend dd { margin: 0; font-size: 0.8125rem; }
.fx-change { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.fx-change-good { color: var(--fx-success); }
.fx-change-bad { color: var(--fx-accent); }
.fx-change-none { color: #a3a3a3; }
/* Item 104. */
.fx-list { margin: 0.25rem 0 1rem; padding-left: 1.25rem; }
.fx-list li { margin: 0.25rem 0; }

/* The quarter stepper: each state badge sits under its quarter, outside the round link (item 83 on a phone). */
.commonHeader .quarterInformation .quarters ul { flex-wrap: wrap; row-gap: 0.5rem; }
.commonHeader .quarterInformation .quarters ul li { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.commonHeader .quarterInformation .quarters ul li > .fx-state { font-size: 0.6875rem; padding: 0 0.4rem; line-height: 1.4; white-space: nowrap; }
/* The weighted score line wraps on small screens. */
.dashboardTemplate .performaceScore { flex-wrap: wrap; }
.dashboardTemplate .performaceScore .item { flex: 1 1 9rem; }
@media (max-width: 640px) {
  .dashboardTemplate .performaceScore .item:first-child { flex-basis: 100%; border-right: none; border-bottom: 1px solid #e4e4e7; }
  .dashboardTemplate .tabs ul { flex-wrap: wrap; font-size: 0.95rem; }
}
table.fx-statement thead th { white-space: normal; vertical-align: bottom; }
h4.fx-chart-title { font-size: 0.95rem; font-weight: 600; margin: 1rem 0 0.35rem; }

/* ---------- Faculty help: search, tours, guide and FAQs ---------- */
.fx-search-open { display: flex; align-items: center; gap: 0.75rem; width: 100%; height: 2.25rem; padding: 0 0.75rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; background: #fff; color: var(--fx-zinc-500); font: 500 0.875rem var(--fx-font); cursor: pointer; text-align: left; }
.fx-search-open:hover { border-color: var(--fx-zinc-300); color: var(--fx-zinc-800); }
.fx-search-open .fx-nav-label { flex: 1; }
.fx-kbd { display: inline-block; padding: 0.0625rem 0.375rem; border: 1px solid var(--fx-zinc-200); border-bottom-width: 2px; border-radius: 0.25rem; background: var(--fx-zinc-50); color: var(--fx-zinc-500); font: 500 0.6875rem var(--fx-font); white-space: nowrap; }
.fx-nav-form { margin: 0; }
.fx-sidebar button.fx-nav-item { width: 100%; background: transparent; cursor: pointer; text-align: left; font-family: var(--fx-font); }
.fx-sidebar button.fx-nav-item:hover { background: rgba(39, 39, 42, 0.05); color: var(--fx-zinc-800); }

.fx-help-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.fx-help-contents { margin: 0 0 1.5rem; padding: 0.75rem 1rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; background: var(--fx-zinc-50); max-width: 48rem; }
.fx-help-contents h2 { font-size: 0.875rem; margin: 0 0 0.5rem; }
.fx-help-contents ol, .fx-help-contents ul { margin: 0; padding-left: 1.25rem; columns: 2; font-size: 0.875rem; }
.fx-faq-group { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--fx-zinc-900); }
.fx-faq-item { max-width: 48rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; margin: 0 0 0.5rem; background: #fff; }
.fx-faq-item summary { padding: 0.75rem 1rem; font-weight: 600; cursor: pointer; color: var(--fx-zinc-900); }
.fx-faq-item[open] summary { border-bottom: 1px solid var(--fx-zinc-200); }
.fx-faq-item > div, .fx-faq-item > p { padding: 0.75rem 1rem; margin: 0; font-size: 0.9375rem; line-height: 1.6; }

.fx-palette-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 1rem 1rem; background: rgba(24, 24, 27, 0.5); }
.fx-palette-backdrop[hidden] { display: none; }
.fx-palette { width: 100%; max-width: 38rem; max-height: 70vh; display: flex; flex-direction: column; border-radius: 0.75rem; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); overflow: hidden; }
.fx-palette-input { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--fx-zinc-200); }
.fx-palette-input input { flex: 1; border: 0; outline: 0; font: 400 1rem var(--fx-font); color: var(--fx-zinc-900); background: transparent; }
.fx-palette-list { list-style: none; margin: 0; padding: 0.25rem 0.5rem; overflow-y: auto; }
.fx-palette-group { padding: 0.5rem 0.5rem 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fx-zinc-500); }
.fx-palette-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--fx-zinc-800); }
.fx-palette-item.is-active { background: var(--fx-accent-soft); color: var(--fx-accent-strong-text); }
.fx-palette-hint { color: var(--fx-zinc-500); font-size: 0.8125rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-palette-empty { padding: 1.5rem 1rem; text-align: center; color: var(--fx-zinc-500); font-size: 0.875rem; }
.fx-palette-foot { padding: 0.5rem 1rem; border-top: 1px solid var(--fx-zinc-200); font-size: 0.75rem; color: var(--fx-zinc-500); background: var(--fx-zinc-50); }
body.fx-palette-open, body.fx-tour-open { overflow: hidden; }

.fx-tour { position: fixed; inset: 0; z-index: 1100; }
.fx-tour.is-dim { background: rgba(24, 24, 27, 0.55); }
.fx-tour-spot { position: fixed; border-radius: 0.5rem; box-shadow: 0 0 0 9999px rgba(24, 24, 27, 0.55); outline: 2px solid var(--fx-accent); pointer-events: none; transition: all 0.2s ease; }
.fx-tour-card { position: fixed; width: min(22rem, calc(100vw - 2rem)); padding: 1rem 1.25rem; border-radius: 0.75rem; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.fx-tour-count { margin: 0 0 0.25rem; font-size: 0.75rem; color: var(--fx-zinc-500); }
.fx-tour-title { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--fx-zinc-900); }
.fx-tour-text { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.55; color: var(--fx-zinc-700); }
.fx-tour-actions { display: flex; align-items: center; gap: 0.5rem; }
.fx-tour-spacer { flex: 1; }
.fx-tour-actions .fx-button-primary { height: 2rem; }
@media (prefers-reduced-motion: reduce) { .fx-tour-spot { transition: none; } }
@media (max-width: 640px) { .fx-help-contents ol, .fx-help-contents ul { columns: 1; } }

@media print {
  .adminTemplate .asideLeft, .commonHeader, .fx-help-tools, .fx-palette-backdrop, .fx-tour, .fx-ask-open, .fx-menu-button, header, footer, nav.breadcrumbs { display: none !important; }
  .adminTemplate .asideRight { width: 100% !important; }
  .fx-faq-item { break-inside: avoid; border-color: #999; }
  .fx-faq-item > div, .fx-faq-item > p { display: block !important; }
  .fx-prose { max-width: none; }
}

/* U4: the animated explainers in the debrief. They draw themselves once; Replay plays them again;
   a reduced-motion setting shows the finished picture. */
.fx-ex { margin: 0.75rem 0 1rem; }
.fx-ex-svg { width: 100%; height: auto; display: block; }
.fx-ex-label { font-size: 13px; fill: currentColor; }
.fx-ex-value { font-size: 13px; font-weight: 600; fill: currentColor; }
.fx-ex-bar { fill: var(--fx-accent, #ed1c24); }
.fx-ex-line { fill: none; stroke: var(--fx-accent, #ed1c24); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fx-ex-dot { fill: var(--fx-accent, #ed1c24); }
@media (prefers-reduced-motion: no-preference) {
  .fx-ex-run .fx-ex-bar { transform-box: fill-box; transform-origin: left center; animation: fx-ex-grow 0.9s ease-out both; }
  .fx-ex-run .fx-ex-line { animation: fx-ex-draw 1.4s ease-out both; }
  .fx-ex-run .fx-ex-dot, .fx-ex-run .fx-ex-value { animation: fx-ex-fade 0.6s ease-out 0.9s both; }
}
@keyframes fx-ex-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fx-ex-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fx-ex-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Admin dashboard ---------- */
.fx-dash-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fx-dash-actions .fx-button-primary { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }
.fx-dash-stats { margin: 0; }
a.fx-stat { text-decoration: none; display: block; }
a.fx-stat:hover { border-color: var(--fx-zinc-300, #d4d4d8); background: var(--fx-zinc-50); }
.fx-stat small { display: block; font-size: 0.75rem; color: var(--fx-zinc-500); margin-top: 0.125rem; }
.fx-dash-main { align-items: start; }
.fx-dash-money { margin: 0.5rem 0 0; font-size: 0.8125rem; }
.fx-todo, .fx-stages { list-style: none; margin: 0; padding: 0; }
.fx-todo li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.625rem 0 0.625rem 0.75rem; border-top: 1px solid var(--fx-zinc-100); border-left: 3px solid var(--fx-zinc-200); }
.fx-todo li:first-child { border-top: 0; }
.fx-todo li.fx-todo-warn { border-left-color: #f59e0b; }
.fx-todo strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--fx-zinc-900); }
.fx-todo span { display: block; font-size: 0.8125rem; color: var(--fx-zinc-600); }
.fx-todo .fx-button { flex-shrink: 0; }
.fx-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.fx-stages li { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.fx-stages strong { font-size: 1.125rem; font-weight: 600; color: var(--fx-zinc-900); }
.fx-dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--fx-zinc-200); padding: 0 0 1.25rem; }
.fx-dash-head .fx-page-header { border-bottom: 0; padding-bottom: 0; }
.fx-col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.fx-people { list-style: none; margin: 0; padding: 0; }
.fx-people li { padding: 0.5rem 0; border-top: 1px solid var(--fx-zinc-100); font-size: 0.875rem; }
.fx-people li:first-child { border-top: 0; }
.fx-people small { display: block; color: var(--fx-zinc-500); }
.fx-widgets .widget { margin: 0; width: auto; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; background: #fff; overflow: hidden; }
.fx-card .templateCrud { margin: 0 !important; border: 0; padding: 0; background: transparent; }
.fx-warmup { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--fx-zinc-200); margin-bottom: 0.75rem; }
.fx-warmup-list { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--fx-zinc-700); }
.fx-qhead, .fx-qrow { display: grid; grid-template-columns: 7rem minmax(14rem, 1fr) minmax(0, 24rem) 2.5rem; gap: 0.75rem; align-items: center; }
.fx-qhead { font-size: 0.75rem; font-weight: 500; color: var(--fx-zinc-500); padding: 0.25rem 0; }
.fx-qhead span:nth-child(n+3) { display: none; }
.fx-qhead span:nth-child(3) { display: block; grid-column: 3; }
.fx-qrow.is-fixed { grid-template-columns: 7rem 1fr; }
.fx-qrow { padding: 0.5rem 0; border-top: 1px solid var(--fx-zinc-100); font-size: 0.875rem; }
.fx-qform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; align-items: center; margin: 0; }
.fx-qform input { width: 100%; box-sizing: border-box; height: 2.25rem; }
.fx-qremove { text-align: center; }
@media (max-width: 900px) { .fx-qhead { display: none; } .fx-qrow { grid-template-columns: 1fr; } .fx-qform { grid-template-columns: 1fr 1fr; } }
.fx-qform input { border: 1px solid var(--fx-zinc-300, #d4d4d8); border-radius: 0.5rem; padding: 0 0.625rem; font: 0.875rem var(--fx-font); background: #fff; }
.fx-qform input[readonly] { background: var(--fx-zinc-50); color: var(--fx-zinc-600); }
.fx-qrow:not(.is-fixed) { grid-template-columns: 7rem minmax(14rem, 1fr) minmax(0, 26rem) 2.5rem; }
.sectionContainer > .fx-stats, .sectionContainer > .fx-grid-2, .sectionContainer > .fx-card { margin-bottom: 1.5rem; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widget { box-shadow: none; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetheading { padding: 1.25rem 1.25rem 0; background: transparent; border: 0; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetheading h5 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; margin: 0; color: var(--fx-zinc-900); }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetheading small { display: block; font-size: 0.8125rem; color: var(--fx-zinc-500); margin-top: 0.125rem; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetInfo { padding: 1rem 1.25rem 1.25rem; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .inputContainer { margin-bottom: 0.875rem; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .inputContainer label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--fx-zinc-900); margin-bottom: 0.25rem; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .inputContainer input,
body .adminTemplate .asideRight .adminLayout .fx-widgets .inputContainer select { width: 100%; box-sizing: border-box; height: 2.5rem; border: 1px solid var(--fx-zinc-300, #d4d4d8); border-radius: 0.5rem; padding: 0 0.75rem; font: 0.875rem var(--fx-font); background: #fff; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetInfo p { font-size: 0.875rem; margin: 0 0 0.75rem; }
.fx-card-flush { padding: 0; overflow: hidden; }
.fx-card-flush .fx-table th { padding: 0.75rem 1rem; background: var(--fx-zinc-50); }
.fx-card-flush .fx-table td { padding: 0.75rem 1rem; vertical-align: middle; }
.fx-nowrap { white-space: nowrap; }
.fx-courses-cell { min-width: 11rem; }
.fx-actions-cell .fx-inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.fx-actions-cell form { margin: 0; }
.fx-actions-cell select { max-width: 11rem; height: 2rem; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetInfo button[type="submit"] { height: 2.25rem; padding: 0 1rem; border-radius: 0.5rem; border: 0; background: var(--fx-accent); color: #fff; font: 500 0.875rem var(--fx-font); cursor: pointer; }
body .adminTemplate .asideRight .adminLayout .fx-widgets .widgetInfo button.fx-button-danger { background: #b91c1c; }
.fx-actions-cell .fx-inline-form { flex-wrap: nowrap; }
.fx-dash-head .fx-page-header { flex: 1 1 30rem; }
.fx-dash-head .fx-page-header p { max-width: 44rem; }
/* Breadcrumbs and page content share one left edge: the layout already pads 2rem on each side. */
.adminLayout.fx-padded-layout .fx-page { padding-left: 0; padding-right: 0; }
.fx-breadcrumbs { margin-bottom: 0.75rem; }

/* ---------- Faculty portal polish (12 November 2026) ---------- */
/* Dialogs sit in the middle of the screen (a global reset had pinned them to the top-left). */
dialog.fx-dialog[open] { position: fixed; inset: 0; margin: auto; max-height: calc(100vh - 2rem); overflow: auto; }

/* Course list */
.fx-course-list { display: flex; flex-direction: column; gap: 0.75rem; }
.fx-course-list .fx-course { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; margin: 0; flex-wrap: wrap; }
.fx-course-list .fx-course .quickInfo { flex: 1 1 18rem; min-width: 0; }
.fx-course-list .fx-course h5 { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 600; }
.fx-course-list .fx-course h5 a { color: var(--fx-zinc-900); text-decoration: none; }
.fx-course-list .fx-course h5 a:hover { text-decoration: underline; }
.fx-course-list .fx-course .wrapTitle { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.fx-course-list .fx-course .expandInfo { display: flex; gap: 0.5rem; align-items: center; }
.fx-course-list .fx-course .expandInfo .fx-button { text-decoration: none; }
.fx-course-list { padding: 0; margin: 0; width: 100%; }
.fx-course-list .fx-course { background: #fff; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; box-shadow: none; }
.coursesTemplate > .fx-course-banner { margin: 0.75rem 2rem 1rem; }

/* Faculty course page: invite row, AI status, bulk invite, teams box (layout only) */
body .coursesTemplate .courseDetail .inviteStudent,
body .coursesTemplate .courseDetail .aiAnalysisControl,
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite,
body .coursesTemplate .courseDetail .firmManagement {
  background: #fff; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; box-shadow: none; margin: 0 0 1rem; overflow: hidden;
}
body .coursesTemplate .courseDetail .inviteStudent { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.75rem 1rem; padding: 1rem 1.25rem; font-weight: 600; }
body .coursesTemplate .courseDetail .inviteStudent .avatar { display: none; }
body .coursesTemplate .courseDetail .inviteStudent .sendInvite { display: flex; flex: 1 1 22rem; gap: 0.5rem; align-items: flex-start; margin: 0; }
body .coursesTemplate .courseDetail .inviteStudent .sendInvite .textInput { flex: 1; }
body .coursesTemplate .courseDetail .inviteStudent .sendInvite .textInput input[type=text] { width: 100%; box-sizing: border-box; height: 2.5rem; border: 1px solid var(--fx-zinc-300, #d4d4d8); border-radius: 0.5rem; padding: 0 0.75rem; font: 0.875rem var(--fx-font); }
body .coursesTemplate .courseDetail .inviteStudent .sendInvite button { height: 2.5rem; padding: 0 1rem; border-radius: 0.5rem; font: 500 0.875rem var(--fx-font); }
body .coursesTemplate .courseDetail .inviteStudent .externalButton { display: flex; gap: 0.5rem; margin: 0; }
body .coursesTemplate .courseDetail .inviteStudent .externalButton a { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; border-radius: 0.5rem; background: #fff; color: var(--fx-zinc-900); border: 1px solid var(--fx-zinc-300, #d4d4d8); font: 500 0.875rem var(--fx-font); text-decoration: none; }
body .coursesTemplate .courseDetail .inviteStudent .externalButton a:hover { background: var(--fx-zinc-50); }

body .coursesTemplate .courseDetail .aiAnalysisControl { display: block; padding: 1rem 1.25rem; }
body .coursesTemplate .courseDetail .aiAnalysisControl:before { display: none; content: none; }
body .coursesTemplate .courseDetail .aiAnalysisControl .sectionTitle h5,
body .coursesTemplate .courseDetail .studentInviteGroups .sectionTitle h5,
body .coursesTemplate .courseDetail .firmManagement .sectionTitle h5 { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; color: var(--fx-zinc-900); }
body .coursesTemplate .courseDetail .aiAnalysisControl .inviteDataForm { border: 0; padding: 0.5rem 0 0; background: transparent; }

body .coursesTemplate .courseDetail .studentInviteGroups { margin: 0; padding: 0; }
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite .sectionTitle { padding: 1rem 1.25rem 0; border: 0; background: transparent; }
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite .inviteDataForm { background: transparent; border: 0; padding: 0.5rem 1.25rem 1.25rem; }
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite .uploadSubmit { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite .uploadSubmit button { height: 2.5rem; padding: 0 1rem; border-radius: 0.5rem; font: 500 0.875rem var(--fx-font); }
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite .downloadFormat a { color: var(--fx-zinc-700); }

body .coursesTemplate .courseDetail .firmManagement { padding: 1rem 1.25rem; }
body .coursesTemplate .courseDetail .firmManagement .firmManagementActions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
body .coursesTemplate .courseDetail .firmManagement .firmManagementActions .btn { height: 2.25rem; padding: 0 0.875rem; border-radius: 0.5rem; font: 500 0.875rem var(--fx-font); background: #fff; color: var(--fx-zinc-900); border: 1px solid var(--fx-zinc-300, #d4d4d8); }
body .coursesTemplate .courseDetail .firmManagement .firmManagementActions .btn.btn-success { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }
body .coursesTemplate .courseDetail .firmManagement .firmManagementActions .btn:disabled { opacity: 0.5; cursor: not-allowed; }
body .coursesTemplate .courseDetail .firmManagement .firmManagementActions .firmCount { background: transparent; border: 0; padding: 0 0.5rem; font-weight: 600; }
body .coursesTemplate .courseDetail .deploySimulation { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin: 0 0 1rem; }
body .coursesTemplate .courseDetail .aiAnalysisControl .sectionTitle,
body .coursesTemplate .courseDetail .firmManagement .sectionTitle { padding: 0; margin: 0; border: 0; background: transparent; }
body .coursesTemplate .courseDetail .aiAnalysisControl .inviteDataForm { border: 0; padding: 0.5rem 0 0; }
body .coursesTemplate .courseDetail .firmManagement .firmManagementActions { padding: 0; }
body .coursesTemplate .courseDetail .studentInviteGroups .bulkInvite .sectionTitle { border: 0; }

/* Teams and students panels, Results card, quarter schedule */
body .coursesTemplate .courseDetail .simulationWidgets,
body .coursesTemplate .courseDetail .simulationTeamGroup { background: #fff; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; margin: 0 0 1rem; }
body .coursesTemplate .courseDetail .simulationWidgets .widget,
body .coursesTemplate .courseDetail .simulationTeamGroup .wrapGroups { border-color: var(--fx-zinc-200); }
body .coursesTemplate .courseDetail .simulationWidgets .widgetTitle,
body .coursesTemplate .courseDetail .simulationTeamGroup .widgetTitle { color: var(--fx-zinc-900); border-color: var(--fx-zinc-200); font-weight: 600; }
body .coursesTemplate .courseDetail .wrapGroups .group small.unassigned { color: var(--fx-zinc-500); }
body .coursesTemplate .courseDetail .wrapGroups .group.active { background: var(--fx-zinc-50); }
body .coursesTemplate .courseDetail .studentWrap .studentGroup:not(.active) { display: none; }
body .coursesTemplate .courseDetail .simulationWidgets .widget:empty,
body .coursesTemplate .courseDetail .simulationWidgets .widget > .wrapGroups:empty { min-height: 0; }
.fx-dialog label { display: flex; align-items: center; gap: 0.75rem; }
.fx-dialog label input[type="date"], .fx-dialog label input[type="time"] { flex: 1; height: 2.5rem; border: 1px solid var(--fx-zinc-300, #d4d4d8); border-radius: 0.5rem; padding: 0 0.75rem; font: 0.875rem var(--fx-font); box-sizing: border-box; }
.fx-dialog label input[type="checkbox"] { margin: 0; }

/* Student and shared list pages: one left edge with the breadcrumb, calm course cards */
body .adminTemplate .asideRight .adminLayout .invitationContainer { padding: 0 2rem 2rem; box-sizing: border-box; }
body .adminTemplate .asideRight .adminLayout .invitationContainer .invitation { background: #fff; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; padding: 0.75rem 1.25rem; margin: 0 0 0.75rem; justify-content: space-between; }
body .adminTemplate .asideRight .adminLayout .invitationContainer .invitation .item.detail h6 { color: var(--fx-zinc-900); font-size: 1rem; font-weight: 600; margin: 0 0 0.375rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
body .adminTemplate .asideRight .adminLayout .invitationContainer .invitation .item.detail p { margin: 0 0 0.125rem; color: var(--fx-zinc-600); }
body .adminTemplate .asideRight .adminLayout .invitationContainer .invitation .item.detail p strong { color: var(--fx-zinc-900); font-weight: 600; }
body .adminTemplate .asideRight .adminLayout .invitationContainer .invitation .item.status a[data-test="dashboard-link"] { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem; border-radius: 0.5rem; background: var(--fx-accent); color: #fff; font: 500 0.875rem var(--fx-font); text-decoration: none; }
body .templateCrud .crud_header h5 { color: var(--fx-zinc-900); font-size: 1.125rem; font-weight: 600; }

/* Decision input cells: the "type here" cue stays, in a soft amber */
body .forecastingSection .regionWrapper .region .productWrapper .product .demandWrapper .demand input[type=text],
body .demandplanningSection .regionWrapper .region .productWrapper .product .demandWrapper .demand .inputContainer .caputreInput input[type=text] { background: #fefce8; }
body .forecastingSection .regionWrapper .region .productWrapper .product .demandWrapper .demand input[type=text]:focus,
body .demandplanningSection .regionWrapper .region .productWrapper .product .demandWrapper .demand .inputContainer .caputreInput input[type=text]:focus { background: #fff; box-shadow: inset 0 0 0 2px #fde68a; }
body .forecastingSection .regionWrapper .region .productWrapper .product .demandWrapper .demand input[type=text]:disabled { background: var(--fx-zinc-100, #f4f4f5); }

/* Join a course, and the manual */
.fx-join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.5rem; align-items: start; }
.fx-join-main { display: flex; flex-direction: column; gap: 1rem; }
.fx-join-row { display: flex; gap: 0.5rem; }
.fx-join-row input { flex: 1; height: 2.5rem; border: 1px solid var(--fx-zinc-300, #d4d4d8); border-radius: 0.5rem; padding: 0 0.75rem; font: 0.875rem var(--fx-font); box-sizing: border-box; }
.fx-join-row .fx-button { height: 2.5rem; }
.fx-join-graphic img { width: 100%; height: auto; border-radius: 0.75rem; }
@media (max-width: 900px) { .fx-join-grid { grid-template-columns: 1fr; } }
body .adminTemplate .asideRight .adminLayout.fx-manual-layout { padding: 0 2rem 2rem; }
.fx-manual-layout > section, .fx-manual-layout > article { max-width: 60rem; }
.fx-manual-layout h1 { font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; text-transform: none; margin: 0.5rem 0 1rem; }
body .fx-page .fx-join-grid { display: grid; flex-direction: initial; }
body .adminTemplate .asideRight .adminLayout.fx-manual-layout .fx-breadcrumbs { padding-left: 0; padding-right: 0; }

/* Help pages (FAQs, guide) use the full width of the page */
body .adminLayout .fx-faq-item, body .adminLayout .fx-help-contents, body .adminLayout .fx-page .fx-prose { max-width: none; }
.fx-page .fx-help-contents ul { columns: 3; }
@media (max-width: 900px) { .fx-page .fx-help-contents ul { columns: 1; } }

/* FAQs: calmer accordion in two columns on wide screens */
body .adminLayout .fx-help-tools { margin: 0; }
body .adminLayout .fx-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; align-items: start; margin-top: 0.5rem; }
@media (max-width: 1100px) { body .adminLayout .fx-faq { grid-template-columns: 1fr; } }
body .adminLayout .fx-faq-group { margin: 0; }
body .adminLayout .fx-faq-group h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fx-zinc-500); margin: 1rem 0 0.5rem; }
body .adminLayout .fx-faq-item { margin: 0 0 0.5rem; transition: background 0.15s; }
body .adminLayout .fx-faq-item:hover { background: var(--fx-zinc-50); }
body .adminLayout .fx-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; font-weight: 500; font-size: 0.9375rem; }
body .adminLayout .fx-faq-item summary::-webkit-details-marker { display: none; }
body .adminLayout .fx-faq-item summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--fx-zinc-400, #a1a1aa); border-bottom: 2px solid var(--fx-zinc-400, #a1a1aa); transform: rotate(45deg); transition: transform 0.15s; }
body .adminLayout .fx-faq-item[open] { background: #fff; }
body .adminLayout .fx-faq-item[open] summary::after { transform: rotate(-135deg); }

/* Faculty dashboard: equal-height cards, quiet links */
.fx-dash-main { align-items: stretch; }
[data-test="faculty-dashboard"] .fx-table a, [data-test="admin-dashboard"] .fx-table a { color: var(--fx-zinc-900); font-weight: 500; text-decoration: none; }
[data-test="faculty-dashboard"] .fx-table a:hover, [data-test="admin-dashboard"] .fx-table a:hover { text-decoration: underline; }
[data-test="faculty-dashboard"] .fx-table small { display: block; margin-top: 0.125rem; }
[data-test="faculty-dashboard"] .fx-row-between > a { font-size: 0.875rem; font-weight: 500; color: var(--fx-zinc-700); }

/* Faculty dashboard: four tiles, courses table, calendar */
body .fx-page[data-test="faculty-dashboard"] .fx-stats-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
body .fx-page[data-test="faculty-dashboard"] .fx-stat-hot{border-color:#f59e0b;background:#fffbeb}
body .fx-page[data-test="faculty-dashboard"] .fx-card{margin-bottom:1rem}
body .fx-page[data-test="faculty-dashboard"] td small{display:block;margin-top:.15rem}
.fx-cal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem}
.fx-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}
.fx-cal-nav a{padding:0 .6rem;font-size:1.3rem;text-decoration:none}
.fx-cal{width:100%;table-layout:fixed;border-collapse:collapse}
.fx-cal th{font-size:.75rem;color:#6b7280;font-weight:600;padding:.3rem 0;text-align:center}
.fx-cal td{height:2.6rem;text-align:center;vertical-align:top;padding:.2rem 0;font-size:.85rem}
.fx-cal td.fx-cal-out{color:#c4c8d0}
.fx-cal td.fx-cal-today span{display:inline-block;min-width:1.6rem;border-radius:999px;background:#1f3a5f;color:#fff;line-height:1.6rem}
.fx-dot{display:inline-block;width:.45rem;height:.45rem;border-radius:50%;margin:0 .1rem}
.fx-cal td .fx-dot{display:inline-block}
.fx-dot-deadline{background:#f97316}
.fx-dot-opens{background:#22c55e}
.fx-cal-legend{font-size:.8rem;color:#6b7280;margin-top:.5rem}
.fx-day{font-weight:600;margin:.75rem 0 .25rem}
.fx-coming{list-style:none;margin:0;padding:0}
.fx-coming li{display:flex;gap:1rem;padding:.25rem 0}
.fx-coming time{min-width:6.5rem;color:#6b7280;font-size:.85rem}
@media (max-width:900px){body .fx-page[data-test="faculty-dashboard"] .fx-stats-4{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-cal-grid{grid-template-columns:1fr}}

/* Student decision pages: "About the decisions" button and dialog */
.commonHeader { position: relative; }
.commonHeader .decisionsInformation { position: absolute; top: 0; right: 0; margin: 0; }
.fx-about-open { display: inline-flex; align-items: center; gap: 0.5rem; }
.fx-about-open[hidden] { display: none; }
.fx-about-open svg { width: 1.125rem; height: 1.125rem; }
dialog.fx-about { max-width: 42rem; padding: 0; overflow: hidden; display: none; }
dialog.fx-about[open] { display: flex; flex-direction: column; max-height: calc(100vh - 3rem); }
.fx-about-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--fx-zinc-200, #e4e4e7); }
.fx-about-head h3 { margin: 0.25rem 0 0; font-size: 1.375rem; }
.fx-about-head .fx-about-sub { margin: 0.25rem 0; font-weight: 600; }
.fx-about-head p { margin: 0.25rem 0 0; }
.fx-about-close { align-self: flex-start; border: 0; background: transparent; cursor: pointer; padding: 0.25rem; border-radius: 0.375rem; }
.fx-about-close:hover { background: var(--fx-zinc-100, #f4f4f5); }
.fx-about-close svg { width: 1.25rem; height: 1.25rem; }
.fx-about-body { padding: 1rem 1.5rem; overflow-y: auto; flex: 1; }
.fx-about-body ul { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc outside; }
.fx-about-body li { margin: 0.4rem 0; line-height: 1.5; }
.fx-about-foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--fx-zinc-200, #e4e4e7); background: var(--fx-zinc-50, #fafafa); }
@media (max-width: 700px) { .commonHeader .decisionsInformation { position: static; margin-top: 0.5rem; } }

/* ---------- Decision header: status banner with progress, quarter pills (future quarters greyed) ---------- */
.fx-status { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; border-left: 3px solid var(--fx-accent); background: #fff; }
.fx-status-main { flex: 1 1 auto; }
.fx-status-progress { flex: 0 0 15rem; font-size: 0.875rem; color: var(--fx-zinc-600); }
.fx-status-progress strong { color: var(--fx-zinc-900); font-size: 1rem; }
.fx-bar { height: 0.4rem; margin-top: 0.4rem; border-radius: 999px; background: var(--fx-zinc-100); overflow: hidden; }
.fx-bar > i { display: block; height: 100%; background: var(--fx-accent); }
.fx-status-note { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--fx-zinc-600); }
.commonHeader .quarters ul.fx-qpills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.25rem 0 0.75rem; }
.fx-qpills li { display: block; }
.fx-qpill { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.25rem; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--fx-zinc-200); background: #fff; color: var(--fx-zinc-700); font: 500 0.9375rem var(--fx-font); text-decoration: none; }
.fx-qpill em { font-style: normal; font-size: 0.75rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--fx-zinc-100); }
.fx-qpill.is-done { background: var(--fx-zinc-50); }
.fx-qpill.is-open em { background: rgba(255, 255, 255, 0.25); }
.fx-qpill.is-showing { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }
.fx-qpill.is-showing em { background: rgba(255, 255, 255, 0.25); }
.fx-qpill.is-future { border-style: dashed; background: transparent; color: var(--fx-zinc-400); cursor: not-allowed; }
.fx-qpill.is-future:hover { background: var(--fx-zinc-50); }
.fx-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; margin: 0 0 0.75rem; }
.fx-future-note[hidden] { display: none; }
.commonHeader .quarterInformation h2 small { font-weight: 400; }
@media (max-width: 700px) { .fx-status { flex-direction: column; } .fx-status-progress { flex-basis: auto; width: 100%; } }

/* The header stretches to the full width, and the quarter pills replace the old round stepper. */
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation { flex: 1 1 100%; width: 100%; min-width: 0; align-items: stretch; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation h2 { color: var(--fx-zinc-900); font-size: 2rem; font-weight: 600; margin: 0.125rem 0 0.75rem; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .fx-eyebrow { margin: 0; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .fx-course-banner,
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .fx-alert,
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .fx-decision-checklist { width: 100%; max-width: none; box-sizing: border-box; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills { column-gap: 0.5rem; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li a.fx-qpill,
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li .fx-qpill { display: inline-flex; position: static; overflow: visible; height: 2.25rem; padding: 0 0.9rem; border: 1px solid var(--fx-zinc-200); border-radius: 999px; color: var(--fx-zinc-700); background: #fff; transform: none; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li a.fx-qpill.is-done { background: var(--fx-zinc-50); }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li .fx-qpill.is-showing { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li .fx-qpill.is-future { border-style: dashed; background: transparent; color: var(--fx-zinc-400); }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li a.fx-qpill span { width: auto; height: auto; border: 0; border-radius: 0; display: inline; position: static; transform: none; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li a.fx-qpill strong { font-weight: 400; }
:is(.decisionTemplate, .financialReports, .buyReports) .commonHeader .quarterInformation .quarters ul.fx-qpills li .fx-qpill span.fx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- My courses: one card per course ---------- */
.fx-course-card { display: flex; flex-direction: column; gap: 0.75rem; }
.fx-course-card p { margin: 0; }
body .adminTemplate .asideRight .adminLayout .fx-course-title, .fx-course-title { font-size: 1.75rem; font-weight: 600; margin: 0; }
.fx-course-card .fx-course-banner { margin: 0.25rem 0; }
.fx-tiles { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; overflow: hidden; }
.fx-tile { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.25rem; }
.fx-tile + .fx-tile { border-left: 1px solid var(--fx-zinc-200); }
.fx-tile-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--fx-zinc-500); }
.fx-tile strong { font-size: 2rem; line-height: 1.1; color: var(--fx-zinc-900); }
.fx-tile strong small { font-size: 1rem; font-weight: 400; color: var(--fx-zinc-600); }
.fx-qbars { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.25rem 0; padding: 0; }
.fx-qbar { width: 5.5rem; text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--fx-zinc-500); }
.fx-qbar i { display: block; height: 0.25rem; margin-bottom: 0.4rem; background: var(--fx-zinc-200); }
.fx-qbar-warmup i, .fx-qbar-closed i { background: #fca5a5; }
.fx-qbar-open i, .fx-qbar-closing i { background: var(--fx-accent); }
.fx-qbar-open, .fx-qbar-closing { color: var(--fx-accent); }
.fx-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 800px) { .fx-tiles { grid-template-columns: 1fr; } .fx-tile + .fx-tile { border-left: 0; border-top: 1px solid var(--fx-zinc-200); } }

/* ---------- The manual: reading column, page tools, readable tables, previous and next ---------- */
.fx-manual-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1rem; max-width: 64rem; }
.fx-manual-tools .fx-spacer { flex: 1; }
.fx-manual-where { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fx-zinc-500); }
.fx-manual-toc { max-width: 64rem; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; background: var(--fx-zinc-50); }
.fx-manual-toc[hidden] { display: none; }
.fx-manual-toc ul { columns: 2; column-gap: 2rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.fx-manual-toc li { break-inside: avoid; margin: 0 0 0.35rem; font-size: 0.875rem; }
@media (max-width: 800px) { .fx-manual-toc ul { columns: 1; } }
body .adminLayout.fx-manual-layout .fx-manual-body > section { max-width: 64rem; }
.fx-manual-body h1 { font-size: 2rem; line-height: 2.5rem; margin: 0.25rem 0 1.25rem; }
.fx-manual-body h2 { font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; margin: 2.25rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--fx-zinc-200); color: var(--fx-zinc-900); }
.fx-manual-body h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--fx-zinc-900); }
.fx-manual-body p, .fx-manual-body li { line-height: 1.7; }
.fx-manual-body p { margin: 0 0 0.9rem; max-width: 50rem; }
.fx-manual-body ul, .fx-manual-body ol { margin: 0 0 1rem; padding-left: 1.4rem; max-width: 50rem; list-style: disc outside; }
.fx-manual-body ol { list-style: decimal outside; }
.fx-manual-body li { margin: 0 0 0.3rem; }
.fx-manual-body .learning-objectives { margin: 0 0 1.5rem; }
.fx-manual-body .learning-objectives table, .fx-manual-body .learning-objectives tbody, .fx-manual-body .learning-objectives tr, .fx-manual-body .learning-objectives td { display: block; width: 100%; border: 0; padding: 0; background: none; }
.fx-manual-body .learning-objectives table { padding: 1rem 1.25rem; border: 1px solid var(--fx-zinc-200); border-left: 3px solid var(--fx-accent); border-radius: 0.5rem; background: var(--fx-zinc-50); box-sizing: border-box; }
.fx-manual-body .learning-objectives h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 1.0625rem; }
.fx-manual-body .learning-objectives ul { margin-bottom: 0; }
.fx-manual-table { margin: 0.5rem 0 1.5rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; }
.fx-manual-body table.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.fx-manual-body .fx-manual-table table.doc-table th { padding: 0.6rem 0.9rem; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--fx-zinc-700); background: var(--fx-zinc-100); border-bottom: 1px solid var(--fx-zinc-200); white-space: nowrap; }
.fx-manual-body .fx-manual-table table.doc-table td { padding: 0.6rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fx-zinc-100); }
.fx-manual-body .fx-manual-table table.doc-table tr:last-child td { border-bottom: 0; }
.fx-manual-body .fx-manual-table table.doc-table tr:nth-child(even) td { background: var(--fx-zinc-50); }
.fx-manual-body .fx-manual-table table.doc-table td p, .fx-manual-body .fx-manual-table table.doc-table th p { margin: 0; }
.fx-manual-body .fx-manual-table table.doc-table td:first-child { font-weight: 500; color: var(--fx-zinc-900); }
.fx-manual-pager { display: flex; justify-content: space-between; gap: 1rem; max-width: 64rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--fx-zinc-200); }
.fx-manual-pager a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 1rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.5rem; text-decoration: none; color: var(--fx-zinc-800); }
.fx-manual-pager a:hover { background: var(--fx-zinc-50); }
.fx-manual-pager small { font-size: 0.75rem; text-transform: uppercase; color: var(--fx-zinc-500); }
.fx-manual-pager .is-next { margin-left: auto; text-align: right; }
@media print { .fx-manual-tools, .fx-manual-toc, .fx-manual-pager { display: none !important; } .fx-manual-body h2 { break-after: avoid; } .fx-manual-table { border: 0; } .fx-manual-body table, .fx-manual-body tr { break-inside: avoid; } }

/* The manual in three panes: the menu on the left, the chapter in the middle, "On this page" on the right. */
.fx-manual-grid { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; align-items: start; }
.fx-manual-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.fx-manual-main { min-width: 0; }
.fx-manual-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.fx-manual-grid.is-single .fx-manual-side { display: none; }
.fx-manual-tools, .fx-manual-pager, body .adminLayout.fx-manual-layout .fx-manual-body > section { max-width: none; }
.fx-manual-side .fx-manual-toc { margin: 0; padding: 0 0 0 1rem; border: 0; border-left: 1px solid var(--fx-zinc-200); border-radius: 0; background: none; max-width: none; }
.fx-manual-side .fx-manual-toc strong { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fx-zinc-500); }
.fx-manual-side .fx-manual-toc ul { columns: 1; margin-top: 0.75rem; }
.fx-manual-side .fx-manual-toc li { margin: 0 0 0.5rem; line-height: 1.35; }
.fx-manual-side .fx-manual-toc a { color: var(--fx-zinc-600); text-decoration: none; }
.fx-manual-side .fx-manual-toc a:hover, .fx-manual-side .fx-manual-toc a.is-current { color: var(--fx-accent); }
.fx-manual-side .fx-manual-toc a.is-current { font-weight: 600; }
@media (max-width: 1200px) { .fx-manual-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .fx-manual-side { position: static; max-height: none; order: -1; } .fx-manual-side .fx-manual-toc { padding: 0.75rem 1rem; border: 1px solid var(--fx-zinc-200); border-radius: 0.75rem; background: var(--fx-zinc-50); } .fx-manual-side .fx-manual-toc ul { columns: 2; } }
@media print { .fx-manual-side { display: none !important; } .fx-manual-grid { display: block; } }

/* ---------- Tutorial videos: menu on the left, the video in the middle, who to ask on the right ---------- */
.fx-video-layout .fx-manual-main h1 { margin: 0.25rem 0 0.25rem; }
.fx-video-covers { margin: 0 0 1rem; font-size: 1.0625rem; }
.fx-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 0.75rem; overflow: hidden; background: #000; border: 1px solid var(--fx-zinc-200); }
.fx-video-frame iframe, .fx-video-frame #player, .fx-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fx-video-sound { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0 0; font-size: 0.875rem; }
.fx-video-side { position: sticky; top: 1rem; }
.fx-video-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; line-height: 1.5; }
.fx-video-contact p { margin: 0; }
.fx-video-advisor { width: 5rem; height: 5rem; border-radius: 999px; object-fit: cover; }
.fx-video-layout .fx-manual-pager { margin-top: 1.5rem; }
body .adminTemplate .asideRight .adminLayout.fx-manual-layout.fx-video-layout { padding: 2rem 2rem 2rem; }
.fx-video-side { top: 2rem; }

/* Faculty: student profile */
.fx-student-profile .fx-card { margin-bottom: 1rem; }
.fx-profile-head { display: flex; align-items: center; gap: 1.25rem; }
.fx-profile-photo { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--fx-zinc-100); }
.fx-profile-name { font-size: 1.5rem; line-height: 2rem; font-weight: 600; margin: 0 0 0.25rem; }
.fx-profile-head p { margin: 0 0 0.35rem; }
.fx-profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.fx-profile-facts dt { font-size: 0.75rem; text-transform: uppercase; color: var(--fx-zinc-500); font-weight: 600; }
.fx-profile-facts dd { margin: 0.15rem 0 0; font-size: 0.9375rem; color: var(--fx-zinc-900); }
.fx-profile-course { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--fx-zinc-100); }
.fx-profile-course small { display: block; }
