  #srfGrid th { text-transform: none; }
  .caliper-scale { position: relative; height: 92px; margin: 22px 4px 4px; }
  .caliper-beam {
    position: absolute; top: 36px; left: 4px; right: 4px; height: 12px;
    background-image:
      repeating-linear-gradient(90deg, var(--line) 0px, var(--line) 1px, transparent 1px, transparent 8px),
      repeating-linear-gradient(90deg, var(--ink-faint) 0px, var(--ink-faint) 1.5px, transparent 1.5px, transparent 40px);
    border-radius: 2px;
    opacity: 0.6;
  }
  .caliper-fill { position: absolute; top: 36px; left: 4px; height: 12px; background: var(--brand); border-radius: 2px 0 0 2px; }
  .caliper-jaw { position: absolute; top: 6px; transform: translateX(-50%); text-align: center; }
  .jaw-progress { font-family: var(--mono); font-size: var(--fs-label); color: var(--brand); font-weight: 600; margin-bottom: 3px; white-space: nowrap; }
  .jaw-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin: 0 auto; position: relative; }
  .jaw-pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--brand); animation: pulse-ring-v2 1.8s ease-out infinite; }
  @keyframes pulse-ring-v2 { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
  .jaw-pointer { width: 0; height: 0; margin: 3px auto 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--brand); }
  .caliper-stage { position: absolute; top: 56px; transform: translateX(-50%); text-align: center; width: 110px; }
  .stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; border: 2px solid var(--surface); }
  .stage-dot.done { background: var(--success); }
  .stage-dot.active { background: var(--brand); width: 10px; height: 10px; }
  .stage-label { font-size: var(--fs-label); font-weight: 500; color: var(--ink-soft); }
  .caliper-stage.active .stage-label { color: var(--brand); font-weight: 600; }
  .stage-sub { font-size: var(--fs-label); font-family: var(--mono); color: var(--ink-faint); margin-top: 1px; }

  .metric-strip-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
  .metric-card-v2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
  .metric-card-v2::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
  .metric-card-v2 .m-label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-faint); margin-bottom: 8px; }
  .metric-card-v2 .m-value { font-family: var(--mono); font-size: var(--fs-figure); font-weight: 600; color: var(--brand-dark); line-height: 1; }
  .metric-card-v2 .m-unit { font-size: var(--fs-body); color: var(--ink-faint); font-weight: 400; margin-left: 4px; }
  .metric-card-v2 .m-sub { margin-top: 7px; font-size: var(--fs-label); font-family: var(--mono); color: var(--ink-soft); }

  .pipeline-panel-v2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; margin-bottom: 12px; }
  .pipeline-head-v2 { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-body); }
  .pipeline-head-v2 b { font-weight: 600; }
  .pipeline-head-v2 a { color: var(--brand); font-weight: 500; cursor: pointer; text-decoration: none; }

  .activity-row-v2 { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
  .activity-row-v2:last-child { border-bottom: none; }
  .activity-dot-v2 { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .activity-time-v2 { font-size: var(--fs-label); font-family: var(--mono); color: var(--ink-faint); margin-left: auto; padding-left: 8px; white-space: nowrap; }

  .recal-row-v2 { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .recal-row-v2:last-child { border-bottom: none; }
  .recal-name-v2 { font-size: var(--fs-body); font-weight: 500; }
  .recal-cust-v2 { font-size: var(--fs-label); color: var(--ink-faint); margin-top: 1px; }
  .recal-days-v2 { font-family: var(--mono); font-size: var(--fs-label); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
  /* The two areas of the system, chosen from the top of the page rather than
     from inside the sidebar, and colour-coded so it is never ambiguous which
     one you are looking at: teal for calibration work, violet for the quality
     system. The tab is hidden entirely for anyone whose login does not reach
     that area, so it never offers a door that will not open. */
  #modeBar { display: flex; gap: 10px; padding: 14px 28px 0; background: var(--bg, #F3F5F7); }
  .mode-tab { position: relative; flex: 0 1 300px; text-align: left; cursor: pointer;
      border: 1px solid var(--line); border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0;
      background: #fff; color: var(--ink-soft); font-size: var(--fs-body); font-weight: 600;
      padding: 10px 16px 9px 32px; line-height: 1.25; }
  .mode-tab .mode-tab-sub { display: block; font-size: var(--fs-label); font-weight: 400; color: var(--ink-faint); margin-top: 2px; }
  .mode-tab .mode-dot { position: absolute; left: 14px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
  .mode-tab[data-mode="calibrationOps"].active { color: var(--brand); border-bottom-color: var(--brand); }
  .mode-tab[data-mode="calibrationOps"].active .mode-dot { background: var(--brand); }
  .mode-tab[data-mode="qualitySystem"].active { color: #7C3AED; border-bottom-color: #7C3AED; }
  .mode-tab[data-mode="qualitySystem"].active .mode-dot { background: #7C3AED; }
  .mode-tab:hover { background: #FAFBFC; }
  @media (max-width: 700px) { #modeBar { padding: 10px 14px 0; } .mode-tab { flex: 1; padding-left: 28px; } }
  .home-banner-v2 { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 11px 18px 0; margin-bottom: 12px; overflow: hidden; }
  .home-banner-row { display: flex; justify-content: space-between; align-items: flex-start; }
  .home-banner-title { font-size: var(--fs-head); font-weight: 600; }
  .home-banner-sub { font-size: var(--fs-label); color: rgba(255,255,255,0.75); margin-top: 2px; }
  .home-banner-date { font-family: var(--mono); font-size: var(--fs-label); color: rgba(255,255,255,0.75); text-align: right; white-space: nowrap; }
  .home-banner-date .day { font-size: var(--fs-body); color: #fff; font-weight: 600; }
  .home-banner-rule { height: 8px; margin: 9px -18px 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0px, rgba(255,255,255,0.14) 1px, transparent 1px, transparent 8px), repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0px, rgba(255,255,255,0.5) 1.5px, transparent 1.5px, transparent 40px); }
  [data-aqcal-logo-block] + * { display: none; }

