.ft-tool { max-width: 840px; margin: 1.5rem auto; padding: clamp(14px, 3vw, 28px); border: 1px solid #d9e2ec; border-radius: 12px; background: #f8fafc; }
.ft-tool, .ft-tool * { box-sizing: border-box; }
.ft-tool [hidden] { display: none !important; }
.ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ft-field { min-width: 0; }
.ft-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.ft-field input, .ft-field select { display: block; width: 100%; max-width: 100%; min-width: 0; padding: 10px; min-height: 44px; font-size: 1rem; border: 1px solid #8998a8; border-radius: 6px; background: #fff; color: #172b4d; }
.ft-field small { display: block; line-height: 1.6; margin-top: 6px; color: #425466; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.ft-actions button { min-height: 44px; padding: 10px 20px; cursor: pointer; }
.ft-tool :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.ft-warning { padding: 14px; border-left: 4px solid #b56900; background: #fff8e8; line-height: 1.8; }
.ft-error { color: #a31515; font-weight: 700; }
.ft-state { color: #425466; }
.ft-result { margin-top: 20px; padding: 16px; background: #fff; border: 1px solid #b9cbdc; border-radius: 8px; }
.ft-total { font-size: clamp(1.35rem, 4.5vw, 2rem); font-weight: 700; color: #174e76; overflow-wrap: anywhere; }
.ft-table { border-collapse: collapse; width: 100%; table-layout: fixed; margin: 1rem 0; }
.ft-table th, .ft-table td { border-bottom: 1px solid #d9e2ec; padding: 10px 6px; text-align: left; overflow-wrap: anywhere; white-space: normal; }
.ft-table th { width: 63%; }
.ft-table td { text-align: right; font-variant-numeric: tabular-nums; }
.ft-sources { overflow-wrap: anywhere; }
.ft-sources li { margin-bottom: 10px; }
@media (max-width: 600px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-result { padding: 12px; }
  .ft-table th, .ft-table td { font-size: .9rem; padding: 9px 4px; }
}
