@scope (#original-content) {

#tc-calculator-section * { box-sizing: border-box; }

#tc-calculator-section h1 { font-size: 32px; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; text-align: center; line-height: 1.3; }
#tc-calculator-section h2 { font-size: 24px; font-weight: 700; color: #1e3a5f; margin-top: 40px; margin-bottom: 15px; border-bottom: 3px solid #2563eb; padding-bottom: 8px; }
#tc-calculator-section h3 { font-size: 20px; font-weight: 700; color: #1e3a5f; margin-top: 25px; margin-bottom: 12px; }
#tc-calculator-section h4 { font-size: 16px; font-weight: 700; color: #1e3a5f; margin-top: 0; margin-bottom: 14px; }
#tc-calculator-section p { font-size: 16px; line-height: 1.75; color: #374151; margin-bottom: 14px; font-weight: 500; }
#tc-calculator-section ul, #tc-calculator-section ol { font-size: 16px; line-height: 1.8; color: #374151; font-weight: 500; padding-left: 24px; margin-bottom: 14px; }
#tc-calculator-section li { margin-bottom: 6px; }
#tc-calculator-section code { background: #f1f5f9; color: #1e3a5f; padding: 2px 7px; border-radius: 4px; font-size: 14px; font-family: 'Consolas', 'Courier New', monospace; }

/* Tabs */
.tc-tabs { background: #f3f4f6; border-radius: 12px; padding: 6px; margin-bottom: 24px; flex-wrap: wrap; gap: 6px; }
.tc-tab-btn { flex:1; min-width: 150px; padding: 12px 16px; background: transparent; border: none; font-size: 14px; font-weight: 700; color: #4b5563; cursor: pointer; border-radius: 8px; transition: all 0.2s; text-align: center; font-family: inherit; }
.tc-tab-btn:hover { background: #e5e7eb; color: #1d4ed8; }
.tc-tab-btn.active { background: #ffffff; color: #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tc-tab-panel { display: none; animation: tcFadeIn 0.3s ease-in-out; }
.tc-tab-panel.active { display: block; }
@keyframes tcFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Calculator wrap */
.tc-calc-wrap { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 2px solid #93c5fd; border-radius: 14px; padding: 30px; margin: 24px 0; box-shadow: 0 4px 16px rgba(37,99,235,0.1); }
.tc-section-block { background: #ffffff; border: 2px solid #93c5fd; border-radius: 10px; padding: 22px; margin-bottom: 20px; }
.tc-input-group { margin-bottom: 18px; }
.tc-input-group label { display: block; margin-bottom: 7px; font-weight: 700; color: #1e3a5f; font-size: 14px; }
.tc-input-group input, .tc-input-group select { width: 100%; padding: 1px 14px; border: 2px solid #bfdbfe; border-radius: 8px; font-size: 16px; font-weight: 600; color: #1e3a5f; transition: border-color 0.25s; background-color: #ffffff; font-family: inherit; }
.tc-input-group input:focus, .tc-input-group select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }

.tc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tc-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.tc-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* Toggle */
.tc-toggle-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; margin-bottom: 15px; }
.tc-toggle-row > label { font-weight: 600; color: #374151; font-size: 15px; cursor: pointer; }
.tc-toggle { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.tc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.tc-toggle-slider { position: absolute; inset: 0; background-color: #d1d5db; border-radius: 26px; cursor: pointer; transition: background 0.25s; }
.tc-toggle-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.tc-toggle input:checked + .tc-toggle-slider { background-color: #2563eb; }
.tc-toggle input:checked + .tc-toggle-slider::before { transform: translateX(22px); }

/* Buttons */
.tc-btn-primary { width: 100%; padding: 16px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff; border: none; border-radius: 8px; font-size: 18px; font-weight: 800; cursor: pointer; transition: all 0.25s; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; font-family: inherit; }
.tc-btn-primary:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,99,235,0.35); }
.tc-btn-secondary { padding: 10px 18px; background: #ffffff; color: #2563eb; border: 2px solid #2563eb; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; }
.tc-btn-secondary:hover { background: #eff6ff; }

/* Results */
.tc-results-container { display: none; background: #ffffff; border: 2px solid #2563eb; border-radius: 12px; padding: 24px; margin-top: 24px; box-shadow: 0 8px 24px rgba(37,99,235,0.15); animation: tcSlideUp 0.3s ease-out; }
@keyframes tcSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tc-main-result { text-align: center; background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%); color: #fff; border-radius: 10px; padding: 24px 15px; margin-bottom: 20px; }
.tc-main-result-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; margin-bottom: 8px; }
.tc-main-result-value { font-size: 32px; font-weight: 900; line-height: 1.2; word-break: break-word; }
.tc-breakdown { background: #f8faff; border: 1px solid #dbeafe; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.tc-breakdown-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eff6ff; font-size: 15px; }
.tc-breakdown-row:last-child { border-bottom: none; }
.tc-breakdown-label { color: #6b7280; font-weight: 600; }
.tc-breakdown-val { color: #1e3a5f; font-weight: 800; text-align: right; }

/* Hours & Minutes quick calc */
.tc-hm-wrap { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 2px solid #86efac; border-radius: 14px; padding: 28px; margin: 24px 0; }
.tc-hm-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tc-hm-group { display: flex; flex-direction: column; }
.tc-hm-group label { font-size: 12px; font-weight: 700; color: #166534; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.tc-hm-group input { width: 72px; padding: 10px 8px; border: 2px solid #86efac; border-radius: 8px; font-size: 20px; font-weight: 700; color: #166534; text-align: center; font-family: inherit; background: #fff; }
.tc-hm-group input:focus { outline: none; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.tc-hm-sep { font-size: 28px; font-weight: 900; color: #16a34a; padding-bottom: 8px; line-height: 1; }
.tc-hm-op { padding: 1px 14px; border: 2px solid #86efac; border-radius: 8px; font-size: 22px; font-weight: 800; color: #166534; background: #fff; font-family: inherit; cursor: pointer; margin-bottom: 0; }
.tc-btn-green { padding: 13px 30px; background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.2s; font-family: inherit; text-transform: uppercase; letter-spacing: 0.5px; }
.tc-btn-green:hover { background: linear-gradient(135deg, #15803d 0%, #166534 100%); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(22,163,74,0.35); }
.tc-hm-result { display: none; background: #166534; color: #fff; border-radius: 10px; padding: 18px 24px; margin-top: 16px; text-align: center; }
.tc-hm-result-val { font-size: 34px; font-weight: 900; }
.tc-hm-result-sub { font-size: 14px; opacity: 0.85; margin-top: 5px; font-weight: 600; }

/* Example cards */
.tc-example-card { background: #f8faff; border: 2px solid #dbeafe; border-left: 5px solid #2563eb; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.tc-example-card h4 { color: #1d4ed8; margin-bottom: 12px; font-size: 17px; }
.tc-example-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 15px; line-height: 1.65; color: #374151; font-weight: 500; margin-bottom: 5px; }
.tc-example-row strong { color: #1e3a5f; min-width: 90px; flex-shrink: 0; }

/* Format table */
.tc-format-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.tc-format-table th { background: #1e3a5f; color: #fff; padding: 12px 15px; text-align: left; font-weight: 700; }
.tc-format-table td { padding: 11px 15px; border-bottom: 1px solid #e5e7eb; color: #374151; font-weight: 500; }
.tc-format-table tr:nth-child(even) td { background: #f8faff; }
.tc-format-table tr:last-child td { border-bottom: none; }

/* Info box */
.tc-info-box { background: #eff6ff; border: 2px solid #bfdbfe; border-radius: 10px; padding: 16px 20px; margin: 20px 0; font-size: 15px; color: #1e3a5f; font-weight: 600; line-height: 1.65; }

/* FAQ */
.tc-faq-item { border: 2px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.tc-faq-question { width: 100%; text-align: left; padding: 18px 20px; background: #ffffff; border: none; font-size: 16px; font-weight: 700; color: #1e3a5f; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; gap: 12px; }
.tc-faq-question:hover { background: #f9fafb; }
.tc-faq-question::after { content: '+'; font-size: 22px; color: #2563eb; transition: transform 0.3s; flex-shrink: 0; }
.tc-faq-answer { display: none; padding: 16px 20px 20px; background: #ffffff; color: #4b5563; font-size: 16px; line-height: 1.7; border-top: 1px solid #f3f4f6; }
.tc-faq-item.active .tc-faq-question::after { transform: rotate(45deg); }
.tc-faq-item.active .tc-faq-answer { display: block; }

/* Related grid */
.tc-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; margin-top: 16px; }
.tc-related-link { display: block; background: #eff6ff; border: 2px solid #bfdbfe; border-radius: 8px; padding: 12px 16px; text-decoration: none; color: #1d4ed8; font-weight: 700; font-size: 15px; text-align: center; transition: all 0.2s; }
.tc-related-link:hover { background: #dbeafe; border-color: #93c5fd; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 640px) {
  .tc-grid-2, .tc-grid-3, .tc-grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .tc-calc-wrap { padding: 16px; }
  .tc-section-block { padding: 16px; }
  #tc-calculator-section h1 { font-size: 26px; }
  #tc-calculator-section h2 { font-size: 21px; }
  .tc-main-result-value { font-size: 26px; }
  .tc-tab-btn { min-width: 120px; font-size: 13px; padding: 10px 12px; }
  .tc-hm-group input { width: 60px; font-size: 18px; }
}

}
