:root {
  --hpp-primary: #1f5e8c;
  --hpp-accent: #2c7a7b;
  --hpp-link: #1f5e8c;
  --hpp-bg: #f7f9fb;
  --hpp-surface: #ffffff;
  --hpp-text: #17212b;
  --hpp-muted: #607080;
  --hpp-border: #d9e0e6;
  --hpp-danger: #9f2d20;
  --hpp-radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--hpp-bg); color: var(--hpp-text); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--hpp-link); }
.boot-shell { padding: 48px; text-align: center; color: var(--hpp-muted); }
.hpp-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hpp-header { height: 58px; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: var(--hpp-surface); border-bottom: 1px solid var(--hpp-border); position: sticky; top: 0; z-index: 20; }
.hpp-brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.hpp-logo-mark { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--hpp-primary), var(--hpp-accent)); }
.hpp-brand-title { font-weight: 700; letter-spacing: .01em; }
.hpp-brand-subtitle { color: var(--hpp-muted); font-size: 11px; }
.hpp-nav { display: flex; gap: 4px; }
.hpp-nav button { border: 0; background: transparent; padding: 8px 12px; border-radius: 6px; color: var(--hpp-muted); }
.hpp-nav button.active { background: color-mix(in srgb, var(--hpp-primary) 10%, transparent); color: var(--hpp-primary); font-weight: 600; }
.hpp-spacer { flex: 1; }
.hpp-user { color: var(--hpp-muted); display: flex; align-items: center; gap: 10px; }
.hpp-main { width: min(1280px, 100%); margin: 0 auto; padding: 24px; flex: 1; }
.hpp-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hpp-toolbar h1 { font-size: 22px; margin: 0; }
.hpp-btn { border: 1px solid var(--hpp-border); background: var(--hpp-surface); padding: 8px 12px; border-radius: 6px; color: var(--hpp-text); }
.hpp-btn.primary { background: var(--hpp-primary); color: white; border-color: var(--hpp-primary); }
.hpp-btn.danger { color: var(--hpp-danger); }
.hpp-panel { background: var(--hpp-surface); border: 1px solid var(--hpp-border); border-radius: var(--hpp-radius); }
.hpp-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 380px; }
.hpp-table { width: 100%; border-collapse: collapse; }
.hpp-table th, .hpp-table td { padding: 10px 12px; border-bottom: 1px solid var(--hpp-border); text-align: left; vertical-align: top; }
.hpp-table th { font-size: 12px; color: var(--hpp-muted); font-weight: 600; background: #fafbfd; }
.hpp-table tr:last-child td { border-bottom: 0; }
.hpp-table tr.selected { background: color-mix(in srgb, var(--hpp-primary) 7%, white); }
.hpp-link-button { border: 0; background: transparent; color: var(--hpp-link); padding: 0; text-align: left; }
.hpp-form { padding: 16px; display: grid; gap: 12px; }
.hpp-form h2 { font-size: 17px; margin: 0 0 4px; }
.hpp-field { display: grid; gap: 5px; }
.hpp-field label { font-size: 12px; font-weight: 600; color: var(--hpp-muted); }
.hpp-field input, .hpp-field textarea, .hpp-field select { width: 100%; min-height: 36px; border: 1px solid var(--hpp-border); border-radius: 6px; background: var(--hpp-surface); color: var(--hpp-text); padding: 7px 9px; }
.hpp-field select[multiple] { min-height: 116px; }
.hpp-field textarea { min-height: 88px; resize: vertical; }
.hpp-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hpp-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.hpp-muted { color: var(--hpp-muted); }
.hpp-error { background: #fff3f2; color: #7d2118; border: 1px solid #efc6c1; border-radius: 6px; padding: 9px 11px; }
.hpp-status { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 11px; background: #eef2f5; color: #415363; }
.hpp-login { width: min(420px, 100%); margin: 8vh auto; padding: 20px; }
.hpp-products-public { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hpp-product-tile { background: var(--hpp-surface); border: 1px solid var(--hpp-border); border-radius: var(--hpp-radius); padding: 16px; min-height: 130px; }
.hpp-product-tile h2 { margin: 0 0 6px; font-size: 17px; }
.hpp-product-tile p { margin: 0; color: var(--hpp-muted); line-height: 1.45; }
.hpp-theme-preview { border: 1px dashed var(--hpp-border); border-radius: 6px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.hpp-theme-preview img { width: 44px; height: 44px; object-fit: contain; }
.hpp-color-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hpp-color-row input[type=color] { padding: 3px; }
@media (max-width: 900px) {
  .hpp-grid { grid-template-columns: 1fr; }
  .hpp-brand-subtitle { display: none; }
  .hpp-brand { min-width: auto; }
  .hpp-main { padding: 16px; }
}
@media (prefers-color-scheme: dark) {
  :root { --hpp-bg:#11171c; --hpp-surface:#192129; --hpp-text:#eef4f8; --hpp-muted:#9aabb8; --hpp-border:#31404b; }
  .hpp-table th { background:#161d23; }
  .hpp-table tr.selected { background: color-mix(in srgb, var(--hpp-primary) 18%, var(--hpp-surface)); }
}
