.header .strengths-trigger {
  margin-right: auto;
  text-decoration: none;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}
.strengths-trigger:hover, .sheet-tools :is(button, a):hover, .sheet-close:hover {
  background: #e9ede4;
}
.strengths-trigger:focus-visible, .sheet-dialog :focus-visible {
  outline: 3px solid #a1772f;
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .35rem .7rem;
    padding-block: .6rem;
  }
  .header .strengths-trigger { justify-self: end; margin: 0; }
  .header nav { grid-column: 1 / -1; justify-content: space-between; }
}
html:has(.sheet-dialog[open]) { overflow: hidden; }
.sheet-dialog {
  box-sizing: border-box;
  width: min(54rem, calc(100% - 1.5rem));
  max-width: none;
  height: min(92vh, calc(141vw + 4rem), 66rem);
  height: min(92dvh, calc(141vw + 4rem), 66rem);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1rem 4rem #17251e38;
}
.sheet-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.sheet-dialog::backdrop { background: rgb(22 35 29 / 54%); }
.sheet-heading, .sheet-tools {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-inline: clamp(.6rem, 2vw, 1.3rem);
}
.sheet-heading { justify-content: space-between; padding-block: .45rem .2rem; }
.sheet-heading h2 { font: 500 clamp(1.05rem, 2.7vw, 1.45rem)/1.5 var(--serif); }
.sheet-tools {
  justify-content: space-between;
  padding-block: .2rem .45rem;
  border-bottom: 1px solid var(--line);
  font: .875rem/1.4 var(--sans);
}
.sheet-tools { flex-wrap: wrap; }
.sheet-tools > div:last-child { margin-inline-start: auto; }
.sheet-tools a:not([download]) { text-decoration: underline; text-underline-offset: .25em; }
.sheet-tools > div { display: flex; align-items: center; gap: .25rem; }
.sheet-tools :is(button, a), .sheet-close {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: .25rem .5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sheet-tools button:disabled { color: #838a80; cursor: default; }
.sheet-tools button:disabled:hover { background: transparent; }
.sheet-tools .sheet-zoom-button, .sheet-close { font: 1.4rem/1 var(--sans); }
.sheet-zoom { min-width: 3.1em; text-align: center; font-variant-numeric: tabular-nums; }
.sheet-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #e2e4dc;
}
.sheet-canvas {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
}
.sheet-page {
  display: block;
  width: var(--sheet-width, min(80vw, 40rem));
  height: auto;
  max-width: none;
  background: white;
  box-shadow: 0 1px 5px #1d382d26;
  user-select: none;
}
.sheet-viewport.zoomed { cursor: grab; }
.sheet-viewport.dragging { cursor: grabbing; }

@page strengths-paper { size: A4 portrait; margin: 0; }
@media print {
  body:has(.sheet-dialog[open]) { margin: 0; padding: 0; background: white; page: strengths-paper; }
  body:has(.sheet-dialog[open]) > :not(.sheet-dialog) { display: none !important; }
  .sheet-dialog[open] {
    position: static; display: block; width: 210mm; height: auto;
    margin: 0; border: 0; padding: 0; box-shadow: none; background: white;
    overflow: visible; page: strengths-paper;
  }
  .sheet-dialog::backdrop, .sheet-dialog .sheet-heading, .sheet-dialog .sheet-tools { display: none; }
  .sheet-dialog .sheet-viewport, .sheet-dialog .sheet-canvas {
    display: block; overflow: visible; width: 100%; min-height: 0; background: white;
  }
  .sheet-dialog .sheet-page {
    width: 210mm; height: 297mm; max-width: none; box-shadow: none;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
}
