.hp-panel {
    --hp-text: var(--hermes-text, var(--hermes-ink, #e8e9ed));
    --hp-muted: var(--hermes-muted, var(--hermes-muted-ink, #9298a5));
    --hp-border: var(--hermes-border, var(--hermes-line, #343842));
    --hp-bg: var(--hermes-panel, var(--hermes-paper, #1d2028));
    --hp-accent: var(--hermes-accent, #9ee0bd);
    color: var(--hp-text); font-size: 14px; line-height: 1.55; min-width: 0;
}
.hp-panel * { box-sizing: border-box; }
.hp-panel p { margin: 0 0 12px; color: var(--hp-muted); }
.hp-panel h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.hp-panel a, .hp-link { color: var(--hp-text); text-decoration: underline; text-underline-offset: 3px; }
.hp-panel button, .hp-panel input { font: inherit; }
.hp-panel button { cursor: pointer; }
.hp-panel button:disabled { cursor: default; opacity: .5; }
.hp-panel button:focus-visible, .hp-panel input:focus-visible, .hp-panel summary:focus-visible, .hp-panel a:focus-visible {
    outline: 2px solid var(--hp-accent); outline-offset: 3px;
}
.hp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 10px; margin: 8px 0 20px; }
.hp-option {
    display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; color: var(--hp-text);
    border: 1px solid var(--hp-border); border-radius: 12px; background: transparent; padding: 18px;
    transition: border-color .15s, background .15s;
}
.hp-option--selected { border-color: var(--hp-accent); background: color-mix(in srgb, var(--hp-accent) 7%, transparent); }
.hp-option:hover:not(:disabled) { border-color: var(--hp-accent); }
.hp-option strong { font-size: 16px; font-weight: 600; }
.hp-price { font-size: 24px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.hp-option__terms { color: var(--hp-muted); font-size: 12px; }
.hp-product { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--hp-border); border-radius: 12px; }
.hp-product > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-product p { margin: 10px 0 0; }
.hp-field { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 16px; color: var(--hp-text); font-weight: 500; }
.hp-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--hp-border); border-radius: 8px; background: transparent; color: var(--hp-text); min-height: 46px; }
.hp-panel .hp-start { margin-top: -8px; }
.hp-button {
    display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 8px; padding: 10px 17px;
    border: 1px solid transparent; border-radius: 8px; color: #17241e; background: var(--hp-accent); font-weight: 600; text-decoration: none;
}
.hp-panel a.hp-button { color: #17241e; text-decoration: none; }
.hp-button--wide { width: 100%; }
.hp-button--secondary { color: var(--hp-text); background: transparent; border-color: var(--hp-border); }
.hp-panel .hp-legal { font-size: 12px; margin: 12px 0; line-height: 1.7; }
.hp-support { font-size: 12px; padding-top: 24px; margin-bottom: 0 !important; }
.hp-support a { color: var(--hp-muted); }
.hp-link { border: 0; background: transparent; padding: 8px 0; }
.hp-notice { padding: 13px 16px; border: 1px solid var(--hp-border); border-radius: 10px; margin-bottom: 16px !important; background: color-mix(in srgb, var(--hp-text) 3%, transparent); }
.hp-notice p:last-child { margin-bottom: 0; }
.hp-notice--warning { border-color: #a1814c; color: var(--hp-text); }
.hp-order { padding: 24px; border: 1px solid var(--hp-border); border-radius: 12px; margin: 8px 0 20px; }
.hp-order__status { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hp-state-icon { display: inline-flex; flex: 0 0 32px; justify-content: center; align-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--hp-accent) 12%, transparent); color: var(--hp-accent); font-size: 20px; }
.hp-state-icon--warning { color: #d8b16d; background: #a1814c20; }
.hp-state-icon--muted { color: var(--hp-muted); background: color-mix(in srgb, var(--hp-muted) 12%, transparent); }
.hp-state-icon--pending { border: 2px solid var(--hp-border); border-top-color: var(--hp-accent); background: transparent; animation: hp-spin 1.2s linear infinite; }
.hp-panel .hp-order__summary { color: var(--hp-text); font-size: 16px; margin-bottom: 8px; }
.hp-order__summary > span { color: var(--hp-muted); padding: 0 3px; }
.hp-details { font-size: 12px; color: var(--hp-muted); }
.hp-details summary { cursor: pointer; width: fit-content; padding: 6px 0; }
.hp-details p { margin: 8px 0 0; font-size: 13px; }
.hp-details dl { margin: 6px 0 0; }
.hp-details dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.hp-details dt { font-weight: 400; }
.hp-details dd { margin: 0; color: var(--hp-text); }
.hp-order code { font-size: 11px; overflow-wrap: anywhere; }
.hp-order__details { margin-top: 12px; }
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hp-actions:has(> *) { margin-top: 16px; }
.hp-back { font-size: 13px !important; }
.hp-history { border-top: 1px solid var(--hp-border); margin-top: 24px; padding-top: 16px; }
.hp-history summary { cursor: pointer; font-weight: 500; min-height: 36px; padding: 4px 0; }
.hp-history summary span { color: var(--hp-muted); font-weight: 400; margin-left: 8px; }
.hp-history__row { display: flex; gap: 16px; justify-content: space-between; align-items: center; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hp-border); color: var(--hp-text); text-align: left; padding: 14px 0; }
.hp-history__row strong { display: block; font-size: 13px; font-weight: 500; }
.hp-history__row small { display: block; color: var(--hp-muted); font-size: 12px; }
.hp-history__row > span:last-child { white-space: nowrap; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hp-state-icon--pending { animation: none; } }
@media (max-width: 480px) {
    .hp-options { grid-template-columns: 1fr; }
    .hp-option { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; }
    .hp-option .hp-price { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .hp-option__terms { grid-column: 1; }
    .hp-product, .hp-order { padding: 18px; }
    .hp-product > div { align-items: flex-start; }
    .hp-product h3 { font-size: 18px; }
    .hp-product p { font-size: 13px; }
    .hp-order h3 { font-size: 18px; }
    .hp-actions .hp-button { width: 100%; }
}
