.hp-top{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
.hp-seed{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hp-seed input[type="color"]{width:44px;height:44px;padding:2px;border:1px solid var(--border);border-radius:8px;background:var(--card);cursor:pointer}
.hp-seed input[type="text"]{min-height:44px;width:128px;padding:0 12px;border:1px solid var(--border);border-radius:8px;font-family:var(--font-mono);font-size:15px;font-weight:700}
.hp-btn{min-height:44px;padding:0 14px;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--text);font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.hp-btn:hover{background:var(--bg);border-color:#cbd5e1;text-decoration:none}
.hp-btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.hp-btn-primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.hp-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.hp-tab.is-active{background:var(--primary);color:#fff;border-color:var(--primary)}
.hp-status{min-height:20px;font-size:14px;color:var(--primary);font-weight:600;margin-bottom:10px}
.hp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px}
.hp-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--card)}
.hp-fill{min-height:150px;padding:12px;display:flex;flex-direction:column;justify-content:space-between}
.hp-hex{background:transparent;border:0;padding:0;text-align:left;font-family:var(--font-mono);font-size:18px;font-weight:700;color:inherit;cursor:pointer}
.hp-role{font-size:12px;font-weight:600;opacity:.85}
.hp-info{padding:10px 12px;font-family:var(--font-mono);font-size:12px;color:var(--muted);display:grid;gap:4px;border-top:1px solid var(--border)}
.hp-export{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:16px}
.hp-export-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.hp-code{width:100%;min-height:105px;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-family:var(--font-mono);font-size:12px}
@media (max-width:640px){.hp-top,.hp-seed{flex-direction:column;align-items:stretch}.hp-seed input[type="text"],.hp-btn,.hp-btn-primary{width:100%}.hp-grid{grid-template-columns:1fr}.hp-fill{min-height:96px}}