.tc-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
.tc-schedule, .tc-totals { min-width: 0; }
.tc-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.tc-setup > .zt-field { max-width: 22rem; }
.tc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-presets button { min-height: 44px; }
.tc-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#tc-time-hint { margin: 10px 0 4px; }
#tc-clock-note { margin: 0 0 16px; }
.tc-reading { margin: 0 0 6px; }
#tc-days { display: grid; gap: 12px; }
.tc-day {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ws-line-strong);
  border-radius: 10px;
  padding: 8px 12px;
}
.tc-day legend { font-weight: 700; padding-inline: 4px; }
.tc-day-fields, .tc-split-fields { display: grid; gap: 8px; align-items: start; }
.tc-day-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr); }
.tc-split-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.tc-day-fields input, .tc-split-fields input { padding-inline: 7px !important; }
.tc-day input[aria-invalid="true"], .tc-pay-fields input[aria-invalid="true"] { border-color: var(--err); }
.tc-day-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 8px; }
.tc-day-end .zt-link { min-height: 44px; padding-inline: 0; }
.tc-day-total { font-size: .875rem; }
.tc-totals { display: grid; gap: 12px; }
.tc-totals h2 { margin: 0; font-size: 1.75rem; line-height: 1.1; }
.tc-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.tc-total strong { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
.tc-total span { color: var(--ws-dim); }
.tc-excluded { color: var(--err); margin: 0; }
.tc-breakdown { margin: 0; }
.tc-breakdown > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding-block: 6px;
  border-bottom: 1px solid var(--ws-line);
  font-size: .875rem;
}
.tc-breakdown dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tc-gross { font-weight: 700; }
.tc-pay-fields { display: grid; gap: 10px; }
.tc-totals .zt-next-tool { margin: 0; }
.tc-totals .zt-next-tool a, #tc-actions .zt-link { min-height: 44px; }
.tc-totals .zt-link:disabled { color: var(--ws-dim); text-decoration: none; cursor: default; }
.tc-totals h2 { scroll-margin-top: 12px; }
.tc-print { display: none; }

@media (min-width: 780px) {
  .tc-totals { position: sticky; top: 12px; }
  .tc-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tc-setup { grid-template-columns: minmax(0, 9rem) 1fr; align-items: center; }
  .tc-setup > .zt-field { max-width: none; }
  .tc-setup .tc-presets { grid-column: 1 / -1; }
  .tc-jump { display: none; }
}
@media (max-width: 620px) {
  #tc-actions .zt-primary { flex: 1; }
}
@media print {
  body[data-zt-slug="time-card-calculator"],
  body[data-zt-slug="time-card-calculator"] main {
    background: white;
    color: black;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  body[data-zt-slug="time-card-calculator"] > :not(main),
  .zt-tool-page > :not(#tool),
  #tool > :not(.tc-print) { display: none !important; }
  #tool { border: 0; box-shadow: none; padding: 0; background: white; color: black; }
  .tc-print { display: block; }
  .tc-print h2 { font: 700 20pt system-ui; margin: 0 0 .7em; }
  .tc-print pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 11pt/1.6 monospace; margin: 0; }
}
