.knowledge-tool-page { min-height: 70vh; padding-bottom: 72px; background: #f7f9fa; }
.tool-hero { padding: 56px 0 30px; }
.tool-hero .hero-description { max-width: 780px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 24px; align-items: start; }
.calculator-card, .result-card, .info-card, .industry-panel, .updates-empty { padding: 28px; border: 1px solid #dfe8eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(22, 51, 66, .05); }
.calculator-card h2, .result-card h2, .info-card h2, .industry-panel h2, .updates-empty h2 { margin-bottom: 18px; color: var(--navy); font-size: 24px; }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calculator-field { display: grid; gap: 7px; }
.calculator-field.full { grid-column: 1 / -1; }
.calculator-field label, .calculator-field legend { color: #344f5d; font-size: 14px; font-weight: 800; }
.calculator-field input, .calculator-field select, .calculator-field textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #c7d4d9; border-radius: 9px; background: #fff; color: var(--navy); font: inherit; }
.calculator-field textarea { min-height: 92px; resize: vertical; }
.calculator-field input:focus, .calculator-field select:focus, .calculator-field textarea:focus { outline: 3px solid rgba(20, 125, 135, .14); border-color: #168876; }
.mode-options { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; border: 0; }
.mode-options label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.mode-options input { width: auto; }
.calculator-actions { display: flex; gap: 10px; margin-top: 20px; }
.calculator-actions button { width: auto; }
.input-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.input-errors { margin: 16px 0 0; padding: 14px 16px; border: 1px solid #e6b7b7; border-radius: 10px; background: #fff4f4; color: #8a2828; }
.input-errors ul { margin: 7px 0 0; padding-left: 20px; }
.result-card { position: sticky; top: 86px; }
.result-placeholder { color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result-item { padding: 16px; border-radius: 12px; background: #f2f7f8; }
.result-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.result-item strong { color: var(--navy); font-size: 21px; }
.result-formula { margin: 18px 0 0; padding: 15px; border-left: 3px solid #168876; background: #eef8f6; color: #344f5d; line-height: 1.7; }
.safety-warning { margin-top: 24px; padding: 22px; border: 1px solid #e4d5a8; border-radius: 14px; background: #fffaf0; }
.safety-warning h2 { margin-bottom: 10px; color: #704e00; font-size: 20px; }
.safety-warning ul { margin: 0; padding-left: 22px; color: #574a2c; line-height: 1.75; }
.tool-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.info-card p, .info-card li, .updates-empty p { color: #526875; line-height: 1.75; }
.official-source { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e1e8eb; font-size: 13px; }
.official-source a { color: #087969; font-weight: 800; }
.industry-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.industry-tabs button { padding: 10px 15px; border: 1px solid #c7d5da; border-radius: 999px; background: #fff; color: #425966; font: inherit; font-weight: 800; cursor: pointer; }
.industry-tabs button[aria-pressed="true"] { border-color: #168876; background: #eef8f6; color: #087969; }
.industry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.industry-card { padding: 22px; border: 1px solid #e0e8eb; border-radius: 13px; background: #fff; }
.industry-card > p { margin: 0 0 7px; color: #168876; font-size: 12px; font-weight: 800; }
.industry-card h2 { margin: 0 0 8px; font-size: 19px; }
.industry-card h2 a { color: var(--navy); }
.industry-card span { color: var(--muted); font-size: 14px; line-height: 1.65; }
.industry-card .guide-actions { margin-top: 14px; }
.industry-card .guide-actions a { font-size: 13px; }
.updates-status { display: inline-block; margin-bottom: 14px; padding: 6px 10px; border-radius: 999px; background: #edf3f5; color: #506672; font-size: 12px; font-weight: 800; }
.updates-empty { text-align: center; }
.updates-empty p { max-width: 700px; margin: 0 auto 10px; }
.knowledge-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.knowledge-shortcuts a { padding: 17px; border: 1px solid #d9e5e8; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 800; box-shadow: 0 6px 18px rgba(22, 51, 66, .04); }
.knowledge-shortcuts a span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
@media (max-width: 860px) {
  .tool-layout { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .knowledge-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tool-hero { padding-top: 38px; }
  .calculator-card, .result-card, .info-card, .industry-panel, .updates-empty { padding: 21px; }
  .calculator-fields, .result-grid, .tool-info-grid, .industry-list, .knowledge-shortcuts { grid-template-columns: 1fr; }
  .calculator-actions { flex-direction: column; }
  .calculator-actions button { width: 100%; }
}
