.pd-page { padding: 44px 0 32px; }
.pd-heading { margin-bottom: 22px; }
.pd-heading h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 8px; }
.pd-heading p, .pd-panel p, .pd-promo p { color: #4d4d4d; line-height: 1.65; }
.pd-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.pd-tabs a { padding: 9px 15px; border-radius: 4px 4px 0 0; border-bottom: 2px solid transparent; font-weight: 600; }
.pd-tabs a:hover { background: #f3f3f3; }
.pd-tabs [aria-current="page"] { background: #181818; color: #fff; border-bottom-color: var(--accent); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .36fr); align-items: start; gap: 16px; }
.pd-panel, .pd-promo { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; min-width: 0; }
.pd-promo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; border-left: 3px solid var(--accent); }
.pd-promo h2, .pd-panel h2, .pd-records h2 { font-size: 17px; margin-bottom: 6px; }
.pd-sidebar, .pd-form, .pd-records { display: grid; gap: 12px; }
.pd-sidebar .pd-panel, .pd-record { display: grid; gap: 8px; }
.pd-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.pd-form legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
.pd-choices, .pd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-choice { position: relative; cursor: pointer; }
.pd-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pd-choice-body { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 10px; border: 1px solid #333; border-bottom: 2px solid #333; border-radius: 4px; }
.pd-choice svg { width: 21px; height: 21px; }
.pd-icon-dot { fill: var(--accent); stroke: none; }
.pd-choice b { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }
.pd-choice small { grid-column: 2 / -1; color: #4d4d4d; }
.pd-choice input:checked + .pd-choice-body { background: #181818; color: #fff; border-bottom-color: var(--accent); }
.pd-choice input:checked + .pd-choice-body small { color: #eee; }
.pd-choice input:checked + .pd-choice-body .pd-icon-dot { fill: #fff; }
.pd-choice input:focus-visible + .pd-choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.pd-field input, .pd-field select { width: 100%; background: #fff; color: #171717; padding: 7px 9px; border: 1px solid #333; border-radius: 4px; min-height: 36px; font: inherit; font-weight: 400; }
.pd-field[hidden], .pd-alert[hidden] { display: none; }
.pd-check { display: flex; align-items: start; gap: 7px; font-size: 13px; margin: 8px 0; }
.pd-check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; }
.pd-form .button, .pd-panel .button, .pd-records > .button { justify-self: start; }
.pd-form-footer, .pd-record-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-form-footer { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.pd-form-footer strong, .pd-panel .pd-balance { color: #171717; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.button.pd-primary { background: #bd202b; color: #fff; border-color: #bd202b; }
.button.pd-primary:hover:not(:disabled) { background: #9d1520; border-color: #9d1520; }
.pd-alert { padding: 8px 10px; border-left: 2px solid var(--accent); background: #fff4f4; color: #ab1a24 !important; overflow-wrap: anywhere; }
.pd-wallet { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: 20px; margin-bottom: 18px; }
.pd-wallet .button { margin: 8px 5px 0 0; }
.pd-record p { overflow-wrap: anywhere; }
.pd-record p a { text-decoration: underline; color: #171717; }
.pd-record-head strong { margin-left: auto; }
.pd-record-head span { color: #4d4d4d; background: #f2f2f2; border-radius: 3px; padding: 2px 6px; }
.pd-action { border-top: 1px solid var(--line); padding-top: 10px; }
.pd-support { margin-top: 16px; }
.pd-support .button { margin-top: 8px; }
@media (max-width: 760px) {
    .pd-page { padding-top: 26px; }
    .pd-grid, .pd-wallet { grid-template-columns: minmax(0, 1fr); }
    .pd-panel, .pd-promo { padding: 13px; }
    #app[data-mode="paid-download"] .help-dock { display: none; }
}
@media (max-width: 420px) {
    .pd-choice-body { grid-template-columns: 19px minmax(0, 1fr); padding: 7px; gap: 3px 5px; }
    .pd-choice b { grid-column: 2; grid-row: auto; }
    .pd-choice small { grid-column: 1 / -1; min-height: 2.8em; }
    .pd-tabs a { padding: 8px 10px; }
}
