.time-recovered-section {
  position: relative;
  padding-top: 40px;
  padding-bottom: 120px;
}

.tr-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .62fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.tr-heading h2 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.tr-heading p { color: var(--muted); font-size: 16px; text-wrap: balance; }
.tr-heading strong { color: var(--text); }

.tr-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .72fr);
  border: 1px solid rgba(77, 214, 255, .26);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 32, 54, .97), rgba(7, 14, 26, .98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .3);
}

.tr-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: linear-gradient(rgba(140, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 180, 255, .07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}

.tr-input-panel,
.tr-result-panel { position: relative; z-index: 1; padding: clamp(25px, 4vw, 46px); }
.tr-input-panel { border-right: 1px solid var(--line2); }
.tr-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tr-panel-heading h3 { font-size: 20px; line-height: 1.2; }
.tr-panel-heading p { margin-top: 6px; color: var(--dim); font-size: 13px; }

.tr-reset {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(140, 180, 255, .05);
  font: 650 11px/1 var(--mono);
  cursor: pointer;
}
.tr-reset:hover { color: var(--text); border-color: rgba(77, 214, 255, .45); }

.tr-field + .tr-field { margin-top: 22px; }
.tr-label-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.tr-label-row label { color: var(--text); font-size: 13px; font-weight: 650; }
.tr-label-row span { color: var(--dim); font: 11px/1.4 var(--mono); }
.tr-controls { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 16px; align-items: center; }

.tr-controls input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.tr-controls input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--text);
  background: rgba(6, 11, 20, .72);
  font: 700 14px/1 var(--mono);
  text-align: center;
}
.tr-controls input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.tr-result-panel {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 90% 10%, rgba(77, 214, 255, .16), transparent 42%), rgba(6, 11, 20, .45);
}
.tr-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 6px 0 24px; background: var(--line2); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.tr-result { min-width: 0; padding: 18px; background: rgba(7, 14, 26, .94); }
.tr-result span,
.tr-result strong,
.tr-result small { display: block; }
.tr-result span { min-height: 38px; color: var(--muted); font-size: 12px; }
.tr-result strong { margin: 8px 0 2px; color: var(--text); font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -.04em; }
.tr-result-recoveredHours strong { color: var(--cyan); }
.tr-result small { color: var(--dim); font: 10px/1.4 var(--mono); }
.tr-note { margin-top: auto; color: var(--dim); font-size: 11.5px; line-height: 1.55; }
.tr-cta { display: inline-flex; justify-content: center; align-items: center; margin-top: 20px; padding: 14px 20px; border-radius: 12px; color: #06121c; background: var(--cyan); font-size: 14px; font-weight: 750; transition: box-shadow .2s, transform .2s; }
.tr-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(77, 214, 255, .3); }
.tr-formula { max-width: 880px; margin: 18px auto 0; color: var(--dim); font: 11.5px/1.6 var(--mono); text-align: center; }
.tr-formula strong { color: var(--muted); }
.tr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .tr-heading,
  .tr-shell { grid-template-columns: 1fr; }
  .tr-heading { gap: 18px; }
  .tr-input-panel { border-right: 0; border-bottom: 1px solid var(--line2); }
}

@media (max-width: 620px) {
  .time-recovered-section { padding-top: 20px; padding-bottom: 88px; }
  .tr-heading h2 { font-size: clamp(34px, 10vw, 46px); }
  .tr-shell { border-radius: 20px; }
  .tr-input-panel,
  .tr-result-panel { padding: 24px 18px; }
  .tr-panel-heading { gap: 12px; }
  .tr-controls { grid-template-columns: minmax(0, 1fr) 70px; gap: 12px; }
  .tr-result-grid { grid-template-columns: 1fr; }
  .tr-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
  .tr-result span { min-height: 0; }
  .tr-result strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 28px; text-align: right; }
  .tr-result small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-cta { transition: none; }
}
