/* Pen pressure test (2026-10-25). Builds on ui.css; no inline styles (the page CSP allows none). */
.pen-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
.pen-surface { padding: 0; height: 430px; overflow: hidden; display: grid; touch-action: none; user-select: none; -webkit-user-select: none; }
.pen-surface canvas { grid-area: 1 / 1; width: 100%; height: 100%; display: block; touch-action: none; }
#pad { cursor: crosshair; }
#overlay { pointer-events: none; }
.pen-live { display: grid; gap: 10px; font-size: 12px; }
.pen-pressure .lbl { color: var(--muted); margin-right: 6px; }
.pen-pressure b { font-size: 22px; color: var(--text); }
.pbar { height: 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; margin-top: 6px; }
.pbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 60ms linear; }
.pen-tilt { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; }
.tiltdial { width: 92px; height: 92px; }
.tiltdial .ring { fill: none; stroke: var(--border); stroke-width: 1.5; }
.tiltdial .ring.inner { stroke-dasharray: 3 3; }
.tiltdial .axis { stroke: var(--border); stroke-width: 1; }
.tiltdial .dot { fill: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.chip.seen { color: var(--text); border-color: var(--accent-dim); }
.chip.now { background: rgba(149, 214, 0, 0.18); border-color: var(--accent); color: var(--text); }
.pgraph { width: 100%; height: 110px; display: block; margin-top: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
#help ul { margin: 6px 0 0; padding-left: 18px; } #help li { margin: 3px 0; }
@media (max-width: 900px) {
  .pen-layout { grid-template-columns: 1fr; }
  .pen-surface { height: 58vh; min-height: 300px; }
}
.pen-surface:fullscreen { height: 100vh; width: 100vw; border-radius: 0; }
