@media (max-width:800px) {
.afc-cards, .afc-compare {
grid-template-columns:1fr!important
}
}
.afc-tool {
  font-size: 13.5px;
  color: #1e1b4b;
}
.afc-tool * {
  box-sizing: border-box;
}
.afc-row {
  margin-bottom: 14px;
}
.afc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}
.afc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.afc-input,
.afc-select {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 14px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e1b4b;
  background: #fafaff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
}
.afc-input-prefix {
  padding-left: 28px;
}
.afc-prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
}
.afc-input::placeholder {
  color: #c7c9e0;
  font-weight: 500;
}
.afc-input:focus,
.afc-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}
.afc-input.afc-err {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.afc-select-wrap {
  position: relative;
}
.afc-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #9ca3af;
  pointer-events: none;
}
.afc-select {
  padding-right: 30px;
  cursor: pointer;
}
.afc-divider {
  height: 1px;
  background: #e0e7ff;
  margin: 16px 0;
}
.afc-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.afc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.afc-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.afc-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  background: #fafaff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.afc-check-item.afc-checked {
  border-color: #6366f1;
  background: #f0f0ff;
}
.afc-check-item input {
  width: 14px;
  height: 14px;
  accent-color: #4338ca;
  cursor: pointer;
}
.afc-check-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  line-height: 1.2;
}
.afc-check-price {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}
.afc-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;
}
.afc-btn:hover { background: #3730a3; }
.afc-btn:active { transform: scale(0.98); }
.afc-results { margin-top: 16px; }
.afc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.afc-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;
}
.afc-card.afc-active {
  background: #fff;
  border-color: #4338ca;
}
.afc-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
  display: block;
}
.afc-card-val {
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1;
}
.afc-card-sub {
  display: block;
  font-size: 10.5px;
  color: #9ca3af;
  margin-top: 4px;
  min-height: 13px;
}
.afc-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.afc-cmp-card {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e0e7ff;
  background: #f8f9ff;
}
.afc-cmp-card.afc-active { background: #fff; border-color: #4338ca; }
.afc-cmp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.afc-cmp-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.afc-tag-pro { background: #e0e7ff; color: #3730a3; }
.afc-tag-diy { background: #dcfce7; color: #166534; }
.afc-tag-warn { background: #ffedd5; color: #c2410c; }
.afc-cmp-name { font-size: 12px; font-weight: 700; color: #4b5563; }
.afc-cmp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f8;
}
.afc-cmp-row:last-child { border-bottom: none; }
.afc-cmp-key { font-size: 11.5px; color: #9ca3af; }
.afc-cmp-val { font-size: 12px; font-weight: 700; color: #1e1b4b; }
.afc-errmsg { font-size: 11.5px; color: #ef4444; margin-top: 5px; display: none; }
.afc-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: #9ca3af;
  margin: 14px 0 0;
  text-align: center;
}
.afc-unit-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.afc-utab {
  flex: 1;
  height: 32px;
  border: 1.5px solid #e0e7ff;
  border-radius: 8px;
  background: #fafaff;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}
.afc-utab.afc-utab-active {
  background: #4338ca;
  color: #fff;
  border-color: #4338ca;
}