.tc-page select {
  font: inherit;
}

.tc-page select:focus-visible {
  outline: 3px solid rgba(31, 106, 74, 0.33);
  outline-offset: 2px;
}

.tc-hero {
  margin-top: 38px;
  margin-bottom: 30px;
}

.tc-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.tc-tool {
  overflow: visible;
  padding: 28px;
}

.tc-tool-heading,
.tc-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.tc-kicker {
  margin: 0 0 5px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tc-tool-heading h2,
.tc-results-heading h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.025em;
}

.tc-native-note {
  max-width: 290px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.tc-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tc-settings > label {
  min-width: 0;
}

.tc-settings > label > span:first-child {
  display: block;
  min-height: 32px;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.tc-settings > label > span small {
  color: var(--muted);
  font-weight: 600;
}

.tc-settings select,
.tc-settings input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.tc-settings select {
  padding: 8px 10px;
}

.tc-settings input {
  padding: 8px 9px;
}

.tc-settings input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 61, 53, 0.1);
}

.tc-input-suffix,
.tc-input-prefix {
  display: grid;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.tc-input-suffix {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tc-input-prefix {
  grid-template-columns: auto minmax(0, 1fr);
}

.tc-input-suffix input,
.tc-input-prefix input {
  border: 0;
  border-radius: 8px;
}

.tc-input-suffix small,
.tc-input-prefix small {
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tc-storage-note {
  margin: 0 0 20px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  background: var(--green-soft);
  font-size: 11px;
  line-height: 1.45;
}

.tc-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.tc-grid-heading,
.tc-time-row {
  display: grid;
  grid-template-columns: minmax(125px, 1.1fr) minmax(108px, 0.9fr) minmax(108px, 0.9fr) minmax(118px, 0.9fr) minmax(88px, 0.65fr) minmax(92px, 0.7fr);
}

.tc-grid-heading {
  color: var(--muted);
  background: var(--sheet-header);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tc-grid-heading span,
.tc-time-row > div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
}

.tc-grid-heading span:last-child,
.tc-time-row > div:last-child {
  border-right: 0;
}

.tc-time-row {
  align-items: center;
  border-top: 1px solid var(--line);
}

.tc-time-row.is-invalid {
  background: rgba(180, 61, 53, 0.055);
}

.tc-day-name {
  font-size: 12px;
  line-height: 1.35;
}

.tc-time-row input[type="time"],
.tc-break-input input {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.tc-time-row input[aria-invalid="true"] {
  border-color: var(--danger);
}

.tc-break-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.tc-break-input input {
  border: 0;
}

.tc-break-input small {
  padding-right: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.tc-overnight-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.tc-overnight-label input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.tc-day-total {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tc-time-row.is-invalid .tc-day-total {
  color: var(--danger);
  font-size: 11px;
}

.tc-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.tc-message.is-error {
  color: var(--danger);
}

.tc-message.is-success {
  color: var(--green-dark);
}

.tc-results {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tc-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tc-secondary-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--paper);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.tc-secondary-button:hover:not(:disabled) {
  border-color: rgba(31, 106, 74, 0.45);
  background: var(--sheet-header);
}

.tc-secondary-button:disabled {
  color: var(--muted-light);
  cursor: not-allowed;
  opacity: 0.65;
}

.tc-week-summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.tc-week-card {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--sheet-header);
}

.tc-week-card:only-child {
  grid-column: 1 / -1;
}

.tc-week-card h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.tc-week-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tc-week-values p {
  margin: 0;
}

.tc-week-values span,
.tc-week-values strong,
.tc-week-values small {
  display: block;
}

.tc-week-values span {
  color: var(--muted);
  font-size: 10px;
}

.tc-week-values strong {
  margin-top: 2px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.tc-week-values small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.tc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tc-summary-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.tc-summary-grid .tc-pay-card {
  border-color: rgba(31, 106, 74, 0.3);
  background: var(--green-soft);
}

.tc-summary-grid span,
.tc-summary-grid strong,
.tc-summary-grid small {
  display: block;
}

.tc-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.tc-summary-grid strong {
  margin: 5px 0;
  font-size: clamp(19px, 3vw, 26px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tc-summary-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tc-estimate-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .tc-settings,
  .tc-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-grid {
    overflow-x: auto;
  }

  .tc-grid-heading,
  .tc-time-row {
    min-width: 730px;
  }
}

@media (max-width: 680px) {
  .tc-tool {
    padding: 20px 16px;
  }

  .tc-tool-heading,
  .tc-results-heading {
    flex-direction: column;
    gap: 10px;
  }

  .tc-native-note {
    max-width: none;
    text-align: left;
  }

  .tc-grid {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .tc-grid-heading {
    display: none;
  }

  .tc-time-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
  }

  .tc-time-row > div,
  .tc-time-row > div:last-child {
    padding: 6px;
    border: 0;
  }

  .tc-time-row > div::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .tc-day-cell {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line) !important;
  }

  .tc-total-cell {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

  .tc-result-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 500px) {
  .tc-settings,
  .tc-summary-grid,
  .tc-week-summaries {
    grid-template-columns: 1fr;
  }

  .tc-settings > label > span:first-child {
    min-height: 0;
  }

  .tc-week-card:only-child {
    grid-column: auto;
  }

  .tc-result-actions {
    grid-template-columns: 1fr;
  }

  .tc-secondary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-page *,
  .tc-page *::before,
  .tc-page *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 0.4in;
  }

  .tc-page {
    background: #fff;
  }

  .tc-page .page-shell {
    width: 100%;
  }

  .tc-page .site-header,
  .tc-page .tc-tool-heading,
  .tc-page .trust-row,
  .tc-page .tool-guide,
  .tc-page .site-footer,
  .tc-page .tc-result-actions,
  .tc-page .hero-copy,
  .tc-page .eyebrow,
  .tc-page .tc-storage-note,
  .tc-page .tc-message {
    display: none !important;
  }

  .tc-page .tc-hero {
    margin: 0 0 10px;
    text-align: left;
  }

  .tc-page .tc-hero h1 {
    margin: 0;
    font-size: 24px;
  }

  .tc-page .tc-tool {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .tc-page .tc-grid-heading,
  .tc-page .tc-time-row {
    min-width: 0;
  }

  .tc-page .tc-settings {
    gap: 7px;
    margin-bottom: 8px;
  }

  .tc-page .tc-settings > label > span:first-child {
    min-height: 0;
  }

  .tc-page .tc-settings select,
  .tc-page .tc-settings input {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .tc-page .tc-grid-heading span,
  .tc-page .tc-time-row > div {
    padding: 5px 6px;
  }

  .tc-page .tc-time-row input[type="time"],
  .tc-page .tc-break-input input {
    min-height: 31px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .tc-page .tc-results {
    margin-top: 12px;
    padding-top: 12px;
  }

  .tc-page .tc-results-heading {
    margin-bottom: 10px;
  }

  .tc-page .tc-week-card,
  .tc-page .tc-summary-grid > div {
    padding: 9px;
  }

  .tc-page .tc-summary-grid strong {
    font-size: 18px;
  }

  .tc-page .tc-estimate-note {
    margin-top: 8px;
  }

  .tc-page .tc-settings,
  .tc-page .tc-summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
