.tf-attendance { display: grid; gap: 18px; }
.card.tf-punch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 3vw, 24px);
}
.tf-attendance h2 { margin: 0; min-width: 0; overflow-wrap: break-word; font-size: clamp(18px, 3vw, 25px); }
.tf-punch-info p { margin: 4px 0 8px; }
.tf-shift { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
.tf-shift dt { color: var(--mut); font-size: 12px; }
.tf-shift dd { margin: 0; font-weight: 650; }
.tf-punch-action { display: grid; gap: 6px; }
.tf-punch-action p { margin: 0; }
.tf-punch-message:empty { display: none; }
.tf-clock { font-size: clamp(32px, 5vw, 42px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
#tfPunch, .tf-month button { min-height: 44px; }
.tf-history-head, .tf-month { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tf-history-head { justify-content: space-between; margin-bottom: 8px; }
.tf-month button { min-width: 44px; }
.tf-attendance .tf-month-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tf-month-metrics .card { padding: 8px 10px; }
.tf-month-metrics .card h3 { margin-bottom: 2px; font-size: 13px; }
.tf-month-metrics .v { font-size: clamp(15px, 3vw, 22px); overflow-wrap: anywhere; }
.card.tf-history { padding: 8px 10px; }
.tf-history-table { table-layout: fixed; }
.tf-history-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.tf-history-table thead th:last-child { width: 38%; }
.tf-history-table tbody tr:last-child > * { border-bottom: 0; }
.tf-history-table summary { min-height: 44px; align-content: center; color: var(--pri); cursor: pointer; }
.tf-history-table dl { margin: 0; }
.tf-history-table dt { font-size: 12px; color: var(--mut); }
.tf-history-table dd { margin: 0 0 4px; }
.tf-empty { padding: 8px; margin: 0; }
@media (max-width: 600px) {
  .card.tf-punch-panel { grid-template-columns: minmax(0, 1fr); }
  .tf-history-table :is(th, td) { padding-inline: 4px; }
}
