.workspace-navigation { justify-self: center; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hours-window { min-height: 100vh; }
.hours-main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; }
.hours-title, .hours-person-heading, .hours-report-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hours-title h1 { margin: 0; font-size: 26px; }
.hours-title p, .hours-report-tools p { color: var(--muted); margin: 5px 0 0; }
.hours-tabs { display: flex; gap: 8px; padding: 20px 0 14px; border-bottom: 1px solid var(--line); }
.hours-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.hours-filters .field { min-width: 140px; max-width: 100%; }
.hours-filters input, .hours-filters select { color: var(--text); background: var(--soft); border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 10px; min-height: 38px; max-width: 100%; }
.hours-filters [hidden] { display: none; }
.hours-person { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-top: 16px; }
.hours-person-heading { padding: 12px 16px; background: var(--soft); border-radius: 9px 9px 0 0; }
.hours-person-heading h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.hours-person-heading h2 small { margin-left: 10px; color: var(--muted); font-weight: normal; }
.hours-entry { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(185px, .9fr) minmax(90px, .5fr); gap: 12px; align-items: center; padding: 14px 16px; }
.hours-entry + .hours-entry, .hours-person-heading + .hours-entry { border-top: 1px solid var(--line); }
.hours-period-label strong { display: block; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours-period-label small, .hours-help { color: var(--muted); font-size: 12px; }
.hours-entry-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hours-entry-value { min-width: 0; }
.hours-entry-display { display: flex; align-items: center; gap: 14px; }
.hours-entry-display .text-button { padding: 6px 0; font-size: 12px; }
.hours-entry [hidden] { display: none; }
.hours-input-label { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.hours-input-label input { width: 92px; min-width: 0; background: var(--soft); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); padding: 8px; font: inherit; font-variant-numeric: tabular-nums; }
.hours-input-label input[aria-invalid="true"] { border-color: var(--red); }
.hours-entry-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12px; }
.hours-saved { color: #91cbaa; }
.hours-missing { color: #d4b983; }
.hours-amount { font-variant-numeric: tabular-nums; }
.hours-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; max-width: 100%; }
.hours-copy details[open] { flex-basis: 100%; }
.hours-copy summary { cursor: pointer; font-size: 12px; }
.hours-copy textarea { display: block; width: 100%; min-width: 240px; max-width: 100%; padding: 12px; margin-top: 10px; background: var(--soft); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; resize: vertical; font: 12px/1.7 monospace; }
.hours-copy small { color: var(--muted); font-size: 12px; }
.hours-person-heading:has(details[open]), .hours-report-tools:has(details[open]) { align-items: flex-start; }
.hours-person-heading:has(details[open]) .hours-copy, .hours-report-tools:has(details[open]) .hours-copy { width: 100%; }
.hours-history article, .hours-schedule-history article { padding: 16px; }
.hours-history article + article, .hours-schedule-history article + article { border-top: 1px solid var(--line); }
.hours-history article div, .hours-schedule-history article { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hours-history time, .hours-schedule-history span { color: var(--muted); font-size: 12px; }
.hours-history p { margin: 8px 0 0; }
.hours-row-error { grid-column: 1 / -1; }
.hours-empty, .hours-setup { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-top: 22px; }
.hours-empty h2, .hours-setup h2 { margin: 0; font-size: 18px; }
.hours-empty p { color: var(--muted); }
.hours-schedule-form { margin-top: 16px; }
.hours-schedule-form .hours-filters { margin: 0; }
.hours-schedule-preview { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.hours-schedule-preview h3 { margin: 0; width: 100%; font-size: 14px; }
.hours-schedule-preview span { padding: 8px 10px; background: var(--soft); border-radius: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .workspace-navigation { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .workspace-navigation .view-switch { width: auto; }
}
@media (max-width: 640px) {
  .hours-main { padding: 20px 12px 32px; }
  .hours-entry { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .hours-entry-form { justify-content: space-between; }
  .hours-entry-status { justify-content: flex-start; }
  .hours-input-label input { width: 112px; font-size: 16px; }
  .hours-header .top-actions .avatar, .hours-header .top-actions .account-name { display: none; }
  .hours-filters .field { flex: 1 1 150px; }
  .hours-filters select, .hours-filters input { width: 100%; }
  .hours-copy textarea { min-width: 0; }
  .hours-setup { padding: 16px; }
}
