.star-calc-wrapper {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px var(--shadow-base);
  }

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

  @media (min-width: 768px) {
    .star-calc-grid {
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }
  }

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

  .star-mode-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .star-mode-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted, #cbd5e1);
  }

  .star-toggle-group {
    display: flex;
    background: var(--bg-muted);
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-base);
  }

  .star-toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
  }

  .star-toggle-btn.active {
    background: var(--color-amber, #f59e0b);
    color: var(--color-bg-deep, #0f172a);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }

  .star-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .star-control-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted, #cbd5e1);
    display: flex;
    justify-content: space-between;
  }

  .star-stepper {
    display: flex;
    align-items: center;
    background: var(--bg-muted);
    border: 1px solid var(--border-base);
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .star-step-btn {
    width: 4rem;
    height: 3.5rem;
    border: none;
    background: var(--bg-muted);
    color: var(--color-amber, #f59e0b);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .star-step-btn:hover {
    background: var(--bg-page);
  }

  .star-stepper-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-base);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    outline: none;
    width: 100%;
  }

  .star-select-wrapper {
    position: relative;
    width: 100%;
  }

  .star-select-arrow {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--color-amber, #f59e0b);
    pointer-events: none;
  }

  .star-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: var(--bg-muted);
    border: 1px solid var(--border-base);
    color: var(--text-base);
    padding: 0.875rem 3rem 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }

  .star-select:hover {
    border-color: var(--text-muted);
  }

  .star-select:focus {
    border-color: var(--color-amber, #f59e0b);
  }

  .star-select option {
    background: var(--bg-surface);
    color: var(--text-base);
  }

  .star-range {
    width: 100%;
    accent-color: var(--color-amber, #f59e0b);
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
  }

  .star-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
  }

  .star-npf-controls {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: star-fade-in 0.3s ease;
  }

  @keyframes star-fade-in {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .star-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
  }

  .star-result-main {
    text-align: center;
    background: var(--bg-muted);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-base);
  }

  .star-time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
  }

  .star-time-value {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-amber, #f59e0b);
    line-height: 1;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
  }

  .star-time-unit {
    font-size: 1.25rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
  }

  .star-result-text {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
  }

  .star-simulation {
    background: var(--bg-muted);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-base);
  }

  .star-sim-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 1rem;
    text-align: center;
  }

  .star-sim-container {
    height: 100px;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    border-radius: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .star-sim-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .star-point {
    height: 4px;
    width: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    transition: width 0.3s ease, border-radius 0.3s ease;
  }

  .star-point.is-trail {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.1));
  }

  .star-center-marker {
    position: absolute;
    color: rgba(245, 158, 11, 0.3);
    font-size: 1.5rem;
    pointer-events: none;
  }

  .star-sim-info-row {
    text-align: center;
    font-size: 0.85rem;
  }

  .star-sim-info {
    color: var(--color-amber, #f59e0b);
    font-weight: 500;
  }

  .star-sim-range-wrapper {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .star-sim-range-label {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    text-align: center;
  }