/* Shared styles for ConverterFox calculator & text tools */
.cfx { display: grid; gap: 16px; }
.cfx-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.cfx label { display: block; font-weight: 600; font-size: 14px; color: #334155; margin-bottom: 6px; }
.cfx input[type=text], .cfx input[type=number], .cfx input[type=date], .cfx select, .cfx textarea, .cfx-calc input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: 16px; background: #fff; color: #0f172a;
}
.cfx textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.cfx input:focus, .cfx select:focus, .cfx textarea:focus, .cfx-calc input:focus { outline: 2px solid #2563eb33; border-color: #2563eb; }
.cfx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cfx-actions .button { cursor: pointer; border: 0; }
.cfx-out { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; min-height: 24px; }
.cfx-out:empty { display: none; }
.cfx-big { font-size: 28px; font-weight: 800; color: #1e3a8a; line-height: 1.25; word-break: break-all; }
.cfx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.cfx-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; text-align: center; }
.cfx-stat b { display: block; font-size: 22px; color: #1e3a8a; }
.cfx-stat span { font-size: 13px; color: #64748b; }
.cfx-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cfx-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font: inherit; font-size: 14px; }
.cfx-tabs button[aria-pressed=true] { background: #2563eb; color: #fff; border-color: #2563eb; }
.cfx-check { display: flex; flex-wrap: wrap; gap: 14px; }
.cfx-check label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.cfx-meter { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin-top: 10px; }
.cfx-meter i { display: block; height: 100%; width: 0; transition: width .2s; }
.cfx-calc { display: grid; gap: 12px; }
.cfx-calc .cfx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.cfx-calc .cfx-line input { width: 110px; flex: 0 0 auto; }
.cfx-calc .cfx-line output { font-weight: 800; color: #1e3a8a; margin-left: auto; }
.cfx-note { font-size: 13px; color: #64748b; margin: 0; }
.cfx-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.cfx-table th, .cfx-table td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.cfx-table th { background: #f1f5f9; }
.cfx-tablewrap { overflow-x: auto; }
@media (max-width: 600px) {
  .cfx-calc .cfx-line input { width: 90px; }
  .cfx-calc .cfx-line output { margin-left: 0; width: 100%; }
  .cfx-big { font-size: 22px; }
}
