.kc {
  --kc-ink: #152640;
  --kc-subtle: #495b6c;
  --kc-rule: #d7dce1;
  --kc-blue: #174e75;
  color-scheme: light;
  color: var(--kc-ink);
  background: transparent;
  padding-block-end: 16px;
}
.kc-head { margin-bottom: clamp(15px, 2vw, 26px); }
.kc-head h1 {
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: normal;
  margin: 0 0 6px;
}
.kc-head p, .kc-install p { margin: 0; color: var(--kc-subtle); font-size: 1rem; line-height: 1.65; }
.kc-tools {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 20px;
  border-bottom: 1px solid var(--kc-ink);
}
.kc-filters { display: flex; gap: clamp(14px, 2vw, 32px); align-items: stretch; }
.kc-filters button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--kc-subtle);
  padding: 8px 2px;
  min-height: 44px;
  font: inherit;
}
.kc-filters button[aria-pressed="true"] { border-bottom-color: var(--kc-ink); color: var(--kc-ink); font-weight: 700; }
.kc-filters button:hover, .kc-details summary:hover { color: var(--kc-blue); }
.kc-date { margin: 0 0 7px; color: var(--kc-subtle); font-size: .9rem; }
.kc-row {
  display: grid;
  grid-template-columns: clamp(128px, 12vw, 170px) minmax(0, 1fr) auto;
  grid-template-areas: "sheet product price" "sheet details store";
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(18px, 2.9vw, 42px);
  row-gap: 3px;
  padding-block: clamp(16px, 1.8vw, 27px);
  border-bottom: 1px solid var(--kc-rule);
}
.kc-row:has(details[open]) { grid-template-rows: auto 1fr; }
.kc-sheet {
  grid-area: sheet;
  position: relative;
  display: block;
  align-self: center;
  width: 100%;
  padding: 0;
  background: #f3f4f5;
  cursor: zoom-in;
}
.kc-sheet img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.kc-lens {
  position: absolute;
  inset-block-end: 5px;
  inset-inline-end: 5px;
  width: 25px;
  height: 25px;
  border: 1px solid #d4dbe1;
  border-radius: 2px;
  background: #fff;
  color: var(--kc-ink);
}
.kc-lens::before, .kc-lens::after { content: ''; position: absolute; }
.kc-lens::before { width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; top: 4px; left: 4px; }
.kc-lens::after { width: 7px; height: 1.5px; background: currentColor; transform: rotate(45deg); left: 13px; top: 15px; }
.kc-sheet:hover .kc-lens { color: #fff; border-color: var(--kc-ink); background: var(--kc-ink); }
.kc-product { grid-area: product; align-self: end; min-width: 0; }
.kc-product h2 { font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.35; letter-spacing: normal; font-weight: 700; margin: 0; }
.kc-spec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 0 0 3px; line-height: 1.5; font-size: 1rem; color: var(--kc-subtle); }
.kc-spec b { color: var(--kc-ink); font-weight: 600; }
.kc-spec span { white-space: nowrap; }
.kc-spec span::before { content: '·'; margin-inline-end: 10px; }
.kc-price { grid-area: price; align-self: end; justify-self: end; margin: 0; white-space: nowrap; line-height: 1.3; }
.kc-price strong { font-size: clamp(1.65rem, 2.5vw, 2.25rem); font-weight: 700; }
.kc-price span { font-size: 1rem; }
.kc-details { grid-area: details; align-self: start; min-width: 0; font-size: 1rem; }
.kc-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--kc-subtle);
}
.kc-details summary::-webkit-details-marker { display: none; }
.kc-details summary::before { content: '+'; font: normal 1.15rem/1 Arial,sans-serif; color: var(--kc-subtle); }
.kc-details[open] summary::before { content: '−'; }
.kc-details dl {
  margin: 0 0 5px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  line-height: 1.6;
}
.kc-details dt { color: var(--kc-subtle); }
.kc-details dd { margin: 0; min-width: 0; }
.kc-details dd > div + div { margin-top: 5px; }
.kc-details bdi { display: inline-block; max-width: 100%; font-family: Arial, sans-serif; font-size: .91em; overflow-wrap: anywhere; }
.kc-store-link {
  grid-area: store;
  align-self: start;
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--kc-blue);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #91a4b5;
  white-space: nowrap;
}
.kc-store-link:hover { text-decoration-color: currentColor; }
.kc :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--kc-blue); outline-offset: 3px; }
.kc-install { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 24px; padding-top: clamp(18px, 2vw, 28px); }
.kc-install h2 { font-size: 1.2rem; line-height: 1.5; margin: 0; font-weight: 700; }
.kc-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:has(.kc-viewer[open]) { overflow: hidden; }
.kc-viewer {
  margin: auto;
  width: min(790px, calc(100vw - 20px));
  max-width: none;
  max-height: calc(100dvh - 16px);
  border: 0;
  padding: 0;
  overflow: auto;
  background: #fff;
  color: var(--kc-ink);
}
.kc-viewer::backdrop { background: rgba(12, 22, 37, .78); }
.kc-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px; }
.kc-viewer h2 { font-size: 1.07rem; line-height: 1.45; }
.kc-close, .kc-zoom { min-height: 44px; color: var(--kc-blue); font-weight: 600; padding: 4px 7px; }
.kc-close { flex-shrink: 0; }
.kc-zoom { margin-inline: 8px; text-decoration: underline; text-underline-offset: 4px; }
.kc-zoom[aria-pressed="true"] { color: #fff; background: var(--kc-ink); text-decoration: none; }
.kc-image-area {
  height: min(72vh, calc(100vw - 20px), 800px);
  height: min(calc(100dvh - 140px), calc(100vw - 20px), 800px);
  min-height: 100px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #edf0f3;
}
.kc-image-area:focus-visible { outline-offset: -3px; }
.kc-image-area img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kc-image-area.kc-original-size img { width: 800px; height: 800px; max-width: none; margin-inline: auto; }
@media (max-width: 800px) {
  .kc-row { column-gap: 18px; }
}
@media (max-width: 650px) {
  .kc-tools { flex-direction: column-reverse; align-items: stretch; }
  .kc-date { margin: 0 0 2px; }
  .kc-row {
    grid-template-columns: clamp(100px, 31vw, 150px) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    grid-template-areas: "sheet product" "sheet price" "details details";
    column-gap: clamp(10px, 3.5vw, 20px);
    row-gap: 0;
    padding-block: 14px 7px;
  }
  .kc-row:has(details[open]) { grid-template-rows: 1fr auto auto; }
  .kc-sheet { align-self: start; }
  .kc-product { align-self: end; }
  .kc-product h2 { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .kc-spec { gap: 0 6px; line-height: 1.4; font-size: .91rem; }
  .kc-spec span::before { margin-inline-end: 6px; }
  .kc-price { align-self: start; justify-self: start; margin-top: 4px; padding-bottom: 4px; }
  .kc-price strong { font-size: clamp(1.5rem, 6vw, 1.8rem); }
  .kc-store-link { grid-area: details; z-index: 1; }
  .kc-details, .kc-store-link { margin-top: 3px; font-size: .95rem; }
  .kc-details dl { font-size: .94rem; gap: 6px 12px; }
  .kc-install { display: block; }
  .kc-install h2 { margin-bottom: 3px; }
}
