  body { font-family: 'Inter', system-ui, sans-serif; }

  /* ── Range slider ── */
  input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 35%, #22c55e 55%, #06b6d4 75%, #3b82f6 100%);
    border-radius: 99px; outline: none; cursor: pointer;
    position: relative;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 2.5px solid #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15), 0 0 0 3px rgba(30,41,59,0.08);
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  }
  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 0 0 4px rgba(30,41,59,0.12);
  }
  input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 2.5px solid #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15); cursor: pointer;
  }
  input[type="range"]:disabled {
    opacity: 0.25; cursor: not-allowed;
    filter: grayscale(1);
  }

  /* ── Custom checkbox ── */
  .cb-custom { display: none; }
  .cb-label {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 6px;
    border: 1.5px solid #d6d3d1; background: #fafaf9;
    cursor: pointer; transition: all 0.15s; font-size: 10px; color: #a8a29e;
    user-select: none;
  }
  .cb-custom:checked + .cb-label {
    background: #1e293b; border-color: #1e293b; color: #fff;
  }

  /* ── Score ring ── */
  .score-ring { transition: stroke-dashoffset 0.5s ease, stroke 0.4s ease; }

  /* ── Animations ── */
  @keyframes spin { to { transform: rotate(360deg); } }
  .spinner { animation: spin 0.65s linear infinite; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .fade-up { animation: fadeUp 0.35s ease-out; }
  @keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
  .scale-in { animation: scaleIn 0.3s ease-out; }

  .step { display: none; }
  .step.visible { display: block; }

  /* ── Tooltip ── */
  .tip-wrap { position: relative; }
  .tip-wrap .tip {
    visibility: hidden; opacity: 0;
    position: absolute; bottom: calc(100% + 8px); right: -4px;
    white-space: nowrap;
    background: #1e293b; color: #f8fafc;
    font-size: 11px; font-weight: 500; line-height: 1.3;
    padding: 5px 10px; border-radius: 8px;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .tip-wrap .tip::after {
    content: ''; position: absolute; top: 100%; right: 10px;
    border: 5px solid transparent; border-top-color: #1e293b;
  }
  .tip-wrap:hover .tip { visibility: visible; opacity: 1; }

  /* ── Bureau card ── */
  .bureau-card {
    background: #fafaf9; border: 1px solid #f5f5f4;
    border-radius: 12px; padding: 12px 14px;
    transition: opacity 0.2s, background 0.2s;
  }
  .bureau-card.dimmed { opacity: 0.35; background: #f5f5f4; }