:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --paper: #fffefb;
  --ink: #171817;
  --muted: #6f7472;
  --line: #dedfd8;
  --teal: #24645f;
  --teal-soft: #e4f0ed;
  --gold: #c89124;
  --rust: #c64e2b;
  --cream: #f5efe1;
  --shadow: 0 7px 22px rgba(30, 37, 35, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.print-content {
  display: none;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(430px, 1fr) max-content;
  grid-template-rows: auto auto;
  gap: 2px 18px;
  align-items: start;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(35, 75, 61, .2);
  background: #fff;
  box-shadow: 0 9px 30px rgba(27, 42, 33, .08);
}

.brand-block {
  --brand-icon-layout-size: 42px;
  --brand-lockup-gap: 13px;
  position: relative;
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  grid-template-columns: max-content;
  align-content: start;
  align-self: start;
  align-items: start;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}

.brand-lockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: var(--brand-lockup-gap);
  min-width: 0;
}

.brand-icon-link,
.brand-wordmark,
.switcher-caret {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-icon-link {
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.brand-icon {
  display: block;
  width: var(--brand-icon-layout-size);
  height: var(--brand-icon-layout-size);
  flex: 0 0 auto;
}

.brand-copy {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-wordmark {
  color: #102c2d;
  font-family: "Avenir Next", Inter, sans-serif;
  font-size: clamp(29px, 1.35vw, 40px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-app-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #466292;
  font-family: "Avenir Next", Inter, sans-serif;
  font-size: clamp(9px, .82vw, 11px);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.switcher-caret {
  color: #466292;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.brand-icon-link:focus-visible,
.brand-wordmark:focus-visible,
.switcher-caret:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(70, 98, 146, .14);
}

.partner-line {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  width: fit-content;
  max-width: min(100%, 290px);
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(16, 44, 45, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 4px 12px rgba(24, 32, 29, .08);
  color: #466292;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .42);
  white-space: normal;
  backdrop-filter: blur(8px) saturate(1.05);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.partner-line:hover,
.partner-line:focus-visible {
  border-color: rgba(70, 98, 146, .54);
  background: rgba(237, 241, 247, .92);
  box-shadow: 0 0 0 3px rgba(70, 98, 146, .14), 0 8px 20px rgba(24, 32, 29, .12);
  color: #344d78;
  outline: 0;
  transform: translateY(1px);
}

.app-switcher {
  position: absolute;
  left: 0;
  bottom: 3px;
  z-index: 50;
  line-height: 0;
}

.app-switcher summary {
  list-style: none;
}

.app-switcher summary::-webkit-details-marker {
  display: none;
}

.app-switcher-menu {
  position: absolute;
  top: 22px;
  left: 0;
  display: grid;
  width: min(360px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 112px));
  gap: 4px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(16, 44, 45, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(31, 27, 35, .2), 0 4px 14px rgba(31, 27, 35, .08);
  line-height: normal;
  scrollbar-width: thin;
  backdrop-filter: blur(18px) saturate(1.08);
}

.app-switcher-menu::before {
  position: absolute;
  top: -6px;
  left: 98px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(16, 44, 45, .14);
  border-left: 1px solid rgba(16, 44, 45, .14);
  background: rgba(255, 255, 255, .98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.app-switcher-option {
  --app-accent: #9aabab;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background 130ms ease, transform 130ms ease;
}

.app-switcher-option:hover,
.app-switcher-option:focus-visible {
  outline: 0;
  transform: translateX(2px);
}

.app-switcher-option-home {
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 44, 45, .09);
  border-radius: 10px 10px 5px 5px;
  background: #ebedec;
}

.app-switcher-option-home:hover,
.app-switcher-option-home:focus-visible { background: #e4ebeb; }
.app-switcher-option-fixit { --app-accent: #466292; }
.app-switcher-option-fixit:hover,
.app-switcher-option-fixit:focus-visible { background: #edf1f7; }
.app-switcher-option-explore { --app-accent: #ffc400; }
.app-switcher-option-explore:hover,
.app-switcher-option-explore:focus-visible { background: #fff3c4; }
.app-switcher-option-lantern { --app-accent: #c67331; }
.app-switcher-option-lantern:hover,
.app-switcher-option-lantern:focus-visible { background: #fff0e5; }
.app-switcher-option-cooking { --app-accent: #e64635; }
.app-switcher-option-cooking:hover,
.app-switcher-option-cooking:focus-visible { background: #fde9e6; }
.app-switcher-option-story { --app-accent: #3d707c; }
.app-switcher-option-story:hover,
.app-switcher-option-story:focus-visible { background: #e6f0f2; }
.app-switcher-option-workbench { --app-accent: #6b4436; }
.app-switcher-option-workbench:hover,
.app-switcher-option-workbench:focus-visible { background: #f3e6dd; }
.app-switcher-option-homebook { --app-accent: #526b56; }
.app-switcher-option-homebook:hover,
.app-switcher-option-homebook:focus-visible { background: #e9f0ea; }
.app-switcher-option-labelwise { --app-accent: #6f5a7d; }
.app-switcher-option-labelwise:hover,
.app-switcher-option-labelwise:focus-visible { background: #efeaf2; }
.app-switcher-option-tabletop { --app-accent: #79a52b; }
.app-switcher-option-tabletop:hover,
.app-switcher-option-tabletop:focus-visible { background: #f0f6e5; }

.app-switcher-option.is-active {
  background: #edf1f7;
}

.app-switcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(16, 44, 45, .09);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--app-accent) 18%, transparent);
}

.app-switcher-mark {
  display: block;
  width: 100%;
  height: 100%;
  stroke: none;
}

.app-switcher-face {
  fill: #050606;
}

.app-switcher-nose {
  fill: var(--app-accent);
}

.app-switcher-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-switcher-copy strong {
  color: #332b3b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.app-switcher-copy small {
  color: #716b73;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.app-switcher-check,
.app-switcher-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-switcher-check {
  color: #466292;
}

.app-switcher-arrow {
  color: #a7a1a8;
}

.filter-panel,
.view-panel {
  display: grid;
  align-items: end;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.filter-panel {
  grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(120px, 1fr));
}

.view-panel {
  grid-template-columns: minmax(120px, 1fr) minmax(142px, 1fr) 38px;
}

.control {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #68736d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.control>span {
  padding-left: 2px;
}

.control input[type="search"],
.control select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5dbd1;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #26342d;
  font-size: 13px;
  font-weight: 650;
}

.control input[type="search"] {
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}

.control input:focus,
.control select:focus {
  border-color: #bd983d;
  box-shadow: 0 0 0 3px rgba(200, 145, 36, .12);
}

.control select {
  padding: 8px 29px 8px 11px;
  cursor: pointer;
}

.header-summary {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
  color: #708078;
  font-size: 11px;
  font-weight: 750;
  line-height: normal;
}

.tune-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d5dbd1;
  border-radius: 9px;
  background: #fff;
  color: #424643;
  cursor: pointer;
}

.tune-button svg {
  width: 18px;
}

.tune-button:hover {
  background: #f5f4ef;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: calc(100vh - 102px);
  min-height: 540px;
  padding: 24px 24px 18px 28px;
}

.catalog {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 260px;
  align-content: start;
  gap: 22px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  scrollbar-color: #b07c28 transparent;
  scrollbar-width: thin;
}

.project-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d9ddd7;
  border-radius: 14px;
  background: #fffefb;
  box-shadow: 0 8px 24px rgba(30, 42, 37, .065);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: #a9beb9;
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(30, 42, 37, .12);
}

.project-card.is-selected {
  border-color: #d9ddd7;
}

.project-card>a {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

.card-image {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-right: 1px solid rgba(35, 75, 61, .12);
  border-radius: 13px 0 0 13px;
  background-color: #eee8dc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.card-body {
  display: grid;
  grid-row: auto;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 10px;
  min-width: 0;
  padding: 22px 22px 0;
}

.card-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .105em;
  line-height: 1;
  text-transform: uppercase;
}

.card-eyebrow i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c89124;
}

.card-body h3 {
  max-width: 19ch;
  min-height: 58px;
  font-size: clamp(21px, 1.45vw, 27px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.card-description {
  display: -webkit-box;
  overflow: hidden;
  max-width: 46ch;
  color: #69706d;
  font-size: 14.5px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-cta {
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 2px;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .015em;
}

.card-cta span {
  color: #b27c17;
  font-size: 16px;
  line-height: 1;
  transition: transform .18s ease;
}

.project-card:hover .card-cta span,
.project-card:focus-within .card-cta span {
  transform: translateX(3px);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tag {
  padding: 6px 9px;
  border: 1px solid #d2dedb;
  border-radius: 7px;
  background: #eaf3f1;
  color: #244e4b;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.card-tag.secondary {
  border-color: #e1dbc9;
  background: #f8f1e3;
  color: #4d4434;
}

.card-footer {
  align-self: end;
  min-width: 0;
  margin: 0 -22px;
  padding: 13px 22px 15px;
  border-top: 1px solid #e7e8e3;
  background: #f7f8f5;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  color: #303532;
}

.meta-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.meta-item>svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: #52605c;
  stroke-width: 1.8;
}

.meta-item>span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.meta-item small {
  color: #848a86;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
}

.meta-item strong {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.difficulty-bars {
  color: #639f3e;
}

.difficulty-bars.medium {
  color: #d68e17;
}

.difficulty-bars i {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 2px;
  width: 19px;
  height: 19px;
}

.difficulty-bars i b {
  display: block;
  width: 4px;
  border-radius: 1px 1px 0 0;
  background: currentColor;
}

.difficulty-bars i b:nth-child(1) {
  height: 6px;
}

.difficulty-bars i b:nth-child(2) {
  height: 12px;
}

.difficulty-bars i b:nth-child(3) {
  height: 18px;
}

.catalog-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 43px;
  margin: -1px 0 0 -13px;
  padding: 0 13px;
  border: 1px solid #e1e2dc;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 3px 11px rgba(30, 37, 35, .055);
  color: #454a47;
  font-size: 12px;
}

.catalog-footer strong {
  color: #262a27;
}

.footer-spacer {
  width: 8px;
}

.catalog-footer button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #e1e2dc;
  border-radius: 50%;
  background: #fff;
  color: #686f6b;
  font-size: 21px;
  cursor: pointer;
}

.catalog-footer button:disabled {
  opacity: .35;
  cursor: default;
}

.catalog-footer b {
  min-width: 42px;
  text-align: center;
}

.empty-state {
  place-self: center;
  display: grid;
  gap: 5px;
  color: #707572;
  text-align: center;
}

.empty-state strong {
  color: #252825;
  font-size: 22px;
}

.detail-panel {
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 50%;
  z-index: 45;
  display: none;
  width: min(1360px, calc(100vw - 48px));
  min-width: 0;
  min-height: 0;
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid #d8dad4;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(20, 29, 27, .3);
  scrollbar-color: #b27824 transparent;
  scrollbar-width: thin;
}

.detail-panel.is-open {
  display: block;
}

.detail-head {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #e5e5df;
  background: rgb(224 224 224);
  backdrop-filter: blur(10px);
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-title-row h2 {
  font-size: 21px;
  letter-spacing: -.02em;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dedfd9;
  border-radius: 8px;
  background: #fff;
  color: #313632;
  cursor: pointer;
}

.icon-action svg {
  width: 19px;
}

.detail-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 12px;
}

.detail-tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f4f1e9;
  color: #545956;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-tab.is-active {
  border-color: #cdb783;
  background: #fffdf7;
  color: #7c5a1a;
}

.detail-body {
  padding: 0 14px 14px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, .75fr);
  align-items: stretch;
  border-bottom: 1px solid #e4e4de;
}

.overview-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  background: #fff;
}

.detail-visual {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 18px;
  background: #fff;
}

.detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 660px;
  object-fit: contain;
}

.detail-visual svg {
  width: 100%;
  height: 420px;
  color: #344d49;
  stroke-width: 1.6;
}

.detail-visual .accent {
  stroke: var(--rust);
}

.detail-visual .fill-soft {
  fill: #f0eadc;
  stroke: #56625f;
}

.detail-visual .fill-metal {
  fill: #d9ded9;
  stroke: #56625f;
}

.diagram-callout circle {
  fill: var(--teal);
  stroke: none;
}

.diagram-callout text {
  fill: #fff;
  stroke: none;
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.detail-overview-grid {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  border-left: 1px solid #e4e4de;
  background: #fff;
}

.detail-column {
  min-width: 0;
  padding: 20px;
}

.detail-column+.detail-column {
  border-top: 1px solid #e4e4de;
}

.detail-column h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

.diagnostic-list,
.parts-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.diagnostic-item {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.number-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.diagnostic-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.parts-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border-bottom: 1px solid #ecece6;
  font-size: 10px;
}

.parts-item:last-child {
  border-bottom: 0;
}

.part-image {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid #e0dfd7;
  border-radius: 8px;
  background: #f7f2e7;
  object-fit: cover;
}

.parts-item strong {
  font-size: 10px;
}

.parts-item small {
  color: #7a807c;
}

.part-check {
  width: 16px;
  height: 16px;
  border: 1px solid #d8d3c4;
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
}

.part-check:checked {
  background: var(--teal);
  box-shadow: inset 0 0 0 3px #fff;
}

.safety-strip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-top: 0;
  background: #f3e5e3;
}

.safety-icon {
  display: grid;
  place-items: center;
  color: #a87016;
  font-size: 31px;
}

.safety-copy strong {
  color: #a54d28;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.safety-copy p {
  margin-top: 5px;
  color: #707572;
  font-size: 10px;
  line-height: 1.4;
}

.safety-art {
  display: flex;
  justify-content: end;
  gap: 9px;
  color: #5d6966;
  font-size: 28px;
}

.tab-content {
  padding: 24px 12px 8px;
}

.tab-content h3 {
  font-size: 21px;
}

.tab-content>p {
  margin-top: 8px;
  color: #666e6a;
  font-size: 15px;
  line-height: 1.55;
}

.procedure-list {
  display: grid;
  gap: 16px;
  margin-top: 19px;
}

.procedure-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(240px, 300px);
  align-items: center;
  gap: 18px;
  min-height: 432px;
  padding: 14px 16px;
  border: 1px solid #e4e4de;
  border-radius: 10px;
  background: #fff;
  scroll-margin-top: 88px;
}

.procedure-step b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
}

.procedure-step strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.procedure-step p {
  margin-top: 5px;
  color: #717774;
  font-size: 14px;
  line-height: 1.45;
}

.procedure-step svg {
  width: 148px;
  height: 94px;
  color: #50635f;
}

.step-image {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 300 / 404;
  justify-self: end;
  border: 1px solid #e1dfd7;
  border-radius: 9px;
  background: #f5f0e5;
  object-fit: contain;
}

.video-card {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid #dedfd9;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(24, 36, 33, .055);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #172624;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy {
  display: grid;
  gap: 5px;
  padding: 14px 15px 16px;
}

.video-copy small {
  color: var(--rust);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.video-copy strong {
  font-size: 14px;
  line-height: 1.3;
}

.video-copy a {
  width: fit-content;
  color: #717774;
  font-size: 11px;
  text-decoration: none;
}

.video-copy a:hover,
.video-copy a:focus-visible {
  color: var(--teal);
  text-decoration: underline;
}

.video-card.is-related {
  display: grid;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.video-card.is-related:hover,
.video-card.is-related:focus-visible {
  border-color: #b8c6c1;
  box-shadow: 0 12px 28px rgba(24, 36, 33, .11);
  outline: 0;
  transform: translateY(-2px);
}

.video-card.is-related:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 100, 95, .16), 0 12px 28px rgba(24, 36, 33, .11);
}

.video-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #172624;
}

.video-preview::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(13, 22, 20, .55));
  content: "";
}

.video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
}

.video-card.is-related:hover .video-preview img,
.video-card.is-related:focus-visible .video-preview img {
  filter: saturate(.92) contrast(1.04);
  transform: scale(1.025);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #173f3b;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(12, 20, 18, .22);
  transform: translate(-50%, -50%);
}

.video-watch {
  position: absolute;
  right: 12px;
  bottom: 11px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .025em;
}

.video-card.is-related .video-copy {
  display: grid;
  grid-template-rows: auto minmax(36px, auto) auto;
  align-content: start;
}

.video-source {
  color: #717774;
  font-size: 11px;
}

.video-window {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, calc(100vw - 48px));
  height: min(520px, calc(100vh - 120px));
  min-width: 420px;
  min-height: 320px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow: hidden;
  resize: both;
  transform: translate(-50%, -50%);
  border: 1px solid #cfd5cf;
  border-radius: 14px;
  background: #090a0a;
  box-shadow: 0 24px 70px rgba(9, 16, 14, .42);
}

.video-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 9px 10px 9px 14px;
  background: #090a0a;
  color: #fff;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.video-window-bar div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.video-window-bar small {
  color: #8fc5bf;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.video-window-bar strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-window-bar button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #3a403e;
  border-radius: 8px;
  background: #171a19;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.video-window-bar button:hover,
.video-window-bar button:focus-visible {
  border-color: #8fc5bf;
  background: #222725;
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 100, 95, .12);
}

.video-window-frame {
  position: relative;
  min-height: 0;
  background: #0b0d0c;
}

.video-window-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-window footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px 14px;
  border-top: 1px solid #252927;
  background: #090a0a;
}

.video-window footer a {
  color: #a9d7d2;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.video-window footer a:hover,
.video-window footer a:focus-visible {
  text-decoration: underline;
}

.video-window footer span {
  color: #929996;
  font-size: 10px;
}

.video-window.is-dragging {
  user-select: none;
}

.diagnosis-step {
  border-color: #d7e2df;
  background: #fbfdfc;
}

.diagnosis-step small {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.diagnosis-result {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #f8f3e7;
}

.diagnosis-result strong {
  color: #725414;
  font-size: 14px;
  text-transform: uppercase;
}

.diagnosis-result p {
  margin-top: 6px;
  color: #5e625f;
  font-size: 14px;
  line-height: 1.5;
}

/* Professional, compact guide drawer */
.detail-panel {
  --reader-width: 860px;
  --reader-inner: 820px;
  top: 20px;
  bottom: 20px;
  width: min(960px, calc(100vw - 40px));
  min-width: 0;
  min-height: 0;
  overflow: auto;
  resize: none;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #fffefa;
}

.detail-head {
  padding: 12px 16px 0;
}

.detail-title-row {
  position: relative;
  min-height: 34px;
  margin: 0 auto;
  padding-right: 120px;
  padding-left: 32px;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.detail-panel.is-dragging {
  user-select: none;
}

.detail-title-row h2 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.detail-actions {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 8;
  gap: 6px;
  transform: translateY(-50%);
}

.share-control {
  position: relative;
}

.share-trigger {
  border-radius: 50%;
}

.share-control.is-open .share-trigger {
  border-color: #c99b43;
  background: #fff7df;
  color: #173f3b;
  box-shadow: 0 0 0 4px rgba(201, 155, 67, .17);
}

.share-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  z-index: 30;
  width: 164px;
  overflow: visible;
  border: 1px solid #d7ded8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 36, 33, .18);
}

.share-menu::before {
  position: absolute;
  top: -7px;
  right: 21px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #d7ded8;
  border-left: 1px solid #d7ded8;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.share-menu[hidden] {
  display: none;
}

.share-menu button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: #34433f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.share-menu button:first-child {
  border-radius: 10px 10px 0 0;
}

.share-menu button:last-child {
  border-top: 1px solid #e5e9e5;
  border-radius: 0 0 10px 10px;
}

.share-menu button:hover,
.share-menu button:focus-visible {
  background: #f5f7f4;
  color: #173f3b;
  outline: 0;
}

.icon-action {
  position: relative;
  width: 32px;
  height: 32px;
  border-color: #dfe1db;
  border-radius: 9px;
  color: #3f4743;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.icon-action[data-feedback]::after {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 20;
  width: max-content;
  padding: 6px 8px;
  border: 1px solid #d9ddd8;
  border-radius: 7px;
  background: #173f3b;
  color: #fff;
  content: attr(data-feedback);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(18, 29, 26, .18);
}

.icon-action:hover {
  border-color: #c9cec7;
  background: #f6f7f4;
  color: #173f3b;
}

.icon-action:focus-visible {
  outline: 2px solid #2b6f69;
  outline-offset: 2px;
}

.detail-tabs {
  gap: 0;
  margin: 9px auto 0;
  padding: 0;
  border-top: 1px solid #b7b7b6;
}

.detail-tab {
  flex: 1 1 0;
  min-width: max-content;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  margin-top: 2px;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #656b67;
  font-size: 9.5px;
  letter-spacing: .055em;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.detail-tab:hover {
  background: #e9d6b4;
  color: #283f3b;
}

.detail-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #2b6f69;
  outline-offset: -2px;
}

.detail-body {
  padding: 0 16px 16px;
}

.overview-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
}

.detail-visual {
  min-height: 440px;
  padding: 14px;
}

.detail-visual img {
  max-height: 560px;
}

.detail-visual svg {
  height: 360px;
}

.detail-column {
  padding: 16px;
}

.detail-column h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.diagnostic-item {
  display: block;
  padding: 2px 0;
}

.number-dot {
  width: 23px;
  height: 23px;
  font-size: 11px;
}

.diagnostic-item strong {
  font-size: 12px;
  line-height: 1.35;
}

.overview-step-link {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 4px 5px 4px 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

.overview-step-link:hover,
.overview-step-link:focus-visible {
  background: #f0f5f3;
  color: #174e49;
  outline: 0;
  transform: translateX(2px);
}

.step-arrow {
  color: #8b9792;
  font-size: 17px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .14s ease, transform .14s ease;
}

.overview-step-link:hover .step-arrow,
.overview-step-link:focus-visible .step-arrow {
  opacity: 1;
  transform: translateX(0);
}

.parts-list>li {
  border-bottom: 1px solid #ecece6;
}

.parts-list>li:last-child {
  border-bottom: 0;
}

.parts-item {
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 9px;
  min-height: 50px;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.part-image {
  width: 36px;
  height: 36px;
}

.parts-item strong {
  font-size: 11px;
  line-height: 1.25;
}

.part-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.part-check-ui {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #cbcfc8;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.parts-item:hover .part-check-ui {
  border-color: #8ba7a2;
}

.part-check:focus-visible+.part-check-ui {
  box-shadow: 0 0 0 3px rgba(36, 100, 95, .14);
}

.part-check:checked+.part-check-ui {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.safety-strip {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 14px;
}

.safety-icon {
  font-size: 27px;
}

.safety-copy strong {
  font-size: 10px;
}

.safety-copy p {
  margin-top: 3px;
  font-size: 10px;
}

.tab-content {
  padding: 18px 2px 2px;
}

.section-intro {
  display: block;
  width: min(100%, var(--reader-width));
  margin: 0 auto;
  padding: 0 0 15px;
  border-bottom: 1px solid #e5e6e0;
}

.section-intro h3 {
  font-size: 21px;
  letter-spacing: -.015em;
}

.section-intro p {
  max-width: 640px;
  margin-top: 6px;
  color: #69716d;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.guide-step-grid,
.diagnosis-content .guide-step-grid {
  grid-template-columns: 1fr;
  gap: 0;
  width: min(100%, var(--reader-width));
  margin: 0 auto;
}

.guide-step-grid .procedure-step {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 13px;
  min-height: 0;
  padding: 26px 8px 28px;
  border: 0;
  border-bottom: 1px solid #e1e3dd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guide-step-grid .procedure-step:last-child {
  border-bottom: 0;
}

.step-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(100%, var(--reader-inner));
  margin: 0 auto;
  min-width: 0;
}

.guide-step-grid .procedure-step b,
.tip-card b {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.guide-step-grid .procedure-step strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.guide-step-grid .step-description {
  width: min(100%, var(--reader-inner));
  max-width: 70ch;
  margin: 0 auto;
  color: #626a66;
  font-size: 14px;
  line-height: 1.55;
}

.guide-step-grid .step-image {
  display: block;
  width: min(100%, var(--reader-inner));
  max-width: var(--reader-inner);
  height: auto;
  aspect-ratio: auto;
  justify-self: center;
  border: 1px solid #dedfd8;
  border-radius: 11px;
  background: #f7f3e8;
  box-shadow: 0 4px 14px rgba(30, 37, 35, .05);
  object-fit: contain;
}

.diagnosis-content .guide-step-grid .diagnosis-step {
  gap: 12px;
  padding: 24px 8px 30px;
}

.diagnosis-content .guide-step-grid .step-image {
  width: min(100%, var(--reader-inner));
  max-width: var(--reader-inner);
  max-height: none;
  border-color: #d8ddd8;
  background: #f8f5ec;
}

.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.step-meta small {
  margin: 0;
}

.step-meta em {
  color: #8a918d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.diagnosis-step small {
  font-size: 9px;
}

.procedure-content .step-meta small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.diagnosis-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  width: min(100%, var(--reader-width));
  margin: 14px auto 0;
  padding: 12px 15px;
}

.diagnosis-result strong {
  font-size: 11px;
}

.diagnosis-result p {
  margin: 0;
  font-size: 12px;
}

.composite-content {
  padding-bottom: 10px;
}

.composite-sequence {
  width: min(100%, var(--reader-width));
  margin: 12px auto 0;
}

.composite-sequence-step {
  position: relative;
  padding: 22px 0 28px;
  border-bottom: 1px solid #dfe2dc;
  scroll-margin-top: 88px;
}

.composite-sequence-step:first-child {
  padding-top: 12px;
}

.composite-sequence-step:last-child {
  border-bottom: 0;
}

.composite-sequence-step:not(:last-child)::before {
  position: absolute;
  top: 55px;
  bottom: -1px;
  left: 15px;
  width: 1px;
  background: linear-gradient(#b8cfca, #dfe2dc 75%, transparent);
  content: "";
}

.composite-sequence-step header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.composite-sequence-step header b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
}

.composite-sequence-step small {
  display: block;
  margin: 1px 0 3px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.composite-sequence-step .step-meta {
  justify-content: flex-start;
  gap: 9px;
  margin-bottom: 3px;
}

.composite-sequence-step .step-meta small::after {
  margin-left: 9px;
  color: #b4bab6;
  content: "·";
}

.composite-sequence-step strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.composite-sequence-step>p {
  max-width: 70ch;
  margin: 8px 0 11px 46px;
  color: #59615d;
  font-size: 14px;
  line-height: 1.55;
}

.composite-sequence-step>img {
  display: block;
  width: calc(100% - 46px);
  height: auto;
  margin-left: 46px;
  border: 1px solid #dedfd8;
  border-radius: 11px;
  background: #f7f3e8;
  box-shadow: 0 4px 14px rgba(30, 37, 35, .05);
}

.detail-tab.is-active {
  border-color: #bd8a29;
  background: linear-gradient(to bottom, transparent 68%, rgba(210, 158, 49, .08));
  color: #684b13;
  box-shadow: none;
}

.detail-panel[data-active-tab="diagnose"] .guide-step-grid .step-meta {
  justify-content: flex-start;
  gap: 9px;
}

.detail-panel[data-active-tab="diagnose"] .guide-step-grid .step-meta small::after {
  margin-left: 9px;
  color: #b4bab6;
  content: "·";
}

.detail-panel[data-active-tab="diagnose"] .guide-step-grid .step-description {
  max-width: 70ch;
}

.tips-layout {
  width: min(100%, 760px);
  margin: 0 auto;
}

.tip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}

.tips-content .section-intro {
  width: min(100%, 760px);
}

.tip-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 10px;
  min-height: 0;
  padding: 25px 0 26px;
  border: 0;
  border-bottom: 1px solid #e6e7e1;
  border-radius: 0;
  background: transparent;
}

.tip-card:last-child {
  border-bottom: 0;
}

.tip-card b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.tip-card .step-meta {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.tip-card .step-meta small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tip-card .step-meta small::after {
  margin-left: 8px;
  color: #b8bdb9;
  content: "\00b7";
}

.tip-card .step-meta em {
  font-size: 8.5px;
}

.tip-card strong {
  display: block;
  font-size: 16.5px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.tip-card p {
  width: auto;
  max-width: 66ch;
  margin: 0 0 0 41px;
  color: #59615d;
  font-size: 13.5px;
  line-height: 1.58;
}

.tip-card aside {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 41px);
  margin: 2px 0 0 41px;
  padding: 9px 12px 9px 10px;
  border: 1px solid #eadfc7;
  border-radius: 8px;
  background: #fbf8ef;
  color: #565e5a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.42;
}

.tip-card aside span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e9d29d;
  color: #78540d;
  font-size: 11px;
  font-weight: 950;
}

.videos-content {
  width: min(100%, var(--reader-width));
  margin: 0 auto;
}

.video-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}

.video-library .video-card {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.video-library .video-copy {
  gap: 7px;
  padding: 17px 18px 19px;
}

.video-library .video-copy small {
  font-size: 10px;
}

.video-library .video-copy strong {
  font-size: 16px;
  line-height: 1.28;
}

.video-library .video-source {
  font-size: 12px;
}

.video-library .video-play {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.video-library .video-watch {
  right: 15px;
  bottom: 13px;
  font-size: 11px;
}

.video-card.is-featured .video-copy {
  grid-template-columns: 1fr;
}

.safety-content {
  max-width: 1080px;
  margin: 0 auto;
}

.safety-lead {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #e3d7bb;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: #fbf7ed;
}

.safety-lead strong {
  color: #8d4a2b;
  font-size: 15px;
}

.safety-lead p {
  margin-top: 4px;
  color: #59605c;
  font-size: 13px;
  line-height: 1.5;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.safety-grid article {
  position: relative;
  min-height: 150px;
  padding: 17px;
  border: 1px solid #dedfd9;
  border-radius: 10px;
  background: #fff;
}

.safety-grid span {
  display: block;
  margin-bottom: 18px;
  color: #8d9a95;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.safety-grid strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.safety-grid p {
  margin-top: 6px;
  color: #6a716d;
  font-size: 12px;
  line-height: 1.45;
}

.mobile-scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(20, 29, 27, .45);
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: max-content minmax(400px, 1fr) max-content;
    grid-template-rows: auto;
    gap: 14px;
    align-items: end;
  }

  .brand-block {
    grid-column: 1;
    grid-row: 1;
  }

  .filter-panel {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(160px, 1.5fr) repeat(3, minmax(82px, 1fr));
  }

  .view-panel {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    grid-template-columns: minmax(90px, 110px) minmax(105px, 125px) 38px;
    width: auto;
  }

  .header-summary {
    display: none;
  }

  .workspace {
    height: calc(100vh - 102px);
  }

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

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: max-content minmax(330px, 1fr) max-content;
  }

  .filter-panel {
    grid-template-columns: minmax(150px, 1.5fr) repeat(2, minmax(82px, 1fr));
  }

  .filter-panel .control:nth-child(4),
  .view-panel .control:first-child {
    display: none;
  }

  .view-panel {
    grid-template-columns: minmax(105px, 125px) 38px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  .topbar {
    grid-template-columns: max-content minmax(260px, 1fr) max-content;
    grid-template-rows: auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-block {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: max-content;
    align-items: center;
    justify-items: start;
  }

  .partner-line {
    display: none;
  }

  .filter-panel {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(140px, 1.5fr) repeat(2, minmax(72px, .8fr));
    width: 100%;
    min-height: 0;
  }

  .view-panel {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .workspace {
    height: auto;
    padding: 16px;
  }

  .project-grid {
    grid-auto-rows: 260px;
    max-height: none;
    overflow: visible;
  }

  .detail-panel {
    inset: 12px;
    width: auto;
    transform: none;
  }

  .detail-title-row {
    cursor: default;
    touch-action: auto;
  }

  .detail-actions {
    position: static;
    transform: none;
  }

  .overview-layout {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    min-height: 340px;
  }

  .detail-overview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    border-top: 1px solid #e4e4de;
    border-left: 0;
  }

  .detail-column+.detail-column {
    border-top: 0;
    border-left: 1px solid #e4e4de;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 38px;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 9px 10px;
  }

  .brand-block {
    --brand-icon-layout-size: 36px;
    --brand-lockup-gap: 10px;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: max-content 1fr;
    width: 100%;
    align-items: center;
  }

  .brand-wordmark {
    font-size: 25px;
  }

  .partner-line {
    display: inline-flex;
    justify-self: end;
    padding: 4px 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  .filter-panel {
    display: block;
    grid-column: 1;
    grid-row: 2;
  }

  .view-panel {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 38px;
  }

  .control-search {
    display: grid;
  }

  .filter-panel .control:not(.control-search),
  .view-panel .control {
    display: none;
  }
}

@media (max-width: 650px) {
  .video-window {
    width: calc(100vw - 24px);
    height: min(420px, calc(100vh - 80px));
    min-width: 0;
    min-height: 280px;
    resize: none;
  }

  .video-window footer span {
    display: none;
  }

  .brand-block {
    --brand-icon-layout-size: 30px;
    --brand-lockup-gap: 9px;
    grid-template-columns: max-content 1fr;
  }

  .brand-wordmark {
    font-size: 22px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) 38px;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .filter-panel {
    display: block;
  }

  .view-panel {
    grid-template-columns: 38px;
  }

  .control-search {
    display: grid;
  }

  .filter-panel .control:not(.control-search),
  .view-panel .control {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(470px, auto);
  }

  .project-card>a {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 1fr) auto;
  }

  .card-body {
    padding: 18px 16px 0;
  }

  .card-body h3 {
    min-height: 0;
  }

  .card-image {
    border-right: 0;
    border-bottom: 1px solid rgba(35, 75, 61, .12);
    border-radius: 13px 13px 0 0;
  }

  .card-footer {
    margin: 0 -16px;
    padding: 12px 16px 14px;
  }

  .card-meta {
    grid-template-columns: 1fr 1fr;
  }

  .meta-item:nth-child(3) {
    display: none;
  }

  .workspace {
    padding: 12px;
  }

  .detail-overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-column+.detail-column {
    border-top: 1px solid #e4e4de;
    border-left: 0;
  }

  .safety-strip {
    grid-template-columns: 32px 1fr;
  }

  .safety-art {
    display: none;
  }

  .procedure-step {
    grid-template-columns: 32px 1fr;
    min-height: 0;
  }

  .procedure-step svg {
    display: none;
  }

  .procedure-step .step-image {
    grid-column: 1 / -1;
    width: min(100%, 300px);
    height: auto;
    margin-top: 8px;
    justify-self: center;
  }
}

@media (max-width: 1100px) {

  .guide-step-grid,
  .diagnosis-content .guide-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .section-intro {
    display: block;
  }

  .section-intro p {
    margin-top: 5px;
    text-align: left;
  }

  .guide-step-grid,
  .diagnosis-content .guide-step-grid,
  .tip-grid,
  .safety-grid,
  .video-library {
    grid-template-columns: 1fr;
  }

  .guide-step-grid .procedure-step {
    min-height: 0;
  }

  .guide-step-grid .step-image {
    width: min(100%, 620px);
  }

  .tip-card {
    min-height: 0;
  }

  .tip-card svg {
    display: block;
  }

  .video-library {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .safety-grid article {
    min-height: 0;
  }

  .safety-grid span {
    margin-bottom: 8px;
  }
}

@media (max-width: 520px) {
  .detail-head {
    padding: 12px;
  }

  .detail-title-row {
    padding-right: 0;
  }

  .detail-title-row h2 {
    font-size: 18px;
  }

  .detail-body {
    padding: 0 10px 10px;
  }

  .guide-step-grid .step-image,
  .diagnosis-content .guide-step-grid .step-image {
    width: 100%;
  }

  .tip-card svg {
    width: 100px;
  }

  .safety-lead {
    grid-template-columns: 34px 1fr;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    overflow: visible;
    background: #fff;
  }

  body > :not(.print-content) {
    display: none !important;
  }

  .print-content {
    display: block !important;
    color: #161a18;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .print-guide {
    width: 100%;
  }

  .print-guide-head {
    padding: 0 0 9mm;
    border-bottom: 2px solid var(--teal);
  }

  .print-guide-head span {
    color: var(--teal);
    font-size: 9pt;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .print-guide-head h1 {
    margin: 3mm 0 1.5mm;
    font-size: 25pt;
    line-height: 1.08;
  }

  .print-guide-head p {
    max-width: 150mm;
    margin: 0;
    color: #59615d;
    font-size: 11pt;
    line-height: 1.45;
  }

  .print-guide-section {
    width: 100%;
    break-before: page;
  }

  .print-guide-section:first-of-type {
    break-before: auto;
  }

  .print-guide-section > h2 {
    margin: 0 0 6mm;
    padding: 8mm 0 3mm;
    border-bottom: 1px solid #cfd5d1;
    color: #173f3b;
    font-size: 18pt;
  }

  .print-content .tab-content,
  .print-content .videos-content,
  .print-content .section-intro,
  .print-content .composite-sequence,
  .print-content .tips-layout,
  .print-content .tips-content .section-intro {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .print-content .section-intro {
    padding-top: 0;
  }

  .print-content .overview-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(58mm, .9fr);
    border: 1px solid #d9ddd8;
  }

  .print-content .detail-visual {
    min-height: 0;
    padding: 5mm;
  }

  .print-content .detail-visual img {
    max-height: 150mm;
  }

  .print-content .detail-column {
    padding: 4mm;
  }

  .print-content .overview-step-link {
    color: inherit;
  }

  .print-content .step-arrow,
  .print-content .part-check,
  .print-content .part-check-ui {
    display: none;
  }

  .print-content .composite-sequence-step,
  .print-content .tip-card,
  .print-content .safety-strip {
    break-inside: avoid;
  }

  .print-content .composite-sequence-step {
    padding: 5mm 0 7mm;
  }

  .print-content .composite-sequence-step > img {
    max-height: 150mm;
    object-fit: contain;
  }

  .print-content .tip-card {
    padding: 5mm 0;
  }

  .print-content .tip-card aside {
    border-left: 3px solid #c89124;
  }
}
