/* Page title and lead follow the compact, left-aligned guide layout. */
.pk-helper-page .page-title {
    max-width: 744px;
    margin: 0 auto 10px;
    text-align: start;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}
.pk-helper-shell { max-width: 744px; margin: 0 auto 48px; }
.pk-helper-intro { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.pk-helper {
    --helper-accent: var(--pk-gold, #edb300);
    --helper-ink: #262624;
    --helper-surface: #f7f7f6;
    --helper-bubble: #fff;
    --helper-line: #e4e4e3;
    --helper-muted: #646464;
    overflow: hidden;
    color: var(--helper-ink);
    background: var(--helper-surface);
    border: 1px solid var(--helper-line);
    border-radius: 20px;
    box-shadow: 0 2px 8px #0000000a;
    font-size: 15px;
    line-height: 1.5;
}
.pk-helper-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 2px solid var(--helper-accent);
    background: var(--helper-bubble);
    color: var(--helper-ink);
}
.pk-helper-brand {
    display: block;
    flex: 0 0 40px;
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    color: #202020;
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
}
.pk-helper-heading { min-width: 0; flex: 1; }
.pk-helper-heading strong { display: block; font-size: 15px; line-height: 1.3; }
.pk-helper-heading small { display: block; margin-top: 3px; color: var(--helper-muted); font-size: 12px; }
.pk-helper-heading small::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline-end: 6px;
    border-radius: 50%;
    background: var(--helper-accent);
}
.pk-helper button, .pk-helper-card-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 15px;
    border: 1px solid #d6d6d4;
    border-radius: 999px;
    background: var(--helper-bubble);
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.pk-helper button:hover { border-color: #262624; background: #262624; color: #fff; }
.pk-helper button:focus-visible, .pk-helper-card-link:focus-visible {
    outline: 2px solid var(--helper-accent);
    outline-offset: 3px;
}
.pk-helper-header [data-reset] {
    flex: none;
    min-height: 30px;
    padding: 6px 12px;
    border-color: var(--helper-line);
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 400;
}
.pk-helper-header [data-reset]:hover { background: var(--helper-ink); color: var(--helper-bubble); border-color: var(--helper-ink); }
.pk-helper .pk-helper-primary, .pk-helper [data-send], .pk-helper-card-link {
    border-color: var(--helper-accent);
    background: var(--helper-accent);
    color: #fff;
    font-weight: 700;
}
.pk-helper .pk-helper-primary:hover, .pk-helper [data-send]:hover, .pk-helper-card-link:hover {
    border-color: #bc8e00;
    background: #bc8e00;
    color: #fff;
}
.pk-helper button:disabled { opacity: .5; cursor: wait; }
.pk-helper-log {
    box-sizing: border-box;
    height: clamp(320px, 48vh, 480px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 18px;
    overflow-wrap: anywhere;
}
.pk-helper-log > .pk-helper-prompt, .pk-helper-log > .pk-helper-question, .pk-helper-reply, .pk-helper-error {
    box-sizing: border-box;
    width: fit-content;
    max-width: 95%;
    margin: 0 0 12px;
    padding: 11px 14px;
    border: 1px solid var(--helper-line);
    border-radius: 15px 15px 15px 4px;
    background: var(--helper-bubble);
}
.pk-helper-log > .pk-helper-question {
    max-width: 84%;
    margin-inline-start: auto;
    border-color: #262624;
    border-radius: 15px 15px 4px 15px;
    background: #262624;
    color: #fff;
}
.pk-helper-log p { margin: 0 0 .8em; }
.pk-helper-log > p { margin-bottom: 12px; }
.pk-helper-log p:last-child { margin-bottom: 0; }
.pk-helper-reply h3 { margin: .8em 0 .4em; font-size: 1em; line-height: 1.4; }
.pk-helper-reply section:first-child h3 { margin-top: 0; }
.pk-helper-rich { margin: 0 0 .8em; white-space: pre-line; }
.pk-helper-rich p:last-child { margin-bottom: 0; }
.pk-helper-rich table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; white-space: normal; }
.pk-helper-rich :is(th,td) { padding: 6px 9px; border: 1px solid var(--helper-line); text-align: start; }
.pk-helper-rich code { white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-helper-reply nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0; font-size: 12px; }
.pk-helper-source-note { font-size: 12px; color: #646464; }
.pk-helper-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.pk-helper-cards > article {
    box-sizing: border-box;
    display: flex;
    flex: 0 1 190px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--helper-accent);
    border-radius: 14px;
    background: var(--helper-bubble);
}
.pk-helper-cards a { display: block; color: inherit; text-decoration: none; }
.pk-helper-cards img { display: block; width: 100%; height: 150px; object-fit: contain; margin: 0 auto 8px; }
.pk-helper-cards strong { display: block; font-size: 14px; line-height: 1.4; }
.pk-helper-cards .price { margin: 0; font-size: 16px; font-weight: 700; }
.pk-helper-cards .price :is(ins, bdi) { font-weight: inherit; }
.pk-helper-cards .pk-helper-card-link { display: flex; margin-top: auto; color: #fff; font-size: 12px; text-align: center; }
.pk-helper-dock { padding: 12px 16px 16px; border-top: 1px solid var(--helper-line); }
.pk-helper-options { display: flex; flex-wrap: wrap; gap: 8px; max-height: 170px; overflow: auto; padding: 3px 2px 6px; }
.pk-helper-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 8px; }
.pk-helper-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    max-height: 120px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--helper-line);
    border-radius: 13px;
    background: var(--helper-bubble);
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}
.pk-helper-send { display: flex; gap: 6px; }
.pk-helper-send button { min-height: 42px; }
.pk-helper [data-status] { grid-column: 1/-1; font-size: 12px; color: #646464; }
.pk-helper [data-status]:empty { display: none; }
.pk-helper [data-status]:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-inline-end: 7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pk-helper-spin 1s linear infinite;
}
.pk-helper-turnstile { max-width: 100%; overflow: auto; }
.pk-helper-turnstile:not(:empty) { margin: 10px 0; }
.pk-helper [hidden] { display: none !important; }
body.tf_darkmode .pk-helper {
    --helper-ink: #eee;
    --helper-surface: #191a1c;
    --helper-bubble: #26272a;
    --helper-line: #404145;
    --helper-muted: #b7b7ba;
}
body.tf_darkmode .pk-helper .pk-helper-source-note, body.tf_darkmode .pk-helper [data-status] { color: #b7b7ba; }
body.tf_darkmode .pk-helper-options button:not(.pk-helper-primary):hover { background: #f1f2f3; color: #17181b; border-color: #f1f2f3; }
@keyframes pk-helper-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
    .pk-helper-page .page-title { font-size: 29px; }
    .pk-helper-header { gap: 9px; padding: 14px; }
    .pk-helper-heading strong { font-size: 14px; }
    .pk-helper-brand { flex-basis: 34px; height: 34px; font-size: 10px; }
    .pk-helper-log { height: min(390px, 48dvh); min-height: 270px; padding: 12px; }
    .pk-helper-dock { padding: 10px 12px 12px; }
    .pk-helper-options button { padding: 7px 11px; font-size: 12px; }
    .pk-helper-options { max-height: 145px; }
    .pk-helper-cards > article { flex-basis: min(190px, 100%); }
    .pk-helper-log > .pk-helper-question { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
    .pk-helper button { transition: none; }
    .pk-helper [data-status]:not(:empty)::before { animation: none; }
}
