:root {
  --navy: #202832;
  --navy-soft: #39434c;
  --blue: #a8463d;
  --red: #a8463d;
  --ink: #252c32;
  --muted: #69737b;
  --line: #d8dcdf;
  --paper: rgba(250, 251, 251, 0.96);
  --wash: #eceff0;
  --gold: #bd8e69;
  --shadow: rgba(25, 33, 40, 0.08);
  --panel-surface: #f8f9f9;
  --panel-line: rgba(255, 255, 255, 0.32);
}

.dashboard-hero-style-controls[hidden] {
  display: none;
}

.dashboard-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px 18px;
}

.dashboard-style-grid label > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-style-grid input[type="number"],
.dashboard-style-grid select {
  width: 100%;
}

.dashboard-style-grid label > span input[type="number"] {
  max-width: 110px;
}

.dashboard-style-grid label > span input[type="range"] {
  min-width: 0;
  flex: 1;
}

.dashboard-style-grid output {
  min-width: 42px;
  text-align: right;
}

.dashboard-quick-actions .dashboard-quick-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
}

.dashboard-quick-actions .dashboard-quick-action-row label {
  display: grid;
  gap: 6px;
  align-content: start;
}

.dashboard-quick-actions input,
.dashboard-quick-actions select {
  width: 100%;
  min-width: 0;
}

.dashboard-profile-fields {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-profile-fields label,
.dashboard-quick-actions > label {
  display: grid;
  gap: 6px;
  align-items: start;
}

.dashboard-profile-fields input,
.dashboard-profile-fields textarea,
.dashboard-quick-actions > label input {
  width: 100%;
  min-width: 0;
}

.dashboard-header-copy {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-header-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 14px;
  border: 1px solid var(--line);
}

.dashboard-header-line h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.dashboard-header-line label {
  display: grid;
  gap: 6px;
  align-content: start;
}

.dashboard-header-line input,
.dashboard-header-line select,
.dashboard-header-line textarea {
  width: 100%;
  min-width: 0;
}

@media (max-width: 620px) {
  .dashboard-header-line {
    grid-template-columns: 1fr;
  }

  .dashboard-header-line h3 {
    grid-column: auto;
  }

  .dashboard-quick-actions .dashboard-quick-action-row {
    grid-template-columns: 1fr;
  }
}

body {
  background:
    radial-gradient(ellipse at 12% 5%, rgba(255, 255, 255, 0.96), transparent 37%),
    linear-gradient(145deg, #e9edef, #f1f2f1 48%, #e5e8e9);
  color: var(--ink);
}

body::before,
.site-shell::before {
  display: none;
}

.site-shell {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 92px 100%;
}

.app-header {
  max-width: 1420px;
  min-height: 118px;
  padding: 25px 34px 19px;
}

.brand-lockup {
  gap: 17px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, #f5f6f5, #cfd4d6);
  color: #303941;
  box-shadow: 0 7px 16px rgba(27, 36, 43, 0.12), inset 0 0 0 1px rgba(74, 85, 93, 0.12);
  font-size: 1rem;
}

.app-header .eyebrow {
  color: #9d4d43;
  letter-spacing: 0.21em;
}

.app-header h1 {
  color: #242c33;
  font-size: clamp(27px, 3.2vw, 39px);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.subtitle {
  margin-top: 0.48rem;
  color: #69747c;
  font-size: 13px;
  letter-spacing: 0.015em;
}

.header-actions {
  gap: 9px;
}

.button {
  border: 1px solid #a4443b;
  border-radius: 3px;
  background: #a4443b;
  color: var(--dashboard-title-color, #fff);
  padding: 11px 17px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  border-color: #85372f;
  background: #85372f;
  box-shadow: 0 7px 17px rgba(93, 42, 37, 0.14);
}

.button.secondary {
  border-color: #aeb5b9;
  background: rgba(248, 249, 249, 0.42);
  color: #343d44;
}

.button.secondary:hover {
  border-color: #7f898f;
  background: #f7f8f8;
  color: #20282f;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 47px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  gap: 20px;
  border-top: 1px solid #d5d9db;
  border-bottom: 1px solid #cfd4d7;
  background: #f6f7f7;
  padding: 0 max(34px, calc((100% - 1352px) / 2));
  box-shadow: 0 6px 18px rgba(29, 37, 43, 0.035);
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  padding: 15px 3px 14px;
  color: #626c73;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.tab.active {
  background: transparent;
  color: #222b32;
}

.tab:hover {
  background: transparent;
  color: #a4443b;
}

.tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #a4443b;
  content: "";
}

.workspace {
  max-width: 1420px;
  margin: 28px auto 70px;
  padding: 0 34px;
}

.hero-card {
  min-height: clamp(470px, 66vh, 720px);
  align-items: end;
  padding: clamp(34px, 6.4vw, 88px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 24px 54px rgba(25, 33, 40, 0.18);
}

.hero-card-image {
  z-index: 0;
  opacity: 0.8;
  filter: none;
  mix-blend-mode: normal;
  transition: opacity 1000ms ease-in-out, transform 180ms ease;
}

.hero-card-image,
.page-hero-image img {
  transform: scale(var(--page-image-zoom, 1));
  transform-origin: var(--page-image-origin, center center);
}

.hero-card-image.is-fading-out {
  opacity: 0;
}

.page-hero-image img.is-changing {
  opacity: 0;
}

.page-image-gallery[hidden] {
  display: none;
}

.page-image-gallery {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.page-image-gallery > label:first-child {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.page-text-style-controls {
  display: grid;
  gap: 12px;
}

.page-text-style-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.page-text-style-group legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.page-text-style-group label {
  align-content: start;
  font-size: 12px;
}

.page-text-style-group input,
.page-text-style-group select {
  width: 100%;
}

.page-text-style-group .check-label {
  display: flex;
  align-items: center;
}

.page-text-style-group .check-label input {
  width: auto;
}

.admin-page-copy-form {
  margin-top: 18px;
}

.build-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}

.build-category-list,
.build-product-detail {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.build-category-list {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
}

.build-category-group h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.build-item-links {
  display: grid;
  gap: 4px;
}

.build-item-link {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.build-item-link:hover,
.build-item-link:focus-visible {
  background: rgba(16, 24, 39, 0.05);
}

.build-item-link.is-selected {
  border-left-color: var(--red);
  background: rgba(168, 70, 61, 0.1);
}

.build-item-link strong {
  font-size: 13px;
  line-height: 1.35;
}

.build-item-link span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.build-product-detail {
  position: sticky;
  top: clamp(80px, 10vh, 120px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 24px;
  min-height: 390px;
  padding: clamp(20px, 3vw, 36px);
  scrollbar-gutter: stable;
}

.build-detail-copy {
  align-self: start;
  max-height: calc(100vh - clamp(80px, 10vh, 120px) - 24px);
  overflow-y: auto;
  overscroll-behavior-y: auto;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.build-detail-section {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.build-detail-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.build-detail-section summary::-webkit-details-marker {
  display: none;
}

.build-detail-section summary::after {
  flex: 0 0 auto;
  color: var(--red);
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.build-detail-section[open] summary::after {
  content: "−";
}

.build-detail-section > :not(summary) {
  margin-right: 14px;
  margin-left: 14px;
}

.build-detail-section > :last-child {
  margin-bottom: 14px;
}

.build-detail-category {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-detail-copy h3 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.build-detail-summary {
  color: var(--muted);
  font-size: 15px;
}

.build-detail-specifications {
  color: var(--ink);
  white-space: pre-wrap;
}

.build-detail-media {
  position: sticky;
  top: clamp(80px, 10vh, 120px);
  display: grid;
  align-self: start;
  gap: 12px;
  min-width: 0;
}

.build-detail-image {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  place-items: center;
  border-radius: 0;
  background: transparent;
}

.build-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
}

.build-detail-image.is-empty span,
.build-detail-empty {
  color: var(--muted);
  text-align: center;
}

.build-detail-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 320px;
}

.build-detail-empty span {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-walkthrough-link {
  justify-self: start;
}

.build-installation-link {
  justify-self: start;
}

.build-msds-link {
  justify-self: start;
}

.build-detail-media > .button {
  text-decoration: none;
}

.build-detail-media > .button:hover,
.build-detail-media > .button:focus-visible {
  text-decoration: none;
}

.record.is-linked {
  outline: 3px solid rgba(168, 70, 61, 0.55);
  outline-offset: 5px;
  scroll-margin-top: 30px;
}

.admin-build-categories {
  display: grid;
  gap: 14px;
}

.build-category-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

#record-build-fields[hidden],
#record-standard-fields[hidden],
#record-walkthrough-fields[hidden] {
  display: none;
}

.admin-build-category {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.admin-build-category-heading {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-build-items {
  display: grid;
  gap: 8px;
}

.admin-build-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.admin-build-item > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-build-item > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .build-workspace {
    grid-template-columns: 1fr;
  }

  .build-category-list {
    position: static;
    grid-row: 2;
  }

  .build-product-detail {
    grid-row: 1;
    position: sticky;
    top: 64px;
    z-index: 4;
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-gutter: stable;
    padding: 16px;
  }

  .build-detail-media {
    grid-row: 1;
    position: static;
  }

  .build-detail-copy {
    grid-row: 2;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .build-detail-image {
    min-height: 120px;
  }

  .build-detail-image img {
    min-height: 120px;
  }

  .admin-build-category-heading,
  .admin-build-item {
    grid-template-columns: 1fr;
  }

  .admin-build-category-heading .record-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .build-category-add-form {
    grid-template-columns: 1fr;
  }
}

.image-position-controls {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
}

.image-position-controls legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.image-position-controls label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-position-controls input[type="range"] {
  width: 100%;
  accent-color: #a13f37;
}

.image-position-controls output {
  color: #a13f37;
  font-variant-numeric: tabular-nums;
}

.page-hero-image img {
  filter: none;
  transition: opacity 500ms ease, transform 180ms ease;
}

.gallery-shortcut {
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
}

.gallery-shortcut:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.13);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}

.gallery-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}

.gallery-image-list,
.gallery-featured-image {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.gallery-image-list {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px;
}

.gallery-image-category + .gallery-image-category {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gallery-image-category h3,
.gallery-admin-category h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-image-link {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.gallery-image-link:hover,
.gallery-image-link:focus-visible {
  background: rgba(16, 24, 39, 0.05);
}

.gallery-image-link.is-selected {
  border-left-color: var(--red);
  background: rgba(168, 70, 61, 0.1);
}

.gallery-image-link > img {
  display: block;
  width: 80px;
  height: 60px;
  object-fit: cover;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.gallery-image-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gallery-image-link-copy > span,
.gallery-featured-caption > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-image-link-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.gallery-featured-image {
  position: sticky;
  top: clamp(80px, 10vh, 120px);
  z-index: 2;
  display: grid;
  gap: 16px;
  min-height: 390px;
  padding: clamp(20px, 3vw, 36px);
}

.gallery-featured-media {
  position: relative;
  display: grid;
  min-height: 280px;
  overflow: hidden;
  place-items: center;
  background: #f4f5f5;
}

.gallery-featured-media > img {
  display: block;
  width: 100%;
  height: min(65vh, 680px);
  min-height: 280px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.gallery-featured-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: rgba(20, 27, 33, 0.76);
  color: #fff;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 140ms ease, background-color 140ms ease;
  visibility: hidden;
}

.gallery-featured-media:hover .gallery-featured-arrow,
.gallery-featured-media:focus-within .gallery-featured-arrow {
  opacity: 1;
  visibility: visible;
}

.gallery-featured-arrow:hover:not(:disabled),
.gallery-featured-arrow:focus-visible:not(:disabled) {
  background: rgba(20, 27, 33, 0.94);
}

.gallery-featured-arrow:disabled {
  cursor: default;
  opacity: 0.38;
}

.gallery-featured-arrow.is-previous {
  left: 12px;
}

.gallery-featured-arrow.is-next {
  right: 12px;
}

.gallery-featured-caption h3 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.2;
}

.gallery-featured-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.gallery-featured-caption-copy {
  min-width: 0;
}

.gallery-original-download {
  display: block;
  flex: 0 0 auto;
  width: fit-content;
  margin: 0 0 2px auto;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.gallery-original-download:hover,
.gallery-original-download:focus-visible {
  color: var(--navy);
}

.gallery-featured-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.gallery-admin-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.admin-gallery-category-manager {
  display: grid;
  gap: 12px;
}

.admin-gallery-categories {
  display: grid;
  gap: 8px;
}

.admin-gallery-category {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.gallery-admin-category {
  display: grid;
  gap: 10px;
}

.gallery-admin-category + .gallery-admin-category {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gallery-admin-category-select {
  display: grid;
  grid-template-columns: auto minmax(140px, 240px);
  gap: 10px;
  align-items: center;
  width: fit-content;
}

.gallery-admin-item {
  display: grid;
  grid-template-columns: minmax(120px, 152px) minmax(0, 1fr);
  align-items: center;
  overflow: visible;
}

.gallery-admin-thumbnail {
  position: relative;
  z-index: 0;
  width: 100%;
  cursor: zoom-in;
}

.gallery-admin-thumbnail:hover,
.gallery-admin-thumbnail:focus-visible {
  z-index: 20;
}

.gallery-admin-thumbnail:focus-visible {
  outline: 2px solid #9d453c;
  outline-offset: 3px;
}

.gallery-admin-thumbnail > img {
  width: 100%;
  height: 106px;
  aspect-ratio: auto;
  object-fit: cover;
}

.gallery-admin-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1100;
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  padding: 8px;
  border: 1px solid #d6dbdd;
  background: #fff;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  visibility: hidden;
}

.gallery-admin-thumbnail:hover .gallery-admin-preview,
.gallery-admin-thumbnail:focus-visible .gallery-admin-preview {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

.gallery-admin-item .gallery-admin-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(90vw - 18px);
  max-height: calc(90vh - 18px);
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}

.gallery-admin-item figcaption {
  min-width: 0;
}

.gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6dbdd;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 37, 43, 0.07);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.record-image {
  display: block;
  width: min(100%, 560px);
  max-height: 340px;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.75) saturate(0.6);
}

.walkthrough-record-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
}

.walkthrough-record-content.has-thumbnail {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
}

.record-image.walkthrough-record-thumbnail {
  width: 100%;
  height: 120px;
  max-height: 120px;
  margin: 0;
  border-radius: 3px;
  object-fit: cover;
}

.walkthrough-record-copy {
  min-width: 0;
}

.gallery-item figcaption {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.gallery-item figcaption span {
  color: #9d4d43;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  color: #20282f;
  font-size: 15px;
  line-height: 1.35;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #c6cdd0;
  color: #626c73;
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-image,
  .page-hero-image img {
    transition: none;
  }
}

.hero-card::after {
  z-index: 0;
  background: none;
}

.hero-card > div {
  width: 100%;
  max-width: var(--dashboard-panel-width, 830px);
  box-sizing: border-box;
  align-self: center;
  transform: translateY(var(--dashboard-panel-offset-y, -82px));
  padding: var(--dashboard-panel-padding-y, 16px) var(--dashboard-panel-padding-x, 16px);
  border: 1px solid var(--dashboard-panel-border, rgba(255, 255, 255, 0.14));
  border-radius: var(--dashboard-panel-radius, 4px);
  background: var(--dashboard-panel-background, rgba(16, 22, 28, 0.3));
  box-shadow: 0 8px 26px rgba(12, 18, 23, 0.12);
  backdrop-filter: blur(var(--dashboard-panel-blur, 3px));
}

.hero-card .eyebrow {
  margin-bottom: 14px;
  color: var(--dashboard-eyebrow-color, #d9c5b4);
  font-size: var(--dashboard-eyebrow-size, 10px);
  font-family: var(--dashboard-eyebrow-font, Arial, Helvetica, sans-serif);
  letter-spacing: var(--dashboard-eyebrow-tracking, 0.24em);
}

.hero-card h2 {
  max-width: 830px;
  margin: 0 0 16px;
  color: var(--dashboard-title-color, #fff);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  font-size: clamp(38px, 4.8vw, var(--dashboard-title-size, 64px));
  font-family: var(--dashboard-title-font, Arial, Helvetica, sans-serif);
  font-weight: var(--dashboard-title-weight, 550);
  line-height: var(--dashboard-title-line-height, 0.99);
  letter-spacing: var(--dashboard-title-tracking, -0.06em);
  text-wrap: balance;
}

.hero-card p {
  max-width: var(--dashboard-body-width, 570px);
  color: var(--dashboard-body-color, rgba(255, 255, 255, 0.94));
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
  font-size: clamp(14px, 1.35vw, var(--dashboard-body-size, 17px));
  font-family: var(--dashboard-body-font, Arial, Helvetica, sans-serif);
  line-height: var(--dashboard-body-line-height, 1.75);
}

.status {
  align-self: end;
  padding: 9px 12px;
  border: 1px solid rgba(235, 239, 240, 0.38);
  border-radius: 2px;
  background: rgba(19, 25, 30, 0.27);
  color: #f2f3f1;
  font-size: 9px;
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
}

.stat-grid {
  gap: 1px;
  margin: 19px 0 23px;
  border: 1px solid #d6dbdd;
  background: #d6dbdd;
}

.stat-grid article {
  min-height: 106px;
  padding: 18px 22px;
  border: 0;
  border-radius: 0;
  background: rgba(249, 250, 250, 0.97);
  box-shadow: none;
}

.stat-grid strong {
  color: #343d44;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.stat-grid span {
  display: block;
  margin-top: 8px;
  color: #737d83;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dashboard-grid {
  grid-template-columns: 1.3fr 0.8fr;
  gap: 15px;
}

.dashboard-brand-bar {
  display: flex;
  align-items: center;
  min-height: 84px;
  margin-top: 20px;
  padding: 18px 22px;
  border-top: 1px solid #d8dddf;
  border-bottom: 1px solid #d8dddf;
  background: rgba(250, 251, 251, 0.78);
}

.dashboard-brand-logo-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-brand-logo-list li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
}

.dashboard-brand-logo-list img {
  display: block;
  width: auto;
  max-width: min(150px, 24vw);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.dashboard-brand-logo-add,
.dashboard-brand-logo-admin-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(220px, 1.4fr) auto;
  align-items: end;
  gap: 12px;
}

.dashboard-brand-logo-add {
  grid-template-columns: minmax(120px, 0.7fr) minmax(220px, 1.4fr) minmax(180px, 1fr) auto;
}

.dashboard-brand-logo-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-brand-logo-admin-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d8dddf;
  background: rgba(250, 251, 251, 0.96);
}

.dashboard-brand-logo-admin-item strong,
.dashboard-brand-logo-admin-item span {
  display: block;
  overflow-wrap: anywhere;
}

.dashboard-brand-logo-admin-item span {
  margin-top: 4px;
  color: #737d83;
  font-size: 11px;
}

.panel,
.record,
.source-card,
.page-editor,
.doc-entry,
.stat-grid article {
  border-color: #d8dddf;
  border-radius: 3px;
  background: rgba(250, 251, 251, 0.96);
  box-shadow: 0 7px 22px rgba(29, 37, 43, 0.045);
  backdrop-filter: blur(4px);
}

.panel {
  padding: 24px;
}

.panel h3 {
  color: #313a41;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

dl {
  grid-template-columns: 105px 1fr;
  gap: 13px 20px;
}

dt {
  color: #727d84;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

dd {
  color: #3c464d;
  font-size: 13px;
}

.action-list {
  display: grid;
  align-items: stretch;
}

.action-list .button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading .eyebrow,
.admin-editor-heading .eyebrow,
.gallery-featured-category {
  color: #a14a40;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2,
.admin-editor-heading h2 {
  color: #252e35;
  font-weight: 550;
  letter-spacing: -0.05em;
}

.section-heading p:not(.eyebrow),
.admin-editor-heading p:not(.eyebrow) {
  color: #6e787e;
}

.section-heading p:not(.eyebrow) {
  width: 100%;
  max-width: none;
}

.hero-card #dashboard-description {
  width: 100%;
  max-width: none;
}

#site-subtitle,
#profile-target,
#profile-owner,
#profile-mission,
#profile-storage,
.section-heading p:not(.eyebrow),
.build-item-link span,
.build-detail-summary,
.build-detail-specifications,
.source-card p,
.page-content-preview-card p {
  white-space: pre-wrap;
}

.page-hero-image {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(29, 37, 43, 0.11);
}

.toolbar input,
.toolbar select,
label input,
label textarea,
label select {
  border-color: #cbd1d4;
  border-radius: 3px;
  background: #fbfcfc;
  color: #303a41;
}

label {
  color: #3c464d;
  font-size: 12px;
}

.record {
  gap: 18px;
  padding: 22px;
  transition: box-shadow 0.18s ease;
}

.record:hover {
  box-shadow: 0 12px 26px rgba(29, 37, 43, 0.085);
}

.record h3 {
  color: #29333a;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.record p {
  color: #657078;
  font-size: 13px;
}

.record-meta {
  color: #80898e;
  font-size: 10px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.badge {
  border: 1px solid #dfd5cf;
  border-radius: 2px;
  background: #f1eeeb;
  color: #805248;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.record-actions button,
.doc-entry button,
.link-item button,
.selection-item button {
  border-color: #cbd1d4;
  border-radius: 3px;
  background: #f6f7f7;
  color: #38434a;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.record-actions button:hover,
.doc-entry button:hover,
.link-item button:hover,
.selection-item button:hover {
  border-color: #a4443b;
  background: #f3ecea;
  color: #873d35;
}

.source-card h3 {
  color: #29333a;
  font-size: 15px;
  font-weight: 650;
}

.docs-sections {
  display: grid;
  gap: 26px;
}

.docs-section > h3 {
  margin: 0 0 12px;
  color: #29333a;
}

.docs-section .source-list {
  grid-template-columns: minmax(0, 1fr);
}

.docs-section .source-card h4 {
  margin: 0;
  color: #29333a;
  font-size: 15px;
  font-weight: 650;
}

.docs-admin-disclosure {
  padding: 12px 14px;
  border: 1px solid #d8dcdf;
  border-radius: 3px;
  background: #f8f9f9;
}

.docs-admin-disclosure > summary {
  color: #29333a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.docs-admin-disclosure[open] > summary {
  margin-bottom: 12px;
}

#document-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

#document-form > h3 {
  grid-column: 1 / -1;
  margin: 0;
}

#document-form > .tiny-note,
#document-form > button,
#document-file-field,
#document-external-field {
  grid-column: 1 / -1;
}

#document-form > label:has(#document-notes) {
  grid-column: span 2;
}

.walkthrough-card-link {
  color: inherit;
  text-decoration: none;
}

.walkthrough-card-link:hover,
.walkthrough-card-link:focus-visible {
  color: #9d453c;
  text-decoration: underline;
}

.walkthrough-card-open {
  display: inline-block;
  margin-top: 12px;
  color: #9d453c;
  font-size: 13px;
  font-weight: 750;
}

.walkthrough-draft-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  background: #f5e7d4;
  color: #74440e;
  font-size: 11px;
  font-weight: 750;
}

.walkthrough-detail-view {
  width: 100%;
}

.walkthrough-back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--ink) !important;
  text-decoration: none;
}

.procedure-hero,
.procedure-before,
.procedure-safety,
.procedure-section,
.walkthrough-not-found {
  margin: 0 0 20px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
}

.procedure-hero {
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(125deg, #202832, #354652);
  color: #f8f9fa;
}

.procedure-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.procedure-hero .eyebrow {
  color: #efb57e;
}

.procedure-lead {
  max-width: 900px;
  margin: 16px 0 20px;
  color: rgba(248, 249, 250, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  white-space: pre-wrap;
}

.procedure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.procedure-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.procedure-revision {
  margin: 16px 0 0;
  color: rgba(248, 249, 250, 0.72);
  font-size: 12px;
}

.procedure-before h2,
.procedure-safety h2,
.procedure-section h2,
.walkthrough-not-found h2 {
  margin: 0 0 18px;
  color: #29333a;
  font-size: clamp(22px, 3vw, 30px);
}

.procedure-before-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px 24px;
}

.procedure-before-grid h3 {
  margin: 0 0 8px;
  color: #29333a;
  font-size: 15px;
}

.procedure-before-grid ul,
.procedure-section ul {
  margin: 0;
  padding-left: 22px;
}

.procedure-before-grid li,
.procedure-section li {
  margin: 6px 0;
}

.procedure-resource-list {
  display: grid;
  gap: 8px;
  padding: 0 !important;
  list-style: none;
}

.procedure-resource-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 11px;
  border-left: 3px solid #c4cdd1;
  background: #f3f5f5;
}

.procedure-resource-list small,
.procedure-resource-list li > span {
  color: #657077;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.procedure-resource-list small {
  color: #9a5e28;
  font-weight: 800;
  text-transform: uppercase;
}

.procedure-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.procedure-facts > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid #e5e8e9;
}

.procedure-facts dt {
  color: #6b757c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: none;
}

.procedure-facts dd {
  min-width: 0;
  margin: 0;
  color: #29333a;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.procedure-callout {
  margin: 12px 0;
  padding: 14px 16px;
  border-left: 5px solid #58798e;
  background: #edf4f7;
}

.procedure-annotation {
  margin: 12px 0;
  padding: 12px 15px;
  border-left: 4px solid #728b55;
  background: #f1f5eb;
}

.procedure-annotation strong {
  color: #50653a;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.procedure-annotation p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.procedure-callout strong {
  color: #304d5c;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.procedure-callout p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.procedure-callout.warning,
.procedure-callout.caution {
  border-left-color: #a83e35;
  background: #faeeee;
}

.procedure-callout.warning strong,
.procedure-callout.caution strong {
  color: #852f29;
}

.procedure-callout.important {
  border-left-color: #b1791d;
  background: #faf4e5;
}

.procedure-callout.field-note {
  border-left-color: #43856d;
  background: #edf6f1;
}

.procedure-toc {
  position: sticky;
  z-index: 20;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #d8dcdf;
  border-radius: 4px;
  background: rgba(248, 249, 249, 0.96);
  box-shadow: 0 4px 16px rgba(29, 37, 43, 0.08);
  scrollbar-width: thin;
}

.procedure-before,
.procedure-safety,
.procedure-section {
  scroll-margin-top: 88px;
}

.procedure-toc strong {
  flex: 0 0 auto;
  padding: 0 9px;
  color: #29333a;
  font-size: 11px;
  text-transform: uppercase;
}

.procedure-toc a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 3px;
  color: #4e5a61;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.procedure-toc a:hover,
.procedure-toc a.is-current {
  background: #293842;
  color: #fff;
}

.procedure-section > p {
  white-space: pre-wrap;
}

.procedure-step {
  margin: 0 0 18px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #d8dcdf;
  border-radius: 4px;
  background: #fff;
  scroll-margin-top: 80px;
}

.procedure-step.is-complete {
  border-color: #75a18d;
  background: #f5faf7;
}

.procedure-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.procedure-step-heading > span {
  color: #a8463d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.procedure-step-heading h3 {
  margin: 0;
  color: #29333a;
  font-size: clamp(20px, 3vw, 28px);
}

.procedure-step-copy {
  margin: 14px 0;
}

.procedure-step-copy h4 {
  margin: 0 0 6px;
  color: #39464e;
  font-size: 13px;
  text-transform: uppercase;
}

.procedure-step-copy p {
  margin: 0;
  color: #3c464d;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.procedure-step-image {
  margin: 16px 0;
}

.procedure-step-image img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #eef0f1;
}

.procedure-step-image figcaption,
.procedure-step-image small {
  display: block;
  margin-top: 7px;
  color: #69737b;
}

.procedure-technical-card,
.procedure-spec-card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #d8dcdf;
  border-radius: 4px;
  background: #f8f9f9;
}

.procedure-technical-card > span,
.procedure-spec-card > span {
  color: #9d453c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.procedure-technical-card p {
  margin: 8px 0 0;
  color: #29333a;
  font-size: 17px;
  font-weight: 700;
  white-space: pre-wrap;
}

.procedure-reference-note {
  color: #647078;
  font-size: 13px;
}

.procedure-complete-button {
  min-height: 44px;
  margin-top: 12px;
  color: #29333a !important;
  border-color: #bcc5c9 !important;
  background: #f2f5f5 !important;
}

.procedure-step.is-complete .procedure-complete-button {
  border-color: #75a18d !important;
  background: #e7f2eb !important;
}

.procedure-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.procedure-spec-card {
  margin: 0;
}

.procedure-spec-card h3 {
  margin: 8px 0;
  color: #29333a;
}

.procedure-spec-card p {
  margin: 7px 0;
  white-space: pre-wrap;
}

.procedure-spec-value {
  font-size: 19px;
  font-weight: 800;
}

.procedure-trouble {
  margin: 12px 0;
  padding: 16px;
  border-left: 3px solid #bd8e69;
  background: #f8f9f9;
}

.procedure-trouble h3 {
  margin: 0 0 8px;
  color: #29333a;
}

.procedure-trouble a {
  display: inline-block;
  margin-top: 10px;
  color: #9d453c;
}

.procedure-related > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.procedure-related a {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d8dcdf;
  border-radius: 4px;
  color: #29333a;
  text-decoration: none;
}

.procedure-related a:hover {
  border-color: #a8463d;
}

.procedure-related a span {
  color: #657078;
  font-size: 13px;
  white-space: pre-wrap;
}

.procedure-draft-notice {
  margin-bottom: 20px;
  padding: 16px;
  border-left: 5px solid #bd8e69;
  background: #fff8ec;
}

.walkthrough-step-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.walkthrough-step-editor-heading,
.procedure-step-edit-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.walkthrough-step-editor-heading h3,
.procedure-step-edit-heading h4 {
  margin: 0;
}

.procedure-step-edit {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8dcdf;
  border-radius: 4px;
  background: #f8f9f9;
}

.procedure-step-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.procedure-step-edit-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.procedure-step-edit-fields label:has([data-step-field="instructions"]),
.procedure-step-edit-fields label:has([data-step-field="checklist"]),
.procedure-step-edit-fields label:has([data-step-field="warning"]),
.procedure-step-edit-fields label:has([data-step-field="specification"]),
.procedure-step-edit-fields label:has([data-step-field="fieldNote"]),
.procedure-step-edit-fields label:has([data-step-field="annotation"]) {
  grid-column: 1 / -1;
}

.procedure-step-edit-fields input,
.procedure-step-edit-fields textarea {
  width: 100%;
  min-width: 0;
}

.procedure-admin-preview {
  max-height: 70vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid #b7c0c4;
  background: #e9edef;
}

.procedure-admin-preview .procedure-complete-button,
.procedure-admin-preview .procedure-print-button,
.procedure-admin-preview .walkthrough-back-link {
  display: none;
}

.procedure-admin-preview .procedure-hero {
  padding: 20px;
}

.procedure-admin-preview .procedure-hero h1 {
  font-size: 28px;
}

.doc-manager {
  gap: 16px;
}

.doc-admin-section {
  display: grid;
  gap: 6px;
}

.doc-admin-section > h3 {
  margin: 0;
  color: #29333a;
}

.doc-admin-section-list {
  display: grid;
  gap: 6px;
}

.doc-entry {
  min-width: 0;
  padding: 8px;
}

.doc-entry-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.doc-entry-fields label {
  min-width: 0;
}

.doc-entry-fields .doc-entry-notes {
  grid-column: 1 / -1;
}

.doc-entry-fields .doc-entry-notes textarea {
  width: 100%;
  overflow-y: hidden;
  resize: none;
}

.doc-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.doc-entry-actions {
  grid-column: 1 / -1;
}

.doc-entry-actions button {
  min-width: 34px;
  padding: 6px 8px;
}

.source-card p {
  color: #657078;
}

.source-card a,
.mini-link {
  color: #9d453c;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-landing-card {
  min-height: 186px;
  border-color: #d5dadd;
  border-radius: 3px;
  background: linear-gradient(145deg, #fbfcfc, #eef1f2);
  box-shadow: 0 9px 24px rgba(29, 37, 43, 0.07);
}

.admin-landing-card:hover,
.admin-landing-card:focus-visible {
  border-color: #ad7067;
  box-shadow: 0 15px 28px rgba(29, 37, 43, 0.12);
}

.admin-card-kicker,
.admin-landing-card i {
  color: #99473e;
}

.admin-landing-card strong {
  color: #29333a;
  font-weight: 620;
}

.admin-landing-card > span:not(.admin-card-kicker) {
  color: #69747b;
}

.admin-editor-heading h2 {
  color: #000;
}

.admin-editor-heading p:not(.eyebrow) {
  color: rgba(239, 242, 243, 0.82);
}

.admin-editor-heading .button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(20, 27, 33, 0.36);
  color: #f4f5f4;
}

.doc-entry label {
  color: #58636a;
}

@media (max-width: 760px) {
  #document-form,
  .doc-entry-fields {
    grid-template-columns: 1fr;
  }

  .procedure-step-edit-fields {
    grid-template-columns: 1fr;
  }

  .walkthrough-record-content {
    gap: 12px;
  }

  .walkthrough-record-content.has-thumbnail {
    grid-template-columns: minmax(100px, 132px) minmax(0, 1fr);
  }

  .record-image.walkthrough-record-thumbnail {
    height: 100px;
    max-height: 100px;
  }

  .procedure-step-edit-fields label:has([data-step-field="instructions"]),
  .procedure-step-edit-fields label:has([data-step-field="checklist"]),
  .procedure-step-edit-fields label:has([data-step-field="warning"]),
  .procedure-step-edit-fields label:has([data-step-field="specification"]),
  .procedure-step-edit-fields label:has([data-step-field="fieldNote"]),
  .procedure-step-edit-fields label:has([data-step-field="annotation"]) {
    grid-column: auto;
  }

  .procedure-facts > div {
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
  }

  .procedure-step-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body,
  .site-shell,
  .workspace {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .app-header,
  .tabs,
  #view-dashboard,
  #view-build-sheet,
  #view-walkthroughs,
  #view-oem-procedures,
  #view-docs,
  #view-gallery,
  #view-admin,
  #view-admin-access,
  #view-admin-profile,
  #view-admin-records,
  #view-admin-walkthroughs,
  #view-admin-oem,
  #view-admin-docs,
  #view-admin-gallery,
  .walkthrough-back-link,
  .procedure-toc,
  .procedure-complete-button,
  .procedure-print-button {
    display: none !important;
  }

  #view-walkthrough-detail,
  #view-walkthrough-detail.active {
    display: block !important;
  }

  .procedure-hero,
  .procedure-before,
  .procedure-safety,
  .procedure-section,
  .procedure-step,
  .procedure-spec-card,
  .procedure-technical-card {
    break-inside: avoid;
    margin: 0 0 12px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #bbb;
    border-radius: 0;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
  }

  .procedure-hero h1,
  .procedure-before h2,
  .procedure-safety h2,
  .procedure-section h2,
  .procedure-step-heading h3,
  .procedure-spec-card h3 {
    color: #000 !important;
  }

  .procedure-hero .eyebrow,
  .procedure-meta span,
  .procedure-callout,
  .procedure-spec-card > span,
  .procedure-technical-card > span {
    color: #000 !important;
    background: #fff !important;
  }

  .procedure-callout {
    border: 1px solid #888;
  }

  .procedure-step-image img {
    max-height: 150mm;
    object-fit: contain;
  }

  #document-form > label:has(#document-notes),
  .doc-entry-fields .doc-entry-notes {
    grid-column: auto;
  }
}

.page-content-preview-card {
  border-color: #d6dbdd;
  border-radius: 3px;
  background: #f2f4f4;
}

.page-content-preview-card strong {
  color: #29333a;
}

.page-content-preview-card span {
  color: #9d4d43;
}

dialog {
  border: 1px solid #d0d6d8;
  border-radius: 4px;
  background: #f7f8f8;
  box-shadow: 0 28px 80px rgba(17, 23, 28, 0.3);
}

dialog::backdrop {
  background: rgba(19, 25, 30, 0.64);
  backdrop-filter: blur(3px);
}

.dialog-heading h2,
.icon-button {
  color: #29333a;
}

@media (max-width: 760px) {
  .admin-gallery-category {
    grid-template-columns: 1fr;
  }

  .gallery-admin-category-select {
    grid-template-columns: 1fr;
  }

  .gallery-workspace {
    grid-template-columns: 1fr;
  }

  .gallery-image-list {
    grid-row: 2;
  }

  .gallery-featured-image {
    grid-row: 1;
    position: sticky;
    top: 64px;
    z-index: 4;
    min-height: 0;
    padding: 16px;
  }

  .gallery-featured-media,
  .gallery-featured-media > img {
    min-height: 180px;
  }

  .gallery-featured-media > img {
    height: min(45vh, 420px);
  }

  .gallery-featured-caption {
    align-items: start;
  }

  .gallery-original-download {
    margin-top: 3px;
  }

  .app-header {
    padding: 20px 19px 17px;
  }

  .tabs {
    gap: 15px;
    padding-right: 19px;
    padding-left: 19px;
  }

  .workspace {
    margin-top: 18px;
    padding: 0 19px;
  }

  .hero-card {
    min-height: 490px;
    padding: 27px;
    background-position: 59% center;
  }

  .hero-card h2 {
    font-size: min(var(--dashboard-title-size, 58px), 11vw);
  }

  .hero-card .status {
    display: inline-block;
    margin-top: 20px;
  }

  .stat-grid article {
    min-height: 92px;
    padding: 15px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-brand-bar {
    overflow-x: auto;
  }

  .dashboard-brand-logo-list {
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
  }

  .dashboard-brand-logo-add {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dashboard-brand-logo-admin-item {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 19px;
  }
}

@media (max-width: 420px) {
  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 0.86rem;
  }

  .header-actions .button {
    padding: 10px 11px;
    font-size: 9px;
  }

  .hero-card {
    min-height: 440px;
    padding: 22px;
  }

  .stat-grid {
    gap: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
