.tool-hero {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin: 0 auto 0.5rem;
  max-width: 720px;
}
.tool-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.tool-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}
.calc-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.75rem;
}
.ts-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.ts-top-bar h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ts-top-bar h2 i { color: #0284c7; }
.ts-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ts-btn-ghost {
  background: var(--bg, #f8fafc);
  color: var(--text, #0f172a);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 9px;
  padding: 0.42rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.ts-btn-ghost:hover { border-color: #0284c7; color: #0284c7; }
.ts-btn-primary {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.ts-meta-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-field input, .form-field select {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 10px;
  background: var(--bg, #fff);
  color: var(--text, #0f172a);
}

.ts-table-scroll { width: 100%; overflow-x: auto; margin-bottom: 1.25rem; }
.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ts-table th, .ts-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  text-align: left;
  white-space: nowrap;
}
.ts-table th {
  background: var(--bg, #f8fafc);
  font-weight: 700;
  color: var(--text, #0f172a);
}
.ts-table input[type="time"], .ts-table input[type="number"] {
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  background: var(--bg, #fff);
  color: var(--text, #0f172a);
  font-size: 0.9rem;
}
.ts-table input[type="number"] { width: 78px; }
.ts-day-cell { font-weight: 700; }
.ts-dec-cell { font-weight: 700; color: #0284c7; }

.ts-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.ts-stat {
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg, #f8fafc);
}
.ts-stat.highlight {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(29, 78, 216, 0.05));
  border-color: #38bdf8;
}
.ts-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted, #64748b); margin-bottom: 0.35rem; }
.ts-val { font-size: 1.45rem; font-weight: 800; color: var(--text, #0f172a); }
.ts-sub { font-size: 0.8rem; color: var(--text-muted, #64748b); margin-top: 0.3rem; }

.ts-bottom-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

@media print {
  #navbar-root, #footer-root, .tool-hero, .ts-presets, .ts-bottom-actions, .content-section, .related-tools-section { display: none !important; }
  .calc-card { box-shadow: none; border: none; padding: 0; }
}
