.cbc-tool {
  font-size: 13.5px;
  color: #1e1b4b;
  width: 100%;
}
.cbc-tool * {
  box-sizing: border-box;
}
.cbc-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.cbc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}
.cbc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cbc-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 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;
}
.cbc-select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 14px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e1b4b;
  background-color: #fafaff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.cbc-input::placeholder {
  color: #c7c9e0;
  font-weight: 500;
}
.cbc-input:focus, .cbc-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}
.cbc-input.cbc-error, .cbc-select.cbc-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.cbc-unit {
  position: absolute;
  right: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
}
.cbc-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;
}
.cbc-btn:hover {
  background: #3730a3;
}
.cbc-btn:active {
  transform: scale(0.98);
}
.cbc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.cbc-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;
}
.cbc-card-full {
  grid-column: 1 / -1;
  padding: 14px 10px;
}
.cbc-result-card.cbc-has-value {
  background: #fff;
  border-color: #4338ca;
}
.cbc-result-card.cbc-has-main {
  background: #eef2ff;
  border-color: #6366f1;
}
.cbc-result-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cbc-tag-neutral {
  background: #e0e7ff;
  color: #4338ca;
}
.cbc-tag-main {
  background: #4338ca;
  color: #fff;
}
.cbc-result-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}
.cbc-result-value {
  font-size: 22px;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1;
}
.cbc-card-full .cbc-result-value {
  font-size: 28px;
  color: #4338ca;
}
.cbc-result-unit {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
}
.cbc-card-full .cbc-result-unit {
  color: #6366f1;
}
.cbc-result-diff {
  display: block;
  font-size: 10.5px;
  color: #9ca3af;
  margin-top: 4px;
  min-height: 13px;
}
.cbc-card-full .cbc-result-diff {
  font-weight: 500;
}
.cbc-hidden {
  display: none !important;
}
.cbc-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: #9ca3af;
  margin: 14px 0 0;
  text-align: center;
}