.hr-space {
  --hr-accent: #fb923c;
  --hr-glow: rgba(249, 115, 22, .10);
  --hr-border: rgba(120, 122, 132, .22);
  --hr-soft: rgba(120, 122, 132, .07);
  max-width: 1310px;
  padding-block: 8px 26px;
}

.hr-space h1 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -.045em;
  line-height: 1.13;
  margin: 0 0 19px;
}

.hr-space .hr-hero {
  padding: clamp(17px, 3vw, 24px) clamp(20px, 4vw, 32px);
  margin-bottom: 18px;
  border: 1px solid var(--hr-border);
  border-radius: 20px;
  background: linear-gradient(112deg, var(--hr-glow), transparent 68%), var(--panel-solid);
  position: relative;
}

.hr-space .hr-hero::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--hr-accent);
}

.hr-space .hr-hero h1 { margin-bottom: 5px; }
.hr-space .hr-hero p { margin: 0; }
.hr-space .card { border: 1px solid var(--hr-border); border-radius: 17px; box-shadow: none; }
.hr-space .card h2 { font-size: 17px; letter-spacing: -.02em; }
.hr-space .card label.f { gap: 6px; }
.hr-space .card .tbl th { background: var(--hr-soft); font-size: 12px; font-weight: 650; }
.hr-space .tbl td, .hr-space .tbl th { padding: 11px 13px; }
.hr-space .tbl td b { font-weight: 650; }
.hr-space .tbl tr:hover td { background: var(--hr-soft); }
.hr-space .scroll { border: 1px solid var(--hr-border); border-radius: 12px; }
.hr-space button.pri { background: #c64b0b; border-color: #c64b0b; color: #fff; font-weight: 650; }
.hr-space button.pri:hover { background: #ac410a; }
.hr-space button:focus-visible, .hr-space input:focus-visible, .hr-space select:focus-visible {
  outline: 2px solid var(--hr-accent);
  outline-offset: 2px;
}

.hr-space .hr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 18px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--hr-border);
  border-radius: 13px;
  background: var(--hr-soft);
}

.hr-space .hr-tabs button { border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; }
.hr-space .hr-tabs button:hover { background: var(--hr-soft); }
.hr-space .hr-tabs button.pri,
.hr-space .hr-tabs button[aria-pressed="true"] { background: var(--hr-glow); color: inherit; border-color: var(--hr-accent); }
.hr-space .hr-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 9px 16px; margin-bottom: 16px; }
.hr-space .hr-toolbar .hr-tabs { margin: 0; }
.hr-space .hr-section-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.hr-space .hr-section-top p { margin: 4px 0 0; }
.hr-space .hr-section-top h2 { margin-bottom: 0; }
.hr-space .hr-field { border: 1px solid var(--hr-border); border-radius: 11px; padding: 12px; }
.hr-space .hr-field .chk { margin: 6px 0 0; font-size: .84em; }
.hr-space .hr-metrics, .hr-space .kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 16px; }
.hr-space .kpi .card { margin: 0; }
.hr-space .kpi .card b { display: block; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.025em; margin-top: 4px; }
.hr-space .hr-metric { display: grid; gap: 4px; padding: 12px 16px; background: var(--panel-solid); border: 1px solid var(--hr-border); border-radius: 14px; text-align: start; }
.hr-space .hr-metric strong { font-size: 25px; letter-spacing: -.04em; }
.hr-space .hr-metric[aria-pressed="true"] { background: var(--hr-glow); border-color: var(--hr-accent); }
.hr-space .hr-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--hr-soft); font-size: 12px; font-weight: 650; }
.hr-space .hr-badge[data-status="soon"], .hr-space .hr-badge[data-status="today"], .hr-space .hr-badge[data-status="overdue"] { background: var(--hr-glow); border: 1px solid rgba(249, 115, 22, .44); }
.hr-space .hr-badge[data-status="overdue"] { border-color: #e16957; }
.hr-space .hr-stage { border-inline-start: 4px solid var(--hr-accent); }
.hr-space .hr-form-actions { justify-content: flex-end; margin-top: 14px; }
.hr-space .hr-template-form [hidden] { display: none; }
.hr-space .hr-empty { padding: 12px 0; }
.hr-space .kpi .card b { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .hr-space .hr-tabs { width: auto; }
  .hr-space .hr-metrics, .hr-space .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-space .hr-section-top > .row { width: 100%; }
  .hr-space .hr-section-top > .row label { flex: 1 1 125px; }
}
