.sheet-scroll {
  flex: 1;
  overflow: auto;
  padding: 18px 12px 30px;
}

.sheet-app.header-hidden .sheet-scroll {
  padding-top: 50px;
}

.sheet-stage {
  position: relative;
  width: min(1100px, calc(100vw - 24px));
  min-width: 842px;
  aspect-ratio: 842 / 595;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  container-type: inline-size;
}

.sheet-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.field {
  position: absolute;
}

.armour-choice-field {
  pointer-events: none;
}

.rating-track {
  pointer-events: none;
}

.armour-choice {
  position: absolute;
  min-height: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: transparent;
  pointer-events: auto;
}

.rating-control,
.preview-rating-control {
  position: absolute;
  display: block;

  min-height: 0;
  padding: 0;

  color: transparent;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;

  pointer-events: auto;
}

.square-control {
  border-radius: 2px;
}

.sheet-app.editing .armour-choice {
  border-color: rgba(30, 109, 143, 0.35);
  background: rgba(255, 255, 255, 0.18);
}

.sheet-app.editing .rating-control {
  border-color: rgba(30, 109, 143, 0.35);
  background: rgba(255, 255, 255, 0.16);
}

.armour-choice.selected,
.sheet-app.editing .armour-choice.selected,
.rating-control.selected,
.preview-rating-control.selected,
.sheet-app.editing .rating-control.selected {
  border-color: #981f1f;
  background: rgba(176, 24, 24, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.rating-control.selected,
.preview-rating-control.selected,
.sheet-app.editing .rating-control.selected {
  background: #111;
  border-color: #111;
}

.armour-choice:disabled,
.rating-control:disabled {
  cursor: default;
  opacity: 1;
}

.field-control {
  width: 100%;
  height: 100%;
  display: block;
  resize: none;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #111;
  -webkit-text-fill-color: #111;
  line-height: 1.18;
  letter-spacing: 0;
  padding: 3px 4px;
  overflow: hidden;
}

.field-control::placeholder {
  color: transparent;
}

.sheet-app.editing .field-control {
  border-color: rgba(30, 109, 143, 0.48);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.sheet-app.editing .field-control.lined-text {
  background: rgba(255, 255, 255, 0.38);
}

.sheet-app.editing .field-control::placeholder {
  color: rgba(58, 49, 39, 0.5);
}

.sheet-app.saved-view .field-control {
  pointer-events: none;
}

.field-control.short {
  text-align: center;
  font-weight: 760;
  line-height: 1;
}

.field-control.stat-score {
  padding: 0 2px;
  line-height: normal;
}

.field-control.align-right {
  text-align: right;
}

.field-control.red-text {
  color: #b01818;
  -webkit-text-fill-color: #b01818;
}

.field-control.gold-count {
  color: #6d5112;
  -webkit-text-fill-color: #6d5112;
  font-size: clamp(26px, 3.5cqw, 40px);
  font-weight: 850;
  line-height: 1;
  padding: 0 2px;
  text-align: center;
}

.field-control.aged-ink {
  color: #4f2e1b;
  -webkit-text-fill-color: #4f2e1b;
}

.field-control.gear-lines {
  line-height: 2.45cqw;
  padding: 0.32cqw 4px 0;
}

.field-control.feats-lines {
  line-height: 6.55cqw;
  padding: 0 4px;
}

.field-control.dark-box {
  font-weight: 760;
}

.field-control.title-line {
  font-weight: 650;
}

.field-control.script {
  font-family: Georgia, "Times New Roman", serif;
}

.field-control.small {
  font-size: 16px;
}

.field-control.medium {
  font-size: 18px;
}

.field-control.large {
  font-size: 22px;
}

.field-control:read-only {
  cursor: default;
}

.empty-read {
  opacity: 0;
}

.sheet-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 842 / 595;
  background: var(--paper);
  container-type: inline-size;
  overflow: hidden;
}

.preview-field {
  position: absolute;
  border-color: transparent;
  background: transparent;
  pointer-events: none;
  white-space: pre-wrap;
}

.sheet-preview .field-control.small {
  font-size: 1.9cqw;
}

.sheet-preview .field-control.medium {
  font-size: 2.14cqw;
}

.sheet-preview .field-control.large {
  font-size: 2.61cqw;
}

.sheet-preview .field-control.gold-count {
  font-size: 3.5cqw;
}

.preview-armour-choice-field {
  pointer-events: none;
}

.preview-armour-choice {
  position: absolute;
  display: block;
  border: 0.24cqw solid transparent;
  border-radius: 0.48cqw;
}

.preview-armour-choice.selected {
  border-color: #981f1f;
  background: rgba(176, 24, 24, 0.14);
}
