/* Brand references: style.css :root. Orange/pop orange/cream are shared site tokens. */
.cw-main {
  background: var(--guide-bg, #fff4e1);
  padding: 24px 28px 70px;
  color: var(--guide-text, #2b2620);
}
.cw {
  --cw-brand: var(--guide-accent, #ff5b00);
  --cw-pop: var(--kabocy-color-site-brand-pop, #f29a22);
  --cw-pink: var(--kabocy-color-km-brand, #ff7bac);
  --cw-cream: var(--guide-accent-soft, #ffedca);
  --cw-ink: var(--guide-text, #2b2620);
  --cw-muted: var(--guide-muted, #6f6052);
  --cw-line: var(--guide-border, #e8e1d4);
  max-width: 1240px;
  margin: auto;
  font:
    400 15px/1.75 system-ui,
    -apple-system,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
  overflow-wrap: anywhere;
}
.cw * {
  box-sizing: border-box;
}
.cw [hidden] {
  display: none !important;
}
.cw :where(h1, h2, h3, p, ul, ol, dl) {
  margin: 0;
}
.cw :where(h1, h2, h3) {
  line-height: 1.5;
  color: var(--cw-ink);
}
.cw :where(button, input, select, textarea) {
  font: inherit;
}
.cw
  :where(
    button,
    a,
    summary,
    input,
    select,
    textarea,
    [tabindex="0"]
  ):focus-visible {
  outline: 3px solid #8f3a00;
  outline-offset: 4px;
}
.cw :where(a) {
  color: #95400c;
  text-underline-offset: 4px;
}
.cw :where(button, summary, label) {
  -webkit-tap-highlight-color: transparent;
}
.cw :where(h2, [tabindex="-1"]) {
  scroll-margin-top: 150px;
}
.cw [tabindex="-1"]:focus {
  outline: none;
}
.cw-page .distro-compare-tray {
  display: none !important;
}
.cw-breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--cw-muted);
  margin: 0 0 22px;
}
.cw-hero {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: 22px 0 32px;
}
.cw-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: #93400e;
}
.cw h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.4;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 12px 0 16px;
}
.cw-mobile-break {
  display: none;
}
.cw-lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--cw-muted);
}
.cw-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 20px 24px;
  min-width: 225px;
  border-left: 1px solid #e5ccb1;
}
.cw-steps li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  font-weight: 650;
}
.cw-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--cw-cream);
  border: 1px solid #ebd0a9;
  border-radius: 50%;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.cw-steps li:first-child b {
  background: var(--cw-brand);
  border-color: var(--cw-brand);
  color: #301707;
}
.cw-selection {
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--cw-line);
  border-radius: var(--guide-radius-lg, 16px);
  box-shadow: var(--guide-shadow-md, 0 6px 20px #2b262014);
}
.cw-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.cw h2 {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.cw-count {
  padding: 8px 15px;
  border-radius: 22px;
  background: var(--cw-cream);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cw-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.cw-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  min-height: 72px;
  border: 1px dashed #d9cbbb;
  border-radius: 12px;
  background: #fffcf6;
  color: var(--cw-muted);
  font-size: 12px;
}
.cw-slot.is-filled {
  border: 1px solid #f4a273;
  background: #fff2e7;
  color: var(--cw-ink);
  font-weight: 650;
}
.cw-slot:nth-child(2).is-filled {
  background: #fff5d9;
  border-color: var(--cw-pop);
}
.cw-slot:nth-child(3).is-filled {
  background: #fff0f5;
  border-color: var(--cw-pink);
}
.cw-slot-number {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}
.cw-slot > span:nth-child(2) {
  flex: 1;
}
.cw-slot button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #fff9;
  color: var(--cw-ink);
  font-size: 18px;
  cursor: pointer;
}
.cw-slot button:hover {
  background: #fff;
}
.cw-picker {
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: #fff;
}
.cw-picker > summary {
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  min-height: 52px;
  list-style: revert;
}
.cw-picker > summary > span {
  float: right;
  color: #b84e0b;
}
.cw-picker[open] > summary {
  border-bottom: 1px solid var(--cw-line);
}
.cw-picker[open] > summary > span {
  transform: rotate(45deg);
}
.cw-picker-body {
  padding: 18px;
}
.cw-picker-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px;
  margin-bottom: 12px;
}
.cw label > span:first-child {
  display: block;
  font-size: 11px;
  color: var(--cw-muted);
  margin-bottom: 6px;
}
.cw input[type="search"],
.cw input[type="number"],
.cw select,
.cw textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdbcaa;
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--cw-ink);
}
.cw input[type="search"] {
  background: #fffaf2;
}
.cw-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 8px 4px 4px;
  margin-top: 12px;
  scrollbar-width: thin;
}
.cw-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid var(--cw-line);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
.cw-option:hover {
  background: #fff9ed;
  border-color: #efb78c;
}
.cw-option.is-selected {
  background: #fff0df;
  border-color: var(--cw-brand);
  box-shadow: inset 0 0 0 1px var(--cw-brand);
}
.cw-option:has(input:checked) {
  background: #fff0df;
  border-color: var(--cw-brand);
}
.cw-option input {
  accent-color: var(--cw-brand);
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 4px 0 0;
}
.cw-option-body {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
}
.cw-option-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  grid-column: 1/-1;
}
.cw-option-body > small {
  font-size: 10px;
  color: var(--cw-muted);
  grid-column: 1/-1;
}
.cw-option-desc {
  grid-column: 1/-1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  color: var(--cw-muted);
  line-height: 1.7;
  margin-top: 4px;
}
.cw-option img {
  object-fit: contain;
  grid-column: 2;
  grid-row: 1/3;
}
.cw-no-match {
  padding: 20px;
  background: #fff8e9;
  border-radius: 9px;
  font-size: 13px;
}
.cw-selection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}
.cw-hint {
  font-size: 11px;
  color: var(--cw-muted);
  line-height: 1.8;
}
.cw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid #d8c6b2;
  border-radius: 10px;
  background: #fff;
  color: var(--cw-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    background 0.16s;
}
.cw-button:hover {
  background: #fff4e5;
  box-shadow: 0 4px 14px #87410914;
}
.cw-button:active {
  transform: scale(0.97);
}
.cw-button--brand {
  background: var(--cw-brand);
  border-color: var(--cw-brand);
  color: #301807;
}
.cw-button--brand:hover {
  background: #ff791e;
}
.cw-button:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}
.cw-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #95400c;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cw-example {
  border-top: 1px solid var(--cw-line);
  padding-top: 17px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--cw-muted);
}
.cw-example a {
  display: inline-block;
  padding: 4px 0;
  font-weight: 600;
}
.cw-status {
  font-size: 12px;
  min-height: 24px;
  margin: 12px 4px;
  color: #7d380d;
}
.cw-error {
  padding: 20px;
  background: #fff0e8;
  border: 1px solid #c15f2c;
  border-radius: 12px;
  margin: 14px 0;
  font-size: 14px;
}
.cw-error .cw-button {
  margin: 12px 15px 0 0;
}
.cw-welcome {
  padding: 36px 26px;
  text-align: center;
  border: 1px dashed #e4c9a2;
  border-radius: 22px;
  background: #fff8e9;
  margin: 12px 0;
}
.cw-welcome h2 {
  font-size: 25px;
  margin: 12px 0 18px;
}
.cw-welcome > p:not(.cw-eyebrow) {
  font-size: 14px;
  color: var(--cw-muted);
  line-height: 1.9;
}
.cw-welcome > a {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
}
.cw-comparison {
  margin-top: 15px;
}
.cw-result-head {
  align-items: flex-end;
  margin-bottom: 22px;
}
.cw-result-head h2 {
  font-size: 28px;
}
.cw-result-head > div > p:last-child:not(.cw-eyebrow) {
  font-size: 12px;
  color: var(--cw-muted);
  margin-top: 9px;
}
.cw-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cw-summary {
  display: grid;
  grid-template-columns: repeat(var(--cw-cols, 3), minmax(0, 1fr));
  gap: 16px;
}
.cw-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--cw-line);
  border-top: 5px solid var(--cw-brand);
  border-radius: 16px;
  box-shadow: var(--guide-shadow-sm, 0 1px 2px #2b26200f);
}
.cw-card:nth-child(2) {
  border-top-color: var(--cw-pop);
}
.cw-card:nth-child(3) {
  border-top-color: var(--cw-pink);
}
.cw-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--cw-muted);
}
.cw-card-number {
  font-weight: 700;
  letter-spacing: 0.1em;
}
.cw-card-top img {
  margin-left: auto;
  object-fit: contain;
}
.cw-card h3 {
  font-size: 24px;
  margin: 13px 0;
  line-height: 1.45;
  letter-spacing: -0.03em;
}
.cw-card h3 a {
  color: var(--cw-ink);
  text-decoration: none;
}
.cw-card-desc {
  font-size: 13px;
  color: var(--cw-muted);
  line-height: 1.85;
  flex: 1;
}
.cw-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--cw-line);
  border-bottom: 1px solid var(--cw-line);
}
.cw-card dt {
  font-size: 10px;
  color: var(--cw-muted);
}
.cw-card dd {
  margin: 5px 0 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
}
.cw-card-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.cw-card-links .cw-button {
  font-size: 12px;
  padding: 11px 13px;
}
.cw-note {
  padding: 16px 4px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--cw-muted);
}
.cw-note strong {
  display: block;
  color: #873b0a;
  font-weight: 600;
}
.cw-match {
  font-size: 12px;
  padding: 14px;
  background: #fff5de;
  border: 1px solid #ecd2a7;
  border-radius: 8px;
  margin-bottom: 16px;
}
.cw-match ul {
  padding-left: 18px;
  margin-top: 6px;
}
.cw-match.is-blocked {
  background: #fff0ed;
  border-color: #e9b4a6;
}
.cw-profile {
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: #fffaf2;
  margin: 8px 0 28px;
}
.cw-profile > summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}
.cw-profile > summary > span {
  font-size: 10px;
  color: var(--cw-muted);
  font-weight: 400;
  margin-left: 16px;
}
.cw-profile form {
  padding: 0 20px 20px;
}
.cw-profile-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cw-check {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.cw-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cw-brand);
}
.cw-profile .cw-hint {
  margin: 10px 0 15px;
}
.cw-profile form > a {
  font-size: 12px;
  margin-left: 18px;
}
.cw-table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 14px;
}
.cw-table-toolbar h3 {
  font-size: 22px;
  margin-bottom: 5px;
}
.cw-table-toolbar p {
  font-size: 12px;
  color: var(--cw-muted);
}
.cw-table-toolbar b {
  font-size: 16px;
  color: #914012;
}
.cw-filters {
  display: flex;
  background: #f0e4d1;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.cw-filters button {
  border: 0;
  background: transparent;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 7px;
  color: var(--cw-muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.cw-filters button[aria-pressed="true"] {
  background: #fff;
  color: #883c0c;
  font-weight: 700;
  box-shadow: 0 2px 6px #66300812;
}
.cw-scroll-hint {
  margin-bottom: 12px;
}
.cw-table-scroll {
  border: 1px solid #d9c8b2;
  border-radius: 13px;
  overflow: auto;
  max-height: 72vh;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.cw-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.85;
}
.cw-label-col {
  width: 156px;
}
.cw-table th,
.cw-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid #ede3d7;
  border-right: 1px solid #ede3d7;
  background: #fff;
  overflow-wrap: anywhere;
}
.cw-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff0dc;
  font-size: 15px;
  border-bottom: 2px solid #e2b785;
  color: var(--cw-ink);
}
.cw-table thead th:first-child {
  left: 0;
  z-index: 4;
  font-size: 11px;
}
.cw-table-number {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  color: #93400e;
}
.cw-row > th {
  position: sticky;
  left: 0;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  background: #fffaf2;
  color: #615141;
}
.cw-group th {
  background: #f5ead7;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 750;
  padding: 10px 18px;
  position: sticky;
  left: 0;
}
.cw-row.is-diff > td {
  background: #fffaf1;
}
.cw-row.is-diff > th {
  border-left: 3px solid var(--cw-pop);
  padding-left: 15px;
}
.cw-row:hover > td,
.cw-row:hover > th {
  background: #fff0d9;
}
.cw-unknown {
  font-size: 11px;
  color: var(--cw-muted);
}
.cw [data-cw-row-status] {
  margin: 10px 0;
  min-height: 20px;
}
.cw-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 28px 0 0;
  padding: 32px;
  background: var(--cw-cream);
  border: 1px solid #ecd4af;
  border-radius: 18px;
}
.cw-next h3 {
  font-size: 24px;
  margin: 10px 0;
}
.cw-next p:last-child {
  font-size: 13px;
  color: var(--cw-muted);
}
.cw-next .cw-button {
  flex-shrink: 0;
}
.cw [aria-busy="true"] {
  opacity: 0.6;
  transition: opacity 0.16s;
}
.cw-copy {
  position: fixed;
  z-index: 3000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: 80vh;
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 2px solid #d97123;
  border-radius: 16px;
  box-shadow: 0 15px 90px #49270740;
  font-size: 14px;
}
.cw-copy textarea {
  display: block;
  margin: 12px 0;
}
.cw-copy p {
  font-size: 12px;
  margin-bottom: 15px;
}
@media (max-width: 1000px) {
  .cw-hero {
    gap: 24px;
  }
  .cw h1 {
    font-size: 34px;
  }
  .cw-steps {
    min-width: 195px;
    padding: 15px;
  }
  .cw-summary {
    gap: 12px;
  }
  .cw-card {
    padding: 20px;
  }
  .cw-card h3 {
    font-size: 21px;
  }
  .cw-card-links {
    gap: 8px;
  }
  .cw-result-head {
    display: block;
  }
  .cw-result-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .cw-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-card dd {
    font-size: 22px;
  }
  .cw-next {
    display: block;
  }
  .cw-next .cw-button {
    margin-top: 20px;
  }
}
@media (max-width: 600px) {
  .cw-main {
    padding: 18px 16px 40px;
  }
  .cw-breadcrumb {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .cw-hero {
    display: block;
    padding: 16px 0 24px;
  }
  .cw h1 {
    font-size: 29px;
    line-height: 1.45;
    margin: 11px 0 14px;
  }
  .cw-mobile-break {
    display: initial;
  }
  .cw-eyebrow {
    font-size: 9px;
  }
  .cw-lead {
    font-size: 13px;
  }
  .cw-steps {
    display: flex;
    padding: 0;
    margin-top: 22px;
    border: 0;
    gap: 12px;
    min-width: 0;
    justify-content: space-between;
  }
  .cw-steps li {
    display: block;
    font-size: 10px;
  }
  .cw-steps b {
    width: 27px;
    height: 27px;
    margin-bottom: 7px;
    font-size: 9px;
  }
  .cw-selection {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .cw h2 {
    font-size: 21px;
  }
  .cw-count {
    font-size: 11px;
    padding: 7px 10px;
  }
  .cw-section-head {
    gap: 10px;
    margin-bottom: 17px;
  }
  .cw-slots {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 15px;
  }
  .cw-slot {
    min-height: 48px;
    padding: 9px 11px;
    font-size: 11px;
    gap: 9px;
  }
  .cw-slot-number {
    height: 24px;
    flex-basis: 24px;
  }
  .cw-slot button {
    height: 32px;
    flex-basis: 32px;
  }
  .cw-picker > summary {
    font-size: 12px;
    padding: 13px;
  }
  .cw-picker-body {
    padding: 12px;
  }
  .cw-picker-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cw-picker-tools label > span {
    font-size: 10px;
  }
  .cw-options {
    grid-template-columns: 1fr;
    max-height: 270px;
    gap: 8px;
  }
  .cw-option {
    padding: 12px;
  }
  .cw-option-name {
    font-size: 13px;
  }
  .cw-option-desc {
    font-size: 11px;
  }
  .cw-selection-actions {
    gap: 7px 12px;
  }
  .cw-selection-actions > .cw-button {
    width: 100%;
  }
  .cw-selection-actions > .cw-hint {
    flex: 1;
    font-size: 10px;
  }
  .cw-example {
    font-size: 11px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .cw-welcome {
    padding: 28px 18px;
  }
  .cw-welcome h2 {
    font-size: 22px;
  }
  .cw-welcome > p:not(.cw-eyebrow) {
    font-size: 12px;
  }
  .cw-status {
    font-size: 11px;
  }
  .cw-result-head h2 {
    font-size: 23px;
  }
  .cw-result-actions {
    gap: 4px 12px;
  }
  .cw-result-actions .cw-text-button {
    font-size: 11px;
    padding-left: 0;
  }
  .cw-summary {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 12px;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
  }
  .cw-card {
    flex: 0 0 88%;
    scroll-snap-align: start;
    padding: 21px;
  }
  .cw-card h3 {
    font-size: 23px;
  }
  .cw-card-desc {
    font-size: 12px;
  }
  .cw-card dl {
    margin: 18px 0;
  }
  .cw-card dd {
    font-size: 25px;
  }
  .cw-note {
    font-size: 10px;
    padding: 10px 2px;
  }
  .cw-profile > summary {
    font-size: 12px;
    padding: 15px;
  }
  .cw-profile > summary > span {
    display: block;
    margin: 4px 0 0 18px;
  }
  .cw-profile form {
    padding: 0 15px 18px;
  }
  .cw-profile-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cw-profile input,
  .cw-profile select {
    font-size: 12px;
    padding: 9px;
  }
  .cw-profile .cw-button {
    font-size: 12px;
    padding: 10px;
  }
  .cw-table-toolbar {
    display: block;
    margin-top: 25px;
  }
  .cw-table-toolbar h3 {
    font-size: 21px;
  }
  .cw-filters {
    width: max-content;
    max-width: 100%;
    margin-top: 14px;
  }
  .cw-filters button {
    font-size: 11px;
    padding: 9px 15px;
  }
  .cw-label-col {
    width: 83px;
  }
  .cw-table {
    font-size: 12px;
    line-height: 1.8;
  }
  .cw-table[data-cols="3"] {
    min-width: 610px;
  }
  .cw-table th,
  .cw-table td {
    padding: 12px 9px;
  }
  .cw-table thead th {
    font-size: 12px;
    padding: 12px 8px;
  }
  .cw-table thead th:first-child,
  .cw-row > th {
    font-size: 10px;
  }
  .cw-table-number {
    font-size: 9px;
  }
  .cw-row.is-diff > th {
    padding-left: 6px;
  }
  .cw-group th {
    padding: 9px;
    font-size: 11px;
  }
  .cw-table-scroll {
    max-height: 68vh;
    border-radius: 10px;
  }
  .cw-next {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .cw-next h3 {
    font-size: 22px;
  }
  .cw-next p:last-child {
    font-size: 12px;
  }
  .cw-next .cw-button {
    width: 100%;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw *,
  .cw *::before,
  .cw *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Linux playground: terminal chrome, friendly companion, and tactile cards. */
.cw-main {
  background-image: radial-gradient(#a96d2520 0.8px, transparent 0.8px);
  background-size: 22px 22px;
}
.cw-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 16px 0 26px;
}
.cw-prompt {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 26px;
  margin-right: 8px;
  border-radius: 7px;
  background: #21332d;
  color: #ffbb80;
  font:
    700 16px ui-monospace,
    monospace;
  letter-spacing: -2px;
}
.cw h1 {
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.25;
  margin: 18px 0;
}
.cw h1 > span {
  color: #b74100;
}
.cw-open-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px !important;
  font-size: 12px;
  font-weight: 700;
}
.cw-open-note > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cw-pink);
  font-size: 19px;
}
.cw-linux-window {
  min-width: 0;
  align-self: center;
  color: #ecf6ec;
  background: #20332d;
  border: 1px solid #1b2823;
  border-radius: 20px;
  box-shadow: 9px 9px 0 #ffbe794d;
  overflow: hidden;
  transform: rotate(1deg);
}
.cw-window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #ffffff1c;
  font:
    11px ui-monospace,
    monospace;
  color: #c4d4c9;
}
.cw-window-dots {
  display: flex;
  gap: 5px;
}
.cw-window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cw-brand);
}
.cw-window-dots i:nth-child(2) {
  background: var(--cw-pop);
}
.cw-window-dots i:nth-child(3) {
  background: var(--cw-pink);
}
.cw-window-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
  align-items: center;
  padding: 20px 22px 28px;
  background-image: radial-gradient(#ffffff0c 1px, transparent 1px);
  background-size: 14px 14px;
}
.cw-terminal-art {
  min-width: 0;
}
.cw-terminal-command {
  font:
    12px ui-monospace,
    monospace;
  color: #d7e4d8;
  white-space: nowrap;
}
.cw-terminal-command b {
  color: #ffa569;
  margin-right: 4px;
}
.cw-terminal-art > strong {
  display: block;
  margin: 10px 0 7px;
  font:
    800 clamp(30px, 4vw, 50px)/1.1 ui-monospace,
    monospace;
  letter-spacing: -2px;
}
.cw-terminal-cursor {
  color: var(--cw-brand);
  animation: cw-cursor 900ms step-end 3;
}
.cw-terminal-tag {
  font-size: 11px;
  color: #b6ccbf;
}
.cw-companion {
  text-align: center;
}
.cw-companion img {
  width: 112px;
  height: auto;
  display: block;
  margin: auto;
  filter: drop-shadow(0 3px 0 #ffffff48);
  transform-origin: center bottom;
}
.cw-companion button {
  min-height: 34px;
  padding: 5px 10px;
  background: #ecf6e9;
  border: 0;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 750;
  color: #23372b;
  cursor: pointer;
}
.cw-companion button span {
  color: #b23367;
  font-size: 15px;
}
.cw-greeting {
  position: absolute;
  inset: auto 14px 4px;
  text-align: center;
  color: #fff0c6;
  font-size: 10px;
}
.cw-window-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.3px;
  color: #d8e7d8;
  background: #192922;
}
.cw-window-bottom b {
  color: #ffae80;
}
.cw-steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 18px 24px;
  border: 1px solid #e5ccb1;
  border-radius: 16px;
  background: #ffffffa6;
  margin-bottom: 24px !important;
}
.cw-steps li {
  flex: 1;
  gap: 12px;
}
.cw-steps li:not(:last-child)::after {
  content: "→";
  color: #b1967b;
  margin-left: auto;
}
.cw-steps b {
  border-radius: 10px;
  font-family: ui-monospace, monospace;
}
.cw-selection {
  border-top: 3px solid var(--cw-brand);
}
.cw-count {
  border: 1px solid #eabf91;
  font-family: ui-monospace, monospace;
  box-shadow: 3px 3px 0 #ffb98438;
}
.cw-slot-number {
  font-family: ui-monospace, monospace;
  font-weight: 800;
}
.cw-slot.is-filled {
  box-shadow: 0 3px 0 #ddc4a126;
}
.cw-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.cw-card-number {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--cw-cream);
  font:
    700 12px ui-monospace,
    monospace;
  color: #4f3422;
}
.cw-card:nth-child(3) .cw-card-number {
  background: #ffe2ed;
}
.cw-button--brand {
  box-shadow: 0 3px 0 #a84a1833;
}
.cw-filters {
  background: #20332d;
  border-color: #20332d;
  gap: 4px;
  padding: 5px;
}
.cw-filters button {
  color: #e5ede5;
}
.cw-filters button[aria-pressed="true"] {
  color: #301807;
  background: var(--cw-brand);
  box-shadow: 0 2px 8px #0002;
}
@media (hover: hover) and (pointer: fine) {
  .cw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px #45260513;
  }
  .cw-companion button:hover {
    background: #fff0d0;
  }
}
@keyframes cw-cursor {
  50% {
    opacity: 0;
  }
}
@media (max-width: 800px) {
  .cw-hero {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .cw-window-content {
    padding: 16px 14px 26px;
    grid-template-columns: 1fr 90px;
    gap: 5px;
  }
  .cw-companion img {
    width: 82px;
  }
  .cw-terminal-art > strong {
    font-size: 34px;
  }
  .cw-steps {
    padding: 14px;
    gap: 12px;
  }
  .cw-steps li {
    font-size: 11px;
    gap: 7px;
  }
  .cw-steps li::after {
    display: none;
  }
}
@media (max-width: 600px) {
  .cw-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 10px 0 22px;
  }
  .cw h1 {
    font-size: 38px;
    margin: 15px 0;
  }
  .cw-lead {
    font-size: 13px;
  }
  .cw-open-note {
    margin-top: 12px !important;
  }
  .cw-linux-window {
    transform: none;
    border-radius: 15px;
    box-shadow: 5px 5px 0 #ffbe794d;
  }
  .cw-window-bar {
    padding: 7px 14px;
    font-size: 9px;
  }
  .cw-window-content {
    grid-template-columns: 1fr 104px;
    padding: 9px 18px 22px;
    min-height: 115px;
  }
  .cw-companion {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .cw-companion img {
    width: 65px;
  }
  .cw-companion button {
    padding: 3px 9px;
    min-height: 28px;
    font-size: 9px;
  }
  .cw-terminal-art > strong {
    font-size: 35px;
    margin: 7px 0;
  }
  .cw-terminal-command,
  .cw-terminal-tag {
    font-size: 10px;
  }
  .cw-window-bottom {
    font-size: 8px;
    padding: 7px 14px;
  }
  .cw-steps {
    padding: 12px 9px;
    gap: 8px;
    border-radius: 12px;
  }
  .cw-steps li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 10px;
    gap: 7px;
  }
  .cw-steps b {
    width: 27px;
    height: 27px;
  }
}
@media print {
  .cw-linux-window,
  .cw-open-note {
    display: none !important;
  }
  .cw-hero {
    display: block;
  }
  .cw-main {
    background-image: none;
  }
}
@media (forced-colors: active) {
  .cw-option.is-selected,
  .cw-filters button[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
  .cw-slot.is-filled {
    border: 2px solid Highlight;
  }
}
@media print {
  .cw-page .global-header,
  .cw-page .global-footer,
  .cw-selection,
  .cw-steps,
  .cw-result-actions,
  .cw-profile,
  .cw-filters,
  .cw-next,
  .cw-copy,
  .cw-status,
  .cw-scroll-hint {
    display: none !important;
  }
  .cw-main {
    padding: 0;
    background: #fff;
  }
  .cw-hero {
    padding: 10px 0;
  }
  .cw-table-scroll {
    max-height: none;
    overflow: visible;
    border-radius: 0;
  }
  .cw-table {
    font-size: 10px;
  }
  .cw-table th,
  .cw-table td {
    position: static !important;
    padding: 7px;
  }
  .cw-summary {
    display: grid;
  }
  .cw-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .cw-card-links {
    display: none;
  }
  .cw-table thead {
    display: table-header-group;
  }
}
