/* EG Classes 0.9.0 (0.8.0's file and, at its end, a class test). The page "Classes" (a visitor, a teacher, a class as its students see it) and the
   line above an assignment opened from a class. The colors and corners are the theme's (its --eg-
   properties), with the same values written out for a theme without them. */

.egcl {
  max-width: 760px;
}

/* For a screen reader only. */
.egcl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.egcl__lead {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
}

.egcl__need {
  margin: 0 0 10px;
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
}

.egcl__note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.45;
}

.egcl__note a {
  margin-left: 4px;
  font-weight: 600;
}

.egcl__limit {
  margin: 0 0 14px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* What a form answered. */
.egcl__said {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e4efd9;
  color: #2f4a22;
  font-size: 15.5px;
  font-weight: 600;
}

.egcl__said--bad {
  background: #fbe9e4;
  color: #8a2c1a;
}

/* ---------------------------------------------------------------- buttons, fields */
.egcl .egcl__btn,
.egcl a.egcl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: var(--eg-radius, 6px);
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.egcl .egcl__btn:hover,
.egcl a.egcl__btn:hover {
  border-color: var(--eg-muted, #6a7267);
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
}

.egcl .egcl__btn--main,
.egcl a.egcl__btn--main,
.egcl a.egcl__btn--main:visited {
  border-color: #36552a;
  background: var(--eg-moss, #446931);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.egcl .egcl__btn--main:hover,
.egcl a.egcl__btn--main:hover {
  border-color: #36552a;
  background: #36552a;
  color: #fff;
}

.egcl .egcl__btn--danger {
  border-color: #b4412b;
  background: #b4412b;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.egcl .egcl__btn--danger:hover {
  border-color: #963522;
  background: #963522;
  color: #fff;
}

.egcl .egcl__btn--quiet {
  min-height: 24px; /* big enough to tap */
  padding: 0;
  border-color: transparent;
  background: none;
  color: var(--eg-moss, #446931);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.egcl .egcl__btn--quiet:hover {
  border-color: transparent;
  background: none;
  color: var(--eg-ink, #1f2c1e);
}

/* A button that is put away is out of sight (every button here has a display of its own). */
.egcl .egcl__btn[hidden] {
  display: none;
}

.egcl .egcl__btn:focus-visible,
.egcl a.egcl__btn:focus-visible,
.egcl .egcl__input:focus-visible,
.egcl .egcl-sure__word:focus-visible,
.egcl .egcl-tabs__one:focus-visible,
.egcl-results:focus-visible {
  outline: 2px solid var(--eg-ink, #1f2c1e);
  outline-offset: 2px;
}

.egcl__label {
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  font-weight: 650;
}

.egcl .egcl__input {
  box-sizing: border-box;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9cfc2;
  border-radius: var(--eg-radius, 6px);
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px; /* no zoom on an iPhone */
}

/* 0.2.1: the example in an empty field ("Example: Grade 7 English") is readable: the muted text color, not a browser's pale one. */
.egcl .egcl__input::placeholder {
  color: var(--eg-muted, #6a7267);
  opacity: 1;
}

/* A name's field keeps room for its example: where the row is too narrow for both, the field stands under its label. */
.egcl #egcl-new-name,
.egcl #egcl-rename {
  flex-basis: 240px;
}

.egcl select.egcl__input {
  padding-right: 28px;
}

.egcl__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

/* ---------------------------------------------------------------- a teacher: the classes */
.egcl-tabs {
  margin: 0 0 16px;
}

.egcl .egcl-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-tabs__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-tabs__one {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: 999px;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.egcl .egcl-tabs__one:hover {
  background: var(--eg-tint, #f2f7ec);
}

.egcl .egcl-tabs__one[aria-current="page"] {
  border-color: #36552a;
  background: var(--eg-moss, #446931);
  color: #fff;
}

.egcl-card {
  margin: 0 0 22px;
  padding: 18px 20px 20px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: var(--eg-panel-radius, 14px);
  background: #fff;
}

.egcl-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 12px;
}

.egcl .egcl-card__name {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.egcl-card__count {
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
  font-weight: 600;
}

.egcl .egcl-card__sub {
  margin: 22px 0 8px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  line-height: 1.3;
}

.egcl-card__empty {
  margin: 0 0 12px;
  color: var(--eg-muted, #6a7267);
  font-size: 15.5px;
}

/* The class's link: one sentence, the link, "Copy link". */
.egcl-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
}

.egcl-link__say {
  flex: 1 1 100%;
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.45;
}

.egcl .egcl__input--link {
  flex: 1 1 260px;
  max-width: none;
}

.egcl-link__copied {
  color: #2f4a22;
  font-size: 14.5px;
  font-weight: 600;
}

.egcl-link__copied:empty {
  display: none;
}

/* "Rename", "New link", "Delete class": words in a row; the one pressed opens its question on a line of its own. */
.egcl-more {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 18px;
}

.egcl-sure {
  margin: 0;
}

.egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl .egcl-sure__word {
  display: inline-block;
  padding: 4px 0;
  color: var(--eg-moss, #446931);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}

.egcl .egcl-sure__word::-webkit-details-marker {
  display: none;
}

.egcl .egcl-sure__word::marker {
  content: "";
}

.egcl .egcl-sure__word:hover {
  color: var(--eg-ink, #1f2c1e);
}

.egcl-sure__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 6px 0 4px;
}

.egcl-sure__text {
  flex: 1 1 100%;
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
}

/* The assignments. */
.egcl .egcl-tasks,
.egcl .egcl-work {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: egcl;
}

.egcl .egcl-task,
.egcl .egcl-work__one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  padding: 10px 0 10px 34px;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  list-style: none;
  position: relative;
  counter-increment: egcl;
}

.egcl .egcl-task::before,
.egcl .egcl-work__one::before {
  content: counter(egcl);
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.egcl-task__what,
.egcl-work__what {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  min-width: 0;
}

.egcl-task__title,
.egcl-work__title {
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.egcl-task__title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b9c0b2;
  text-underline-offset: 3px;
}

.egcl-task__title a:hover {
  text-decoration-color: currentColor;
}

.egcl-task__about,
.egcl-work__about {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
  line-height: 1.4;
}

.egcl-task.is-off .egcl-task__about {
  color: #8a2c1a;
}

.egcl-task .egcl-sure[open] {
  flex: 1 1 100%;
}

/* Under them: find an exercise, add a word list. */
.egcl-add {
  padding: 12px 0 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
}

.egcl-add__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
}

/* 0.3.0: the labels' column is as wide as its longest one, "Vocabulary list", on one line. */
.egcl-add__form .egcl__label {
  flex: 0 0 112px;
  white-space: nowrap;
}

.egcl-add__none,
.egcl-found__none {
  margin: 0 0 10px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl .egcl-found {
  margin: 0 0 14px;
  padding: 4px 14px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
  list-style: none;
}

.egcl .egcl-found__one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #d3e0c6;
  list-style: none;
}

.egcl .egcl-found__one:first-child {
  border-top: 0;
}

.egcl-found__title {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.egcl-found__about,
.egcl-found__there {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
}

.egcl-found__there {
  font-weight: 650;
}

.egcl-found__form {
  margin: 0;
}

.egcl .egcl-found .egcl__btn {
  min-height: 34px;
}

/* The results: a table that moves sideways inside its frame when the class has many assignments; the names stay in sight. */
.egcl-results {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--eg-rule, #e5e2d9);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.egcl .egcl-table {
  width: auto;
  min-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.35;
}

.egcl .egcl-table th,
.egcl .egcl-table td {
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  background: #fff;
  text-align: left;
  vertical-align: top;
}

.egcl .egcl-table thead th {
  border-top: 0;
  background: #f7f6f1;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14px;
  font-weight: 650;
}

.egcl .egcl-table__who {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 120px;
  max-width: 180px;
  border-right: 1px solid var(--eg-rule, #e5e2d9);
  overflow-wrap: break-word; /* a long name breaks at its hyphen or space first */
}

.egcl .egcl-table__task {
  min-width: 118px;
  max-width: 170px;
}

.egcl-table__n {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  margin-right: 2px;
  border-radius: 50%;
  background: #e4efd9;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.egcl-table__title {
  overflow-wrap: anywhere;
}

.egcl-table__done {
  display: block;
  margin-top: 2px;
  color: var(--eg-muted, #6a7267);
  font-size: 13px;
  font-weight: 600;
}

.egcl-table__name {
  display: block;
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
}

.egcl .egcl-table .egcl-sure__word {
  min-height: 24px; /* big enough to tap */
  padding: 0;
  color: var(--eg-muted, #6a7267);
  font-size: 13px;
  line-height: 24px;
}

.egcl .egcl-table .egcl-sure__form {
  margin: 4px 0 0;
}

.egcl .egcl-table .egcl-sure__text {
  font-size: 14px;
}

/* Beside a student's code: what a new code does (a note, not a question). */
.egcl .egcl-table .egcl-table__code + .egcl-sure__text {
  color: var(--eg-muted, #6a7267);
  font-weight: 400;
}

.egcl .egcl-table .egcl__btn {
  min-height: 32px;
  font-size: 14px;
}

.egcl-cell__main {
  display: block;
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.egcl-cell--part .egcl-cell__main {
  color: var(--eg-muted, #6a7267);
}

.egcl-cell__sub {
  display: block;
  color: var(--eg-muted, #6a7267);
  font-size: 13px;
}

.egcl .egcl-table .egcl-cell--none {
  color: var(--eg-muted, #6a7267);
}

/* A new class. */
.egcl-new {
  margin: 0 0 10px;
}

.egcl .egcl-new__title {
  margin: 0 0 8px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  line-height: 1.3;
}

/* ---------------------------------------------------------------- a class, as its students see it */
.egcl-join {
  margin: 0 0 18px;
}

.egcl-join .egcl__label {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
}

.egcl-join__say {
  margin: 10px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl-hi {
  margin: 0 0 12px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 19px;
  font-weight: 650;
}

.egcl .egcl-work {
  padding: 0 18px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: var(--eg-panel-radius, 14px);
  background: #fff;
}

.egcl .egcl-work__one {
  padding-top: 14px;
  padding-bottom: 14px;
}

.egcl .egcl-work__one:first-child {
  border-top: 0;
}

.egcl .egcl-work__one::before {
  top: 15px;
}

.egcl .egcl-work__one.is-done::before {
  background: var(--eg-moss, #446931);
  color: #fff;
}

/* 0.3.0: "See the words" stays in one piece: on a narrow page it moves to the next line as a whole. */
.egcl-work__about {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
}

.egcl-work__state {
  margin-top: 2px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  font-weight: 650;
}

.egcl-leave {
  margin: 14px 0 6px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* ---------------------------------------------------------------- an assignment opened from a class */
.egcl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.45;
}

.egcl-bar__back {
  font-weight: 650;
}

/* After an exercise, in its result: "Sent to your teacher." and the way back. */
.egcl-sent {
  flex: 1 1 100%;
  margin: 10px 0 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  font-weight: 650;
}

.egcl-sent:empty {
  display: none;
}

.egcl-sent__again {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: var(--eg-radius, 6px);
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}

/* ---------------------------------------------------------------- a phone */
@media (max-width: 480px) {
  .egcl-card {
    padding: 16px 14px 16px;
  }

  .egcl .egcl-work {
    padding: 0 14px;
  }

  .egcl-add__form .egcl__label {
    flex: 1 1 100%;
  }

  .egcl .egcl__input {
    max-width: none;
  }

  .egcl .egcl-table__who {
    min-width: 96px;
    max-width: 120px;
  }

  .egcl-work__one .egcl__btn {
    flex: 1 1 100%;
  }
}

@media print {
  .egcl-more,
  .egcl-add,
  .egcl-new,
  .egcl-link .egcl__btn,
  .egcl-table .egcl-sure,
  .egcl-bar {
    display: none !important;
  }

  .egcl-results {
    overflow: visible;
    border: 0;
  }
}

/* ---------------------------------------------------------------- the Account page: "Your classes" */
.egcl-account {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.egcl-account li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  list-style: none;
}

.egcl-account li:first-child {
  border-top: 0;
}

.egcl-account a {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.egcl-account__count {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
}

.egcl-account__in {
  margin: 10px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
  font-weight: 650;
}

/* ---------------------------------------------------------------- a student's code; a closed class */
.egcl .egcl-card__sub,
.egcl-add {
  scroll-margin-top: 96px; /* the answer to a form is shown here: under the site's own bar, not behind it */
}

.egcl .egcl-table__code {
  margin: 0 0 6px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* A student who is shut out for the moment: the names' column makes room for the note (also on a phone, where it is narrow). */
.egcl .egcl-table__who:has(.egcl-table__lock) {
  min-width: 164px;
  max-width: 200px;
}

.egcl-table__lock {
  display: block;
  max-width: 220px;
  margin-top: 2px;
  color: #8a3b12;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.egcl-card__closed {
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #8a3b12;
  font-size: 13px;
  font-weight: 600;
}

.egcl-join .egcl-join__code {
  margin-top: 14px;
}

.egcl .egcl__input--code {
  flex: 0 1 130px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.egcl-code {
  margin: 6px 0 14px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
}

.egcl-leave {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.egcl-leave .egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl-table__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.egcl-table__acts .egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl-join__account {
  margin: 12px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* After a round of the class's word list, in the round's own result. */
.egcl-round {
  font-weight: 650;
}

.egcl-round:empty {
  display: none;
}

.egcl-round .egcl-sent__again {
  margin-left: 4px;
}

/* ---------------------------------------------------------------- a visitor's page: what classes are (0.1.1) */
.egcl--visitor .egcl__lead {
  margin-bottom: 14px;
  font-size: 19px;
}

.egcl-pitch__go {
  margin: 0 0 30px;
}

.egcl .egcl-pitch__go .egcl__btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 16px;
}

.egcl .egcl-pitch__title {
  margin: 0 0 14px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

/* The steps are a path: a line leads from one number to the next. */
.egcl .egcl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: egcl-step;
}

.egcl .egcl-step {
  position: relative;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
  counter-increment: egcl-step;
}

.egcl .egcl-step::before {
  content: counter(egcl-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eg-moss, #446931);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.egcl .egcl-step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 38px;
  right: -10px;
  height: 2px;
  background: #d3e0c6;
}

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

.egcl-step__title {
  display: block;
  margin-bottom: 3px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.egcl-step__text {
  display: block;
  color: #4d564a;
  font-size: 15.5px;
  line-height: 1.5;
}

/* The example of the results table, and the line under it. */
.egcl-results--sample {
  margin: 0 0 8px;
}

.egcl-pitch__note {
  margin: 0 0 24px;
  color: var(--eg-muted, #6a7267);
  font-size: 14px;
  line-height: 1.45;
}

.egcl .egcl-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.egcl .egcl-fact {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  line-height: 1.45;
}

.egcl .egcl-fact::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4efd9;
}

.egcl .egcl-fact::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6.5px;
  width: 4px;
  height: 8px;
  border: solid #2f4a22;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.egcl-pitch__join {
  padding-top: 24px;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  scroll-margin-top: 96px; /* "Join free" at the top leads here: under the site's own bar, not behind it */
}

@media (max-width: 640px) {
  .egcl .egcl-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .egcl .egcl-step {
    padding: 2px 0 20px 44px;
  }

  .egcl .egcl-step:last-child {
    padding-bottom: 0;
  }

  .egcl .egcl-step::after {
    top: 34px;
    right: auto;
    bottom: 6px;
    left: 13px;
    width: 2px;
    height: auto;
  }

  /* On a phone the example shows two assignments, so that it fits its frame. */
  .egcl-results--sample .egcl-table__task:nth-child(4),
  .egcl-results--sample td:nth-child(4) {
    display: none;
  }

  .egcl .egcl-results--sample .egcl-table__who {
    min-width: 76px;
  }

  .egcl .egcl-results--sample .egcl-table__task {
    min-width: 96px;
  }

  .egcl .egcl-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- finding an exercise: the levels, and more of them (0.2.0) */
.egcl-levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}

.egcl-levels .egcl__label {
  flex: 0 0 112px;
  margin-right: 4px;
}

.egcl .egcl-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c9d2c0;
  border-radius: 999px;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.egcl .egcl-level:hover {
  border-color: var(--eg-moss, #446931);
}

.egcl .egcl-level.is-on {
  border-color: var(--eg-moss, #446931);
  background: var(--eg-moss, #446931);
  color: #fff;
}

.egcl .egcl-levels__all {
  margin-left: 8px;
  color: var(--eg-moss-dark, #2f4a22);
  font-size: 14.5px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.egcl .egcl-level:focus-visible,
.egcl .egcl-levels__all:focus-visible {
  outline: 2px solid var(--eg-moss, #446931);
  outline-offset: 2px;
}

/* The level of an exercise, beside its title. */
.egcl-lvl {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e4efd9;
  color: #2f4a22;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: 2px;
  white-space: nowrap;
}

.egcl-lvl--b1,
.egcl-lvl--b2 {
  background: #dfe9f7;
  color: #1f3f73;
}

.egcl-lvl--c1,
.egcl-lvl--c2 {
  background: #efe1f3;
  color: #5b2a6b;
}

.egcl-found__more {
  margin: -4px 0 14px;
}

.egcl-found__most {
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl .egcl-found__one {
  scroll-margin-top: 96px; /* "Show more" comes back at the first new one, under the site's own bar */
}

@media (max-width: 640px) {
  .egcl-levels {
    gap: 5px;
  }

  /* Six in one row on a phone of 360 px and more. */
  .egcl .egcl-level {
    min-width: 42px;
    min-height: 40px;
    padding: 0 6px;
  }

  .egcl-levels .egcl__label {
    flex-basis: 100%;
  }

  .egcl .egcl-levels__all {
    flex-basis: 100%;
    margin: 4px 0 0;
  }
}

/* ---------------------------------------------------------------- 0.4.0: the results kept up to date */
.egcl-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 10px;
}

.egcl-live__auto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}

.egcl-live__auto[hidden] {
  display: none;
}

.egcl .egcl-live__auto input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--eg-moss, #446931);
}

.egcl-live__at {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.egcl-live__at.is-bad {
  color: #8a2c1a;
}

/* Under the table: the codes to print, the results as a file. */
.egcl .egcl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 6px 0 0;
}

.egcl .egcl-tools__one,
.egcl .egcl-codes__back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--eg-moss, #446931);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.egcl .egcl-tools__one:hover,
.egcl .egcl-codes__back:hover {
  color: var(--eg-ink, #1f2c1e);
}

.egcl .egcl-tools__one:focus-visible,
.egcl .egcl-codes__back:focus-visible,
.egcl .egcl-live__auto input:focus-visible {
  outline: 2px solid var(--eg-ink, #1f2c1e);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- 0.4.0: the codes, as slips to print and cut */
.egcl-codes__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0 0 16px;
}

.egcl .egcl-codes__title {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 22px;
  line-height: 1.25;
}

.egcl .egcl-codes__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
}

.egcl .egcl-slips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px dashed #9aa394;
  border-left: 1px dashed #9aa394;
  list-style: none;
}

.egcl .egcl-slip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px 16px 16px;
  border-right: 1px dashed #9aa394;
  border-bottom: 1px dashed #9aa394;
  break-inside: avoid;
  page-break-inside: avoid;
}

.egcl .egcl-slip::before {
  content: none;
}

.egcl-slip__class {
  color: var(--eg-ink, #1f2c1e);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.egcl-slip__link {
  color: var(--eg-muted, #6a7267);
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.egcl-slip__name {
  margin-top: 10px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.egcl-slip__code {
  color: var(--eg-ink, #1f2c1e);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.egcl-slip__word {
  color: var(--eg-muted, #6a7267);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.egcl-codes__account {
  margin: 0 0 12px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* On paper: the slips only, whatever the theme has around the page, three to a row. */
@media print {
  body:has(.egcl-slips) *:not(:has(.egcl-slips)):not(.egcl-slips):not(.egcl-slips *) {
    display: none !important;
  }

  body:has(.egcl-slips),
  body:has(.egcl-slips) *:has(.egcl-slips) {
    display: block !important;
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  /* What the theme draws on those boxes itself (a colored line above the page) stays off the paper too. */
  body:has(.egcl-slips)::before,
  body:has(.egcl-slips)::after,
  body:has(.egcl-slips) *:has(.egcl-slips)::before,
  body:has(.egcl-slips) *:has(.egcl-slips)::after {
    content: none !important;
    display: none !important;
  }

  .egcl .egcl-slips {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
  }

  .egcl-slip__class,
  .egcl-slip__link,
  .egcl-slip__name,
  .egcl-slip__code,
  .egcl-slip__word {
    color: #000;
  }
}

/* ---------------------------------------------------------------- 0.5.0: "Show to class" */
/* The view fills the window: nothing else of the site is on the screen everyone looks at. */
.egcl.egcl-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 14px 24px 28px;
  overflow: auto;
  background: #fff;
}

.egcl .egcl-screen__top {
  flex: 0 0 auto;
  margin: 0;
}

.egcl-screen__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2vh;
  margin: auto;
  text-align: center;
}

.egcl .egcl-screen__title {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.egcl-screen__qr {
  display: block;
  width: min(54vh, 80vw);
  max-width: 600px;
  height: auto;
}

.egcl .egcl-screen__link {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: clamp(17px, 2.7vw, 36px);
  line-height: 1.3;
}

.egcl-screen__tail {
  display: inline-block;
  white-space: nowrap;
}

.egcl-screen__link strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.egcl .egcl-screen__say {
  margin: 0;
  color: var(--eg-muted, #6a7267);
  font-size: clamp(15px, 1.8vw, 24px);
  line-height: 1.35;
}

.egcl .egcl-screen__count {
  margin: 0;
  color: var(--eg-moss, #446931);
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Whatever stands beside the view in the page (a bar of the site that stays on top) is put away. */
body:has(.egcl-screen) *:not(:has(.egcl-screen)):not(.egcl-screen):not(.egcl-screen *) {
  display: none !important;
}

/* In the class's box: the link has a row of its own (it is read whole); "Copy link" and "Show to class" stand under it. */
.egcl .egcl-link .egcl__input--link {
  flex: 1 1 calc(100% - 110px);
  min-width: min(100%, 260px); /* on a phone the field stands under its label, as wide as the box */
}

.egcl .egcl-link__screen {
  flex: 0 0 auto;
}

/* 0.5.0: the class's link as a QR code on each slip, beside what is written. With it a slip is wider: two to a row. */
.egcl .egcl-slips {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.egcl .egcl-slip {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.egcl-slip__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.egcl-slip__qr {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
}

@media print {
  /* A sheet with the code to hang up: the view as it is, on the paper. */
  .egcl.egcl-screen {
    position: static;
    padding: 0;
    overflow: visible;
  }

  .egcl-screen .egcl-screen__top {
    display: none !important;
  }

  .egcl-screen__box {
    gap: 8mm;
    margin: 20mm auto 0;
  }

  .egcl-screen__qr {
    width: 110mm;
  }

  /* Two slips to a row, each as wide as half the sheet whatever stands on it; seven rows to a sheet (A4 or Letter). */
  .egcl .egcl-slips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egcl .egcl-slip {
    padding: 10px 14px 11px;
  }

  .egcl-slip__name {
    margin-top: 6px;
  }

  .egcl-slip__qr {
    width: 26mm;
    height: 26mm;
  }
}

/* ------------------------------------------------------------------ 0.7.0: an assignment by question */

/* In the results table, under an exercise's title. */
.egcl .egcl-table .egcl-table__q {
  display: inline-block;
  min-height: 24px; /* big enough to tap */
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 24px;
}

.egcl-q__lead,
.egcl-q__before {
  margin: 0 0 6px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  line-height: 1.45;
}

.egcl-q__before {
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl .egcl-q__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-q__one {
  margin: 0 0 12px;
  padding: 14px 16px 12px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: 10px;
  background: #fff;
  break-inside: avoid;
}

.egcl-q__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 10px;
}

.egcl-q__n {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e4efd9;
  color: var(--eg-ink, #1f2c1e);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.egcl-q__text {
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.egcl-q__score {
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.egcl-q__one.is-clear .egcl-q__score {
  color: var(--eg-moss, #446931);
}

.egcl .egcl-q__options {
  margin: 10px 0 0 34px;
  padding: 0;
  list-style: none;
}

.egcl .egcl-q__option {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(40px, 6fr) 28px;
  align-items: center;
  gap: 2px 12px;
  margin: 0;
  padding: 3px 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.4;
}

.egcl-q__label {
  overflow-wrap: anywhere;
}

.egcl-q__option.is-right .egcl-q__label {
  color: var(--eg-moss-dark, #2f4a22);
  font-weight: 650;
}

.egcl-q__option.is-none {
  color: var(--eg-muted, #6a7267);
}

/* The check after the right answer: drawn, so that it prints and needs no font. */
.egcl-q__mark {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin: 0 0 1px 9px;
  border: solid var(--eg-moss, #446931);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.egcl-q__bar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #f0eee6;
  overflow: hidden;
}

.egcl-q__bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #b9b4a3;
}

.egcl-q__option.is-right .egcl-q__bar i {
  background: var(--eg-moss, #446931);
}

.egcl-q__count {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 560px) {
  .egcl .egcl-q__one {
    padding: 12px 12px 10px;
  }

  .egcl-q__head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .egcl-q__score {
    grid-column: 2;
  }

  .egcl .egcl-q__options {
    margin-left: 0;
  }

  .egcl .egcl-q__option {
    grid-template-columns: minmax(0, 1fr) 72px 24px;
    gap: 2px 8px;
  }
}

/* On paper: the view alone, as the codes' slips are (nothing else of the page is printed). */
@media print {
  body:has(.egcl-q) *:not(:has(.egcl-q)):not(.egcl-q):not(.egcl-q *) {
    display: none !important;
  }

  body:has(.egcl-q),
  body:has(.egcl-q) *:has(.egcl-q) {
    display: block !important;
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  body:has(.egcl-q)::before,
  body:has(.egcl-q)::after,
  body:has(.egcl-q) *:has(.egcl-q)::before,
  body:has(.egcl-q) *:has(.egcl-q)::after {
    content: none !important;
    display: none !important;
  }

  .egcl.egcl-q {
    max-width: none;
  }

  .egcl-q .egcl-codes__acts {
    display: none;
  }

  .egcl-q__bar,
  .egcl-q__bar i,
  .egcl-q__n {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ------------------------------------------------------------------ 0.8.0: "Present" */

/* In a class's assignments, beside "Remove". */
.egcl .egcl-task__show {
  display: inline-block;
  padding: 4px 0;
  color: var(--eg-moss, #446931);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.egcl .egcl-task__show:hover {
  color: var(--eg-ink, #1f2c1e);
}

/* The view fills the window (it is a "Show to class" view: .egcl-screen). Its sizes follow the window; where a question
   with its answer still does not fit, the script makes them smaller step by step (--egcl-fit). */
.egcl.egcl-show {
  --egcl-fit: 1;
  padding: 12px clamp(16px, 3vw, 48px) 18px;
}

.egcl-show__top {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0;
  font-size: 15px;
}

.egcl-show__name {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: var(--eg-muted, #6a7267);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* On a phone there is no room for the name: it would be cut to a letter. It keeps its place, so the count stays at the right. */
@media (max-width: 599px) {
  .egcl-show__name {
    visibility: hidden;
  }
}

.egcl-show__at {
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.egcl .egcl-show__full {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 14px;
}

/* On the narrowest phones the top stays one row: the way back and the count. (F still asks for the full screen.) */
@media (max-width: 359px) {
  .egcl .egcl-show__full {
    display: none;
  }
}

.egcl .egcl-show__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.egcl .egcl-show__one {
  margin: 0;
  padding: 1vh 0;
  list-style: none;
}

.egcl .egcl-show__one[hidden] {
  display: none;
}

/* The question keeps its place when the answer comes under it: the list starts from the top, a little down the screen.
   (Without the script the questions stand under one another.) */
.egcl .egcl-show__list {
  justify-content: flex-start;
}

.egcl-show.is-live .egcl-show__list {
  padding-top: clamp(0px, 5vh - 20px, 56px);
}

.egcl-show:not(.is-live) .egcl-show__one + .egcl-show__one {
  margin-top: 3vh;
  padding-top: 4vh;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
}

.egcl .egcl-show__q {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  margin: 0 0 2.4vh;
  color: var(--eg-ink, #1f2c1e);
  font-size: calc(clamp(22px, min(4.4vw, 6.6vh), 64px) * var(--egcl-fit));
  font-weight: 650;
  line-height: 1.2;
}

.egcl-show__n {
  flex: 0 0 auto;
  min-width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #e4efd9;
  font-size: 0.5em;
  font-weight: 700;
  line-height: 1.6em;
  text-align: center;
  transform: translateY(-0.3em);
}

.egcl-show__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.egcl .egcl-show__options {
  display: grid;
  gap: clamp(8px, 1.4vh, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-show__option {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
  padding: 0.36em 0.7em;
  border: 2px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: 0.4em;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: calc(clamp(18px, min(3vw, 4.6vh), 44px) * var(--egcl-fit));
  line-height: 1.25;
  list-style: none;
}

.egcl-show.is-live .egcl-show__option {
  cursor: pointer;
}

.egcl-show__letter {
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--eg-tint, #f2f7ec);
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.5em;
  text-align: center;
}

.egcl-show__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The check after the right answer and the number who chose an option: there once the answer is shown. */
.egcl-show__mark {
  display: none;
  flex: 0 0 auto;
  width: 0.3em;
  height: 0.6em;
  margin: 0 0.2em 0.12em 0;
  border: solid var(--eg-moss, #446931);
  border-width: 0 0.14em 0.14em 0;
  transform: rotate(45deg);
}

.egcl-show__count {
  flex: 0 0 auto;
  min-width: 1.4em;
  color: var(--eg-muted, #6a7267);
  font-size: 0.8em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
  visibility: hidden;
}

/* The answer is shown: the right option stands out, the others step back. (.is-open: set by the script, for a browser without :has.) */
.egcl-show__one.is-open .egcl-show__option.is-right,
.egcl-show__one:has(.egcl-show__answer[open]) .egcl-show__option.is-right {
  border-color: var(--eg-moss, #446931);
  background: var(--eg-tint, #f2f7ec);
  font-weight: 650;
}

.egcl-show__one.is-open .egcl-show__option.is-right .egcl-show__letter,
.egcl-show__one:has(.egcl-show__answer[open]) .egcl-show__option.is-right .egcl-show__letter {
  background: var(--eg-moss, #446931);
  color: #fff;
}

.egcl-show__one.is-open .egcl-show__option.is-right .egcl-show__mark,
.egcl-show__one:has(.egcl-show__answer[open]) .egcl-show__option.is-right .egcl-show__mark {
  display: block;
}

.egcl-show__one.is-open .egcl-show__option:not(.is-right),
.egcl-show__one:has(.egcl-show__answer[open]) .egcl-show__option:not(.is-right) {
  border-color: var(--eg-rule, #e5e2d9);
  color: var(--eg-muted, #6a7267);
}

.egcl-show__one.is-open .egcl-show__count,
.egcl-show__one:has(.egcl-show__answer[open]) .egcl-show__count {
  visibility: visible;
}

.egcl-show__answer {
  margin: 2vh 0 0;
}

.egcl .egcl-show__reveal {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.egcl .egcl-show__reveal::-webkit-details-marker {
  display: none;
}

.egcl .egcl-show__reveal::marker {
  content: "";
}

/* With the script the button under the questions shows the answer. */
.egcl-show.is-live .egcl-show__reveal {
  display: none;
}

/* The answer in words: read out by a screen reader always; on the screen only without the script (with it the option itself is marked). */
.egcl .egcl-show__is {
  margin: 1.4vh 0 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: calc(clamp(16px, min(2.1vw, 3.4vh), 30px) * var(--egcl-fit));
  font-weight: 650;
}

.egcl-show.is-live .egcl-show__is {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.egcl .egcl-show__why {
  margin: 1.4vh 0 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: calc(clamp(16px, min(2.1vw, 3.4vh), 30px) * var(--egcl-fit));
  line-height: 1.35;
}

.egcl-show.is-live .egcl-show__why {
  margin-top: 0;
}

.egcl .egcl-show__first {
  margin: 0.5em 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: calc(clamp(15px, min(1.7vw, 2.8vh), 24px) * var(--egcl-fit));
  font-weight: 600;
}

.egcl-show__nav {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 10px;
}

.egcl-show__nav[hidden] {
  display: none;
}

.egcl .egcl-show__nav .egcl__btn {
  min-height: 52px;
  padding: 10px clamp(14px, 4vw, 26px);
  font-size: 18px;
}

/* The button keeps its width while its words change ("Show answer", "Next"); on a narrow phone it gives way. */
.egcl .egcl-show__next {
  min-width: min(190px, 56%);
}

.egcl .egcl-show__prev:disabled {
  visibility: hidden;
}

/* ------------------------------------------------------------------ 0.9.0: a class test */

/* Under the assignments: "Test", a level, how many questions, "Make test". The two lists are as wide as their words. */
.egcl .egcl-add__form--test .egcl__input {
  flex: 0 1 auto;
  width: auto;
}

/* A test as someone of the class gets it: the questions under one another, each in a box of its own. */
.egcl-test__top {
  margin: 0 0 10px;
}

.egcl .egcl-test__title {
  margin: 0 0 12px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 24px;
  line-height: 1.25;
}

.egcl-test__lead {
  margin: 0 0 16px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl .egcl-test__form {
  margin: 0;
}

.egcl .egcl-test__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-test__one {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: 10px;
  background: #fff;
  list-style: none;
}

.egcl .egcl-test__one::before {
  content: none;
}

.egcl .egcl-test__set {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.egcl .egcl-test__q {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* The question's number, in the box's left margin. */
.egcl-test__n {
  position: absolute;
  top: 14px;
  left: 16px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e4efd9;
  color: var(--eg-ink, #1f2c1e);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

/* An option: the whole row chooses it. */
.egcl .egcl-test__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #c9cfc2;
  border-radius: 8px;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.egcl .egcl-test__option:last-child {
  margin-bottom: 0;
}

.egcl .egcl-test__option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--eg-moss, #446931);
}

.egcl .egcl-test__option span {
  min-width: 0;
}

.egcl .egcl-test__option:hover {
  border-color: var(--eg-muted, #6a7267);
  background: var(--eg-tint, #f2f7ec);
}

.egcl .egcl-test__option:has(input:checked) {
  border-color: #36552a;
  background: var(--eg-tint, #f2f7ec);
  box-shadow: inset 0 0 0 1px #36552a;
}

.egcl .egcl-test__option:has(input:focus-visible) {
  outline: 2px solid var(--eg-ink, #1f2c1e);
  outline-offset: 2px;
}

.egcl-test__send {
  margin: 18px 0 0;
}

.egcl .egcl-test__send .egcl__btn {
  min-height: 46px;
  padding: 0 24px;
  font-size: 16px;
}

/* The marked test: the score, then each question with what was answered. */
.egcl-test__score {
  margin: 0 0 14px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.egcl .egcl-test__yours,
.egcl .egcl-test__key,
.egcl .egcl-test__why {
  margin: 0 0 6px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.egcl .egcl-test__why {
  margin: 8px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* "Right" or "Wrong", in words: the color is not what says it. */
.egcl-test__verdict {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #e4efd9;
  color: #2f4a22;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.egcl-test__one.is-wrong .egcl-test__verdict,
.egcl-test__one.is-wrong .egcl-test__n {
  background: #fbe9e4;
  color: #8a2c1a;
}

.egcl-test__after {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

/* On a phone the number stands before the question's words: the options get the box's whole width. */
@media (max-width: 600px) {
  .egcl .egcl-test__one {
    padding: 12px;
  }

  .egcl-test__n {
    position: static;
    display: inline-block;
    margin-right: 6px;
    vertical-align: 1px;
  }

  .egcl-test__send .egcl__btn,
  .egcl-test__after .egcl__btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ------------------------------------------------------------------ 0.9.0: a test as a sheet for paper */
.egcl.egcl-sheet {
  max-width: 820px;
}

.egcl-sheet__page {
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: 10px;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
}

.egcl .egcl-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.egcl-sheet__what {
  overflow-wrap: anywhere;
}

/* "Name:" and a line to write on. */
.egcl-sheet__name {
  display: flex;
  flex: 0 1 300px;
  align-items: baseline;
  gap: 8px;
  min-width: 200px;
}

.egcl-sheet__name::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px solid currentColor;
}

.egcl .egcl-sheet__list,
.egcl .egcl-sheet__options,
.egcl .egcl-sheet__keys {
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-sheet__list li,
.egcl .egcl-sheet__keys li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-sheet__list li::before,
.egcl .egcl-sheet__keys li::before {
  content: none;
}

.egcl .egcl-sheet__list .egcl-sheet__one {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
  break-inside: avoid;
}

.egcl .egcl-sheet__q {
  margin: 0 0 4px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.egcl .egcl-sheet__options {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 30px;
  padding-left: 22px;
}

.egcl-sheet__letter,
.egcl-sheet__n {
  font-weight: 700;
}

.egcl .egcl-sheet__keytitle {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.egcl .egcl-sheet__keys {
  columns: 2;
  column-gap: 40px;
  font-size: 16px;
  line-height: 1.45;
}

.egcl .egcl-sheet__keys li {
  margin: 0 0 4px;
  break-inside: avoid;
}

/* On paper: the sheet alone, as the codes' slips are; the answer key starts a page of its own. */
@media print {
  body:has(.egcl-sheet) *:not(:has(.egcl-sheet)):not(.egcl-sheet):not(.egcl-sheet *) {
    display: none !important;
  }

  body:has(.egcl-sheet),
  body:has(.egcl-sheet) *:has(.egcl-sheet) {
    display: block !important;
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  body:has(.egcl-sheet)::before,
  body:has(.egcl-sheet)::after,
  body:has(.egcl-sheet) *:has(.egcl-sheet)::before,
  body:has(.egcl-sheet) *:has(.egcl-sheet)::after {
    content: none !important;
    display: none !important;
  }

  .egcl.egcl-sheet {
    max-width: none;
  }

  .egcl-sheet .egcl-codes__top {
    display: none;
  }

  .egcl-sheet__page {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #000;
  }

  .egcl-sheet__key {
    break-before: page;
  }
}

/* ------------------------------------------------------------------ 0.10.0: due dates */

/* On a teacher's assignment and on a student's: "Due Fri, Dec 4", under what it is. */
.egcl-task__due,
.egcl-work__due {
  margin-top: 2px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  line-height: 1.4;
}

/* A student's assignment whose day is over: the words say it ("Was due"), and the color of what is wrong. */
.egcl-work__due.is-over {
  color: #8a2c1a;
  font-weight: 650;
}

/* The date in "Due date": as wide as a date. */
.egcl .egcl__input--date {
  flex: 0 1 auto;
  width: auto;
  min-width: 150px;
}

/* In the results: the due day under an assignment's title; "late" in a student's cell. */
.egcl-table__due {
  display: block;
  margin-top: 2px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 13px;
  font-weight: 600;
}

.egcl-cell__late {
  display: inline-block;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fbe9e4;
  color: #8a2c1a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

/* 0.13.2: "Cancel" (or "Close") in a question or a small form that a word opened: a plain word after its buttons.
   The page's script closes the form again, so the word shows only where that script runs (it sets egcl-js on the page). */
.egcl .egcl-sure__cancel {
  display: none;
}

.egcl-js .egcl .egcl-sure__cancel {
  display: inline-flex;
  min-height: 40px;
  padding: 0 4px;
}


/* ================================================================== 0.14.0: the page without the sidebar; the teacher's dashboard
   (This file is 0.13.2's, rule for rule, with these rules after it.)
   0.15.0: "Class settings" is a menu in the class's head; an assignment's row has two lines, and its dates are pressed
   where they stand; what is done with the table stands in the row of the results' title. */

/* The page has no sidebar (includes/page.php: egcl_layout()). Every face of it but the dashboard is something to read or
    to fill in: a column in the middle of the page, as wide as it was beside the sidebar. */
body.egcl-page--column .content {
  max-width: 858px; /* the column's own 760px and the panel's edges */
  margin-right: auto;
  margin-left: auto;
}

/* The dashboard takes the panel's whole width. What stands side by side in it goes by the panel's width, not the
   window's (a browser without container queries shows everything one under the other, as on a phone). */
.egcl.egcl--dash {
  max-width: none;
  container: egcl-dash / inline-size;
}

/* A share as a bar: how many of the class have done an assignment, how much of it a student got right. */
.egcl-meter {
  display: block;
  width: 100%;
  max-width: 96px;
  height: 4px;
  border-radius: 2px;
  background: #e3e6dc;
  overflow: hidden;
}

.egcl-meter__part {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--eg-moss, #446931);
}

/* ---- the classes, and "New class" after them */
.egcl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 18px;
}

.egcl-top .egcl-tabs {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

/* "New class": a class that is not there yet, so a chip with a broken line. */
.egcl .egcl-newclass__word {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px dashed #9aa392;
  border-radius: 999px;
  color: var(--eg-moss-dark, #355d20);
  font-size: 15px;
  font-weight: 600;
  line-height: inherit;
  text-decoration: none;
}

.egcl .egcl-newclass__word::before {
  content: "+";
  font-weight: 700;
}

.egcl .egcl-newclass__word:hover,
.egcl .egcl-newclass[open] > .egcl-newclass__word {
  border-style: solid;
  border-color: var(--eg-moss, #446931);
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
}

.egcl-top .egcl-newclass[open] {
  flex: 0 1 auto;
}

.egcl-top .egcl-newclass[open] .egcl-new {
  margin: 10px 0 0;
}

/* ---- the class: its name and its link in one row */
@container egcl-dash (min-width: 880px) {
  .egcl--dash .egcl-card {
    padding: 22px 24px 24px;
  }
}

.egcl-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* The name has the first row. */
.egcl-card__top .egcl-card__head {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
}

.egcl-card__top .egcl-link {
  flex: 1 1 100%;
  margin: 0;
}

/* Once the class has students the link is a line of its own: no box, and the sentence for a screen reader alone. It
   shares its row with "Class settings"; in a wide panel the two stand beside the name. */
.egcl-card__top .egcl-link--line {
  flex: 1 1 300px;
  padding: 0;
  border: 0;
  background: none;
}

/* (The line gives way to a long head, a class that is closed says so beside its name, so that the three stay in one row.) */
@container egcl-dash (min-width: 1000px) {
  .egcl-card__top--line .egcl-card__head {
    flex: 0 1 auto;
  }

  .egcl-card__top .egcl-link--line {
    flex: 1 1 420px;
    justify-content: flex-end;
    max-width: 700px;
    margin-left: auto;
  }

  .egcl .egcl-card__top .egcl-link--line .egcl__input--link {
    flex: 1 1 96px;
    min-width: 0;
  }
}

/* ---- "Class settings" (0.15.0): a menu at the end of the class's head. "Rename", "New link", "Close class" and "Delete
   class" are in it: each changes something that stands in the head. With students in the class it follows the link's
   line; while nobody has joined it stands beside the name, over the link's box. */
.egcl-set {
  flex: 0 0 auto;
  margin: 0;
}

/* (On a phone it has a row of its own, and what it opens stands under it.) */
.egcl-set[open] {
  flex: 1 1 100%;
}

.egcl .egcl-set__word {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: #b9c0b2;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}

.egcl .egcl-set__word::-webkit-details-marker {
  display: none;
}

.egcl .egcl-set__word::marker {
  content: "";
}

/* (A small arrow says that it opens; it turns when it is open.) */
.egcl .egcl-set__word::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.egcl .egcl-set[open] > .egcl-set__word::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.egcl .egcl-set__word:hover,
.egcl .egcl-set[open] > .egcl-set__word {
  text-decoration-color: currentColor;
}

.egcl .egcl-set__word:focus-visible {
  outline: 2px solid var(--eg-ink, #1f2c1e);
  outline-offset: 2px;
}

.egcl-set__panel {
  margin: 2px 0 4px;
}

.egcl-set__panel .egcl__said {
  margin: 0 0 8px;
}

/* (In the menu the name's field gives way, so that "Save" and "Cancel" stand beside it.) */
.egcl .egcl-set__panel #egcl-rename {
  flex: 1 1 150px;
  min-width: 0;
}

@container egcl-dash (min-width: 560px) {
  /* While nobody has joined: the name and, at the row's end, "Class settings"; the link's box under them. */
  .egcl-card__top--box .egcl-card__head {
    flex: 1 1 0;
  }

  /* In a row with other things the menu hangs under its word, over what is under it: nothing of the page moves. The
     word stands at its row's end (also where it has to take a row for itself: the menu hangs from the word's right edge).
     It hangs only where the page's script runs (it sets egcl-js on the page): the script closes the menu as soon as
     the keyboard goes to something under it. Without the script the open menu stands in the page, as on a phone. */
  .egcl-set {
    position: relative;
    margin-left: auto;
  }

  .egcl-js .egcl-set[open] {
    flex: 0 0 auto;
  }

  .egcl-js .egcl-set__panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 6;
    width: max-content;
    min-width: 330px;
    max-width: min(480px, 88cqw);
    margin: 0;
    padding: 10px 16px 12px;
    border: 1px solid var(--eg-rule, #e5e2d9);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 44, 30, 0.16);
  }
}

.egcl-link--line .egcl-link__say {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.egcl .egcl-link--line .egcl__input--link {
  flex: 1 1 200px;
}

/* ---- the assignments, and the panel that adds one */
.egcl-plan {
  margin: 22px 0 0;
  padding: 2px 0 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
}

.egcl .egcl-plan .egcl-card__sub {
  margin-top: 18px;
}

.egcl-plan__add {
  margin: 4px 0 0;
  padding: 0 16px 6px;
  border: 1px solid var(--eg-rule, #e5e2d9);
  border-radius: 12px;
  background: #faf9f5;
}

.egcl .egcl-plan__add .egcl-card__sub {
  margin: 14px 0 10px;
}

.egcl-plan__add .egcl-add {
  padding: 0;
  border-top: 0;
}

.egcl-plan__add .egcl__limit {
  margin: 0 0 12px;
}

/* In the panel a field gives way to the button beside it, and so does a list to choose from. A test's first list (a level,
   or a topic with a long name) has a line of its own; the number of questions and "Make test" stand under it. */
.egcl .egcl-plan__add .egcl-add__form .egcl__input {
  flex: 1 1 140px;
}

.egcl .egcl-plan__add .egcl-add__form select.egcl__input {
  flex: 1 1 96px;
}

.egcl .egcl-plan__add .egcl-add__form--test #egcl-test-level {
  flex: 1 1 100%;
}

@container egcl-dash (min-width: 880px) {
  .egcl-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 392px);
    gap: 0 36px;
    align-items: start;
  }

  .egcl-plan__add {
    margin-top: 18px;
  }

  /* In the panel a field stands under its name, with its button beside it. */
  .egcl-plan__add .egcl-add__form .egcl__label,
  .egcl-plan__add .egcl-levels .egcl__label {
    flex: 1 1 100%;
    margin: 0;
  }

  .egcl .egcl-plan__add .egcl-add__form .egcl__input {
    max-width: none;
  }

  .egcl-plan__add .egcl-add__form {
    margin-bottom: 14px;
  }
}

/* An assignment's row (0.15.0): two lines. The first: its title, and at its end how many of the class have done it. The
   second: what it is, when it opens and when it is due; at its end what is done with it, "Remove" apart from the rest.
   (In 0.14.0 the row had three lines, 103px in all: with five assignments the results began under the first screen.) */
.egcl--dash .egcl-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px 16px;
  align-items: start;
  padding-top: 9px;
  padding-bottom: 6px;
}

.egcl--dash .egcl-task::before {
  top: 8px;
}

.egcl--dash .egcl-task__what {
  display: block;
  min-width: 0;
}

.egcl--dash .egcl-task__title {
  display: block;
}

/* (On a phone what it is has a line of its own, and the two days stand together in the next.) */
.egcl--dash .egcl-task__about {
  flex: 1 1 100%;
}

.egcl-task__done {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--eg-muted, #5f675c);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.egcl-task__done[hidden] {
  display: none;
}

.egcl-task__done .egcl-meter {
  width: 96px;
}

.egcl-task__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  min-width: 0;
}

@container egcl-dash (min-width: 560px) {
  .egcl--dash .egcl-task {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  /* (Where the list is narrow the count stands over its bar, and the title has the room.) */
  .egcl-task__done {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    justify-self: end;
    margin-top: 2px;
  }

  .egcl-task__line {
    grid-column: 1 / -1;
  }

  .egcl--dash .egcl-task__about {
    flex: 0 1 auto;
  }
}

@container egcl-dash (min-width: 1000px) {
  .egcl-task__done {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}

/* When it opens and when it is due: the words say how it stands, and a press on them changes it. A day that is set is
   written as what is read; "Open now" and "No due date" are quieter. The dotted line says: this can be changed. */
.egcl .egcl-when__word {
  color: var(--eg-muted, #5f675c);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: underline dotted;
  text-decoration-color: #8d9686;
  text-underline-offset: 4px;
}

.egcl .egcl-when.is-set > .egcl-when__word {
  color: var(--eg-ink, #1f2c1e);
  font-weight: 600;
}

.egcl .egcl-when__word:hover,
.egcl .egcl-when[open] > .egcl-when__word {
  color: var(--eg-ink, #1f2c1e);
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}

/* What is done with the assignment: at the line's end. "Remove" takes the assignment and its results away: it stands
   apart from "Present" and "Print", and is quieter than they are. */
.egcl-task__acts {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
}

.egcl-task__remove {
  display: flex;
  margin-left: auto;
}

@container egcl-dash (min-width: 560px) {
  .egcl-task__acts {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .egcl-task__remove {
    margin-left: 12px;
  }
}

.egcl .egcl-task__remove .egcl-sure__word {
  color: var(--eg-muted, #5f675c);
  font-weight: 500;
  text-decoration-color: #b9c0b2;
}

.egcl .egcl-task__remove .egcl-sure__word:hover,
.egcl .egcl-task__remove .egcl-sure[open] > .egcl-sure__word {
  color: #8a2c1a;
  text-decoration-color: currentColor;
}

/* A date's field or a question that is open has a line of its own, with its buttons. */
.egcl-task__line > .egcl-sure[open],
.egcl-task__remove .egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl-task__acts:has(.egcl-sure[open]),
.egcl-task__acts:has(.egcl-sure[open]) .egcl-task__remove {
  flex: 1 1 100%;
  margin-left: 0;
}

/* ---- the results */
/* Their title's row (0.15.0): the title, the line that keeps them up to date and, at the row's end, what is done with the
   table ("Print codes", "Download results": they stood under the table). The tools come with the table, in the part of
   the page that is asked for again; that part is no box of its own here, so its tools stand in the title's row and its
   table under the row. What the page says about the students stands between the two. */
.egcl-results-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
}

.egcl .egcl-results-wrap > .egcl-card__sub {
  margin: 0;
}

.egcl-results-wrap > .egcl-live {
  flex: 0 1 auto;
  margin: 0;
}

.egcl-results-wrap > .egcl-results-part {
  display: contents;
}

.egcl .egcl-results-wrap .egcl-tools {
  order: 1;
  flex: 1 1 100%;
  gap: 0 20px;
  margin: 0;
}

.egcl-results-wrap > .egcl__said {
  order: 2;
  flex: 1 1 100%;
  margin: 4px 0 0;
}

.egcl-results-wrap .egcl-results,
.egcl .egcl-results-wrap .egcl-card__empty {
  order: 3;
  flex: 1 1 100%;
  margin: 6px 0 0;
}

@container egcl-dash (min-width: 560px) {
  .egcl .egcl-results-wrap .egcl-tools {
    flex: 0 1 auto;
    margin-left: auto;
  }
}

/* A class nobody has joined: there is nothing to refresh, and the line shows nothing (it is there: the page goes on
   asking, and what it tells a screen reader is told). */
.egcl .egcl-live.egcl-live--idle > :not(.egcl-sr) {
  display: none;
}

/* What the table keeps for a screen reader alone (a box of one pixel, placed absolutely: "Not started" in an empty
   cell) belongs to the table's frame: it moves with the table and ends at the frame's edge. Before, such a box of a column
   or a row that was out of sight lay outside the frame, in the page's panel, and made the panel wider or higher than it
   looks: something a browser can move the panel by (a search in the page, a screen reader's place). */
.egcl-results {
  position: relative;
}

/* The table: a score stands in the middle of its row; a row answers the pointer, so that a score is read with its
   name across a wide table. In a wide panel the table takes the whole width and its columns have more room. */
.egcl--dash .egcl-table td {
  vertical-align: middle;
}

.egcl--dash .egcl-table tbody tr:hover > * {
  background: #f6f9f2;
}

/* On a phone a student's "Code" and "Remove" fit in one line under the name. */
.egcl--dash .egcl-table__who {
  min-width: 116px;
  max-width: 150px;
}

.egcl--dash .egcl-table__acts {
  gap: 0 8px;
}

/* (The name and what can be done about the student: a part of their own inside the cell.) */
.egcl-table__row {
  display: block;
}

@container egcl-dash (min-width: 880px) {
  .egcl--dash .egcl-table {
    width: 100%;
    min-width: 0;
  }

  .egcl--dash .egcl-table th,
  .egcl--dash .egcl-table td {
    padding: 8px 14px;
  }

  /* The names have a column of their own width; what is left is the assignments'. */
  .egcl--dash .egcl-table__who {
    min-width: 150px;
    max-width: 300px;
  }

  .egcl--dash .egcl-table thead .egcl-table__who {
    width: 280px;
  }

  /* A long title takes two lines in the head and ends in an ellipsis (the assignments' list above has it whole), with
     its number beside it. The column is wide enough for a long word of a title ("Comparatives") beside the number. */
  .egcl--dash .egcl-table__task {
    min-width: 156px;
    max-width: 220px;
  }

  .egcl--dash .egcl-table__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .egcl--dash .egcl-table__n {
    float: left;
    margin: 0 6px 0 0;
  }

  /* A long class (more than twenty students): the table moves inside its frame and its head stays in sight. (The names
     stay in sight at every width; a shorter class's table is as tall as it is.) */
  .egcl--dash .egcl-results--long {
    max-height: 78vh;
    overflow: auto;
  }

  .egcl--dash .egcl-results--long .egcl-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--eg-rule, #e5e2d9);
  }

  .egcl--dash .egcl-results--long .egcl-table thead .egcl-table__who {
    z-index: 3;
  }
}

@media print {
  .egcl--dash .egcl-results--long {
    max-height: none;
    overflow: visible;
  }
}

.egcl--dash .egcl-table__done {
  margin-top: 4px;
}

.egcl-table__task .egcl-meter {
  margin: 4px 0 2px;
}

.egcl-cell .egcl-meter {
  max-width: 64px;
  margin: 3px 0 1px;
}

/* A student's row: the name, and what can be done about them beside it (under it where there is no room). */
@container egcl-dash (min-width: 880px) {
  .egcl--dash tbody .egcl-table__who {
    vertical-align: middle;
  }

  .egcl--dash .egcl-table__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
  }

  .egcl--dash tbody .egcl-table__name {
    flex: 1 1 auto;
  }

  .egcl--dash tbody .egcl-table__lock {
    flex: 1 1 100%;
    order: 3;
  }

  .egcl--dash tbody .egcl-table__acts {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 0 14px;
  }

  .egcl--dash tbody .egcl-table__acts:has(.egcl-sure[open]) {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}
