.tri-calc-host { width: 100%; }
    .tri-calc-host .container__calc { width: 100%; max-width: 1024px; margin: 0 auto; }

    .tri-calc-host #navTab {
      list-style: none; display: flex; padding: 0; margin: 0 0 18px;
      border-bottom: 1px solid var(--ys-line);
    }
    .tri-calc-host #navTab li { flex: 1 1 50%; text-align: center; }
    .tri-calc-host .nav-link {
      display: block; padding: 10px 14px;
      font-family: var(--ys-font-display);
      letter-spacing: 0.12em; text-transform: uppercase;
      font-size: 0.78rem; font-weight: 600;
      color: var(--ys-muted); text-decoration: none;
      cursor: pointer; border-bottom: 4px solid transparent;
      transition: color 0.15s ease, border-color 0.15s ease;
    }
    .tri-calc-host .nav-link:hover { color: var(--ys-navy); }
    .tri-calc-host .nav-link.active {
      color: var(--ys-navy); border-bottom-color: var(--wf-coral);
    }

    .tri-calc-host .header__calc { padding: 0; }
    .tri-calc-host .input__container { padding: 0; }
    .tri-calc-host .section__calc { padding: 14px 0; }
    .tri-calc-host .row__calc { padding: 6px 0; }

    .tri-calc-host .label__calc {
      display: block;
      font-family: var(--ys-font-display);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 0.74rem;
      color: var(--ys-navy);
      margin-bottom: 6px;
    }

    .tri-calc-host .heading__secondary--calc {
      font-family: var(--ys-font-display);
      color: var(--ys-navy);
      font-size: 1.1rem;
      margin: 0 0 10px;
      letter-spacing: 0.04em;
    }

    .tri-calc-host .dropdown__input,
    .tri-calc-host .input__calc,
    .tri-calc-host .input__calc__diff {
      width: 100%;
      padding: 10px 12px;
      border: 1.5px solid var(--ys-line);
      border-radius: 6px;
      font-size: 1rem;
      font-family: var(--ys-font-body);
      background: #fff;
      color: var(--ys-navy);
      box-sizing: border-box;
      text-align: center;
    }
    .tri-calc-host .dropdown__input { text-align: left; }
    .tri-calc-host .input__calc:focus,
    .tri-calc-host .input__calc__diff:focus,
    .tri-calc-host .dropdown__input:focus {
      outline: none;
      border-color: var(--wf-coral);
      box-shadow: 0 0 0 3px rgba(250, 119, 60, 0.18);
    }

    .tri-calc-host .col3x3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .tri-calc-host .combined__calc {
      width: 100%; display: flex; align-items: stretch;
    }
    .tri-calc-host .unit__calc,
    .tri-calc-host .unit__calc__diff {
      padding: 0 12px;
      background: var(--ys-navy);
      color: #fff;
      font-family: var(--ys-font-display);
      letter-spacing: 0.06em;
      font-size: 0.78rem;
      display: flex; align-items: center;
      border-radius: 0 6px 6px 0;
    }
    .tri-calc-host .combined__calc .input__calc,
    .tri-calc-host .combined__calc .input__calc__diff {
      border-radius: 6px 0 0 6px;
    }

    .tri-calc-host .bgcolor {
      background: var(--ys-bg-soft);
      border-radius: 12px;
      padding: 18px;
      margin-top: 14px;
    }

    .tri-calc-host .col5x5 {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 18px;
      width: 100%;
    }
    .tri-calc-host .box__calc {
      background: #fff;
      border: 1px solid var(--ys-line);
      border-radius: 10px;
      padding: 12px;
      display: flex; flex-direction: column; align-items: stretch;
    }
    .tri-calc-host .label__calc--center {
      text-align: center;
      display: block;
      font-family: var(--ys-font-display);
      letter-spacing: 0.12em; text-transform: uppercase;
      font-size: 0.78rem;
      color: var(--ys-navy);
      border-bottom: 3px solid var(--wf-coral);
      padding: 6px 0 10px;
      margin-bottom: 14px;
      font-weight: 600;
    }

    /* Vertical slider housing, keep the rotated slider trick */
    .tri-calc-host .range__box--calc {
      position: relative; width: 100%; min-height: 240px;
      display: flex; align-items: center; justify-content: center;
    }
    .tri-calc-host .slider {
      -webkit-appearance: none;
      width: 200px; height: 7px;
      border-radius: 5px;
      background: #d3d3d3;
      outline: none;
      opacity: 0.85;
      transition: opacity 0.2s;
      margin: 0;
      transform: rotate(270deg);
    }
    .tri-calc-host .slider:hover { opacity: 1; }
    .tri-calc-host .slider::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none;
      width: 22px; height: 22px;
      border-radius: 50%;
      background: #fff;
      border: 3px solid var(--wf-coral);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(47, 45, 86, 0.25);
    }
    .tri-calc-host .slider::-moz-range-thumb {
      width: 22px; height: 22px;
      border-radius: 50%;
      background: var(--wf-coral);
      cursor: pointer;
      border: none;
    }

    .tri-calc-host .result__box { padding: 12px 0 0; }
    .tri-calc-host .result__value {
      text-align: center;
      display: block;
      font-family: var(--ys-font-display);
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--ys-navy);
      background: rgba(250, 119, 60, 0.12);
      padding: 8px 6px;
      border-radius: 6px;
    }
    .tri-calc-host .result__label {
      display: block;
      font-family: var(--ys-font-display);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 0.8rem;
      color: var(--ys-navy);
      padding: 6px 0;
      text-align: center;
    }

    .tri-calc-host .total__result {
      margin-top: 18px;
      background: var(--ys-navy);
      border-radius: 10px;
      padding: 14px;
      text-align: center;
    }
    .tri-calc-host .total__result .result__label { color: #fff; }
    .tri-calc-host .total__result #total-time {
      background: transparent;
      color: #fff;
      font-size: 1.7rem;
      letter-spacing: 0.04em;
    }

    .tri-calc-host .red-background {
      background-color: #ffe4e4 !important;
      border-color: #c93939 !important;
      color: #c93939 !important;
      font-weight: 600;
    }

    @media (max-width: 1024px) {
      .tri-calc-host .col5x5 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 700px) {
      .tri-calc-host .col5x5 { grid-template-columns: 1fr; }
      .tri-calc-host .col3x3 { grid-template-columns: 1fr; }
      .tri-calc-host .range__box--calc { min-height: 70px; }
      .tri-calc-host .slider { width: 100%; transform: rotate(0deg); }
    }