/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--surface-panel);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--surface-elev); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.primary {
  background: var(--brand-orange);
  color: var(--brand-orange-on);
  border-color: transparent;
}
.btn.primary:hover { background: var(--brand-orange-hover); }

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-default);
}
.btn.ghost:hover { background: var(--surface-elev); }

.btn.danger {
  background: transparent;
  color: var(--status-danger);
  border-color: var(--status-danger);
}
.btn.danger:hover { background: var(--status-danger-soft); }

.btn.sm { padding: 5px 11px; font-size: var(--text-tiny); }

.btn.block { width: 100%; }

/* ─── Forms ──────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.field label {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--text-strong);
}
.field input,
.field select,
.field textarea {
  padding: 10px var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  background: var(--surface-panel);
  color: var(--text-default);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-focus);
}

/* ─── Flash messages ─────────────────────────────────────── */
.flash {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-4);
  font-size: var(--text-small);
}
.flash.error    { background: var(--status-danger-soft); border-color: var(--status-danger); color: var(--text-strong); }
.flash.success  { background: var(--status-success-soft); border-color: var(--status-success); color: var(--text-strong); }
.flash.info     { background: var(--brand-blue-soft); border-color: var(--brand-blue); color: var(--text-strong); }

/* ─── Status pill ────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: var(--text-tiny);
  font-weight: 700;
  padding: 3px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-elev);
  color: var(--text-muted);
}
.status-pill.success { background: var(--status-success-soft); color: var(--status-success); }
.status-pill.danger  { background: var(--status-danger-soft);  color: var(--status-danger); }

/* ─── Top header ─────────────────────────────────────────── */
.hz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: var(--surface-panel);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}
.hz-top__brand img { height: 28px; display: block; }
.hz-top__nav { display: flex; gap: var(--space-4); align-items: center; }
.hz-top__nav a {
  color: var(--text-default);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 700;
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
}
.hz-top__nav a:hover { background: var(--surface-elev); }
.hz-top__nav a.active { background: var(--brand-orange-soft); color: var(--brand-orange-hover); }
.hz-top__profile { position: relative; }
.hz-top__profile-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--text-small); font-weight: 700;
  color: var(--text-default);
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
}
.hz-top__profile-btn:hover { background: var(--surface-elev); }

/* ─── Main container ─────────────────────────────────────── */
.hz-main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-12);
}

.hz-page-head { margin-bottom: var(--space-8); }
.hz-page-head__eyebrow {
  font-size: var(--text-tiny);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}
.hz-page-head__title {
  font-size: var(--text-display);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-2);
}
.hz-page-head__sub {
  color: var(--text-muted);
  margin: 0;
}
