.te-root {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }

  .te-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
  }

  .theme-dark .te-grid {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .te-sidebar {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .theme-dark .te-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right-color: rgba(255, 255, 255, 0.06);
  }

  .te-main {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
  }

  .theme-dark .te-main {
    background: rgba(255, 255, 255, 0.01);
  }

  .te-section-hdr {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f97316;
    margin: 0;
  }

  .te-cat-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .theme-dark .te-cat-badge {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .te-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
  }

  .te-cat-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #374151;
  }

  .theme-dark .te-cat-name {
    color: #e5e7eb;
  }

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

  .te-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
  }

  .theme-dark .te-label {
    color: #9ca3af;
  }

  .te-input-row {
    position: relative;
    display: flex;
    align-items: center;
  }

  .te-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    background: white;
    color: #111827;
    transition: border-color 0.2s;
  }

  .te-input:focus {
    outline: none;
    border-color: #f97316;
  }

  .theme-dark .te-input {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
  }

  .theme-dark .te-input:focus {
    border-color: #f97316;
  }

  .te-unit {
    position: absolute;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 900;
    color: #f97316;
    pointer-events: none;
  }

  .te-select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    background: white;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23f97316' d='M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
    transition: border-color 0.2s;
  }

  .te-select:focus {
    outline: none;
    border-color: #f97316;
  }

  .theme-dark .te-select {
    background-color: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
  }

  .te-temp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .te-delta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: auto;
  }

  .te-delta-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
  }

  .te-delta-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #f97316;
  }

  .te-viz {
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2.5rem 3rem 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }

  .theme-dark .te-viz {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .te-beam-wrap {
    position: relative;
    height: 32px;
    border-radius: 4px;
    overflow: visible;
  }

  .te-beam-base {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af);
    border-radius: 4px;
    z-index: 2;
  }

  .theme-dark .te-beam-base {
    background: linear-gradient(to bottom, #4b5563, #374151);
  }

  .te-beam-expand {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(249, 115, 22, 0.25);
    border-right: 3px solid #f97316;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
  }

  .te-markers {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
  }

  .te-marker {
    font-size: 0.6rem;
    font-weight: 800;
    color: #9ca3af;
  }

  .te-ind-wrap {
    position: absolute;
    top: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
  }

  .te-ind {
    background: #f97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    animation: te-bounce 2s infinite;
  }

  @keyframes te-bounce {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }

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

  .te-result-primary,
  .te-result-secondary {
    padding: 1.5rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .te-result-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.25);
  }

  .te-result-secondary {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
  }

  .theme-dark .te-result-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .te-result-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
  }

  .te-result-secondary .te-result-lbl {
    color: #6b7280;
    opacity: 1;
  }

  .theme-dark .te-result-secondary .te-result-lbl {
    color: #9ca3af;
  }

  .te-result-val {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
  }

  .te-result-num {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
  }

  .te-result-secondary .te-result-num {
    color: #111827;
  }

  .theme-dark .te-result-secondary .te-result-num {
    color: #f9fafb;
  }

  .te-result-unit {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.7;
  }

  .te-result-secondary .te-result-unit {
    color: #374151;
    opacity: 1;
  }

  .theme-dark .te-result-secondary .te-result-unit {
    color: #d1d5db;
  }

  .te-ref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .te-ref-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition:
      background 0.25s,
      border-color 0.25s;
  }

  .theme-dark .te-ref-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .te-ref-card[data-risk="critical"] {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
  }

  .te-ref-card[data-risk="moderate"] {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
  }

  .te-ref-title {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
  }

  .te-ref-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #374151;
  }

  .theme-dark .te-ref-val {
    color: #e5e7eb;
  }

  .te-ref-card[data-risk="critical"] .te-ref-val {
    color: #ef4444;
  }

  .te-ref-card[data-risk="moderate"] .te-ref-val {
    color: #f59e0b;
  }

  .te-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(249, 115, 22, 0.04);
    border: 1px dashed rgba(249, 115, 22, 0.2);
    border-radius: 14px;
    padding: 1rem 1.25rem;
  }

  .te-tip-bullet {
    color: #f97316;
    font-size: 0.7rem;
    flex-shrink: 0;
    padding-top: 0.15rem;
  }

  .te-tip-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #6b7280;
    font-style: italic;
  }

  .theme-dark .te-tip-text {
    color: #9ca3af;
  }

  @media (max-width: 860px) {
    .te-grid {
      grid-template-columns: 1fr;
    }

    .te-sidebar {
      border-right: none;
      border-bottom: 1px solid #e5e7eb;
    }

    .theme-dark .te-sidebar {
      border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .te-results {
      grid-template-columns: 1fr;
    }
  }