/* hhrs-view: hhrs-design-tokens */
:root {
  color-scheme: light;
  --hhrs-ink: #1c2430;
  --hhrs-muted: #5c6775;
  --hhrs-paper: #f6f3ec;
  --hhrs-surface: #fffdf8;
  --hhrs-line: #d9d1c3;
  --hhrs-sidebar: #1b2838;
  --hhrs-sidebar-text: #f4efe6;
  --hhrs-accent: #8a4b08;
  --hhrs-accent-contrast: #fff8ef;
  --hhrs-ok: #0d5c45;
  --hhrs-ok-bg: #e5f4ee;
  --hhrs-warn: #8a4b08;
  --hhrs-warn-bg: #fff1dc;
  --hhrs-danger: #8d1d1d;
  --hhrs-danger-bg: #fde8e6;
  --hhrs-info-bg: #e7eef6;
  --hhrs-focus: #0b5cab;
  --hhrs-sheet-header: #E3EAF2;
  --hhrs-sheet-header-ink: #24364B;
  --hhrs-sheet-header-line: #C5D1DE;
  --hhrs-sheet-row: #FFFFFF;
  --hhrs-sheet-row-alt: #F4F7FA;
  --hhrs-sheet-hover: #EAF2FA;
  --hhrs-sheet-selected: #D9E6F2;
  --hhrs-sheet-line: #DFE5EB;
  --hhrs-sheet-total: #E8EEF5;
  --hhrs-shadow: 0 1px 2px rgba(28, 36, 48, 0.06);
  --hhrs-radius: 12px;
  --hhrs-font: "Segoe UI", "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--hhrs-font);
  color: var(--hhrs-ink);
  background: var(--hhrs-paper);
  line-height: 1.5;
}

:focus-visible {
  outline: 3px solid var(--hhrs-focus);
  outline-offset: 2px;
}

.hhrs-skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--hhrs-ink);
  color: white;
  padding: 0.4rem 0.7rem;
  z-index: 5;
}

.hhrs-skip:focus { top: 0.5rem; }

.hhrs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 650;
  background: var(--hhrs-info-bg);
}

.hhrs-badge--ok { background: var(--hhrs-ok-bg); color: var(--hhrs-ok); }
.hhrs-badge--warn { background: var(--hhrs-warn-bg); color: var(--hhrs-warn); }
.hhrs-badge--danger { background: var(--hhrs-danger-bg); color: var(--hhrs-danger); }
.hhrs-badge--info { background: var(--hhrs-info-bg); color: var(--hhrs-focus); }
.hhrs-badge--muted { background: #eceff3; color: var(--hhrs-muted); }

.hhrs-button, button, .hhrs-button-link {
  font: inherit;
  border: 0;
  border-radius: 10px;
  background: var(--hhrs-accent);
  color: var(--hhrs-accent-contrast);
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hhrs-button--quiet, button.hhrs-button--quiet {
  background: transparent;
  color: var(--hhrs-ink);
  border: 1px solid var(--hhrs-line);
}

label { display: grid; gap: 0.25rem; font-weight: 650; }

input, select, textarea {
  font: inherit;
  color: var(--hhrs-ink);
  background: white;
  border: 1px solid var(--hhrs-line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  width: 100%;
}

.hhrs-error { color: var(--hhrs-danger); font-weight: 650; }
.hhrs-muted { color: var(--hhrs-muted); }
.hhrs-panel {
  background: var(--hhrs-surface);
  border: 1px solid var(--hhrs-line);
  border-radius: var(--hhrs-radius);
  box-shadow: var(--hhrs-shadow);
  padding: 1rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--hhrs-line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--hhrs-muted); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
