.sfic-tool {
  font-size: 13.5px;
  color: #1e1b4b;
}
.sfic-tool * {
  box-sizing: border-box;
}
.sfic-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.sfic-legend {
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 12px;
}
.sfic-row {
  margin-bottom: 14px;
}
.sfic-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}
.sfic-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sfic-input {
  width: 100%;
  height: 42px;
  padding: 0 50px 0 14px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e1b4b;
  background: #fafaff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.sfic-input::placeholder {
  color: #c7c9e0;
  font-weight: 500;
}
.sfic-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}
.sfic-input.sfic-invalid {
  border-color: #f87171;
  background: #fff5f5;
}
.sfic-unit {
  position: absolute;
  right: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
}
.sfic-divider {
  height: 1px;
  background: #e0e7ff;
  margin: 4px 0 18px;
}
.sfic-row#sfic-location-group,
.sfic-row#sfic-foam-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sfic-chip {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  background: #fafaff;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sfic-chip:hover {
  border-color: #6366f1;
}
.sfic-chip-active {
  background: #eef2ff;
  border-color: #4338ca;
  color: #4338ca;
}
.sfic-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.sfic-toggle-label {
  margin-bottom: 0;
}
.sfic-toggle-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.sfic-toggle-input {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}
.sfic-toggle-track {
  width: 44px;
  height: 24px;
  background: #e0e7ff;
  border-radius: 999px;
  position: relative;
  transition: background 0.15s;
}
.sfic-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(30, 27, 75, 0.25);
  transition: transform 0.15s;
}
.sfic-toggle-input:checked + .sfic-toggle-track {
  background: #4338ca;
}
.sfic-toggle-input:checked + .sfic-toggle-track .sfic-toggle-thumb {
  transform: translateX(20px);
}
.sfic-btn {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  background: #4338ca;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.sfic-btn:hover {
  background: #3730a3;
}
.sfic-btn:active {
  transform: scale(0.98);
}
.sfic-warn {
  font-size: 11.5px;
  font-weight: 600;
  color: #ef4444;
  text-align: center;
  min-height: 14px;
  margin: 10px 0 0;
}
.sfic-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.sfic-result-wide {
  grid-column: 1 / -1;
}
.sfic-result-card {
  background: #f8f9ff;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.sfic-result-card.sfic-has-value {
  background: #fff;
  border-color: #4338ca;
}
.sfic-result-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.sfic-tag-total {
  background: #eef2ff;
  color: #4338ca;
}
.sfic-tag-material {
  background: #f3f4f6;
  color: #6b7280;
}
.sfic-tag-labor {
  background: #f3f4f6;
  color: #6b7280;
}
.sfic-tag-compare {
  background: #fdf2f8;
  color: #be185d;
}
.sfic-tag-payback {
  background: #ecfdf5;
  color: #047857;
}
.sfic-result-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.sfic-result-unit-pre {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}
.sfic-result-value {
  font-size: 20px;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1;
}
.sfic-result-wide .sfic-result-value {
  font-size: 26px;
}
.sfic-result-unit {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
}
.sfic-result-diff {
  display: block;
  font-size: 10.5px;
  color: #9ca3af;
  margin-top: 4px;
  min-height: 13px;
}
.sfic-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: #9ca3af;
  margin: 14px 0 0;
  text-align: center;
}