/* PadCheck · problem-test page styles (shared by drift / deadzone / vibration / polling tools) */
.dev-r .seg { margin-right: 4px; }
@media (max-width: 640px) { .dev-r { flex-wrap: wrap; } .dev-r .seg { order: 2; width: 100%; } .dev-r .seg button { flex: 1; } }

/* sticks */
.plot.big { max-width: 248px; }
.rl { font: 500 8.5px var(--mono); fill: var(--ink-3); }
.rl.w { fill: var(--warn); }
.zoomed, .full-grid { transition: opacity .2s; }
[data-mode="circle"] .zoomed { display: none; }
[data-mode="drift"] .full-grid { display: none; }
.cloud { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; opacity: .42; }
[data-state="result"] .p-dot, [data-state="result"] .p-vec { display: none; }
.rest { display: none; }
.rest-c { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.rest-l { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
[data-state="result"] .rest { display: inline; }
[data-mode="circle"] .rest { display: none !important; }
.p-dot.out { fill: var(--surface); stroke: var(--acc); stroke-width: 2; }
.scale-note { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.metric { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mv b { font: 500 30px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mv span { font-size: 13px; color: var(--ink-3); }
.mm { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; margin-top: 12px; }
.mm div { display: grid; gap: 1px; }
.mm dt { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.mm dd { font: 500 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .mv b { font-size: 24px; } .mv span { font-size: 12px; } .mm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; } .mm div:nth-child(3) { grid-column: 1 / -1; } .mm dt { white-space: normal; } .scale-note { display: none; } }

/* center */
.ctr { grid-area: ctr; display: grid; place-items: center; text-align: center; padding: 28px 26px; background-color: var(--surface); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 16px 16px; background-position: 8px 8px; }
.ctr-in { display: grid; justify-items: center; gap: 10px; max-width: 290px; }
.ctr-in h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.ctr-in p { font-size: 14px; color: var(--ink-2); }
.ctr-in small { font-size: 12.5px; color: var(--ink-3); }
.ctr-in .btn.lg { padding: 11px 20px; font-size: 15px; margin-top: 6px; }
.ctr-in .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.ctr-in .more-link { font-size: 14px; color: var(--acc); font-weight: 500; margin-top: 4px; }
.hands { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); margin-bottom: 4px; }
.count { position: relative; width: 132px; height: 132px; margin-bottom: 4px; }
.count svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.count .c-bg { fill: var(--surface); stroke: var(--sunken); stroke-width: 7; }
.count .c-fg { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linecap: round; }
.count .c-num { position: absolute; inset: 0; display: grid; place-content: center; }
.count .c-num b { font: 500 34px/1 var(--mono); font-variant-numeric: tabular-nums; }
.count .c-num span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.verdict i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.verdict.pass { color: var(--pass); } .verdict.warn { color: var(--warn); } .verdict.fail { color: var(--fail); }
.laps { display: grid; grid-template-columns: auto 130px auto; gap: 8px 10px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 6px 0 4px; }
.laps .bar { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.laps .bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 6px; }
.laps .mono { font-size: 12px; color: var(--ink); }

/* time chart */
.time { grid-area: time; }
.time .cell-h { flex-wrap: wrap; }
.lg { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.lg span { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 16px; height: 2px; border-radius: 2px; background: var(--acc); }
.lg i.r { background: var(--ink); }
.chart { position: relative; height: 150px; margin-right: 44px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .th { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .th.w { stroke: var(--warn); }
.chart polyline { fill: none; stroke-width: 1.7; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln-l { stroke: var(--acc); }
.chart .ln-r { stroke: var(--ink); }
.chart .yl { position: absolute; left: calc(100% + 8px); font: 11px var(--mono); color: var(--ink-3); transform: translateY(-50%); white-space: nowrap; }
.chart .yl.w { color: var(--warn); }
.xl { display: flex; justify-content: space-between; margin: 6px 44px 0 0; font: 11px var(--mono); color: var(--ink-3); }
.time-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* content extras */
.steps-ol { margin: 18px 0 0 20px; display: grid; gap: 14px; color: var(--ink-2); }
.steps-ol b { color: var(--ink); font-weight: 600; }
.steps-ol a { color: var(--acc); font-weight: 500; white-space: nowrap; }

@media (max-width: 640px) { .stick .cell-h h3 small { display: none; } }


/* ---- stick-drift-test ---- */
/* panels grid */
  .pgrid { grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr); grid-template-areas: "ls ctr rs" "time time time"; }
  @media (max-width: 1079px) { .pgrid { grid-template-columns: 1fr 1fr; grid-template-areas: "ctr ctr" "ls rs" "time time"; } }
  .wait { grid-row: ctr-start / ls-end; }
  .stick { grid-area: ls; }
  .stick.r { grid-area: rs; }
  [data-mode="circle"] .time { display: none; }
