.production-edging-terminal-hero {
  gap: 0;
  padding: 16px 20px;
}

.production-edging-terminal-hero .hero-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.production-edging-terminal-hero .hero-copy {
  display: grid;
  gap: 3px;
}

.production-edging-terminal-hero .hero-kicker,
.production-edging-terminal-hero h1 {
  margin: 0;
}

.production-edging-terminal-hero h1 {
  font-size: clamp(24px, 2.2vw, 32px);
}

.production-edging-terminal-hero .hero-person-meta,
.production-edging-terminal-hero .hero-static-label,
.production-edging-terminal-hero .hero-access-inline-static strong,
.production-edging-terminal-hero .hero-select-note {
  display: none;
}

.production-edging-terminal-hero .hero-controls,
.production-edging-terminal-hero .hero-access-inline-static,
.production-edging-terminal-hero .theme-switch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.production-edging-terminal-hero .hero-controls {
  justify-content: flex-end;
}

.production-edging-terminal-hero .hero-select-card,
.production-edging-terminal-hero .hero-select-card:hover {
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.production-edging-terminal-hero .hero-access-submit,
.production-edging-terminal-hero .hero-theme-card .action-chip {
  width: auto;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
}

.production-edging-shift-card .production-edging-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.production-edging-clock {
  justify-self: center;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

.production-edging-shift-card .production-edging-shift-count {
  justify-self: end;
}

.production-edging-report-participants {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--stroke);
}

.production-edging-report-participants legend {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.production-edging-report-participants > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.production-edging-saved-row > div > b {
  color: var(--text);
  font-size: 12px;
}

.production-edging-saved-row > div > small {
  color: var(--muted);
  font-size: 10px;
}

.production-edging-report-task-changes {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface-soft);
}

.production-edging-report-task-changes.is-pending {
  margin: 14px 0 0;
}

.production-edging-report-task-changes > strong,
.production-edging-report-task-changes.is-empty strong {
  color: var(--muted);
  font-size: 11px;
}

.production-edging-report-task-changes.is-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.production-edging-report-task-changes.is-empty span {
  color: var(--muted);
  font-size: 11px;
}

.production-edging-report-task-group {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
}

.production-edging-report-task-group > b {
  color: var(--status-work-text);
}

.production-edging-report-task-group.is-completed > b {
  color: var(--status-ok-text);
}

.production-edging-report-task-group > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
}

.production-edging-report-task-group > span > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-edging-history-card {
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface-card);
}

.production-edging-history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.production-edging-history-day {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--field-bg);
  overflow: hidden;
}

.production-edging-history-day > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.production-edging-history-day > summary span {
  color: var(--muted);
  font-size: 12px;
}

.production-edging-history-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--stroke);
}

.production-edging-history-attendance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.production-edging-history-unloading {
  display: flex;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--surface-soft);
}

.production-edging-history-unloading span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .production-edging-terminal-hero .hero-top {
    grid-template-columns: 1fr;
  }

  .production-edging-terminal-hero .hero-controls {
    justify-content: flex-start;
  }

  .production-edging-shift-card .production-edging-section-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .production-edging-clock {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }

  .production-edging-history-day > summary,
  .production-edging-history-unloading {
    align-items: flex-start;
    flex-direction: column;
  }
}
