/* Ayukki HPP per menu — v34.8: responsive + theme-aware */
.an-hpp-panel{padding:0!important;margin:0 0 16px!important;overflow:hidden}
.an-hpp-summary{display:flex;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;user-select:none}
.an-hpp-summary::-webkit-details-marker{display:none}
.an-hpp-summary:focus-visible{outline:2px solid var(--brand);outline-offset:-3px;border-radius:18px}
.an-hpp-mark{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:12px;background:#fff1ec;font-size:18px}
.an-hpp-title{display:grid;gap:2px;min-width:0;flex:1}
.an-hpp-title strong{font-size:15px;color:var(--ink)}
.an-hpp-title small{font-size:11px;color:var(--muted)}
.an-hpp-pill{color:#8b3a35;background:#fff0ec;border-radius:30px;padding:5px 9px;font-size:10px;font-weight:800;text-align:center;white-space:nowrap}
.an-hpp-chevron{font-size:22px;transition:transform .15s ease;color:var(--muted)}
.an-hpp-panel[open] .an-hpp-chevron{transform:rotate(180deg)}
.an-hpp-body{padding:0 20px 20px;border-top:1px solid var(--line)}
.an-hpp-note{font-size:12px;line-height:1.7;color:var(--muted);padding:16px 0 11px}
.an-hpp-note b,.an-hpp-history-option b{color:var(--ink)}
.an-hpp-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);gap:12px;margin-bottom:12px}
.an-hpp-tools label{display:grid;gap:5px;font-size:11px;color:var(--muted);font-weight:750}
.an-hpp-tools input,.an-hpp-tools select{width:100%;max-width:none;min-width:0}
.an-hpp-history-option{display:flex;align-items:flex-start;gap:11px;border:1px solid #ecd5cd;background:#fff9f5;border-radius:13px;padding:12px;margin:10px 0 13px;cursor:pointer}
.an-hpp-history-option input{width:17px;height:17px;margin:3px 0 0;flex:0 0 17px;accent-color:var(--brand)}
.an-hpp-history-option span{display:grid;gap:3px}.an-hpp-history-option strong{font-size:12px;color:var(--ink)}
.an-hpp-history-option small{font-size:11px;font-weight:400;line-height:1.6;color:var(--muted)}
.an-hpp-feedback{font-size:12px;color:var(--muted);margin:8px 0;padding:2px 0}.an-hpp-feedback.is-error{color:#bd4141}
.an-hpp-list{display:grid;gap:8px;max-height:510px;overflow:auto;overscroll-behavior:contain;padding-right:3px}
.an-hpp-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,190px) minmax(105px,125px);gap:14px;align-items:center;border:1px solid var(--line);padding:13px;border-radius:13px;background:var(--surface,#fff)}
.an-hpp-name{min-width:0;display:grid;gap:4px}.an-hpp-name strong{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.an-hpp-name small{font-size:10px;color:var(--muted);line-height:1.45}
.an-hpp-missing{color:#ac6a23;font-size:10px;font-weight:700}
.an-hpp-cost{display:grid;gap:5px;font-size:11px;color:var(--muted);font-weight:650}
.an-hpp-cost input{width:100%;min-width:0;max-width:none;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.an-hpp-action .btn{white-space:nowrap;font-size:11px;width:100%;padding:11px 8px}
.an-hpp-foot{font-size:11px;line-height:1.65;color:var(--muted);margin:12px 0 0}
/* Dark mode selectors follow existing Ayukki dark mode body markers */
body.dark .an-hpp-mark,body.dark-mode .an-hpp-mark,[data-theme="dark"] .an-hpp-mark{background:#49302e}
body.dark .an-hpp-pill,body.dark-mode .an-hpp-pill,[data-theme="dark"] .an-hpp-pill{background:#422d32;color:#fac3b4}
body.dark .an-hpp-history-option,body.dark-mode .an-hpp-history-option,[data-theme="dark"] .an-hpp-history-option{background:#222d3c;border-color:#38485c}
body.dark .an-hpp-row,body.dark-mode .an-hpp-row,[data-theme="dark"] .an-hpp-row{background:#1d2938;border-color:#344153}
@media(max-width:700px){.an-hpp-tools{grid-template-columns:1fr}.an-hpp-row{grid-template-columns:minmax(0,1fr) 125px;gap:9px}.an-hpp-name{grid-column:1 / -1}.an-hpp-action .btn{margin-top:16px}}
@media(max-width:450px){.an-hpp-summary{flex-wrap:wrap;padding:13px}.an-hpp-title{flex:1 1 calc(100% - 90px)}.an-hpp-pill{order:3}.an-hpp-body{padding:0 12px 15px}.an-hpp-row{grid-template-columns:minmax(0,1fr) 112px;padding:10px}}
/* Theme marker is set on <html> by Ayukki v28. */
html[data-ay-theme="dark"] .an-hpp-mark{background:#49302e}
html[data-ay-theme="dark"] .an-hpp-pill{background:#422d32;color:#fac3b4}
html[data-ay-theme="dark"] .an-hpp-history-option{background:#222d3c;border-color:#38485c}
html[data-ay-theme="dark"] .an-hpp-row{background:#1d2938;border-color:#344153}
html[data-ay-theme="dark"] .an-hpp-missing{color:#e8bb83}
html[data-ay-theme="dark"] .an-hpp-feedback.is-error{color:#ffb5ac}
