/* Lawsonite Field Guides — crash courses, cheats, manuals, extra TS. */

body.fk-guides #root,
body.fk-guides .app-shell {
  min-height: 0 !important;
  height: auto !important;
}
body.fk-guides .app-main {
  display: none !important;
  flex: none !important;
}
body.fk-guides .app-footer,
body.fk-guides .disclaimer-banner { display: none !important; }

.gd-root {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0.75rem 1rem calc(5.8rem + env(safe-area-inset-bottom, 0px));
}
.gd-jobbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.gd-jobbar-lab {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.gd-jobbar-sel,
.fk-job-sel {
  flex: 1 1 10rem;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
}
.gd-jobbar .gd-chip { min-height: 40px; padding: 0.3rem 0.7rem; }
.gd-page { display: grid; gap: 0.85rem; }

.gd-hero {
  padding: 0.15rem 0.1rem 0.1rem;
}
.gd-hero h1 { margin: 0; }
.gd-toolbar {
  position: sticky;
  top: calc(3.7rem + env(safe-area-inset-top, 0px));
  z-index: 8;
  display: grid;
  gap: 0.55rem;
  padding: 0.4rem 0 0.55rem;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.gd-filters { padding-bottom: 0.1rem; }
.gd-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gd-empty {
  color: var(--muted);
  margin: 0.5rem 0 0;
  padding: 1rem 0.2rem;
}
.gd-section { display: grid; gap: 0.4rem; }
.gd-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.1rem 0;
}
.gd-section-head h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.gd-section-head span { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.gd-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.gd-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  min-height: 56px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.gd-row:last-child { border-bottom: 0; }
.gd-row:hover { background: var(--brand-soft); }
.gd-row-text strong {
  display: block;
  color: var(--brand-deep);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.gd-row-text span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-kind {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.gd-row .gd-tile-ico {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
}

.gd-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}
.gd-page h1 {
  letter-spacing: -0.03em;
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
}
.gd-lede { color: var(--muted); margin: 0.45rem 0 0; }

.gd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 44px;
}
.gd-back:hover { color: var(--brand); }

.gd-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.gd-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}
.gd-card p { margin: 0 0 0.65rem; }
.gd-card p:last-child { margin-bottom: 0; }

.gd-warn, .gd-tip, .gd-note {
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.45;
}
.gd-warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-text);
}
.gd-tip {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
}
.gd-note {
  background: var(--surface);
  color: var(--muted);
}
.gd-warn strong, .gd-tip strong, .gd-note strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.gd-tip strong { color: var(--brand); }

.gd-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.gd-steps li { color: var(--ink); }
.gd-steps .gd-mini {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.gd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.gd-table th, .gd-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.gd-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gd-table td:first-child { font-weight: 750; color: var(--brand-deep); white-space: nowrap; }
.gd-table tr:last-child td { border-bottom: 0; }
.gd-foot { color: var(--muted); font-size: 0.82rem; margin: 0.55rem 0 0; }

.gd-svg {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.75rem;
  overflow: hidden;
}
.gd-svg svg { width: 100%; height: auto; display: block; }
.gd-svg figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.55rem 0 0;
}

.gd-grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .gd-grid-2 { grid-template-columns: 1fr 1fr; }
}

.gd-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--fk-shadow);
  padding: 0.85rem 0.95rem;
  color: inherit;
  text-decoration: none;
  min-height: 72px;
}
.gd-tile:hover { border-color: var(--hover-line); }
.gd-tile strong { display: block; color: var(--brand-deep); }
.gd-tile span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.gd-tile-ico {
  width: 2.4rem; height: 2.4rem; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; flex: none;
}
.gd-tile-ico svg { width: 1.25rem; height: 1.25rem; }

.gd-links { display: grid; gap: 0.45rem; }
.gd-link {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  min-height: 48px;
}
.gd-link:hover { border-color: var(--brand); }
.gd-link strong { color: var(--brand-deep); display: block; }
.gd-link em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.gd-ext {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); white-space: nowrap;
}

.gd-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.15rem 0.85rem;
}
.gd-faq details + details { margin-top: 0.4rem; }
.gd-faq summary {
  min-height: 48px;
  display: flex; align-items: center;
  font-weight: 750;
  cursor: pointer;
  color: var(--brand-deep);
}
.gd-faq details p { color: var(--muted); margin: 0 0 0.75rem; }

.gd-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gd-chip {
  appearance: none;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--brand-deep);
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
}
.gd-chip.is-on {
  background: var(--brand-deep);
  color: var(--on-brand);
  border-color: var(--brand-deep);
}

.gd-measure {
  margin-top: 0.75rem;
  border: 1px solid var(--chip-line);
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}
.gd-measure h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.gd-kv { display: grid; gap: 0.35rem; margin: 0; }
.gd-kv div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; font-size: 0.9rem; }
.gd-kv dt { color: var(--muted); font-weight: 700; }
.gd-kv dd { margin: 0; }

.gd-resistor {
  display: grid;
  gap: 0.75rem;
}
.gd-res-body {
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(#c4a574, #a9844f);
  display: grid;
  grid-template-columns: 1fr 14px 14px 14px 14px 1fr;
  align-items: stretch;
  padding: 0 12%;
  gap: 8px;
  box-shadow: inset 0 0 0 2px #8a6a3a;
}
.gd-res-body i { display: block; }
.gd-res-out {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}
.gd-selects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
@media (min-width: 640px) { .gd-selects { grid-template-columns: repeat(4, 1fr); } }
.gd-selects label {
  display: grid; gap: 0.25rem;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.gd-selects select {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.gd-related { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gd-related a {
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--brand-deep);
  font-weight: 750;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.gd-related a:hover { border-color: var(--brand); }

.gd-check {
  display: grid; gap: 0.4rem;
  list-style: none; margin: 0; padding: 0;
}
.gd-check li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px dashed var(--line);
}
.gd-check li:last-child { border-bottom: 0; }
.gd-box {
  width: 1.15rem; height: 1.15rem;
  border: 2px solid var(--brand);
  border-radius: 4px;
  margin-top: 0.15rem;
}

.gd-product-list { display: grid; gap: 0.65rem; }
.gd-product {
  display: grid;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.gd-product-top { display: grid; gap: 0.25rem; }
.gd-product h3 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.gd-product-use { margin: 0; color: var(--muted); font-size: 0.9rem; }
.gd-more { border-top: 1px dashed var(--line); padding-top: 0.35rem; }
.gd-more summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 750;
  font-size: 0.82rem;
  color: var(--brand-deep);
  list-style: none;
}
.gd-more summary::-webkit-details-marker { display: none; }
.gd-more summary::marker { content: none; }
.gd-more summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}
.gd-more[open] summary::after {
  transform: rotate(45deg) translateY(-2px);
}
.gd-more .gd-steps { margin: 0.2rem 0 0.4rem; padding-left: 1.1rem; }
.gd-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.gd-tag {
  display: inline-flex;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gd-tag-trade {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.gd-product-tags {
  align-items: center;
}
.gd-pin {
  appearance: none;
  margin-left: auto;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.gd-pin.is-on { color: var(--brand); }
.gd-pin:hover { background: var(--brand-soft); color: var(--brand); }

.gd-pack-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.88rem;
}
.gd-pack-bar .gd-chip {
  min-height: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.gd-pack-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
a.gd-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.gd-letterhead {
  padding: 0.15rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.15rem;
}
.gd-sheet-page .gd-sheet-banner { display: none; }
@media screen {
  .gd-pack.gd-pack-empty .gd-letterhead { display: none; }
}
.gd-letterhead-with-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.gd-hw-page > .gd-letterhead { display: none; }
.gd-letterhead-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.gd-lmark,
.gd-letterhead-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  flex: none;
}
.gd-lmark {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fb4f14, #000);
  color: #fff;
  font-weight: 800;
  font-size: 1.45rem;
}
.gd-letterhead-text p { margin: 0; }
.gd-letterhead-company {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}
.gd-letterhead-sub,
.gd-letterhead-doc {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.12rem;
}
.gd-letterhead-doc { font-weight: 700; }
.gd-letterhead-job {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
}
.gd-qr-head {
  padding: 0.2rem;
  flex: none;
}
.gd-qr-head svg,
.gd-qr-head canvas {
  width: 88px;
  height: 88px;
}
.gd-qr-head .gd-qr-cap {
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.gd-pack-ident {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.gd-qr {
  background: #fff;
  color: #111;
  padding: 0.45rem;
  border-radius: 12px;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}
.gd-qr svg,
.gd-qr canvas {
  width: 252px;
  height: 252px;
  display: block;
  background: #fff;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.gd-qr-cap {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333;
}
.gd-qr-fallback {
  margin: 0;
  max-width: 10rem;
  font-size: 0.72rem;
  word-break: break-all;
  color: #111;
}
.gd-pack-url {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  word-break: break-all;
  color: var(--brand-deep);
}
.gd-pack-ident-text .muted {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.gd-pack-sign {
  display: none;
  margin-top: 1.25rem;
  font-weight: 700;
}
.only-print { display: none; }

.gd-search {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0.7rem 0.85rem;
}

.gd-studio-foot {
  margin: 1.25rem 0 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.gd-studio-brand {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.gd-studio-brand a {
  color: var(--brand);
  text-decoration: none;
}
.gd-studio-brand a:hover { text-decoration: underline; }
.gd-tip-jar {
  display: inline-block;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  min-width: 14ch;
}
.gd-tip-jar:hover { text-decoration: underline; }

@media print {
  .gd-back, .fk-tabbar, .fk-search-btn, .gd-studio-foot, .no-print, .gd-pack-tools,
  .gd-toolbar, .gd-meta, .gd-foot { display: none !important; }
  .only-print { display: block !important; }
  .gd-bom-list { display: none !important; }
  body.gd-print-list .app-header,
  body.gd-print-list .gd-letterhead,
  body.gd-print-list .gd-back,
  body.gd-print-list .gd-hero {
    display: none !important;
  }
  .gd-bom-preview { color: #111; background: #fff; }
  .gd-root { width: 100%; padding: 0.28in 0.32in; }
  .gd-page { gap: 0.45rem; }
  .gd-card, .gd-tile, .gd-product { box-shadow: none; break-inside: avoid; }
  .gd-letterhead,
  .gd-sheet-page .gd-sheet-banner {
    display: block;
    padding: 0 0 0.28rem;
    margin: 0 0 0.3rem;
    border-bottom: 1.5px solid #111;
  }
  .gd-sheet-page .gd-sheet-banner.gd-letterhead-with-qr { display: flex; }
  .gd-hw-page > .gd-letterhead { display: block; }
  .gd-hw-page > .gd-letterhead.gd-letterhead-with-qr { display: flex; }
  .gd-letterhead-sub { display: none !important; }
  .gd-letterhead-company { color: #111; font-size: 0.88rem; }
  .gd-letterhead-doc,
  .gd-letterhead-job { font-size: 0.72rem; color: #111; }
  .gd-lmark, .gd-letterhead-logo {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .gd-lmark { display: grid !important; }
  .gd-pin { display: none !important; }
  .gd-more summary { display: none; }
  .gd-more:not([open]) > :not(summary) { display: none !important; }
  .gd-more { border: 0; padding-top: 0; }
  .gd-qr-head { padding: 0; }
  .gd-qr-head svg,
  .gd-qr-head canvas { width: 0.85in !important; height: 0.85in !important; }
  .gd-qr-head .gd-qr-cap { font-size: 0.5rem; color: #111; }
  body:not(.gd-sticker-print) .gd-pack-ident { display: none !important; }
  body:not(.gd-sticker-print) .gd-pack .gd-hero { display: none !important; }
  .gd-qr svg, .gd-qr canvas { width: 2.4in; height: 2.4in; }
  .gd-pack-sign {
    display: block !important;
    margin-top: 0.45rem;
    font-size: 0.78rem;
  }
  body.gd-sticker-print .gd-pack-cards,
  body.gd-sticker-print .gd-foot,
  body.gd-sticker-print .gd-pack-sign,
  body.gd-sticker-print .gd-hero .gd-lede,
  body.gd-sticker-print .gd-kicker,
  body.gd-sticker-print .gd-pack-ident-text,
  body.gd-sticker-print .gd-qr-head { display: none !important; }
  body.gd-sticker-print .gd-pack-ident {
    border: 0;
    justify-items: center;
    grid-template-columns: 1fr;
    padding: 0;
  }
  body.gd-sticker-print .gd-letterhead-row { justify-content: center; }
  body.gd-sticker-print .gd-hero h1 { text-align: center; }
  body.gd-sticker-print .gd-qr svg,
  body.gd-sticker-print .gd-qr canvas { width: 2.8in; height: 2.8in; }
}

.gd-sheet-job {
  margin: 0;
  font-weight: 800;
  color: var(--brand-deep);
}
.gd-sheet-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.gd-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.gd-sheet th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.gd-sheet td {
  padding: 0.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.gd-sheet tr:last-child td { border-bottom: 0; }
.gd-sheet input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0.25rem 0.3rem;
}
.gd-sheet input::placeholder {
  color: #9a948c;
  opacity: 1;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .gd-sheet input::placeholder { color: #8d8780; }
}
.gd-sheet input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: 6px;
}
.gd-sheet-ident { margin-bottom: 0.2rem; }

.gd-hw-step { display: grid; gap: 0.35rem; }
.gd-spec {
  display: grid;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}
.gd-spec h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.gd-spec-block h3,
.gd-spec-warn h3 {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.gd-spec-name { margin: 0; font-weight: 800; color: var(--brand-deep); }
.gd-spec-mpn {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.gd-spec-block p { margin: 0.15rem 0 0; }
.gd-spec-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: var(--warn-text);
}
.gd-spec-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.gd-bom-qty {
  width: 5.75rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
}
.gd-bom-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.gd-bom-text strong { display: block; }
.gd-bom-text span { display: block; color: var(--muted); font-size: 0.82rem; }
.gd-bom-preview {
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.82rem;
}
.gd-bom-status {
  margin: 0.45rem 0 0;
  font-weight: 750;
  color: var(--brand-deep);
}
.gd-defaults-kv { margin: 0.4rem 0; }
.gd-defaults-extra { margin: 0.35rem 0; font-size: 0.88rem; }
.gd-cheat-table td { font-size: 0.82rem; vertical-align: top; }
.gd-cheat-table td:first-child { white-space: normal; }
@media print {
  .gd-sheet-wrap { border: 0; overflow: visible; }
  .gd-sheet th {
    font-size: 0.62rem;
    padding: 0.12rem 0.15rem 0.18rem;
  }
  .gd-sheet th, .gd-sheet td {
    border-bottom: 1px solid #111;
    padding: 0.12rem 0.15rem;
  }
  .gd-sheet input {
    min-height: 0;
    color: #111;
    padding: 0.06rem 0;
  }
  .gd-sheet input::placeholder,
  .gd-sheet input::-webkit-input-placeholder {
    color: transparent !important;
    opacity: 0 !important;
    -webkit-text-fill-color: transparent !important;
  }
}


/* gd-pack tabbar clearance + narrow QR layout (390px phones) */
.gd-root:has(.gd-pack),
.gd-pack.gd-page {
  padding-bottom: calc(8.75rem + env(safe-area-inset-bottom, 0px));
}
.gd-pack-ident {
  margin-bottom: 0.75rem;
}
.gd-pack-ident-empty {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.gd-qr svg,
.gd-qr canvas {
  width: min(280px, 72vw);
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}
.gd-qr-fallback {
  max-width: min(18rem, 100%);
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gd-pack-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 430px) {
  .gd-pack-ident {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .gd-pack-ident-text {
    width: 100%;
    min-width: 0;
  }
  .gd-qr {
    width: 100%;
  }
}
