/* /zoho-creator/calibration-management/ : page-only styles, prefix zcm- */
.zcm-sample { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #FFF4D6; border: 1px solid #F5D27A; font: 700 10.5px/1.2 var(--f-body, Inter, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #7A5200; vertical-align: middle; white-space: nowrap; }
.zcm-sample--dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #FFE29A; }

/* ---------- Hero ---------- */
.zcm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.zcm-hero__facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 56ch; }
.zcm-hero__facts li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: #334155; }
.zcm-hero__facts li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #00A3D9; background: radial-gradient(circle, #00A3D9 0 2px, #fff 3px); }
.zcm-hero__facts b { color: #082238; }

.zcm-art { position: relative; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.zcm-dial { position: relative; width: 220px; }
.zcm-dial__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 30px rgba(8, 34, 56, .28)); }
.zcm-dial__stem { fill: #94A3B8; }
.zcm-dial__tip { fill: #475569; }
.zcm-dial__lug { fill: #CBD5E1; }
.zcm-dial__bezel { fill: #1D3F8F; stroke: #0A3A63; stroke-width: 3; }
.zcm-dial__face { fill: #fff; }
.zcm-dial__ticks line { stroke: #64748B; stroke-width: 1; }
.zcm-dial__ticks line.l { stroke: #082238; stroke-width: 2; }
.zcm-dial__nums text { font: 700 11px/1 var(--f-body, Inter, sans-serif); fill: #082238; text-anchor: middle; }
.zcm-dial__unit { font: 600 9px/1 var(--f-body, Inter, sans-serif); fill: #475569; text-anchor: middle; letter-spacing: .04em; }
.zcm-dial__rev { fill: #F3F7F9; stroke: #94A3B8; stroke-width: 1; }
.zcm-dial__revhand { stroke: #082238; stroke-width: 2; stroke-linecap: round; }
.zcm-dial__needle { transform-origin: 110px 116px; transform: rotate(14deg); animation: zcm-needle 2.6s cubic-bezier(.3, 1.3, .4, 1) .3s both; }
.zcm-dial__needle path { fill: #C2341C; }
.zcm-dial__needle circle { fill: #082238; stroke: #fff; stroke-width: 2; }
@keyframes zcm-needle { 0% { transform: rotate(-60deg); } 45% { transform: rotate(38deg); } 70% { transform: rotate(8deg); } 100% { transform: rotate(14deg); } }

.zcm-sticker { position: absolute; right: -26px; top: 118px; width: 104px; padding: 9px 10px 8px; border-radius: 8px; background: #E8F7EE; border: 2px solid #1F8A4C; box-shadow: 0 10px 20px -10px rgba(8, 34, 56, .5); display: grid; gap: 2px; transform: rotate(-6deg); animation: zcm-press 600ms cubic-bezier(.2, 1.5, .4, 1) 1.6s both; }
.zcm-sticker__h { font: 800 11px/1.1 var(--f-body, Inter, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #1F8A4C; margin: -9px -10px 4px; padding: 5px 10px; border-radius: 5px 5px 0 0; }
.zcm-sticker__id { font: 800 16px/1.1 var(--f-display, Manrope, sans-serif); color: #082238; }
.zcm-sticker__row { font: 600 11.5px/1.35 var(--f-body, Inter, sans-serif); color: #1F3B2B; }
.zcm-sticker__row i { font-style: normal; display: inline-block; width: 30px; color: #2F6B45; font-weight: 700; }
@keyframes zcm-press { 0% { opacity: 0; transform: translate(30px, -30px) rotate(-20deg) scale(1.25); } 100% { opacity: 1; transform: rotate(-6deg); } }

.zcm-board { padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 30px 60px -30px rgba(8, 34, 56, .35); min-width: 0; }
.zcm-board__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zcm-board__head p { margin: 0; font: 700 15px/1.2 var(--f-display, Manrope, sans-serif); color: #082238; }
.zcm-board__list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.zcm-board__list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "id n" "s s"; gap: 4px 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid #E2E8F0; border-left-width: 4px; background: #fff; animation: zcm-row 450ms ease both; animation-delay: calc(2s + var(--i) * .25s); }
@keyframes zcm-row { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.zcm-board__id { grid-area: id; font: 800 13px/1.3 var(--f-display, Manrope, sans-serif); color: #082238; font-variant-numeric: tabular-nums; }
.zcm-board__n { grid-area: n; font: 600 13.5px/1.25 var(--f-body, Inter, sans-serif); color: #082238; min-width: 0; }
.zcm-board__n small { display: block; font-weight: 500; font-size: 12px; color: #475569; }
.zcm-board__s { grid-area: s; justify-self: start; padding: 4px 9px; border-radius: 999px; font: 700 11.5px/1.2 var(--f-body, Inter, sans-serif); }
.zcm-board__list .is-over { border-left-color: #B42318; background: #FFF6F4; }
.zcm-board__list .is-over .zcm-board__s { background: #B42318; color: #fff; }
.zcm-board__list .is-soon { border-left-color: #D98E04; }
.zcm-board__list .is-soon .zcm-board__s { background: #FFF1C9; color: #6B4400; }
.zcm-board__list .is-lab { border-left-color: #0A6FA8; }
.zcm-board__list .is-lab .zcm-board__s { background: #E1F2FB; color: #0A4F78; }
.zcm-board__list .is-ok { border-left-color: #1F8A4C; }
.zcm-board__list .is-ok .zcm-board__s { background: #DDF4E6; color: #15603A; }
.zcm-board__chip { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #082238; color: #fff; font: 600 13px/1.25 var(--f-body, Inter, sans-serif); animation: zcm-row 450ms ease 3.1s both; }
.zcm-board__chip img { flex: none; padding: 4px; border-radius: 8px; background: #fff; box-sizing: content-box; }
.zcm-board__chip small { display: block; font-weight: 500; color: #BFD3E2; }

/* ---------- What is + calibration record ---------- */
.zcm-what__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.zcm-what__note { margin: 18px 0 0; padding: 14px 16px; border-left: 4px solid #00B2A9; border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .7); font-size: 16px; line-height: 1.6; color: #334155; max-width: 60ch; }
.zcm-cert { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 24px 50px -36px rgba(8, 34, 56, .4); background-image: linear-gradient(90deg, #1D3F8F 0 6px, transparent 6px); }
.zcm-cert__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.zcm-cert__k { margin: 0; font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.zcm-cert__no { margin: 4px 0 0; font: 800 22px/1.1 var(--f-display); color: #082238; letter-spacing: -.02em; }
.zcm-cert__meta { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.zcm-cert__meta div { min-width: 0; }
.zcm-cert__meta dt { font: 600 11.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #475569; }
.zcm-cert__meta dd { margin: 3px 0 0; font: 500 14px/1.4 var(--f-body); color: #082238; }
.zcm-cert__tbl { width: 100%; margin: 16px 0 0; border-collapse: collapse; font: 500 14px/1.3 var(--f-body); font-variant-numeric: tabular-nums; }
.zcm-cert__tbl caption { text-align: left; font: 600 12.5px/1.3 var(--f-body); color: #475569; padding-bottom: 6px; }
.zcm-cert__tbl th, .zcm-cert__tbl td { padding: 8px 6px; border-bottom: 1px solid #E2E8F0; text-align: left; color: #082238; }
.zcm-cert__tbl thead th { font-size: 12px; font-weight: 700; color: #475569; letter-spacing: .04em; text-transform: uppercase; }
.zcm-cert__tbl tr.is-bad td:nth-child(2) { color: #B42318; font-weight: 700; }
.zcm-cert__tbl tr.is-bad td:nth-child(3) { color: #15603A; font-weight: 700; }
.zcm-cert__res { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF6F4; border: 1px solid #F3C3BA; display: grid; gap: 3px; font-size: 14px; line-height: 1.45; color: #334155; }
.zcm-cert__res b { color: #B42318; }

/* ---------- Trace-back (dark band) ---------- */
.zcm-trace { margin-top: 30px; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.zcm-trace__gauge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.zcm-trace__g { margin: 0; display: grid; gap: 2px; color: #fff; font-size: 16px; }
.zcm-trace__g span { font-size: 14px; color: #BFD3E2; }
.zcm-trace__err { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 184, 28, .14); border: 1px solid rgba(255, 184, 28, .45); color: #FFE29A; font-size: 14.5px; }
.zcm-trace__err b { color: #fff; }
.zcm-trace__gauge .zcm-sample { margin-left: auto; }

.zcm-ctl { margin: 18px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; align-items: center; }
.zcm-ctl__dir { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .16); }
.zcm-ctl__dir button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: #DCE8F1; font: 600 14px/1.2 var(--f-body); cursor: pointer; }
.zcm-ctl__dir button[aria-pressed="true"] { background: #FFB81C; color: #082238; }
.zcm-ctl__dir button:focus-visible, .zcm-ctl__range:focus-visible, .zcm-trace__go:focus-visible { outline: 3px solid #5FD3F3; outline-offset: 2px; }
.zcm-ctl__r { display: grid; gap: 6px; min-width: 0; }
.zcm-ctl__r label { font: 600 14px/1.3 var(--f-body); color: #fff; }
.zcm-ctl__r label output { color: #FFE29A; font-variant-numeric: tabular-nums; }
.zcm-ctl__range { width: 100%; accent-color: #FFB81C; min-height: 28px; }
.zcm-ctl__ticks { display: flex; justify-content: space-between; font: 500 12px/1 var(--f-body); color: #BFD3E2; }

.zcm-trace__tblwrap { margin: 18px 0 0; overflow-x: auto; border-radius: 14px; background: #fff; }
.zcm-trace__tblwrap:focus-visible { outline: 3px solid #5FD3F3; outline-offset: 2px; }
.zcm-trace__tbl { width: 100%; min-width: 640px; border-collapse: collapse; font: 500 14px/1.3 var(--f-body); color: #082238; font-variant-numeric: tabular-nums; }
.zcm-trace__tbl caption { caption-side: top; text-align: left; padding: 12px 14px 4px; font: 600 13px/1.4 var(--f-body); color: #475569; }
.zcm-trace__tbl th, .zcm-trace__tbl td { padding: 10px 12px; border-bottom: 1px solid #E2E8F0; text-align: left; vertical-align: top; }
.zcm-trace__tbl thead th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #475569; background: #F3F7F9; }
.zcm-trace__tbl tbody th { font-weight: 700; }
.zcm-trace__tbl td small { display: block; font-size: 12.5px; color: #475569; }
.zcm-trace__tbl tbody tr { transition: background-color 250ms; }
.zcm-trace__st { font-weight: 700; color: #15603A; }
.zcm-trace__tbl tr.is-suspect { background: #FFF3EF; }
.zcm-trace__tbl tr.is-suspect .zcm-trace__st { color: #B42318; }
.zcm-trace__tbl td.is-hit { color: #B42318; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.zcm-trace__out { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: #082238; border: 1px solid rgba(255, 255, 255, .16); color: #DCE8F1; }
.zcm-trace__sum { margin: 0; font-size: 16px; line-height: 1.55; }
.zcm-trace__sum b { color: #fff; font-size: 18px; }
.zcm-trace__acts { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.zcm-trace__acts b { color: #FFE29A; }
.zcm-trace__go { margin-top: 14px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: #FFB81C; color: #082238; font: 700 14.5px/1.2 var(--f-body); cursor: pointer; }
.zcm-trace__go:hover { background: #F0A400; }
.zcm-trace__how { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #BFD3E2; max-width: 80ch; }
.zcm-trace__trust { margin: 16px 0 0; font-size: 14px; color: #BFD3E2; }

/* ---------- Schedule history ---------- */
.zcm-int__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.zcm-hist { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 24px 50px -36px rgba(8, 34, 56, .4); }
.zcm-hist__t { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font: 700 17px/1.3 var(--f-display); color: #082238; }
.zcm-hist__rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.zcm-hist__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "g d" "s s"; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.zcm-hist__g { grid-area: g; display: grid; gap: 2px; min-width: 0; }
.zcm-hist__g b { font: 800 15px/1.2 var(--f-display); color: #082238; }
.zcm-hist__g span { font-size: 13px; color: #475569; }
.zcm-hist__dots { grid-area: d; display: flex; gap: 6px; align-items: center; }
.zcm-hist__dots i, .zcm-hist__key i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.zcm-hist__dots i.ok, .zcm-hist__key i.ok { background: #1F8A4C; }
.zcm-hist__dots i.near, .zcm-hist__key i.near { background: #fff; border: 3px solid #D98E04; box-sizing: border-box; }
.zcm-hist__dots i.bad, .zcm-hist__key i.bad { background: #B42318; border-radius: 3px; transform: rotate(45deg) scale(.85); }
.zcm-hist__s { grid-area: s; margin: 0; font: 600 14px/1.3 var(--f-body); color: #334155; }
.zcm-hist__s--up { color: #15603A; }
.zcm-hist__s--down { color: #B42318; }
.zcm-hist__key { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #475569; }
.zcm-hist__key span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Cost tag ---------- */
.zcm-cost__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.zcm-tag { position: relative; padding: 26px 22px 18px; border-radius: 14px; background: #fff; border: 2px solid #1D3F8F; box-shadow: 0 24px 50px -32px rgba(8, 34, 56, .45); }
.zcm-tag::before { content: "Cost lines"; position: absolute; top: -13px; left: 18px; padding: 4px 10px; border-radius: 6px; background: #1D3F8F; color: #fff; font: 700 11.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.zcm-tag__line { padding: 12px 0; border-bottom: 1px dashed #CBD5E1; display: grid; gap: 3px; }
.zcm-tag__line:last-child { border-bottom: 0; }
.zcm-tag__k { font: 600 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #475569; }
.zcm-tag__line b { font: 800 18px/1.25 var(--f-display); color: #082238; }
.zcm-tag__line p { margin: 0; font-size: 15px; line-height: 1.5; color: #334155; }

/* ---------- Start steps ---------- */
.zcm-steps { margin: 30px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.zcm-steps li { position: relative; padding: 20px 18px 18px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; border-top: 6px solid #1F8A4C; box-shadow: 0 18px 40px -32px rgba(8, 34, 56, .45); }
.zcm-steps li:nth-child(2) { border-top-color: #00A3D9; }
.zcm-steps li:nth-child(3) { border-top-color: #1D3F8F; }
.zcm-steps li:nth-child(4) { border-top-color: #D98E04; }
.zcm-steps__n { display: inline-block; padding: 4px 9px; border-radius: 6px; background: #F3F7F9; font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #334155; }
.zcm-steps h3 { margin: 12px 0 0; font: 700 18px/1.3 var(--f-display); color: #082238; }
.zcm-steps p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #334155; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .zcm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .zcm-hero__grid, .zcm-what__grid, .zcm-int__grid, .zcm-cost__grid { grid-template-columns: minmax(0, 1fr); }
  .zcm-art { max-width: 620px; }
}
@media (max-width: 600px) {
  .zcm-art { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .zcm-dial { width: 190px; margin-right: 40px; }
  .zcm-sticker { right: -48px; top: 96px; }
  .zcm-board { width: 100%; box-sizing: border-box; }
  .zcm-cert__meta { grid-template-columns: minmax(0, 1fr); }
  .zcm-ctl { grid-template-columns: minmax(0, 1fr); }
  .zcm-ctl__dir { justify-self: start; }
  .zcm-steps { grid-template-columns: minmax(0, 1fr); }
  .zcm-trace__gauge .zcm-sample { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .zcm-dial__needle, .zcm-sticker, .zcm-board__list li, .zcm-board__chip { animation: none !important; }
}
