.vd-root {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
  }

  .theme-dark .vd-root {
    border-color: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .vd-hero {
    background: #0f172a;
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }

  .vd-pulse {
    position: absolute;
    top: -125px;
    right: -125px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: background 0.7s ease;
  }

  .vd-pulse[data-vd-pulse-status="acceptable"] {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
  }

  .vd-pulse[data-vd-pulse-status="critical"] {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25), transparent 70%);
  }

  .vd-hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .vd-drop-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.5rem;
  }

  .vd-drop-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .vd-drop-val {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .vd-drop-unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: #64748b;
  }

  .vd-status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .vd-status-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    transition: all 0.3s ease;
  }

  .vd-status-pill[data-vd-status="acceptable"] {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
  }

  .vd-status-pill[data-vd-status="critical"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
  }

  .vd-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentcolor;
  }

  .vd-status-pill[data-vd-status="critical"] .vd-status-dot {
    animation: vd-blink 1s ease-in-out infinite;
  }

  @keyframes vd-blink {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.2;
    }
    100% {
      opacity: 1;
    }
  }

  .vd-pct-wrap {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
  }

  .vd-eff-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    min-width: 150px;
  }

  .vd-eff-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.5rem;
  }

  .vd-eff-val-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .vd-eff-val {
    font-size: 1.875rem;
    font-weight: 700;
  }

  .vd-eff-pct {
    font-size: 0.875rem;
    color: #94a3b8;
  }

  .vd-eff-bar-wrap {
    display: flex;
    height: 8px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 4px;
    overflow: hidden;
  }

  .vd-eff-bar-fill {
    height: 100%;
    background: #4ade80;
    transition: width 0.5s ease;
  }

  .vd-eff-bar-loss {
    height: 100%;
    flex: 1;
    background: rgba(239, 68, 68, 0.5);
  }

  .vd-body {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .theme-dark .vd-body {
    background: rgba(15, 23, 42, 0.5);
  }

  .vd-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .vd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .theme-dark .vd-card {
    background: #1e293b;
    border-color: #334155;
  }

  .vd-field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
  }

  .vd-toggle-wrap {
    position: relative;
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 0.75rem;
  }

  .theme-dark .vd-toggle-wrap {
    background: rgba(15, 23, 42, 0.8);
  }

  .vd-volt-bg {
    position: absolute;
    top: 4px;
    left: 1%;
    width: 32.9%;
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    pointer-events: none;
  }

  .theme-dark .vd-volt-bg {
    background: #334155;
  }

  .vd-volt-btn {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color 0.15s;
  }

  .vd-volt-btn.vd-active {
    color: #1e293b;
  }

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

  .theme-dark .vd-volt-btn.vd-active {
    color: #fff;
  }

  .vd-material-wrap {
    display: flex;
    gap: 1rem;
  }

  .vd-material-item {
    flex: 1;
    cursor: pointer;
  }

  .vd-material-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }

  .vd-material-box {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.15s ease;
  }

  .theme-dark .vd-material-box {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
  }

  .vd-material-copper .vd-material-input:checked + .vd-material-box {
    border-color: #d97706;
    background: #fffbeb;
    color: #92400e;
  }

  .vd-material-alum .vd-material-input:checked + .vd-material-box {
    border-color: #64748b;
    background: #f1f5f9;
    color: #1e293b;
  }

  .theme-dark .vd-material-copper .vd-material-input:checked + .vd-material-box {
    background: rgba(180, 83, 9, 0.2);
    border-color: #d97706;
    color: #fbbf24;
  }

  .theme-dark .vd-material-alum .vd-material-input:checked + .vd-material-box {
    background: rgba(51, 65, 85, 0.8);
    border-color: #64748b;
    color: #fff;
  }

  .vd-wire-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
  }

  .vd-wire-dot-copper {
    background: linear-gradient(to bottom right, #fbbf24, #d97706);
  }

  .vd-wire-dot-alum {
    background: linear-gradient(to bottom right, #cbd5e1, #64748b);
  }

  .vd-load-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .vd-load-top .vd-field-label {
    margin-bottom: 0;
  }

  .vd-mode-wrap {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 0.5rem;
  }

  .theme-dark .vd-mode-wrap {
    background: #0f172a;
  }

  .vd-mode-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.15s;
  }

  .vd-mode-btn.vd-active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .theme-dark .vd-mode-btn.vd-active {
    background: #334155;
    color: #fff;
  }

  .vd-load-input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .vd-load-input {
    width: 5rem;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: right;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    color: #1e293b;
    outline: none;
    padding: 0;
    transition: border-color 0.15s;
  }

  .vd-load-input:focus {
    border-color: #6366f1;
  }

  .theme-dark .vd-load-input {
    color: #fff;
    border-color: #334155;
  }

  .theme-dark .vd-load-input:focus {
    border-color: #6366f1;
  }

  .vd-load-unit {
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 0.5rem;
  }

  .vd-len-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .vd-len-top .vd-field-label {
    margin-bottom: 0;
  }

  .vd-len-info {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6366f1;
  }

  .theme-dark .vd-len-info {
    color: #a5b4fc;
  }

  .vd-slider-wrap {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
  }

  .vd-slider-input {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
  }

  .vd-slider-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
  }

  .theme-dark .vd-slider-track {
    background: #334155;
  }

  .vd-slider-fill {
    height: 100%;
    background: #6366f1;
    transition: width 0.075s;
  }

  .vd-slider-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #6366f1;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
    transition: left 0.075s;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme-dark .vd-slider-thumb {
    background: #1e293b;
  }

  .vd-slider-knob {
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
  }

  .vd-section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .vd-section-top .vd-field-label {
    margin-bottom: 0;
  }

  .vd-section-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
  }

  .theme-dark .vd-section-badge {
    background: #0f172a;
    color: #94a3b8;
  }

  .vd-gauge-outer {
    position: relative;
  }

  .vd-gauge-fade-l,
  .vd-gauge-fade-r {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 2;
    pointer-events: none;
  }

  .vd-gauge-fade-l {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
  }

  .vd-gauge-fade-r {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
  }

  .theme-dark .vd-gauge-fade-l {
    background: linear-gradient(to right, #1e293b, transparent);
  }

  .theme-dark .vd-gauge-fade-r {
    background: linear-gradient(to left, #1e293b, transparent);
  }

  .vd-gauge-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 3rem;
    scrollbar-width: none;
    cursor: grab;
  }

  .vd-gauge-scroll:active {
    cursor: grabbing;
  }

  .vd-gauge-scroll::-webkit-scrollbar {
    display: none;
  }

  .vd-gauge-item {
    flex-shrink: 0;
    cursor: pointer;
  }

  .vd-gauge-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }

  .vd-gauge-box {
    width: 4rem;
    height: 6rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .theme-dark .vd-gauge-box {
    background: #0f172a;
    border-color: #334155;
  }

  .vd-gauge-input:checked + .vd-gauge-box {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
  }

  .theme-dark .vd-gauge-input:checked + .vd-gauge-box {
    background: #1e293b;
    border-color: #6366f1;
  }

  .vd-wire-circle {
    margin-top: auto;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #fbbf24, #d97706);
    transition: background 0.3s ease;
  }

  .vd-root[data-vd-material="aluminum"] .vd-wire-circle {
    background: linear-gradient(to bottom right, #cbd5e1, #64748b);
  }

  .vd-gauge-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
  }

  .vd-gauge-input:checked + .vd-gauge-box .vd-gauge-val {
    color: #6366f1;
  }

  .theme-dark .vd-gauge-val {
    color: #94a3b8;
  }

  .theme-dark .vd-gauge-input:checked + .vd-gauge-box .vd-gauge-val {
    color: #a5b4fc;
  }

  .vd-gauge-unit {
    font-size: 0.625rem;
    color: #94a3b8;
  }

  @media (max-width: 640px) {
    .vd-hero {
      padding: 1.5rem;
    }

    .vd-hero-body {
      flex-direction: column;
      align-items: flex-start;
    }

    .vd-eff-card {
      width: 100%;
      min-width: unset;
    }

    .vd-body {
      padding: 1rem;
    }

    .vd-row-2 {
      grid-template-columns: 1fr;
    }

    .vd-drop-val {
      font-size: 2.5rem;
    }
  }