.pc { padding-block: 40px 100px; }
.pc-intro { max-width: 700px; margin-bottom: 36px; }
.pc-intro h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.07; letter-spacing: -1.8px; margin: 14px 0 20px; }
.pc-intro>p:last-child { color: var(--muted); font-size: 17px; }
.pc-shell { background: #fff; border: 1px solid #e3e3e7; border-radius: 24px; padding: clamp(20px, 3vw, 44px); }
.pc [hidden] { display: none !important; }
.pc button { border: 0; background: none; font: inherit; }
.pc-selectors { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.pc-select-field { min-width: 0; }
.pc-select-field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; color: var(--ink); }
.pc-select-field select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--paper); color: var(--ink); text-overflow: ellipsis; cursor: pointer; }
.pc-select-field select:disabled { cursor: default; opacity: .6; }
.pc-select-field select:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
html[data-theme="dark"] .pc-select-field select { background-color: #22252c; border-color: #484e59; color: var(--ink); color-scheme: dark; }
.pc-toolbar { display: flex; justify-content: space-between; gap: 16px; min-height: 52px; align-items: center; }
.pc-toolbar button { font-size: 12px; min-height: 44px; padding-inline: 0; }
.pc-reset { margin-left: auto; color: #6e6e73; text-decoration: underline; text-underline-offset: 4px; }
.pc-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 0 0; }
.pc-selection-heading>p { font-size: 12px; color: var(--muted); }
.pc-search { width: min(260px, 100%); }
.pc-search input { width: 100%; min-height: 46px; border: 1px solid #d9d9df; border-radius: 10px; background: #f8f8fa; padding: 10px 14px; color: #1d1d1f; }
.pc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pc .pc-more { display: block; min-height: 44px; margin: 24px auto 0; color: var(--red); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.pc-status { color: #6e6e73; font-size: 13px; padding-top: 18px; }
.pc-status:empty { display: none; }
.pc-vehicle-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 4px 0 32px; }
.pc-vehicle-make { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #6e6e73; }
.pc-vehicle-header h3 { font-size: clamp(25px, 3.4vw, 42px); letter-spacing: -1.2px; line-height: 1.15; margin-top: 9px; }
.pc-vehicle-generation { color: #6e6e73; font-size: 13px; margin-top: 8px; }
.pc-stage-switch { display: flex; flex-shrink: 0; padding: 4px; gap: 3px; background: #f0f0f3; border-radius: 12px; }
.pc-stage-switch button { min-height: 40px; padding: 9px 20px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.pc-stage-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 5px #00000012; }
.pc-performance { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 30px; align-items: start; }
.pc-chart-panel { min-width: 0; background: #17191c; border-radius: 18px; padding: 24px 20px; color: #f5f5f7; }
.pc-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 6px; }
.pc-chart-heading h4 { font-size: 14px; margin: 0; font-weight: 500; }
.pc-chart-heading span { font-size: 11px; color: #c7c7ce; }
.pc-chart { margin-top: 22px; }
.pc-chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.pc-chart text { font-family: inherit; fill: #c7c7ce; font-size: 11px; }
.pc-chart .pc-grid-line { stroke: #ffffff17; stroke-width: 1; }
.pc-chart .pc-crosshair { stroke: #ffffff88; stroke-width: 1; stroke-dasharray: 4 4; }
.pc-chart-empty { min-height: 220px; display: grid; place-items: center; text-align: center; padding: 30px; color: #c7c7ce; font-size: 14px; }
.pc-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 20px 6px; font-size: 11px; color: #d9d9df; }
.pc-legend span { display: flex; align-items: center; gap: 8px; }
.pc-legend i { width: 19px; height: 3px; flex-shrink: 0; }
.pc-stock-power { background: #a1a7b0; }
.pc-tuned-power { background: #ff7566; }
.pc-stock-torque { background: #8aafc0; }
.pc-tuned-torque { background: #5fd0ac; }
.pc-rpm-control { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; font-size: 11px; color: #c7c7ce; }
.pc-rpm-control input { width: 100%; accent-color: #ff7566; min-height: 32px; }
.pc-chart-values { display: block; min-height: 60px; padding: 12px 6px 0; font-size: 11px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.pc-chart-panel figcaption { font-size: 11px; line-height: 1.7; color: #b0b0b9; border-top: 1px solid #ffffff1c; margin: 16px 6px 0; padding-top: 16px; }
.pc-gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-gain { padding: 21px 18px; background: #f5f5f7; border-radius: 14px; }
.pc-gain h4 { margin: 0 0 16px; font-size: 12px; font-weight: 500; color: #6e6e73; }
.pc-gain-value { font-size: clamp(25px, 3vw, 38px); line-height: 1.1; letter-spacing: -1px; font-weight: 600; white-space: nowrap; }
.pc-gain-value small { font-size: 13px; letter-spacing: 0; font-weight: 500; }
.pc-gain-delta { color: #267656; font-size: 13px; font-weight: 600; margin-top: 10px; }
.pc-gain-stock { color: #6e6e73; font-size: 11px; margin-top: 4px; }
.pc-facts-heading { margin: 26px 0 4px; font-size: 14px; font-weight: 600; }
.pc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.pc-facts>div { padding-block: 14px; border-bottom: 1px solid #e5e5e9; min-width: 0; }
.pc-facts dt { font-size: 11px; color: #6e6e73; }
.pc-facts dd { font-size: 13px; line-height: 1.5; margin: 4px 0 0; overflow-wrap: anywhere; }
.pc-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid #e5e5e9; }
.pc-detail-footer p { max-width: 440px; color: #6e6e73; font-size: 13px; }
.pc-detail-footer .button { flex-shrink: 0; }
@media (max-width: 1150px) { .pc-selectors { grid-template-columns: repeat(3,minmax(0,1fr)); } .pc-performance { grid-template-columns: 1fr; } .pc-chart { max-width: 760px; margin-inline: auto; } }
@media (max-width: 699px) {
  .pc { padding-block: 20px 60px; }
  .pc-shell { border-radius: 18px; padding: 18px; }
  .pc-selectors { grid-template-columns: 1fr; gap: 16px; }
  .pc-select-field select,.pc-search input { font-size: 16px; }
  .pc-selection-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .pc-search { width: 100%; }
  .pc-vehicle-header { flex-direction: column; align-items: stretch; }
  .pc-stage-switch { align-self: flex-start; }
  .pc-chart-panel { padding: 20px 12px; margin-inline: -6px; }
  .pc-legend { font-size: 10px; gap: 10px; }
  .pc-detail-footer { flex-direction: column; align-items: stretch; }
  .pc-gain { padding: 18px 14px; }
  .pc-gain-value { font-size: 28px; }
}
