/* CANLOW library. Scoped styles; native dialog visibility belongs to JS. */
.clb .clb-manuals { flex-direction: row; justify-content: flex-start; align-items: center; }
.clb-detail-copy p { white-space: pre-wrap; }
.clb-text-disclosure { margin: 18px 0; border: 1px solid #253230; border-radius: 8px; padding: 0 16px; }
.clb-text-disclosure > summary { min-height: 48px; padding: 13px 0; cursor: pointer; font-weight: 700; }
.clb-text-disclosure > summary:focus-visible { outline: 2px solid #b8f64f; outline-offset: 4px; }
.clb-block-warning { padding: 12px 16px; border-left: 3px solid #dfc187; background: #142020; }
.clb-block-step { padding-left: 14px; border-left: 2px solid #253230; }
.clb-block-note { color: #a1aeaa; }
.clb .clb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.clb,
.clb-dialog {
  --clb-bg: #080d0e;
  --clb-panel: #101919;
  --clb-raised: #142020;
  --clb-text: #eff5f0;
  --clb-muted: #a1aeaa;
  --clb-accent: #b8f64f;
  --clb-line: #253230;
  box-sizing: border-box;
  min-width: 0;
  color: var(--clb-text);
  background: var(--clb-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

.clb *,
.clb *::before,
.clb *::after,
.clb-dialog *,
.clb-dialog *::before,
.clb-dialog *::after {
  box-sizing: border-box;
}

.clb {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 42px) clamp(16px, 3vw, 40px) 42px;
}

.clb-header {
  min-width: 0;
  max-width: 850px;
  margin-bottom: 27px;
}

.clb-eyebrow {
  margin: 0 0 11px;
  color: var(--clb-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.5;
  text-transform: uppercase;
}

.clb-header h1 {
  margin: 0;
  color: var(--clb-text);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.15;
}

.clb-header p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--clb-muted);
  font-size: 14px;
  line-height: 1.8;
}

.clb-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  min-width: 0;
  margin-bottom: 27px;
}

.clb-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 108px;
  padding: 18px 21px;
  background: var(--clb-panel);
  border: 1px solid var(--clb-line);
  border-radius: 9px;
}

.clb-stat small {
  color: var(--clb-muted);
  font-size: 11px;
  line-height: 1.5;
}

.clb-stat strong {
  color: var(--clb-text);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.clb-manuals,
.clb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.clb-manuals {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--clb-line);
}

.clb-button,
.clb-manuals button,
.clb-filters button,
.clb-search-form button,
.clb-open-form button,
.clb-open-page button,
button.clb-open-page,
.clb-pagination button,
.clb-detail-navigation button,
.clb-nearby button,
.clb-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 15px;
  color: var(--clb-text);
  background: var(--clb-raised);
  border: 1px solid var(--clb-line);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.clb-button:hover,
.clb-manuals button:hover,
.clb-filters button:hover,
.clb-search-form button:hover,
.clb-open-form button:hover,
.clb-open-page button:hover,
button.clb-open-page:hover,
.clb-pagination button:hover,
.clb-detail-navigation button:hover,
.clb-nearby button:hover,
.clb-close:hover {
  background: #1a2923;
  border-color: #627b48;
}

.clb-button.is-primary {
  color: #132006;
  background: var(--clb-accent);
  border-color: var(--clb-accent);
}

.clb-button.is-primary:hover {
  background: #c7ff6b;
  border-color: #c7ff6b;
}

.clb-manuals button[aria-pressed="true"],
.clb-filters button[aria-pressed="true"] {
  color: var(--clb-accent);
  background: #1a2918;
  border-color: #627b48;
}

.clb :is(button, input, a):focus-visible,
.clb-dialog :is(button, input, a):focus-visible {
  outline: 2px solid var(--clb-accent);
  outline-offset: 3px;
}

.clb :is(button, input):disabled,
.clb-dialog :is(button, input):disabled {
  opacity: .42;
  cursor: default;
}

.clb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 22px;
  min-width: 0;
  margin-bottom: 17px;
}

.clb-search-form,
.clb-open-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.clb-search-form {
  flex: 1 1 460px;
}

.clb-open-form {
  flex: 0 1 270px;
}

.clb-search-form label,
.clb-open-form label {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--clb-muted);
  font-size: 12px;
  line-height: 1.5;
}

.clb-search-form label:has(input),
.clb-open-form label:has(input) {
  grid-column: auto;
}

.clb-search-form label input,
.clb-open-form label input {
  margin-top: 8px;
}

.clb-search-form input,
.clb-open-form input,
.clb-pagination input,
.clb-detail-navigation input[name="detailPage"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 13px;
  color: var(--clb-text);
  background: var(--clb-panel);
  border: 1px solid #35453f;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  accent-color: var(--clb-accent);
  color-scheme: dark;
}

.clb-search-form input::placeholder,
.clb-open-form input::placeholder {
  color: #7d8d86;
  opacity: 1;
}

.clb-filters {
  margin-bottom: 28px;
  gap: 7px;
}

.clb-filters button {
  font-size: 11px;
  font-weight: 400;
  background: var(--clb-panel);
}

.clb-results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  min-width: 0;
  margin: 0 0 16px;
}

.clb-results-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.clb-results-heading p {
  margin: 0;
  color: var(--clb-muted);
  font-size: 12px;
  line-height: 1.6;
}

.clb-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.clb-page-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 258px;
  padding: 20px;
  background: var(--clb-panel);
  border: 1px solid var(--clb-line);
  border-radius: 9px;
}

.clb-page-card:hover {
  border-color: #455c45;
}

.clb-page-number {
  display: block;
  max-width: 100%;
  margin: 0;
  color: var(--clb-muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
}

.clb-page-title {
  max-width: 100%;
  margin: 0;
  color: var(--clb-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.clb-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  color: var(--clb-muted);
  background: var(--clb-raised);
  border: 1px solid var(--clb-line);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.clb-badge.is-ready {
  color: var(--clb-accent);
  background: #19271a;
  border-color: #3f5434;
}

.clb-badge.is-pending {
  color: #d9c18e;
  background: #231f15;
  border-color: #4b4130;
}

.clb-card-note {
  max-width: 100%;
  margin: 0;
  color: var(--clb-muted);
  font-size: 12px;
  line-height: 1.75;
}

.clb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.clb-tags span {
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  color: #bdccc2;
  background: var(--clb-bg);
  border: 1px solid var(--clb-line);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.5;
}

.clb-open-page,
.clb-open-page button {
  width: 100%;
  min-width: 0;
}

.clb-page-card > .clb-open-page {
  margin-top: auto;
}

.clb-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--clb-line);
}

.clb-pagination > span {
  max-width: 100%;
  padding: 7px 8px;
  color: var(--clb-muted);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.clb-pagination form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 0 8px;
}

.clb-pagination form label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--clb-muted);
  font-size: 12px;
}

.clb-pagination input {
  flex: 0 1 78px;
  width: 78px;
  padding-inline: 9px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.clb-message {
  min-width: 0;
  padding: 33px 25px;
  background: var(--clb-panel);
  border: 1px solid var(--clb-line);
  border-radius: 9px;
  text-align: center;
}

.clb-message h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.clb-message p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--clb-muted);
  font-size: 13px;
  line-height: 1.85;
}

.clb-message a:not(.clb-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 10px;
  color: var(--clb-accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clb-message .clb-button {
  margin-top: 18px;
}

.clb-message.is-error {
  border-color: #594a35;
}

.clb-muted {
  color: var(--clb-muted);
  font-size: 12px;
  line-height: 1.75;
}

.clb-inline-error {
  min-width: 0;
  margin: 8px 0 0;
  color: #e4b896;
  font-size: 12px;
  line-height: 1.7;
}

.clb-loading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 160px;
  padding: 25px 20px;
  color: var(--clb-muted);
  font-size: 13px;
  line-height: 1.7;
}

.clb-loading::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--clb-line);
  border-top-color: var(--clb-accent);
  border-radius: 50%;
  animation: clb-loading-spin .85s linear infinite;
}

.clb-dialog {
  width: min(1100px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #3a4e3d;
  border-radius: 12px;
  box-shadow: 0 24px 100px #0009;
}

.clb-dialog::backdrop {
  background: #030806df;
}

.clb-dialog-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  padding: 20px 24px;
  background: var(--clb-panel);
  border-bottom: 1px solid var(--clb-line);
}

.clb-dialog-header > div,
.clb-dialog-header :is(h2, h3) {
  min-width: 0;
  flex: 1 1 auto;
}

.clb-dialog-header :is(h2, h3) {
  margin: 0;
  color: var(--clb-text);
  font-size: 21px;
  line-height: 1.4;
}

.clb-dialog-header p {
  margin: 6px 0 0;
  color: var(--clb-muted);
  font-size: 12px;
  line-height: 1.6;
}

.clb-close {
  flex: 0 0 44px;
  width: 44px;
  padding: 10px;
  font-size: 22px;
  line-height: 1;
}

.clb-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  min-width: 0;
  padding: 16px 24px;
  color: var(--clb-muted);
  border-bottom: 1px solid var(--clb-line);
  font-size: 12px;
  line-height: 1.7;
}

.clb-detail-meta > * {
  min-width: 0;
  max-width: 100%;
}

.clb-detail-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 16px 24px 0;
}

.clb-detail-navigation :is(button, .clb-button) {
  flex: 1 1 180px;
  min-width: 0;
}

.clb-detail-navigation form {
  display: flex;
  flex: 1 1 270px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.clb-detail-navigation form label {
  display: grid;
  flex: 1 1 150px;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  color: var(--clb-muted);
  font-size: 12px;
  line-height: 1.5;
}

.clb-detail-navigation form :is(button, .clb-button) {
  flex: 0 1 auto;
  min-width: 44px;
  min-height: 44px;
}

.clb-detail-body {
  min-width: 0;
  max-width: 100%;
  padding: 22px 24px 24px;
}

.clb-detail-state {
  min-width: 0;
  margin: 0 0 18px;
  padding: 20px;
  color: var(--clb-muted);
  background: var(--clb-panel);
  border: 1px solid var(--clb-line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.8;
}

.clb-detail-state :is(h2, h3) {
  margin: 0 0 10px;
  color: var(--clb-text);
  font-size: 17px;
  line-height: 1.45;
}

.clb-detail-state p {
  margin: 0;
}

.clb-detail-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  margin-top: 18px;
}

.clb-detail-copy article {
  min-width: 0;
  padding: 19px 20px;
  background: var(--clb-panel);
  border: 1px solid var(--clb-line);
  border-radius: 8px;
}

.clb-detail-copy article h3 {
  margin: 0;
  color: var(--clb-text);
  font-size: 15px;
  line-height: 1.5;
}

.clb-detail-copy article p {
  margin: 10px 0 0;
  color: var(--clb-muted);
  font-size: 13px;
  line-height: 1.85;
}

.clb-nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 19px;
}

.clb-nearby button {
  flex: 1 1 180px;
  min-width: 0;
  text-align: left;
  justify-content: flex-start;
}

.clb-factory-slot {
  min-width: 0;
  max-width: 100%;
}

.clb-detail-copy:empty,
.clb-nearby:empty,
.clb-factory-slot:empty {
  display: none;
}

@keyframes clb-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .clb-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .clb-stat {
    min-height: 99px;
    padding: 16px;
  }

  .clb-stat strong {
    font-size: 26px;
  }

  .clb-manuals {
    gap: 7px;
    margin-bottom: 19px;
  }

  .clb-manuals button {
    flex: 1 1 135px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .clb-toolbar {
    gap: 16px;
  }

  .clb-search-form,
  .clb-open-form {
    flex: 1 1 100%;
    width: 100%;
  }

  .clb-search-form input,
  .clb-open-form input,
  .clb-pagination input,
  .clb-detail-navigation input[name="detailPage"] {
    font-size: 16px;
  }

  .clb-filters {
    margin-bottom: 23px;
  }

  .clb-results-heading h2 {
    font-size: 18px;
  }

  .clb-page-card {
    padding: 19px;
  }

  .clb-pagination form {
    flex-basis: 100%;
    margin: 7px 0 0;
  }

  .clb-dialog-header {
    padding: 16px;
    gap: 10px;
  }

  .clb-dialog-header :is(h2, h3) {
    font-size: 18px;
  }

  .clb-detail-meta {
    padding: 14px 16px;
    font-size: 11px;
  }

  .clb-detail-navigation {
    padding: 14px 16px 0;
  }

  .clb-detail-navigation :is(button, .clb-button) {
    flex-basis: 140px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .clb-detail-body {
    padding: 17px 16px 20px;
  }

  .clb-detail-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .clb-detail-copy article {
    padding: 18px;
  }

  .clb-detail-state {
    padding: 18px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .clb {
    padding-inline: 16px;
  }

  .clb-header {
    margin-bottom: 22px;
  }

  .clb-header p {
    font-size: 13px;
  }

  .clb-stat {
    padding: 15px 13px;
  }

  .clb-stat small {
    font-size: 10px;
  }

  .clb-page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .clb-page-card {
    min-height: 240px;
  }

  .clb-page-title {
    font-size: 16px;
  }

  .clb-message {
    padding: 26px 19px;
  }

  .clb-message h2 {
    font-size: 20px;
  }

  .clb-pagination > button {
    flex: 1 1 100px;
  }

  .clb-pagination > span {
    flex: 0 1 auto;
    padding-inline: 1px;
    font-size: 11px;
  }

  .clb-nearby button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clb-loading::before {
    animation: none;
  }
}

.clb .clb-section-host { min-width: 0; margin: 0 0 24px; }
.clb .clb-section-menu { border: 1px solid var(--clb-line, #26362f); border-radius: 8px; padding: 0 16px 16px; background: rgba(16, 28, 25, .55); }
.clb .clb-section-menu summary { min-height: 48px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 700; }
.clb .clb-section-menu summary::before { content: '▸'; }
.clb .clb-section-menu[open] summary::before { content: '▾'; }
.clb .clb-section-menu summary:focus-visible { outline: 2px solid #c4ef58; outline-offset: 3px; }
.clb .clb-index-controls label { display: grid; gap: 8px; font-size: 12px; }
.clb .clb-index-controls select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #34463d; border-radius: 6px; color: #ecf1ee; background: #10201a; font: inherit; font-size: 16px; }
.clb .clb-index-body { min-width: 0; margin-top: 16px; font-size: 13px; }
.clb .clb-index-body p { line-height: 1.6; }
.clb .clb-index-heading h3 { margin: 20px 0 8px; font-size: 20px; overflow-wrap: anywhere; }
.clb .clb-index-heading h3:focus { outline: 1px solid #c4ef58; outline-offset: 5px; }
.clb .clb-index-heading > button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.clb .clb-index-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.clb .clb-index-list li { min-width: 0; }
.clb .clb-index-topic { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-height: 72px; height: 100%; gap: 7px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.clb .clb-index-topic small { font-size: 11px; font-weight: 400; opacity: .75; }
