:root {
  color-scheme: dark;
  font-family:
    Pretendard, SUIT, "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body.resources-body {
  width: 100%;
  height: 100%;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
}

body.resources-body {
  background: #090b0a;
  color: #fff;
}

.resources-page,
.resources-board {
  width: 100%;
  height: 100svh;
  min-height: 38rem;
}

.resources-board {
  position: relative;
  overflow: hidden;
  background: #090b0a;
}

.resources-board-visual,
.resources-board-shade {
  position: absolute;
  inset: 0;
  margin: 0;
}

.resources-board-visual img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.58) contrast(1.04) brightness(0.72);
  object-fit: cover;
  object-position: 57% 48%;
  transform: scale(1.035);
}

.resources-board-shade {
  background:
    linear-gradient(90deg, rgb(2 4 3 / 72%) 0%, rgb(2 4 3 / 22%) 52%, rgb(2 4 3 / 28%) 100%),
    linear-gradient(0deg, rgb(2 4 3 / 45%) 0%, transparent 60%);
}

.resources-board-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - clamp(3rem, 8vw, 9rem)), 112rem);
  height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding: clamp(8.5rem, 15vh, 10.5rem) 0 clamp(2rem, 4vh, 3.5rem);
}

.resources-intro {
  width: min(100%, 40rem);
}

.resources-intro h1 {
  margin: 0;
  font-size: clamp(3.25rem, 4.6vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.resources-intro p {
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(0.82rem, 0.9vw, 0.96rem);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1.55;
  word-break: keep-all;
}

.resource-list {
  width: min(100%, 40rem);
  margin: 2rem 0 0;
  padding: 0;
  background: rgb(6 8 7 / 72%);
  list-style: none;
  -webkit-backdrop-filter: blur(13px) saturate(110%);
  backdrop-filter: blur(13px) saturate(110%);
}

.resource-entry {
  display: grid;
  min-height: 5rem;
  align-items: center;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.resource-entry > button {
  display: grid;
  width: calc(100% + 2.5rem);
  min-height: 5rem;
  align-items: center;
  margin: -0.95rem -1.25rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.resource-entry > button > span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  white-space: nowrap;
}

.resource-entry > button > span i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.resource-entry-ready {
  background: rgb(255 255 255 / 8%);
}

.resource-entry-ready::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 2.5rem;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.resource-entry {
  position: relative;
}

.resource-entry > button:hover,
.resource-entry > button:focus-visible {
  outline: 1px solid rgb(255 255 255 / 72%);
  outline-offset: -1px;
}

.resource-entry > button:hover > span i,
.resource-entry > button:focus-visible > span i {
  transform: translateX(0.22rem);
}

.resource-entry:last-child {
  border-bottom: 0;
}

.resource-entry h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.08rem, 1.25vw, 1.35rem);
  font-weight: 630;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.resource-entry p {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 64%);
  font-size: clamp(0.7rem, 0.76vw, 0.8rem);
  font-weight: 420;
  letter-spacing: -0.018em;
  line-height: 1.4;
  word-break: keep-all;
}

.resource-entry > span {
  color: rgb(255 255 255 / 70%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.resource-entry-file-viewer {
  padding-block: 0.72rem;
}

.resource-entry-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.resource-entry-actions a,
.resource-entry-actions button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 650;
  gap: 0.45rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.resource-entry-actions .resource-action-primary {
  border-color: #fff;
  background: #fff;
  color: #070908;
}

.resource-entry-actions .resource-action-secondary {
  background: rgb(0 0 0 / 18%);
}

.resource-entry-actions a:hover,
.resource-entry-actions a:focus-visible,
.resource-entry-actions button:hover,
.resource-entry-actions button:focus-visible {
  border-color: #fff;
  outline: 0;
}

.resource-entry-actions i {
  font-size: 0.9rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.resource-entry-actions a:hover i,
.resource-entry-actions a:focus-visible i {
  transform: translate(0.12rem, -0.12rem);
}

.file-viewer-guide {
  position: fixed;
  z-index: 8;
  display: grid;
  overflow: hidden;
  padding: clamp(8rem, 14vh, 9.5rem) clamp(2rem, 7vw, 8rem) clamp(6.5rem, 12vh, 8rem);
  background:
    radial-gradient(circle at 50% 20%, rgb(52 66 78 / 82%) 0%, rgb(20 27 30 / 92%) 35%, rgb(5 8 8 / 98%) 78%),
    #070a0a;
  color: #fff;
  inset: 0;
  opacity: 0;
  transition: opacity 320ms ease;
}

.file-viewer-guide[hidden] {
  display: none;
}

.file-viewer-guide.is-visible {
  opacity: 1;
}

.file-viewer-guide-ambient {
  position: absolute;
  background:
    linear-gradient(105deg, transparent 0 47%, rgb(255 255 255 / 3%) 47.1% 47.3%, transparent 47.4% 100%),
    radial-gradient(ellipse at 50% 42%, rgb(255 255 255 / 5%) 0%, transparent 62%);
  inset: 0;
  pointer-events: none;
}

.file-viewer-guide-close {
  position: absolute;
  z-index: 2;
  top: clamp(7.6rem, 13vh, 8.8rem);
  right: clamp(2rem, 4vw, 4.5rem);
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 66%);
  cursor: pointer;
  font: inherit;
  gap: 0.7rem;
}

.file-viewer-guide-close span {
  font-size: 0.62rem;
  font-weight: 620;
}

.file-viewer-guide-close kbd {
  min-width: 2.25rem;
  padding: 0.2rem 0.42rem;
  border: 1px solid rgb(255 255 255 / 22%);
  color: rgb(255 255 255 / 66%);
  font: inherit;
  font-size: 0.54rem;
  text-align: center;
}

.file-viewer-guide-close i {
  font-size: 1.2rem;
  font-style: normal;
}

.file-viewer-guide-close:hover,
.file-viewer-guide-close:focus-visible {
  color: #fff;
  outline: 0;
}

.file-viewer-guide-shell {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 58rem);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.file-viewer-guide-heading {
  text-align: center;
}

.file-viewer-guide-heading p,
.file-viewer-guide-heading h2 {
  margin: 0;
}

.file-viewer-guide-heading p {
  margin-bottom: 0.75rem;
  color: #b897ff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.file-viewer-guide-heading h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1;
}

.file-viewer-guide-stage {
  position: relative;
  min-height: 17rem;
  margin-top: clamp(1.5rem, 3vh, 2.4rem);
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.file-viewer-guide-panel {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 220ms ease, transform 340ms cubic-bezier(.16,1,.3,1);
}

.file-viewer-guide-panel[hidden] {
  display: none;
}

.file-viewer-guide-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.file-viewer-dropzone,
.file-viewer-drawing,
.file-viewer-preview {
  position: relative;
  display: flex;
  width: min(100%, 44rem);
  height: min(88%, 23rem);
  align-items: center;
  justify-content: center;
}

.file-viewer-dropzone {
  flex-direction: column;
  border: 1px dashed rgb(255 255 255 / 26%);
  background: rgb(2 5 5 / 28%);
  gap: 1rem;
}

.file-viewer-dropzone > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.file-viewer-dropzone span {
  padding: 0.45rem 0.58rem;
  border: 1px solid rgb(255 255 255 / 24%);
  color: rgb(255 255 255 / 72%);
  font-size: 0.62rem;
  font-weight: 700;
}

.file-viewer-dropzone > i {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 300;
}

.file-viewer-dropzone strong {
  font-size: 0.82rem;
  font-weight: 560;
}

.file-viewer-drawing,
.file-viewer-preview {
  overflow: hidden;
  background: rgb(2 5 5 / 26%);
}

.file-viewer-drawing-sheet {
  position: relative;
  width: min(72%, 28rem);
  aspect-ratio: 1.6;
  border: 1px solid rgb(255 255 255 / 38%);
  background:
    linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.file-viewer-drawing-sheet::before,
.file-viewer-drawing-sheet::after,
.file-viewer-drawing-sheet i {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 48%);
  content: "";
}

.file-viewer-drawing-sheet::before {
  width: 42%;
  height: 52%;
  border-radius: 50%;
  inset: 20% auto auto 12%;
}

.file-viewer-drawing-sheet::after {
  width: 31%;
  height: 38%;
  border-radius: 50%;
  inset: 29% 14% auto auto;
}

.file-viewer-drawing-sheet i:nth-child(1) {
  top: 50%;
  right: 8%;
  left: 8%;
  border-width: 1px 0 0;
}

.file-viewer-drawing-sheet i:nth-child(2) {
  top: 9%;
  bottom: 9%;
  left: 50%;
  border-width: 0 0 0 1px;
}

.file-viewer-drawing-sheet i:nth-child(3) {
  width: 8px;
  height: 8px;
  border-color: #b897ff;
  border-radius: 50%;
  inset: 48% auto auto 49%;
}

.file-viewer-drawing-sheet i:nth-child(4) {
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.5rem;
  height: 1rem;
}

.file-viewer-preview i {
  position: absolute;
  width: 7.2rem;
  height: 7.2rem;
  border: 1px solid rgb(255 255 255 / 48%);
  transform: rotate(45deg) skew(-7deg, -7deg);
}

.file-viewer-preview i:nth-child(2) {
  opacity: 0.55;
  transform: rotate(75deg) skew(-7deg, -7deg);
}

.file-viewer-preview i:nth-child(3) {
  opacity: 0.28;
  transform: rotate(105deg) skew(-7deg, -7deg);
}

.file-viewer-drawing > span,
.file-viewer-preview > span {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  color: rgb(255 255 255 / 48%);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.file-viewer-drawing small,
.file-viewer-preview small {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  color: rgb(255 255 255 / 42%);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.file-viewer-guide-summary {
  display: grid;
  align-items: center;
  padding-top: 1rem;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.file-viewer-guide-summary p {
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: 0.8rem;
  line-height: 1.55;
}

.file-viewer-guide-summary a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #070908;
  font-size: 0.7rem;
  font-weight: 680;
  gap: 0.5rem;
  text-decoration: none;
}

.file-viewer-guide-summary a i {
  font-size: 0.95rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.file-viewer-guide-summary a:hover i,
.file-viewer-guide-summary a:focus-visible i {
  transform: translate(0.14rem, -0.14rem);
}

.file-viewer-guide-sequence {
  position: absolute;
  z-index: 2;
  right: clamp(2rem, 9vw, 9rem);
  bottom: clamp(1.5rem, 4vh, 2.8rem);
  left: clamp(2rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.file-viewer-guide-sequence button {
  position: relative;
  display: grid;
  min-height: 3.8rem;
  align-content: end;
  padding: 1.15rem 0.6rem 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 36%);
  background: transparent;
  color: rgb(255 255 255 / 58%);
  cursor: pointer;
  font: inherit;
  gap: 0.35rem;
  text-align: center;
}

.file-viewer-guide-sequence button::before {
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid rgb(255 255 255 / 56%);
  border-radius: 50%;
  background: #101719;
  content: "";
  transform: translateX(-50%);
}

.file-viewer-guide-sequence button i {
  font-size: 0.55rem;
  font-style: normal;
}

.file-viewer-guide-sequence button span {
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 610;
}

.file-viewer-guide-sequence button:hover,
.file-viewer-guide-sequence button:focus-visible,
.file-viewer-guide-sequence button[aria-current="step"] {
  color: #fff;
  outline: 0;
}

.file-viewer-guide-sequence button[aria-current="step"]::before {
  width: 1rem;
  height: 1rem;
  top: -0.52rem;
  border-color: #b897ff;
  background: #b897ff;
  box-shadow: 0 0 0 0.25rem rgb(184 151 255 / 12%);
}

/* Repair request builder */

.resources-body[data-resources-view="tool"] {
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: #090b0a;
}

.resources-body[data-resources-view="tool"] .resources-page {
  height: auto;
  min-height: 100svh;
}

.resources-body[data-resources-view="tool"] .resources-board {
  position: fixed;
  z-index: 0;
  inset: 0;
}

.resources-board-shell,
.resources-board-visual img {
  transition: opacity 420ms ease, transform 700ms cubic-bezier(.16,1,.3,1), filter 500ms ease;
}

.resources-body[data-resources-view="tool"] .resources-board-shell,
.resources-body[data-resources-view="guide"] .resources-board-shell {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  visibility: hidden;
}

.resources-body[data-resources-view="tool"] .resources-board-visual img {
  filter: saturate(.48) contrast(1.06) brightness(.58);
  transform: scale(1.065);
}

.repair-tool {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  background: transparent;
  color: #fff;
}

.resources-body:not([data-standalone="true"]) .repair-tool::before {
  position: fixed;
  z-index: 0;
  background:
    linear-gradient(90deg, rgb(2 5 4 / 78%) 0%, rgb(2 5 4 / 37%) 31%, rgb(2 5 4 / 30%) 63%, rgb(2 5 4 / 72%) 100%),
    radial-gradient(ellipse at 52% 18%, rgb(28 34 31 / 13%) 0%, rgb(3 6 5 / 26%) 52%, rgb(2 4 3 / 66%) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
}

.resources-body[data-standalone="true"] .repair-tool {
  background: #0b0e0d;
}

.repair-tool-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(2rem, 6vw, 7rem)), 112rem);
  margin-inline: auto;
  padding: clamp(10rem, 15vh, 12rem) 0 5rem;
  animation: repair-tool-enter 520ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes repair-tool-enter {
  from { transform: translateY(1.5rem); }
  to { transform: translateY(0); }
}

.repair-tool-header {
  display: grid;
  align-items: end;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}

.repair-tool-header > div:nth-child(2) {
  align-self: end;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.repair-back {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 68%);
  cursor: pointer;
  font: inherit;
  font-size: 0.64rem;
  grid-column: 2;
  grid-row: 1;
}

.repair-back i {
  font-size: 0.92rem;
  font-style: normal;
}

.repair-back kbd {
  padding: 0.15rem 0.3rem;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(0 0 0 / 16%);
  color: rgb(255 255 255 / 52%);
  font: inherit;
  font-size: 0.52rem;
}

.repair-tool-header > div:nth-child(2) > p,
.repair-panel-heading p,
.repair-items-heading p,
.repair-preview-sticky header p {
  margin: 0 0 0.45rem;
  color: rgb(255 255 255 / 46%);
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.16em;
}

.repair-tool-header h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3.6vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.repair-tool-header > div:nth-child(2) > span {
  display: block;
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 62%);
  font-size: 0.8rem;
  line-height: 1.5;
  word-break: keep-all;
}

.repair-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  grid-column: 2;
  grid-row: 2;
}

.repair-header-actions button,
.repair-preview-sticky > button,
.repair-items-heading button,
.repair-add-large {
  min-height: 2.7rem;
  padding: 0 0.95rem;
  border: 1px solid rgb(255 255 255 / 26%);
  background: rgb(255 255 255 / 4%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 620;
}

.repair-header-actions button:hover,
.repair-header-actions button:focus-visible,
.repair-preview-sticky > button:hover,
.repair-preview-sticky > button:focus-visible,
.repair-items-heading button:hover,
.repair-items-heading button:focus-visible,
.repair-add-large:hover,
.repair-add-large:focus-visible,
.repair-back:hover,
.repair-back:focus-visible {
  border-color: #fff;
  outline: none;
}

.repair-header-actions .repair-print-button,
.repair-preview-sticky > button {
  border-color: #e7ece9;
  background: #e7ece9;
  color: #111614;
}

.repair-header-actions button:disabled,
.repair-preview-sticky > button:disabled {
  cursor: default;
  opacity: 0.36;
}

.repair-save-state {
  margin-right: 0.4rem;
  color: rgb(255 255 255 / 48%);
  font-size: 0.62rem;
  white-space: nowrap;
}

.repair-save-state[data-state="saving"] {
  color: rgb(255 255 255 / 72%);
}

.repair-workspace {
  display: grid;
  align-items: start;
  margin-top: 2rem;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
}

.repair-editor {
  display: grid;
  gap: 1rem;
}

.repair-panel,
.repair-item,
.repair-preview-sticky {
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(7 10 9 / 72%);
  box-shadow: 0 1.4rem 4rem rgb(0 0 0 / 10%);
}

.repair-panel {
  padding: 1.3rem;
}

.repair-panel-heading,
.repair-items-heading,
.repair-item-header,
.repair-preview-sticky > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.repair-panel-heading h2,
.repair-items-heading h2,
.repair-preview-sticky h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 640;
  letter-spacing: -0.035em;
}

.repair-panel-heading > strong {
  color: #b99af5;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.repair-field-grid {
  display: grid;
  margin-top: 1.25rem;
  gap: 0.85rem;
}

.repair-field-grid-document {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.repair-field-grid-item {
  grid-template-columns: 1.1fr 0.82fr 1.2fr 0.45fr 0.9fr;
}

.repair-field,
.repair-card-size-select {
  display: grid;
  gap: 0.42rem;
}

.repair-field > span,
.repair-card-size-select > span,
.repair-choice-group legend {
  color: rgb(255 255 255 / 58%);
  font-size: 0.64rem;
  font-weight: 600;
}

.repair-field input,
.repair-field textarea,
.repair-card-size-select select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 19%);
  border-radius: 0;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.repair-field input,
.repair-card-size-select select {
  height: 2.8rem;
  padding: 0 0.75rem;
}

.repair-field textarea {
  min-height: 6.5rem;
  resize: vertical;
  padding: 0.7rem 0.75rem;
  line-height: 1.55;
}

.repair-field input:focus,
.repair-field textarea:focus,
.repair-card-size-select select:focus {
  border-color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 9%);
}

.repair-field input::placeholder,
.repair-field textarea::placeholder {
  color: rgb(255 255 255 / 28%);
}

.repair-card-size-select select option {
  background: #151a18;
  color: #fff;
}

.repair-output-settings {
  display: grid;
  margin-top: 1.15rem;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.repair-choice-group {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0.55rem;
}

.repair-choice-group legend {
  float: left;
  min-width: 6rem;
  padding: 0.82rem 0;
}

.repair-choice-group label {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  cursor: pointer;
}

.repair-choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.repair-choice-group label > span,
.repair-mixed-state {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
  border: 1px solid rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 66%);
  font-size: 0.72rem;
}

.repair-choice-group label > span small {
  color: rgb(255 255 255 / 36%);
  font-size: 0.58rem;
}

.repair-choice-group input:checked + span {
  border-color: #e3eae6;
  background: #e3eae6;
  color: #111614;
}

.repair-choice-group input:checked + span small {
  color: rgb(17 22 20 / 72%);
}

.repair-choice-group input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.repair-mixed-state {
  border-style: dashed;
}

.repair-items-section {
  margin-top: 0.8rem;
}

.repair-items-heading {
  margin-bottom: 0.9rem;
}

.repair-items-heading button i,
.repair-add-large i {
  margin-right: 0.25rem;
  font-style: normal;
}

.repair-items {
  display: grid;
  gap: 0.75rem;
}

.repair-item {
  padding: 1.15rem;
}

.repair-item-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.repair-item-identity {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.repair-item-identity span {
  color: #b99af5;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.repair-item-identity strong {
  font-size: 0.82rem;
  font-weight: 620;
}

.repair-item-actions {
  display: flex;
  align-items: end;
  gap: 0.42rem;
}

.repair-item-actions button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  background: transparent;
  color: rgb(255 255 255 / 72%);
  cursor: pointer;
  font: inherit;
}

.repair-item-actions button:hover,
.repair-item-actions button:focus-visible {
  border-color: #fff;
  color: #fff;
  outline: none;
}

.repair-item-actions button:disabled {
  cursor: default;
  opacity: 0.28;
}

.repair-item-request {
  margin-top: 0.85rem;
}

.repair-add-large {
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.75rem;
  border-style: dashed;
}

.repair-preview-sticky {
  position: sticky;
  top: 7.5rem;
  padding: 1.25rem;
}

.repair-preview-sticky dl {
  display: grid;
  margin: 1rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.repair-preview-sticky dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.repair-preview-sticky dt,
.repair-preview-sticky dd {
  margin: 0;
  font-size: 0.68rem;
}

.repair-preview-sticky dt {
  color: rgb(255 255 255 / 46%);
}

.repair-preview-sticky dd {
  color: rgb(255 255 255 / 82%);
}

.repair-card-sample {
  display: grid;
  min-height: 13.5rem;
  align-content: start;
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f4ef;
  color: #101310;
  gap: 0.75rem;
}

.repair-card-sample > div {
  display: grid;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #111;
  gap: 0.25rem;
}

.repair-card-sample > div span {
  font-size: 0.62rem;
  font-weight: 650;
}

.repair-card-sample > div strong {
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.repair-card-sample p,
.repair-card-sample h3,
.repair-card-sample small {
  margin: 0;
}

.repair-card-sample p {
  font-size: 0.65rem;
}

.repair-card-sample h3 {
  font-size: 0.92rem;
}

.repair-card-sample small {
  color: rgb(16 19 16 / 68%);
  font-size: 0.68rem;
  line-height: 1.45;
}

.repair-preview-note {
  margin: 0.85rem 0 0;
  color: rgb(255 255 255 / 42%);
  font-size: 0.62rem;
  line-height: 1.55;
}

.repair-preview-sticky > button {
  width: 100%;
  margin-top: 1rem;
}

.repair-print-root {
  display: none;
}

@media (max-width: 59.999rem) {
  .resources-board-visual img {
    object-position: 61% 50%;
  }

  .resources-board-shade {
    background:
      linear-gradient(90deg, rgb(2 4 3 / 60%) 0%, rgb(2 4 3 / 20%) 100%),
      linear-gradient(0deg, rgb(2 4 3 / 58%) 0%, transparent 74%);
  }

  .resources-board-shell {
    width: calc(100% - 2rem);
    justify-content: flex-start;
    padding: 7.2rem 0 1.5rem;
  }

  .resources-intro h1 {
    font-size: clamp(2.7rem, 12vw, 3.5rem);
  }

  .resources-intro p {
    margin-top: 0.65rem;
    font-size: 0.76rem;
  }

  .resource-list {
    margin-top: 1.5rem;
  }

  .resource-entry {
    min-height: 4.75rem;
    padding: 0.85rem 1rem;
    gap: 0.9rem;
  }

  .resource-entry > button {
    width: calc(100% + 2rem);
    min-height: 4.75rem;
    margin: -0.85rem -1rem;
    padding: 0.85rem 1rem;
    gap: 0.9rem;
  }

  .resource-entry-ready::before {
    left: 0;
  }

  .resource-entry h2 {
    font-size: 1.05rem;
  }

  .resource-entry p {
    font-size: 0.68rem;
  }

  .resource-entry > span {
    font-size: 0.58rem;
  }

  .resource-entry-file-viewer {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-entry-actions {
    width: 100%;
  }

  .resource-entry-actions a,
  .resource-entry-actions button {
    flex: 1;
  }

  .file-viewer-guide {
    padding: 6.8rem 1rem 7rem;
  }

  .file-viewer-guide-close {
    top: 5.25rem;
    right: 1rem;
  }

  .file-viewer-guide-heading h2 {
    max-width: 22rem;
    margin-inline: auto;
    font-size: clamp(1.9rem, 8vw, 2.7rem);
    line-height: 1.08;
  }

  .file-viewer-guide-stage {
    min-height: 14rem;
    margin-top: 1.25rem;
  }

  .file-viewer-dropzone,
  .file-viewer-drawing,
  .file-viewer-preview {
    width: 100%;
    height: 88%;
  }

  .file-viewer-guide-summary {
    padding-top: 0.8rem;
    gap: 0.8rem;
  }

  .file-viewer-guide-summary p {
    font-size: 0.68rem;
  }

  .file-viewer-guide-summary a {
    min-height: 2.55rem;
    padding-inline: 0.75rem;
  }

  .file-viewer-guide-sequence {
    right: 1rem;
    bottom: 1.1rem;
    left: 1rem;
  }

  .file-viewer-guide-sequence button {
    min-height: 3.2rem;
    padding-inline: 0.25rem;
  }

  .file-viewer-guide-sequence button span {
    font-size: 0.66rem;
  }
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) > p,
.resources-body[data-resources-tool="repair"] .repair-panel-heading p,
.resources-body[data-resources-tool="repair"] .repair-items-heading p,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky header p {
  color: rgb(255 255 255 / 66%);
  font-size: .62rem;
  font-weight: 620;
}

.resources-body[data-resources-tool="repair"] .repair-panel-heading h2,
.resources-body[data-resources-tool="repair"] .repair-items-heading h2,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky h2 {
  font-size: 1.08rem;
  font-weight: 660;
}

.resources-body[data-resources-tool="repair"] .repair-field > span,
.resources-body[data-resources-tool="repair"] .repair-card-size-select > span,
.resources-body[data-resources-tool="repair"] .repair-choice-group legend {
  color: rgb(255 255 255 / 80%);
  font-size: .68rem;
  font-weight: 590;
  line-height: 1.35;
}

.resources-body[data-resources-tool="repair"] .repair-field input,
.resources-body[data-resources-tool="repair"] .repair-field textarea,
.resources-body[data-resources-tool="repair"] .repair-card-size-select select {
  color: #fff;
  font-size: .78rem;
}

/* Repair request: one continuous editing surface instead of stacked cards. */

.resources-body[data-resources-tool="repair"] .repair-tool-shell {
  display: flex;
  flex-direction: column;
  padding: clamp(2.75rem, 5vh, 3.25rem) .5rem clamp(1.5rem, 3vh, 2.25rem) 0;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header {
  flex: 0 0 auto;
  margin-top: auto;
}

.resources-body[data-resources-tool="repair"] .repair-workspace {
  flex: 0 0 auto;
  margin-bottom: auto;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header {
  padding-bottom: 1.15rem;
  border-bottom-color: rgb(255 255 255 / 26%);
}

.resources-body[data-resources-tool="repair"] .repair-tool-header h1 {
  font-size: clamp(1.38rem, 1.8vw, 1.7rem);
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) > span {
  color: rgb(255 255 255 / 66%);
  font-size: .72rem;
}

.resources-body[data-resources-tool="repair"] .repair-header-actions button:not(.repair-print-button) {
  padding-inline: .35rem;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 32%);
  background: transparent;
}

.resources-body[data-resources-tool="repair"] .repair-workspace {
  margin-top: 1.45rem;
  gap: 1.5rem;
}

.resources-body[data-resources-tool="repair"] .repair-editor {
  gap: 1.35rem;
}

.resources-body[data-resources-tool="repair"] .repair-panel,
.resources-body[data-resources-tool="repair"] .repair-item {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.resources-body[data-resources-tool="repair"] .repair-panel {
  padding: .2rem 0 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.resources-body[data-resources-tool="repair"] .repair-panel-heading h2,
.resources-body[data-resources-tool="repair"] .repair-items-heading h2,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky h2 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -.035em;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) > p,
.resources-body[data-resources-tool="repair"] .repair-panel-heading p,
.resources-body[data-resources-tool="repair"] .repair-items-heading p,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky header p {
  color: rgb(255 255 255 / 56%);
  font-size: .58rem;
}

.resources-body[data-resources-tool="repair"] .repair-field > span,
.resources-body[data-resources-tool="repair"] .repair-card-size-select > span,
.resources-body[data-resources-tool="repair"] .repair-choice-group legend {
  color: rgb(255 255 255 / 72%);
  font-size: .64rem;
  font-weight: 560;
}

.resources-body[data-resources-tool="repair"] .repair-field input,
.resources-body[data-resources-tool="repair"] .repair-field textarea,
.resources-body[data-resources-tool="repair"] .repair-card-size-select select {
  border-color: rgb(255 255 255 / 26%);
  background: rgb(255 255 255 / 7%);
}

.resources-body[data-resources-tool="repair"] .repair-choice-group label > span,
.resources-body[data-resources-tool="repair"] .repair-mixed-state {
  min-height: 2.15rem;
  padding: 0 .2rem;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
  background: transparent;
  color: rgb(255 255 255 / 72%);
}

.resources-body[data-resources-tool="repair"] .repair-choice-group input:checked + span {
  border: 0;
  border-bottom: 2px solid #fff;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.resources-body[data-resources-tool="repair"] .repair-items-section {
  margin-top: .1rem;
}

.resources-body[data-resources-tool="repair"] .repair-item {
  padding: 1rem 0 1.15rem;
  border-top: 1px solid rgb(255 255 255 / 24%);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.resources-body[data-resources-tool="repair"] .repair-item-header {
  padding-bottom: .85rem;
  border-bottom-color: rgb(255 255 255 / 16%);
}

.resources-body[data-resources-tool="repair"] .repair-item-identity strong {
  color: #fff;
  font-size: .82rem;
}

.resources-body[data-resources-tool="repair"] .repair-items-heading button,
.resources-body[data-resources-tool="repair"] .repair-add-large {
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 30%);
  background: transparent;
}

.resources-body[data-resources-tool="repair"] .repair-add-large {
  border-top: 1px dashed rgb(255 255 255 / 24%);
  border-bottom: 0;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky {
  padding: .25rem 0 .25rem 1.1rem;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 24%);
  background: linear-gradient(90deg, rgb(3 6 5 / 40%), transparent 82%);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dl > div {
  border-bottom-color: rgb(255 255 255 / 17%);
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dt {
  color: rgb(255 255 255 / 62%);
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dd {
  color: #fff;
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-tool="repair"] .repair-tool-shell {
    padding: 1rem .35rem 1.75rem 0;
  }

  .resources-body[data-resources-tool="repair"] .repair-workspace {
    margin-top: 1.25rem;
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-sticky {
    padding: 1.2rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 24%);
    border-left: 0;
    background: transparent;
  }
}

/* Drawing viewer shares the established viewer-card and guide workspace. */

.resources-body:not([data-resources-view="guide"]) .resource-entry-drawing-viewer {
  padding-block: 1.1rem;
}

.resources-body[data-resources-view="guide"] .resource-entry-drawing-viewer.is-detail-open {
  align-items: center;
  border-top-color: rgb(255 255 255 / 48%);
  border-bottom-color: rgb(255 255 255 / 48%);
  background: rgb(255 255 255 / 9%);
  box-shadow: inset 2px 0 #fff;
}

.resources-body[data-resources-view="guide"] .resource-entry-drawing-viewer.is-detail-open h2 {
  color: #fff;
  font-size: clamp(1.12rem, 1.3vw, 1.3rem);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-drawing-viewer.is-detail-open {
  border-color: rgb(255 255 255 / 22%);
  background: transparent;
  box-shadow: inset 0 0 rgb(255 255 255 / 0%);
}

@media (max-width: 59.999rem) {
  .resources-body:not([data-resources-view="guide"]) .resource-entry-drawing-viewer {
    min-height: 5.15rem;
    align-items: center;
    padding: .82rem 0;
    gap: .8rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .resources-body[data-resources-view="guide"] .resource-entry-drawing-viewer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-drawing-viewer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 36rem) {
  .resources-body:not([data-resources-view="guide"]) .resource-entry-drawing-viewer {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On narrow screens the repair form follows the page flow. The resource list
   keeps its own short scroll area, while the form and output remain fully
   reachable without a second, visually hidden scroll container. */
@media (max-width: 59.999rem) {
  html:has(body.resources-body[data-resources-view="guide"][data-resources-tool="repair"]),
  body.resources-body[data-resources-view="guide"][data-resources-tool="repair"] {
    height: auto;
    overflow-y: auto !important;
  }

  .resources-body[data-resources-tool="repair"] .resources-page,
  .resources-body[data-resources-tool="repair"] .resources-board {
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
  }

  .resources-body[data-resources-tool="repair"] .resources-board-shell {
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
    grid-template-rows: minmax(0, 13rem) auto !important;
  }

  .resources-body[data-resources-tool="repair"] .resource-list {
    max-height: 13rem !important;
  }

  .resources-body[data-resources-tool="repair"] .repair-tool,
  .resources-body[data-resources-tool="repair"] .repair-tool-shell {
    height: auto !important;
    overflow: visible !important;
  }
}

/* Minimal repair input: keep document mechanics in the output rail. */

.resources-body[data-resources-tool="repair"] .repair-tool-header,
.resources-body[data-resources-tool="repair"] .repair-workspace {
  width: min(100%, 52rem);
}

.resources-body[data-resources-tool="repair"] .repair-tool-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.resources-body[data-resources-tool="repair"] .repair-header-actions {
  align-self: center;
}

.resources-body[data-resources-tool="repair"] .repair-workspace {
  gap: 1.5rem;
  grid-template-columns: minmax(0, 34rem) 16rem;
}

.resources-body[data-resources-tool="repair"] .repair-editor {
  gap: 1.4rem;
}

.resources-body[data-resources-tool="repair"] .repair-document-panel {
  width: min(100%, 18rem);
  padding: 0 0 1.2rem;
}

.resources-body[data-resources-tool="repair"] .repair-document-panel .repair-field-grid {
  margin-top: 0;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-document .repair-field:first-child {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
}

.resources-body[data-resources-tool="repair"] .repair-items-heading {
  align-items: center;
  margin-bottom: .9rem;
}

.resources-body[data-resources-tool="repair"] .repair-items-heading h2 {
  margin: 0;
}

.resources-body[data-resources-tool="repair"] .repair-item {
  padding: .2rem 0 1.1rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-header {
  min-height: 2.5rem;
  align-items: center;
  padding: 0 0 .7rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-header > strong {
  color: rgb(255 255 255 / 78%);
  font-size: .72rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item {
  margin-top: 0;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(1),
.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(2) {
  width: auto;
  min-width: 9rem;
  max-width: 13rem;
  flex: 1 1 11rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(3) {
  width: 4rem;
  min-width: 4rem;
  max-width: 4rem;
  flex: 0 0 4rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-request {
  width: 100%;
  margin-top: .85rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-request textarea {
  min-height: 5.2rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky {
  position: static;
  padding-left: 1rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-settings {
  margin-top: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.resources-body[data-resources-tool="repair"] .repair-preview-settings .repair-output-settings {
  display: grid;
  margin-top: 0;
  gap: .85rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-settings .repair-choice-group {
  gap: .35rem .55rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dl {
  margin-top: .65rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-actions {
  display: grid;
  margin-top: .85rem;
  gap: .45rem;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.resources-body[data-resources-tool="repair"] .repair-preview-actions button {
  min-height: 2.35rem;
  border: 1px solid rgb(255 255 255 / 28%);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .64rem;
  cursor: pointer;
}

.resources-body[data-resources-tool="repair"] .repair-preview-actions .repair-print-button {
  border-color: #fff;
  background: #fff;
  color: #0b0e0d;
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-tool="repair"] .repair-header-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    grid-template-columns: none;
  }

  .resources-body[data-resources-tool="repair"] .repair-save-state {
    grid-column: auto;
  }

  .resources-body[data-resources-tool="repair"] .repair-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-sticky {
    padding-left: 0;
  }
}

/* Repair request as an in-place split workspace. */

.resources-body[data-resources-tool="repair"] .repair-tool {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
  background: transparent;
  color: #fff;
  opacity: 0;
  transform: translateX(2rem);
  transition:
    opacity 320ms ease 100ms,
    transform 680ms cubic-bezier(.16, 1, .3, 1);
}

.resources-body[data-resources-tool="repair"] .repair-tool::before {
  display: none;
}

.repair-tool[hidden] {
  display: none !important;
}

.resources-body[data-resources-tool="repair"] .repair-tool.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.resources-body[data-resources-tool="repair"][data-resources-closing="true"] .repair-tool {
  transition:
    opacity 240ms ease,
    transform 520ms cubic-bezier(.4, 0, .2, 1);
}

.resources-body[data-resources-tool="repair"] .resource-entry-repair.is-detail-open {
  align-items: center;
  border-top-color: rgb(255 255 255 / 48%);
  border-bottom-color: rgb(255 255 255 / 48%);
  background: rgb(255 255 255 / 9%);
  box-shadow: inset 2px 0 #fff;
}

.resources-body[data-resources-tool="repair"] .resource-entry-repair.is-detail-open h2 {
  color: #fff;
  font-size: clamp(1.12rem, 1.3vw, 1.3rem);
}

.resources-body[data-resources-tool="repair"] .resource-entry-repair.is-detail-open > button > span {
  color: #fff;
}

.resources-body[data-resources-tool="repair"][data-resources-closing="true"] .resource-entry-repair.is-detail-open {
  border-color: rgb(255 255 255 / 22%);
  background: transparent;
  box-shadow: inset 0 0 rgb(255 255 255 / 0%);
}

.resources-body[data-resources-tool="repair"][data-resources-closing="true"] .resource-entry-repair.is-detail-open h2 {
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  letter-spacing: -.045em;
}

.resources-body[data-resources-tool="repair"] .repair-tool-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 .5rem 3rem 0;
  overflow-y: auto;
  animation: none;
  overscroll-behavior: contain;
  scrollbar-color: rgb(255 255 255 / 34%) transparent;
  scrollbar-width: thin;
}

.resources-body[data-resources-tool="repair"] .repair-tool-shell::-webkit-scrollbar {
  width: 5px;
}

.resources-body[data-resources-tool="repair"] .repair-tool-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(255 255 255 / 32%);
}

.resources-body[data-resources-tool="repair"] .repair-tool-header,
.resources-body[data-resources-tool="repair"] .repair-workspace {
  width: min(100%, 60rem);
}

.resources-body[data-resources-tool="repair"] .repair-tool-header {
  display: grid;
  align-items: center;
  padding: .15rem 0 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  gap: .65rem 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}

.resources-body[data-resources-tool="repair"] .repair-back {
  min-height: 2rem;
  justify-self: start;
  padding: .3rem 0;
  color: rgb(255 255 255 / 68%);
  grid-column: 1;
  grid-row: 1;
}

.resources-body[data-resources-tool="repair"] .repair-back kbd {
  border-color: rgb(255 255 255 / 20%);
  background: rgb(0 0 0 / 16%);
  color: rgb(255 255 255 / 52%);
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) {
  align-self: start;
  grid-column: 1 / -1;
  grid-row: 2;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) > p,
.resources-body[data-resources-tool="repair"] .repair-panel-heading p,
.resources-body[data-resources-tool="repair"] .repair-items-heading p,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky header p {
  margin-bottom: .3rem;
  color: rgb(255 255 255 / 42%);
  font-size: .54rem;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) > span {
  margin-top: .35rem;
  color: rgb(255 255 255 / 52%);
  font-size: .68rem;
}

.resources-body[data-resources-tool="repair"] .repair-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  grid-column: 2;
  grid-row: 1;
}

.resources-body[data-resources-tool="repair"] .repair-save-state {
  margin-right: .2rem;
  color: rgb(255 255 255 / 44%);
  font-size: .58rem;
}

.resources-body[data-resources-tool="repair"] .repair-header-actions button,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky > button,
.resources-body[data-resources-tool="repair"] .repair-items-heading button,
.resources-body[data-resources-tool="repair"] .repair-add-large {
  min-height: 2.25rem;
  padding: 0 .7rem;
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 4%);
  color: #fff;
  font-size: .64rem;
}

.resources-body[data-resources-tool="repair"] .repair-header-actions .repair-print-button,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky > button {
  border-color: #fff;
  background: #fff;
  color: #0b0e0d;
}

.resources-body[data-resources-tool="repair"] .repair-workspace {
  display: grid;
  align-items: start;
  justify-content: start;
  margin-top: 1.15rem;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 42rem) 14rem;
}

.resources-body[data-resources-tool="repair"] .repair-editor {
  display: grid;
  min-width: 0;
  gap: 1.1rem;
}

.resources-body[data-resources-tool="repair"] .repair-panel,
.resources-body[data-resources-tool="repair"] .repair-item,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky {
  border-color: rgb(255 255 255 / 14%);
  background: rgb(4 7 6 / 48%);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.resources-body[data-resources-tool="repair"] .repair-panel {
  padding: 1rem;
}

.resources-body[data-resources-tool="repair"] .repair-panel-heading h2,
.resources-body[data-resources-tool="repair"] .repair-items-heading h2,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky h2 {
  color: #fff;
  font-size: .96rem;
}

.resources-body[data-resources-tool="repair"] .repair-panel-heading > strong,
.resources-body[data-resources-tool="repair"] .repair-item-identity span {
  color: #fff;
}

.resources-body[data-resources-tool="repair"] .repair-panel-heading > strong {
  font-size: 1rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  margin-top: .85rem;
  gap: .7rem .45rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-document .repair-field:nth-child(1) {
  flex: 1 1 12rem;
  max-width: 16rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-document .repair-field:nth-child(2) {
  flex: 0 1 8rem;
  width: 8rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-document .repair-field:nth-child(3) {
  flex: 0 1 9rem;
  width: 9rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-document .repair-field:nth-child(4) {
  flex: 0 1 8.75rem;
  width: 8.75rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(1) {
  flex: 0 1 8.5rem;
  width: 8.5rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(2),
.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(5) {
  flex: 0 1 7.5rem;
  width: 7.5rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(3) {
  flex: 0 1 9rem;
  width: 9rem;
  min-width: 9rem;
  max-width: 9rem;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item .repair-field:nth-child(4) {
  flex: 0 1 3.5rem;
  width: 3.5rem;
}

.resources-body[data-resources-tool="repair"] .repair-field > span,
.resources-body[data-resources-tool="repair"] .repair-card-size-select > span,
.resources-body[data-resources-tool="repair"] .repair-choice-group legend {
  color: rgb(255 255 255 / 54%);
  font-size: .58rem;
}

.resources-body[data-resources-tool="repair"] .repair-field input,
.resources-body[data-resources-tool="repair"] .repair-field textarea,
.resources-body[data-resources-tool="repair"] .repair-card-size-select select {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 5%);
  color: #fff;
  font-size: .74rem;
}

.resources-body[data-resources-tool="repair"] .repair-field input,
.resources-body[data-resources-tool="repair"] .repair-card-size-select select {
  height: 2.35rem;
  padding-inline: .62rem;
}

.resources-body[data-resources-tool="repair"] .repair-field textarea {
  min-height: 4.6rem;
  padding: .6rem .65rem;
}

.resources-body[data-resources-tool="repair"] .repair-field input:focus,
.resources-body[data-resources-tool="repair"] .repair-field textarea:focus,
.resources-body[data-resources-tool="repair"] .repair-card-size-select select:focus {
  border-color: rgb(255 255 255 / 68%);
  background: rgb(255 255 255 / 8%);
}

.resources-body[data-resources-tool="repair"] .repair-field input::placeholder,
.resources-body[data-resources-tool="repair"] .repair-field textarea::placeholder {
  color: rgb(255 255 255 / 26%);
}

.resources-body[data-resources-tool="repair"] .repair-card-size-select select option {
  background: #111513;
  color: #fff;
}

.resources-body[data-resources-tool="repair"] .repair-output-settings {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  margin-top: .85rem;
  gap: .75rem 1.5rem;
}

.resources-body[data-resources-tool="repair"] .repair-choice-group {
  flex-wrap: wrap;
  gap: .4rem;
}

.resources-body[data-resources-tool="repair"] .repair-choice-group legend {
  width: 100%;
  min-width: 0;
  padding: 0 0 .1rem;
}

.resources-body[data-resources-tool="repair"] .repair-choice-group label,
.resources-body[data-resources-tool="repair"] .repair-choice-group label > span,
.resources-body[data-resources-tool="repair"] .repair-mixed-state {
  min-height: 2.25rem;
}

.resources-body[data-resources-tool="repair"] .repair-choice-group label > span,
.resources-body[data-resources-tool="repair"] .repair-mixed-state {
  padding: 0 .65rem;
  border-color: rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 64%);
  font-size: .64rem;
}

.resources-body[data-resources-tool="repair"] .repair-choice-group input:checked + span {
  border-color: #fff;
  background: #fff;
  color: #0b0e0d;
}

.resources-body[data-resources-tool="repair"] .repair-items-section {
  margin-top: .25rem;
}

.resources-body[data-resources-tool="repair"] .repair-item {
  padding: 1rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-header,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky dl,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky dl > div {
  border-color: rgb(255 255 255 / 12%);
}

.resources-body[data-resources-tool="repair"] .repair-item-request {
  width: min(100%, 40rem);
  margin-top: .75rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-actions button {
  width: 2rem;
  height: 2rem;
  border-color: rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 68%);
}

.resources-body[data-resources-tool="repair"] .repair-add-large {
  min-height: 2.75rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-panel {
  min-width: 0;
  order: 0;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky {
  position: sticky;
  top: 0;
  display: block;
  padding: .9rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dl {
  margin-top: .75rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dl > div {
  padding: .5rem 0;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dt {
  color: rgb(255 255 255 / 46%);
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky dd {
  color: rgb(255 255 255 / 84%);
}

.resources-body[data-resources-tool="repair"] .repair-card-sample {
  min-height: 9.5rem;
  margin-top: .75rem;
  padding: .8rem;
  gap: .5rem;
}

.resources-body[data-resources-tool="repair"] .repair-card-sample > div strong {
  font-size: 1.08rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-note {
  color: rgb(255 255 255 / 38%);
}

@media (max-width: 74rem) {
  .resources-body[data-resources-tool="repair"] .repair-workspace {
    grid-template-columns: minmax(0, 42rem);
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-panel {
    width: min(100%, 32rem);
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-sticky {
    position: static;
    display: grid;
    gap: .8rem 1rem;
    grid-template-columns: minmax(0, 1fr) 11rem;
  }

  .resources-body[data-resources-tool="repair"] .repair-card-sample {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-sticky > header,
  .resources-body[data-resources-tool="repair"] .repair-preview-sticky dl,
  .resources-body[data-resources-tool="repair"] .repair-preview-note,
  .resources-body[data-resources-tool="repair"] .repair-preview-sticky > button {
    grid-column: 1;
  }
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-tool="repair"] .repair-tool {
    grid-column: 1;
    grid-row: 2;
    transform: translateY(1.5rem);
  }

  .resources-body[data-resources-tool="repair"] .repair-tool.is-visible {
    transform: translateY(0);
  }

  .resources-body[data-resources-tool="repair"] .repair-tool-shell {
    padding: 0 .35rem 2rem 0;
  }

  .resources-body[data-resources-tool="repair"] .repair-tool-header {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .resources-body[data-resources-tool="repair"] .repair-back {
    grid-column: 1;
    grid-row: 1;
  }

  .resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .resources-body[data-resources-tool="repair"] .repair-header-actions {
    display: grid;
    width: 100%;
    justify-content: stretch;
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resources-body[data-resources-tool="repair"] .repair-save-state {
    grid-column: 1 / -1;
  }

  .resources-body[data-resources-tool="repair"] .repair-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-panel {
    width: 100%;
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-sticky {
    display: block;
  }

  .resources-body[data-resources-tool="repair"] .repair-card-sample,
  .resources-body[data-resources-tool="repair"] .repair-preview-sticky > header,
  .resources-body[data-resources-tool="repair"] .repair-preview-sticky dl,
  .resources-body[data-resources-tool="repair"] .repair-preview-note,
  .resources-body[data-resources-tool="repair"] .repair-preview-sticky > button {
    grid-column: auto;
    grid-row: auto;
  }

  .resources-body[data-resources-tool="repair"] .repair-card-sample {
    min-height: 8.5rem;
    margin-top: .75rem;
  }

  .resources-body[data-resources-tool="repair"] .repair-item-header {
    align-items: start;
    flex-direction: column;
  }

  .resources-body[data-resources-tool="repair"] .repair-item-actions {
    width: 100%;
  }
}

@media (max-width: 74rem) {
  .repair-tool-shell {
    width: calc(100% - 2rem);
    padding-top: 9rem;
  }

  .repair-tool-header {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .repair-tool-header > div:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .repair-back {
    grid-column: 2;
    grid-row: 1;
  }

  .repair-header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

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

  .repair-preview-sticky {
    position: static;
  }

  .repair-preview-panel {
    order: -1;
  }

  .repair-preview-sticky {
    display: grid;
    align-items: start;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
  }

  .repair-preview-sticky > header,
  .repair-preview-sticky dl,
  .repair-preview-note,
  .repair-preview-sticky > button {
    grid-column: 1;
  }

  .repair-card-sample {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin-top: 0;
  }
}

@media (max-width: 48rem) {
  .repair-tool-shell {
    padding-top: 6.7rem;
  }

  .repair-tool-header {
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .repair-back {
    grid-column: 2;
    grid-row: 1;
    width: max-content;
  }

  .repair-tool-header > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .repair-tool-header h1 {
    font-size: 2.4rem;
  }

  .repair-header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .repair-save-state {
    grid-column: 1 / -1;
  }

  .repair-header-actions button {
    padding-inline: 0.5rem;
  }

  .repair-field-grid-document,
  .repair-field-grid-item,
  .repair-output-settings {
    grid-template-columns: 1fr;
  }

  .repair-field-grid-document {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repair-field-wide {
    grid-column: 1 / -1;
  }

  .repair-choice-group {
    flex-wrap: wrap;
  }

  .repair-choice-group legend {
    width: 100%;
    min-width: 0;
    padding: 0 0 0.15rem;
  }

  .repair-preview-sticky {
    grid-template-columns: 1fr;
  }

  .repair-card-sample,
  .repair-preview-sticky > header,
  .repair-preview-sticky dl,
  .repair-preview-note,
  .repair-preview-sticky > button {
    grid-column: 1;
    grid-row: auto;
  }

  .repair-card-sample {
    min-height: 11rem;
  }

  .repair-item-header {
    align-items: start;
    flex-direction: column;
  }

  .repair-item-actions {
    width: 100%;
  }

  .repair-card-size-select {
    margin-right: auto;
  }

  .repair-card-size-select select {
    width: 8rem;
  }
}

@media (max-width: 25rem) {
  .repair-tool-shell {
    width: calc(100% - 1rem);
  }

  .repair-panel,
  .repair-item,
  .repair-preview-sticky {
    padding: 1rem;
  }

  .repair-field-grid-document {
    grid-template-columns: 1fr;
  }

  .repair-field-wide {
    grid-column: auto;
  }
}

body.resources-body[data-standalone="true"] .repair-back {
  display: none;
}

/* Light resource surface */

:root {
  color-scheme: light;
}

body.resources-body,
.resources-board,
.resources-body[data-resources-view="tool"],
.resources-body[data-standalone="true"] .repair-tool {
  background: #eceeea;
  color: #171918;
}

.resources-body:not([data-standalone="true"]) .repair-tool::before {
  background: transparent;
}

.resources-intro p,
.resource-entry p,
.resource-entry > span {
  color: rgb(23 25 24 / 62%);
}

.resource-list {
  border: 1px solid rgb(23 25 24 / 14%);
  background: rgb(255 255 255 / 62%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.resource-entry {
  border-bottom-color: rgb(23 25 24 / 14%);
}

.resource-entry-ready {
  background: rgb(255 255 255 / 78%);
}

.resource-entry-ready::before {
  background: #171918;
}

.resource-entry h2,
.resource-entry > button > span {
  color: #171918;
}

.resource-entry > button:hover,
.resource-entry > button:focus-visible {
  outline-color: rgb(23 25 24 / 72%);
}

.resource-entry-actions a,
.resource-entry-actions button {
  border-color: rgb(23 25 24 / 24%);
  color: #171918;
}

.resource-entry-actions .resource-action-primary {
  border-color: #171918;
  background: #171918;
  color: #fff;
}

.resource-entry-actions .resource-action-secondary {
  background: rgb(255 255 255 / 42%);
}

.resource-entry-actions a:hover,
.resource-entry-actions a:focus-visible,
.resource-entry-actions button:hover,
.resource-entry-actions button:focus-visible {
  border-color: #171918;
}

.repair-tool {
  color: #171918;
}

.repair-tool-header {
  border-bottom-color: rgb(23 25 24 / 22%);
}

.repair-back {
  color: rgb(23 25 24 / 66%);
}

.repair-back kbd {
  border-color: rgb(23 25 24 / 22%);
  background: rgb(255 255 255 / 42%);
  color: rgb(23 25 24 / 74%);
}

.repair-tool-header > div:nth-child(2) > p,
.repair-panel-heading p,
.repair-items-heading p,
.repair-preview-sticky header p {
  color: rgb(23 25 24 / 68%);
}

.repair-tool-header > div:nth-child(2) > span,
.repair-save-state,
.repair-save-state[data-state="saving"] {
  color: rgb(23 25 24 / 62%);
}

.repair-header-actions button,
.repair-preview-sticky > button,
.repair-items-heading button,
.repair-add-large {
  border-color: rgb(23 25 24 / 25%);
  background: rgb(255 255 255 / 34%);
  color: #171918;
}

.repair-header-actions button:hover,
.repair-header-actions button:focus-visible,
.repair-preview-sticky > button:hover,
.repair-preview-sticky > button:focus-visible,
.repair-items-heading button:hover,
.repair-items-heading button:focus-visible,
.repair-add-large:hover,
.repair-add-large:focus-visible,
.repair-back:hover,
.repair-back:focus-visible {
  border-color: #171918;
}

.repair-header-actions .repair-print-button,
.repair-preview-sticky > button {
  border-color: #171918;
  background: #171918;
  color: #fff;
}

.repair-panel,
.repair-item,
.repair-preview-sticky {
  border-color: rgb(23 25 24 / 15%);
  background: rgb(255 255 255 / 68%);
  box-shadow: 0 1.4rem 4rem rgb(23 25 24 / 5%);
}

.repair-panel-heading > strong,
.repair-item-identity span {
  color: #7654c4;
}

.repair-field > span,
.repair-card-size-select > span,
.repair-choice-group legend {
  color: rgb(23 25 24 / 62%);
}

.repair-field input,
.repair-field textarea,
.repair-card-size-select select {
  border-color: rgb(23 25 24 / 20%);
  background: rgb(255 255 255 / 66%);
  color: #171918;
}

.repair-field input:focus,
.repair-field textarea:focus,
.repair-card-size-select select:focus {
  border-color: rgb(23 25 24 / 72%);
  background: #fff;
}

.repair-field input::placeholder,
.repair-field textarea::placeholder {
  color: rgb(23 25 24 / 34%);
}

.repair-card-size-select select option {
  background: #fff;
  color: #171918;
}

.repair-choice-group label > span,
.repair-mixed-state {
  border-color: rgb(23 25 24 / 20%);
  color: rgb(23 25 24 / 70%);
}

.repair-choice-group label > span small {
  color: rgb(23 25 24 / 68%);
}

.repair-choice-group input:checked + span {
  border-color: #171918;
  background: #171918;
  color: #fff;
}

.repair-choice-group input:checked + span small {
  color: rgb(255 255 255 / 68%);
}

.repair-choice-group input:focus-visible + span {
  outline-color: #171918;
}

.repair-item-header,
.repair-preview-sticky dl,
.repair-preview-sticky dl > div {
  border-color: rgb(23 25 24 / 13%);
}

.repair-item-actions button {
  border-color: rgb(23 25 24 / 20%);
  color: rgb(23 25 24 / 72%);
}

.repair-item-actions button:hover,
.repair-item-actions button:focus-visible {
  border-color: #171918;
  color: #171918;
}

.repair-preview-sticky dt,
.repair-preview-note {
  color: rgb(23 25 24 / 68%);
}

.repair-preview-sticky dd {
  color: rgb(23 25 24 / 84%);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body.resources-body {
    width: auto;
    height: auto;
    min-width: 0;
    overflow: visible;
    background: #fff;
    color: #111;
  }

  .resources-board,
  .file-viewer-guide,
  .repair-tool,
  body.resources-body > header,
  body.resources-body > footer {
    display: none !important;
  }

  .resources-page {
    width: auto;
    height: auto;
    min-height: 0;
  }

  .repair-print-root {
    display: block;
    color: #111;
    font-family: Pretendard, SUIT, "Noto Sans KR", Arial, sans-serif;
  }

  .print-page {
    width: 194mm;
    min-height: 281mm;
    margin: 0 auto;
    background: #fff;
    break-after: page;
    page-break-after: always;
  }

  .print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-list-page {
    padding: 4mm 2mm 0;
  }

  .print-list-header {
    display: grid;
    align-items: end;
    padding-bottom: 5mm;
    border-bottom: 0.7mm solid #111;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .print-list-header p,
  .print-list-header h1,
  .print-list-header strong {
    margin: 0;
  }

  .print-list-header p {
    margin-bottom: 1.5mm;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .print-list-header h1 {
    font-size: 22pt;
    letter-spacing: -0.05em;
  }

  .print-list-header strong {
    font-size: 15pt;
    letter-spacing: 0.04em;
  }

  .print-list-meta {
    display: grid;
    margin: 4mm 0 5mm;
    border-top: 0.2mm solid #999;
    border-left: 0.2mm solid #999;
    grid-template-columns: repeat(4, 1fr);
  }

  .print-list-meta > div {
    min-height: 12mm;
    padding: 2mm 2.5mm;
    border-right: 0.2mm solid #999;
    border-bottom: 0.2mm solid #999;
  }

  .print-list-meta span,
  .print-list-meta b {
    display: block;
  }

  .print-list-meta span {
    margin-bottom: 1mm;
    color: #666;
    font-size: 6.5pt;
  }

  .print-list-meta b {
    font-size: 8.5pt;
    font-weight: 600;
  }

  .print-repair-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-repair-table thead {
    display: table-header-group;
  }

  .print-repair-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-repair-table th,
  .print-repair-table td {
    padding: 2.2mm 1.4mm;
    border: 0.2mm solid #777;
    font-size: 7.2pt;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: left;
    vertical-align: top;
  }

  .print-repair-table th {
    background: #eceeea;
    font-size: 6.7pt;
    font-weight: 700;
  }

  .print-repair-table th:nth-child(1) { width: 15%; }
  .print-repair-table th:nth-child(2) { width: 13%; }
  .print-repair-table th:nth-child(3) { width: 10%; }
  .print-repair-table th:nth-child(4) { width: 15%; }
  .print-repair-table th:nth-child(5) { width: 6%; }
  .print-repair-table th:nth-child(6) { width: 31%; }
  .print-repair-table th:nth-child(7) { width: 10%; }

  .print-repair-table td:first-child {
    font-weight: 750;
    letter-spacing: 0.02em;
  }

  .print-list-note {
    margin: 3mm 0 0;
    color: #555;
    font-size: 6.5pt;
  }

  .print-card-page {
    display: grid;
    place-items: center;
  }

  .print-card-grid {
    display: grid;
    align-content: center;
    justify-content: center;
  }

  .print-card-grid-small {
    width: 150mm;
    min-height: 260mm;
    grid-template-columns: repeat(3, 50mm);
    grid-auto-rows: 65mm;
  }

  .print-card-grid-large {
    width: 150mm;
    min-height: 276mm;
    grid-template-columns: repeat(2, 75mm);
    grid-auto-rows: 92mm;
  }

  .print-repair-card {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: 4mm;
    border: 0.25mm dashed #777;
    background: #fff;
    color: #111;
  }

  .print-card-grid-small .print-repair-card {
    width: 50mm;
    height: 65mm;
    padding: 3mm;
  }

  .print-card-grid-large .print-repair-card {
    width: 75mm;
    height: 92mm;
  }

  .print-card-cut {
    position: absolute;
    top: 1mm;
    right: 1.5mm;
    color: #777;
    font-size: 6pt;
  }

  .print-card-brand {
    overflow: hidden;
    margin: 0;
    font-size: 7pt;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-card-id {
    margin: 1mm 0 2mm;
    padding-bottom: 1.8mm;
    border-bottom: 0.6mm solid #111;
    font-size: 15pt;
    font-weight: 780;
    letter-spacing: 0.035em;
    line-height: 1;
  }

  .print-card-grid-large .print-card-id {
    margin-top: 1.5mm;
    font-size: 21pt;
  }

  .print-card-meta {
    display: grid;
    margin-bottom: 1.5mm;
    gap: 0.9mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .print-card-meta > div {
    min-width: 0;
  }

  .print-card-meta span,
  .print-card-request span {
    display: block;
    margin-bottom: 0.4mm;
    color: #666;
    font-size: 5.5pt;
  }

  .print-card-meta b {
    display: block;
    overflow: hidden;
    font-size: 7pt;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-card-grid-large .print-card-meta b {
    font-size: 8.5pt;
  }

  .print-card-request {
    flex: 1;
    min-height: 0;
    margin-top: 1mm;
    padding-top: 1.5mm;
    border-top: 0.2mm solid #999;
  }

  .print-card-request p {
    overflow: hidden;
    margin: 0;
    font-size: 7.4pt;
    font-weight: 620;
    line-height: 1.32;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .print-card-grid-large .print-card-request p {
    font-size: 9.2pt;
    line-height: 1.42;
  }

  .print-repair-card[data-density="compact"] .print-card-request p {
    font-size: 6.5pt;
    line-height: 1.25;
  }

  .print-card-grid-large .print-repair-card[data-density="compact"] .print-card-request p {
    font-size: 8pt;
  }

  .print-repair-card[data-density="dense"] .print-card-request p {
    font-size: 5.7pt;
    line-height: 1.18;
  }

  .print-card-grid-large .print-repair-card[data-density="dense"] .print-card-request p {
    font-size: 7pt;
  }
}

@media (max-width: 24rem) {
  .resources-board-shell {
    padding-top: 6.5rem;
  }

  .resource-entry {
    min-height: 4.5rem;
  }

  .resource-entry p {
    overflow: hidden;
    max-width: 14rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .file-viewer-guide-close span,
  .file-viewer-guide-close kbd {
    display: none;
  }

  .file-viewer-guide-stage {
    min-height: 12.5rem;
  }

  .file-viewer-guide-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-viewer-guide-summary a {
    display: none;
  }

  .file-viewer-dropzone span {
    padding: 0.35rem 0.42rem;
    font-size: 0.52rem;
  }
}

@media (max-height: 42rem) and (min-width: 60rem) {
  .resources-board-shell {
    padding-top: 7.5rem;
    padding-bottom: 1.25rem;
  }

  .resources-intro h1 {
    font-size: 3.6rem;
  }

  .resource-list {
    margin-top: 1.25rem;
  }

  .resource-entry {
    min-height: 4.3rem;
    padding-block: 0.7rem;
  }
}

/* Resource-native focused guide */

.file-viewer-guide {
  position: fixed;
  z-index: 900;
  display: grid;
  overflow: hidden;
  padding: clamp(8.8rem, 16vh, 10rem) 1rem 2rem;
  background: rgb(12 15 13 / 70%);
  color: #fff;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  -webkit-backdrop-filter: blur(9px) brightness(.52) saturate(.7);
  backdrop-filter: blur(9px) brightness(.52) saturate(.7);
}

.file-viewer-guide[hidden] {
  display: none;
}

.file-viewer-guide.is-visible {
  opacity: 1;
}

.resources-body[data-resources-view="guide"] .resources-board-shell {
  opacity: 0.46;
  filter: brightness(.58);
  pointer-events: none;
  transform: scale(.985);
  visibility: visible;
}

.file-viewer-guide-shell {
  position: relative;
  z-index: 1;
  display: block;
  overflow: auto;
  width: min(100%, 48rem);
  height: max-content;
  max-height: 100%;
  min-height: 0;
  margin: auto;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(15 18 16 / 94%);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 18%);
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 320ms ease 80ms, transform 620ms cubic-bezier(.16,1,.3,1) 80ms;
  scrollbar-width: thin;
}

.file-viewer-guide.is-visible .file-viewer-guide-shell {
  opacity: 1;
  transform: translateY(0);
}

.file-viewer-guide-heading {
  display: grid;
  align-items: end;
  padding: 1.25rem 1.35rem 1.4rem;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  gap: 1rem 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.file-viewer-guide-close {
  position: static;
  display: inline-flex;
  width: max-content;
  min-height: 1.8rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 62%);
  cursor: pointer;
  font: inherit;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

.file-viewer-guide-close i {
  font-size: 0.9rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.file-viewer-guide-close span {
  display: inline;
  font-size: 0.68rem;
  font-weight: 600;
}

.file-viewer-guide-close:hover,
.file-viewer-guide-close:focus-visible {
  color: #fff;
  outline: 0;
}

.file-viewer-guide-close:hover i,
.file-viewer-guide-close:focus-visible i {
  transform: translateX(-0.18rem);
}

.file-viewer-guide-heading > div p,
.file-viewer-guide-heading > div h2,
.file-viewer-guide-heading > div > span {
  margin: 0;
}

.file-viewer-guide-heading > div p {
  margin-bottom: 0.55rem;
  color: rgb(255 255 255 / 48%);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.file-viewer-guide-heading > div h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.file-viewer-guide-heading > div > span {
  display: block;
  margin-top: 0.7rem;
  color: rgb(255 255 255 / 60%);
  font-size: 0.72rem;
  line-height: 1.5;
}

.file-viewer-guide-heading > a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  background: #fff;
  color: #161916;
  font-size: 0.68rem;
  font-weight: 680;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.file-viewer-guide-heading > a i {
  font-size: 0.9rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.file-viewer-guide-heading > a:hover i,
.file-viewer-guide-heading > a:focus-visible i {
  transform: translate(0.12rem, -0.12rem);
}

.file-viewer-guide-list {
  display: block;
}

.file-viewer-guide-item {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: transparent;
  transition: background 260ms ease;
}

.file-viewer-guide-item:last-child {
  border-bottom: 0;
}

.file-viewer-guide-item.is-active {
  background: rgb(255 255 255 / 5%);
}

.file-viewer-guide-item > button {
  display: flex;
  width: 100%;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.35rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.file-viewer-guide-item > button:hover,
.file-viewer-guide-item > button:focus-visible {
  background: rgb(255 255 255 / 4%);
  outline: 0;
}

.file-viewer-guide-item > button > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.file-viewer-guide-item > button > span > i {
  color: rgb(255 255 255 / 60%);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 650;
}

.file-viewer-guide-item > button > span > span {
  display: grid;
  gap: 0.3rem;
}

.file-viewer-guide-item > button strong {
  font-size: 1rem;
  font-weight: 630;
  letter-spacing: -0.03em;
}

.file-viewer-guide-item > button small {
  color: rgb(255 255 255 / 56%);
  font-size: 0.66rem;
  line-height: 1.35;
}

.file-viewer-guide-item > button > b {
  color: rgb(255 255 255 / 62%);
  font-size: 1.15rem;
  font-weight: 300;
}

.file-viewer-guide-panel {
  position: static;
  display: grid;
  overflow: hidden;
  opacity: 1;
  place-items: stretch;
  transform: none;
  transition: grid-template-rows 540ms cubic-bezier(.16,1,.3,1), opacity 360ms ease;
  grid-template-rows: 0fr;
}

.file-viewer-guide-item.is-active .file-viewer-guide-panel {
  opacity: 1;
  grid-template-rows: 1fr;
}

.file-viewer-guide-item:not(.is-active) .file-viewer-guide-panel {
  opacity: 0;
}

.file-viewer-guide-panel-inner {
  width: 100%;
  overflow: hidden;
  min-height: 0;
  padding: 0 1.35rem;
}

.file-viewer-guide-item.is-active .file-viewer-guide-panel-inner {
  padding-bottom: 1.25rem;
}

.file-viewer-dropzone,
.file-viewer-drawing,
.file-viewer-preview {
  position: relative;
  display: flex;
  width: 100%;
  height: 12rem;
  align-items: center;
  justify-content: center;
  background: rgb(4 7 5 / 34%);
}

.file-viewer-dropzone {
  flex-direction: column;
  border: 1px dashed rgb(255 255 255 / 22%);
  gap: 0.7rem;
}

.file-viewer-guide-panel-inner > p {
  margin: 0.7rem 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.7rem;
  line-height: 1.5;
}

@media (max-width: 59.999rem) {
  .file-viewer-guide {
    padding: 6.3rem 1rem 1rem;
  }

  .file-viewer-guide-shell {
    margin: 0 auto auto;
  }

  .file-viewer-guide-heading {
    padding: 1rem;
    gap: 0.85rem;
  }

  .file-viewer-guide-heading > div h2 {
    font-size: 1.9rem;
  }

  .file-viewer-guide-heading > div > span {
    font-size: 0.66rem;
  }

  .file-viewer-guide-heading > a {
    min-height: 2.55rem;
    padding-inline: 0.8rem;
  }

  .file-viewer-guide-item > button {
    min-height: 4rem;
    padding: 0.75rem 1rem;
  }

  .file-viewer-guide-panel-inner {
    padding-inline: 1rem;
  }

  .file-viewer-guide-item.is-active .file-viewer-guide-panel-inner {
    padding-bottom: 1rem;
  }

  .file-viewer-dropzone,
  .file-viewer-drawing,
  .file-viewer-preview {
    height: 10rem;
  }
}

@media (max-width: 24rem) {
  .file-viewer-guide-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-viewer-guide-heading > a {
    width: 100%;
  }

  .file-viewer-guide-item > button small {
    display: none;
  }

  .file-viewer-dropzone,
  .file-viewer-drawing,
  .file-viewer-preview {
    height: 8.5rem;
  }
}

@media print {
  .file-viewer-guide {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resources-page *,
  .resources-page *::before,
  .resources-page *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Titleless resource index */

:root {
  color-scheme: dark;
}

body.resources-body:not([data-resources-view="tool"]),
.resources-board {
  background: #0a0c0b;
  color: #fff;
}

body.resources-body[data-resources-view="tool"],
body.resources-body[data-standalone="true"] {
  color-scheme: light;
}

.resources-board {
  isolation: isolate;
}

.resources-board-visual {
  display: block;
}

.resources-board-visual img {
  filter: saturate(0.58) contrast(1.06) brightness(0.58);
  object-position: 50% 52%;
  transform: scale(1.025);
}

.resources-board-shade {
  background:
    linear-gradient(90deg, rgb(4 7 6 / 64%) 0%, rgb(4 7 6 / 48%) 48%, rgb(4 7 6 / 60%) 100%),
    radial-gradient(ellipse at 50% 48%, rgb(5 8 7 / 18%) 0%, rgb(4 7 6 / 54%) 76%, rgb(3 5 4 / 76%) 100%);
}

.resources-board-shell {
  width: min(calc(100% - clamp(3rem, 10vw, 10rem)), 72rem);
  align-items: stretch;
  justify-content: center;
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(2rem, 5vh, 4rem);
}

.resources-page-title {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.resource-list {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.resource-entry {
  min-height: 5.6rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  background: transparent;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) auto;
  transition: border-color 220ms ease;
}

.resource-entry:first-child {
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.resource-entry-ready,
.resource-entry-ready:hover {
  background: transparent;
}

.resource-entry-ready::before {
  display: none;
}

.resource-entry > div:first-child,
.resource-entry > button > div {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 1rem clamp(1.25rem, 3vw, 3.5rem);
  grid-template-columns: minmax(9.5rem, 0.55fr) minmax(0, 1fr);
}

.resource-entry > button {
  width: 100%;
  min-height: 5.6rem;
  margin: -1.1rem 0;
  padding: 1.1rem 0;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) auto;
}

.resource-entry > button:hover,
.resource-entry > button:focus-visible {
  outline: 0;
}

.resource-entry:has(a:hover, a:focus-visible, button:hover, button:focus-visible) {
  border-bottom-color: rgb(255 255 255 / 70%);
}

.resource-entry h2 {
  color: #fff;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  font-weight: 610;
  letter-spacing: -0.045em;
  transition: transform 280ms cubic-bezier(.16, 1, .3, 1);
}

.resource-entry-ready:has(a:hover, a:focus-visible, button:hover, button:focus-visible) h2 {
  transform: translateX(0.35rem);
}

.resource-entry p {
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: clamp(0.7rem, 0.78vw, 0.8rem);
  line-height: 1.55;
}

.resource-entry > span {
  color: rgb(255 255 255 / 46%);
  font-size: 0.61rem;
  letter-spacing: 0.02em;
}

.resource-entry > button > span {
  color: #fff;
}

.resource-entry-file-viewer {
  padding-block: 1.1rem;
}

.resource-entry-actions {
  gap: 0.55rem;
}

.resource-entry-actions a,
.resource-entry-actions button {
  min-height: 2.45rem;
  padding: 0.65rem 0.9rem;
  border-color: rgb(255 255 255 / 32%);
  color: #fff;
}

.resource-entry-actions .resource-action-primary {
  border-color: #fff;
  background: #fff;
  color: #111412;
}

.resource-entry-actions .resource-action-secondary {
  background: rgb(0 0 0 / 12%);
}

.resource-entry-actions a:hover,
.resource-entry-actions a:focus-visible,
.resource-entry-actions button:hover,
.resource-entry-actions button:focus-visible {
  border-color: #fff;
  outline: 1px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 59.999rem) {
  .resources-board-visual img {
    object-position: 42% 50%;
  }

  .resources-board-shade {
    background:
      linear-gradient(90deg, rgb(4 7 6 / 68%) 0%, rgb(4 7 6 / 54%) 100%),
      linear-gradient(0deg, rgb(3 5 4 / 72%) 0%, rgb(4 7 6 / 22%) 68%, rgb(3 5 4 / 58%) 100%);
  }

  .resources-board-shell {
    width: calc(100% - 2rem);
    justify-content: center;
    padding: 6.8rem 0 1.4rem;
  }

  .resource-list {
    margin: 0;
  }

  .resource-entry,
  .resource-entry-file-viewer {
    min-height: 5.15rem;
    padding: 0.82rem 0;
    gap: 0.8rem;
  }

  .resource-entry > button {
    min-height: 5.15rem;
    margin: -0.82rem 0;
    padding: 0.82rem 0;
    gap: 0.8rem;
  }

  .resource-entry > div:first-child,
  .resource-entry > button > div {
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-entry h2 {
    font-size: 1.06rem;
  }

  .resource-entry p {
    overflow: visible;
    max-width: none;
    font-size: 0.65rem;
    text-overflow: clip;
    white-space: normal;
  }

  .resource-entry-file-viewer {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .resource-entry-actions {
    width: auto;
  }

  .resource-entry-actions a,
  .resource-entry-actions button {
    min-height: 2.25rem;
    flex: none;
    padding-inline: 0.72rem;
  }
}

@media (max-width: 36rem) {
  .resource-entry-file-viewer {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-entry-actions {
    justify-content: flex-start;
  }
}

@media (max-height: 42rem) and (min-width: 60rem) {
  .resources-board-shell {
    padding: 7rem 0 1.25rem;
  }

  .resource-list {
    margin: 0;
  }

  .resource-entry,
  .resource-entry > button {
    min-height: 4.55rem;
  }
}

/* In-place resource detail */

.resources-board-shade,
.resources-board-visual img {
  transition:
    opacity 520ms ease,
    filter 720ms cubic-bezier(.16, 1, .3, 1),
    transform 900ms cubic-bezier(.16, 1, .3, 1);
}

.resources-body[data-resources-view="guide"] .resources-board-shell {
  opacity: 0;
  filter: blur(5px) brightness(.48);
  pointer-events: none;
  transform: translateX(-2.5rem);
  visibility: visible;
}

.resources-body[data-resources-view="guide"] .resources-board-visual img {
  filter: saturate(.46) contrast(1.05) brightness(.4);
  transform: scale(1.055);
}

.file-viewer-guide {
  position: fixed;
  z-index: 900;
  display: block;
  overflow: hidden;
  padding: 0;
  background: transparent;
  color: #fff;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.file-viewer-guide::before {
  position: absolute;
  z-index: 0;
  background:
    linear-gradient(90deg, rgb(3 5 4 / 68%) 0%, rgb(3 5 4 / 74%) 52%, rgb(3 5 4 / 62%) 100%),
    radial-gradient(ellipse at 58% 50%, rgb(10 14 12 / 22%) 0%, rgb(2 4 3 / 58%) 100%);
  content: "";
  inset: 0;
  opacity: 0;
  transition: opacity 620ms ease;
  -webkit-backdrop-filter: blur(2px) brightness(.7);
  backdrop-filter: blur(2px) brightness(.7);
}

.file-viewer-guide[hidden] {
  display: none;
}

.file-viewer-guide.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.file-viewer-guide.is-visible::before {
  opacity: 1;
}

.file-viewer-guide-shell {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: auto;
  width: min(calc(100% - clamp(3rem, 10vw, 10rem)), 72rem);
  height: 100%;
  max-height: none;
  min-height: 0;
  align-items: center;
  margin: 0 auto;
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(2rem, 5vh, 4rem);
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(15rem, .42fr) minmax(0, 1fr);
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 360ms ease 100ms,
    transform 760ms cubic-bezier(.16, 1, .3, 1) 80ms;
  scrollbar-width: thin;
}

.file-viewer-guide.is-visible .file-viewer-guide-shell {
  opacity: 1;
  transform: translateY(0);
}

.file-viewer-guide-heading {
  display: flex;
  min-height: 28rem;
  align-items: flex-start;
  align-self: center;
  justify-content: center;
  padding: 0 clamp(2rem, 4vw, 4.5rem) 0 0;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 18%);
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.file-viewer-guide-close {
  margin: 0 0 clamp(3rem, 7vh, 5rem);
}

.file-viewer-guide-heading > div p {
  margin-bottom: 0.7rem;
  color: rgb(255 255 255 / 52%);
}

.file-viewer-guide-heading > div h2 {
  max-width: 7em;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  line-height: .98;
  word-break: keep-all;
}

.file-viewer-guide-heading > div > span {
  max-width: 18rem;
  margin-top: 1rem;
  color: rgb(255 255 255 / 64%);
  font-size: 0.75rem;
}

.file-viewer-guide-heading > a {
  min-height: 2.75rem;
  margin-top: 2rem;
  padding-inline: 1rem;
}

.file-viewer-guide-list {
  align-self: center;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.file-viewer-guide-item,
.file-viewer-guide-item:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  background: transparent;
}

.file-viewer-guide-item.is-active {
  background: transparent;
}

.file-viewer-guide-item > button {
  min-height: 4.8rem;
  padding: 1rem 0;
}

.file-viewer-guide-item > button:hover,
.file-viewer-guide-item > button:focus-visible {
  background: transparent;
  outline: 0;
}

.file-viewer-guide-item > button:hover strong,
.file-viewer-guide-item > button:focus-visible strong {
  transform: translateX(.28rem);
}

.file-viewer-guide-item > button strong {
  transition: transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.file-viewer-guide-panel-inner {
  padding: 0;
}

.file-viewer-guide-item.is-active .file-viewer-guide-panel-inner {
  padding-bottom: 1.3rem;
}

.file-viewer-dropzone,
.file-viewer-drawing,
.file-viewer-preview {
  height: clamp(10rem, 22vh, 13rem);
  background: rgb(2 4 3 / 34%);
}

.file-viewer-guide-panel-inner > p {
  color: rgb(255 255 255 / 62%);
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-view="guide"] .resources-board-shell {
    transform: translateX(-1.25rem);
  }

  .file-viewer-guide::before {
    background:
      linear-gradient(0deg, rgb(3 5 4 / 76%) 0%, rgb(3 5 4 / 64%) 100%),
      radial-gradient(ellipse at 50% 42%, rgb(10 14 12 / 22%) 0%, rgb(2 4 3 / 58%) 100%);
  }

  .file-viewer-guide-shell {
    display: block;
    width: calc(100% - 2rem);
    height: 100svh;
    margin: 0 auto;
    padding: 6.6rem 0 1rem;
  }

  .file-viewer-guide-heading {
    display: grid;
    min-height: 0;
    align-items: end;
    padding: 0 0 1.15rem;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 22%);
    gap: .75rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .file-viewer-guide-close {
    margin: 0 0 .4rem;
    grid-column: 1 / -1;
  }

  .file-viewer-guide-heading > div h2 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .file-viewer-guide-heading > div > span {
    max-width: 15rem;
    margin-top: .6rem;
    font-size: .65rem;
  }

  .file-viewer-guide-heading > a {
    min-height: 2.5rem;
    margin-top: 0;
    padding-inline: .8rem;
  }

  .file-viewer-guide-list {
    border-top: 0;
  }

  .file-viewer-guide-item > button {
    min-height: 4rem;
    padding: .75rem 0;
  }

  .file-viewer-guide-panel-inner {
    padding-inline: 0;
  }

  .file-viewer-guide-item.is-active .file-viewer-guide-panel-inner {
    padding-bottom: 1rem;
  }

  .file-viewer-dropzone,
  .file-viewer-drawing,
  .file-viewer-preview {
    height: 9.5rem;
  }
}

@media (max-width: 24rem) {
  .file-viewer-guide-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-viewer-guide-heading > a {
    width: max-content;
  }
}

/* Inline detail between resource rows */

.resources-body[data-resources-view="guide"] .resources-board-shell {
  overflow-y: auto;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: max(6.5rem, calc(50svh - 11.2rem));
  padding-bottom: max(10rem, 24svh);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  transform: none;
  visibility: visible;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 6rem,
    #000 10rem,
    #000 calc(100% - 1.5rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 6rem,
    #000 10rem,
    #000 calc(100% - 1.5rem),
    transparent 100%
  );
  overscroll-behavior-y: contain;
  scrollbar-color: rgb(255 255 255 / 34%) transparent;
  scrollbar-width: thin;
}

.resources-body[data-resources-view="guide"] .resources-board-shell::-webkit-scrollbar {
  width: 6px;
}

.resources-body[data-resources-view="guide"] .resources-board-shell::-webkit-scrollbar-track {
  background: transparent;
}

.resources-body[data-resources-view="guide"] .resources-board-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(255 255 255 / 34%);
}

.resources-body[data-resources-view="guide"] .resource-entry:not(.resource-entry-file-viewer) {
  opacity: .48;
  transition:
    border-color 220ms ease,
    opacity 320ms ease;
}

.resources-body[data-resources-view="guide"] .resource-entry:not(.resource-entry-file-viewer):hover,
.resources-body[data-resources-view="guide"] .resource-entry:not(.resource-entry-file-viewer):focus-within {
  opacity: .9;
}

.resources-body[data-resources-view="guide"] .resources-board-visual img {
  filter: saturate(.5) contrast(1.05) brightness(.44);
  transform: scale(1.04);
}

.resources-body[data-resources-view="guide"] .resources-board-shade {
  background:
    linear-gradient(90deg, rgb(4 7 6 / 70%) 0%, rgb(4 7 6 / 58%) 50%, rgb(4 7 6 / 68%) 100%),
    radial-gradient(ellipse at 50% 48%, rgb(5 8 7 / 24%) 0%, rgb(3 5 4 / 66%) 100%);
}

.resource-entry-file-viewer.is-detail-open {
  align-items: start;
  border-color: rgb(255 255 255 / 48%);
}

.file-viewer-guide {
  position: relative;
  z-index: auto;
  display: grid;
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: transparent;
  color: #fff;
  grid-column: 1 / -1;
  grid-template-rows: 0fr;
  inset: auto;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 540ms cubic-bezier(.2, .72, .3, 1),
    opacity 260ms ease;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.file-viewer-guide::before {
  display: none;
}

.file-viewer-guide[hidden] {
  display: none;
}

.file-viewer-guide.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.file-viewer-guide-shell {
  position: relative;
  z-index: auto;
  display: block;
  overflow: hidden;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: .8rem 0 .15rem;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 22%);
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(.55rem);
  transition:
    opacity 240ms ease,
    transform 460ms cubic-bezier(.2, .72, .3, 1);
}

.file-viewer-guide.is-visible .file-viewer-guide-shell {
  opacity: 1;
  transform: translateY(0);
}

.file-viewer-guide-heading {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 .65rem;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  flex-direction: row;
  gap: 1rem;
  text-align: left;
}

.file-viewer-guide-close {
  margin: 0;
}

.file-viewer-guide-heading > div {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.file-viewer-guide-heading > div p {
  margin: 0;
}

.file-viewer-guide-heading > div h2 {
  max-width: none;
  font-size: .82rem;
  letter-spacing: -.025em;
  line-height: 1;
}

.file-viewer-guide-heading > div > span {
  display: none;
}

.file-viewer-guide-heading > a {
  display: none;
}

.file-viewer-guide-list {
  align-self: center;
  border-top: 0;
}

.file-viewer-guide-item,
.file-viewer-guide-item:last-child {
  padding: .9rem 0 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  background: transparent;
}

.file-viewer-guide-section-heading {
  display: grid;
  align-items: start;
  padding: 0 0 .7rem;
  gap: .85rem;
  grid-template-columns: 1.15rem minmax(0, 1fr);
}

.file-viewer-guide-section-heading > i {
  padding-top: .15rem;
  color: rgb(255 255 255 / 55%);
  font-size: .57rem;
  font-style: normal;
  font-weight: 650;
}

.file-viewer-guide-section-heading h3,
.file-viewer-guide-section-heading p {
  margin: 0;
}

.file-viewer-guide-section-heading h3 {
  font-size: 1rem;
  font-weight: 630;
  letter-spacing: -.035em;
}

.file-viewer-guide-section-heading p {
  margin-top: .25rem;
  color: rgb(255 255 255 / 56%);
  font-size: .66rem;
  line-height: 1.4;
}

.file-viewer-guide-panel,
.file-viewer-guide-item.is-active .file-viewer-guide-panel,
.file-viewer-guide-item:not(.is-active) .file-viewer-guide-panel {
  display: block;
  overflow: visible;
  opacity: 1;
  grid-template-rows: none;
}

.file-viewer-guide-panel-inner {
  overflow: visible;
  padding: 0 0 .15rem;
}

.file-viewer-dropzone,
.file-viewer-drawing,
.file-viewer-preview {
  height: 7rem;
}

.file-viewer-guide-panel-inner > p {
  margin-top: .55rem;
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-view="guide"] .resources-board-shell {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent 4rem,
      #000 7rem,
      #000 calc(100% - 1.5rem),
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent 4rem,
      #000 7rem,
      #000 calc(100% - 1.5rem),
      transparent 100%
    );
  }

  .resources-body[data-resources-view="guide"] .resources-board-shade {
    background:
      linear-gradient(90deg, rgb(4 7 6 / 72%) 0%, rgb(4 7 6 / 62%) 100%),
      linear-gradient(0deg, rgb(3 5 4 / 76%) 0%, rgb(3 5 4 / 38%) 70%, rgb(3 5 4 / 62%) 100%);
  }

  .file-viewer-guide-shell {
    display: block;
    width: 100%;
    height: auto;
    padding: .7rem 0 .1rem;
  }

  .file-viewer-guide-heading {
    display: flex;
    min-height: 2rem;
    align-items: center;
    padding: 0 0 .55rem;
    border-bottom: 1px solid rgb(255 255 255 / 22%);
    gap: .7rem;
  }

  .file-viewer-guide-close {
    margin: 0;
  }

  .file-viewer-guide-heading > div h2 {
    font-size: .76rem;
  }

  .file-viewer-guide-list {
    border-top: 0;
  }

  .file-viewer-guide-item,
  .file-viewer-guide-item:last-child {
    padding: .8rem 0 .9rem;
  }

  .file-viewer-guide-section-heading {
    padding-bottom: .6rem;
  }

  .file-viewer-guide-panel-inner {
    padding-bottom: .1rem;
  }

  .file-viewer-dropzone,
  .file-viewer-drawing,
  .file-viewer-preview {
    height: 6.25rem;
  }
}

@media (max-width: 24rem) {
  .file-viewer-guide-heading {
    display: flex;
  }
}

/* Viewer guides: real product screens */

#file-viewer-guide .file-viewer-guide-item,
#file-viewer-guide .file-viewer-guide-item:last-child,
#drawing-viewer-guide .file-viewer-guide-item,
#drawing-viewer-guide .file-viewer-guide-item:last-child {
  padding: 1.4rem 0 1.8rem;
}

#file-viewer-guide .file-viewer-guide-section-heading,
#drawing-viewer-guide .file-viewer-guide-section-heading {
  padding-bottom: 1rem;
  gap: 1rem;
  grid-template-columns: 1.45rem minmax(0, 1fr);
}

#file-viewer-guide .file-viewer-guide-section-heading > i,
#drawing-viewer-guide .file-viewer-guide-section-heading > i {
  padding-top: .38rem;
  color: #9a7ae6;
  font-size: .68rem;
}

#file-viewer-guide .file-viewer-guide-section-heading h3,
#drawing-viewer-guide .file-viewer-guide-section-heading h3 {
  width: fit-content;
  padding: .08em .24em .13em;
  border-radius: .12em;
  background: #9a7ae6;
  color: #101713;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  font-weight: 670;
  letter-spacing: -.045em;
  line-height: 1.15;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

#file-viewer-guide .file-viewer-guide-section-heading p,
#drawing-viewer-guide .file-viewer-guide-section-heading p {
  margin-top: .5rem;
  color: rgb(255 255 255 / 68%);
  font-size: .75rem;
  line-height: 1.5;
}

#file-viewer-guide .file-viewer-guide-panel-inner > p,
#drawing-viewer-guide .file-viewer-guide-panel-inner > p {
  margin-top: .75rem;
  color: rgb(255 255 255 / 68%);
  font-size: .76rem;
  line-height: 1.6;
}

.file-viewer-guide-media {
  margin: 0;
  background: transparent;
}

.file-viewer-guide-media > strong {
  display: block;
  padding: 0 0 .6rem;
  color: rgb(255 255 255 / 88%);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.file-viewer-guide-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 255 255 / 15%);
  background: #0d1012;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 22%);
}

.file-viewer-guide-media figcaption {
  padding: .65rem 0 0;
  color: rgb(255 255 255 / 64%);
  font-size: .7rem;
  line-height: 1.5;
}

.file-viewer-guide-mode-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.drawing-viewer-export-grid {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
}

.drawing-viewer-alpha-preview {
  padding: clamp(1rem, 2.5vw, 2.5rem);
  background-color: #d4d8dc;
  background-image:
    linear-gradient(45deg, rgb(120 128 136 / 16%) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(120 128 136 / 16%) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(120 128 136 / 16%) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(120 128 136 / 16%) 75%);
  background-position: 0 0, 0 .75rem, .75rem -.75rem, -.75rem 0;
  background-size: 1.5rem 1.5rem;
}

.drawing-viewer-alpha-preview img {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.drawing-viewer-capabilities {
  margin: 1.8rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 28%);
}

.drawing-viewer-capabilities > p,
.drawing-viewer-capabilities > h3,
.drawing-viewer-capabilities > span {
  margin: 0;
}

.drawing-viewer-capabilities > p {
  color: #9a7ae6;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.drawing-viewer-capabilities > h3 {
  margin-top: .65rem;
  color: #fff;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -.045em;
}

.drawing-viewer-capabilities > span {
  display: block;
  margin-top: .55rem;
  color: rgb(255 255 255 / 64%);
  font-size: .76rem;
  line-height: 1.55;
}

.drawing-viewer-capabilities ul {
  display: grid;
  margin: 1.2rem 0 0;
  padding: 0;
  border-top: 1px solid rgb(255 255 255 / 16%);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drawing-viewer-capabilities li {
  display: grid;
  min-height: 6rem;
  align-content: start;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  gap: .45rem;
}

.drawing-viewer-capabilities li:nth-child(even) {
  padding-right: 0;
  padding-left: 1rem;
  border-left: 1px solid rgb(255 255 255 / 16%);
}

.drawing-viewer-capabilities li strong {
  color: #fff;
  font-size: .84rem;
  font-weight: 650;
}

.drawing-viewer-capabilities li span {
  color: rgb(255 255 255 / 60%);
  font-size: .7rem;
  line-height: 1.55;
}

@media (max-width: 59.999rem) {
  #file-viewer-guide .file-viewer-guide-item,
  #file-viewer-guide .file-viewer-guide-item:last-child,
  #drawing-viewer-guide .file-viewer-guide-item,
  #drawing-viewer-guide .file-viewer-guide-item:last-child {
    padding: 1.1rem 0 1.35rem;
  }

  #file-viewer-guide .file-viewer-guide-section-heading h3,
  #drawing-viewer-guide .file-viewer-guide-section-heading h3 {
    font-size: 1.15rem;
  }

  .drawing-viewer-export-grid,
  .drawing-viewer-capabilities ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .drawing-viewer-capabilities li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Keep page and in-place tools scrollable without persistent scrollbar chrome. */

html:has(body.resources-body),
body.resources-body,
.resources-body[data-resources-view="guide"] .resources-board-shell,
.file-viewer-guide-shell {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html:has(body.resources-body)::-webkit-scrollbar,
body.resources-body::-webkit-scrollbar,
.resources-body[data-resources-view="guide"] .resources-board-shell::-webkit-scrollbar,
.file-viewer-guide-shell::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Split resource index and detail workspace */

.resources-board-shell {
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: 0;
  grid-template-columns: 100% minmax(0, 0fr);
  grid-template-rows: 100% minmax(0, 0fr);
  transition:
    width 720ms cubic-bezier(.16, 1, .3, 1),
    gap 720ms cubic-bezier(.16, 1, .3, 1),
    grid-template-columns 720ms cubic-bezier(.16, 1, .3, 1),
    grid-template-rows 720ms cubic-bezier(.16, 1, .3, 1);
}

.resource-list {
  min-width: 0;
  max-height: 100%;
  align-self: center;
  overflow-y: auto;
  grid-column: 1;
  grid-row: 1;
  overscroll-behavior: contain;
  scrollbar-color: rgb(255 255 255 / 32%) transparent;
  scrollbar-width: thin;
}

.file-viewer-guide {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: minmax(0, 1fr);
  opacity: 0;
  transform: translateX(2rem);
  transition:
    opacity 320ms ease 100ms,
    transform 680ms cubic-bezier(.16, 1, .3, 1);
}

.file-viewer-guide.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.file-viewer-guide-shell {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 0 .5rem 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 0;
  overscroll-behavior: contain;
  scrollbar-color: rgb(255 255 255 / 34%) transparent;
  scrollbar-width: thin;
}

.file-viewer-guide-shell > .file-viewer-guide-heading {
  width: 100%;
  flex: 0 0 auto;
  margin-top: auto;
}

.file-viewer-guide-shell > .file-viewer-guide-list {
  width: 100%;
  align-self: stretch;
  flex: 0 0 auto;
  margin-bottom: auto;
}

.resources-body[data-resources-view="guide"] .resources-board-shell {
  width: min(calc(100% - clamp(3rem, 8vw, 9rem)), 112rem);
  height: 100svh;
  overflow: hidden;
  align-items: stretch;
  padding: clamp(11rem, 12vh, 13rem) 0 clamp(2rem, 5vh, 4rem);
  gap: clamp(2rem, 5vw, 6rem);
  grid-template-columns: 21.82% minmax(0, 1fr);
  -webkit-mask-image: none;
  mask-image: none;
}

.resources-body[data-resources-view="guide"] .file-viewer-guide-shell > .file-viewer-guide-heading {
  position: sticky;
  z-index: 4;
  top: 0;
  background: rgb(5 8 7 / 92%);
  box-shadow: 0 1rem 1.8rem rgb(2 4 3 / 42%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

html:has(body.resources-body[data-resources-view="guide"]),
body.resources-body[data-resources-view="guide"] {
  height: 100%;
  overflow-y: hidden !important;
}

.resources-body[data-resources-view="guide"] .resource-list {
  width: 100%;
  align-self: center;
  padding-right: .4rem;
}

.resources-body[data-resources-view="guide"] .resource-entry {
  min-height: 4.75rem;
  padding: .85rem .9rem;
  border-color: rgb(255 255 255 / 13%);
  background: transparent;
  opacity: 1;
  gap: .75rem;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.resources-body[data-resources-view="guide"] .resource-entry:not(.resource-entry-file-viewer) {
  opacity: 1;
}

.resources-body[data-resources-view="guide"] .resource-entry:first-child {
  border-top-color: rgb(255 255 255 / 13%);
}

.resources-body[data-resources-view="guide"] .resource-entry > button {
  min-height: 4.75rem;
  margin: -.85rem -.9rem;
  padding: .85rem .9rem;
  gap: .75rem;
}

.resources-body[data-resources-view="guide"] .resource-entry > div:first-child,
.resources-body[data-resources-view="guide"] .resource-entry > button > div {
  display: block;
}

.resources-body[data-resources-view="guide"] .resource-entry p {
  display: none;
}

.resources-body[data-resources-view="guide"] .resource-entry h2 {
  color: rgb(255 255 255 / 82%);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 610;
  letter-spacing: -.035em;
}

.resources-body[data-resources-view="guide"] .resource-entry > span {
  color: rgb(255 255 255 / 32%);
}

.resources-body[data-resources-view="guide"] .resource-entry-file-viewer.is-detail-open {
  align-items: center;
  border-top-color: rgb(255 255 255 / 48%);
  border-bottom-color: rgb(255 255 255 / 48%);
  background: rgb(255 255 255 / 9%);
  box-shadow: inset 2px 0 #fff;
}

.resources-body[data-resources-view="guide"] .resource-entry-file-viewer.is-detail-open h2 {
  color: #fff;
  font-size: clamp(1.12rem, 1.3vw, 1.3rem);
}

.resources-body[data-resources-view="guide"] .resource-entry-actions .resource-action-primary {
  display: inline-flex;
}

.resources-body[data-resources-view="guide"] .resource-entry-actions .resource-action-secondary {
  min-width: 2.6rem;
  padding-inline: .7rem;
  border-color: rgb(255 255 255 / 55%);
}

.resources-body[data-resources-view="guide"] .file-viewer-guide-heading > a {
  display: inline-flex;
  min-height: 2.3rem;
  margin: 0;
  padding: .55rem .75rem;
}

.resources-body[data-resources-view="guide"] .resource-list,
.resources-body[data-resources-view="guide"] .file-viewer-guide-shell {
  -ms-overflow-style: auto;
  scrollbar-width: thin;
}

.resources-body[data-resources-view="guide"] .resource-list::-webkit-scrollbar,
.resources-body[data-resources-view="guide"] .file-viewer-guide-shell::-webkit-scrollbar {
  display: block;
  width: 5px;
}

.resources-body[data-resources-view="guide"] .resource-list::-webkit-scrollbar-thumb,
.resources-body[data-resources-view="guide"] .file-viewer-guide-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(255 255 255 / 32%);
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-view="guide"] .resources-board-shell {
    width: calc(100% - 2rem);
    padding: 6.5rem 0 1rem;
    gap: 1rem;
    grid-template-columns: 100% minmax(0, 0fr);
    grid-template-rows: 24svh minmax(0, 1fr);
  }

  .resources-body[data-resources-view="guide"] .resource-list {
    align-self: stretch;
    grid-column: 1;
    grid-row: 1;
  }

  .resources-body[data-resources-view="guide"] .file-viewer-guide {
    grid-column: 1;
    grid-row: 2;
    transform: translateY(1.5rem);
  }

  .resources-body[data-resources-view="guide"] .file-viewer-guide.is-visible {
    transform: translateY(0);
  }

  .resources-body[data-resources-view="guide"] .resource-entry,
  .resources-body[data-resources-view="guide"] .resource-entry > button {
    min-height: 4.25rem;
  }

  .resources-body[data-resources-view="guide"] .resource-entry-file-viewer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .resources-body[data-resources-view="guide"] .file-viewer-guide-shell {
    height: 100%;
    padding: 0 .35rem 0 0;
  }
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resources-board-shell {
  width: min(calc(100% - clamp(3rem, 10vw, 10rem)), 72rem);
  align-items: center;
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(2rem, 5vh, 4rem);
  gap: 0;
  grid-template-columns: 100% minmax(0, 0fr);
  grid-template-rows: 100% minmax(0, 0fr);
  transition:
    width 620ms cubic-bezier(.4, 0, .2, 1),
    gap 620ms cubic-bezier(.4, 0, .2, 1),
    grid-template-columns 620ms cubic-bezier(.4, 0, .2, 1),
    grid-template-rows 620ms cubic-bezier(.4, 0, .2, 1);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .file-viewer-guide {
  transition:
    opacity 240ms ease,
    transform 520ms cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resources-board-shell {
    width: calc(100% - 2rem);
    padding: 6.8rem 0 1.4rem;
  }
}

/* Continuously morph the resource rows with the split workspace. */

.resource-list {
  transition: padding-right 520ms cubic-bezier(.4, 0, .2, 1);
}

.resource-entry,
.resources-body[data-resources-view="guide"] .resource-entry,
.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry {
  transition:
    min-height 520ms cubic-bezier(.4, 0, .2, 1),
    padding 520ms cubic-bezier(.4, 0, .2, 1),
    gap 520ms cubic-bezier(.4, 0, .2, 1),
    border-color 260ms ease,
    background 360ms ease,
    box-shadow 360ms ease;
}

.resource-entry > button {
  transition:
    min-height 520ms cubic-bezier(.4, 0, .2, 1),
    margin 520ms cubic-bezier(.4, 0, .2, 1),
    padding 520ms cubic-bezier(.4, 0, .2, 1),
    gap 520ms cubic-bezier(.4, 0, .2, 1);
}

.resource-entry > div:first-child,
.resource-entry > button > div {
  display: grid;
  grid-template-columns: 35.5% minmax(0, 1fr);
  transition:
    gap 520ms cubic-bezier(.4, 0, .2, 1),
    grid-template-columns 520ms cubic-bezier(.4, 0, .2, 1);
}

.resource-entry h2 {
  transition:
    color 260ms ease,
    font-size 520ms cubic-bezier(.4, 0, .2, 1),
    letter-spacing 520ms cubic-bezier(.4, 0, .2, 1),
    transform 280ms cubic-bezier(.16, 1, .3, 1);
}

.resource-entry p {
  display: block;
  overflow: hidden;
  max-height: 3.1rem;
  min-width: 0;
  opacity: 1;
  white-space: nowrap;
  transition:
    max-height 420ms cubic-bezier(.4, 0, .2, 1),
    opacity 220ms ease;
}

.resource-entry-actions .resource-action-primary {
  display: inline-flex;
  overflow: hidden;
  max-width: 9rem;
  opacity: 1;
  transition:
    max-width 420ms cubic-bezier(.4, 0, .2, 1),
    min-height 420ms cubic-bezier(.4, 0, .2, 1),
    padding 420ms cubic-bezier(.4, 0, .2, 1),
    border-width 420ms cubic-bezier(.4, 0, .2, 1),
    opacity 180ms ease;
}

.resources-body[data-resources-view="guide"] .resource-entry > div:first-child,
.resources-body[data-resources-view="guide"] .resource-entry > button > div {
  display: grid;
  gap: 0;
  grid-template-columns: 100% minmax(0, 0fr);
}

.resources-body[data-resources-view="guide"] .resource-entry p {
  display: block;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.resources-body[data-resources-view="guide"] .resource-entry-actions .resource-action-primary {
  display: inline-flex;
  max-width: 9rem;
  min-height: 2.3rem;
  padding: .55rem .7rem;
  border-inline-width: 1px;
  opacity: 1;
  pointer-events: auto;
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-list {
  padding-right: 0;
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry {
  min-height: 5.6rem;
  padding: 1.1rem 0;
  border-color: rgb(255 255 255 / 22%);
  background: transparent;
  box-shadow: inset 0 0 rgb(255 255 255 / 0%);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > button {
  min-height: 5.6rem;
  margin: -1.1rem 0;
  padding: 1.1rem 0;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > div:first-child,
.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > button > div {
  gap: 1rem clamp(1.25rem, 3vw, 3.5rem);
  grid-template-columns: 35.5% minmax(0, 1fr);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry p {
  max-height: 3.1rem;
  opacity: 1;
  pointer-events: auto;
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry h2,
.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-file-viewer.is-detail-open h2 {
  color: #fff;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  letter-spacing: -.045em;
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > span {
  color: rgb(255 255 255 / 46%);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-file-viewer.is-detail-open {
  border-color: rgb(255 255 255 / 22%);
  background: transparent;
  box-shadow: inset 0 0 rgb(255 255 255 / 0%);
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-actions .resource-action-primary {
  max-width: 9rem;
  min-height: 2.45rem;
  padding: .65rem .9rem;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
}

.resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-actions .resource-action-secondary {
  min-width: 0;
  min-height: 2.45rem;
  padding: .65rem .9rem;
  border-color: rgb(255 255 255 / 32%);
}

@media (max-width: 59.999rem) {
  .resource-entry p {
    white-space: normal;
  }

  .resources-body[data-resources-view="guide"] .resource-entry-file-viewer,
  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-file-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-entry > div:first-child,
  .resource-entry > button > div,
  .resources-body[data-resources-view="guide"] .resource-entry > div:first-child,
  .resources-body[data-resources-view="guide"] .resource-entry > button > div,
  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > div:first-child,
  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > button > div {
    gap: .35rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry,
  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-file-viewer {
    min-height: 5.15rem;
    padding: .82rem 0;
    gap: .8rem;
  }

  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry > button {
    min-height: 5.15rem;
    margin: -.82rem 0;
    padding: .82rem 0;
    gap: .8rem;
  }

  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry h2,
  .resources-body[data-resources-view="guide"][data-resources-closing="true"] .resource-entry-file-viewer.is-detail-open h2 {
    font-size: 1.06rem;
  }
}

/* Final cascade for the repair workspace's continuous-form treatment. */

.resources-body[data-resources-tool="repair"] .repair-tool-header,
.resources-body[data-resources-tool="repair"] .repair-workspace {
  width: 100%;
}

.resources-body[data-resources-tool="repair"] .repair-workspace {
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 16rem;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky {
  position: static;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky > header {
  display: grid;
  gap: .2rem;
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-tool="repair"] .repair-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .resources-body[data-resources-tool="repair"] .repair-header-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    grid-template-columns: none;
  }
}

.resources-body[data-resources-tool="repair"] .repair-tool-shell {
  display: flex;
  flex-direction: column;
  padding: clamp(2.75rem, 5vh, 3.25rem) .5rem clamp(1.5rem, 3vh, 2.25rem) 0;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header {
  flex: 0 0 auto;
  margin-top: auto;
}

.resources-body[data-resources-tool="repair"] .repair-workspace {
  flex: 0 0 auto;
  margin-bottom: auto;
}

.resources-body[data-resources-tool="repair"] .repair-panel,
.resources-body[data-resources-tool="repair"] .repair-item {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.resources-body[data-resources-tool="repair"] .repair-panel {
  padding: .2rem 0 1.25rem;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.resources-body[data-resources-tool="repair"] .repair-item {
  display: grid;
  align-items: end;
  padding: 1rem 0 1.15rem;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 24%);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  gap: .55rem;
  grid-template-columns: minmax(0, 1fr);
}

.resources-body[data-resources-tool="repair"] .repair-item[data-multiple-items="true"] {
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
}

.resources-body[data-resources-tool="repair"] .repair-item-order {
  align-self: center;
  color: rgb(255 255 255 / 62%);
  font-size: .65rem;
  font-weight: 620;
  white-space: nowrap;
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item {
  display: grid;
  align-items: end;
  gap: .55rem;
  grid-template-columns: minmax(7.25rem, .85fr) minmax(7.5rem, .9fr) 4rem minmax(10rem, 1.7fr);
}

.resources-body[data-resources-tool="repair"] .repair-field-grid-item > .repair-field:nth-child(n) {
  width: auto;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  flex: none;
}

.resources-body[data-resources-tool="repair"] .repair-item-actions {
  align-self: end;
  flex-wrap: nowrap;
  padding-bottom: .05rem;
}

.resources-body[data-resources-tool="repair"] .repair-item-request,
.resources-body[data-resources-tool="repair"] .repair-item-request input {
  width: 100%;
}

.resources-body[data-resources-tool="repair"] .repair-choice-group label > span,
.resources-body[data-resources-tool="repair"] .repair-mixed-state {
  padding: 0 .2rem;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
  background: transparent;
  color: rgb(255 255 255 / 72%);
}

.resources-body[data-resources-tool="repair"] .repair-choice-group input:checked + span {
  border: 0;
  border-bottom: 2px solid #fff;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.resources-body[data-resources-tool="repair"] .repair-preview-sticky {
  padding: .25rem 0 .25rem 1.1rem;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 24%);
  background: linear-gradient(90deg, rgb(3 6 5 / 40%), transparent 82%);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.resources-body[data-resources-tool="repair"] .repair-tool-header > div:nth-child(2) > p,
.resources-body[data-resources-tool="repair"] .repair-panel-heading p,
.resources-body[data-resources-tool="repair"] .repair-items-heading p,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky header p {
  color: rgb(255 255 255 / 66%);
  font-size: .62rem;
  font-weight: 620;
}

.resources-body[data-resources-tool="repair"] .repair-panel-heading h2,
.resources-body[data-resources-tool="repair"] .repair-items-heading h2,
.resources-body[data-resources-tool="repair"] .repair-preview-sticky h2 {
  font-size: 1.08rem;
  font-weight: 660;
}

.resources-body[data-resources-tool="repair"] .repair-field > span,
.resources-body[data-resources-tool="repair"] .repair-card-size-select > span,
.resources-body[data-resources-tool="repair"] .repair-choice-group legend {
  color: rgb(255 255 255 / 80%);
  font-size: .68rem;
  font-weight: 590;
  line-height: 1.35;
}

.resources-body[data-resources-tool="repair"] .repair-field input,
.resources-body[data-resources-tool="repair"] .repair-field textarea,
.resources-body[data-resources-tool="repair"] .repair-card-size-select select {
  color: #fff;
  font-size: .78rem;
}

@media (max-width: 59.999rem) {
  .resources-body[data-resources-tool="repair"] .repair-tool-shell {
    padding: 1rem .35rem 1.75rem 0;
  }

  .resources-body[data-resources-tool="repair"] .repair-preview-sticky {
    padding: 1.2rem 0 0;
    border-top: 1px solid rgb(255 255 255 / 24%);
    border-left: 0;
    background: transparent;
  }

  .resources-body[data-resources-tool="repair"] .repair-item[data-multiple-items="true"] {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .resources-body[data-resources-tool="repair"] .repair-item-order {
    align-self: center;
  }

  .resources-body[data-resources-tool="repair"] .repair-field-grid-item {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-body[data-resources-tool="repair"] .repair-item-request {
    grid-column: 1 / -1;
  }
}
