:root {
  color-scheme: light;
  --ink: #142c39;
  --muted: #64747d;
  --navy: #102d3c;
  --blue: #0a698f;
  --cyan: #0fa4b7;
  --orange: #da681d;
  --green: #187750;
  --amber: #9a6207;
  --red: #ad3737;
  --paper: #f3f7f9;
  --line: #d7e1e6;
  --white: #fff;
  --shadow: 0 18px 50px rgba(16,45,60,.1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 3%, rgba(218,104,29,.1), transparent 24rem),
    linear-gradient(180deg, #edf4f7 0, var(--paper) 32rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
}
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.components-header {
  width: min(1260px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.components-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.components-brand img { width: 52px; height: 52px; object-fit: contain; }
.components-brand > span { display: grid; }
.components-brand strong { font-size: 1rem; }
.components-brand small { color: var(--muted); font-size: .76rem; }
.components-brand .beta-badge { margin-top: 4px; justify-self: start; }
.components-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.components-header nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #36515f;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.components-header nav a:hover,
.components-header nav a:focus-visible { background: rgba(255,255,255,.8); }

main { width: min(1260px, calc(100% - 40px)); margin: 0 auto; }
.components-hero {
  min-height: 260px;
  padding: clamp(34px, 6vw, 66px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-radius: 28px;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(16,45,60,.98), rgba(10,105,143,.92)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.035) 39px 40px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.components-hero::after {
  content: "R  C  D  Q  U";
  position: absolute;
  right: clamp(20px, 7vw, 100px);
  top: 24px;
  color: rgba(255,255,255,.08);
  font: 900 clamp(2.2rem, 6vw, 5.4rem)/1 ui-monospace, monospace;
  letter-spacing: .12em;
}
.components-hero > div { max-width: 820px; position: relative; z-index: 1; }
.eyebrow {
  margin-bottom: 8px;
  color: #68e4ef;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.components-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.components-hero p:last-child { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.database-status {
  flex: 0 0 auto;
  max-width: 270px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 750;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #f0bb54; box-shadow: 0 0 0 5px rgba(240,187,84,.14); }
.database-status.ready .status-dot { background: #5ee1a2; box-shadow: 0 0 0 5px rgba(94,225,162,.14); }
.database-status.error .status-dot { background: #ff8383; box-shadow: 0 0 0 5px rgba(255,131,131,.14); }

.component-layout {
  padding: 44px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 26px;
}
.component-workspace { min-width: 0; }
.component-search-card,
.component-guide section,
.component-result {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(16,45,60,.07);
}
.component-search-card { padding: clamp(22px, 4vw, 34px); }
.form-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}
.form-heading h2 { margin-bottom: 4px; font-size: 1.35rem; }
.form-heading p { margin-bottom: 0; color: var(--muted); }
.component-query > span,
.filter-grid label > span { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 800; }
.component-query > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.component-query input,
.component-query button,
.filter-grid select,
.filter-grid input {
  min-height: 48px;
  border: 1px solid #cbd8de;
  border-radius: 12px;
}
.component-query input,
.filter-grid select,
.filter-grid input { width: 100%; padding: 10px 12px; color: var(--ink); background: #fbfdfe; }
.component-query input { font: 800 1.12rem ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.component-query button,
.component-submit {
  border: 0;
  color: var(--white);
  background: var(--blue);
  font-weight: 850;
}
.component-query button { padding: 0 22px; }
.examples { margin: 14px 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.examples button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #36515f;
  background: #f7fafb;
  font: 800 .76rem ui-monospace, monospace;
}
.component-filters { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.component-filters > summary { padding: 16px 0; font-weight: 850; }
.filter-grid { padding: 2px 0 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.number-unit { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.number-unit span { color: var(--muted); font-weight: 800; }
.filter-grid .check-filter { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 48px; }
.check-filter input { width: 20px; min-height: 20px; }
.check-filter span { margin: 0; }
.component-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  font-size: .95rem;
}
.component-query button:hover,
.component-submit:hover { background: #07597a; }

.component-results { margin-top: 22px; }
.component-empty {
  min-height: 260px;
  padding: 38px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed #bdccd3;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
}
.component-empty h2 { margin: 16px 0 6px; color: var(--ink); }
.component-empty p { max-width: 570px; margin-bottom: 0; }
.component-symbol {
  width: 68px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid #6b8795;
  border-radius: 9px;
  font: 900 1.2rem ui-monospace, monospace;
}
.results-heading { margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.results-heading h2 { margin-bottom: 3px; }
.results-heading p { margin-bottom: 0; color: var(--muted); }
.result-list { display: grid; gap: 13px; }
.component-result { overflow: hidden; }
.component-result > summary {
  padding: 19px 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.component-result > summary::-webkit-details-marker { display: none; }
.result-identity { min-width: 0; }
.result-reference { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.result-reference strong { color: #0b4f70; font: 900 1.18rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-identity p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.quality-badge,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 850;
}
.quality-confirmed { color: #11633f; background: #e6f5ed; }
.quality-high { color: #095b78; background: #e5f3f8; }
.quality-probable { color: #80530a; background: #fff2d8; }
.quality-pending { color: #943737; background: #fdeaea; }
.meta-chip { color: #48616e; background: #eef3f5; }
.open-label { color: var(--blue); font-size: .82rem; font-weight: 850; white-space: nowrap; }
.component-result[open] .open-label::after { content: "−"; }
.component-result:not([open]) .open-label::after { content: "+"; }
.result-detail { padding: 0 20px 22px; border-top: 1px solid var(--line); }
.loading-detail { padding: 24px 0; color: var(--muted); }
.detail-warning { margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 8px; color: #6e2b2b; background: #fff0f0; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.detail-block { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfe; }
.detail-block > summary { padding: 13px 14px; font-weight: 850; }
.detail-content { padding: 0 14px 15px; }
.detail-content p:last-child,
.detail-content ul:last-child { margin-bottom: 0; }
.detail-content ul { padding-left: 19px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #435d6a; background: #eef4f6; }
.source-link,
.smd-cross-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--white);
  background: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.results-limit { margin-top: 14px; color: var(--muted); font-size: .82rem; }

.component-guide { display: grid; gap: 16px; position: sticky; top: 18px; }
.component-guide section { padding: 22px; }
.component-guide .eyebrow { color: var(--blue); }
.component-guide h2 { margin-bottom: 14px; font-size: 1.15rem; }
.component-guide ol { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; counter-reset: guide; }
.component-guide li { display: grid; padding-left: 30px; position: relative; }
.component-guide li::before {
  counter-increment: guide;
  content: counter(guide);
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 1px;
  border-radius: 7px;
  color: var(--white);
  background: var(--blue);
  font-size: .7rem;
  font-weight: 900;
}
.component-guide li span { color: var(--muted); font-size: .82rem; }
.component-coverage dl { margin: 0; display: grid; gap: 8px; }
.component-coverage dl div { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.component-coverage dt { color: var(--muted); }
.component-coverage dd { margin: 0; color: var(--blue); font-weight: 900; }
.component-warning { border-color: #f0d5bd !important; background: #fff8f0 !important; }
.component-warning strong { color: #874b13; }
.component-warning p { margin: 7px 0 0; color: #7b5735; font-size: .86rem; }

footer {
  min-height: 80px;
  padding: 22px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .84rem;
}

@media (max-width: 980px) {
  .component-layout { grid-template-columns: 1fr; }
  .component-guide { grid-template-columns: repeat(3,minmax(0,1fr)); position: static; }
}
@media (max-width: 760px) {
  .components-header { width: min(100% - 24px,1260px); align-items: flex-start; padding: 12px 0; }
  .components-header nav { display: none; }
  main { width: min(100% - 24px,1260px); }
  .components-hero { min-height: 320px; padding: 30px 24px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
  .database-status { max-width: none; }
  .component-layout { padding-top: 24px; }
  .component-query > div { grid-template-columns: 1fr; }
  .component-query button { min-height: 48px; }
  .filter-grid,
  .detail-grid,
  .component-guide { grid-template-columns: 1fr; }
  .component-result > summary { grid-template-columns: 1fr; }
  .open-label { justify-self: start; }
}
@media (max-width: 460px) {
  .components-brand small { display: none; }
  .components-hero h1 { font-size: 2.25rem; }
  .component-search-card { padding: 19px; }
}
