/* Styles for the signed-in product, the sign-in page, shared lesson plans and
   the owner report. Loaded after styles.css, which has the colours, buttons
   and form fields. */

/* The product pages are plain paper: 16px text, no dot grid, no tape. */
body {
  font-size: 1rem;
}

textarea {
  font: inherit;
  color: inherit;
}

textarea.input {
  display: block;
  min-height: 5rem;
  line-height: 1.45;
  resize: vertical;
}

.input:disabled {
  border-style: dashed;
  background: var(--bg);
  cursor: not-allowed;
}

textarea.textarea-short {
  min-height: 4.2rem;
}

.narrow {
  max-width: 34rem;
}

.narrow-wide {
  max-width: 46rem;
}

.narrow h1,
.narrow-wide h1,
.owner-report h1 {
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2rem);
  line-height: 1.15;
}

/* Sign-in: one card on paper. */
.signin {
  max-width: 28.75rem;
}

.signin .code-input {
  max-width: none;
  text-align: center;
}

.lede {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.app-page {
  padding-block: clamp(1.25rem, 3vw, 2.25rem) 4rem;
}

.topic-chips:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.class-nudge {
  margin-block: 0 1rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--tint);
  font-size: 0.9375rem;
}

.code-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* After a print or download: the referral link, once. */
.referral-nudge:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.9375rem;
}

.referral-nudge span {
  flex: 1 1 18rem;
}

.report-problem {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.report-problem textarea {
  margin-top: 0.5rem;
  width: 100%;
}

/* The quiet help and legal line under the signed-in pages. */
.app-footer {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.app-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.app-footer .footer-links a {
  color: var(--muted);
}

.panel {
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
}

.panel-title {
  font-size: 1.375rem;
  line-height: 1.2;
}

.panel-subtitle {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.1875rem;
}

.panel p,
.panel .field,
.panel .button-row,
.panel .share-link,
.panel .check,
.panel > .button,
.panel form > .button,
.panel details,
.panel fieldset {
  margin-top: 0.9rem;
}

.panel .choice {
  margin-top: 0.9rem;
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
}

.field .hint,
fieldset .hint {
  margin-top: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.check > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--primary);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--primary-dark);
  text-decoration-thickness: 2px;
}

.button-danger,
.button-quiet.button-danger {
  background: transparent;
  color: var(--error);
  box-shadow: inset 0 0 0 1.5px var(--error);
}

.button-danger:hover,
.button-quiet.button-danger:hover {
  background: var(--error-tint);
  color: var(--error);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.code-input {
  max-width: 12rem;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.25em;
}

/* App header */

.app-header {
  background: var(--card);
}

.app-nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}

.app-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--primary-dark);
}

.credit-pill {
  display: none;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.credit-pill-empty {
  background: var(--warn-tint);
  box-shadow: inset 0 0 0 1.5px var(--warn);
}

@media (min-width: 40rem) {
  .credit-pill:not([hidden]) {
    display: inline-flex;
  }
}

/* The logo, four links, the credit pill and "Sign out" need about 50rem in one
   row; below that the links get a row of their own. */
@media (max-width: 52rem) {
  .app-header .wrap {
    flex-wrap: wrap;
    padding-bottom: 0.35rem;
  }

  .app-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .app-header .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 30rem) {
  .app-header .logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .app-nav a {
    padding-inline: 0.35rem;
    font-size: 0.875rem;
  }

  .app-header .wrap {
    gap: 0 0.35rem;
  }

  .app-nav {
    justify-content: space-between;
  }

  .app-header .header-link {
    padding-inline: 0.35rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 23.4375rem) {
  .app-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 23.4rem) {
  .app-nav a,
  .app-header .header-link {
    padding-inline: 0.25rem;
    font-size: 0.8125rem;
  }
}

/* Make a lesson plan */

.app-grid {
  display: grid;
  gap: 0 1.5rem;
  align-items: start;
}

@media (min-width: 62rem) {
  .app-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* Credits: the sentence is the meter, and the bar under it repeats it. */
.meter {
  padding: 0.6rem 0.85rem;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-label);
  background: var(--tint);
  font-weight: 600;
  /* The sentence and the bar arrive after the page; their space is kept so nothing below jumps. */
  min-height: 2.95rem;
}

.meter:empty {
  visibility: hidden;
}

.meter-bar[hidden] {
  display: block;
  visibility: hidden;
}

@media (max-width: 30rem) {
  .meter {
    min-height: 4.5rem;
  }
}

.meter-low,
.meter-empty {
  border-left-color: var(--warn);
  background: var(--warn-tint);
}

/* The buttons for more credits, after the "no credits left" sentence. */
.credit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.message .credit-actions {
  font-weight: 400;
}

.meter-bar {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: var(--line);
  color: var(--primary);
  appearance: none;
}

.meter-bar::-webkit-progress-bar {
  background: var(--line);
}

.meter-bar::-webkit-progress-value {
  border-radius: 99px;
  background: var(--primary);
}

.meter-bar::-moz-progress-bar {
  border-radius: 99px;
  background: var(--primary);
}

.meter-bar-low {
  color: var(--warn);
}

.meter-bar-low::-webkit-progress-value {
  background: var(--warn);
}

.meter-bar-low::-moz-progress-bar {
  background: var(--warn);
}

.form-row {
  display: grid;
  gap: 0 0.75rem;
}

@media (min-width: 36rem) {
  .form-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .form-row-tight {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.more {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.more summary {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.versions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.checks {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

/* A fieldset is as wide as its widest word unless told otherwise. */
fieldset.field,
.checks > .check {
  min-width: 0;
}

/* Choosing a file for "build from your own material" */

.file-label {
  display: block;
  margin-top: 0.9rem;
  font-weight: 700;
}

.file-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font: inherit;
  color: var(--ink);
}

.file-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.file-input:disabled::file-selector-button {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

/* Saved learners in the class form */

.learners {
  display: grid;
  gap: 0.75rem;
  margin: 0.6rem 0;
}

.learner-row {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.learner-row .link-button {
  justify-self: start;
}

.message a {
  color: inherit;
}

.message .button {
  margin-top: 0.6rem;
}

/* Lists of lesson plans and classes */

.library {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.library:empty {
  display: none;
}

.library li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.library-main {
  min-width: 0;
  flex: 1 1 14rem;
}

.library-main > a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.library-main > a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.library .hint {
  margin-top: 0.1rem;
}

.library-actions {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9375rem;
}

/* A tag is flat and sits in a list. A sticker is tilted and sits on its own. */
.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-label);
  background: var(--butter);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 0.12em;
}

/* Shown where a list has nothing in it yet. */
.empty {
  margin-top: 0.9rem;
  padding: 1.75rem 1.5rem;
  border: 1.5px dashed var(--field-line);
  border-radius: 10px;
  background: var(--card);
  text-align: center;
}

.empty svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
}

.empty h2,
.empty h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.panel .empty p,
.empty p {
  max-width: 34em;
  margin: 0.4rem auto 0;
  color: var(--muted);
}

.class-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.class-form h3 {
  font-size: 1.125rem;
}

/* A lesson plan: the app page and the shared page. It is drawn as a
   ring-binder page, with index tabs that jump to each part. */

.doc-wrap {
  max-width: 53rem;
}

.doc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.doc-tools + .meter {
  margin-top: 0.9rem;
}

.doc-page {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 36px;
}

.doc {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.4rem 1.1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-page);
  overflow-wrap: break-word;
}

.doc-page .doc {
  margin-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* On a phone five tabs can be wider than the page, so the row scrolls sideways.
   The padding leaves room for the focus ring inside the scrolling box. */
.doc-tabs {
  position: absolute;
  top: -5px;
  right: 5px;
  left: 5px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 41px;
  padding: 5px 5px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.doc-tabs::-webkit-scrollbar {
  display: none;
}

.doc-tabs a {
  display: flex;
  align-items: center;
  flex: none;
  justify-content: center;
  height: 31px;
  padding: 0 9px;
  border-radius: 9px 9px 0 0;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.doc-tabs a[aria-current] {
  height: 36px;
}

.doc-tabs .tab-plan {
  background: var(--primary);
  color: var(--on-primary);
}

.doc-tabs .tab-exit {
  background: var(--teal);
  color: var(--on-primary);
}

.doc-tabs .tab-key {
  background: var(--butter);
}

.doc-tabs .tab-slides {
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (min-width: 37.5rem) {
  .doc {
    padding: 2rem 2.25rem 2.25rem 4.375rem;
    border-radius: 6px var(--radius) var(--radius) 6px;
  }

  .doc::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 34px;
    border-right: 1px solid var(--line);
    border-radius: 6px 0 0 6px;
    background: var(--ring-holes);
  }

  .doc-page {
    padding: 0 42px 0 0;
  }

  .doc-page .doc {
    border-radius: 6px var(--radius) var(--radius) 6px;
  }

  .doc-tabs {
    top: 64px;
    right: 0;
    left: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 42px;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .doc-tabs a,
  .doc-tabs a[aria-current] {
    writing-mode: vertical-rl;
    width: 36px;
    height: auto;
    padding: 14px 0;
    border-radius: 0 9px 9px 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .doc-tabs a:hover,
  .doc-tabs a[aria-current] {
    width: 42px;
  }
}

.doc h1 {
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2rem);
  line-height: 1.15;
}

.doc-meta {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.doc-ai,
.doc-note {
  padding: 0.55rem 0.85rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-label);
  background: var(--warn-tint);
  font-size: 0.9375rem;
}

.doc-ai {
  margin-top: 1rem;
}

.doc-note {
  border-left-color: var(--warn);
}

.doc-edits {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.doc-section {
  margin-top: 1.75rem;
}

.doc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.doc-section h2 {
  color: var(--primary);
  font-size: 1.375rem;
  line-height: 1.2;
}

.doc-section h3 {
  margin-top: 1rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.doc-section p,
.doc-section ul,
.doc-section ol {
  margin-top: 0.55rem;
}

.doc-section ul:not([class]) li {
  position: relative;
  padding-left: 1.5rem;
}

/* A small box to tick, as on a planner page. */
.doc-section ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
}

.doc-section ol:not([class]) {
  padding-left: 1.6rem;
  list-style: decimal;
}

.doc-section li + li {
  margin-top: 0.3rem;
}

.doc-section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.875rem;
}

.ai-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--bg);
  font-size: 0.875rem;
}

.ai-row .legend {
  margin-right: 0.3rem;
}

.ai-row .button-small {
  min-height: 2.1rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.875rem;
}

.ai-row .input {
  width: 9.5rem;
  min-height: 2.1rem;
  padding: 0.25rem 0.6rem;
}

.doc-editor textarea {
  min-height: 14rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
}

.doc-editor,
.doc-editor .button-row,
.doc-status {
  margin-top: 0.75rem;
}

.doc-status {
  font-size: 0.9375rem;
  font-weight: 600;
}

.doc-footer {
  display: none;
}

.doc-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.doc-report {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: right;
}

.title-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.title-form .input {
  flex: 1 1 16rem;
  width: auto;
}

/* Share links and the "made with" band */

.share-link {
  display: grid;
  gap: 0.3rem 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.share-link label {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  font-weight: 700;
}

.made-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1.5px dashed var(--primary);
  border-radius: 10px;
  background: var(--card);
}

.made-with p {
  flex: 1 1 18rem;
}

.table-scroll + .table-scroll {
  margin-top: 1rem;
}

.shared-header .wrap {
  max-width: 53rem;
}

@media (max-width: 24rem) {
  .shared-header .logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Account */

.plan-line {
  font-size: var(--step-1);
  font-weight: 700;
}

/* The pack of extra credits: one line of text and one button, on every plan. */
.pack-box {
  display: grid;
  gap: 0.9rem 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1.5px dashed var(--primary);
  border-radius: 10px;
}

@media (min-width: 46rem) {
  .pack-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.pack-box p {
  margin-top: 0.3rem;
}

.pack-box h3,
.upgrade-list h3 {
  font-size: 1.125rem;
}

#upgrade-pro {
  margin-top: 0.9rem;
}

/* With no credits left, the way to get more stands out. */
.panel-attention {
  border-color: var(--warn);
  box-shadow: 0 0 0 2px var(--warn-tint);
}

.upgrade-list li {
  margin-top: 1.1rem;
}

.upgrade-list h4 {
  font-size: 1rem;
}

.change-plan {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.change-plan h3 {
  font-size: 1.125rem;
}

.change-plan .notice,
.change-confirm {
  margin-top: 0.9rem;
}

.change-plan .notice .button {
  margin-top: 0.6rem;
}

.change-confirm {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, 0.75rem);
  background: var(--tint);
}

.change-confirm .button-row {
  margin-top: 0.6rem;
}

.upgrade-list .button-row {
  margin-top: 0.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.stats div {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-small);
  background: var(--bg);
}

.stats dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.stats dd {
  font-size: var(--step-1);
  font-weight: 700;
}

/* Taught on, and the teaching record */

.taught-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.9rem;
}

.taught-form label {
  font-weight: 700;
}

.input-date {
  width: auto;
  min-width: 10.5rem;
}

.records-wrap {
  max-width: 62rem;
}

.records-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.records-form .field {
  margin: 0;
}

.records-form .button-row {
  margin: 0;
}

.records-range {
  margin-top: 1.5rem;
  font-weight: 700;
}

.records-part {
  margin-top: 1.75rem;
}

.records-part h2 {
  font-size: var(--step-2);
}

.records-part .table-scroll {
  margin-top: 0.75rem;
}

.records-part .nowrap {
  white-space: nowrap;
}

/* On a phone the wider record tables become one block per row, each value
   under its column name (data-label, set by product.js). */
@media screen and (max-width: 36rem) {
  .report-stack,
  .report-stack tbody,
  .report-stack tr,
  .report-stack td {
    display: block;
  }

  .report-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .report-stack tr {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  .report-stack td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    padding: 0.2rem 0;
    border: 0;
  }

  .report-stack td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .report-stack td:empty {
    display: none;
  }
}

/* Tables: the partner page and the owner report */

.report {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 0.9375rem;
}

.report th,
.report td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report thead th {
  background: var(--tint);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.prose .table-scroll,
.owner-report .table-scroll,
.owner-report > .report {
  margin-top: 1rem;
}

.owner-report > .report {
  max-width: 44rem;
  border: 1px solid var(--line);
}

.owner-report h2 {
  margin-top: 2.25rem;
  font-size: var(--step-2);
}

.owner-report p {
  max-width: 68ch;
  margin-top: 0.75rem;
}

.owner-report .button {
  white-space: nowrap;
}

/* For limits and payment problems. */
.notice {
  padding: 0.65rem 0.9rem;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-label);
  background: var(--warn-tint);
  font-size: 0.9375rem;
}

.row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}

.row-form label {
  font-size: 0.875rem;
  font-weight: 700;
}

.row-form input[type="email"] {
  flex: 0 1 20rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-field);
  background: var(--card);
}

.inline-form {
  display: inline;
}

/* Print: the lesson plan only. "Print student pages" leaves the worksheet and
   the exit ticket. */

/* A week plan or unit plan */

.doc .eyebrow {
  margin-bottom: 0.3rem;
}

.doc-plan {
  margin-top: 0.4rem;
}

.plan-options {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.plan-options .checks:empty {
  display: none;
}

.plan-items {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.plan-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.plan-item-place {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.plan-item h3 {
  margin: 0.15rem 0 0.25rem;
}

.plan-item .button,
.plan-item a {
  display: inline-block;
  margin-top: 0.5rem;
}

.plan-edit-items {
  display: grid;
  gap: 0.75rem;
  margin: 0.6rem 0;
}

.plan-edit-row {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.plan-edit-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#plan-edit {
  margin-top: 1.25rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip,
  .made-with,
  .no-print,
  .doc-editor,
  .doc-tabs,
  .doc::before,
  .meter-bar,
  .ai-row {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .page,
  .app-page {
    padding: 0;
  }

  .doc-wrap,
  .records-wrap {
    max-width: none;
  }

  .records-wrap .panel {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .records-wrap .table-scroll {
    overflow: visible;
    border-color: #777;
  }

  /* A long list of lessons starts under the parts above it, not on a new page. */
  .records-part h2 {
    break-after: avoid;
  }

  .records-part tr {
    break-inside: avoid;
  }

  .doc-page {
    margin: 0;
    padding: 0;
  }

  .doc,
  .doc-page .doc {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .doc-meta {
    color: #000;
  }

  .doc-section-head {
    border-bottom-color: #000;
  }

  .doc-section ul:not([class]) li::before {
    border-color: #000;
  }

  .doc h1 {
    font-size: 20pt;
  }

  .doc-section h2 {
    color: #000;
    font-size: 14pt;
    break-after: avoid;
  }

  .doc-section h3 {
    break-after: avoid;
  }

  .doc-section li,
  .doc-section p {
    break-inside: avoid;
  }

  .doc-ai,
  .doc-note {
    border: 1px solid #777;
    background: none;
  }

  /* The student pages and the answer key start new pages, so they can be
     handed out or kept back. The exit ticket and the slide outline follow on. */
  .doc-section[data-heading="Worksheet"],
  .doc-section[data-heading="Answer key"] {
    padding-top: 0;
    border-top: 0;
    break-before: page;
  }

  .doc-section[data-heading="Exit ticket"],
  .doc-section[data-heading="Slide outline"] {
    break-inside: avoid;
  }

  /* One step of the agenda (its Do, Say and Check) stays on one page. */
  .doc-section[data-heading="Agenda"] ul {
    break-inside: avoid;
  }

  /* "Name ___ Date ___" in the lesson's language, from the server. */
  .doc-section-head[data-name-line]::after {
    content: attr(data-name-line);
    font-size: 10pt;
  }

  .doc-footer:not([hidden]) {
    display: block;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #777;
    color: #444;
    font-size: 9pt;
  }

  .print-student .doc-ai,
  .print-student .doc-note,
  .print-student .doc-section:not([data-heading="Worksheet"], [data-heading="Exit ticket"]) {
    display: none !important;
  }

  .print-student .doc-section[data-heading="Worksheet"] {
    break-before: auto;
    margin-top: 1rem;
  }
}

/* App pages until the session is confirmed (product.js). */
body[data-auth="checking"] .app-nav,
body[data-auth="checking"] .header-actions,
body[data-auth="checking"] main .wrap > :not(noscript) {
  visibility: hidden;
}
