#h-panel,.h-home{max-width:720px;margin-left:auto;margin-right:auto;letter-spacing:0}
#h-panel{padding:12px 14px calc(var(--tab) + 24px + var(--safe-b));overflow-wrap:anywhere;min-width:0}
#h-panel h1{font-size:22px;margin:0}#h-panel h2{font-size:16px;margin:0 0 6px}#h-panel h3{font-size:15px;margin:0;min-width:0;overflow-wrap:anywhere}
.h-heading,.h-row-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
#h-panel button,.h-home button{min-height:44px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px 12px;cursor:pointer;max-width:100%;white-space:normal;letter-spacing:0}
#h-panel button:focus-visible,#h-panel select:focus-visible,.h-home button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.h-caption{font-size:12px;color:var(--sub);margin:6px 0;line-height:1.6}
.h-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:8px 0 16px;border-bottom:1px solid var(--line)}
.h-segment{display:flex;grid-column:1/-1;gap:4px;min-width:0}.h-segment button{flex:1;min-width:0}
#h-panel [aria-pressed=true]{background:var(--brand);border-color:var(--ink);font-weight:700}
.h-controls label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--sub);min-width:0}
.h-controls select{width:100%;min-width:0;min-height:44px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px;color:var(--ink);font:inherit}
.h-group{padding:18px 0 0}.h-card{background:#fff;border:1px solid var(--line);border-radius:8px;margin:10px 0;padding:12px;min-width:0}
.h-row-title{justify-content:flex-start;align-items:flex-start}.h-rank{min-width:40px;flex:none;font-weight:700;font-size:14px;color:var(--sub)}
.h-score{font-size:16px;font-weight:700;margin:8px 0}.h-accumulating{font-weight:600;color:var(--sub);margin:8px 0}
.h-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.h-actions button{font-size:12px}
.h-empty{color:var(--sub);padding:12px 0;line-height:1.7}
.h-dialog{position:fixed;z-index:65;inset:12px 12px calc(var(--tab) + 12px + var(--safe-b));width:auto;max-width:680px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 0 0 100vmax #16181d66;padding:18px;overflow-y:auto;overscroll-behavior:contain;line-height:1.7}
.h-dialog[hidden]{display:none}.h-dialog p{font-size:14px}.h-dialog button{margin-right:8px;margin-bottom:6px}
.h-home{padding:6px 12px 0}.h-home button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font-size:13px;background:#fff;border-left:4px solid var(--brand)}
.h-home span{font-size:12px;color:var(--sub)}
