.hp{min-width:0;margin:28px 0}.hp[hidden]{display:none}.hp-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.hp-head h2{margin:0;font-size:1.35rem}.hp-head h3{margin:0;font-size:1rem}.hp--strip{margin:18px 0}.hp-all{min-height:44px;color:var(--action);align-items:center;font-weight:700;text-decoration:none;display:inline-flex}.hp-all:hover{text-decoration:underline}.hp-add{border-radius:var(--radius-sm);background:var(--action);min-height:44px;color:var(--on-action);font:inherit;cursor:pointer;border:0;justify-content:center;align-items:center;padding:0 18px;font-weight:700;display:inline-flex}.hp-add:hover{background:var(--action-hover)}.hp-add:disabled{opacity:.5;cursor:default}.hp-add[hidden]{display:none}.hp-add--small{margin-top:8px}.hp-btn-ghost{border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--white);min-height:44px;color:var(--ink);font:inherit;cursor:pointer;padding:0 16px;font-weight:700}.hp-note{border-radius:var(--radius-sm);background:var(--paper);color:var(--ink-2);margin:0;padding:12px 14px;font-size:.92rem}.hp-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.hp--strip .hp-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hp-grid:empty{display:none}.hp-thumb{border-radius:var(--radius-sm);background:var(--paper-2);cursor:zoom-in;aspect-ratio:4/3;border:0;width:100%;padding:0;display:block;position:relative;overflow:hidden}.hp-thumb img{object-fit:cover;width:100%;height:100%;transition:transform .2s;display:block}.hp-thumb:hover img{transform:scale(1.03)}.hp-thumb:focus-visible{outline:3px solid var(--action);outline-offset:2px}.hp-kind{color:#fff;background:#101828b8;border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:700;position:absolute;bottom:6px;left:6px}.hp--strip .hp-kind{display:none}.hp-empty{border:1px dashed var(--line-2);border-radius:var(--radius);color:var(--muted);text-align:center;padding:18px}.hp-empty p{margin:0}.hp-empty[hidden]{display:none}.hp-dialog{background:0 0;border:0;width:100%;max-width:min(960px,100vw - 16px);padding:0}.hp-dialog::backdrop{background:#0a0e16d1}.hp-lightbox{max-height:none;overflow:hidden}.hp-lb-body{color:#fff;grid-template-rows:minmax(0,1fr) auto auto;gap:10px;height:calc(100dvh - 16px);display:grid;position:relative}.hp-lightbox figure{grid-template-rows:minmax(0,1fr) auto;gap:8px;min-height:0;margin:0;display:grid}.hp-lightbox img{object-fit:contain;width:100%;height:100%;min-height:0;display:block}.hp-lightbox figcaption{text-align:center;gap:2px;display:grid}.hp-lb-meta{opacity:.8;font-size:.82rem}.hp-lb-caption{overflow-wrap:anywhere;font-size:1rem}.hp-lb-close{color:#fff;cursor:pointer;background:#ffffff24;border:0;border-radius:50%;justify-self:end;width:44px;height:44px;font-size:1.1rem}.hp-lb-nav{justify-content:center;align-items:center;gap:18px;display:flex}.hp-lb-nav button{border-radius:var(--radius-sm);color:#fff;cursor:pointer;background:#ffffff24;border:0;width:52px;height:44px;font-size:1.6rem;line-height:1}.hp-lb-nav button[hidden]{display:none}.hp-lb-caption{max-height:4.5em;overflow:hidden}.hp-lb-delete{border-radius:var(--radius-sm);color:#fff;min-height:44px;font:inherit;cursor:pointer;background:0 0;border:1px solid #fff6;justify-self:center;padding:0 16px}.hp-lb-delete[hidden]{display:none}.hp-upload{max-width:min(560px,100vw - 16px)}.hp-up-body{border-radius:var(--radius);background:var(--white);color:var(--ink);gap:12px;max-height:calc(100dvh - 32px);padding:18px;display:grid;overflow:auto}.hp-up-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.hp-up-head h2{margin:0;font-size:1.15rem}.hp-up-close{background:var(--paper);color:var(--ink)}.hp-hint{border-radius:var(--radius-sm);background:var(--amber-soft);color:var(--amber-ink);margin:0;padding:10px 12px;font-size:.9rem}.hp-pick{border:2px dashed var(--line-2);border-radius:var(--radius-sm);min-height:64px;color:var(--action);text-align:center;cursor:pointer;justify-content:center;align-items:center;padding:10px;font-weight:700;display:flex;position:relative}.hp-pick input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.hp-pick:focus-within{outline:3px solid var(--action);outline-offset:2px}.hp-up-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.hp-up-list:empty{display:none}.hp-up-list li{border-bottom:1px solid var(--line);gap:8px;padding-bottom:12px;display:grid;position:relative}.hp-up-list li:last-child{border-bottom:0;padding-bottom:0}.hp-up-preview{background:var(--paper-2);cursor:zoom-in;border:0;border-radius:10px;width:100%;padding:0;display:block;overflow:hidden}.hp-up-preview.is-open{cursor:zoom-out}.hp-up-thumb{object-fit:cover;width:100%;height:240px;display:block}.hp-up-preview.is-open .hp-up-thumb{object-fit:contain;height:auto;max-height:70dvh}.hp-up-preview--none{min-height:120px;color:var(--muted);cursor:default;place-items:center;padding:12px;font-size:.85rem;display:grid}.hp-up-name{color:var(--muted);overflow-wrap:anywhere;font-size:.76rem}.hp-up-fields{gap:6px;min-width:0;display:grid}.hp-up-fields select,.hp-up-fields input{border:1px solid var(--line-2);width:100%;min-height:44px;font:inherit;background:var(--white);color:var(--ink);border-radius:8px;padding:0 10px}.hp-up-remove{background:var(--white);cursor:pointer;border:0;border-radius:50%;width:44px;height:44px;position:absolute;top:8px;right:8px;box-shadow:0 1px 4px #10182840}.hp-up-msg{min-height:1.2em;color:var(--red-ink);margin:0;font-size:.9rem}.hp-up-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (width<=520px){.hp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hp--strip .hp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hp--strip .hp-grid li:nth-child(n+4){display:none}}.hp-tabs{border-radius:var(--radius-sm);background:var(--paper);gap:4px;width:max-content;max-width:100%;margin:0 0 12px;padding:4px;display:flex}.hp-tabs button{min-height:44px;color:var(--ink-2);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0 16px;font-weight:700}.hp-tabs button[aria-selected=true]{background:var(--white);color:var(--ink);box-shadow:var(--shadow-soft)}.hp-tabs button:focus-visible{outline:3px solid var(--action);outline-offset:1px}[data-hp-panel][hidden]{display:none}.hp-clips-hint{color:var(--muted);margin:0 0 10px;font-size:.9rem}.hp-clips{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;display:grid}.hp-clips:empty{display:none}
