/* ---------------------------------------------------------------------------
   Credential Exchange: component styles (new classes only)

   Load AFTER styles.css:
     <link rel="stylesheet" href="styles.css">
     <link rel="stylesheet" href="components.css">

   This file adds new classes (all prefixed ce-). It does not change any rule
   in styles.css. Colors come from the variables defined at the top of
   styles.css (--deep-blue, --classic-teal, and so on). The few colors that are
   not in styles.css (pathway badge colors) are defined here as custom
   properties.
--------------------------------------------------------------------------- */

:root {
  /* Pathway badge colors, used as small accents (dots, top bars, edges) */
  --ce-pw-cred-001: #FABA55;
  --ce-pw-cred-002: #8CD0C6;
  --ce-pw-cred-003: #008A60;
  --ce-pw-cred-004: #007277;
  --ce-pw-cred-005: #F5F0E3;
  --ce-pw-cred-006: #00B5DE;
  --ce-pw-cred-007: #F58721;
  --ce-pw-cred-008: #98DEF4;

  --ce-font-head: Arial, 'Liberation Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --ce-font-nav: Arial, 'Liberation Sans', 'Helvetica Neue', Helvetica, sans-serif;

  /* Content width cap (including its side padding), side padding, and the padding that lines the header,
     tabs, title band and footer up with the content column. */
  --ce-width: 1680px;
  --ce-pad: clamp(1rem, 3.5vw, 4rem);
  --ce-gutter: max(var(--ce-pad), calc((100% - var(--ce-width)) / 2 + var(--ce-pad)));
}

/* Root text size. Everything sized in rem scales from this. */
html { font-size: clamp(0.85rem, 0.425vw + 0.53125rem, 1.0625rem); }

/* A pathway color is applied by setting data-pathway on an element. */
[data-pathway="cred-001"] { --pw: var(--ce-pw-cred-001); }
[data-pathway="cred-002"] { --pw: var(--ce-pw-cred-002); }
[data-pathway="cred-003"] { --pw: var(--ce-pw-cred-003); }
[data-pathway="cred-004"] { --pw: var(--ce-pw-cred-004); }
[data-pathway="cred-005"] { --pw: var(--ce-pw-cred-005); }
[data-pathway="cred-006"] { --pw: var(--ce-pw-cred-006); }
[data-pathway="cred-007"] { --pw: var(--ce-pw-cred-007); }
[data-pathway="cred-008"] { --pw: var(--ce-pw-cred-008); }

/* A resource type color is applied by setting data-type on an element. */
[data-type="interactive-digital-content"] { --type: var(--classic-teal); --type-text: #fff; }
[data-type="lesson-plan"] { --type: var(--deep-blue); --type-text: #fff; }
[data-type="evidence-of-learning"] { --type: var(--salmon-pink); --type-text: var(--deep-blue); }
[data-type="instructor-tool"] { --type: #23463d; --type-text: #fff; }
[data-type="learner-support"] { --type: #23463d; --type-text: #fff; }
[data-type="implementation-training"] { --type: #23463d; --type-text: #fff; }

/* ---------------- Utilities ---------------- */

.ce-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;
}
.ce-skip {
  position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--deep-blue);
  color: #fff; padding: 0.625rem 0.875rem; border-radius: 4px; font-weight: 700;
}
.ce-skip:focus { top: 8px; }
.ce-icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; }
.ce-muted { color: var(--earthy-brown); }
.ce-small { font-size: 0.875rem; }
.ce-scroll { overflow-x: auto; }
/* A wide table keeps a sideways scrollbar above it as well, so nobody has to scroll to the bottom to scroll across. */
.ce-hscroll-top { overflow-x: auto; overflow-y: hidden; height: 1rem; margin: 0 0 0.25rem; }
.ce-hscroll-top > div { height: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--classic-teal); outline-offset: 2px;
}

/* ---------------- Header and tabs ---------------- */

.ce-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  padding: 0.875rem var(--ce-gutter); background: #fff;
  border-top: 4px solid var(--salmon-pink); border-bottom: 3px solid var(--salmon-pink);
}
.ce-brand { display: flex; align-items: center; gap: 0.875rem; text-decoration: none; color: var(--deep-blue); }
.ce-brand__logo { height: 2.25rem; width: auto; display: block; }
.ce-brand__rule { width: 1px; height: 2.25rem; background: var(--beige-brown); }
.ce-brand__name { font-family: var(--ce-font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; }
.ce-identity { text-align: right; line-height: 1.35; font-size: 1rem; color: var(--earthy-brown); }
.ce-identity__name { display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 1.125rem; color: var(--deep-blue); }
.ce-viewing {
  display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--deep-blue); background: var(--light-salmon);
  border: 1px solid var(--salmon-pink); border-radius: 10px; padding: 0.125rem 0.5rem; margin-top: 0.25rem;
}
.ce-linkbtn {
  background: none; border: none; padding: 0; border-radius: 0; font: inherit; font-size: 1rem;
  font-weight: 400; color: var(--classic-teal); text-decoration: underline; cursor: pointer;
}

.ce-role {
  display: inline-block; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem;
  padding: 5px 12px; border-radius: 8px; white-space: nowrap;
  background: var(--soft-light-beige); color: var(--deep-blue); line-height: 1.25;
}
.ce-role--super-admin { background: var(--deep-blue); color: #fff; }
.ce-role--admin { background: var(--classic-teal); color: #fff; }
.ce-role--supervisor { background: var(--salmon-pink); color: var(--deep-blue); }
.ce-role--micro-credential-awarder { background: #513D2C; color: #fff; }
.ce-role--instructor { background: var(--mint); color: var(--deep-blue); }

.ce-tabs {
  display: flex; flex-wrap: wrap; gap: 0 2rem; padding: 0 var(--ce-gutter); background: #fff;
  border-bottom: 1px solid var(--soft-light-beige);
}
.ce-tabs a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 0.25rem 0.75rem;
  font-family: var(--ce-font-nav); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em; color: var(--deep-blue);
  text-decoration: none; border-bottom: 3px solid transparent;
}
.ce-tabs a:hover { color: var(--classic-teal); }
.ce-tabs a[aria-current="page"] { color: var(--classic-teal); border-bottom-color: var(--classic-teal); }
.ce-tabs .ce-icon { font-size: 1.25rem; }
.ce-tabs a.admin-link { display: none; }

/* ---------------- Page title band ---------------- */

.ce-band { background: var(--deep-blue); color: #fff; padding: 1.125rem var(--ce-gutter) 1rem; }
.ce-band__inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ce-band__crumb { display: block; font-size: 0.875rem; color: var(--very-light-beige); }
.ce-band h1 { font-family: var(--ce-font-head); font-weight: 700; font-size: 2rem; line-height: 1.15; color: #fff; margin: 0; }
.ce-band__sub { color: var(--very-light-beige); font-size: 1rem; margin: 0.25rem 0 0; }
.ce-band__stripe { height: 8px; background: var(--classic-teal); }
.ce-band__badges {
  background: #fff; border-radius: 12px; padding: 0.5rem 0.875rem; display: flex; align-items: center;
  gap: 0.75rem; flex-shrink: 0;
}
.ce-band__badges img { display: block; width: auto; }

/* ---------------- Page layout ---------------- */

.ce-main { max-width: var(--ce-width); margin: 0 auto; padding: 1.375rem var(--ce-pad) 2.5rem; }
.ce-title { font-family: var(--ce-font-head); font-weight: 700; margin: 0; }
.ce-label {
  display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-blue); margin: 0 0 0.375rem;
}
.ce-panel { background: var(--very-light-beige); border: 1px solid var(--beige-brown); border-radius: 6px; padding: 0.75rem 0.875rem; }
.ce-panel--spaced { margin-bottom: 1rem; }
.ce-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.ce-grow { flex: 1; min-width: 153px; }
.ce-input {
  font: inherit; font-size: 1rem; color: var(--deep-blue); background: #fff; width: 100%;
  border: 1px solid var(--beige-brown); border-radius: 4px; padding: 0.625rem 0.75rem;
}
textarea.ce-input { min-height: 54px; resize: vertical; font-family: inherit; margin-top: 0; height: auto; }
.ce-input::placeholder { color: var(--earthy-brown); opacity: 0.85; }
.ce-section-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0.5rem; }
.ce-count { font-family: var(--ce-font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--earthy-brown); }
.ce-info { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.875rem; }
.ce-info .ce-icon { font-size: 1.25rem; color: var(--classic-teal); margin-top: 0.0625rem; }

/* ---------------- Buttons, chips, bars ---------------- */

.ce-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center; line-height: 1.2; padding: 0.75rem 1rem;
  border-radius: 4px; border: 2px solid transparent; cursor: pointer; text-decoration: none; background: none;
}
.ce-btn--primary { background: var(--classic-teal); color: #fff; border-color: var(--classic-teal); }
.ce-btn--primary:hover { background: var(--deep-blue); border-color: var(--deep-blue); }
.ce-btn--secondary { background: #fff; color: var(--deep-blue); border-color: var(--beige-brown); }
.ce-btn--outline { background: #fff; color: var(--deep-blue); border-color: var(--type, var(--deep-blue)); }
.ce-btn--text { color: var(--classic-teal); text-decoration: underline; padding: 0.4375rem 0.5rem; }
.ce-btn--small { padding: 0.3125rem 0.625rem; }
.ce-btn--block { display: flex; width: 100%; }

.ce-chip {
  display: inline-flex; align-items: center; gap: 0.3125rem; font-weight: 700; font-size: 0.9375rem; line-height: 1.3;
  padding: 0.3125rem 0.75rem; border-radius: 14px; text-decoration: none; color: var(--deep-blue);
  border: 1px solid transparent; margin: 0.1875rem 0.25rem 0.1875rem 0;
}
.ce-chip--demonstrated { background: var(--mint); border-color: var(--soft-aqua); }
.ce-chip--not-yet { background: var(--soft-light-beige); color: var(--earthy-brown); border-color: var(--soft-light-beige); }
.ce-chip--none { background: #fff; color: var(--earthy-brown); border: 1px dashed var(--beige-brown); }
.ce-chip--locked { background: var(--soft-light-beige); color: var(--earthy-brown); border-color: var(--soft-light-beige); }
.ce-chip--removed { font-size: 0.75rem; padding: 0 0.5rem; }
a.ce-chip:hover { text-decoration: underline; }

.ce-bar { display: block; height: 7px; background: #fff; border: 1px solid var(--beige-brown); border-radius: 4px; overflow: hidden; }
.ce-bar > span { display: block; height: 5px; width: var(--pct, 0%); background: var(--mint); }
.ce-bar--complete > span { background: var(--classic-teal); }

/* ---------------- Home ---------------- */

.ce-main-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.ce-main-card {
  border: 1px solid var(--soft-light-beige); border-top: 6px solid var(--classic-teal); border-radius: 4px;
  padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: #fff;
}
.ce-main-card__head { display: flex; align-items: center; gap: 1.25rem; flex: 1 1 18rem; min-width: 0; }
.ce-main-card__icon {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--deep-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2.25rem; flex-shrink: 0;
}
.ce-main-card__title { font-family: var(--ce-font-head); font-weight: 700; font-size: 1.375rem; margin: 0 0 0.25rem; }
.ce-main-card__text { font-size: 1rem; color: var(--earthy-brown); margin: 0; }
.ce-main-card > .ce-btn { flex: 0 0 auto; white-space: nowrap; width: auto; }

.ce-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.625rem; margin-bottom: 1.25rem; }
.ce-kpi { border: 1px solid var(--soft-light-beige); border-top: 5px solid var(--kpi, var(--deep-blue)); border-radius: 4px; padding: 0.625rem 0.75rem; background: #fff; }
.ce-kpi--demonstrated { --kpi: var(--mint); }
.ce-kpi--not-yet { --kpi: var(--beige-brown); }
.ce-kpi--unlocked { --kpi: var(--classic-teal); }
.ce-kpi__label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--earthy-brown); line-height: 1.2; min-height: 27px; }
.ce-kpi__value { display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 1.75rem; line-height: 1.2; }

.ce-tiles__group { margin: 0 0 0.5rem; }
.ce-tiles__note { margin: 0 0 0.75rem; }
.ce-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ce-tile {
  display: flex; gap: 1rem; align-items: center; border: 1px solid var(--soft-light-beige);
  border-top: 6px solid var(--pw); border-radius: 4px; padding: 1rem 1.125rem; text-decoration: none; color: inherit; height: 100%;
}
.ce-tile img { height: 4rem; width: auto; flex-shrink: 0; }
.ce-tile__name { display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.ce-tile__meta { font-size: 0.9375rem; color: var(--earthy-brown); }
.ce-tile:hover { border-color: var(--classic-teal); }

.ce-soon-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.ce-soon { border: 1px dashed var(--beige-brown); border-radius: 4px; padding: 0.75rem 0.875rem; display: flex; justify-content: space-between; gap: 0.625rem; align-items: center; }
a.ce-soon { text-decoration: none; color: inherit; }
a.ce-soon:hover { border-color: var(--classic-teal); }
.ce-soon__title { font-family: var(--ce-font-head); font-weight: 700; font-size: 1rem; margin: 0; }
.ce-soon__tag { font-family: var(--ce-font-head); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; background: var(--soft-light-beige); padding: 0.1875rem 0.5rem; border-radius: 2px; white-space: nowrap; }

/* ---------------- Segmented toggle ---------------- */

.ce-seg { display: inline-flex; border: 1px solid var(--beige-brown); border-radius: 4px; overflow: hidden; }
.ce-seg button {
  font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.6875rem 1rem; background: #fff; color: var(--deep-blue); border: none; border-radius: 0; cursor: pointer;
}
.ce-seg button + button { border-left: 1px solid var(--beige-brown); }
.ce-seg button[aria-pressed="true"] { background: var(--classic-teal); color: #fff; }

/* ---------------- Grading View roster ---------------- */

.ce-roster { width: 100%; border-collapse: collapse; margin-top: 0.75rem; background: #fff; }
.ce-roster th, .ce-roster td { border: 1px solid var(--soft-light-beige); text-align: center; padding: 0.75rem 0.5rem; font-size: 1rem; }
.ce-roster th { background: #fff; color: var(--deep-blue); }
.ce-roster .ce-roster__learner { text-align: left; padding: 0.875rem 1.125rem; }
.ce-roster thead th.ce-roster__learner { vertical-align: bottom; width: 17rem; font-size: 1.0625rem; font-family: var(--ce-font-head); }
.ce-roster__pathway { border-top: 8px solid var(--pw); height: 17.5rem; vertical-align: top; padding-top: 0.875rem; background: #fff; }
.ce-roster__pathway img { display: block; margin: 0 auto 0.75rem; height: 54px; width: auto; }
.ce-vertical { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: var(--ce-font-head); font-weight: 700; font-size: 1.0625rem; margin: 0 auto; }
.ce-roster__name { font-weight: 700; display: block; font-size: 1.0625rem; }
.ce-roster__email { font-size: 0.9375rem; color: var(--earthy-brown); }
.ce-roster__count { font-family: var(--ce-font-head); font-weight: 700; font-size: 1.1875rem; display: block; }
.ce-roster__count--empty { color: var(--earthy-brown); }
.ce-roster td .ce-bar { margin: 0.375rem 0.625rem 0; height: 8px; }
.ce-roster td .ce-bar > span { height: 7px; }
.ce-roster tbody tr:hover th, .ce-roster tbody tr:hover td { background: color-mix(in srgb, var(--mint) 30%, #fff); }
.ce-roster a.ce-roster__name { color: var(--deep-blue); text-decoration: none; }
.ce-roster a.ce-roster__name:hover { text-decoration: underline; }

/* ---------------- Learner pathways ---------------- */

.ce-key { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.ce-key .ce-label { margin: 0 0.5rem 0 0; }
.ce-pathways { border: 1px solid var(--soft-light-beige); border-radius: 6px; overflow: hidden; }
.ce-pathway { border-top: 1px solid var(--soft-light-beige); }
.ce-pathway:first-child { border-top: none; }
.ce-pathway > summary {
  list-style: none; display: flex; align-items: center; gap: 1rem; padding: 0.875rem 1.125rem;
  border-left: 10px solid var(--pw); cursor: pointer;
}
.ce-pathway > summary::-webkit-details-marker { display: none; }
.ce-pathway[open] > summary { background: var(--very-light-beige); background: color-mix(in srgb, var(--pw) 16%, #fff); }
.ce-pathway__logo { height: 41px; width: auto; }
.ce-pathway__name { flex: 1; font-family: var(--ce-font-head); font-weight: 700; font-size: 1.125rem; }
.ce-pathway__bar { width: 8rem; }
.ce-pathway__count { font-weight: 700; font-size: 1.125rem; width: 3.25rem; text-align: right; }
.ce-pathway__chevron { font-size: 1.375rem; transition: transform 0.15s; }
.ce-pathway[open] .ce-pathway__chevron { transform: rotate(180deg); }
.ce-pathway__body { padding: 1rem 1.125rem 1.125rem; border-left: 10px solid var(--pw); }
.ce-mc { display: flex; gap: 1rem; padding: 0.75rem 0; align-items: center; border-bottom: 1px solid var(--soft-light-beige); flex-wrap: wrap; }
.ce-mc__id { width: 18rem; display: flex; gap: 0.875rem; align-items: center; }
.ce-mc__id img { height: 48px; width: auto; }
.ce-mc__name { display: block; font-weight: 700; font-size: 1.0625rem; }
.ce-mc__count { display: block; font-size: 0.9375rem; color: var(--earthy-brown); }
.ce-mc__skills { flex: 1; min-width: 204px; }
.ce-credential { display: flex; gap: 1rem; align-items: center; padding-top: 0.875rem; flex-wrap: wrap; }
.ce-credential img { height: 61px; width: auto; }
.ce-credential__name { font-weight: 700; font-size: 1.125rem; }

/* ---------------- Assessment page ---------------- */

.ce-statement { border-left: 6px solid var(--classic-teal); padding: 0.875rem 1rem; margin-bottom: 0.875rem; }
.ce-statement__text { font-size: 1.25rem; margin: 0; }
.ce-statement__criterion { border-top: 1px solid var(--beige-brown); margin-top: 0.75rem; padding-top: 0.625rem; color: var(--earthy-brown); }
.ce-statement__criterion p { margin: 0; }
.ce-current { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; margin: 0 0 1rem; }
.ce-current .ce-label { margin: 0; }
.ce-current .ce-chip { margin: 0; }

.ce-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; border: 0; padding: 0; margin: 0 0 0.875rem; min-width: 0; }
.ce-choices legend { padding: 0; }
.ce-choice {
  position: relative; display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--beige-brown);
  border-radius: 6px; padding: 0.875rem 1rem; cursor: pointer; font-family: var(--ce-font-head); font-weight: 700; font-size: 1.125rem;
}
.ce-choice input { position: absolute; opacity: 0; }
.ce-choice .ce-icon { font-size: 1.625rem; color: var(--beige-brown); }
.ce-choice .ce-choice__checked { display: none; color: var(--classic-teal); }
.ce-choice input:checked ~ .ce-choice__checked { display: inline; }
.ce-choice input:checked ~ .ce-choice__unchecked { display: none; }
.ce-choice:has(input:checked) { border: 3px solid var(--classic-teal); padding: 0.75rem 0.875rem; }
.ce-choice:has(input:focus-visible) { outline: 3px solid var(--classic-teal); outline-offset: 2px; }

.ce-savebar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  border-top: 2px solid var(--deep-blue); padding-top: 0.875rem; margin-top: 0.875rem;
}
.ce-savebar p { margin: 0; font-size: 0.875rem; color: var(--earthy-brown); flex: 1; min-width: 187px; }

.ce-evidence { margin-top: 1.125rem; padding: 0.875rem 1rem; }
.ce-dropzone {
  border: 1px dashed var(--beige-brown); background: #fff; border-radius: 4px; padding: 0.75rem; margin: 0.5rem 0 0.875rem;
  display: flex; justify-content: center; align-items: center; gap: 0.625rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--earthy-brown);
}
.ce-activity { list-style: none; margin: 0.375rem 0 0; padding: 0 0.875rem; background: #fff; border: 1px solid var(--soft-light-beige); border-radius: 4px; }
.ce-activity__item { display: flex; gap: 0.75rem; padding: 0.6875rem 0; border-top: 1px solid var(--soft-light-beige); }
.ce-activity__item:first-child { border-top: none; }
.ce-activity__icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--very-light-beige); color: var(--classic-teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem;
}
.ce-activity__icon--result { background: var(--soft-light-beige); color: var(--earthy-brown); }
.ce-activity__icon--removal { color: var(--earthy-brown); }
.ce-activity__body { flex: 1; min-width: 0; }
.ce-activity__title { display: block; font-weight: 700; }
.ce-activity__detail { font-size: 0.875rem; margin: 0; }
.ce-activity__comment { font-size: 0.875rem; font-style: italic; color: var(--earthy-brown); margin: 0; }
.ce-activity__who { display: block; font-size: 0.8125rem; color: var(--earthy-brown); }
.ce-activity__time { font-size: 0.8125rem; font-weight: 700; color: var(--earthy-brown); text-align: right; white-space: nowrap; }
.ce-activity__gone { text-decoration: line-through; color: var(--earthy-brown); }
.ce-activity .ce-chip { margin: 0 0 0 0.25rem; padding: 0.0625rem 0.5rem; }
.ce-note { font-size: 0.8125rem; color: var(--earthy-brown); margin: 0.5rem 0 0; }

/* ---------------- Instructor Portal ---------------- */

.ce-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.375rem; }
.ce-pill {
  display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.5rem 0.875rem; border: 1px solid var(--beige-brown);
  border-radius: 20px; background: #fff; color: var(--deep-blue); cursor: pointer;
}
.ce-pill[aria-pressed="true"] { background: var(--deep-blue); border-color: var(--deep-blue); color: #fff; }
.ce-try { font-size: 1rem; margin: 0.5rem 0 0.75rem; color: var(--earthy-brown); }
.ce-try a { color: var(--classic-teal); font-weight: 700; }

.ce-section { margin-top: 1.5rem; }
.ce-section__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.625rem; background: var(--deep-blue); color: #fff;
  border-left: 0.75rem solid var(--pw, var(--beige-brown)); font-family: var(--ce-font-head); font-weight: 700; font-size: 1.125rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 1rem 1.25rem; border-radius: 4px 4px 0 0; margin: 0;
}
.ce-section__bar span { font-size: 0.875rem; color: var(--very-light-beige); }
.ce-section__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 1rem;
  border: 1px solid var(--soft-light-beige); border-top: none; border-radius: 0 0 4px 4px;
}

.ce-card { display: flex; flex-direction: column; border: 1px solid var(--soft-light-beige); border-top: 0.375rem solid var(--pw, var(--beige-brown)); border-radius: 4px; background: #fff; height: 100%; }
.ce-card__media { display: flex; align-items: center; justify-content: center; height: 8.5rem; background: var(--very-light-beige); background: color-mix(in srgb, var(--pw, var(--beige-brown)) 16%, #fff); }
.ce-card__media img { height: 5.5rem; width: auto; }
.ce-card__media img.ce-card__credential { height: 6.25rem; }
.ce-card__iconcircle { width: 4rem; height: 4rem; border-radius: 50%; background: var(--deep-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.ce-card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.125rem 1.125rem; }
.ce-type {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 0.3125rem; font-family: var(--ce-font-head); font-weight: 700;
  font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3125rem 0.625rem; border-radius: 2px; margin-bottom: 0.625rem;
  line-height: 1.2; background: var(--type); color: var(--type-text);
}
.ce-type .ce-icon { width: 12px; height: 12px; flex-shrink: 0; }
.ce-btn .ce-icon { width: 13px; height: 13px; flex-shrink: 0; }
.ce-card__iconcircle .ce-icon { width: 20px; height: 20px; }
.ce-level { display: flex; align-items: center; gap: 0.375rem; font-size: 1rem; color: var(--earthy-brown); margin: 0; }
.ce-level strong { color: var(--deep-blue); }
.ce-level__shape { display: inline-block; background: var(--deep-blue); }
.ce-level__shape--skill { width: 8px; height: 8px; transform: rotate(45deg); }
.ce-level__shape--micro-credential { width: 9px; height: 9px; border-radius: 50%; }
.ce-level__shape--credential { width: 8px; height: 12px; border-radius: 3px; }
.ce-card__title { font-family: var(--ce-font-head); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin: 0.25rem 0 0.625rem; }
.ce-card__text { border-left: 0.3125rem solid var(--pw, var(--beige-brown)); padding: 0.0625rem 0 0.0625rem 0.75rem; margin: 0 0 1rem; font-size: 1rem; color: var(--earthy-brown); }
.ce-card__text strong { color: var(--deep-blue); }
.ce-card__label { display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; margin-bottom: 0.125rem; color: var(--deep-blue); }
.ce-card__actions { margin-top: auto; }
.ce-card__row { display: flex; gap: 0.375rem; align-items: stretch; }
.ce-card__row .ce-btn { flex: 1; padding: 0.6875rem 0.75rem; justify-content: center; text-align: center; line-height: 1.2; }
.ce-card__stack { display: grid; gap: 0.5rem; }
.ce-card__stack .ce-btn { width: 100%; padding: 0.6875rem 0.75rem; justify-content: center; text-align: center; line-height: 1.2; }
.ce-card__actions .ce-btn--text { display: flex; width: 100%; margin-top: 0.375rem; }
.ce-gc { width: 2.75rem; height: 2.75rem; align-self: center; display: block; flex-shrink: 0; }
.ce-gc-slot { align-self: center; flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; }

/* ---------------- Admin ---------------- */

.ce-admin { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.ce-admin th, .ce-admin td { border: 1px solid var(--soft-light-beige); padding: 0.625rem 0.75rem; text-align: left; font-size: 0.875rem; vertical-align: middle; }
.ce-admin thead th { background: var(--very-light-beige); font-family: var(--ce-font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ce-admin__name { display: block; font-weight: 700; }
.ce-admin__email { display: block; font-size: 0.8125rem; color: var(--earthy-brown); }
.ce-admin .ce-addrow td { background: var(--very-light-beige); border-top: 2px solid var(--deep-blue); }
.ce-admin .ce-addrow .ce-input + .ce-input { margin-top: 0.375rem; }
.ce-admin .ce-addrow .ce-btn { white-space: nowrap; }
.ce-admin .ce-addrow .ce-sr-only + .ce-input { margin-top: 6px; }
.ce-actions { display: flex; flex-direction: column; gap: 0.375rem; align-items: flex-start; }
.ce-action {
  display: inline-flex; align-items: center; gap: 0.3125rem; font-weight: 700; font-size: 0.875rem; color: var(--classic-teal);
  text-decoration: underline; background: none; border: none; padding: 0; border-radius: 0; cursor: pointer;
}
.ce-action--muted { color: var(--earthy-brown); }
.ce-scope-note { font-size: 0.8125rem; color: var(--earthy-brown); margin: 0; }

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

.ce-signin { padding: clamp(2rem, 7vh, 5rem) var(--ce-pad) clamp(2.5rem, 8vh, 6rem); }
.ce-signin__box { width: 100%; max-width: 30rem; margin: 0 auto; background: var(--very-light-beige); border: 1px solid var(--beige-brown); border-radius: 6px; padding: 2rem 2.25rem; }
.ce-signin__title { font-family: var(--ce-font-head); font-weight: 700; font-size: 2rem; line-height: 1.2; margin: 0; }
.ce-signin__sub { color: var(--earthy-brown); font-size: 1.125rem; line-height: 1.45; margin: 0.5rem 0 1.375rem; }
.ce-signin .ce-input { font-size: 1.125rem; padding: 0.75rem 0.875rem; }
.ce-signin .ce-btn { font-size: 0.95rem; padding: 0.875rem 1rem; }
.ce-or { display: flex; align-items: center; gap: 0.625rem; margin: 0.875rem 0 0.125rem; color: var(--earthy-brown); font-size: 0.875rem; }
.ce-or::before, .ce-or::after { content: ""; flex: 1; height: 1px; background: var(--beige-brown); }
.ce-field { display: block; margin-top: 0.75rem; }
.ce-password { position: relative; }
.ce-password .ce-input { padding-right: 2.375rem; }
.ce-password__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0.25rem; cursor: pointer; font-size: 1.125rem; color: var(--deep-blue); }
.ce-fine { border-top: 1px solid var(--beige-brown); margin-top: 1rem; padding-top: 0.75rem; font-size: 0.875rem; color: var(--earthy-brown); }
.ce-center { text-align: center; margin-top: 0.625rem; font-size: 0.875rem; }

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

.ce-footer {
  border-top: 1px solid var(--soft-light-beige); padding: 0.875rem var(--ce-gutter); display: flex; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; font-size: 0.75rem; line-height: 1.45; color: var(--earthy-brown); background: #fff;
}
.ce-footer__statement { flex: 1; min-width: 255px; max-width: 640px; margin: 0; }
.ce-footer__statement strong { color: var(--deep-blue); }
.ce-footer__links { text-align: right; }
.ce-footer a { color: var(--classic-teal); }
.ce-footer__version { margin-top: 0.25rem; }

/* ---------------- Look and feel 2.0: new components ---------------- */
.ce-panel--admin { background: #fff; border: 1px solid var(--beige-brown); border-top: 0.375rem solid var(--deep-blue); border-radius: 4px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.ce-panel--plain { background: #fff; }
.ce-panel--find { padding: 1rem 1.25rem; }
.ce-panel--find > .ce-row + .ce-row { margin-top: 0.75rem; }

/* How to read this table strip */
.ce-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; font-size: 1rem; color: var(--earthy-brown); margin: 1rem 0 0.5rem; }
.ce-legend__title { font-family: var(--ce-font-head); color: var(--deep-blue); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ce-legend__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.ce-legend__cell { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; font-size: 1.0625rem; color: var(--deep-blue); border: 1px solid var(--beige-brown); background: #fff; border-radius: 4px; padding: 0.125rem 0.5rem; }
.ce-legend__cell--done { background: color-mix(in srgb, var(--mint) 45%, #fff); }
.ce-legend__cell .ce-icon { color: var(--classic-teal); }

/* By skill list */
.ce-skilllist { list-style: none; margin: 0.75rem 0 0; padding: 0; background: #fff; border: 1px solid var(--soft-light-beige); border-radius: 4px; }
.ce-skilllist li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--soft-light-beige); }
.ce-skilllist li:last-child { border-bottom: 0; }
.ce-skilllist li:hover { background: color-mix(in srgb, var(--mint) 30%, #fff); }
.ce-skilllist .ce-roster__name { display: inline; }
.ce-skilllist__email { display: block; font-size: 0.9375rem; color: var(--earthy-brown); }

/* Learner page bar */
.ce-learnerbar { background: #fff; border: 1px solid var(--soft-light-beige); border-top: 0.375rem solid var(--classic-teal); border-radius: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.875rem 1.125rem; margin: 1rem 0; }
.ce-learnerbar__who { flex: 1; min-width: 12rem; }
.gv-bar__who strong { font-size: 1.25rem; }
.gv-bar__who span { display: block; font-size: 1rem; overflow-wrap: anywhere; }

/* Instructor Portal filters: two equal columns */
.ce-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; align-items: end; }

/* Choices and saving text */
.ce-choice { font-size: 1.375rem; }
.ce-savebar p { font-size: 1rem; }
.ce-evidence .ce-small { font-size: 1.0625rem; }
.ce-activity__title { font-size: 1.0625rem; }
.ce-activity__time, .ce-activity__who, .ce-activity__detail, .ce-activity__comment { font-size: 1rem; }

/* Confirm dialog (ce-dialog.js) */
.ce-dialog { border: 0; padding: 0; border-radius: 10px; width: min(30rem, calc(100% - 2rem)); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.3); color: var(--deep-blue); }
.ce-dialog::backdrop { background: rgba(10, 20, 40, 0.55); }
.ce-dialog__bar { background: var(--deep-blue); color: #fff; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; padding: 0.75rem 1.25rem; border-bottom: 0.25rem solid var(--classic-teal); }
.ce-dialog__body { padding: 1.25rem 1.25rem 0.5rem; }
.ce-dialog__title { font-family: var(--ce-font-head); font-weight: 700; font-size: 1.25rem; margin: 0 0 0.5rem; }
.ce-dialog__text { font-size: 1rem; color: var(--earthy-brown); margin: 0; white-space: pre-line; }
.ce-dialog__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; padding: 1rem 1.25rem 1.25rem; }

/* Assessment pop-up shell (built by grading-view.html; the page inside is assessment.html?embed=1) */
.ce-assess-dialog { width: min(72rem, calc(100% - 3rem)); max-width: none; height: 92vh; height: 92dvh; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #fff; }
.ce-assess-dialog::backdrop { background: rgba(10, 20, 40, 0.55); }
.ce-assess-dialog[open] { display: flex; flex-direction: column; }
.ce-assess__top { flex: 0 0 auto; display: flex; justify-content: flex-end; padding: 0.75rem 1rem 0; background: var(--deep-blue); }
.ce-assess__close { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.7); }
.ce-assess__close:hover { background: rgba(255, 255, 255, 0.12); }
.ce-assess__frame { border: 0; width: 100%; flex: 1 1 auto; min-height: 0; }
html:has(.ce-assess-dialog[open]) { overflow: hidden; }

/* ---------------- Smaller screens ---------------- */

@media (max-width: 860px) {
  .ce-main-cards, .ce-soon-row { grid-template-columns: 1fr; }
  .ce-kpis, .ce-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ce-choices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ce-kpis, .ce-tiles { grid-template-columns: 1fr; }
  .ce-footer__links { text-align: left; }
}

/* Paperclip on a result chip when the skill holds attachments. */
.ce-chip__clip { margin-left: 0.375rem; color: var(--classic-teal); }

/* ---- Saving overlay (saving.js) and the teal "saved" bar ---- */
.ce-saving { position: fixed; inset: 0; z-index: 1000; background: rgba(255,255,255,.78); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 0.875rem; font-weight: 700; color: var(--deep-blue); font-size: 1.125rem; }
.ce-saving.is-on { display: flex; }
.ce-saving__spin { width: 41px; height: 41px; border: 5px solid var(--beige-brown); border-top-color: var(--classic-teal); border-radius: 50%; animation: ce-spin .8s linear infinite; }
@keyframes ce-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ce-saving__spin { animation-duration: 2.4s; } }
.ce-panel.is-ok { background: var(--classic-teal); border-color: var(--classic-teal); color: #fff; font-weight: 700; font-size: 1rem; position: sticky; top: 0; z-index: 20; }
.ce-panel.is-ok::before { content: '\2713\00a0\00a0'; }
#location-status:has(.text-success), #people-status:has(.text-success), #transfer-status:has(.text-success), #rosters-status:has(.text-success) { background: var(--classic-teal); color: #fff; font-weight: 700; padding: 0.75rem 0.875rem; border-radius: 6px; position: sticky; top: 0; z-index: 20; }
#location-status:has(.text-success) .text-success, #people-status:has(.text-success) .text-success, #transfer-status:has(.text-success) .text-success, #rosters-status:has(.text-success) .text-success { color: #fff; }

/* ---------------- Phone layout (640px and narrower) ---------------- */
@media (max-width: 640px) {
  .ce-header { padding: 0.75rem var(--ce-pad); gap: 0.5rem 0.75rem; }
  .ce-brand__logo, .ce-brand__rule { height: 1.75rem; }
  .ce-brand__name { font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0; }
  /* Row 2 of the phone header: name and role badge together on the left, Sign out at the right edge. If the name is long it wraps
     inside its own column, so the three never stack at different heights. The "viewing as" strip gets its own row below. */
  .ce-header > .ce-identity { flex: 1 0 100%; }
  .ce-header__right { flex: 1 0 100%; margin-left: 0; gap: 0.5rem; border-top: 1px solid var(--soft-light-beige); padding-top: 0.5rem; }
  .ce-header__right > .ce-identity { flex: 1 1 auto; min-width: 0; }
  .ce-header .ce-header__right { align-items: flex-start; }
  .ce-header .ce-header__right > .ce-bell { height: 2.5rem; display: flex; align-items: center; margin-top: 0; }
  .ce-header .ce-header__right .ce-bell__btn { padding: 0.25rem 0.4rem; }
  /* The page script sets display:block inline when it shows this block, so the grid must win over that (but not over display:none). */
  .ce-identity:not([style*="none"]) { display: grid !important; }
  .ce-identity { display: grid; grid-template-columns: minmax(0, max-content) auto 1fr auto; grid-template-rows: minmax(2.5rem, auto) auto; align-items: center; column-gap: 0.625rem; row-gap: 0; text-align: left; }
  .ce-identity > span:not([class]) { display: none; }
  .ce-identity__name { display: block; grid-column: 1; grid-row: 1; font-size: 1.0625rem; overflow-wrap: anywhere; }
  .ce-identity > .ce-role { grid-column: 2; grid-row: 1; }
  .ce-identity > div { grid-column: 4; grid-row: 1; white-space: nowrap; margin-left: 0; }
  .ce-viewing { grid-column: 1 / -1; grid-row: 2; margin-top: 0.375rem; font-size: 0.8125rem; text-transform: none; letter-spacing: 0; white-space: normal; border-radius: 0.5rem; padding: 0.375rem 0.625rem; }
  .ce-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 0 0.25rem; }
  .ce-tabs a { flex-direction: column; justify-content: center; text-align: center; gap: 0.25rem; padding: 0.625rem 0.25rem 0.5rem; min-height: 3.75rem; font-size: 0.8125rem; line-height: 1.15; letter-spacing: 0; }
  .ce-tabs .ce-icon { font-size: 1.5rem; }
  .ce-band h1 { font-size: 1.75rem; }
  .ce-panel.ce-row .ce-grow { flex: 1 1 100%; }
  .ce-panel.ce-row .ce-btn { flex: 1 1 0; }
  .ce-panel--find .ce-grow { flex: 1 1 100%; }

  /* Home */
  .ce-main-card { padding: 1rem; }
  .ce-main-card__icon { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; }
  .ce-main-card > .ce-btn { flex: 1 1 100%; }

  /* Grading View */
  .ce-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ce-roster .ce-roster__learner { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--soft-light-beige); }
  .ce-roster thead th.ce-roster__learner { width: 8rem; font-size: 1rem; }
  .ce-roster .ce-roster__email { overflow-wrap: anywhere; word-break: break-all; font-size: 0.8125rem; }
  .ce-roster .ce-roster__name { font-size: 1rem; }
  .ce-roster__pathway { height: 11rem; }
  .ce-roster__pathway img { height: 34px; }
  .ce-roster td, .ce-roster th { padding-left: 0.375rem; padding-right: 0.375rem; }
  .ce-pathway > summary { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo name chev" "bar bar count"; gap: 0.5rem 0.75rem; align-items: center; }
  .ce-pathway__logo { grid-area: logo; }
  .ce-pathway__name { grid-area: name; }
  .ce-pathway__chevron { grid-area: chev; }
  .ce-pathway__bar { grid-area: bar; width: 100%; }
  .ce-pathway__count { grid-area: count; }
  .ce-mc__id { width: 100%; }
  .ce-learnerbar { flex-direction: column; align-items: stretch; }
  .ce-learnerbar__who { order: -1; flex: 1 1 100%; }
  .ce-learnerbar .ce-btn { width: 100%; }
  .ce-skilllist li { flex-wrap: wrap; gap: 0.5rem 0.75rem; padding: 0.875rem 1rem; }
  .ce-skilllist li > span:first-child { flex: 1 1 100%; min-width: 0; }
  .ce-skilllist__email { overflow-wrap: anywhere; }
  .ce-dialog { width: calc(100% - 1.5rem); }
  .ce-dialog__actions .ce-btn { flex: 1 1 100%; }

  /* Assessment pop-up fills the screen; the form parts go full width */
  .ce-assess-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .ce-choice { font-size: 1.25rem; }
  .ce-savebar { flex-direction: column; align-items: stretch; }
  .ce-savebar .ce-btn { width: 100%; }
  .ce-evidence form.ce-row .ce-btn { flex: 1 1 100%; }
  .ce-activity__item { flex-wrap: wrap; }
  .ce-activity__time { flex: 1 1 100%; padding-left: 2.75rem; }

  /* Instructor Portal */
  .ce-filters { grid-template-columns: 1fr; }
  .ce-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .ce-pills .ce-pill:first-child { grid-column: 1 / -1; }
  .ce-pills .ce-icon { display: none; }
  .ce-section__bar { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .ce-section__grid { padding: 0.75rem; }
}

/* Roster seats and requests (Sam section 11) */
.ce-panel--find__add { align-self: flex-end; }
.ce-seats { background: #fff; border: 1px solid var(--soft-light-beige); border-top: 0.1875rem solid var(--classic-teal); border-radius: 4px; padding: 1.25rem 1.5rem 0.5rem; margin: 1.5rem 0 1rem; }
.ce-seats__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.ce-seats__title { margin: 0; font-size: 1.125rem; }
.ce-seats__site { margin: 0 0 0.75rem; }
.ce-seats__name { display: block; font-size: 0.875rem; color: var(--earthy-brown); margin-bottom: 0.125rem; }
.ce-seats__meter { display: grid; grid-template-columns: auto minmax(8rem, 28rem) auto; justify-content: start; align-items: center; gap: 1rem; }
.ce-seats__meter strong { font-size: 1.375rem; line-height: 1; }
.ce-seats__meter .ce-bar > span { background: var(--classic-teal); }
.ce-seats__sub { margin: 0 0 0.75rem; }
.ce-requests__title { margin: 1rem 0 0; }
.ce-requests__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem 1rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--soft-light-beige); }
.ce-requests__row:last-child { border-bottom: 0; }
.ce-requests__title { padding-bottom: 0.5rem; border-bottom: 1px solid var(--soft-light-beige); }
.ce-requests__who { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; overflow-wrap: anywhere; }
.ce-requests__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.ce-requests__status .ce-chip { margin: 0; }
.ce-chip--pending { background: #fff; color: var(--deep-blue); border-color: var(--light-salmon); }
.ce-chip--approved { background: var(--mint); color: var(--deep-blue); border-color: var(--soft-aqua); }
.ce-chip--declined { background: #fff; color: var(--earthy-brown); border-color: var(--beige-brown); }
.ce-chip .ce-icon { width: 1em; height: 1em; }
.ce-dialog--form { width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); }
.ce-dialog--form[open] { display: flex; flex-direction: column; }
.ce-dialog__form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ce-dialog__form .ce-dialog__body { overflow: auto; flex: 1 1 auto; min-height: 0; }
.ce-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ce-form-grid__wide { grid-column: 1 / -1; }
textarea.ce-input { resize: vertical; font: inherit; }
@media (max-width: 640px) {
  .ce-panel--find__add, .ce-panel--find__add .ce-btn { width: 100%; }
  .ce-seats { padding: 1rem; }
  .ce-seats__head .ce-btn { flex: 1 1 100%; }
  .ce-seats__meter { grid-template-columns: 1fr auto; }
  .ce-seats__meter .ce-bar { grid-column: 1 / -1; order: 3; }
  .ce-requests__row { grid-template-columns: 1fr; }
  .ce-requests__actions { flex: 1 1 100%; justify-content: flex-start; }
  .ce-requests__actions .ce-btn { flex: 1 1 100%; }
  .ce-form-grid { grid-template-columns: 1fr; }
}
#rl-intro { margin-bottom: 0.75rem; }

/* Approver alert on Home and the waiting count on the Grading View tab */
.ce-alert { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--soft-light-beige); border-left: 0.5rem solid var(--deep-blue); border-radius: 4px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; box-shadow: 0 1px 4px rgba(10, 20, 40, 0.12); }
.ce-alert > .ce-icon { font-size: 1.75rem; color: var(--deep-blue); flex: none; }
.ce-alert__text { flex: 1 1 auto; min-width: 0; }
.ce-alert__text p { margin: 0; font-size: 1.0625rem; }
.ce-alert__text p + p { margin-top: 0.25rem; }
.ce-alert .ce-btn { flex: none; }
.ce-navbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.375rem; height: 1.375rem; padding: 0 0.375rem; margin-left: 0.5rem; border-radius: 999px; background: var(--deep-blue); color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1; }
.ce-navbadge[hidden] { display: none; }
@media (max-width: 640px) {
  .ce-alert { flex-wrap: wrap; padding: 0.875rem 1rem; }
  .ce-alert__text { flex: 1 1 calc(100% - 3rem); }
  .ce-alert .ce-btn { flex: 1 1 100%; }
  .ce-navbadge { margin-left: 0.25rem; min-width: 1.125rem; height: 1.125rem; font-size: 0.6875rem; }
}
@media (max-width: 640px) {
  .ce-tabs a { position: relative; }
  #nav-grading-badge { position: absolute; top: 0.375rem; left: calc(50% + 0.75rem); margin: 0; }
}

/* A chip or badge with the hidden attribute must stay hidden (the pink oval seen with no count). */
.ce-chip[hidden], .ce-navbadge[hidden] { display: none !important; }
.ce-requests__more { margin: 0.75rem 0 0.5rem; }
/* Seats and requests panel: collapsible header, and the New update tag sits beside the name instead of stretching. */
.ce-seats__toggle { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.ce-seats__toggle:focus-visible { outline: 2px solid var(--classic-teal); outline-offset: 3px; }
.ce-requests__name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.ce-requests__name .ce-chip { margin: 0; flex: none; width: auto; }
/* Not-verified lock: controls are switched off; the notice sits above the page band. */
.ce-main--notice { padding-bottom: 1.25rem; }
.ce-main--notice .ce-alert { margin-bottom: 0; }
.ce-locked button:disabled, .ce-locked input:disabled, .ce-locked select:disabled, .ce-locked textarea:disabled { opacity: 0.55; cursor: not-allowed; }

/* Location seat tiles on Admin, Rosters: click one to show only that location, click again to show all. */
.ce-seatcard { min-width: 13rem; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ce-seatcard:hover { border-color: var(--classic-teal); }
.ce-seatcard[aria-pressed="true"] { border-color: var(--classic-teal); box-shadow: 0 0 0 2px var(--classic-teal); }
.ce-seatcard:focus-visible { outline: 2px solid var(--classic-teal); outline-offset: 2px; }

/* Result recorded by a different Awarder: small left-aligned second line inside the chip */
.ce-chip:has(.ce-chip__with) { flex-wrap: wrap; border-radius: 12px; text-align: left; justify-content: flex-start; }
.ce-chip__with { display: block; flex-basis: 100%; text-align: left; font-size: 0.75rem; font-weight: 400; line-height: 1.2; margin-top: 0.125rem; }

/* Sortable table headings (public/ce-sort.js) */
.ce-sort { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.ce-sort:hover, .ce-sort:focus-visible { text-decoration: underline; }
.ce-sort:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; }
.ce-sort .ce-icon { width: 0.875rem; height: 0.875rem; flex: none; opacity: 0.55; }
th[aria-sort="ascending"] .ce-sort .ce-icon, th[aria-sort="descending"] .ce-sort .ce-icon { opacity: 1; }
/* Gradebook credential headings: the badge sits ABOVE the vertical name (the sort button must not lay them side by side). */
.ce-roster__pathway .ce-sort { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }
.ce-roster__pathway .ce-sort .ce-icon { margin-top: 0.5rem; }
th[aria-sort="ascending"], th[aria-sort="descending"] { background: color-mix(in srgb, var(--mint) 45%, #fff) !important; }


/* ---------------- Admin (layout from the Responsive Layout update, Part 6) ---------------- */
.ce-subtabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; border-bottom: 2px solid var(--soft-light-beige); margin: 0 0 1.25rem; }
.ce-subtabs a, .ce-subtabs button {
  font-family: var(--ce-font-head); font-weight: 700; font-size: 1.0625rem; color: var(--deep-blue); text-decoration: none; background: none; border: 0;
  border-bottom: 4px solid transparent; padding: 0.625rem 0.125rem; margin-bottom: -2px; cursor: pointer;
}
.ce-subtabs a:hover, .ce-subtabs button:hover { color: var(--classic-teal); }
.ce-subtabs [aria-current="page"] { color: var(--classic-teal); border-bottom-color: var(--classic-teal); }
.ce-subtabs [hidden] { display: none; }
.ce-note { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border: 1px solid var(--soft-light-beige); border-left: 0.375rem solid var(--classic-teal);
  border-radius: 4px; padding: 1rem 1.25rem; font-size: 1rem; color: inherit; margin: 0 0 1.25rem; }
.ce-note .ce-icon { font-size: 1.375rem; color: var(--classic-teal); flex: 0 0 auto; margin-top: 0.0625rem; }
.ce-note p { margin: 0; }
.ce-note ul { margin: 0.5rem 0 0; }
.ce-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 1.25rem 0 0.75rem; }
.ce-toolbar__buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ce-admin { margin-top: 0; }
.ce-admin th, .ce-admin td { border: 0; border-top: 1px solid var(--soft-light-beige); padding: 1rem; vertical-align: top; font-size: 1rem; background: #fff; }
.ce-admin thead th { background: var(--deep-blue); color: #fff; font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: none; padding: 0.875rem 1rem; white-space: nowrap; border: 0; }
.ce-admin thead th .ce-sort, .ce-admin thead th button { color: #fff; }
.ce-admin tbody tr:first-child td { border-top: 0; }
.ce-admin .ce-addrow td { background: var(--very-light-beige); }
.ce-admin__name { font-size: 1.125rem; color: var(--deep-blue); }
.ce-admin__seats { display: block; min-width: 9rem; }
.ce-admin__seats .ce-bar { margin-top: 0.375rem; }
.ce-admin .ce-chip { margin: 0; white-space: nowrap; }
.ce-admin__counts { line-height: 1.55; }
.ce-chip--required { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); }
.ce-chip--optional { background: var(--mint); border-color: var(--soft-aqua); }
.ce-box { border: 1px solid var(--soft-light-beige); border-top: 0.375rem solid var(--classic-teal); border-radius: 4px; padding: 1.25rem; margin-top: 1.5rem; background: #fff; }
.ce-box h3 { margin: 0 0 0.25rem; font-size: 1.375rem; }
.ce-box > p { margin: 0 0 1rem; font-size: 1rem; color: var(--earthy-brown); }
.ce-box h4 { margin: 1.25rem 0 0.25rem; font-size: 1.125rem; }
.ce-box h3 + h4 { margin-top: 0.5rem; }
.ce-box h4 + .ce-sitechecks { margin-top: 0.5rem; }
.ce-box--tan { background: var(--very-light-beige); border-color: var(--beige-brown); border-top-color: var(--beige-brown); }
.ce-tools { background: #fff; border: 1px solid var(--soft-light-beige); border-top: 0.375rem solid var(--beige-brown); border-radius: 4px; padding: 1.25rem; margin-top: 2rem; }
.ce-optcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; border: 0; padding: 0; margin: 0; }
.ce-optcards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ce-optcard { position: relative; display: block; background: #fff; border: 1px solid var(--beige-brown); border-radius: 6px; padding: 1rem 1.125rem; cursor: pointer; }
.ce-optcard input { position: absolute; opacity: 0; }
.ce-optcard strong { display: flex; align-items: center; gap: 0.5rem; font-family: var(--ce-font-head); font-size: 1.125rem; margin-bottom: 0.25rem; }
.ce-optcard span { display: block; font-size: 1rem; color: var(--earthy-brown); }
.ce-optcard:has(input:checked) { border: 3px solid var(--classic-teal); padding: calc(1rem - 2px) calc(1.125rem - 2px); }
.ce-optcard:has(input:focus-visible) { outline: 3px solid var(--classic-teal); outline-offset: 2px; }
.ce-lock { margin-top: 1rem; padding: 0.875rem 1rem; background: var(--very-light-beige); border-radius: 0.5rem; }
.ce-check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.ce-check input { width: 1.375rem; height: 1.375rem; flex: none; margin-top: 0.125rem; accent-color: var(--classic-teal); }
.ce-locked { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--earthy-brown); }
@media (max-width: 640px) {
  .ce-toolbar__buttons, .ce-toolbar__buttons .ce-btn { width: 100%; }
  .ce-toolbar__buttons .ce-btn { flex: 1 1 100%; }
  .ce-optcards, .ce-optcards--three { grid-template-columns: minmax(0, 1fr); }
}

/* Wide dialogs (partner and site) */
.ce-dialog--wide { width: min(64rem, calc(100% - 3rem)); max-height: calc(100% - 2rem); overflow: auto; }
.ce-dialog--wide .ce-dialog__head, .ce-dialog--headed .ce-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; background: var(--deep-blue); color: #fff; padding: 1rem 1.5rem; border-bottom: 0.25rem solid var(--classic-teal); position: sticky; top: 0; z-index: 1; }
.ce-dialog__title--on-dark { margin: 0.125rem 0 0; font-size: 1.75rem; line-height: 1.15; color: #fff; font-family: var(--ce-font-head); }
.ce-dialog__sub { margin: 0.25rem 0 0; font-size: 1rem; color: var(--very-light-beige); }
.ce-dialog--wide .ce-dialog__body, .ce-dialog--headed .ce-dialog__body { padding: 1.5rem 2rem; }
.ce-dialog--wide .ce-dialog__actions, .ce-dialog--headed .ce-dialog__actions { padding: 1rem 2rem 1.5rem; }
.ce-dialog--headed { width: min(36rem, calc(100% - 3rem)); max-height: calc(100% - 2rem); overflow: auto; }
.ce-namelist { margin: 0 0 1rem; padding: 0.625rem 0.875rem; background: var(--very-light-beige); border-radius: 6px; max-height: 12rem; overflow: auto; }
.ce-namelist div + div { margin-top: 0.25rem; }
.ce-dialog__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.ce-dialog__close { background: none; border: 0; color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.ce-sitechecks { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.ce-sitechecks label { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.9375rem; }
@media (max-width: 640px) {
  .ce-dialog--wide { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .ce-dialog--wide .ce-dialog__body { padding: 1rem; }
  .ce-dialog__fields { grid-template-columns: minmax(0, 1fr); }
  .ce-dialog--wide .ce-dialog__actions { padding: 1rem; }
}
.ce-admin__row td:first-child .ce-link { font-weight: 700; font-size: 1.125rem; color: var(--deep-blue); text-decoration: underline; text-decoration-color: var(--classic-teal); text-decoration-thickness: 2px; text-underline-offset: 0.25em; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; }
.ce-admin__row td:first-child .ce-link:hover { color: var(--classic-teal); }
.ce-locknotice { display: flex; align-items: flex-start; gap: 0.75rem; background: var(--light-salmon, #FCDDD0); border: 1px solid var(--salmon-pink); color: var(--deep-blue); border-radius: 0.5rem; padding: 0.875rem 1.125rem; font-size: 1rem; margin-bottom: 1.25rem; }
.ce-locknotice .ce-icon { font-size: 1.375rem; flex: 0 0 auto; margin-top: 0.0625rem; }
.ce-btn:disabled, .ce-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
[hidden] { display: none !important; }

/* ---- Nested view: a row opens to show what is inside it ---- */
.ce-twistycell { display: flex; align-items: flex-start; gap: 0.5rem; }
.ce-twisty { flex: none; width: 1.75rem; height: 1.75rem; border: 1px solid var(--beige-brown); border-radius: 4px; background: #fff; color: var(--navy, #1f2f56); cursor: pointer; line-height: 1; font-size: 0.875rem; padding: 0; }
.ce-twisty::before { content: "\25B8"; display: inline-block; transition: transform 0.15s; }
.ce-twisty[aria-expanded="true"]::before { transform: rotate(90deg); }
.ce-twisty:focus-visible { outline: 3px solid var(--classic-teal); outline-offset: 2px; }
.ce-treerow > td { background: var(--very-light-beige, #f3ede1); padding: 0.75rem 1rem 1rem 3.25rem; }
.ce-treerow[hidden] { display: none; }
.ce-branch { margin: 0 0 0.875rem; }
.ce-branch:last-child { margin-bottom: 0; }
.ce-branch__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.ce-branch__seats { min-width: 12rem; max-width: 18rem; flex: 1; }
.ce-branch__people { list-style: none; margin: 0.375rem 0 0 0.5rem; padding: 0 0 0 1rem; border-left: 2px solid var(--beige-brown); }
.ce-branch__people li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; padding: 0.1875rem 0; }
.ce-branch__people li.is-here { font-weight: 700; }
.ce-path { margin: 0 0 0.5rem; color: var(--dark-brown, #4a3a28); }
.ce-branch .ce-link { background: none; border: 0; padding: 0; font: inherit; color: var(--classic-teal); text-decoration: underline; cursor: pointer; }

.ce-sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 0.625rem; margin-bottom: 0.625rem; }
.ce-sitegrid .ce-seatcard { min-width: 0; }
.ce-sitegrid .ce-seatcard { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }

.ce-branch__admin { display: inline-flex; align-items: center; gap: 0.5rem; }
.ce-sep { color: var(--beige-brown); font-weight: 400; }
.ce-branch__admin.is-here { font-weight: 700; }

/* A form or box whose controls are switched off because the person is not verified yet (Part 7). The controls are disabled as well. */
.ce-locked-form { opacity: 0.8; }
.ce-locked-form label, .ce-locked-form .ce-optcard { cursor: not-allowed; }

/* Import people: the summary line above the preview table. */
.ce-importsummary { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.ri-bad { outline: 3px solid var(--salmon-pink); outline-offset: 1px; }

/* Rosters tab: status buttons, selection and the salmon "waiting" chip */
.ce-chip--waiting { background: var(--salmon-pink); color: var(--deep-blue); border-color: var(--salmon-pink); }
.ce-pillbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 0.75rem; }
.ce-pillbar__set { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ce-pill { border: 2px solid var(--deep-blue); border-radius: 999px; background: #fff; color: var(--deep-blue); font: 700 0.875rem var(--ce-font-head); padding: 0.25rem 0.875rem; cursor: pointer; }
.ce-pill[aria-pressed="true"] { background: var(--deep-blue); color: #fff; }
.ce-selcol { width: 2.25rem; text-align: center; }
.ce-admin tr.ce-row--picked td { background: var(--soft-light-beige); }

/* Narrow headed dialogs: two-column form, a note box for what is about to happen */
.ce-dialog--headed .ce-dialog__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-span2 { grid-column: 1 / -1; }
.ce-notebox { margin: 1rem 0 0; padding: 0.875rem 1rem; background: var(--very-light-beige); border-radius: 6px; font-size: 0.9375rem; line-height: 1.45; }
.ce-notebox p { margin: 0.375rem 0 0; }
.ce-notebox--line { background: #fff; border: 2px solid var(--classic-teal); }

.ce-planrow{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem 0;border-bottom:1px solid var(--ce-line,#e3dccb)}
#rmove-plan{margin:.75rem 0}
.ce-chip--ok{background:#b8e0d9;color:#0f3d38}
.ce-chip--moved { background: var(--soft-light-beige); color: var(--deep-blue); border-color: var(--beige-brown); }

/* Merge learners window (Round 3, p16) */
.ce-chip--match { background: #e6d9c3; color: var(--deep-blue); border-color: var(--beige-brown); }
.ce-mergecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.ce-mergecard { border: 1px solid var(--beige-brown); border-radius: 0.375rem; padding: 1rem; background: #fff; }
.ce-mergecard--keep { border: 2px solid var(--classic-teal); }
.ce-mergecard h3 { margin: 0 0 0.25rem; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-blue); }
.ce-mergecard--keep h3 { color: var(--classic-teal); }
.ce-mergecard__name { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--deep-blue); }
.ce-mergerow { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--beige-brown); font-size: 0.875rem; }
.ce-mergerow strong { text-align: right; overflow-wrap: anywhere; }
.ce-mergebanner { margin: 0.75rem 0; padding: 0.75rem 1rem; background: #a8ddd5; color: var(--deep-blue); border-radius: 0.25rem; font-size: 0.875rem; }
.ce-mergebanner--warn { background: #f3e1b5; }
.ce-mergenote { margin: 0 0 0.75rem; padding: 0.875rem 1rem; border: 2px solid var(--classic-teal); border-radius: 0.375rem; background: #fff; }
.ce-mergenote h3 { margin: 0 0 0.375rem; font-size: 1rem; color: var(--deep-blue); }
.ce-mergenote p { margin: 0; font-size: 0.875rem; }
.ce-mergecheck { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; cursor: pointer; }
.ce-dialog__close--text { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.5rem; }

/* Import learners window (Round 3, pp. 17-22) */
.ce-steps { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; flex-wrap: wrap; font-size: 0.875rem; color: var(--deep-blue); }
.ce-steps li { display: flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid var(--beige-brown); background: #fff; }
.ce-steps li span { display: inline-flex; width: 1.375rem; height: 1.375rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--soft-light-beige); font-weight: 700; font-size: 0.75rem; }
.ce-steps li.is-on { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); font-weight: 700; }
.ce-steps li.is-on span { background: var(--classic-teal); color: #fff; }
.ce-importgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
@media (max-width: 52rem) { .ce-importgrid { grid-template-columns: 1fr; } }
.ce-importassign { border: 0; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; }
.ce-importassign label:not(.ce-label) { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; }
.ce-importnote { border: 1px solid var(--beige-brown); border-radius: 0.375rem; padding: 1rem; background: var(--soft-light-beige); }
.ce-importnote h3 { margin: 0 0 0.5rem; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-blue); }
.ce-importnote ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.ce-importprefill { margin-top: 1.25rem; border-top: 1px solid var(--beige-brown); padding-top: 0.75rem; }
.ce-importprefill summary { cursor: pointer; font-weight: 700; color: var(--deep-blue); }
.ce-importbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: 0.9375rem; margin: 0 0 0.25rem; }
.ce-importtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr)); gap: 0.75rem; }
.ce-importtile { border: 1px solid var(--beige-brown); border-top: 0.25rem solid var(--deep-blue); border-radius: 0.375rem; padding: 0.625rem 0.75rem; background: #fff; display: flex; flex-direction: column; font-size: 0.8125rem; color: var(--deep-blue); }
.ce-importtile__n { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.ce-importtile--ok { border-top-color: var(--classic-teal); }
.ce-importtile--attn { border-top-color: var(--beige-brown); background: var(--soft-light-beige); }
.ri-fixgrid { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
#ri-table { min-width: 0; width: 100%; table-layout: auto; }
#ri-table th, #ri-table td { padding-left: 0.5rem; padding-right: 0.5rem; }
#ri-table td:last-child { min-width: 13rem; }
#ri-table td:nth-child(3) { overflow-wrap: anywhere; }
@media (max-width: 70rem) { #ri-table th:nth-child(4), #ri-table td:nth-child(4) { display: none; } }

.ri-fixgrid .ce-input, .ri-fixrow .ce-input { width: auto; flex: 1 1 11rem; }

/* Rosters cards: places are deep blue, people are mint, warnings stay tan. Clickable ones are buttons. */
.ce-kpi--place { --kpi: var(--deep-blue); }
.ce-kpi--people { --kpi: var(--mint); }
button.ce-kpi--click { font: inherit; text-align: left; width: 100%; cursor: pointer; color: inherit; }
button.ce-kpi--click:hover { background: var(--soft-light-beige, #f7f3ee); }
button.ce-kpi--click:focus-visible { outline: 3px solid var(--classic-teal); outline-offset: 2px; }
button.ce-kpi--click.is-active { box-shadow: inset 0 0 0 2px var(--deep-blue); }

/* People cards carry the same colors as the role chips. Facilitators covers two roles, so its bar is split. */
.ce-kpi--role-admin { --kpi: var(--deep-blue); }
.ce-kpi--role-partner_admin { --kpi: var(--classic-teal); }
.ce-kpi--role-supervisor { --kpi: var(--salmon-pink); }
.ce-kpi--role-awarder { --kpi: #513D2C; }
.ce-kpi--role-instructor { --kpi: var(--mint); }
.ce-kpi--role-facilitator { border-top-color: transparent; background: linear-gradient(90deg, #513D2C 50%, var(--mint) 50%) top left / 100% 5px no-repeat border-box, #fff; }

/* Import export guide */

/* ---------------- Stacked tables and small screens (every page, window and tab) ---------------- */
/* Up to tablet width, a table becomes a list of cards: each row is a card and each cell shows its column name beside its value. */
@media (max-width: 52rem) {
  table.ce-admin, table.ce-admin__table { display: block; width: 100%; border: 0; }
  table.ce-admin thead, table.ce-admin__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.ce-admin tbody, table.ce-admin__table tbody { display: block; }
  table.ce-admin tbody > tr, table.ce-admin__table tbody > tr { display: block; margin: 0 0 0.75rem; border: 1px solid var(--soft-light-beige); border-radius: 8px; background: #fff; overflow: hidden; }
  table.ce-admin tbody > tr.ce-treerow, table.ce-admin__table tbody > tr.ce-treerow { margin-top: -0.75rem; border-top: 0; border-radius: 0 0 8px 8px; }
  table.ce-admin tbody > tr.ce-treerow[hidden] { display: none; }
  table.ce-admin td, table.ce-admin__table td { display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: start; width: auto; padding: 0.625rem 0.875rem; border: 0; border-top: 1px solid var(--soft-light-beige); font-size: 0.9375rem; overflow-wrap: anywhere; }
  table.ce-admin td:first-child, table.ce-admin__table td:first-child { border-top: 0; }
  table.ce-admin td[data-label]::before, table.ce-admin__table td[data-label]::before { content: attr(data-label); font-family: var(--ce-font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--earthy-brown, #513d2c); padding-top: 0.1875rem; }
  table.ce-admin td:not([data-label]), table.ce-admin__table td:not([data-label]) { display: block; }
  table.ce-admin td.ce-selcol { width: auto; text-align: left; }
  table.ce-admin .ce-actions { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  table.ce-admin .ce-input, table.ce-admin select, table.ce-admin input[type="text"] { max-width: 100%; min-width: 0; }
  .ce-treerow > td { padding: 0.75rem 0.875rem; }
  .ce-scroll { overflow-x: visible; }
  /* Page furniture */
  .ce-subtabs { gap: 0.125rem 1rem; }
  .ce-section-head > .ce-btn, #rosters-tools, #rosters-tools > .ce-btn { flex: 1 1 auto; }
  #rosters-tools { width: 100%; }
  .ce-panel.ce-row .ce-grow { flex: 1 1 100%; }
  .ce-row { flex-wrap: wrap; }
  .ce-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .ce-kpi { padding: 0.625rem 0.75rem; }
  .ce-kpi__value { font-size: 1.5rem; }
  .ce-scope-note { flex: 1 1 100%; }
  .ce-dialog, dialog.ce-dialog { width: calc(100% - 1rem); max-width: none; max-height: calc(100vh - 1rem); margin: auto; }
  .ce-dialog__body { padding-left: 1rem; padding-right: 1rem; }
  .ce-dialog__head { padding-left: 1rem; padding-right: 1rem; }
  .ce-pill-row, #rpills { flex-wrap: wrap; }
  img, svg, video { max-width: 100%; }
}
@media (max-width: 30rem) {
  .ce-kpi__label { font-size: 0.8125rem; }
  table.ce-admin td, table.ce-admin__table td { grid-template-columns: 1fr; gap: 0.125rem; }
  table.ce-admin td[data-label]::before { padding-top: 0; }
  .ce-btn { min-height: 2.75rem; }
}
/* Nothing may push the page sideways. */
html, body { overflow-x: clip; }
@media (max-width: 52rem) {
  table.ce-admin td > .ce-chip, table.ce-admin td > .ce-role, table.ce-admin td > .ce-pill { justify-self: start; }
}

/* Partner row: Admins, numbers and subscription (Round 3 page 24) */
.ce-ppanel { background: #fff; border-left: 0.25rem solid var(--classic-teal, #1f6f78); padding: 1rem 1.25rem; border-radius: 0 0.5rem 0.5rem 0; }
.ce-ppanel h4 { margin: 1.1rem 0 0.5rem; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; }
.ce-ppanel h4:first-child { margin-top: 0; }
.ce-ppanel__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.ce-ppanel__admin { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.5rem 0; border-top: 1px solid var(--border, #ddd); }
.ce-ppanel__admin .ce-grow { min-width: 12rem; }
.ce-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.ce-glance__cell { display: flex; flex-direction: column; gap: 0.125rem; }
.ce-glance__cell strong { font-size: 1.5rem; line-height: 1.1; }
.ce-glance__cell button { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8125rem; color: var(--classic-teal, #1f6f78); text-decoration: underline; cursor: pointer; text-align: left; }
.ce-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.375rem 0; }
.ce-pills span { border: 1px solid var(--border, #ccc); border-radius: 999px; padding: 0.125rem 0.625rem; font-size: 0.8125rem; background: #fff; }
.ce-substrip { background: #fff; border-left: 0.25rem solid var(--classic-teal, #1f6f78); padding: 0.75rem 1rem; margin: 0 0 1rem; border-radius: 0 0.5rem 0.5rem 0; }
.ce-subpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.375rem 1rem; margin: 0.375rem 0 1rem; }
.ce-ppanel .ce-actions { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }

/* Headings that keep their capitals (Title Case) instead of the all-caps label look */
.ce-label.ce-titlecase { text-transform: none; letter-spacing: 0.02em; font-size: 0.9375rem; }

/* Skill Builder Instructors have no Grading View and no Roster */
.ce-sb .ce-sb-hide { display: none !important; }
.ce-role--skill-builder { background: #D9E8F5; color: var(--deep-blue); }
.ce-kpi--role-skillbuilder { --kpi: #5B7FA6; }

/* Help Desk button in the footer (Option A) */
.ce-footer__ask { margin: 0 0 0.5rem; }
.ce-footer a.ce-helpdesk-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.25rem; background: var(--classic-teal); color: #fff; font-family: Arial, sans-serif; font-weight: 700; font-size: 1.125rem; text-decoration: none; border-radius: 8px; margin-bottom: 0.75rem; }
.ce-footer a.ce-helpdesk-btn:hover { filter: brightness(0.92); }
.ce-footer a.ce-helpdesk-btn:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 2px; }
.ce-footer a.ce-helpdesk-btn svg { width: 1.25rem; height: 1.25rem; flex: none; }


/* ---------------- Reporting and Progress (Part 4.0; Responsive Layout update, section 16.2) ---------------- */
.ce-subtabs [disabled] { opacity: 0.55; cursor: not-allowed; }
.ce-subtabs [disabled]:hover { color: var(--deep-blue); }
.ce-kpi--notyet { --kpi: var(--salmon-pink); }
.ce-kpi--demonstrated { --kpi: var(--classic-teal); }
.ce-kpi__note { display: block; font-size: 0.9375rem; color: var(--earthy-brown); }
.ce-kpis--report { grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr)); }
.ce-report__table thead th[aria-sort] { background: var(--deep-blue) !important; }
.ce-report__comment { max-width: 22rem; overflow-wrap: anywhere; }
.ce-report__table td[data-label="Learner"] { min-width: 13rem; }
.ce-kpis--report .ce-kpi { padding: 1rem 1.25rem; }
.ce-kpis--report .ce-kpi__label { font-size: 1rem; min-height: 0; margin-bottom: 0.25rem; }
.ce-kpis--report .ce-kpi__value { font-size: 2.5rem; }
.ce-reportfilters .ce-row { gap: 1rem; }
.ce-reportfilters .ce-grow { min-width: 12rem; }
.ce-reportfilters__note { font-size: 0.9375rem; color: var(--earthy-brown); margin: 0.625rem 0 0; }
.ce-reportfilters__actions { display: flex; gap: 0.75rem; align-items: flex-end; }
/* Spacing for every filter box in Reporting and Progress: room between the two rows, one height for every field and button,
   one gap between a label and its field, and a little more padding inside the tan box. */
.ce-reportfilters { padding: 1.25rem 1.5rem; }
.ce-reportfilters .ce-row + .ce-row { margin-top: 1.25rem; }
.ce-reportfilters .ce-label { margin: 0 0 0.5rem; line-height: 1.2; }
.ce-reportfilters .ce-input { box-sizing: border-box; height: 2.625rem; padding-top: 0; padding-bottom: 0; line-height: 1.2; }
.ce-reportfilters__actions .ce-btn { box-sizing: border-box; height: 2.625rem; padding-top: 0; padding-bottom: 0; }
.ce-report { background: #fff; border: 1px solid var(--soft-light-beige); border-top: 0.375rem solid var(--classic-teal); border-radius: 4px; }
.ce-report__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 1rem 1.25rem; }
.ce-report__head h2 { margin: 0; font-size: 1.375rem; }
.ce-report__table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ce-report__table thead th { background: var(--deep-blue); color: #fff; text-align: left; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; padding: 0.875rem 0.75rem; white-space: normal; vertical-align: bottom; border: 0; }
.ce-report__table thead th button { background: none; border: 0; color: #fff; font: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 0.375rem; }
.ce-report__table thead th button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ce-report__table thead .ce-icon { width: 0.875rem; height: 0.875rem; opacity: 0.75; }
.ce-report__table thead th[aria-sort="ascending"] .ce-icon, .ce-report__table thead th[aria-sort="descending"] .ce-icon { opacity: 1; }
.ce-report__table td:first-child { min-width: 7rem; }
.ce-report__table td { padding: 1rem 0.75rem; vertical-align: top; border: 0; border-top: 1px solid var(--soft-light-beige); }
.ce-report__table tbody tr:first-child td { border-top: 0; }
.ce-report__name { display: block; font-weight: 700; font-size: 1.125rem; color: var(--deep-blue); }
.ce-report__link { text-decoration: underline; text-decoration-color: var(--classic-teal); text-decoration-thickness: 2px; text-underline-offset: 0.25em; color: var(--deep-blue); }
.ce-report__link:hover { color: var(--classic-teal); }
.ce-report__sub { display: block; font-size: 0.9375rem; color: var(--earthy-brown); margin-top: 0.125rem; }
.ce-report__sub strong { color: var(--deep-blue); }
.ce-report__timing { font-size: 0.9375rem; line-height: 1.5; }
.ce-report__timing strong { color: var(--deep-blue); }
.ce-report__result { font-family: var(--ce-font-head); font-weight: 700; font-size: 1.125rem; color: var(--deep-blue); white-space: nowrap; }
.ce-report__empty { padding: 1.5rem 1.25rem; color: var(--earthy-brown); }
.ce-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--soft-light-beige); font-size: 1rem; color: var(--earthy-brown); }
.ce-pager__buttons { display: flex; gap: 0.5rem; align-items: center; }
@media (max-width: 640px) {
  .ce-subtabs { flex-wrap: nowrap; overflow-x: auto; gap: 1.25rem; }
  .ce-subtabs a, .ce-subtabs button { white-space: nowrap; }
  .ce-kpis--report { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .ce-kpis--report .ce-kpi { padding: 0.75rem 0.875rem; }
  .ce-kpis--report .ce-kpi__value { font-size: 2rem; }
  .ce-reportfilters .ce-grow { flex: 1 1 100%; }
  .ce-reportfilters .ce-grow--half { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .ce-reportfilters__actions { flex: 1 1 100%; }
  .ce-reportfilters__actions .ce-btn { flex: 1 1 0; }
  .ce-report__table, .ce-report__table tbody, .ce-report__table tr, .ce-report__table td { display: block; width: 100%; }
  .ce-report__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ce-report__table tr { padding: 0.5rem 0; border-top: 1px solid var(--soft-light-beige); }
  .ce-report__table tbody tr:first-child { border-top: 0; }
  .ce-report__table td { border-top: 0; padding: 0.375rem 1rem; }
  .ce-report__table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--earthy-brown); margin-bottom: 0.125rem; }
  .ce-report__table td[data-label="Result"]::before, .ce-report__table td[data-label="Learner"]::before, .ce-report__table td[data-label="Course & assignment"]::before { display: none; }
  .ce-pager { justify-content: center; text-align: center; }
  .ce-report__head .ce-btn { width: 100%; }
}

/* ---- Reporting & Progress: dashboard match (4.3.0) ------------------------------------------------------------ */
.ce-kpi--neutral { --kpi: var(--deep-blue); }
.ce-kpi--positive { --kpi: var(--classic-teal); }
.ce-kpi--attention { --kpi: var(--salmon-pink); }
.ce-kpi--concern { --kpi: var(--earthy-brown); }
.ce-kpi--inactive { --kpi: var(--beige-brown); }
.ce-kpi__sub { display: block; font-size: 0.875rem; color: var(--earthy-brown); min-height: 1.25rem; margin-top: 0.125rem; }
.ce-kpi--click { cursor: pointer; }
.ce-kpi--click:hover { box-shadow: 0 2px 8px rgba(28, 47, 86, 0.18); }
.ce-kpi--click:focus-visible { outline: 3px solid var(--classic-teal); outline-offset: 2px; }
.ce-kpi--active { background: var(--very-light-beige); box-shadow: inset 0 0 0 2px var(--deep-blue); }
.ce-badge-img { object-fit: contain; flex: none; vertical-align: middle; }
.ce-assign { display: flex; gap: 0.625rem; align-items: center; }
.ce-credstatus { font-size: 0.8125rem; padding: 0.0625rem 0.625rem; margin: 0 0 0.375rem; display: inline-block; }
.ce-credstatus--earned { background: var(--mint); border-color: var(--soft-aqua); }
.ce-credstatus--eligible { background: var(--light-salmon); border-color: var(--salmon-pink); }
.ce-credstatus--in_progress { background: var(--light-blue); border-color: var(--mid-blue); }
.ce-credstatus--not_started { background: #fff; border: 1px dashed var(--beige-brown); color: var(--earthy-brown); }
.ce-credline { display: block; font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.375rem; }
.ce-pbar { display: flex; height: 0.5rem; border-radius: 4px; overflow: hidden; background: var(--soft-light-beige); min-width: 3rem; }
.ce-pbar__done, .ce-distbar .ce-pbar__done { background: var(--classic-teal); }
.ce-pbar__notyet, .ce-distbar .ce-pbar__notyet { background: var(--salmon-pink); }
.ce-pbar__none, .ce-distbar .ce-pbar__none { background: var(--soft-light-beige); }
.ce-micro { display: grid; grid-template-columns: 1fr auto; gap: 0.125rem 0.5rem; align-items: center; margin-top: 0.5rem; font-size: 0.875rem; }
.ce-micro .ce-pbar { grid-column: 1 / -1; }
.ce-micro__name { display: flex; gap: 0.375rem; align-items: center; min-width: 0; line-height: 1.15; }
.ce-micro__count { font-weight: 700; }
.ce-credhead { display: grid; justify-items: center; gap: 0.3125rem; text-align: center; line-height: 1.15; }
.ce-credhead img { width: 32px; height: 32px; object-fit: contain; }
.ce-report__table--progress, #rp-list:has(.ce-credcell) .ce-report__table { table-layout: fixed; }
.ce-report__table--matrix { table-layout: fixed; min-width: calc(13rem + var(--cols, 8) * 6.75rem); }
.ce-report__table--matrix th:first-child, .ce-report__table--matrix td:first-child { width: 13rem; min-width: 13rem; }
.ce-report__table--matrix .ce-credcell { width: auto; }
.ce-report__table--matrix .ce-credcell .ce-credline { font-weight: 600; margin: 0.375rem 0 0.25rem; }
.ce-credcell { width: 12rem; font-size: 0.875rem; overflow-wrap: break-word; word-break: normal; }
.ce-credcell .ce-chip { white-space: nowrap; }
.ce-credhead { font-size: 0.875rem; }
.ce-report__table td { overflow-wrap: anywhere; }
.ce-micro { grid-template-columns: minmax(0, 1fr) auto; }
.ce-micro__name > span { min-width: 0; }
.ce-matrix-hint { padding: 0 1.25rem 0.5rem; }
.ce-report__table thead th { vertical-align: bottom; }
.ce-linkbtn.ce-detailtoggle { display: block; margin-top: 0.5rem; font-size: 0.9375rem; }
.ce-detail-row > td { background: var(--light-gray-white); padding: 0; }
.ce-detail-panel { padding: 1rem 1.25rem; }
.ce-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.ce-detail-cred { background: #fff; border: 1px solid var(--soft-light-beige); border-radius: 4px; padding: 0.75rem 1rem; }
.ce-detail-cred h3 { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; margin: 0 0 0.5rem; font-size: 1.0625rem; }
.ce-detail-line { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.25rem; }
.ce-detail-micro { margin-top: 0.875rem; }
.ce-detail-micro__title { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.ce-skills { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.875rem; }
.ce-skills li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem; align-items: center; padding: 0.1875rem 0; }
.ce-skills__st { color: var(--earthy-brown); }
.ce-dot { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 50%; }
.ce-dot--done { background: var(--classic-teal); }
.ce-dot--notyet { background: var(--salmon-pink); }
.ce-dot--none { background: var(--soft-light-beige); }
.ce-enrollbar { display: block; height: 0.5rem; background: var(--soft-light-beige); border-radius: 4px; margin-top: 0.375rem; min-width: 5rem; }
.ce-enrollbar span { display: block; height: 100%; background: var(--classic-teal); border-radius: 4px; }
.ce-report__table--inner thead th { background: var(--deep-blue); }
.ce-l360-results { display: grid; gap: 0.5rem; padding: 0 1.25rem 1.25rem; }
.ce-l360-result { display: block; border: 1px solid var(--soft-light-beige); border-radius: 4px; padding: 0.625rem 0.875rem; text-decoration: none; color: inherit; background: #fff; }
.ce-l360-result:hover, .ce-l360-result:focus-visible { background: var(--very-light-beige); }
.ce-l360-section, .ce-l360-identity { margin-bottom: 1.25rem; }
.ce-l360-body { padding: 0 1.25rem 1.25rem; }
.ce-l360-body h3 { font-size: 1.0625rem; margin: 0.75rem 0 0.5rem; }
.ce-distbar { display: flex; height: 1.125rem; border-radius: 4px; overflow: hidden; background: var(--soft-light-beige); }
.ce-distbar span { display: block; height: 100%; }
.ce-plegend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.625rem; font-size: 0.9375rem; }
.ce-plegend .ce-dot { margin-right: 0.375rem; }
.ce-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.625rem; }
.ce-ach { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; border: 1px solid var(--soft-light-beige); border-radius: 4px; padding: 0.5rem; min-height: 8.75rem; }
.ce-ach__name { font-weight: 700; font-size: 0.9375rem; line-height: 1.15; }
.ce-ach__meta { font-size: 0.8125rem; color: var(--earthy-brown); }
.ce-eol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.75rem; }
.ce-eol { display: flex; gap: 0.75rem; align-items: flex-start; border: 1px solid var(--soft-light-beige); border-radius: 4px; padding: 0.75rem; }
.ce-eol .ce-chip { margin: 0.25rem 0; }
.ce-l360-group { border-top: 1px solid var(--soft-light-beige); }
.ce-l360-toggle { display: grid; grid-template-columns: auto auto 1fr minmax(6rem, 14rem); gap: 0.75rem; align-items: center; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; padding: 0.625rem 0; cursor: pointer; }
.ce-l360-toggle:focus-visible { outline: 3px solid var(--classic-teal); outline-offset: 2px; }
.ce-l360-arrow { font-size: 1rem; width: 1rem; }
.ce-l360-groupbody { padding: 0 0 0.75rem 2.5rem; }
.ce-l360-skillrow { display: grid; grid-template-columns: 1fr auto 11rem; gap: 0.75rem; align-items: center; padding: 0.25rem 0; font-size: 0.9375rem; }
@media (max-width: 640px) {
  .ce-l360-toggle { grid-template-columns: auto 1fr; }
  .ce-l360-toggle .ce-pbar { grid-column: 1 / -1; }
  .ce-l360-skillrow { grid-template-columns: 1fr auto; }
  .ce-l360-skillrow span:last-child { grid-column: 1 / -1; color: var(--earthy-brown); }
}

/* Reporting: short things never wrap, each column keeps a readable width, and the table scrolls sideways when the screen is narrower
   than the columns need. (Below 641px the rows stack instead.) */
@media (min-width: 641px) {
  .ce-report__table:not(.ce-report__table--matrix) { min-width: 54rem; }
  .ce-report__table .ce-chip, .ce-report__table .ce-btn { white-space: nowrap; }
  .ce-report__table td[data-label="Result"] { min-width: 8.5rem; }
  .ce-report__table td[data-label="Learner"] { min-width: 15rem; }
  .ce-report__table td[data-label="Course & Assignment"] { min-width: 12rem; }
  .ce-report__table td[data-label="Recorded"], .ce-report__table td[data-label="Last sign-in"], .ce-report__table td[data-label="Last active"] { min-width: 9.5rem; white-space: nowrap; }
  .ce-report__table td[data-label="Comment"] { min-width: 10rem; }
  .ce-report__table td[data-label="Open"] { min-width: 8rem; }
}

/* ---------------------------------------------------------------------------------------------------------------------------
   Print. Printing is how a screen is taken off the page: every screen prints what is on it, without the controls.
   Hidden when printing: the sign-in bar, tabs, filters, buttons, boxes you type in, pop-ups and the footer.
   Added when printing (by auth.js): the page title, who printed it and when (in the Partner's time zone), and the filters in use.
   --------------------------------------------------------------------------------------------------------------------------- */
.ce-printmeta { display: none; }
@page { margin: 0.5in; }
@page wide { size: landscape; margin: 0.4in; }
@media print {
  html { font-size: 11px; }
  body { background: #fff !important; color: #000 !important; }
  .ce-skip, .ce-header .ce-identity, #identity-block, #signed-out-block, #session-loading, .ce-tabs, #tabbar, .ce-subtabs,
  .ce-footer, .ce-band__stripe, .view-as-banner, #view-as-block, .stub-banner, dialog, .ce-dialog,
  .ce-reportfilters, #rp-filters-panel, .ce-reportfilters__actions, button, .ce-btn, .ce-linkbtn, .ce-detailtoggle,
  input, select, textarea, .ce-pager, [data-noprint] { display: none !important; }
  .ce-band { background: none !important; color: #000 !important; padding: 0 0 0.25rem !important; border-bottom: 1px solid #000; }
  .ce-band h1 { color: #000 !important; font-size: 1.5rem !important; margin: 0 !important; }
  .ce-band__sub, .ce-band__crumb { color: #000 !important; }
  .ce-header { padding: 0 0 0.25rem !important; box-shadow: none !important; }
  .page-content, #main { padding: 0.5rem 0 0 !important; margin: 0 !important; max-width: none !important; }
  .ce-panel, .ce-kpi, .ce-report { box-shadow: none !important; background: #fff !important; }
  .ce-printmeta { display: block; margin: 0 0 0.5rem; font-size: 0.9em; line-height: 1.4; }
  .ce-printmeta strong { font-weight: 700; }
  /* Tables fit the page width and wrap, with the header row repeated on every page and a row never split across pages. */
  .ce-report__table, table { width: 100% !important; min-width: 0 !important; table-layout: auto; border-collapse: collapse; }
  .ce-report__table th, .ce-report__table td, th, td { white-space: normal !important; min-width: 0 !important; width: auto !important; padding: 0.2rem 0.3rem !important; border-bottom: 1px solid #999; vertical-align: top; }
  thead { display: table-header-group; }
  tfoot { display: table-footer-group; }
  tr, .ce-kpi, .ce-micro, .ce-assign { break-inside: avoid; page-break-inside: avoid; }
  .ce-report, .ce-panel, .table-wrap, .ce-table-wrap, [style*="overflow"] { overflow: visible !important; max-height: none !important; }
  .ce-chip, .ce-dot, .ce-pbar, .ce-pbar__done, .ce-pbar__notyet, .ce-pbar__none { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ce-chip { white-space: nowrap; }
  a { color: #000 !important; text-decoration: none !important; }
  .print-wide, body.print-wide { page: wide; }
}

/* The notification bell (header) */
.ce-header__right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.ce-bell { position: relative; display: inline-block; flex: none; }
.ce-bell__btn { position: relative; background: none; border: 1px solid transparent; border-radius: 0.5rem; padding: 0.3rem 0.4rem; color: var(--deep-blue); cursor: pointer; line-height: 0; }
.ce-bell__btn:hover { background: #f4efe9; }
.ce-bell__btn:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 2px; }
.ce-bell__btn .ce-navbadge { position: absolute; top: -0.3rem; right: -0.3rem; line-height: 1.2; }
.ce-bell__panel { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 50; width: min(24rem, 90vw); max-height: 70vh; overflow: auto; text-align: left;
  background: #fff; border: 1px solid var(--beige-brown); border-radius: 0.5rem; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 0.5rem; line-height: 1.35; }
.ce-bell__list { list-style: none; margin: 0; padding: 0; }
.ce-bell__list a { display: block; padding: 0.6rem 0.5rem; border-radius: 0.375rem; text-decoration: none; color: var(--deep-blue); }
.ce-bell__list a:hover, .ce-bell__list a:focus-visible { background: #f4efe9; }
.ce-bell__list li + li { border-top: 1px solid #eee7de; }
.ce-bell__age { display: block; color: var(--earthy-brown); }
.ce-bell__empty, .ce-bell__who { margin: 0.5rem; color: var(--earthy-brown); }
@media print { .ce-bell { display: none !important; } }

/* ---------------- Instructor Portal: filters, panel, results (Change List item 3) ---------------- */
.ce-find { background: #fff; border: 1px solid var(--soft-light-beige); border-radius: 6px; padding: 0.875rem 1.25rem; margin-bottom: 1rem; }
.ce-find__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ce-find__title { font-family: var(--ce-font-head); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-blue); margin: 0; }
.ce-find__list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem 1.5rem; }
.ce-find__list[hidden] { display: none; }
.ce-find__list li { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 1rem; color: var(--earthy-brown); line-height: 1.35; }
.ce-find__list strong { color: var(--deep-blue); display: block; }
.ce-find__icon { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--deep-blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.ce-find__icon .ce-icon { width: 15px; height: 15px; }
.ce-search .ce-input { box-sizing: border-box; }
.ce-search .ce-try { margin: 0.75rem 0 0; }
.ce-search .ce-try a { margin: 0 0.25rem; }

.ce-portal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ce-portal__main { min-width: 0; }
.ce-fpanel { background: #fff; border: 1px solid var(--soft-light-beige); border-radius: 6px; padding: 0.25rem 1rem 1rem; }   /* no inner scrollbar: the panel grows with its list and scrolls with the page (5.0.51) */
.ce-fpanel__head, .ce-fpanel__foot, .ce-filters-btn { display: none; }
.ce-fgroup { border-bottom: 1px solid var(--soft-light-beige); padding: 0.75rem 0; }
.ce-fgroup:last-child { border-bottom: 0; }
.ce-fgroup__h { margin: 0; font-size: inherit; }
.ce-fgroup__btn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 0.125rem 0; cursor: pointer; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-blue); text-align: left; }
.ce-fgroup__body { margin-top: 0.5rem; max-height: 16rem; overflow-y: auto; }
.ce-fgroup__body[hidden] { display: none; }
.ce-fopt { display: flex; align-items: center; gap: 0.5rem; padding: 0.3125rem 0; font-size: 1rem; line-height: 1.25; color: var(--deep-blue); cursor: pointer; }
.ce-fopt input { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--classic-teal); }
.ce-fopt__icon { flex: 0 0 auto; color: var(--earthy-brown); display: inline-flex; }
.ce-fopt__icon .ce-icon { width: 15px; height: 15px; }
.ce-fopt__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ce-fopt__name small { display: block; font-size: 0.8125rem; color: var(--earthy-brown); }
.ce-fopt__n { flex: 0 0 auto; font-size: 0.875rem; color: var(--earthy-brown); font-variant-numeric: tabular-nums; }
.ce-fmore { margin: 0.375rem 0 0; }

.ce-activebar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 0.5rem; }
.ce-activebar .ce-count { margin: 0; }
.ce-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
/* Active filter tags (Sam's mockup): mint fill, teal outline and text */
.ce-tag { display: inline-flex; align-items: center; gap: 0.25rem; background: #eef7f5; border: 1px solid var(--classic-teal); border-radius: 20px; padding: 0.25rem 0.75rem; font-size: 0.9375rem; font-weight: 400; line-height: 1.3; color: var(--classic-teal); cursor: pointer; font-family: inherit; }
.ce-tag:hover { background: #dff0ec; }
.ce-tag:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; }
/* wide: the count and tags share a line, "Clear all filters" sits on its own line beneath */
#it-clearall { flex: 0 0 100%; text-align: left; }
.ce-for { margin: 0 0 0.625rem; font-size: 1rem; color: var(--earthy-brown); }
.ce-for strong { color: var(--deep-blue); }

/* Cards across: wide 4 (with the 250 px panel), laptop 3, tablet 2, phone 1 */
.ce-portal .ce-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .ce-portal .ce-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .ce-portal .ce-section__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Under 900 px the panel becomes a Filters (n) button and a full-screen sheet */
@media (max-width: 899px) {
  .ce-portal { grid-template-columns: minmax(0, 1fr); }
  .ce-filters-btn { display: inline-flex; margin: 0 0 0.75rem; }
  .ce-fpanel { display: none; }
  .ce-fpanel.is-open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; max-height: none; border: 0; border-radius: 0; padding: 0; background: #fff; }
  .ce-fpanel.is-open .ce-fpanel__head { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1rem; border-bottom: 1px solid var(--soft-light-beige); }
  .ce-fpanel__head h2 { margin: 0; font-family: var(--ce-font-head); font-size: 1.125rem; color: var(--deep-blue); }
  .ce-fpanel__head .ce-linkbtn { font-size: 1.75rem; line-height: 1; }
  .ce-fpanel.is-open .ce-fpanel__body { flex: 1 1 auto; overflow-y: auto; padding: 0 1rem; }
  .ce-fpanel.is-open .ce-fpanel__foot { display: flex; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid var(--soft-light-beige); background: #fff; }
  .ce-fpanel__foot .ce-btn { flex: 1; justify-content: center; }
  body.ce-sheet-open { overflow: hidden; }
  .ce-find__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ce-activebar .ce-tags { order: 1; }
  #it-clearall { order: 2; flex: 0 0 auto; }
  .ce-activebar .ce-count { order: 3; flex: 0 0 100%; }
}
@media (max-width: 640px) {
  .ce-find__list { grid-template-columns: minmax(0, 1fr); }
  .ce-portal .ce-section__grid { grid-template-columns: minmax(0, 1fr); }
  /* one card per row, laid out sideways: picture on the left, text on the right */
  .ce-portal .ce-card { flex-direction: row; }
  .ce-portal .ce-card__media { flex: 0 0 6rem; height: auto; align-self: stretch; }
  .ce-portal .ce-card__media img { height: 4rem; max-width: 5rem; object-fit: contain; }
  .ce-portal .ce-card__body { min-width: 0; padding: 0.75rem 0.875rem; }
  .ce-portal .ce-card__title { font-size: 1.125rem; }
}
#it-clearall { color: var(--classic-teal); text-decoration: underline; }
@media (max-width: 899px) { .ce-wideonly { display: none; } }
.ce-find__list[hidden] { display: none !important; }
/* Progress matrix headers: every badge on the same line, names start at the same height (one- and two-line names alike). */
th:has(.ce-credhead) { vertical-align: top; }
.ce-credhead { align-content: start; }
.ce-credhead span { display: block; min-height: 2.3em; }

/* Card buttons (Look & Feel mockup): main button plus a row of small ones, same reserved area on every card */
.ce-card__actions { margin-top: auto; min-height: 6.75rem; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.5rem; }
.ce-card__row--small .ce-btn, .ce-btn--sm { padding: 0.5rem 0.5rem; font-size: 0.75rem; min-height: 2.75rem; }
.ce-card__row .ce-btn { min-height: 3.25rem; }
.ce-card__row--small .ce-btn { min-height: 2.75rem; }
.ce-btn--ms { border-color: var(--beige-brown); color: var(--deep-blue); }
.ce-icon--ms { width: 16px; height: 16px; }
.ce-card__row--small .ce-btn, .ce-btn--sm { white-space: nowrap; letter-spacing: 0.02em; gap: 0.3125rem; padding-left: 0.375rem; padding-right: 0.375rem; }

/* Card button row (5.0.34): the Classroom button keeps the size Google draws it at; the slot only centers it on the row. */
.ce-card__row { align-items: center; }
.ce-gc-slot { display: flex; align-items: center; justify-content: center; line-height: 0; width: auto; height: auto; min-width: 0; min-height: 0; flex: 0 0 auto; align-self: center; }
.ce-gc-slot > *, .ce-gc-slot iframe { display: block; margin: 0 !important; transform: none; vertical-align: middle; }

/* Smooth loading (5.0.35): parts fade in together instead of popping in one by one, and the Classroom slot holds its space. */
@keyframes ce-fadein { from { opacity: 0; } to { opacity: 1; } }
#identity-block, #tabbar, [data-signed-in-only] { animation: ce-fadein 0.18s ease-out both; }
.ce-gc-slot { min-width: 2.9rem; min-height: 2.9rem; }
@media (prefers-reduced-motion: reduce) { #identity-block, #tabbar, [data-signed-in-only] { animation: none; } }

/* ---------------- Reporting (5.0.36): filters on the left, results on the right ---------------- */
.ce-rp { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ce-rp--stack { grid-template-columns: 1fr; }
.ce-rp__side { background: var(--very-light-beige, #eae4d2); border: 1px solid var(--soft-light-beige, #d7cdb8); border-radius: 6px; padding: 1rem 1.125rem 1.125rem; }
.ce-rp--stack .ce-rp__side { display: block; }
.ce-rp__sidehead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.ce-rp__sidehead h2 { margin: 0; font-size: 1.25rem; }
.ce-rp__main { min-width: 0; }
.ce-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.ce-chips:empty { display: none; }
.ce-ms { margin: 0 0 0.875rem; }
.ce-ms[hidden] { display: none; }
.ce-ms__label { display: block; font-family: var(--ce-font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-blue); margin: 0 0 0.375rem; }
.ce-ms .ce-input { width: 100%; box-sizing: border-box; }
.ce-ms__btn { display: flex; flex-direction: column; align-items: flex-start; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.ce-ms__val { display: block; width: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--mid-blue, #86a9b8); border-radius: 4px; padding: 0.5rem 2rem 0.5rem 0.625rem; color: var(--earthy-brown, #513d2c); position: relative; }
.ce-ms__val::after { content: ''; position: absolute; right: 0.75rem; top: 50%; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.ce-ms__btn[aria-expanded="true"] .ce-ms__val::after { transform: translateY(-30%) rotate(225deg); }
.ce-ms__val.is-on { color: var(--classic-teal, #17726d); font-weight: 700; border-color: var(--classic-teal, #17726d); }
.ce-ms__pop { background: #fff; border: 1px solid var(--soft-light-beige, #d7cdb8); border-radius: 4px; margin-top: 0.375rem; padding: 0.5rem; }
.ce-ms__pop[hidden] { display: none; }
.ce-ms__acts { display: flex; justify-content: space-between; margin: 0.375rem 0; font-size: 0.875rem; }
.ce-ms__list { list-style: none; margin: 0; padding: 0; max-height: 13rem; overflow-y: auto; }
.ce-ms__list label { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.3125rem 0.25rem; cursor: pointer; font-size: 0.9375rem; line-height: 1.3; }
.ce-ms__list input { margin-top: 0.2rem; }
.ce-pager__size { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 1rem; }
.ce-pager__size .ce-input { width: auto; height: 2.25rem; padding-top: 0; padding-bottom: 0; }
@media (max-width: 62rem) { .ce-rp { grid-template-columns: 1fr; } }

/* Progress: headings over the Durable and Industry column groups (5.0.37) */
.ce-report__table thead .ce-grouphead th { background: var(--deep-teal, #25474c); color: #fff; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 0.5rem 0.75rem; border-left: 1px solid rgba(255,255,255,0.35); }
.ce-report__table thead .ce-grouphead th:first-child { border-left: 0; background: var(--deep-blue); }
.ce-report__table thead .ce-grouphead[hidden] { display: none; }

/* Reporting, to match Sam's Look & Feel v5 page 3 (5.0.38) */
.ce-report__table thead .ce-grouphead th { background: var(--deep-blue); border-left: 0; text-align: left; padding: 0.875rem 0.75rem 0; color: #fff; font-size: 0.75rem; letter-spacing: 0.1em; vertical-align: bottom; }
.ce-grouphead .ce-grp { padding: 0 0 0.5rem; border-bottom: 2px solid var(--classic-teal, #17726d); margin-right: 1.25rem; line-height: 1.3; }
.ce-grouphead .ce-grp--industry { border-bottom-color: var(--salmon-pink, #e49a76); margin-right: 0; }
.ce-report__table--matrix thead th .ce-credhead span { font-weight: 400; }
.ce-report__foot { margin: 0; padding: 0.875rem 1.25rem; border-top: 1px solid var(--soft-light-beige, #d7cdb8); font-size: 0.9375rem; color: var(--earthy-brown, #513d2c); }
.ce-report__foot[hidden] { display: none; }
#rp-chips .ce-tag { background: var(--deep-blue, #1c2f56); color: #fff; border-color: var(--deep-blue, #1c2f56); }
.ce-chips { align-items: center; }
.ce-chips__count { font-weight: 700; color: var(--deep-blue); margin-right: 0.5rem; padding-right: 0.875rem; border-right: 2px solid var(--salmon-pink, #e49a76); }
.ce-ms__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.375rem; height: 1.375rem; margin-left: 0.5rem; border-radius: 999px; background: var(--classic-teal, #17726d); color: #fff; font-size: 0.8125rem; }
.ce-ms__done { width: 100%; margin-top: 0.5rem; justify-content: center; }
.ce-ms__checks { list-style: none; margin: 0; padding: 0; }
.ce-ms__checks label { display: flex; gap: 0.5rem; align-items: center; padding: 0.25rem 0; cursor: pointer; }
.ce-chips__count:last-child { border-right: 0; padding-right: 0; margin-right: 0; }

/* Learner 360 list (5.0.40) */
.ce-bigsearch { margin: 0 0 1.25rem; }
.ce-bigsearch form { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 2px solid var(--deep-blue, #1c2f56); border-radius: 6px; padding: 0.5rem 0.625rem 0.5rem 1rem; }
.ce-bigsearch[hidden] { display: none; }
.ce-bigsearch .ce-icon { width: 1.25rem; height: 1.25rem; color: var(--deep-blue); flex: 0 0 auto; }
.ce-bigsearch input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.125rem; background: transparent; min-width: 0; }
.ce-bigsearch p { margin: 0.5rem 0 0; }
.ce-credpill { display: flex; align-items: center; gap: 0.375rem; margin: 0 0 0.25rem; }
.ce-dot--ind { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--deep-blue, #1c2f56); margin: 0 0.25rem; }
.ce-ms__group { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--deep-blue); padding: 0.5rem 0.25rem 0.125rem; }

/* Reporting tables fit beside the filter panel without sideways scrolling (5.0.43) */
.ce-rp { grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; }
.ce-rp .ce-report__table { font-size: 0.9375rem; }
.ce-rp .ce-report__table th, .ce-rp .ce-report__table td { padding-left: 0.5rem; padding-right: 0.5rem; }
.ce-rp .ce-report__table td[data-label="Learner"] { min-width: 0; overflow-wrap: anywhere; }
.ce-rp .ce-report__comment { max-width: 11rem; }
.ce-rp .ce-report__table .ce-btn--small { padding: 0.375rem 0.5rem; font-size: 0.75rem; white-space: nowrap; }
.ce-rp .ce-assign { display: flex; gap: 0.5rem; align-items: flex-start; min-width: 0; }
.ce-rp .ce-assign > span { min-width: 0; overflow-wrap: anywhere; }
.ce-rp .ce-report__sub { overflow-wrap: anywhere; }
@media (max-width: 62rem) { .ce-rp { grid-template-columns: 1fr; } }
.ce-rp .ce-report__table--matrix { min-width: calc(10rem + var(--cols, 8) * 5.25rem); }
.ce-rp .ce-report__table--matrix th:first-child, .ce-rp .ce-report__table--matrix td:first-child { width: 10rem; min-width: 10rem; }
.ce-rp .ce-credcell .ce-chip { font-size: 0.75rem; padding-left: 0.5rem; padding-right: 0.5rem; }

/* ---- Help Center (help.html), after Look & Feel v5 pages 9 and 10 ---- */
.ce-help-band__in { width: 100%; }
.ce-help-search { position: relative; display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; max-width: 55rem; background: #fff; border-radius: 4px; padding: 0.625rem 0.75rem 0.625rem 1rem; }
.ce-help-search__icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--deep-blue); }
.ce-help-search__input { flex: 1 1 auto; min-width: 0; min-height: 2.25rem; border: 0; background: transparent; font: inherit; font-size: 1.125rem; color: var(--earthy-brown); }
.ce-help-search__input:focus { outline: none; }
.ce-help-search:focus-within { outline: 3px solid var(--mint); outline-offset: 2px; }
.ce-help-search__go { min-height: 2.5rem; padding: 0.5rem 1.25rem; background: var(--classic-teal); color: #fff; border: 0; border-radius: 3px; font: inherit; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.ce-help-search__go:hover { filter: brightness(0.92); }
.ce-help-search__clear { background: none; border: 0; padding: 0.25rem; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--classic-teal); text-decoration: underline; cursor: pointer; }
.ce-help-search__clear[hidden] { display: none; }
.ce-help-h { font-family: var(--ce-font-head); font-size: 1.5rem; color: var(--deep-blue); margin: 2rem 0 0.125rem; }
.ce-help-sub { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--earthy-brown); }
.ce-help-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ce-help-topic { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 8.5rem; text-align: left; font: inherit; padding: 1.125rem 1.25rem 1rem; background: #fff; border: 1px solid var(--soft-light-beige); border-top: 4px solid var(--deep-blue); border-radius: 3px; cursor: pointer; color: var(--earthy-brown); }
.ce-help-topic strong { font-family: var(--ce-font-head); font-size: 1.25rem; color: var(--deep-blue); }
.ce-help-topic__n { color: var(--classic-teal); font-weight: 700; font-size: 0.875rem; }
.ce-help-topic:hover { background: var(--light-gray-white); }
.ce-help-topic:focus-visible, .ce-help-chip:focus-visible, .ce-help-tab:focus-visible, .ce-help-q summary:focus-visible, .ce-help-search__clear:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 2px; }
.ce-help-desk { display: flex; flex-direction: column; gap: 0.375rem; min-height: 8.5rem; padding: 1rem 1.25rem; background: var(--very-light-beige); border: 1px solid var(--soft-light-beige); border-top: 4px solid var(--salmon-pink); border-radius: 3px; }
.ce-help-desk h3, .ce-help-still h3 { font-family: var(--ce-font-head); font-size: 1.375rem; color: var(--deep-blue); margin: 0; }
.ce-help-desk p, .ce-help-still p { margin: 0; font-size: 0.9375rem; }
.ce-help-desk a { margin-top: auto; color: var(--classic-teal); font-weight: 700; font-size: 0.875rem; }
.ce-help-badge { align-self: flex-start; display: inline-block; padding: 0.1875rem 0.625rem; background: var(--deep-blue); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; }
.ce-help-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.25rem; border-top: 3px solid var(--classic-teal); align-items: start; }
.ce-help-q { border-bottom: 1px solid var(--soft-light-beige); }
.ce-help-q summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: 0.875rem 0.1875rem; font-weight: 700; color: var(--deep-blue); }
.ce-help-q summary::-webkit-details-marker { display: none; }
.ce-help-q summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--deep-blue); border-bottom: 2px solid var(--deep-blue); transform: rotate(45deg); margin-top: -0.25rem; }
.ce-help-q[open] summary::after { transform: rotate(-135deg); margin-top: 0.25rem; }
.ce-help-q p { margin: 0; padding: 0 0.1875rem 1rem; font-size: 0.9375rem; }
.ce-help-q a, .ce-help-quick a { color: var(--classic-teal); font-weight: 700; }
.ce-help-topicbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.5rem 0 0; padding-bottom: 1.25rem; border-bottom: 1px solid var(--soft-light-beige); }
.ce-help-topicbar__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-blue); margin-right: 0.5rem; }
.ce-help-chip { font: inherit; font-size: 0.875rem; padding: 0.375rem 0.75rem; background: #fff; border: 1px solid var(--deep-blue); border-radius: 3px; cursor: pointer; color: var(--deep-blue); }
.ce-help-chip span { font-size: 0.75rem; margin-left: 0.25rem; opacity: 0.75; }
.ce-help-chip.is-on { background: var(--classic-teal); border-color: var(--classic-teal); color: #fff; }
.ce-help-tabrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.25rem 0; flex-wrap: wrap; }
.ce-help-tabs { display: inline-flex; border: 2px solid var(--deep-blue); border-radius: 4px; overflow: hidden; }
.ce-help-tab { font: inherit; font-size: 0.875rem; font-weight: 700; background: #fff; border: 0; padding: 0.5rem 1rem; cursor: pointer; color: var(--deep-blue); }
.ce-help-tab + .ce-help-tab { border-left: 1px solid var(--deep-blue); }
.ce-help-tab.is-on { background: var(--deep-blue); color: #fff; }
.ce-help-sort { font-size: 0.8125rem; color: var(--earthy-brown); }
.ce-help-quick { margin: 0 0 1.25rem; padding: 1rem 1.5rem; background: #fff; border: 1px solid var(--soft-light-beige); border-left: 5px solid var(--classic-teal); border-radius: 3px; }
.ce-help-quick__tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--classic-teal); }
.ce-help-quick h3 { font-family: var(--ce-font-head); font-size: 1.375rem; color: var(--deep-blue); margin: 0.25rem 0; }
.ce-help-quick p { margin: 0 0 0.5rem; }
.ce-help-quick__meta { font-size: 0.8125rem; }
.ce-help-match { font-weight: 700; font-size: 0.875rem; color: var(--deep-blue); margin: 0 0 0.75rem; }
.ce-help-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.ce-help-card { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--soft-light-beige); border-radius: 3px; }
.ce-help-card__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.ce-help-card__kind { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--classic-teal); }
.ce-help-card h3 { font-family: var(--ce-font-head); font-size: 1.25rem; color: var(--deep-blue); margin: 0; }
.ce-help-card p { margin: 0; font-size: 0.9375rem; }
.ce-help-card__date { font-size: 0.75rem; color: var(--earthy-brown); }
.ce-help-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ce-help-tags span { padding: 0.125rem 0.625rem; background: var(--very-light-beige); border-radius: 999px; font-size: 0.75rem; }
.ce-help-btn { flex: none; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.5rem 1.25rem; background: var(--classic-teal); color: #fff !important; border-radius: 3px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.ce-help-btn:hover { filter: brightness(0.92); }
.ce-help-still { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 0; padding: 1rem 1.25rem; background: var(--very-light-beige); border: 1px solid var(--soft-light-beige); border-radius: 3px; }
.ce-help-still > div { display: flex; flex-direction: column; gap: 0.25rem; }
#hc-body mark { background: #f5b94e; color: inherit; padding: 0 0.0625rem; border-radius: 2px; }
@media (max-width: 64rem) { .ce-help-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .ce-help-topics { grid-template-columns: 1fr; } .ce-help-faq { grid-template-columns: 1fr; } .ce-help-card { flex-direction: column; align-items: flex-start; } .ce-help-search { flex-wrap: wrap; } }

/* Learner card page: one column. Must come after the table-fit rule above so it wins (5.0.50). */
.ce-rp.ce-rp--stack { grid-template-columns: minmax(0, 1fr); }

/* Help Center: Admin / All guides switch, who a guide is for, copy link */
.ce-help-scope { display: inline-flex; border: 2px solid var(--deep-blue); border-radius: 4px; overflow: hidden; margin: 0 0 1.25rem; }
.ce-help-scope__btn { appearance: none; border: 0; background: #fff; color: var(--deep-blue); font: inherit; font-weight: 700; font-size: 0.875rem; padding: 0.5rem 1rem; cursor: pointer; min-height: 2.75rem; }
.ce-help-scope__btn span { font-weight: 400; opacity: 0.8; margin-left: 0.25rem; }
.ce-help-scope__btn.is-on { background: var(--deep-blue); color: #fff; }
.ce-help-scope__btn:focus-visible { outline: 3px solid var(--classic-teal); outline-offset: -3px; }
.ce-help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.375rem; }
.ce-help-for { font-size: 0.8125rem; color: var(--earthy-brown); }
.ce-help-copy { appearance: none; background: none; border: 0; padding: 0.25rem 0; font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--classic-teal); text-decoration: underline; cursor: pointer; min-height: 1.75rem; }
.ce-help-copy:focus-visible { outline: 3px solid var(--classic-teal); outline-offset: 2px; }

.ce-help-home { margin: 0 0 1rem; font-weight: 700; }

/* 5.0.59: small button rows shrink and wrap their text instead of pushing past the card edge; the Classroom icon sits in a fixed 32px box centered on the row. */
.ce-card__actions, .ce-card__row { min-width: 0; max-width: 100%; }
.ce-card__row--small { flex-wrap: nowrap; }
.ce-card__row--small .ce-btn, .ce-btn--sm { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.ce-card__row .ce-btn { min-width: 0; }
.ce-gc-slot { width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; overflow: visible; }
.ce-gc-inner { position: relative; display: block; width: 32px; height: 32px; flex: 0 0 32px; }
.ce-gc-inner > *, .ce-gc-inner iframe { position: absolute !important; top: 0 !important; left: 0 !important; margin: 0 !important; transform: none; }

/* 5.0.60: every card button is the same height; buttons in one row stretch to match; the Microsoft button uses the same outline as the rest. */
.ce-card__row .ce-btn, .ce-card__row--small .ce-btn, .ce-btn--sm { min-height: 3rem; box-sizing: border-box; }
.ce-card__row, .ce-card__row--small { align-items: stretch; }
.ce-card__row .ce-gc-slot { align-self: center; }
.ce-btn--ms { border-color: inherit; color: inherit; }
.ce-card__actions { min-height: 6.5rem; }

/* 5.0.61: Active / Inactive / Exited filter */
.ce-statepick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; align-items: center; }
.ce-statepick legend { padding: 0; width: 100%; }
.ce-statepick__opt { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; cursor: pointer; }
.ce-statepick__opt input { width: 1.125rem; height: 1.125rem; accent-color: var(--classic-teal, #007277); }

/* View only: controls that could change something are grayed out. */
.ce-viewlocked:disabled, .ce-viewlocked[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Credential header badges: every image sits in the same fixed box at the top of its column, so labels can wrap to any number of lines without moving the images. */
.ce-report__table thead th:has(.ce-credhead) { vertical-align: top !important; }
.ce-credhead { grid-template-rows: 40px auto; align-content: start; align-items: start; }
.ce-credhead img { width: 40px; height: 40px; max-width: none; object-fit: contain; object-position: center top; align-self: start; }
