.cc-root {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #fde68a;
  }

  .cc-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  @media (min-width: 1024px) {
    .cc-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .cc-panel-left {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  @media (min-width: 768px) {
    .cc-panel-left {
      padding: 3rem;
    }
  }

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

  .cc-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cc-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #92400e;
  }

  .cc-input {
    width: 100%;
    background: #fff;
    border: 2px solid #fcd34d;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }

  .cc-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  }

  .cc-slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .cc-slider {
    flex: 1;
    height: 0.75rem;
    background: #fde68a;
    border-radius: 999px;
    appearance: none;
    cursor: pointer;
    accent-color: #d97706;
    outline: none;
  }

  .cc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #d97706;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
  }

  .cc-slider-val {
    font-size: 1.875rem;
    font-weight: 900;
    color: #b45309;
    width: 5rem;
    text-align: right;
    flex-shrink: 0;
  }

  .cc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #d97706;
  }

  .cc-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .cc-preset {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
  }

  .cc-preset-terracota {
    background: #ffedd5;
    border-color: #fdba74;
    color: #9a3412;
  }

  .cc-preset-terracota:hover {
    background: #fed7aa;
  }

  .cc-preset-gres {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
  }

  .cc-preset-gres:hover {
    background: #fde68a;
  }

  .cc-preset-porcelana {
    grid-column: span 2;
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
  }

  .cc-preset-porcelana:hover {
    background: #fecaca;
  }

  .cc-result-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #fcd34d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .cc-result-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #92400e;
    margin: 0 0 1rem;
  }

  .cc-result-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .cc-result-label {
    color: #64748b;
    font-size: 0.9rem;
  }

  .cc-result-value {
    font-weight: 900;
  }

  .cc-value-final {
    font-size: 1.875rem;
    color: #059669;
  }

  .cc-value-loss {
    font-size: 1.125rem;
    color: #dc2626;
  }

  .cc-tip {
    background: #fef3c7;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #fde68a;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #92400e;
    line-height: 1.5;
  }

  .cc-tip-icon {
    flex-shrink: 0;
    margin-top: 1px;
  }

  .cc-panel-right {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
  }

  @media (min-width: 768px) {
    .cc-panel-right {
      padding: 3rem;
    }
  }

  .cc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.12;
    pointer-events: none;
  }

  .cc-blob-top {
    top: 2.5rem;
    left: 2.5rem;
    width: 8rem;
    height: 8rem;
    background: #f59e0b;
  }

  .cc-blob-bottom {
    bottom: 2.5rem;
    right: 2.5rem;
    width: 10rem;
    height: 10rem;
    background: #f97316;
  }

  .cc-viz-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 24rem;
  }

  .cc-viz-aspect {
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cc-circle-initial {
    position: absolute;
    border-radius: 50%;
    border: 4px dashed #fbbf24;
    background: rgba(253, 230, 138, 0.2);
    transition: width 0.7s ease, height 0.7s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .cc-badge-initial {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #d97706;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .cc-circle-final {
    position: absolute;
    border-radius: 50%;
    border: 4px solid #059669;
    background: rgba(16, 185, 129, 0.3);
    transition: width 0.7s ease, height 0.7s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.3);
    width: 88%;
    height: 88%;
  }

  .cc-circle-inner {
    text-align: center;
  }

  .cc-viz-number {
    font-size: 3rem;
    font-weight: 900;
    color: #065f46;
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .cc-viz-unit {
    font-size: 0.875rem;
    font-weight: 700;
    color: #047857;
  }

  .cc-badge-loss {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
  }

  .cc-areas {
    margin-top: 4.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
  }

  .cc-area-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    padding: 0.75rem;
    backdrop-filter: blur(4px);
  }

  .cc-area-label {
    font-size: 0.7rem;
    color: #475569;
    margin-bottom: 0.25rem;
  }

  .cc-area-value {
    font-size: 1rem;
    font-weight: 700;
  }

  .cc-area-initial {
    color: #b45309;
  }

  .cc-area-final {
    color: #047857;
  }

  .theme-dark .cc-root {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-color: #334155;
  }

  .theme-dark .cc-label {
    color: #fbbf24;
  }

  .theme-dark .cc-input {
    background: #1e293b;
    border-color: #b45309;
    color: #f8fafc;
  }

  .theme-dark .cc-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  }

  .theme-dark .cc-slider {
    background: rgba(180, 83, 9, 0.3);
  }

  .theme-dark .cc-slider-val {
    color: #fbbf24;
  }

  .theme-dark .cc-slider-labels {
    color: #d97706;
  }

  .theme-dark .cc-preset-terracota {
    background: rgba(249, 115, 22, 0.15);
    border-color: #c2410c;
    color: #fb923c;
  }

  .theme-dark .cc-preset-terracota:hover {
    background: rgba(249, 115, 22, 0.25);
  }

  .theme-dark .cc-preset-gres {
    background: rgba(245, 158, 11, 0.15);
    border-color: #b45309;
    color: #fbbf24;
  }

  .theme-dark .cc-preset-gres:hover {
    background: rgba(245, 158, 11, 0.25);
  }

  .theme-dark .cc-preset-porcelana {
    background: rgba(220, 38, 38, 0.15);
    border-color: #991b1b;
    color: #f87171;
  }

  .theme-dark .cc-preset-porcelana:hover {
    background: rgba(220, 38, 38, 0.25);
  }

  .theme-dark .cc-result-box {
    background: #1e293b;
    border-color: #b45309;
  }

  .theme-dark .cc-result-title {
    color: #fbbf24;
  }

  .theme-dark .cc-result-label {
    color: #94a3b8;
  }

  .theme-dark .cc-value-final {
    color: #34d399;
  }

  .theme-dark .cc-value-loss {
    color: #f87171;
  }

  .theme-dark .cc-tip {
    background: rgba(180, 83, 9, 0.15);
    border-color: rgba(180, 83, 9, 0.4);
    color: #fbbf24;
  }

  .theme-dark .cc-panel-right {
    background: linear-gradient(135deg, #1e293b, #0f172a);
  }

  .theme-dark .cc-circle-initial {
    border-color: #b45309;
    background: rgba(180, 83, 9, 0.1);
  }

  .theme-dark .cc-badge-initial {
    background: #d97706;
  }

  .theme-dark .cc-circle-final {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
  }

  .theme-dark .cc-viz-number {
    color: #6ee7b7;
  }

  .theme-dark .cc-viz-unit {
    color: #34d399;
  }

  .theme-dark .cc-badge-loss {
    background: #ef4444;
  }

  .theme-dark .cc-area-item {
    background: rgba(30, 41, 59, 0.6);
  }

  .theme-dark .cc-area-label {
    color: #94a3b8;
  }

  .theme-dark .cc-area-initial {
    color: #fbbf24;
  }

  .theme-dark .cc-area-final {
    color: #34d399;
  }