:root {
  --tcr-ink: #17352d;
  --tcr-muted: #64746f;
  --tcr-green: #0a8f5a;
  --tcr-green-dark: #08734a;
  --tcr-green-soft: #eaf8f1;
  --tcr-orange: #e87520;
  --tcr-orange-dark: #b94f0a;
  --tcr-orange-soft: #fff3e9;
  --tcr-blue: #2473c8;
  --tcr-blue-soft: #edf5ff;
  --tcr-line: #dce8e3;
  --tcr-panel: #ffffff;
  --tcr-page: #f7faf8;
  --tcr-danger: #a93627;
  --tcr-danger-soft: #fff1ef;
}

.time-card-rounding-page { background: var(--tcr-page); color: var(--tcr-ink); }
.time-card-rounding-page * { box-sizing: border-box; }
.tcr-skip { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.tcr-skip:focus { left:16px; top:16px; width:auto; height:auto; z-index:10000; padding:10px 14px; border-radius:8px; background:#fff; color:var(--tcr-ink); box-shadow:0 8px 30px rgba(0,0,0,.15); }

.tcr-hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(232,117,32,.24), transparent 26%),
    radial-gradient(circle at 9% 84%, rgba(36,115,200,.12), transparent 30%),
    linear-gradient(135deg, #0b6f4a 0%, #0a8f5a 55%, #087a50 100%);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.tcr-hero-inner { max-width:1180px; margin:0 auto; padding:64px 24px 58px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:48px; align-items:center; }
.tcr-kicker { display:inline-flex; align-items:center; gap:8px; font:700 12px/1.2 "DM Sans",sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#d5f4e6; }
.tcr-kicker::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.tcr-hero h1 { margin:14px 0 16px; max-width:760px; font:800 clamp(38px,5.2vw,64px)/.98 "Bricolage Grotesque",sans-serif; letter-spacing:-.045em; }
.tcr-hero-copy { margin:0; max-width:780px; color:rgba(255,255,255,.9); font-size:18px; line-height:1.66; }
.tcr-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.tcr-btn { display:inline-flex; min-height:46px; align-items:center; justify-content:center; padding:11px 17px; border-radius:11px; font-weight:800; text-decoration:none; border:1px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
.tcr-btn:hover { transform:translateY(-2px); }
.tcr-btn-primary { background:var(--tcr-orange); color:#fff; box-shadow:0 10px 28px rgba(110,46,4,.25); }
.tcr-btn-primary:hover { background:#f0832f; box-shadow:0 14px 32px rgba(110,46,4,.32); }
.tcr-btn-secondary { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.32); }
.tcr-btn-secondary:hover { background:rgba(255,255,255,.17); }
.tcr-privacy-inline { margin-top:20px; display:flex; align-items:flex-start; gap:9px; max-width:720px; color:#dff6eb; font-size:13px; line-height:1.5; }
.tcr-privacy-inline svg { flex:0 0 auto; margin-top:1px; }

.tcr-example { align-self:stretch; border:1px solid rgba(255,255,255,.18); border-radius:20px; padding:24px; background:rgba(255,255,255,.11); backdrop-filter:blur(6px); box-shadow:0 18px 45px rgba(4,65,43,.22); }
.tcr-example-label { display:inline-block; padding:6px 9px; border-radius:999px; background:rgba(255,243,233,.14); border:1px solid rgba(255,230,210,.26); color:#ffe5d1; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.tcr-example h2 { margin:14px 0 18px; font:800 25px/1.1 "Bricolage Grotesque",sans-serif; }
.tcr-example-row,.tcr-example-total { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid rgba(255,255,255,.15); font-size:14px; }
.tcr-example-row span,.tcr-example-total span { color:#dcf2e8; }
.tcr-example-row strong,.tcr-example-total strong { text-align:right; }
.tcr-example-total { margin-top:4px; padding-top:16px; }
.tcr-example-total strong { color:#ffd2b1; font-size:18px; }

.tcr-shell { max-width:1180px; margin:0 auto; padding:42px 24px 76px; }
.tcr-tool-layout { display:grid; grid-template-columns:minmax(0,1.22fr) minmax(320px,.78fr); gap:24px; align-items:start; }
.tcr-panel { background:var(--tcr-panel); border:1px solid var(--tcr-line); border-radius:18px; box-shadow:0 10px 32px rgba(26,72,58,.06); }
.tcr-input-panel { overflow:hidden; }
.tcr-panel-head { padding:26px 28px 20px; background:linear-gradient(180deg,#fff,#fbfdfc); border-bottom:1px solid var(--tcr-line); }
.tcr-panel-head h2,.tcr-results-head h2,.tcr-side h2,.tcr-content h2 { font-family:"Bricolage Grotesque",sans-serif; color:var(--tcr-ink); letter-spacing:-.025em; }
.tcr-panel-head h2 { margin:8px 0 8px; font-size:29px; line-height:1.08; }
.tcr-panel-head p { margin:0; color:var(--tcr-muted); line-height:1.62; }
.tcr-form { padding:26px 28px 30px; }
.tcr-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.tcr-field { display:flex; flex-direction:column; gap:7px; color:#29473f; font-size:14px; font-weight:800; }
.tcr-field small { color:var(--tcr-muted); font-size:12px; font-weight:500; line-height:1.45; }
.tcr-money-input,.tcr-hours-input { position:relative; display:flex; align-items:center; }
.tcr-money-input > span:first-child { position:absolute; left:13px; color:#577069; font-weight:800; z-index:1; }
.tcr-money-input input { padding-left:31px; }
.tcr-hours-input > span { position:absolute; right:12px; color:#71817c; font-weight:700; font-size:12px; }
.tcr-hours-input input { padding-right:58px; }
.tcr-field input,.tcr-field select { width:100%; min-height:46px; border:1px solid #cddbd5; border-radius:10px; background:#fff; color:#17352d; padding:10px 12px; font:600 16px/1.3 "DM Sans",sans-serif; outline:none; transition:border-color .18s ease, box-shadow .18s ease; }
.tcr-field input:focus,.tcr-field select:focus { border-color:var(--tcr-green); box-shadow:0 0 0 3px rgba(10,143,90,.12); }
.tcr-method-panel { margin:20px 0 22px; padding:16px 17px; border:1px solid #f2d5be; border-left:4px solid var(--tcr-orange); border-radius:12px; background:var(--tcr-orange-soft); }
.tcr-method-panel h3 { margin:0 0 5px; font-size:15px; }
.tcr-method-panel p { margin:0; color:#765641; font-size:13px; line-height:1.55; }
.tcr-section-label { margin-top:4px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--tcr-green); }
.tcr-section-copy { margin:6px 0 14px; color:var(--tcr-muted); font-size:14px; line-height:1.55; }
.tcr-week-rows { display:grid; gap:10px; }
.tcr-week-row { padding:14px; border:1px solid #dce8e3; border-radius:13px; background:#fbfdfc; }
.tcr-week-row-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.tcr-week-row-head strong { font-size:14px; }
.tcr-remove-week { border:0; background:none; color:#a84432; font-weight:800; cursor:pointer; padding:4px 6px; }
.tcr-add-week { margin-top:12px; min-height:42px; border:1px dashed #aac9bb; border-radius:10px; background:#f3fbf7; color:var(--tcr-green-dark); padding:9px 13px; font-weight:800; cursor:pointer; }
.tcr-add-week:hover:not(:disabled) { background:#e9f7ef; }
.tcr-add-week:disabled { opacity:.55; cursor:not-allowed; }
.tcr-confirm { margin-top:22px; display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; padding:15px; border:1px solid #cdded7; border-radius:12px; background:#f8fbfa; color:#3f5750; font-size:13px; line-height:1.52; }
.tcr-confirm input { margin-top:3px; width:17px; height:17px; accent-color:var(--tcr-green); }
.tcr-form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.tcr-submit,.tcr-reset,.tcr-print { min-height:45px; border-radius:10px; padding:10px 15px; font-weight:800; cursor:pointer; }
.tcr-submit { border:1px solid var(--tcr-green); background:var(--tcr-green); color:#fff; flex:1 1 240px; }
.tcr-submit:hover { background:var(--tcr-green-dark); }
.tcr-reset,.tcr-print { border:1px solid #cbd9d3; background:#fff; color:#28463e; }
.tcr-reset:hover,.tcr-print:hover { background:#f3f7f5; }
.tcr-error { margin:0 28px 28px; padding:13px 15px; border:1px solid #efc5bf; border-radius:11px; background:var(--tcr-danger-soft); color:var(--tcr-danger); font-weight:700; line-height:1.45; }

.tcr-results { overflow:hidden; margin-bottom:24px; }
.tcr-results-head { padding:22px 24px 16px; border-bottom:1px solid var(--tcr-line); background:linear-gradient(180deg,#effaf4,#fff); }
.tcr-results-head span { color:var(--tcr-green); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.tcr-results-head h2 { margin:6px 0 0; font-size:25px; }
.tcr-primary-result { margin:20px 22px 14px; padding:18px; border-radius:15px; background:linear-gradient(135deg,#fff2e6,#fff9f4); border:1px solid #f3cfae; }
.tcr-primary-result .label { display:block; color:#8a4b1c; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.tcr-primary-result .value { display:block; margin-top:6px; color:var(--tcr-orange-dark); font:800 34px/1 "Bricolage Grotesque",sans-serif; }
.tcr-primary-result .definition { margin:10px 0 0; color:#705a49; font-size:12px; line-height:1.5; }
.tcr-metrics { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:0 22px 20px; }
.tcr-metric { min-width:0; padding:12px; border:1px solid #e0e9e5; border-radius:11px; background:#fbfdfc; }
.tcr-metric span { display:block; color:var(--tcr-muted); font-size:11px; line-height:1.3; }
.tcr-metric strong { display:block; margin-top:4px; overflow-wrap:anywhere; font-size:15px; }
.tcr-trace { margin:0 22px 16px; padding:14px; border-radius:11px; background:#eff6ff; border:1px solid #d2e5fa; }
.tcr-trace strong { display:block; margin-bottom:5px; color:#245b94; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.tcr-trace code { color:#315c86; white-space:normal; font-size:12px; line-height:1.5; }
.tcr-note { margin:0 22px 18px; padding:14px; border-radius:11px; border:1px solid #d6e8df; background:#f2faf6; }
.tcr-note strong { color:#1d684a; font-size:13px; }
.tcr-note p { margin:5px 0 0; color:#536a62; font-size:12px; line-height:1.5; }
.tcr-breakdown { padding:0 22px 22px; }
.tcr-breakdown h3 { margin:0 0 9px; font-size:15px; }
.tcr-breakdown-table-wrap { overflow-x:auto; border:1px solid #dfe9e4; border-radius:11px; }
.tcr-breakdown-table { width:100%; border-collapse:collapse; min-width:660px; font-size:12px; }
.tcr-breakdown-table th,.tcr-breakdown-table td { padding:9px 10px; text-align:right; border-bottom:1px solid #e6eeea; }
.tcr-breakdown-table th:first-child,.tcr-breakdown-table td:first-child { text-align:left; }
.tcr-breakdown-table th { color:#4d645d; background:#f7faf8; font-weight:800; }
.tcr-breakdown-table tbody tr:last-child td { border-bottom:0; }
.tcr-result-actions { padding:0 22px 22px; }

.tcr-side { padding:24px; }
.tcr-side h2 { margin:8px 0 10px; font-size:25px; line-height:1.08; }
.tcr-side > p { color:var(--tcr-muted); line-height:1.62; }
.tcr-side ul { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:14px; }
.tcr-side li { display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:start; color:#51665f; font-size:13px; line-height:1.48; }
.tcr-side li > span { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--tcr-blue-soft); color:var(--tcr-blue); font-weight:800; }
.tcr-side li strong { color:#213f37; }

.tcr-trust-strip { margin:24px 0 44px; display:grid; grid-template-columns:repeat(3,1fr); overflow:hidden; border:1px solid var(--tcr-line); border-radius:16px; background:#fff; }
.tcr-trust-strip > div { padding:17px 18px; border-right:1px solid var(--tcr-line); }
.tcr-trust-strip > div:last-child { border-right:0; }
.tcr-trust-strip strong,.tcr-trust-strip span { display:block; }
.tcr-trust-strip strong { font-size:13px; }
.tcr-trust-strip span { margin-top:4px; color:var(--tcr-muted); font-size:12px; line-height:1.45; }

.tcr-content { display:grid; gap:44px; }
.tcr-content section { scroll-margin-top:90px; }
.tcr-content .tcr-section-head { max-width:800px; margin-bottom:18px; }
.tcr-content .tcr-section-head h2 { margin:5px 0 8px; font-size:31px; line-height:1.08; }
.tcr-content .tcr-section-head p { margin:0; color:var(--tcr-muted); line-height:1.65; }
.tcr-formula-block { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.72fr); gap:22px; }
.tcr-formula-visual { padding:24px; border-radius:17px; color:#fff; background:linear-gradient(135deg,#165f47,#0a8f5a); box-shadow:0 14px 34px rgba(10,95,68,.13); }
.tcr-formula-visual > span { display:block; color:#cff1e1; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; }
.tcr-formula-visual strong { font-size:16px; line-height:1.7; }
.tcr-formula-note { padding:23px; border:1px solid #f0d1b9; border-radius:17px; background:var(--tcr-orange-soft); }
.tcr-formula-note h3 { margin:0 0 8px; font:800 20px/1.1 "Bricolage Grotesque",sans-serif; }
.tcr-formula-note p { margin:0; color:#6c594a; line-height:1.62; }
.tcr-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.tcr-card { padding:20px; border:1px solid var(--tcr-line); border-radius:15px; background:#fff; }
.tcr-card .tcr-card-icon { width:38px; height:38px; display:grid; place-items:center; margin-bottom:13px; border-radius:11px; background:var(--tcr-green-soft); color:var(--tcr-green); font-weight:900; }
.tcr-card:nth-child(2) .tcr-card-icon { background:var(--tcr-orange-soft); color:var(--tcr-orange-dark); }
.tcr-card:nth-child(3) .tcr-card-icon { background:var(--tcr-blue-soft); color:var(--tcr-blue); }
.tcr-card h3 { margin:0 0 8px; font-size:17px; }
.tcr-card p { margin:0; color:var(--tcr-muted); line-height:1.58; font-size:14px; }
.tcr-two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.tcr-copy-panel { padding:24px; border:1px solid var(--tcr-line); border-radius:16px; background:#fff; }
.tcr-copy-panel h2,.tcr-copy-panel h3 { margin-top:0; }
.tcr-copy-panel p,.tcr-copy-panel li { color:var(--tcr-muted); line-height:1.65; }
.tcr-copy-panel ul { padding-left:20px; }
.tcr-sources { padding:24px; border:1px solid #d5e6f8; border-radius:16px; background:#f4f9ff; }
.tcr-sources h2 { margin-top:0; }
.tcr-sources p { color:#5d6d7c; line-height:1.65; }
.tcr-source-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.tcr-source-links a { padding:9px 11px; border-radius:9px; background:#fff; border:1px solid #cfe0f4; color:#205d9c; font-weight:800; font-size:13px; text-decoration:none; }
.tcr-source-links a:hover { border-color:#9fc4ea; background:#eef6ff; }
.tcr-faq { display:grid; gap:10px; }
.tcr-faq details { border:1px solid var(--tcr-line); border-radius:12px; background:#fff; overflow:hidden; }
.tcr-faq summary { padding:15px 17px; cursor:pointer; font-weight:800; }
.tcr-faq details p { margin:0; padding:0 17px 16px; color:var(--tcr-muted); line-height:1.62; }
.tcr-related { display:flex; justify-content:space-between; gap:22px; align-items:flex-start; padding:25px; border-radius:17px; background:#123e32; color:#fff; }
.tcr-related h2 { margin:0 0 6px; color:#fff; }
.tcr-related p { margin:0; color:#c8e4da; max-width:580px; line-height:1.55; }
.tcr-related-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; max-width:500px; }
.tcr-related-links a { padding:8px 10px; border-radius:9px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); color:#fff; font-size:12px; font-weight:800; text-decoration:none; }
.tcr-related-links a:hover { background:rgba(255,255,255,.14); }

@media (max-width:900px) {
  .tcr-hero-inner,.tcr-tool-layout,.tcr-formula-block { grid-template-columns:1fr; }
  .tcr-hero-inner { gap:28px; padding-top:48px; }
  .tcr-example { max-width:620px; }
  .tcr-trust-strip { grid-template-columns:1fr; }
  .tcr-trust-strip > div { border-right:0; border-bottom:1px solid var(--tcr-line); }
  .tcr-trust-strip > div:last-child { border-bottom:0; }
  .tcr-card-grid { grid-template-columns:1fr; }
  .tcr-related { flex-direction:column; }
  .tcr-related-links { justify-content:flex-start; max-width:none; }
}

@media (max-width:620px) {
  .tcr-hero-inner,.tcr-shell { padding-left:16px; padding-right:16px; }
  .tcr-hero-inner { padding-top:38px; padding-bottom:40px; }
  .tcr-hero-copy { font-size:16px; }
  .tcr-grid-2,.tcr-metrics,.tcr-two-col { grid-template-columns:1fr; }
  .tcr-panel-head,.tcr-form { padding-left:18px; padding-right:18px; }
  .tcr-error { margin-left:18px; margin-right:18px; }
  .tcr-primary-result,.tcr-trace,.tcr-note { margin-left:16px; margin-right:16px; }
  .tcr-metrics,.tcr-breakdown,.tcr-result-actions { padding-left:16px; padding-right:16px; }
  .tcr-related { padding:20px; }
}

@media print {
  #main-nav,.ps-drawer,.app-tabbar,footer,.tcr-hero,.tcr-input-panel,.tcr-side,.tcr-trust-strip,.tcr-content,.tcr-result-actions { display:none !important; }
  body.time-card-rounding-page { background:#fff; }
  .tcr-shell { max-width:none; padding:0; }
  .tcr-tool-layout { display:block; }
  #time-card-rounding-results { display:block !important; box-shadow:none; border:0; }
}

.tcr-rounding-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:10px; }
.tcr-rounding-option { position:relative; }
.tcr-rounding-option input { position:absolute; opacity:0; pointer-events:none; }
.tcr-rounding-option label { display:block; min-height:100%; padding:14px; border:1px solid #cddbd5; border-radius:12px; background:#fff; cursor:pointer; transition:border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.tcr-rounding-option label strong,.tcr-rounding-option label span { display:block; }
.tcr-rounding-option label strong { font-size:14px; }
.tcr-rounding-option label span { margin-top:5px; color:var(--tcr-muted); font-size:12px; line-height:1.4; }
.tcr-rounding-option input:checked + label { border-color:var(--tcr-green); background:var(--tcr-green-soft); box-shadow:0 0 0 2px rgba(10,143,90,.10); }
.tcr-rounding-option input:focus-visible + label { outline:3px solid rgba(36,115,200,.28); outline-offset:2px; }
.tcr-rounding-option label:hover { transform:translateY(-2px); border-color:#9fc6b6; box-shadow:0 8px 20px rgba(26,72,58,.08); }

.tcr-intervals { display:grid; gap:10px; }
.tcr-interval-row { border:1px solid #dce8e3; border-radius:13px; background:#fbfdfc; padding:14px; }
.tcr-interval-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.tcr-interval-title { font-weight:800; font-size:14px; }
.tcr-remove-row { border:0; background:none; color:#a84432; font-weight:800; cursor:pointer; padding:4px 6px; }
.tcr-interval-grid { display:grid; grid-template-columns:minmax(120px,1.2fr) minmax(110px,1fr) minmax(110px,1fr); gap:10px; }
.tcr-interval-grid .tcr-field label { font-size:12px; }
.tcr-add-row { margin-top:12px; min-height:42px; border:1px dashed #aac9bb; border-radius:10px; background:#f3fbf7; color:var(--tcr-green-dark); padding:9px 13px; font-weight:800; cursor:pointer; }
.tcr-add-row:hover:not(:disabled) { background:#e9f7ef; }
.tcr-add-row:disabled { opacity:.55; cursor:not-allowed; }

.tcr-impact { margin:0 22px 18px; padding:15px; border-radius:12px; border:1px solid #d6e8df; background:#f2faf6; }
.tcr-impact[data-impact="down"] { border-color:#f0c4bd; background:#fff4f2; }
.tcr-impact[data-impact="up"] { border-color:#f0d1b9; background:#fff7ef; }
.tcr-impact strong { display:block; font-size:13px; }
.tcr-impact p { margin:5px 0 0; color:#536a62; font-size:12px; line-height:1.55; }
.tcr-impact[data-impact="down"] strong { color:#92392e; }
.tcr-impact[data-impact="up"] strong { color:#9a571e; }

.tcr-table-wrap { margin:0 22px 18px; overflow:auto; border:1px solid var(--tcr-line); border-radius:12px; }
.tcr-table { width:100%; min-width:680px; border-collapse:collapse; font-size:12px; }
.tcr-table th,.tcr-table td { padding:10px 11px; border-bottom:1px solid #e4ece8; text-align:left; white-space:nowrap; }
.tcr-table th { background:#f4f8f6; color:#4b625b; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.tcr-table tr:last-child td { border-bottom:0; }
.tcr-delta-positive { color:#9a571e; font-weight:800; }
.tcr-delta-negative { color:#92392e; font-weight:800; }
.tcr-delta-neutral { color:#4f655e; font-weight:800; }

.tcr-sample-note { margin-top:12px; padding:12px 14px; border-radius:10px; background:#edf5ff; border:1px solid #d2e5fa; color:#315c86; font-size:12px; line-height:1.5; }

@media (max-width:720px) {
  .tcr-rounding-options { grid-template-columns:1fr; }
  .tcr-interval-grid { grid-template-columns:1fr 1fr; }
  .tcr-interval-grid .tcr-field:first-child { grid-column:1 / -1; }
}

@media (max-width:480px) {
  .tcr-interval-grid { grid-template-columns:1fr; }
  .tcr-interval-grid .tcr-field:first-child { grid-column:auto; }
}
