:root {
  --ptp-bg: #f5f7fb;
  --ptp-card: #ffffff;
  --ptp-text: #172033;
  --ptp-muted: #687187;
  --ptp-border: #dfe4ee;
  --ptp-primary: #1f4fd1;
  --ptp-primary-soft: #edf3ff;
  --ptp-dark: #111827;
  --ptp-success: #168554;
  --ptp-warning: #a86700;
  --ptp-danger: #b42318;
  --ptp-radius: 22px;
}

.ptp-shell,
.ptp-shell * {
  box-sizing: border-box;
}

.ptp-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto;
  color: var(--ptp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.ptp-shell button,
.ptp-shell input,
.ptp-shell select {
  font: inherit;
}

.ptp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 24px;
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, #101827 0%, #1d2e52 100%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(18, 31, 57, .18);
}

.ptp-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

.ptp-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fff;
}

.ptp-hero p {
  max-width: 740px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 17px;
}

.ptp-hero-rule {
  align-self: stretch;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}

.ptp-hero-rule > span {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.12);
}

.ptp-hero-rule svg,
.ptp-time-note svg,
.ptp-choice-icon svg,
.ptp-pin-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ptp-hero-rule strong,
.ptp-hero-rule small {
  display: block;
}

.ptp-hero-rule small {
  margin-top: 5px;
  color: rgba(255,255,255,.68);
}

.ptp-control-card,
.ptp-results {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--ptp-border);
  border-radius: var(--ptp-radius);
  background: var(--ptp-card);
  box-shadow: 0 12px 34px rgba(20, 31, 55, .06);
}

.ptp-control-head,
.ptp-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ptp-control-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ptp-control-head h2,
.ptp-result-head h2,
.ptp-result-section h3 {
  margin: 0;
  color: var(--ptp-text);
}

.ptp-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ptp-primary);
  color: #fff;
  font-weight: 800;
}

.ptp-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ptp-mode-card,
.ptp-choice,
.ptp-brand,
.ptp-platform,
.ptp-scope,
.ptp-model-card,
.ptp-store-card {
  appearance: none;
  border: 1px solid var(--ptp-border);
  background: #fff;
  color: var(--ptp-text);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ptp-mode-card:hover,
.ptp-choice:hover,
.ptp-brand:hover,
.ptp-platform:hover,
.ptp-scope:hover,
.ptp-model-card:hover,
.ptp-store-card:hover {
  transform: translateY(-1px);
  border-color: #b9c6e6;
}

.ptp-mode-card.is-active,
.ptp-choice.is-active,
.ptp-brand.is-active,
.ptp-platform.is-active,
.ptp-scope.is-active,
.ptp-model-card.is-active,
.ptp-store-card.is-active {
  border-color: var(--ptp-primary);
  background: var(--ptp-primary-soft);
  box-shadow: 0 0 0 1px var(--ptp-primary) inset;
}

.ptp-mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  text-align: left;
}

.ptp-mode-card > svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.ptp-mode-card strong,
.ptp-mode-card small,
.ptp-choice strong,
.ptp-choice small,
.ptp-platform strong,
.ptp-platform small,
.ptp-scope strong,
.ptp-scope small {
  display: block;
}

.ptp-mode-card small,
.ptp-choice small,
.ptp-platform small,
.ptp-scope small {
  margin-top: 3px;
  color: var(--ptp-muted);
}

.ptp-period-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.ptp-period-grid label > span,
.ptp-amount > span,
.ptp-login-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ptp-muted);
  font-size: 13px;
  font-weight: 700;
}

.ptp-period-grid input,
.ptp-period-grid select,
.ptp-inline-add input,
.ptp-login-form input,
.ptp-amount input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--ptp-border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ptp-text);
}

.ptp-period-grid input:focus,
.ptp-period-grid select:focus,
.ptp-inline-add input:focus,
.ptp-login-form input:focus,
.ptp-amount input:focus {
  border-color: var(--ptp-primary);
  box-shadow: 0 0 0 3px rgba(31,79,209,.1);
}

.ptp-time-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f3f6fb;
  color: #43506a;
  font-size: 13px;
}

.ptp-time-note svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.ptp-time-note.is-warning {
  background: #fff6e8;
  color: #84530b;
}

.ptp-section-intro {
  margin: -8px 0 22px;
  color: var(--ptp-muted);
}

.ptp-campaign-card {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--ptp-border);
  border-radius: 20px;
  background: #fbfcff;
}

.ptp-campaign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ptp-border);
  background: #fff;
}

.ptp-campaign-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ptp-campaign-number {
  color: var(--ptp-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ptp-remove,
.ptp-link-button {
  border: 0;
  background: transparent;
  color: var(--ptp-danger);
  cursor: pointer;
  font-weight: 800;
}

.ptp-question {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 22px 20px 12px;
}

.ptp-question > span {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #e8eefc;
  color: var(--ptp-primary);
  font-size: 12px;
  font-weight: 900;
}

.ptp-question strong,
.ptp-question small {
  display: block;
}

.ptp-question small {
  margin-top: 2px;
  color: var(--ptp-muted);
}

.ptp-brand-grid,
.ptp-choice-grid,
.ptp-platform-grid,
.ptp-scope-grid,
.ptp-model-grid,
.ptp-store-grid {
  display: grid;
  gap: 10px;
  padding: 0 20px;
}

.ptp-brand-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ptp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
}

.ptp-brand-mark,
.ptp-platform-mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eef1f6;
  color: #26334e;
  font-size: 12px;
  font-weight: 900;
}

.is-active .ptp-brand-mark,
.is-active .ptp-platform-mark {
  background: var(--ptp-primary);
  color: #fff;
}

.ptp-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ptp-choice {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border-radius: 15px;
  text-align: left;
}

.ptp-choice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f0f3f8;
}

.ptp-choice-icon svg {
  width: 21px;
  height: 21px;
}

.ptp-platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ptp-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 15px;
  text-align: left;
}

.ptp-benchmark {
  margin: 10px 20px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f7ff;
  color: #3a4d78;
  font-size: 12px;
}

.ptp-benchmark span {
  color: var(--ptp-muted);
}

.ptp-benchmark.is-missing {
  background: #fff0ef;
  color: #8f2f27;
}

.ptp-scope-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ptp-scope {
  padding: 13px;
  border-radius: 15px;
  text-align: left;
}

.ptp-subsection {
  margin: 16px 20px 0;
  padding: 16px;
  border: 1px dashed #cad3e4;
  border-radius: 16px;
  background: #fff;
}

.ptp-subhead strong,
.ptp-subhead small {
  display: block;
}

.ptp-subhead small {
  margin-top: 2px;
  color: var(--ptp-muted);
  font-size: 12px;
}

.ptp-model-grid,
.ptp-store-grid {
  padding: 12px 0 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ptp-model-card,
.ptp-store-card {
  position: relative;
  min-height: 100px;
  padding: 12px;
  border-radius: 14px;
  text-align: left;
}

.ptp-model-card strong,
.ptp-store-card strong {
  display: block;
  margin-top: 5px;
}

.ptp-vehicle-visual {
  display: block;
  width: 100%;
  height: 48px;
  color: #34445f;
}

.ptp-car-svg {
  width: 96px;
  max-width: 100%;
  height: 44px;
  fill: currentColor;
}

.ptp-store-card {
  min-height: 78px;
}

.ptp-pin-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef2f8;
  color: #465879;
}

.ptp-pin-icon svg {
  width: 18px;
  height: 18px;
}

.ptp-selected-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ptp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ptp-inline-add {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.ptp-inline-add input {
  min-height: 42px;
}

.ptp-inline-add .ptp-link-button {
  color: var(--ptp-primary);
  white-space: nowrap;
}

.ptp-amount {
  display: block;
  margin: 0 20px 24px;
  max-width: 360px;
}

.ptp-amount > div {
  display: flex;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--ptp-border);
  border-radius: 13px;
  background: #fff;
}

.ptp-amount > div:focus-within {
  border-color: var(--ptp-primary);
  box-shadow: 0 0 0 3px rgba(31,79,209,.1);
}

.ptp-amount input {
  border: 0;
  box-shadow: none !important;
}

.ptp-amount em {
  padding: 0 13px;
  color: var(--ptp-muted);
  font-style: normal;
  font-weight: 800;
}

.ptp-primary,
.ptp-secondary {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.ptp-primary {
  border: 1px solid var(--ptp-primary);
  background: var(--ptp-primary);
  color: #fff;
}

.ptp-primary:hover {
  filter: brightness(.96);
}

.ptp-secondary {
  border: 1px solid var(--ptp-border);
  background: #fff;
  color: var(--ptp-text);
}

.ptp-big {
  min-height: 52px;
  padding-inline: 24px;
}

.ptp-action-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 15px 18px;
  border: 1px solid #ced6e5;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 42px rgba(20,31,55,.14);
  backdrop-filter: blur(12px);
}

.ptp-action-bar strong,
.ptp-action-bar span {
  display: block;
}

.ptp-action-bar span {
  margin-top: 2px;
  color: var(--ptp-muted);
  font-size: 12px;
}

.ptp-results {
  scroll-margin-top: 20px;
}

.ptp-result-head .ptp-eyebrow {
  color: var(--ptp-primary);
  opacity: 1;
}

.ptp-risk {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ptp-risk-low {
  background: #e8f7ef;
  color: var(--ptp-success);
}

.ptp-risk-medium {
  background: #fff4df;
  color: var(--ptp-warning);
}

.ptp-risk-high {
  background: #ffebe9;
  color: var(--ptp-danger);
}

.ptp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.ptp-summary-card {
  padding: 17px;
  border: 1px solid var(--ptp-border);
  border-radius: 16px;
  background: #fbfcff;
}

.ptp-summary-card small,
.ptp-summary-card strong,
.ptp-summary-card span {
  display: block;
}

.ptp-summary-card small,
.ptp-summary-card span {
  color: var(--ptp-muted);
}

.ptp-summary-card strong {
  margin: 4px 0;
  font-size: 22px;
  letter-spacing: -.02em;
}

.ptp-result-section {
  margin-top: 28px;
}

.ptp-result-section h3 {
  margin-bottom: 12px;
}

.ptp-decision-list {
  overflow: hidden;
  border: 1px solid var(--ptp-border);
  border-radius: 16px;
}

.ptp-decision-row {
  display: grid;
  grid-template-columns: 130px minmax(0,1.4fr) minmax(120px,.55fr) minmax(170px,.8fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--ptp-border);
}

.ptp-decision-row:last-child {
  border-bottom: 0;
}

.ptp-decision-visual {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ptp-decision-visual .ptp-car-svg {
  width: 72px;
  height: 34px;
}

.ptp-decision-copy small,
.ptp-decision-copy strong,
.ptp-decision-copy span,
.ptp-decision-money small,
.ptp-decision-money strong,
.ptp-decision-projection strong,
.ptp-decision-projection span {
  display: block;
}

.ptp-decision-copy small,
.ptp-decision-copy span,
.ptp-decision-money small,
.ptp-decision-projection span {
  color: var(--ptp-muted);
  font-size: 12px;
}

.ptp-decision-copy strong,
.ptp-decision-money strong,
.ptp-decision-projection strong {
  margin: 3px 0;
}

.ptp-warning-list {
  display: grid;
  gap: 10px;
}

.ptp-warning {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
}

.ptp-warning > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-weight: 900;
}

.ptp-warning strong,
.ptp-warning p {
  margin: 0;
}

.ptp-warning p {
  margin-top: 3px;
  font-size: 13px;
}

.ptp-warning-high {
  background: #fff0ef;
  color: #8f2f27;
}

.ptp-warning-high > span {
  background: #ffd9d5;
}

.ptp-warning-medium {
  background: #fff6e8;
  color: #815516;
}

.ptp-warning-medium > span {
  background: #ffe5ba;
}

.ptp-warning-info,
.ptp-warning-low {
  background: #edf6ff;
  color: #345d86;
}

.ptp-warning-info > span,
.ptp-warning-low > span {
  background: #d7ebff;
}

.ptp-reading-rule {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
}

.ptp-reading-rule p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.72);
}

.ptp-login-shell {
  display: grid;
  min-height: 65vh;
  place-items: center;
}

.ptp-login-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--ptp-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18,31,57,.12);
}

.ptp-login-card h2 {
  margin: 0 0 8px;
}

.ptp-login-card p {
  margin: 0 0 20px;
  color: var(--ptp-muted);
}

.ptp-login-form {
  display: grid;
  gap: 14px;
}

.ptp-login-form label {
  margin: 0;
}

.ptp-login-form input {
  margin-top: 6px;
}

.ptp-login-error {
  min-height: 20px;
  color: var(--ptp-danger);
  font-size: 13px;
}

@media (max-width: 980px) {
  .ptp-hero { grid-template-columns: 1fr; }
  .ptp-period-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ptp-brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ptp-scope-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ptp-model-grid, .ptp-store-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ptp-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ptp-decision-row { grid-template-columns: 100px 1fr; }
}

@media (max-width: 680px) {
  .ptp-shell { width: min(100% - 18px, 1180px); margin: 12px auto; }
  .ptp-hero, .ptp-control-card, .ptp-results { padding: 20px; border-radius: 18px; }
  .ptp-hero h1 { font-size: 34px; }
  .ptp-control-head, .ptp-result-head { align-items: flex-start; flex-direction: column; }
  .ptp-mode-grid, .ptp-period-grid, .ptp-choice-grid, .ptp-platform-grid, .ptp-brand-grid, .ptp-scope-grid, .ptp-model-grid, .ptp-store-grid, .ptp-summary-grid { grid-template-columns: 1fr; }
  .ptp-brand-grid, .ptp-choice-grid, .ptp-platform-grid, .ptp-scope-grid { padding-inline: 14px; }
  .ptp-question { padding-inline: 14px; }
  .ptp-subsection { margin-inline: 14px; }
  .ptp-benchmark { margin-inline: 14px; }
  .ptp-amount { margin-inline: 14px; }
  .ptp-action-bar { position: static; flex-direction: column; align-items: stretch; }
  .ptp-action-bar .ptp-primary { width: 100%; }
  .ptp-decision-row { grid-template-columns: 1fr; }
  .ptp-decision-visual { display: none; }
  .ptp-inline-add { align-items: stretch; flex-direction: column; }
}
