.pk-page { padding-top: 40px; padding-bottom: 72px; }
.pk-narrow { max-width: 760px; }
.pk-mid { max-width: 980px; }

.pk-hero { padding-top: 56px; padding-bottom: 8px; }
.pk-hero .lead { max-width: 760px; margin-top: 16px; color: var(--mist-2); }

.pk-reggrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: start; }
@media (max-width: 900px) { .pk-reggrid { grid-template-columns: 1fr; gap: 24px; } }

.pk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: pk; }
.pk-step { border: 2px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--night-2); }
.pk-step::before { counter-increment: pk; content: counter(pk); display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--brass); color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.pk-step strong { display: block; font-size: 17px; margin-bottom: 6px; }
.pk-step p { margin: 0; font-size: 14px; color: var(--mist-2); }

.pk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.pk-tab { padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--r); color: var(--mist-2); font-weight: 600; font-size: 15px; }
.pk-tab:hover { border-color: var(--line-2); color: var(--cream); }
.pk-tab.is-on { border-color: var(--brass); background: rgba(201, 162, 39, .14); color: var(--cream); }
.pk-tab .pk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e2604a; margin-left: 6px; vertical-align: 2px; }
.pk-tab .pk-ok { color: #7fc48d; margin-left: 6px; }

.pk-top { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.pk-top .pk-user { font-size: 14px; color: var(--mist); text-align: right; }
.pk-top .pk-user form { display: inline; }
.pk-linkbtn { background: none; border: 0; padding: 0; color: var(--brass); font: inherit; cursor: pointer; }
.pk-linkbtn:hover { color: var(--brass-lite); }

.pk-card { border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--night-2); padding: 26px; margin-bottom: 18px; }
.pk-card > h2, .pk-card > h3 { font-size: 21px; margin: 0 0 6px; }
.pk-card > .pk-sub { font-size: 14px; color: var(--mist); margin: 0 0 18px; }

.pk-form { display: flex; flex-direction: column; gap: 16px; }
.pk-field { display: flex; flex-direction: column; gap: 7px; }
.pk-label { font-size: 15px; font-weight: 600; color: var(--cream); }
.pk-req::after { content: " *"; color: #e2604a; }
.pk-hint { font-size: 13px; color: var(--mist); line-height: 1.45; }
.pk-err { font-size: 13px; color: #f6a796; }
.pk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.input.pk-sm { padding-top: 10px; padding-bottom: 10px; }
textarea.input { min-height: 110px; resize: vertical; font-family: inherit; }
select.input { appearance: auto; }

.pk-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; }
.pk-checks-h { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: var(--cream); }
.pk-checks-h:first-child { margin-top: 0; }
.pk-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; color: var(--mist-2); cursor: pointer; line-height: 1.4; }
.pk-check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--brass); flex: none; cursor: pointer; }
.pk-check:hover { color: var(--cream); }

.pk-segs { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-seg { position: relative; }
.pk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pk-seg span { display: inline-block; padding: 10px 18px; border: 2px solid var(--line); border-radius: var(--r); color: var(--mist-2);
  font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pk-seg span:hover { border-color: var(--line-2); color: var(--cream); }
.pk-seg input:checked + span { border-color: var(--brass); background: rgba(201, 162, 39, .16); color: var(--cream); }
.pk-seg input:disabled + span { opacity: .45; cursor: not-allowed; border-color: var(--line); color: var(--mist); }
.pk-seg input:focus-visible + span { outline: 2px solid var(--brass-lite); outline-offset: 2px; }

.pk-opf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pk-opf .pk-seg span { display: block; height: 100%; }

.pk-alert { border: 2px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--mist-2); margin-bottom: 16px; }
.pk-alert strong { color: var(--cream); }
.pk-alert p:last-child, .pk-alert ul:last-child { margin-bottom: 0; }
.pk-alert ul { list-style: disc; padding-left: 20px; margin: 6px 0 0; }
.pk-alert.is-info { border-color: var(--brass); background: rgba(201, 162, 39, .09); }
.pk-alert.is-ok { border-color: #4f9a5f; background: rgba(79, 154, 95, .14); color: #cfe8d4; }
.pk-alert.is-error { border-color: #e2604a; background: rgba(226, 96, 74, .14); color: #f6cfc6; }
.pk-alert.is-warn { border-color: #d9a441; background: rgba(217, 164, 65, .12); }

.pk-consent { display: flex; flex-direction: column; gap: 4px; }
.pk-consent .pk-check { font-size: 14px; }

.pk-code { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 700; max-width: 260px; }

.pk-progress { height: 8px; border-radius: 4px; background: var(--night-3); overflow: hidden; margin: 8px 0 4px; }
.pk-progress i { display: block; height: 100%; background: var(--brass); }

.pk-edu { border: 2px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; position: relative; }
.pk-edu + .pk-edu { margin-top: 12px; }
.pk-edu-del { position: absolute; top: 10px; right: 12px; }

.pk-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.pk-mode { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pk-search { margin-bottom: 14px; }
.pk-grp { border-top: 2px solid var(--line); }
.pk-grp > summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 17px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.pk-grp > summary::-webkit-details-marker { display: none; }
.pk-grp > summary .ico { width: 18px; height: 18px; transition: transform .2s; color: var(--mist); }
.pk-grp[open] > summary .ico { transform: rotate(180deg); }
.pk-grp > summary .pk-cnt { font-size: 13px; font-weight: 600; color: var(--brass); }
.pk-items { padding: 0 0 12px; }
.pk-item { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.pk-item:last-child { border-bottom: 0; }
.pk-item-top { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.pk-item-top input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--brass); flex: none; }
.pk-item-body { display: grid; grid-template-columns: minmax(130px, 200px) minmax(130px, 180px) 1fr; gap: 10px; align-items: center; margin: 10px 0 0 29px; }
.pk-item-flags { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.pk-item-flags .pk-check { font-size: 13px; padding: 2px 0; }
.pk-item-flags .pk-check input { width: 16px; height: 16px; }
.pk-rec { font-size: 13px; color: var(--wood); margin: 6px 0 0 29px; }
.pk-item.is-off .pk-item-body { display: none; }
.pk-item.is-hidden { display: none; }
.pk-custom .pk-item-body { grid-template-columns: minmax(200px, 1fr) minmax(110px, 150px) minmax(120px, 160px) auto; margin-left: 0; margin-top: 0; }
.pk-sticky { position: sticky; bottom: 0; z-index: 5; background: var(--night); border-top: 2px solid var(--line); padding: 14px 0;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.pk-sticky .pk-count { font-weight: 700; }
textarea.pk-pricetext { min-height: 380px; font-size: 15px; line-height: 1.6; }

.pdoc { background: #fbf8f2; color: #1c2230; border-radius: var(--r-lg); padding: 34px 38px; line-height: 1.5; font-size: 14.5px; }
.pdoc h2, .pdoc h3 { color: #10131a; letter-spacing: 0; }
.pdoc-head { border-bottom: 2px solid #d9d2c3; padding-bottom: 16px; margin-bottom: 8px; }
.pdoc-kicker { font-size: 12px; color: #6b6555; text-transform: uppercase; letter-spacing: .06em; }
.pdoc-title { font-size: 24px; margin: 8px 0 6px; }
.pdoc-who { font-size: 16px; font-weight: 600; }
.pdoc-ver { font-size: 13px; color: #6b6555; margin-top: 4px; }
.pdoc-sec { margin-top: 22px; }
.pdoc-sec h3 { font-size: 16px; margin: 0 0 10px; }
.pdoc table { width: 100%; border-collapse: collapse; }
.pdoc-kv th { text-align: left; font-weight: 500; color: #5d5747; width: 36%; padding: 6px 12px 6px 0; vertical-align: top; border-bottom: 1px solid #e7e1d4; }
.pdoc-kv td { padding: 6px 0; border-bottom: 1px solid #e7e1d4; vertical-align: top; word-break: break-word; }
.pdoc-prices th { text-align: left; font-size: 12.5px; color: #6b6555; font-weight: 600; padding: 6px 10px 6px 0; border-bottom: 2px solid #d9d2c3; }
.pdoc-prices td { padding: 6px 10px 6px 0; border-bottom: 1px solid #e7e1d4; vertical-align: top; }
.pdoc-prices .pdoc-grp td { font-weight: 700; padding-top: 14px; color: #10131a; }
.pdoc-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdoc-note { color: #6b6555; font-size: 13px; }
.pdoc-list { list-style: disc; padding-left: 20px; }
.pdoc-text { margin-top: 14px; padding: 14px 16px; background: #f1ece1; border-radius: var(--r); white-space: normal; }
.pdoc-text-h { font-weight: 700; margin-bottom: 6px; }
.pdoc-statement p { margin: 0; }
.pdoc-sign { border: 2px solid #4f7a5a; border-radius: var(--r); padding: 14px 16px; background: #eef5ef; }
.pdoc-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.pdoc-empty { color: #8a8270; }

.pk-versions { display: grid; gap: 8px; }
.pk-versions a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r); color: var(--cream); }
.pk-versions a:hover { border-color: var(--brass); }

@media (max-width: 760px) {
  .pk-sticky { gap: 8px 12px; padding: 10px 0; }
  .pk-sticky .btn-outline { display: none; }
  .pk-sticky .btn { padding: 11px 18px; font-size: 15px; }
  .pk-sticky > span[style] { display: none; }
  .pk-grid2, .pk-grid3 { grid-template-columns: 1fr; }
  .pk-card { padding: 18px; }
  .pk-item-body { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .pk-item-flags { grid-column: 1 / -1; }
  .pk-custom .pk-item-body { grid-template-columns: 1fr 1fr; }
  .pk-custom .pk-item-body > :first-child { grid-column: 1 / -1; }
  .pk-rec { margin-left: 0; }
  .pdoc { padding: 20px 16px; font-size: 14px; }
  .pdoc-kv th { width: 42%; }
}

@media print {
  .site-header, .topbar, .site-footer, .pk-tabs, .pk-top, .pk-noprint, .mnav, .made-by { display: none !important; }
  body { background: #fff; }
  .pdoc { padding: 0; border-radius: 0; }
}

.pk-tab .pk-cnt { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 999px;
  background: var(--line); color: var(--cream); font-size: 12px; text-align: center; vertical-align: 1px; }
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pk-stat { border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--night-2); }
.pk-stat b { display: block; font-size: 22px; color: var(--cream); }
.pk-stat span { font-size: 13px; color: var(--mist); }
.pk-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); color: var(--mist-2); white-space: nowrap; }
.pk-badge.is-info { border-color: var(--brass); color: var(--cream); background: rgba(201, 162, 39, .12); }
.pk-badge.is-warn { border-color: #d9a441; color: #f1d9a5; background: rgba(217, 164, 65, .12); }
.pk-badge.is-ok { border-color: #4f9a5f; color: #cfe8d4; background: rgba(79, 154, 95, .16); }
.pk-badge.is-off { opacity: .75; }
.pk-list { display: flex; flex-direction: column; gap: 10px; }
.pk-row { border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--night-2);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 18px; align-items: start; }
.pk-row-main strong { color: var(--cream); font-size: 16px; }
.pk-row-meta { font-size: 13px; color: var(--mist); line-height: 1.5; }
.pk-row-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pk-row-note { grid-column: 1 / -1; font-size: 14px; color: var(--mist-2); border-top: 1px dashed var(--line); padding-top: 8px; }
.pk-row-note b { color: var(--cream); }
.pk-reward { font-size: 15px; color: var(--cream); font-weight: 700; }
.pk-add > summary { list-style: none; cursor: pointer; }
.pk-add > summary::-webkit-details-marker { display: none; }
.pk-add[open] > summary { margin-bottom: 16px; }
.pk-add:not([open]) { border: 0; background: none; padding: 0; }
@media (max-width: 760px) {
  .pk-row { grid-template-columns: 1fr; }
  .pk-row-side { text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

.pk-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pk-role { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--mist-2); }
.pk-role:hover { color: var(--cream); border-color: var(--brass); }
.pk-role.is-on { background: rgba(201, 162, 39, .16); border-color: var(--brass); color: var(--cream); font-weight: 600; }
.pk-role.is-add { border-style: dashed; }

.pk-ladder-now { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 20px; flex-wrap: wrap; }
.pk-ladder-now > div:first-child b { display: block; font-size: 30px; color: var(--brass-lite); line-height: 1.1; margin-top: 2px; }
.pk-ladder-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 16px; }
.pk-ladder-step { border: 2px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.pk-ladder-step b { display: block; font-size: 18px; color: var(--cream); }
.pk-ladder-step span { font-size: 13px; color: var(--mist); }
.pk-ladder-step.is-on { border-color: var(--brass); background: rgba(201, 162, 39, .12); }
