:root {
  color-scheme: dark;
  --bg: #08111b;
  --panel: rgba(15, 25, 36, 0.9);
  --panel-strong: #111d2a;
  --line: rgba(183, 207, 228, 0.15);
  --line-strong: rgba(120, 173, 218, 0.3);
  --text: #edf4f9;
  --muted: #9fafbc;
  --blue: #4aa8e8;
  --cyan: #77c9ee;
  --success: #62d6a7;
  --danger: #ff7f91;
  --warning: #ffc96b;
  --shadow: 0 28px 75px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(55, 110, 150, 0.15), transparent 48%),
    linear-gradient(180deg, #0a1520 0%, var(--bg) 54%, #070e16 100%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--cyan);
  border-radius: 9px;
  color: #031421;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
  transform: translateY(0);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(207, 226, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 226, 240, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(207, 226, 240, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 226, 240, 0.025) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
}

.blueprint-ornaments {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.blueprint-ornament {
  position: absolute;
  width: clamp(210px, 24vw, 340px);
  fill: none;
  stroke: rgba(130, 181, 218, 0.38);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(74, 168, 232, 0.06));
}

.ornament-top-left {
  top: 68px;
  left: -52px;
}

.ornament-top-right {
  top: 72px;
  right: -58px;
}

.ornament-bottom-left {
  bottom: 45px;
  left: -58px;
}

.ornament-bottom-right {
  right: -48px;
  bottom: 38px;
}

.page-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  border-bottom: 1px solid var(--line);
}

.topbar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 17, 26, 0.72);
}

.language-switch a {
  min-width: 36px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #86a2b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a.active {
  color: #dffaff;
  background: rgba(43, 185, 255, 0.13);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-accent {
  color: var(--blue);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(93, 164, 214, 0.42);
  border-radius: 8px;
  background: rgba(44, 105, 145, 0.09);
  box-shadow: inset 0 0 18px rgba(74, 168, 232, 0.08);
}

.brand-mark span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 3px;
  background: var(--cyan);
}

.brand-mark span:first-child {
  transform: rotate(60deg);
}

.brand-mark span:nth-child(2) {
  transform: rotate(-60deg);
}

.status-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(9, 17, 26, 0.68);
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 112px 0 70px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: #83bcdc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 950px;
  margin: 22px auto 24px;
  font-size: clamp(45px, 6.4vw, 76px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.048em;
}

.hero h1 span {
  color: #a9d7f2;
  text-shadow: 0 0 32px rgba(74, 168, 232, 0.12);
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.resolver-card {
  width: min(900px, 100%);
  margin: 48px auto 0;
  padding: 0 20px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(18, 29, 41, 0.96), rgba(10, 18, 27, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.console-header {
  display: flex;
  gap: 11px;
  align-items: center;
  height: 43px;
  margin: 0 -20px 18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #748898;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.console-header code {
  margin-left: auto;
  color: #80b8d7;
  font-family: inherit;
  font-size: 9px;
}

.console-indicator {
  display: flex;
  gap: 5px;
}

.console-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #40505e;
}

.console-indicator i:first-child {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(74, 168, 232, 0.6);
}

.resolver-card label {
  display: block;
  margin-bottom: 11px;
  color: #aebdca;
  font-size: 12px;
  font-weight: 650;
}

.input-row {
  display: flex;
  gap: 12px;
}

.input-wrap {
  position: relative;
  flex: 1;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6e8ba2;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 18px 0 49px;
  border: 1px solid rgba(151, 184, 207, 0.2);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: rgba(4, 10, 16, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input:focus {
  border-color: rgba(74, 168, 232, 0.7);
  box-shadow: 0 0 0 3px rgba(74, 168, 232, 0.09), inset 0 0 22px rgba(74, 168, 232, 0.025);
}

.primary-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.primary-button {
  gap: 8px;
  min-width: 154px;
  height: 58px;
  padding: 0 23px;
  border: 1px solid rgba(89, 180, 235, 0.55);
  border-radius: 9px;
  color: #d9effb;
  background: rgba(42, 111, 155, 0.2);
  box-shadow: inset 0 0 24px rgba(74, 168, 232, 0.08), 0 0 22px rgba(74, 168, 232, 0.07);
}

.primary-button svg,
.source-link svg,
.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button:hover,
.download-button:not(.disabled):hover {
  filter: brightness(1.14);
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #8ba4b8;
  font-size: 12px;
}

.form-meta button {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--blue);
  background: none;
}

.form-meta button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.notice {
  width: min(900px, 100%);
  margin-top: 18px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(13, 31, 51, 0.74);
}

.notice.loading {
  color: #bae9ff;
  border-color: rgba(43, 185, 255, 0.35);
}

.notice.error {
  color: #ffd4da;
  border-color: rgba(255, 127, 145, 0.35);
  background: rgba(72, 21, 35, 0.42);
}

.notice.success {
  color: #c9ffe6;
  border-color: rgba(94, 229, 173, 0.3);
}

.result-section {
  padding: 28px 0 86px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.source-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}

.product-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 39, 64, 0.86), rgba(10, 23, 39, 0.9));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.chip-visual {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(90, 240, 218, 0.28);
  border-radius: 20px;
  background: linear-gradient(145deg, #162f49, #091827);
  box-shadow:
    inset 0 0 28px rgba(43, 185, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.25);
}

.chip-core {
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pin {
  position: absolute;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: #6f8da5;
}

.pin-1,
.pin-2 {
  left: -18px;
}

.pin-1 { top: 27px; }
.pin-2 { bottom: 27px; }
.pin-3,
.pin-4 { right: -18px; }
.pin-3 { top: 27px; }
.pin-4 { bottom: 27px; }
.pin-5,
.pin-6,
.pin-7,
.pin-8 {
  width: 4px;
  height: 18px;
}
.pin-5 { top: -18px; left: 27px; }
.pin-6 { top: -18px; right: 27px; }
.pin-7 { bottom: -18px; left: 27px; }
.pin-8 { right: 27px; bottom: -18px; }

.product-title-row {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

.product-brand {
  display: block;
  min-height: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title-row h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.035em;
}

.code-badge {
  padding: 8px 11px;
  border: 1px solid rgba(43, 185, 255, 0.25);
  border-radius: 8px;
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: rgba(43, 185, 255, 0.08);
}

.product-main dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0 0;
}

.product-main dl div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-main dt {
  margin-bottom: 5px;
  color: #8ba3b7;
  font-size: 11px;
}

.product-main dd {
  overflow: hidden;
  margin: 0;
  color: #dce8f1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.model-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 29, 48, 0.76);
}

.model-card-header {
  display: flex;
  gap: 15px;
  align-items: center;
}

.model-heading {
  min-width: 0;
}

.cube-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(90, 240, 218, 0.2);
  border-radius: 11px;
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: rgba(90, 240, 218, 0.06);
}

.model-card h3 {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-uuid {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #7f9ab0;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.download-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.format-info strong,
.format-info span {
  display: block;
}

.format-info strong {
  font-size: 13px;
}

.format-info span {
  margin-top: 3px;
  color: #8ba3b7;
  font-size: 11px;
}

.download-button {
  gap: 7px;
  min-width: 96px;
  padding: 10px 13px;
  border: 1px solid rgba(43, 185, 255, 0.28);
  border-radius: 9px;
  color: #bdeeff;
  font-size: 12px;
  background: rgba(43, 185, 255, 0.09);
}

.download-button.step {
  color: #c9fff2;
  border-color: rgba(90, 240, 218, 0.26);
  background: rgba(90, 240, 218, 0.07);
}

.download-button.disabled {
  cursor: not-allowed;
  color: #687d8e;
  border-color: var(--line);
  background: rgba(111, 136, 154, 0.06);
}

.empty-models {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed rgba(255, 201, 107, 0.35);
  border-radius: 16px;
  color: var(--warning);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px 0 88px;
}

.feature-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 20, 29, 0.74);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}

.feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(111, 161, 197, 0.2);
  border-radius: 9px;
  color: #75b7dd;
  background: rgba(65, 125, 165, 0.045);
}

.feature-icon svg {
  width: 37px;
  height: 37px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.feature-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.feature-card-top > span {
  color: #455767;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.82;
}

.records-section {
  padding: 76px 0 92px;
  border-top: 1px solid var(--line);
}

.records-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}

.records-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.records-heading p {
  max-width: 390px;
  margin: 0;
  color: #8b9dab;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.records-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 17, 25, 0.82);
}

.records-panel table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.records-panel th,
.records-panel td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(183, 207, 228, 0.09);
  text-align: left;
}

.records-panel th {
  color: #8195a5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.012);
}

.records-panel th:first-child {
  width: 44%;
}

.records-panel th:nth-child(2),
.records-panel th:nth-child(3),
.records-panel th:nth-child(4) {
  width: 13%;
}

.records-panel th:last-child {
  width: 17%;
  text-align: right;
}

.records-panel tbody tr:last-child td {
  border-bottom: 0;
}

.mobile-cell-label {
  display: none;
}

.record-url-cell {
  min-width: 0;
}

.record-url {
  display: block;
  overflow: hidden;
  color: #b5c4cf;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-url:hover {
  color: var(--blue);
}

.format-badge {
  display: inline-flex;
  min-width: 46px;
  padding: 6px 8px;
  justify-content: center;
  border: 1px solid rgba(115, 165, 201, 0.2);
  border-radius: 6px;
  color: #8fbdd8;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  background: rgba(74, 168, 232, 0.05);
}

.format-badge.step {
  color: #8fd7c0;
  border-color: rgba(98, 214, 167, 0.2);
  background: rgba(98, 214, 167, 0.045);
}

.record-size {
  color: #91a3b0;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.record-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--success);
  font-size: 11px;
}

.record-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.record-action {
  text-align: right !important;
}

.record-download {
  display: inline-flex;
  min-width: 82px;
  padding: 8px 12px;
  justify-content: center;
  border: 1px solid rgba(94, 157, 201, 0.33);
  border-radius: 7px;
  color: #a6cee5;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  background: rgba(74, 168, 232, 0.045);
}

.record-download:hover {
  color: #ddf3ff;
  border-color: rgba(74, 168, 232, 0.65);
}

.records-empty {
  margin: 0;
  padding: 31px 20px;
  color: #8397a7;
  font-size: 12px;
  text-align: center;
}

.records-empty[hidden] {
  display: none;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 112px);
  padding: 76px 24px;
  border-top: 1px solid var(--line);
}

.content-heading h2 {
  max-width: 430px;
  margin: 11px 0 0;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.prose-grid {
  display: grid;
  gap: 22px;
}

.prose-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.section-intro {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: flex;
  min-height: 255px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 39, 64, 0.75), rgba(10, 23, 39, 0.82));
}

.guide-card > span,
.related-guide > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.guide-card h3 {
  margin: 16px 0 11px;
  font-size: 20px;
  line-height: 1.35;
}

.guide-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.guide-card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 25px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.guide-article {
  padding: 52px 0 96px;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #829caf;
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.guide-hero {
  max-width: 900px;
  padding: 72px 0 65px;
  border-bottom: 1px solid var(--line);
}

.guide-hero h1 {
  max-width: 860px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.guide-hero > p {
  max-width: 750px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.guide-meta {
  display: flex;
  gap: 22px;
  margin-top: 27px;
  color: #8ca4b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(45px, 8vw, 105px);
  align-items: start;
  padding-top: 66px;
}

.guide-content {
  min-width: 0;
}

.guide-section + .guide-section {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.guide-section h2 {
  margin: 0 0 24px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.guide-section p,
.guide-section li {
  color: #a2b5c5;
  font-size: 15px;
  line-height: 1.95;
}

.guide-section p {
  margin: 0 0 21px;
}

.guide-section ul {
  display: grid;
  gap: 11px;
  margin: 25px 0 0;
  padding: 20px 22px 20px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 31, 51, 0.58);
}

.guide-section li::marker {
  color: var(--cyan);
}

.guide-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 15px;
}

.guide-cta,
.related-guide {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 31, 51, 0.76);
}

.guide-cta h2 {
  margin: 14px 0 11px;
  font-size: 22px;
  line-height: 1.35;
}

.guide-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.guide-button {
  display: block;
  margin-top: 21px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #031421;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.related-guide {
  display: grid;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.related-guide strong {
  font-size: 14px;
  line-height: 1.55;
}

.faq-list {
  display: grid;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  color: #dce8f1;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 19px;
  right: 5px;
  width: 24px;
  height: 24px;
  content: "+";
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 720px;
  margin: -3px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 34px;
  border-top: 1px solid var(--line);
  color: #7f9caf;
  font-size: 11px;
}

footer p {
  margin: 0;
}

@media (max-width: 1020px) {
  .blueprint-ornament {
    opacity: 0.6;
  }

  .ornament-top-left,
  .ornament-bottom-left {
    left: -110px;
  }

  .ornament-top-right,
  .ornament-bottom-right {
    right: -110px;
  }
}

@media (max-width: 760px) {
  body::before {
    position: absolute;
    opacity: 0.25;
    background-image:
      linear-gradient(rgba(207, 226, 240, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(207, 226, 240, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-shell {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .topbar {
    height: 72px;
  }

  .status-pill {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .hero {
    padding: 74px 0 55px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -0.035em;
  }

  .hero-copy {
    font-size: 15px;
  }

  .resolver-card {
    padding: 0 15px 15px;
    background: #0e1a27;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .console-header {
    margin: 0 -15px 16px;
    padding: 0 13px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-wrap input {
    font-size: 16px;
  }

  .primary-button {
    width: 100%;
  }

  .form-meta span {
    max-width: 73%;
  }

  .form-meta button,
  .source-link,
  .language-switch a,
  .download-button,
  .record-download,
  .guide-card-link,
  .guide-button {
    min-height: 44px;
  }

  .language-switch a,
  .source-link,
  .record-download,
  .guide-card-link {
    align-items: center;
  }

  .language-switch a {
    display: inline-flex;
    min-width: 44px;
    justify-content: center;
  }

  .form-meta button {
    padding: 8px 0;
  }

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

  .product-main dl {
    grid-template-columns: 1fr;
  }

  .product-title-row {
    flex-direction: column;
  }

  .product-title-row h3,
  .product-main dd,
  .model-card h3 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .code-badge {
    max-width: 100%;
    align-self: flex-start;
    overflow-wrap: anywhere;
  }

  .model-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 0;
  }

  .feature-grid article {
    min-height: auto;
    margin-bottom: 12px;
  }

  .records-section {
    padding: 62px 0 70px;
  }

  .records-heading {
    display: block;
  }

  .records-heading p {
    margin-top: 15px;
    text-align: left;
  }

  .records-panel {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .records-panel table,
  .records-panel tbody,
  .records-panel tr,
  .records-panel td {
    display: block;
    width: 100%;
  }

  .records-panel thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .records-panel tr {
    margin-bottom: 12px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(9, 17, 25, 0.82);
  }

  .records-panel td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 0;
  }

  .mobile-cell-label {
    display: block;
    color: #8397a8;
    font-family: ui-monospace, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .record-action {
    text-align: left !important;
  }

  .record-download {
    width: fit-content;
  }

  .records-empty {
    border: 1px dashed var(--line);
    border-radius: 10px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 62px 12px;
  }

  .guide-card-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 220px;
  }

  .guide-article {
    padding: 35px 0 70px;
  }

  .guide-hero {
    padding: 55px 0 48px;
  }

  .guide-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .guide-hero > p {
    font-size: 16px;
  }

  .guide-layout {
    gap: 55px;
    padding-top: 50px;
  }

  .guide-sidebar {
    position: static;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .blueprint-ornament {
    width: 185px;
    opacity: 0.26;
    filter: none;
  }

  .blueprint-ornaments {
    position: absolute;
  }

  .ornament-top-left,
  .ornament-top-right {
    top: 58px;
  }

  .ornament-bottom-left,
  .ornament-bottom-right {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
