.ccc {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(241, 245, 249, 0.4));
  backdrop-filter: blur(20px);
  color: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.theme-dark .ccc {
  border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  color: #f8fafc;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ccc__warning {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.03);
  backdrop-filter: blur(8px);
}

.ccc__warning-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.ccc__warning-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.theme-dark .ccc__warning-text {
  color: #cbd5e1;
}

.ccc__warning-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.theme-dark .ccc__warning-title {
  color: #f8fafc;
}

.ccc__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ccc__layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ccc__meter-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 320px;
}

.theme-dark .ccc__meter-card {
  border-color: rgba(255, 255, 255, 0.03);
  background: rgba(15, 23, 42, 0.3);
  box-shadow: none;
}

.ccc__meter-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.theme-dark .ccc__meter-title {
  color: #f1f5f9;
}

.ccc__gauge-container {
  position: relative;
  height: 140px;
  margin: 2.5rem 0;
}

.ccc__gauge-track {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 16px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-dark .ccc__gauge-track {
  background: rgba(51, 65, 85, 0.5);
}

.ccc__gauge-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.ccc__gauge-segment--low {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.75));
}

.ccc__gauge-segment--normal {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.75));
}

.ccc__gauge-segment--high {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.75));
}

.ccc__displacement-bridge {
  position: absolute;
  top: 60px;
  height: 16px;
  background: repeating-linear-gradient(
    45deg,
    rgba(139, 92, 246, 0.15),
    rgba(139, 92, 246, 0.15) 6px,
    rgba(139, 92, 246, 0.3) 6px,
    rgba(139, 92, 246, 0.3) 12px
  );
  border-top: 1px dashed rgba(139, 92, 246, 0.5);
  border-bottom: 1px dashed rgba(139, 92, 246, 0.5);
  z-index: 1;
  transition: left 0.3s ease-out, width 0.3s ease-out;
}

.ccc__pointer {
  position: absolute;
  width: 2px;
  transition: left 0.3s ease-out, opacity 0.3s ease;
  z-index: 2;
}

.ccc__pointer--preview {
  opacity: 0.5;
}

.ccc__pointer--measured {
  top: 10px;
  height: 50px;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.ccc__pointer--measured::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #3b82f6;
}

.ccc__pointer--corrected {
  top: 76px;
  height: 50px;
  background: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.ccc__pointer--corrected::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #8b5cf6;
}

.ccc__pointer-label {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ccc__pointer-label--measured {
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
}

.ccc__pointer-label--corrected {
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
}

.ccc__scale-labels {
  position: relative;
  height: 20px;
  margin-top: 1rem;
}

.ccc__scale-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  transition: left 0.3s ease;
}

.theme-dark .ccc__scale-tick {
  color: #94a3b8;
}

.ccc__panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ccc__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.ccc__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ccc__field-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.theme-dark .ccc__field-title {
  color: #cbd5e1;
}

.ccc__input-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  transition: all 0.2s ease;
}

.theme-dark .ccc__input-group {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.ccc__input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ccc__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  background: transparent;
  outline: none;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 600;
}

.ccc__toggle-group {
  display: flex;
  background: rgba(241, 245, 249, 0.8);
  padding: 3px;
  border-radius: 8px;
  margin-right: 6px;
}

.theme-dark .ccc__toggle-group {
  background: rgba(30, 41, 59, 0.8);
}

.ccc__toggle-btn {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-dark .ccc__toggle-btn {
  color: #94a3b8;
}

.ccc__toggle-btn--active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.theme-dark .ccc__toggle-btn--active {
  background: #1e293b;
  color: #f8fafc;
}

.ccc__results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ccc__result-box {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.theme-dark .ccc__result-box {
  background: rgba(30, 41, 59, 0.2);
  border-color: rgba(255, 255, 255, 0.03);
}

.ccc__result-box--highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.03);
}

.theme-dark .ccc__result-box--highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
}

.ccc__result-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

.theme-dark .ccc__result-label {
  color: #cbd5e1;
}

.ccc__result-box--highlight .ccc__result-label {
  color: #7c3aed;
}

.theme-dark .ccc__result-box--highlight .ccc__result-label {
  color: #a78bfa;
}

.ccc__result-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ccc__result-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ccc__result-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.theme-dark .ccc__result-unit {
  color: #94a3b8;
}

.ccc__interpretation {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.ccc__interpretation--low {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.theme-dark .ccc__interpretation--low {
  color: #93c5fd;
}

.ccc__interpretation--normal {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.theme-dark .ccc__interpretation--normal {
  color: #6ee7b7;
}

.ccc__interpretation--high {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.theme-dark .ccc__interpretation--high {
  color: #fca5a5;
}

.ccc__formula {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

.theme-dark .ccc__formula {
  color: #94a3b8;
}

.ccc__formula code {
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.theme-dark .ccc__formula code {
  background: rgba(255, 255, 255, 0.04);
}
