/* =====================================================================
 * trecker-hp-components.css
 * HP design-system component classes. Loaded globally after tokens.
 * Tokens (--hp-*, --trecker-*) are in trecker-variables.css.
 * ===================================================================== */

/* ---------- Utility -------------------------------------------------- */
.hp-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.hp-mute { color: var(--hp-mute); }

/* ---------- TopBar --------------------------------------------------- */
.hp-topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  /* Break out of EventLayout__Content (24px top, 32px sides) to span full width */
  margin: -24px -32px 0 -32px;
  padding: 22px 32px 18px;
  border-bottom: 1px solid var(--hp-border);
  background: var(--hp-surface);
  position: sticky; top: -24px; z-index: 10;
}
.hp-crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--hp-ink-3); margin-bottom: 6px;
}
.hp-crumbs-back { color: var(--hp-ink-3); text-decoration: none; font-size: 12px; }
.hp-crumbs-back:hover { color: var(--hp-ink); }
.hp-crumbs .is-current { color: var(--hp-ink); font-weight: 500; }
.hp-page-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hp-page-sub   { margin: 4px 0 0; font-size: 13px; color: var(--hp-ink-3); max-width: 60ch; }
.hp-topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons -------------------------------------------------- */
.hp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 9px;
  border: 1px solid transparent; background: transparent;
  color: var(--hp-ink-2); font: 500 13px "Inter";
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  text-decoration: none;
}
.hp-btn--ghost { border-color: var(--hp-border); color: var(--hp-ink); background: var(--hp-surface); }
.hp-btn--ghost:hover { background: var(--hp-surface-2); border-color: var(--hp-border-2); }
.hp-btn--primary {
  background: var(--hp-surface); color: var(--hp-ink);
  border-color: var(--hp-border-2);
  box-shadow: inset 3px 0 0 var(--hp-primary);
  padding-left: 16px;
}
.hp-btn--primary:hover { background: var(--hp-surface-2); border-color: var(--hp-primary); }
.hp-btn--primary svg { color: var(--hp-primary); }
.hp-btn--danger {
  background: var(--hp-danger-soft); color: var(--hp-danger);
  border-color: oklch(from var(--hp-danger) l c h / 0.30);
}
.hp-btn--danger:hover { background: var(--hp-danger); color: var(--trecker-text-inverse); border-color: var(--hp-danger); }
.hp-btn--sm { padding: 5px 9px; font-size: 12px; }
.hp-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.hp-icon-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--hp-ink-2); cursor: pointer; position: relative;
  font-size: 14px;
}
.hp-icon-btn:hover { background: var(--hp-surface-2); border-color: var(--hp-border); color: var(--hp-ink); }
.hp-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---------- Pills ---------------------------------------------------- */
.hp-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.005em;
  white-space: nowrap; border: 1px solid transparent;
}
.hp-pill--sm { font-size: 10.5px; padding: 2px 7px; }
.hp-pill--neutral,
.hp-pill[data-tone="neutral"] { background: var(--hp-surface-2); color: var(--hp-ink-2); border-color: var(--hp-border); }
.hp-pill--success,
.hp-pill[data-tone="success"] { background: var(--hp-success-soft); color: var(--hp-success); }
.hp-pill--warn,
.hp-pill[data-tone="warn"]    { background: var(--hp-warn-soft);    color: var(--hp-warn); }
.hp-pill--danger,
.hp-pill[data-tone="danger"]  { background: var(--hp-danger-soft);  color: var(--hp-danger); }
.hp-pill--primary,
.hp-pill[data-tone="primary"] { background: var(--hp-primary-soft); color: var(--hp-primary-ink); }
.hp-pill--violet,
.hp-pill[data-tone="violet"]  { background: oklch(from oklch(0.60 0.18 295) l c h / 0.18); color: oklch(0.65 0.18 295); border-color: oklch(from oklch(0.60 0.18 295) l c h / 0.30); }
.hp-pill--sky,
.hp-pill[data-tone="sky"]     { background: oklch(from oklch(0.70 0.14 235) l c h / 0.18); color: oklch(0.70 0.14 235); border-color: oklch(from oklch(0.70 0.14 235) l c h / 0.30); }
.hp-pill--amber,
.hp-pill[data-tone="amber"]   { background: oklch(from oklch(0.78 0.16 70) l c h / 0.16);  color: oklch(0.78 0.16 70);  border-color: oklch(from oklch(0.78 0.16 70) l c h / 0.30); }
.hp-pill--lime,
.hp-pill[data-tone="lime"]    { background: oklch(from oklch(0.78 0.18 130) l c h / 0.16); color: oklch(0.78 0.18 130); border-color: oklch(from oklch(0.78 0.18 130) l c h / 0.30); }
.hp-pill--rose,
.hp-pill[data-tone="rose"]    { background: oklch(from oklch(0.70 0.16 15) l c h / 0.18);  color: oklch(0.70 0.16 15);  border-color: oklch(from oklch(0.70 0.16 15) l c h / 0.30); }
.hp-pill--red,
.hp-pill[data-tone="red"]     { background: oklch(from oklch(0.65 0.18 25) l c h / 0.18);  color: oklch(0.65 0.18 25);  border-color: oklch(from oklch(0.65 0.18 25) l c h / 0.30); }

/* ---------- Alert ---------------------------------------------------- */
.hp-alert {
  padding: 11px 15px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.5; border: 1px solid transparent;
}
.hp-alert--success { background: var(--hp-success-soft); color: var(--hp-success); border-color: oklch(from var(--hp-success) l c h / 0.3); }
.hp-alert--danger  { background: var(--hp-danger-soft);  color: var(--hp-danger);  border-color: oklch(from var(--hp-danger) l c h / 0.3); }
.hp-alert--warn    { background: var(--hp-warn-soft);    color: var(--hp-warn);    border-color: oklch(from var(--hp-warn) l c h / 0.3); }

/* ---------- Input ---------------------------------------------------- */
.hp-input {
  width: 100%; font: inherit;
  padding: 9px 11px; border: 1px solid var(--hp-border-2);
  border-radius: 8px; background: var(--hp-surface); color: var(--hp-ink);
  outline: none; transition: border-color 0.15s;
  display: block;
}
.hp-input:focus { border-color: var(--hp-primary); }
textarea.hp-input { resize: vertical; }

/* ---------- Page ----------------------------------------------------- */
.hp-page { display: flex; flex-direction: column; gap: calc(22px * var(--hp-density)); }

/* ---------- Stats ---------------------------------------------------- */
.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hp-stats--5 { grid-template-columns: repeat(5, 1fr); }
.hp-stats--auto { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.hp-stat {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden;
}
.hp-stat-label { font-size: 12px; color: var(--hp-ink-3); font-weight: 500; }
.hp-stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-top: 2px; }
.hp-stat-sub   { font-size: 12px; color: var(--hp-ink-3); }
.hp-stat.is-accent {
  background: linear-gradient(160deg, var(--hp-accent-soft), var(--hp-surface) 80%);
  border-color: oklch(from var(--hp-accent) l c h / 0.45);
}
.hp-stat.is-accent .hp-stat-value { color: var(--hp-ink); }
.hp-stat.is-accent .hp-stat-label { color: var(--hp-accent-ink); font-weight: 600; }
.hp-stat.is-warn::before {
  content: ""; position: absolute; top: 18px; right: 18px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--hp-warn);
  box-shadow: 0 0 0 4px var(--hp-warn-soft);
}
.hp-progress {
  margin-top: 10px; height: 6px; border-radius: 999px;
  background: oklch(from var(--hp-accent) l c h / 0.18); overflow: hidden;
}
.hp-progress span { display: block; height: 100%; background: var(--hp-accent); border-radius: 999px; }

/* ---------- Day tabs ------------------------------------------------- */
.hp-day-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.hp-day-tab {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); padding: 14px 16px;
  text-align: left; cursor: pointer; font: inherit; color: var(--hp-ink);
  transition: all 0.15s; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none;
}
.hp-day-tab:hover { border-color: var(--hp-border-2); }
.hp-day-tab.is-active {
  border-color: var(--hp-primary); box-shadow: inset 0 -3px 0 var(--hp-primary);
}
.hp-day-tab.is-active .hp-day-tab-num  { color: var(--hp-accent); }
.hp-day-tab.is-active .hp-day-tab-meta { color: var(--hp-ink-2); }
.hp-day-tab.is-active .hp-day-tab-bar  { background: var(--hp-border-2); }
.hp-day-tab-num   { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hp-mute); }
.hp-day-tab-label { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hp-day-tab-meta  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hp-ink-3); margin-top: 2px; }
.hp-day-tab-bar   { height: 3px; border-radius: 999px; background: var(--hp-border); margin-top: 8px; overflow: hidden; }
.hp-day-tab-bar span { display: block; height: 100%; background: var(--hp-accent); border-radius: 999px; transition: width 0.3s; }

/* ---------- Card ----------------------------------------------------- */
.hp-card {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); overflow: hidden;
}
.hp-card-head {
  padding: 12px 18px; border-bottom: 1px solid var(--hp-border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; background: var(--hp-surface);
}
.hp-card-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hp-card-desc  { margin: 4px 0 0; font-size: 13px; color: var(--hp-ink-3); }
.hp-card-foot  {
  padding: 12px 18px; border-top: 1px solid var(--hp-border);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.hp-card-body { padding: 16px 18px; }

/* ---------- Day accordion header ------------------------------------ */
.hp-day-head { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.hp-day-toggle {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--hp-ink);
  text-align: left; flex: 1; min-width: 200px;
}
.hp-day-toggle:hover { color: var(--hp-primary); }
.hp-day-chevron { color: var(--hp-mute); font-size: 14px; transition: transform 0.2s; flex-shrink: 0; }
.hp-day-chevron.is-open { transform: rotate(90deg); }
.hp-day-label { font-weight: 600; font-size: 15px; display: block; }
.hp-day-date  { font-size: 12px; color: var(--hp-ink-3); display: block; margin-top: 2px; }
.hp-day-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- Jobs grid ----------------------------------------------- */
.hp-jobs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.hp-job {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.hp-job::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--job-color, var(--hp-primary));
}
.hp-job-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.hp-job-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-job-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--job-color, var(--hp-primary)); flex-shrink: 0; }
.hp-job-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hp-job-meta  { font-size: 12px; color: var(--hp-ink-3); margin-left: 17px; margin-top: -4px; }
.hp-slot-empty { font-size: 11.5px; color: var(--hp-warn); font-weight: 500; padding: 4px 17px; }

/* ---------- Table ---------------------------------------------------- */
.hp-table-card { overflow: auto; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hp-table thead th {
  text-align: left; padding: 10px 16px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--hp-ink-3); background: var(--hp-surface-2);
  border-bottom: 1px solid var(--hp-border); position: sticky; top: 0;
}
.hp-table tbody tr { border-bottom: 1px solid var(--hp-border); transition: background 0.15s; }
.hp-table tbody tr:hover { background: var(--hp-surface-2); }
.hp-table tbody tr:last-child { border-bottom: 0; }
.hp-table td { padding: 12px 16px; vertical-align: middle; }
.hp-cell-notes { font-size: 12.5px; color: var(--hp-ink-3); max-width: 240px; }
.hp-row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.is-num { font-family: "JetBrains Mono"; font-variant-numeric: tabular-nums; }

/* ---------- Overlay + Modal ----------------------------------------- */
.hp-overlay {
  position: fixed; inset: 0;
  background: var(--trecker-bg-overlay);
  backdrop-filter: blur(4px);
  z-index: 1000; animation: hp-fade 0.2s;
}
@keyframes hp-fade { from { opacity: 0; } }
.hp-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 92vw); max-height: 88vh;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); box-shadow: var(--hp-shadow-lg);
  z-index: 1010; display: flex; flex-direction: column;
  animation: hp-modal-in 0.2s;
}
@keyframes hp-modal-in { from { opacity: 0; transform: translate(-50%, -48%); } }
.hp-modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--hp-border);
  display: flex; justify-content: space-between; align-items: center;
}
.hp-modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.hp-modal-body { padding: 18px 22px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.hp-modal-foot { padding: 14px 22px; border-top: 1px solid var(--hp-border); display: flex; justify-content: flex-end; gap: 8px; }
.hp-modal-hint { font-size: 12.5px; color: var(--hp-ink-3); margin: 0; line-height: 1.55; }

/* ---------- Field ---------------------------------------------------- */
.hp-field { display: flex; flex-direction: column; gap: 6px; }
.hp-field > span,
.hp-field-label {
  font-size: 11.5px; font-weight: 600; color: var(--hp-ink-3);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.hp-field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-field-row .hp-field { flex: 1; min-width: 140px; }
.hp-section-title { margin: 6px 0 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hp-ink-3); }

/* ---------- Checkbox label ------------------------------------------ */
.hp-check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--hp-ink); cursor: pointer; }
.hp-check-label input[type="checkbox"] { accent-color: var(--hp-primary); width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Empty state --------------------------------------------- */
.hp-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 48px 24px; gap: 8px;
}
.hp-empty-illu {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--hp-primary-soft); color: var(--hp-primary-ink);
  display: grid; place-items: center; margin-bottom: 6px;
}
.hp-empty h3 { margin: 0; font-size: 16px; font-weight: 600; }
.hp-empty p  { margin: 0; font-size: 13px; color: var(--hp-ink-3); max-width: 38ch; }

/* ---------- Job sort drag-drop -------------------------------------- */
.hp-job-sort-list { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.hp-job-sort-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--hp-surface-2); border: 1px solid var(--hp-border);
  border-radius: 9px; cursor: grab; user-select: none;
}
.hp-job-sort-item--placeholder { background: transparent; border: 1.5px dashed var(--hp-border-2); }
.hp-job-sort-item--dragging { background: var(--hp-surface); box-shadow: var(--hp-shadow-lg); }
.hp-job-sort-handle { font-size: 16px; color: var(--hp-mute); cursor: grab; flex-shrink: 0; }
.hp-job-sort-name  { flex: 1; font-size: 13.5px; font-weight: 500; }

/* ---------- Dashboard day/job/slot ---------------------------------- */
.hp-dash-day { display: flex; flex-direction: column; gap: 16px; }
.hp-dash-job { background: var(--hp-surface); border: 1px solid var(--hp-border); border-radius: var(--hp-radius-lg); overflow: hidden; }
.hp-dash-job-head {
  padding: 12px 16px; background: var(--hp-surface-2);
  border-bottom: 1px solid var(--hp-border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.hp-dash-job-name { font-weight: 600; font-size: 14.5px; }
.hp-dash-job-cat  { font-size: 12px; color: var(--hp-ink-3); }
.hp-dash-job-stat { font-size: 12.5px; color: var(--hp-ink-3); }
.hp-dash-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px; padding: 14px 16px;
}
.hp-dash-slot { background: var(--hp-surface-2); border: 1px solid var(--hp-border); border-radius: 10px; padding: 12px 14px; }
.hp-dash-slot--break { opacity: 0.6; }
.hp-dash-slot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hp-dash-slot-time { font-family: "JetBrains Mono"; font-size: 13px; font-weight: 600; }
.hp-dash-slot-fill { font-size: 12px; color: var(--hp-ink-3); }
.hp-dash-slot-bar { height: 4px; background: var(--hp-border); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.hp-dash-slot-bar span { display: block; height: 100%; background: var(--hp-primary); border-radius: 999px; }
.hp-dash-slot-note { font-size: 12px; color: var(--hp-ink-3); margin-bottom: 6px; }
.hp-dash-entries { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hp-dash-entry-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: 8px; font: inherit; color: var(--hp-ink);
  cursor: pointer; width: 100%; text-align: left; transition: all 0.15s;
}
.hp-dash-entry-btn:hover { border-color: var(--hp-border-2); background: var(--hp-surface-2); }
.hp-dash-entry-avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--hp-primary-soft); color: var(--hp-primary-ink);
  display: grid; place-items: center; font: 600 11px "Inter"; flex-shrink: 0;
}
.hp-dash-entry-name    { font-size: 13px; font-weight: 500; flex: 1; min-width: 0; }
.hp-dash-entry-contact { font-size: 11px; color: var(--hp-ink-3); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-dash-entry-edit    { font-size: 11px; color: var(--hp-mute); flex-shrink: 0; }
.hp-dash-empty-slot {
  display: flex; align-items: center; padding: 6px 10px;
  border: 1.5px dashed var(--hp-border-2); border-radius: 8px;
  font: inherit; font-size: 12.5px; color: var(--hp-ink-3);
  cursor: pointer; transition: all 0.15s; width: 100%; text-align: left;
  background: transparent;
}
.hp-dash-empty-slot:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.hp-dash-empty-slot--locked { cursor: not-allowed; opacity: 0.5; }

/* hp-dash-entry: clickable/empty entry rows (replaces hp-dash-entry-btn) */
.hp-dash-entry {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: 8px; font: inherit; color: var(--hp-ink);
  width: 100%; text-align: left; transition: all 0.15s;
  cursor: default;
}
.hp-dash-entry.is-clickable { cursor: pointer; }
.hp-dash-entry.is-clickable:hover { border-color: var(--hp-border-2); background: var(--hp-surface-2); }
.hp-dash-entry--empty {
  border: 1.5px dashed var(--hp-border-2); background: transparent;
  color: var(--hp-ink-3); font-size: 12.5px; cursor: pointer;
}
.hp-dash-entry--empty.is-clickable:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.hp-dash-entry--empty.is-locked { cursor: not-allowed; opacity: 0.5; }

/* hp-dash-fill-bar: progress bar inside a slot (alias of slot-bar) */
.hp-dash-fill-bar { height: 4px; background: var(--hp-border); border-radius: 999px; margin-bottom: 6px; overflow: hidden; }
.hp-dash-fill-bar span { display: block; height: 100%; background: var(--hp-primary); border-radius: 999px; transition: width 0.3s; }

/* hp-dash-job-title: flex wrapper for job name + pill */
.hp-dash-job-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Modal eyebrow */
.hp-modal-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hp-ink-3); margin-bottom: 2px; }
.hp-modal-eyebrow.is-danger { color: var(--hp-danger); }

/* ---------- Settings panel ------------------------------------------ */
.hp-settings-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--hp-ink);
  text-align: left;
}
.hp-settings-toggle:hover { background: var(--hp-surface-2); }
.hp-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hp-settings-field { display: flex; flex-direction: column; gap: 6px; }
.hp-settings-field > label { font-size: 13px; color: var(--hp-ink-2); }
.hp-settings-actions { display: flex; justify-content: flex-end; padding-top: 8px; }

/* ---------- Link list (Helfer / Survey Links pages) ----------------- */
.hp-link-list { display: flex; flex-direction: column; gap: 20px; }
.hp-link-item {
  display: grid; grid-template-columns: 1fr 200px; gap: 0;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); overflow: hidden;
}
.hp-link-item-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.hp-link-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.hp-link-item-title { margin: 0; font-size: 16px; font-weight: 600; }
.hp-link-item-labels { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-link-item-stats { display: flex; gap: 12px; font-size: 12px; color: var(--hp-ink-3); flex-wrap: wrap; }
.hp-link-item-url {
  display: flex; align-items: center;
  border: 1px solid var(--hp-border-2); border-radius: 10px;
  background: var(--hp-surface-2); overflow: hidden;
}
.hp-link-item-url code {
  flex: 1; padding: 10px 12px; font: 12.5px "JetBrains Mono";
  color: var(--hp-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.hp-link-item-expiry { font-size: 12px; color: var(--hp-ink-3); }
.hp-link-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-link-item-qr {
  background: var(--hp-surface-2); border-left: 1px solid var(--hp-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px;
}
.hp-link-item-qr img { width: 140px; height: 140px; border-radius: 10px; background: white; padding: 8px; }
.hp-link-item-qr-placeholder {
  width: 140px; height: 140px; border-radius: 10px;
  background: var(--hp-surface-2); border: 1.5px dashed var(--hp-border-2);
  display: grid; place-items: center; font-size: 11.5px; color: var(--hp-ink-3);
}
.hp-link-item-qr-btns { display: flex; gap: 6px; }
.hp-link-item-qr-btn {
  padding: 4px 10px; font: 500 12px "Inter"; border: 1px solid var(--hp-border);
  border-radius: 999px; background: var(--hp-surface); color: var(--hp-ink-2);
  cursor: pointer; transition: all 0.15s;
}
.hp-link-item-qr-btn:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
@media (max-width: 680px) {
  .hp-link-item { grid-template-columns: 1fr; }
  .hp-link-item-qr { border-left: 0; border-top: 1px solid var(--hp-border); flex-direction: row; justify-content: flex-start; }
}

/* ---------- Survey module (uf-*) ------------------------------------ */
.uf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.uf-card {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 12px;
  font: inherit; text-align: left; position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.uf-card:hover { border-color: var(--hp-border-2); box-shadow: var(--hp-shadow); }
.uf-card[data-status="live"]::before   { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--hp-success); border-radius: 0 3px 3px 0; }
.uf-card[data-status="draft"]::before  { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--hp-border-2); border-radius: 0 3px 3px 0; }
.uf-card[data-status="closed"] { opacity: 0.85; }
.uf-card[data-status="closed"]::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--hp-warn); border-radius: 0 3px 3px 0; }
.uf-card-head { display: flex; justify-content: space-between; align-items: center; }
.uf-card-head-left { display: flex; gap: 6px; align-items: center; }
.uf-card-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--hp-ink); }
.uf-card-desc  { margin: 0; font-size: 13px; color: var(--hp-ink-3); }
.uf-card-meta  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--hp-border); border-bottom: 1px solid var(--hp-border); }
.uf-card-meta-item  { display: flex; flex-direction: column; gap: 2px; }
.uf-card-meta-label { font-size: 10.5px; font-weight: 600; color: var(--hp-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.uf-card-meta-value { font-size: 13px; font-weight: 600; color: var(--hp-ink); }
.uf-card-foot { display: flex; gap: 6px; align-items: center; padding-top: 4px; flex-wrap: wrap; }
.uf-card-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--hp-ink-3); }

/* Public survey pages */
.uf-pub-bg {
  background:
    radial-gradient(900px 320px at 80% -120px, var(--hp-accent-soft), transparent 70%),
    radial-gradient(700px 260px at -10% 110%, var(--hp-primary-soft), transparent 65%),
    var(--hp-surface-2);
  min-height: 100dvh; padding: 56px 24px 80px;
}
.uf-pub-card {
  max-width: 680px; margin: 0 auto;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-xl); box-shadow: var(--hp-shadow-lg);
  padding: 36px 40px 32px; display: flex; flex-direction: column; gap: 18px;
}
.uf-pub-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--hp-border); }
.uf-pub-brand { display: flex; align-items: center; gap: 10px; }
.uf-pub-brand-mark { width: 36px; height: 36px; background: var(--hp-primary); color: var(--trecker-text-inverse); border-radius: 9px; display: grid; place-items: center; }
.uf-pub-brand-name { font-weight: 700; font-size: 14px; }
.uf-pub-brand-sub  { font-size: 11.5px; color: var(--hp-ink-3); }
.uf-pub-title { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; color: var(--hp-ink); }
.uf-pub-desc  { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hp-ink-2); }
.uf-pub-foot  { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hp-border); }
.uf-pub-legal { font-size: 11.5px; color: var(--hp-mute); text-align: center; padding-top: 8px; }
.uf-pub-legal a { color: var(--hp-ink-3); text-decoration: underline; cursor: pointer; }

/* ---------- Crumbs back link ---------------------------------------- */
.hp-crumbs-back { color: var(--hp-ink-3); text-decoration: none; transition: color 0.15s; }
.hp-crumbs-back:hover { color: var(--hp-primary); }

/* ---------- Extra-small button -------------------------------------- */
.hp-btn--xs { padding: 3px 7px; font-size: 11.5px; border-radius: 6px; }

/* ---------- Input variants ------------------------------------------ */
.hp-input--textarea { resize: vertical; min-height: 72px; }
.hp-input--narrow   { max-width: 160px; }

/* ---------- Field hint / required ----------------------------------- */
.hp-field-hint { margin: 0; font-size: 12px; color: var(--hp-ink-3); line-height: 1.45; }
.hp-required   { color: var(--hp-danger); margin-left: 2px; }

/* ---------- Clickable pill ------------------------------------------ */
.hp-pill--clickable { cursor: pointer; transition: opacity 0.13s, transform 0.1s; }
.hp-pill--clickable:hover { opacity: 0.82; transform: scale(0.97); }

/* ---------- Modal variants ------------------------------------------ */
.hp-modal--danger { border-top: 3px solid var(--hp-danger); }
.hp-modal-head--success { background: var(--hp-success-soft); border-bottom-color: oklch(from var(--hp-success) l c h / 0.3); }

/* ---------- Card list ----------------------------------------------- */
.hp-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 14px; }
.hp-card.is-archived { opacity: 0.6; }
.hp-card-head-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp-card-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.hp-card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--hp-ink-3); flex-shrink: 0; }
.hp-card-foot-primary  { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-card-foot-secondary { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.hp-card-foot-end { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* ---------- Archive toggle ------------------------------------------ */
.hp-archive-toggle { padding: 8px 0; }

/* ---------- Stat bar ------------------------------------------------ */
.hp-stat-bar { margin-top: 10px; height: 4px; border-radius: 999px; background: var(--hp-primary-soft); overflow: hidden; }
.hp-stat-bar span { display: block; height: 100%; background: var(--hp-primary); border-radius: 999px; }
.hp-stat-sub { font-size: 12px; color: var(--hp-ink-3); }

/* ---------- Dashboard items ----------------------------------------- */
.hp-dash-items { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Entry list ---------------------------------------------- */
.hp-entry-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hp-entry-list--compact { gap: 2px; }
.hp-entry-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: var(--hp-surface-2); border: 1px solid var(--hp-border);
  border-radius: 8px; font-size: 13px;
}
.hp-entry-list--compact .hp-entry-item { background: transparent; border: 0; padding: 3px 0; }
.hp-entry-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.hp-entry-name { font-weight: 500; color: var(--hp-ink); }
.hp-entry-text { font-style: italic; color: var(--hp-ink-2); }

/* ---------- Dash option groups -------------------------------------- */
.hp-dash-options {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px;
}
.hp-dash-option { background: var(--hp-surface-2); border: 1px solid var(--hp-border); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.hp-dash-option-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hp-dash-option-label { font-weight: 600; font-size: 13.5px; }

/* ---------- Tab navigation ------------------------------------------ */
.hp-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--hp-border);
  /* Break out to match topbar width */
  margin-left: -32px; margin-right: -32px;
  padding-left: 32px;
}
.hp-tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--hp-ink-2); padding: 10px 16px; font: 500 13.5px "Inter";
  cursor: pointer; transition: color 0.15s, border-color 0.15s; text-decoration: none;
}
.hp-tab:hover { color: var(--hp-ink); }
.hp-tab.is-active { color: var(--hp-primary); border-bottom-color: var(--hp-primary); }

/* ---------- Section ------------------------------------------------- */
.hp-section { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.hp-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hp-section-heading { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hp-section-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }

/* ---------- Empty state extras -------------------------------------- */
.hp-empty-icon { font-size: 52px; line-height: 1; }
.hp-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ---------- Editor items -------------------------------------------- */
.hp-editor-items { display: flex; flex-direction: column; gap: 12px; }
.hp-editor-item {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-editor-item:hover { border-color: var(--hp-border-2); }
.hp-editor-item--voll      { border-left: 3px solid var(--hp-danger); }
.hp-editor-item--fast-voll { border-left: 3px solid var(--hp-warn); }
.hp-editor-item-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; flex-wrap: wrap; padding: 11px 14px;
  background: var(--hp-surface-2); border-bottom: 1px solid var(--hp-border);
}
.hp-editor-item-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.hp-editor-item-title-row strong { font-size: 14.5px; font-weight: 600; }
.hp-editor-item-actions { display: flex; gap: 4px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Option list -------------------------------------------- */
.hp-option-list { list-style: none; margin: 0; padding: 8px 14px; display: flex; flex-direction: column; gap: 5px; }
.hp-option {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 7px 10px; border-radius: 7px;
  background: var(--hp-surface-2); border: 1px solid transparent;
}
.hp-option--voll      { border-color: oklch(from var(--hp-danger) l c h / 0.25); background: oklch(from var(--hp-danger) l c h / 0.06); }
.hp-option--fast-voll { border-color: oklch(from var(--hp-warn)   l c h / 0.25); background: oklch(from var(--hp-warn)   l c h / 0.06); }
.hp-option-info    { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hp-option-label   { font-weight: 500; font-size: 13px; }
.hp-option-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ---------- Settings groups ----------------------------------------- */
.hp-settings-group {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); overflow: hidden;
}
.hp-settings-group-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--hp-primary-soft); border-bottom: 1px solid var(--hp-border);
}
.hp-settings-group-icon  { font-size: 16px; flex-shrink: 0; }
.hp-settings-group-title { margin: 0; font-size: 14px; font-weight: 600; }
.hp-settings-group-body  { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Settings section (collapsible) -------------------------- */
.hp-settings-section {
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); overflow: hidden;
}
.hp-settings-chevron { color: var(--hp-mute); font-size: 13px; transition: transform 0.2s; }
.hp-settings-chevron.is-open { transform: rotate(90deg); }
.hp-settings-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.hp-settings-row  { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hp-settings-hint { font-size: 12px; color: var(--hp-ink-3); }

/* ---------- Avatar --------------------------------------------------- */
.hp-avatar {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 999px;
  font: 600 10.5px "Inter"; flex-shrink: 0;
  background: var(--hp-primary-soft); color: var(--hp-primary-ink);
}
.hp-avatar[data-tone="success"] { background: var(--hp-success-soft); color: var(--hp-success); }
.hp-avatar[data-tone="warn"]    { background: var(--hp-warn-soft);    color: var(--hp-warn); }
.hp-avatar[data-tone="danger"]  { background: var(--hp-danger-soft);  color: var(--hp-danger); }

/* ---------- Job data-color assignments ------------------------------ */
.hp-job[data-color="lime"]   { --job-color: oklch(0.78 0.18 130); }
.hp-job[data-color="amber"]  { --job-color: oklch(0.78 0.16 70); }
.hp-job[data-color="sky"]    { --job-color: oklch(0.7 0.14 235); }
.hp-job[data-color="rose"]   { --job-color: oklch(0.7 0.16 15); }
.hp-job[data-color="red"]    { --job-color: oklch(0.65 0.18 25); }
.hp-job[data-color="violet"] { --job-color: oklch(0.6 0.18 295); }
.hp-job::before { background: var(--job-color, var(--hp-primary)); }

/* ---------- Day header ----------------------------------------------- */
.hp-day-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding: 4px 2px;
}
.hp-day-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.hp-day-sub   { margin: 4px 0 0; font-size: 12.5px; color: var(--hp-ink-3); }

/* ---------- Shift cards (admin dashboard slot items) ---------------- */
.hp-shifts { display: flex; flex-direction: column; gap: 8px; }
.hp-shift {
  background: var(--hp-surface-2); border: 1px solid var(--hp-border);
  border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px;
}
.hp-shift.is-break { opacity: 0.6; }
.hp-shift-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hp-shift-time { font-family: "JetBrains Mono"; font-size: 12.5px; font-weight: 600; }
.hp-shift-note { margin: 0; font-size: 12px; color: var(--hp-ink-3); }
.hp-shift-fill { height: 4px; background: var(--hp-border); border-radius: 999px; overflow: hidden; }
.hp-shift-fill span { display: block; height: 100%; background: var(--job-color, var(--hp-primary)); border-radius: 999px; transition: width 0.3s; }

/* ---------- Signup list (admin entries per slot) --------------------- */
.hp-signup-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hp-signup-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: 9px; cursor: pointer; transition: all 0.15s;
  font: inherit; color: var(--hp-ink); text-align: left; width: 100%;
}
.hp-signup-row:hover { border-color: var(--hp-border-2); background: var(--hp-surface-2); }
.hp-signup-name  { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-signup-phone { font-family: "JetBrains Mono"; font-size: 11px; color: var(--hp-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.hp-signup-row--empty {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 9px;
  border: 1.5px dashed var(--hp-border-2); background: transparent;
  color: var(--hp-ink-3); font: inherit; font-size: 12.5px;
  cursor: pointer; transition: all 0.15s; width: 100%;
}
.hp-signup-row--empty:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.hp-signup-row--empty.is-locked { cursor: not-allowed; opacity: 0.5; }

/* ---------- Link list (new structure without -item- infix) ---------- */
.hp-link-item {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--hp-surface); border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg); overflow: hidden;
}
.hp-link-item--active   { border-left: 3px solid var(--hp-success); }
.hp-link-item--expired  { opacity: 0.7; border-left: 3px solid var(--hp-danger); }
.hp-link-item--inactive { opacity: 0.7; }
.hp-link-qr-section {
  background: var(--hp-surface-2); border-right: 1px solid var(--hp-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px;
}
.hp-link-qr { width: 140px; height: 140px; background: white; border-radius: 10px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.hp-link-qr-img { width: 100%; height: 100%; image-rendering: pixelated; }
.hp-link-qr-placeholder {
  width: 140px; height: 140px; border-radius: 10px;
  background: var(--hp-surface-2); border: 1.5px dashed var(--hp-border-2);
  display: grid; place-items: center; font-size: 11.5px; color: var(--hp-ink-3);
}
.hp-link-qr-download { display: flex; gap: 6px; }
.hp-link-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.hp-link-body-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.hp-link-labels { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-link-label  { margin: 0; font-size: 16px; font-weight: 600; }
.hp-link-stats  { display: flex; gap: 12px; font-size: 12px; color: var(--hp-ink-3); flex-wrap: wrap; }
.hp-link-url-box {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--hp-border-2); border-radius: 10px;
  background: var(--hp-surface-2); overflow: hidden;
}
.hp-link-url {
  flex: 1; padding: 9px 12px; font: 12.5px "JetBrains Mono";
  color: var(--hp-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hp-link-expiry { font-size: 12px; color: var(--hp-ink-3); }
.hp-link-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 680px) {
  .hp-link-item { grid-template-columns: 1fr; }
  .hp-link-qr-section { border-right: 0; border-bottom: 1px solid var(--hp-border); flex-direction: row; justify-content: flex-start; }
}

/* ---------- Bulk preview row ---------------------------------------- */
.hp-bulk-preview { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Responsive ---------------------------------------------- */
@media (max-width: 1100px) {
  .hp-stats    { grid-template-columns: repeat(2, 1fr); }
  .hp-stats--5 { grid-template-columns: repeat(3, 1fr); }
  .hp-day-tabs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .hp-jobs-grid { grid-template-columns: 1fr; }
  .hp-topbar {
    margin: -24px -32px 0 -32px;
    padding: 18px 32px 16px;
  }
}
@media (max-width: 768px) {
  /* Match EventLayout__Content mobile padding: 16px */
  .hp-topbar {
    margin: -16px -16px 0 -16px;
    padding: 16px 16px 14px;
    top: -16px;
  }
}
@media (max-width: 760px) {
  .hp-stats, .hp-stats--5 { grid-template-columns: repeat(2, 1fr); }
  .hp-day-tabs { grid-template-columns: repeat(2, 1fr); }
  .uf-pub-card { padding: 24px 20px; }
  .uf-pub-bg   { padding: 24px 12px 40px; }
}
@media (max-width: 480px) {
  .hp-day-tabs { grid-template-columns: 1fr; }
  .hp-stats, .hp-stats--5 { grid-template-columns: repeat(2, 1fr); }
}
