.chart-page {
  --chart-paper: #f6f7f9;
  --chart-panel: #ffffff;
  --chart-text: #1c2530;
  --chart-muted: #526171;
  --chart-line: #e1e5ea;
  --chart-night: #0b0f14;
  --chart-selected-bg: #fff0e5;
  --chart-selected-text: #78350e;
  --chart-selected-border: #a74919;
  --chart-match: #fff3e9;
  background: var(--chart-paper);
  color: var(--chart-text);
}
.chart-page [hidden] { display: none !important; }
.chart-page :is(a,button,select,input,summary):focus-visible {
  outline: 2px solid var(--chart-selected-border);
  outline-offset: 3px;
}
.chart-page .ox-hero {
  padding: 153px 0 32px;
  background: var(--chart-night);
  color: #fffaf2;
}
.chart-page .ox-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(0,1fr);
  gap: clamp(18px,4vw,48px);
  align-items: center;
}
.chart-page .breadcrumb { margin-bottom: 16px; color: #c3cbc1; }
.chart-page .ox-kicker {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffac77;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.chart-page .ox-kicker::before { content: ""; width: 17px; height: 2px; background: currentColor; }
.chart-page .ox-hero h1 {
  max-width: 630px;
  margin: 8px 0 12px;
  font-size: clamp(2rem,4.8vw,3.5rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.chart-page .ox-lead { max-width: 500px; color: #c4cdd6; line-height: 1.55; }
.chart-page .ox-photo {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  height: 196px;
  overflow: hidden;
  border: 1px solid #b1a08e;
  border-radius: 9px;
  background-color: #f1e9de;
  background-image: linear-gradient(#bd966e24 1px,transparent 1px), linear-gradient(90deg,#bd966e24 1px,transparent 1px);
  background-size: 22px 22px;
}
.chart-page .ox-photo-stage { position: relative; min-height: 0; }
.chart-page .ox-photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(93%,238px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translate(-50%,-50%) rotate(60deg);
  mix-blend-mode: multiply;
}
.chart-page .ox-photo figcaption {
  position: relative;
  padding: 0 13px 10px;
  color: #503a2d;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.chart-page .ox-body { padding-block: 24px 34px; }
.chart-page .ox-workspace {
  display: grid;
  grid-template-columns: minmax(228px,.78fr) minmax(0,1.75fr);
  gap: 16px;
  align-items: start;
}
.chart-page .ox-panel {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--chart-line);
  border-radius: 11px;
  background: var(--chart-panel);
}
.chart-page .ox-panel h2, .chart-page .ox-footer h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}
.chart-page .ox-filters { padding: 18px; }
.chart-page .ox-filters h2 { margin-bottom: 16px; }
.chart-page .ox-filters fieldset { display: grid; gap: 15px; border: 0; min-inline-size: 0; }
.chart-page .ox-choices { border: 1px solid #dce2e8; border-radius: 13px; background: #f8f9fb; }
.chart-page .ox-choice, .chart-page .ox-select { position: relative; display: block; }
.chart-page .ox-choice:not(:last-child) { border-bottom: 1px solid #dce2e8; }
.chart-page .ox-label { color: #516071; font-size: .75rem; font-weight: 650; }
.chart-page .ox-choice .ox-label {
  position: absolute;
  z-index: 1;
  top: 8px;
  inset-inline-start: 14px;
  pointer-events: none;
  font-size: .7rem;
  line-height: 1.35;
}
.chart-page .ox-select::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid #526171;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.chart-page .ox-choice select {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 55px;
  padding: 23px 40px 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1c2530;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  scroll-margin-top: 120px;
}
.chart-page .ox-choice:first-child select { border-radius: 12px 12px 0 0; }
.chart-page .ox-choice:last-child select { border-radius: 0 0 12px 12px; }
.chart-page .ox-choice select:hover { background: #eef1f5; }
.chart-page .ox-choice select:focus-visible { outline-offset: -2px; }
@supports (appearance: base-select) and selector(select::picker(select)) {
  .chart-page .ox-choice select, .chart-page .ox-choice select::picker(select) { appearance: base-select; }
  .chart-page .ox-choice select:open { background: #eef1f5; }
  .chart-page .ox-choice select::picker-icon { display: none; }
  .chart-page .ox-choice select::picker(select) {
    margin-block: 5px;
    padding: 5px;
    max-height: 300px;
    border: 1px solid #dce2e8;
    border-radius: 11px;
    background: var(--chart-panel);
    color: #1c2530;
    box-shadow: 0 10px 30px #0b0f1426;
  }
  .chart-page .ox-choice option { min-height: 38px; padding: 7px 10px; border-radius: 6px; font-weight: 500; }
  .chart-page .ox-choice option:checked {
    background: var(--chart-selected-bg);
    color: var(--chart-selected-text);
    font-weight: 650;
  }
  .chart-page .ox-choice option:not(:checked):is(:hover,:focus-visible) { background: #eef1f5; }
  .chart-page .ox-choice option::checkmark { color: var(--chart-selected-text); }
}
.chart-page .ox-thickness-field { display: grid; gap: 5px; }
.chart-page .ox-thick-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.chart-page .ox-thick-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #cdd4dd;
  border-radius: 8px;
  background: #fff;
  color: var(--chart-text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.chart-page .ox-thick-row input::placeholder { color: #617183; }
.chart-page .ox-unit-picker {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2px;
  padding: 2px;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  background: #eef1f5;
}
.chart-page .ox-unit-picker button {
  min-width: 34px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--chart-muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.chart-page .ox-unit-picker button:not([aria-pressed="true"]):hover { background: #e1e6ec; }
.chart-page .ox-unit-picker button[aria-pressed="true"] {
  border-color: var(--chart-selected-border);
  background: var(--chart-selected-bg);
  color: var(--chart-selected-text);
  box-shadow: 0 1px 2px #0b0f1412;
}
.chart-page .ox-results { overflow: hidden; }
.chart-page .ox-result-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px 13px; }
.chart-page .ox-model-meta { margin-top: 5px; color: var(--chart-muted); font-size: .8rem; }
.chart-page .ox-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  color: #34465a;
  font-size: .8rem;
  font-weight: 650;
}
.chart-page .ox-text-link:hover { background: var(--chart-match); }
.chart-page .ox-message {
  margin: 0 18px 13px;
  padding: 9px 11px;
  border-left: 3px solid #788899;
  border-radius: 0 5px 5px 0;
  background: #f1f4f7;
  color: #3d4c5d;
  font-size: .86rem;
  overflow-wrap: anywhere;
}
.chart-page .ox-message[data-state="match"] { background: var(--chart-match); color: var(--chart-selected-text); border-color: var(--chart-selected-border); }
.chart-page .ox-message[data-state="gap"] { background: #f8eed8; color: #694813; border-color: #a77720; }
.chart-page .ox-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.chart-page .ox-table :is(th,td) { padding: 8px 9px; text-align: left; overflow-wrap: anywhere; }
.chart-page .ox-table :is(th,td):first-child { padding-inline-start: 18px; }
.chart-page .ox-table thead { background: #17202b; color: #f8fafc; font-size: .8rem; }
.chart-page .ox-table th { font-weight: 650; line-height: 1.25; }
.chart-page .ox-table td { border-bottom: 1px solid #e8ecf0; font-size: .86rem; font-variant-numeric: tabular-nums; }
.chart-page .ox-table tbody tr:nth-child(even) { background: #f7f8fa; }
.chart-page .ox-table tbody tr[data-match] { background: var(--chart-match); color: var(--chart-selected-text); font-weight: 750; }
.chart-page .ox-table tbody tr[data-match] td:first-child { box-shadow: inset 3px 0 var(--chart-selected-border); }
.chart-page .ox-table td:first-child { font-weight: 700; }
.chart-page .ox-subnote { padding: 10px 18px; color: var(--chart-muted); font-size: .8rem; }
.chart-page .ox-support { display: grid; gap: 10px; margin-top: 16px; }
.chart-page .ox-support summary { list-style: none; cursor: pointer; }
.chart-page .ox-support summary::-webkit-details-marker { display: none; }
.chart-page .ox-disclosure-trigger {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid #dde3ea;
  border-radius: 11px;
  background: #f8fafc;
  color: #263648;
  font-size: .86rem;
  font-weight: 680;
}
.chart-page .ox-disclosure-trigger:hover { background: #eef2f6; border-color: #c6d0da; }
.chart-page .ox-disclosure-icon {
  display: grid;
  flex: none;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #edf1f5;
  color: #4d5e70;
  font-weight: 750;
}
.chart-page .ox-icon-grid { grid-template-columns: repeat(2,4px); grid-auto-rows: 4px; gap: 2px; }
.chart-page .ox-icon-grid span { background: currentColor; border-radius: 1px; }
.chart-page .ox-disclosure-toggle { position: relative; flex: none; margin-inline-start: auto; width: 24px; height: 24px; }
.chart-page .ox-disclosure-toggle::before, .chart-page .ox-disclosure-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%,-50%);
}
.chart-page .ox-disclosure-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.chart-page details[open] > summary .ox-disclosure-toggle::after { visibility: hidden; }
.chart-page :is(.ox-index-grid,.ox-faq) {
  margin-top: 8px;
  padding-inline: 14px;
  border: 1px solid var(--chart-line);
  border-radius: 11px;
  background: var(--chart-panel);
}
.chart-page .ox-model-group { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; align-items: start; padding-block: 11px; }
.chart-page .ox-model-group + .ox-model-group, .chart-page .ox-faq details + details { border-top: 1px solid #e8ecf0; }
.chart-page .ox-model-group h3 { padding-top: 8px; color: #526171; font-size: .82rem; font-weight: 680; }
.chart-page .ox-model-buttons { display: grid; grid-template-columns: repeat(auto-fill,minmax(73px,1fr)); gap: 6px; }
.chart-page .ox-sku {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid #dce2e8;
  border-radius: 7px;
  background: #f8f9fb;
  font-size: .77rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-page .ox-sku:not([aria-current="true"]):hover { border-color: #b8c5d2; background: #eef2f6; }
.chart-page .ox-sku[aria-current="true"] {
  border-color: var(--chart-selected-border);
  background: var(--chart-selected-bg);
  color: var(--chart-selected-text);
}
.chart-page .ox-sku[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 5px;
  width: 7px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}
.chart-page .ox-faq summary { display: flex; gap: 8px; align-items: center; min-height: 44px; padding-block: 8px; color: #263648; font-size: .86rem; font-weight: 650; }
.chart-page .ox-faq summary:hover { color: #344d65; }
.chart-page .ox-faq p { padding: 0 32px 11px 0; color: var(--chart-muted); font-size: .86rem; }
.chart-page .ox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 17px;
  padding: 16px 18px;
  border-radius: 9px;
  background: #17202b;
  color: #fffbf4;
}
.chart-page .ox-footer p { margin-top: 4px; color: #dbe2ea; font-size: .8rem; }
.chart-page .ox-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding: 7px 15px;
  border-radius: 8px;
  background: #ff9a45;
  color: #321905;
  font-size: .86rem;
  font-weight: 680;
}
.chart-page .ox-button:hover { background: #ffb36f; }

@media (max-width: 640px) {
  .chart-page .ox-hero { padding: 136px 0 24px; }
  .chart-page :is(.ox-hero-grid,.ox-workspace) { grid-template-columns: minmax(0,1fr); }
  .chart-page .ox-photo { height: 146px; }
  .chart-page .ox-photo img { width: min(85%,174px); }
}
@media (max-width: 540px) {
  .chart-page .ox-model-group { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .chart-page .ox-model-group h3 { padding-top: 0; }
  .chart-page .ox-sku { min-height: 44px; }
  .chart-page .ox-footer { flex-direction: column; align-items: start; }
}
@media (max-width: 380px) {
  .chart-page :is(.ox-hero-grid,.ox-body) { padding-inline: 16px; }
  .chart-page .ox-result-top { flex-direction: column; align-items: start; }
  .chart-page .ox-table :is(td,th) { padding-inline: 6px; }
  .chart-page .ox-table :is(td,th):first-child { padding-inline-start: 9px; }
}
@media (pointer: coarse) {
  .chart-page .ox-unit-picker button { min-width: 44px; }
  .chart-page :is(.ox-unit-picker button,.ox-sku,.ox-text-link) { min-height: 44px; }
}
