/* Kalkulator budi daya (/kalkulator) — memakai token warna dari chat.css. */
.kc-app { max-width: 860px; }
.kc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; margin: 6px 0 12px; }
.kc-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.kc-field[hidden] { display: none; }
.kc-wide { grid-column: 1 / -1; }
.kc-field select, .kc-field input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--sc-line);
  background: var(--sc-bg); color: var(--sc-ink); min-width: 0; }
.kc-more { margin: 4px 0 12px; }
.kc-more summary { cursor: pointer; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.kc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kc-table th, .kc-table td { text-align: left; vertical-align: top; padding: 7px 6px; border-top: 1px solid var(--sc-line); }
.kc-table tr:first-child th, .kc-table tr:first-child td { border-top: 0; }
.kc-table th { font-weight: 600; width: 34%; }
.kc-h { color: var(--sc-ink-soft); font-weight: 600; }
.kc-val { white-space: nowrap; }
.kc-meta { font-size: 12.5px; color: var(--sc-ink-soft); }
.kc-said { margin-top: 3px; overflow-wrap: anywhere; }
.kc-badge { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--sc-line);
  margin-right: 4px; background: var(--sc-bg); }
.kc-rujukan { border-color: var(--sc-accent); color: var(--sc-accent); }
.kc-hitungan { background: var(--sc-bg-soft); }
.kc-masukan { background: var(--sc-notice); border-color: var(--sc-notice-line); }
.kc-src li { margin-bottom: 8px; font-size: 14px; }
.kc-src a { color: var(--sc-accent); }
#kc-result .hc-warn { margin: 10px 0; }
@media (max-width: 560px) {
  .kc-table, .kc-table tbody, .kc-table tr, .kc-table th, .kc-table td { display: block; width: auto; }
  .kc-table th { border-top: 1px solid var(--sc-line); padding-bottom: 0; }
  .kc-table td { border-top: 0; padding-top: 2px; }
  .kc-val { white-space: normal; }
}
