.kk-shell {
  width: min(1080px, calc(100% - 32px));
  padding-top: clamp(36px, 6vw, 64px);
}
.check-page .kk-shell h1 {
  max-width: min(14ch, 100%);
  font-size: clamp(1.85rem, 6.2vw, 3.4rem);
}
.kk-lead {
  max-width: 36rem;
  margin: 14px 0 0;
  color: #cfc8bd;
  font-size: .95rem;
  line-height: 1.45;
}
.kk-badge {
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(200, 164, 106, .35);
  color: #d9d2c8;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.kk-layout {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}
.kk-chart-panel,
.kk-controls {
  min-width: 0;
}
.kk-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.kk-view .check-option {
  min-height: 48px;
  justify-content: center;
  text-align: center;
}
.kk-view-note {
  margin: 0 0 18px;
  color: #9f998f;
  font-size: .78rem;
  line-height: 1.45;
}
.kk-chart-wrap {
  position: relative;
  padding: 14px 8px 8px;
  border: 1px solid #302d28;
  background: #121110;
}
.kk-chart-caption {
  margin: 0 10px 8px;
  color: #9f998f;
  font-size: .7rem;
  letter-spacing: .04em;
}
.kk-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  touch-action: none;
  outline: none;
}
.kk-chart:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.kk-grid line {
  stroke: #2a2723;
  stroke-width: 1;
}
.kk-axis {
  fill: #8e887f;
  font-size: 11px;
  font-family: Montserrat, sans-serif;
}
.kk-line-bank {
  fill: none;
  stroke: #f5f0e8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kk-line-fund {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kk-dot-bank {
  fill: #f5f0e8;
  stroke: #121110;
  stroke-width: 2;
}
.kk-dot-fund {
  fill: var(--gold);
  stroke: #121110;
  stroke-width: 2;
}
.kk-crosshair {
  stroke: rgba(200, 164, 106, .45);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.kk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 14px 10px 6px;
}
.kk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9d2c8;
  font-size: .74rem;
  font-weight: 600;
}
.kk-swatch {
  display: inline-block;
  width: 28px;
  height: 0;
  border-top: 2.5px solid #f5f0e8;
}
.kk-swatch--fund {
  border-top-color: var(--gold);
  border-top-style: dashed;
}
.kk-live {
  min-height: 3.2em;
  margin: 10px 10px 4px;
  color: #cfc8bd;
  font-size: .8rem;
  line-height: 1.4;
}
.kk-live strong {
  color: var(--white);
  font-weight: 700;
}
.kk-control {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.kk-control__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.kk-control__label {
  color: #d9d2c8;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.kk-control__unit {
  color: #8e887f;
  font-size: .68rem;
}
.kk-control__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
}
.kk-control input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  height: 28px;
}
.kk-control input[type="number"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #3b3832;
  border-radius: 0;
  padding: 8px 10px;
  color: var(--white);
  background: #121110;
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
}
.kk-control input[type="number"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.kk-control input[type="number"]:disabled {
  opacity: .45;
}
.kk-assumptions {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid #302d28;
}
.kk-assumptions > summary {
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.kk-assumptions > summary::-webkit-details-marker { display: none; }
.kk-assumptions > summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.kk-assumptions[open] > summary { margin-bottom: 8px; }
.kk-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: #c7c0b6;
  font-size: .8rem;
  line-height: 1.45;
}
.kk-check input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--gold);
}
.kk-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.kk-result {
  padding: 18px 16px;
  border: 1px solid #302d28;
  background: #121110;
}
.kk-result span {
  display: block;
  color: #9f998f;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kk-result strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
}
.kk-result em {
  display: block;
  margin-top: 10px;
  color: #aca59b;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.4;
}
.kk-error {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: #efaaa4;
  font-size: .84rem;
  font-weight: 600;
}
.kk-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
}
.kk-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  color: #cfc8bd;
  font-size: .78rem;
}
.kk-table th,
.kk-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #302d28;
  text-align: right;
}
.kk-table th:first-child,
.kk-table td:first-child {
  text-align: left;
}
.kk-table th {
  color: #9f998f;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kk-table tr[aria-selected="true"] {
  background: rgba(200, 164, 106, .12);
}
.kk-foot {
  margin-top: 28px;
}
.kk-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #302d28;
}
.kk-details summary {
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.kk-details summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.kk-hint {
  margin: 12px 0 0;
  color: #9f998f;
  font-size: .78rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .kk-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
    align-items: start;
    gap: 36px;
  }
  .kk-chart {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  .kk-results {
    grid-template-columns: 1fr;
  }
  .kk-control__row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kk-line-bank,
  .kk-line-fund {
    transition: none;
  }
}
