/* Specific calculator pages (percentage-calculator.html etc.), built by scripts/gen-calc-pages.mjs. Builds on convert.css. */
.cx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
@media (max-width: 560px) { .cx-grid { grid-template-columns: minmax(0, 1fr); } }
.cx-full { grid-column: 1 / -1; }
.cx-sub { font-size: 1.15rem; color: #444; margin: 0 0 0.8rem; }
.cx-field { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; color: #444; min-width: 0; }
.cx-field input, .cx-field select { font: inherit; font-size: 1.15rem; font-weight: 400; padding: 0.6rem 0.8rem; border: 2px solid #d9dcef; border-radius: 10px; background: #fff; color: #222; width: 100%; min-width: 0; box-sizing: border-box; }
.cx-field input:focus, .cx-field select:focus { outline: none; border-color: #667eea; }
.cx-check { display: flex; align-items: center; gap: 0.5rem; color: #444; font-weight: 400; }
.cx-out { margin-top: 1.1rem; padding: 1rem 1.1rem; background: #f5f6fd; border-radius: 10px; min-height: 3.2rem; }
.cx-out .cv-table { margin-top: 0.6rem; background: #fff; }
.cx-big { font-size: 1.6rem; font-weight: 700; color: #3b3f8f; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.cx-big small { font-size: 0.9rem; font-weight: 400; color: #666; }
.cx-nums { font-size: 1.35rem; }
.cx-cat { font-size: 1.15rem; font-weight: 600; margin: 0.2rem 0 0.6rem; }
.cx-hint { color: #666; margin: 0; }
.cx-error { color: #b3261e; font-weight: 600; }
.cx-strong td { font-weight: 700; }
/* percentage: one sentence per form */
.cx-pct { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; padding: 0.9rem 0; border-bottom: 1px solid #e6e8f5; font-size: 1.05rem; }
.cx-pct:last-child { border-bottom: 0; }
.cx-pct input { width: 7.5rem; font: inherit; font-size: 1.1rem; padding: 0.45rem 0.6rem; border: 2px solid #d9dcef; border-radius: 8px; }
.cx-pct input:focus { outline: none; border-color: #667eea; }
.cx-pct output { min-width: 6rem; padding: 0.4rem 0.7rem; background: #f5f6fd; border-radius: 8px; font-size: 1.1rem; }
@media (max-width: 560px) { .cx-pct input { width: 5.5rem; } .cx-pct output { min-width: 4.5rem; } }
.cx-pct h2 { flex-basis: 100%; font-size: 1rem; color: #667eea; margin: 0; }
.cx-btns { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cx-btn { font: inherit; font-weight: 600; padding: 0.5rem 0.95rem; border-radius: 8px; border: 2px solid #667eea; background: #fff; color: #4c56c0; cursor: pointer; }
.cx-btn:hover, .cx-btn.cx-on { background: #eef0fd; }
.cx-btn.cx-primary { background: #667eea; color: #fff; }
.cx-btn.cx-primary:hover { background: #5568d8; }
.cx-seg { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.cx-scale { position: relative; height: 12px; border-radius: 6px; margin: 1.2rem 0 0.3rem; background: linear-gradient(90deg, #5b9bd5 0 14%, #4caf50 14% 40%, #f2b233 40% 60%, #e57373 60% 100%); }
.cx-scale span { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; background: #222; border-radius: 2px; }
.cx-scale-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: #666; }
.cx-pw { display: flex; gap: 0.5rem; }
.cx-pw input { flex: 1; min-width: 0; font: 600 1.2rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 0.7rem 0.8rem; border: 2px solid #d9dcef; border-radius: 10px; background: #f5f6fd; color: #222; }
.cx-range { width: 100%; }
.cx-tools { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 0.8rem; }
.cx-tools a { display: block; padding: 0.9rem 1rem; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(60, 50, 120, 0.1); text-decoration: none; color: #333; height: 100%; box-sizing: border-box; }
.cx-tools a:hover { box-shadow: 0 4px 16px rgba(60, 50, 120, 0.2); }
.cx-tools strong { display: block; color: #4c56c0; margin-bottom: 0.25rem; }
.cx-tools span { font-size: 0.92rem; color: #555; }
