/* KODER CLI product pages. The terminal pages retain their own color scheme. */
.site-brand-logo {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}
.tui-version-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--text-2);
}
body.workbench-site {
  --paper: #f7f4ee;
  --page: #e4e1d8;
  --sunken: #ebe9e4;
  --ink: #1d1c1a;
  --muted-ink: #48453f;
  --edge: #d4d0c7;
  --blue: #2455d3;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --bg: var(--page);
  --bg-main: var(--paper);
  --stage: var(--paper);
  --text: var(--ink);
  --text-2: var(--muted-ink);
  --text-3: #615c54;
  --accent: var(--blue);
  --line: var(--edge);
  --line-strong: #aaa69b;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
}
.workbench-site :where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.workbench-site .site-header {
  position: relative;
  max-width: 1280px;
  margin: 24px auto 0;
  width: calc(100% - 48px);
  background: rgb(247 244 238 / 84%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 30px;
  box-shadow: 0 4px 24px rgb(29 28 26 / 6%);
  color: var(--ink);
  backdrop-filter: blur(18px);
}
.workbench-site .header-row {
  min-height: 64px;
  max-width: none;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.workbench-site .brand,
.workbench-site .header-tools,
.workbench-site .site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.workbench-site .brand {
  color: var(--ink);
  font-family: var(--sans);
}
.workbench-site .brand-name,
.workbench-site .brand-sub {
  color: inherit;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0;
}
.workbench-site .brand-name { display: block; line-height: 1.15; }
.workbench-site .brand-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted-ink);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .08em;
}
.workbench-site .karmen-account-menu:has(> [role="status"][aria-label]) {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workbench-site .karmen-account-menu > [role="status"][aria-label] {
  flex-basis: 100%;
  text-align: end;
}
.workbench-site main.account-page {
  width: min(100%, 1080px);
  margin: clamp(26px, 5vw, 68px) auto 0;
}
.workbench-site .account-page .account-panel {
  background: var(--paper);
  border-radius: 18px;
}
.workbench-site .site-nav :is(a, summary),
.workbench-site .header-tools :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font: 500 .875rem/1.35 var(--sans);
  text-transform: none;
}
.workbench-site .site-nav a[aria-current="page"] {
  color: var(--cli-link-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.workbench-site .header-tools a.header-install {
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
}
.workbench-site .header-path {
  min-height: 0;
  border: 0;
  background: none;
}
.workbench-site .header-path > span { display: none; }
.workbench-site .header-path .account-secondary {
  color: var(--ink);
}
.workbench-site .header-path:not(:has(button:not([hidden]), [data-account-notice]:not(:empty))) { display: none; }
.workbench-site .terminal-sub {
  background: var(--paper);
  border-color: var(--edge);
}
.workbench-site main.module-page {
  width: min(100%, 1328px);
  max-width: none;
  padding: 0 clamp(16px, 4vw, 44px) 84px;
  font-family: var(--sans);
  color: var(--ink);
  --module-line: var(--edge);
}
.workbench-site .module-page :is(h1, h2, h3, h4, p, a, button, summary, li, dt, dd) {
  font-family: var(--sans);
}
.workbench-site .module-page :is(h1, h2, h3, h4) {
  color: var(--ink);
  text-transform: none;
  text-wrap: pretty;
}
.workbench-site .module-page :is(.product-hero, .product-band, .route-intro, .support-disclosure) {
  max-width: 1200px;
  margin-inline: auto;
}
.product-hero { padding: clamp(56px, 8.6vw, 126px) 0 clamp(54px, 6vw, 90px); }
.product-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 32px;
  margin-bottom: 42px;
}
.workbench-site .product-version {
  width: fit-content;
  border: 1px solid var(--edge);
  border-radius: 100px;
  padding: 5px 12px;
  color: var(--muted-ink);
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .05em;
  background: rgb(247 244 238 / 70%);
  margin: 0 0 20px;
}
.workbench-site .product-hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.065em;
  margin: 0 0 25px;
  overflow-wrap: normal;
}
.workbench-site .product-lede {
  margin: 0;
  max-width: 55ch;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.workbench-site .module-page :is(.product-primary, .product-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  padding: 8px 18px;
  color: var(--ink);
  font: 650 .94rem/1.3 var(--sans);
  text-decoration: none;
}
.workbench-site .module-page a.product-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.workbench-site .module-page :is(.product-primary, .product-button):hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.product-fold {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
  justify-self: end;
}
.product-fold:empty { display: none; }
.product-fold > karmen-avatar { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.product-hero-image { margin: 0; }
.product-hero-image > img,
.hub-preview img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: clamp(12px, 2.4vw, 28px);
  box-shadow: 0 18px 56px rgb(29 28 26 / 11%);
}
.product-hero-image figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  color: var(--muted-ink);
  font-size: .875rem;
}
.workbench-site button.motion-toggle {
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 100px;
}
.product-band {
  border-top: 1px solid var(--edge);
  padding: clamp(42px, 7vw, 96px) 0;
  scroll-margin-top: 24px;
}
.product-band > header { margin-bottom: 30px; }
.workbench-site .product-band h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4.15rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.048em;
}
.product-band > header p,
.route-intro > p {
  color: var(--muted-ink);
  max-width: 70ch;
}
.preview-gallery,
.setup-selector {
  padding: clamp(12px, 2.5vw, 28px);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 22px;
}
.preview-tabs,
.setup-tabs { display: none; }
[data-tabs-ready] > :is(.preview-tabs, .setup-tabs) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
[data-tabs-ready] > .setup-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workbench-site [data-preview-tab] {
  min-height: 48px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  font: 600 .9rem/1.25 var(--sans);
}
.workbench-site [data-preview-tab][aria-selected="true"] {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}
.preview-gallery [data-preview-panel] + [data-preview-panel]:not([hidden]) { margin-top: 12px; }
.preview-image {
  width: 100%;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 13px;
  padding: 0;
  background: var(--sunken);
  overflow: hidden;
}
[data-tabs-ready] .preview-image { cursor: zoom-in; }
.preview-image img { display: block; width: 100%; height: auto; }
.preview-caption { padding: 13px 6px 2px; }
.preview-caption :is(h3, p) { margin: 0 0 5px; }
.preview-caption p { color: var(--muted-ink); }
.preview-gallery[data-tabs-ready] [data-preview-panel]:not([hidden]) { animation: preview-reveal .22s ease-out; }
@keyframes preview-reveal { from { opacity: .55; transform: translateY(4px); } }
.product-dialog {
  position: fixed;
  inset: 0;
  width: min(100%, 1640px);
  max-width: 100%;
  max-height: 100dvh;
  height: fit-content;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  border-radius: 16px;
}
.product-dialog::backdrop { background: rgb(29 28 26 / 85%); }
.dialog-actions {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: end;
  gap: 8px;
  padding: 10px;
  background: var(--paper);
}
.dialog-actions button {
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 100px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--edge);
}
.dialog-image { overflow: auto; max-height: calc(100dvh - 68px); }
.dialog-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 68px);
  height: auto;
  margin: auto;
}
.product-dialog.is-original .dialog-image img { width: auto; max-width: none; max-height: none; }
.capability-groups,
.module-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.capability-groups article,
.module-directory li {
  border-top: 1px solid var(--edge);
  padding: 15px 0 0;
}
.capability-groups :is(h3, p),
.module-directory :is(h4, p) { margin: 0 0 8px; }
.capability-groups p,
.module-directory p { color: var(--muted-ink); font-size: .95rem; }
.product-directory,
.support-disclosure {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 15px;
  padding: 8px 18px;
  margin-top: 24px;
}
.product-directory summary,
.support-disclosure summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 650; }
.module-directory { padding: 0; list-style: none; margin: 12px 0; }
.setup-selector section { padding: 8px; }
.setup-selector section :is(h3, p) { margin: 0 0 8px; }
.product-related { margin-top: 24px; }
.route-intro { padding: clamp(45px, 6vw, 88px) 0 28px; }
.workbench-site .route-intro h1 {
  font-size: clamp(2.55rem, 6vw, 5.5rem);
  margin: 0 0 16px;
  line-height: 1.08;
}
.route-intro > p { font-size: clamp(1rem, 2vw, 1.2rem); margin: 0 0 16px; }
.product-hub { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 30px; }
.product-hub article,
.download-platforms > div { padding: clamp(16px, 3vw, 28px); background: var(--paper); border-radius: 18px; border: 1px solid var(--edge); }
.product-hub h2, .download-platforms h2 { margin: 0; }
.hub-preview { display: block; margin-top: 18px; }
.download-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.workbench-site [data-install-platform][aria-current="true"] { border: 2px solid var(--blue); }
.workbench-site [id^="platform-"]:target { scroll-margin-top: 20px; }
.workbench-site .repo-file:target { outline: 2px solid var(--blue); outline-offset: 2px; }
.workbench-site .repo-file { overflow-wrap: anywhere; }
.workbench-site .repo-product,
.workbench-site .repo-install,
.workbench-site .repo-packages,
.workbench-site .repo-file { min-width: 0; }
.workbench-site .repo-product {
  border-color: var(--edge);
  background: var(--paper);
}
.workbench-site [hidden] { display: none !important; }
@media (max-width: 950px) {
  .workbench-site .site-nav { order: 3; width: 100%; }
  .product-hero-copy { grid-template-columns: minmax(0, 1fr) 160px; }
  .product-fold { width: 160px; }
  .capability-groups, .module-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .workbench-site .site-header { width: calc(100% - 24px); margin-top: 12px; border-radius: 20px; }
  .workbench-site .header-row { padding: 8px 12px; }
  .workbench-site .site-nav, .workbench-site .header-tools { gap: 4px 10px; }
  .product-hero-copy { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 26px; }
  .product-fold { width: clamp(88px, 25vw, 120px); justify-self: center; }
  .workbench-site .product-hero h1 { font-size: clamp(2rem, 8.25vw, 2.85rem); letter-spacing: -.045em; }
  [data-tabs-ready] > .preview-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hub, .download-platforms, .capability-groups, .module-directory { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .workbench-site *, .workbench-site *::before, .workbench-site *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* The legacy terminal stylesheet uses important declarations for square panels. */
html[data-theme-source="cli-website-v5"] { background: #e4e1d8; }
.workbench-site .site-header {
  border-radius: 30px !important;
  box-shadow: 0 4px 24px rgb(29 28 26 / 6%) !important;
  backdrop-filter: blur(18px) !important;
}
.workbench-site :is(.product-version, .product-primary, .product-button, .header-install, .motion-toggle, .dialog-actions button) {
  border-radius: 999px !important;
}
.workbench-site :is(.product-hero-image > img, .hub-preview img, .preview-gallery, .setup-selector, .product-dialog, .product-hub article, .download-platforms > div) {
  border-radius: 18px !important;
}
.workbench-site :is(.preview-image, [data-preview-tab], .product-directory, .support-disclosure) {
  border-radius: 12px !important;
}
.workbench-site .product-hero-image > img { box-shadow: 0 18px 56px rgb(29 28 26 / 11%) !important; }

.workbench-site .product-hero-image .hero-preview {
  border-radius: 18px !important;
  box-shadow: 0 18px 56px rgb(29 28 26 / 11%) !important;
  cursor: zoom-in;
}
@media (max-width: 620px) {
  .workbench-site .site-header { border-radius: 20px !important; }
}

.cli-download-page .route-intro { padding-top: clamp(20px, 4vw, 54px); }
.cli-download-page .route-intro h1 { font-size: clamp(1.9rem, 4.9vw, 4.3rem); }
.cli-download-page .route-intro > p { max-width: 58ch; }
.cli-download-page .download-platforms { margin-top: 20px; }
.cli-download-page .download-platforms > div { min-width: 0; padding: 16px; }
.cli-download-page .download-platforms h2 { font-size: 1.15rem; }
.cli-download-page .download-platforms .product-actions { margin-top: 10px; }
.cli-download-page .download-platforms .product-button { text-align: center; }
.download-resources { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 10px; }
.download-resources a { display: inline-flex; align-items: center; min-height: 44px; }
.cli-download-page [data-selected-platform] { margin-top: 10px; }
.cli-download-page .repo-command > summary { min-height: 44px; }
.cli-download-page .repo-download { white-space: normal; }
.cli-download-page .repo-download a,
.cli-download-page .repo-command-body > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  overflow-wrap: anywhere;
}
.cli-download-page .repo-checksum > summary { min-height: 44px; align-content: center; }
.cli-download-page .repo-legal { overflow-wrap: anywhere; }
.download-disclosure,
.download-history { margin-block: 16px; border: 1px solid var(--edge); background: var(--paper); }
.download-disclosure > summary,
.download-history > summary { min-height: 44px; align-content: center; padding: 10px 14px; cursor: pointer; }
.download-disclosure > div { padding: 0 14px 10px; }
.download-history > .repo-product { margin-inline: clamp(8px, 2vw, 24px); }
@media (max-width: 620px) {
  .cli-download-page .download-platforms { gap: 6px; }
  .cli-download-page .download-platforms > div {
    display: grid;
    grid-template-columns: minmax(74px, 1fr) minmax(0, 2.45fr);
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
  }
  .cli-download-page .download-platforms .product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
  }
  .cli-download-page .download-platforms .product-button { padding-inline: 4px; font-size: .83rem; min-height: 44px; }
  body:has(.cli-download-page) .header-tools { flex: 1 1 100%; min-width: 0; justify-content: space-between; }
  body:has(.cli-download-page) .header-tools .header-install[aria-current="page"] { display: none; }
  body:has(.cli-download-page) .site-nav { gap: 0 8px; }
  body:has(.cli-download-page) .site-nav > a { padding-inline: 2px; font-size: .81rem; }
  .workbench-site .header-row .karmen-account-menu details[open] > :not(summary) {
    width: min(200px,calc(100vw - 72px));
    margin-left: 0;
  }
  .cli-download-page .repo-install, .cli-download-page .repo-packages { padding-inline: 12px; }
}

.cli-download-page .download-verify { margin-block: 18px 8px; overflow-wrap: anywhere; }
