[hidden] { display: none !important; }
.tp-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tp-bar .btn { width: auto; padding: 10px 18px; }
.tp-bar .btn.secondary { background: #fff; color: #334155; border: 1px solid var(--border); }
.tp-bar .btn.secondary:hover { background: #f1f5f9; }
.tp-stage { position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.tp-stage canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.tp-msg { color: var(--danger); font-size: 0.9rem; margin: 10px 0; min-height: 1em; }
.tp-points { margin: 12px 0 0; padding-left: 24px; }
.tp-points li { padding: 2px 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.tp-points li b { color: var(--primary); }
#loupe { position: fixed; top: 12px; right: 12px; z-index: 5; border: 2px solid var(--primary); border-radius: 50%; overflow: hidden; width: 150px; height: 150px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); pointer-events: none; background: #000; }
#loupe canvas { width: 150px; height: 150px; display: block; }
.tp-ratio { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; color: var(--muted); }
.tp-ratio input { flex: 1; max-width: 260px; accent-color: var(--primary); }
.tp-ratio b { color: var(--text); min-width: 3em; font-variant-numeric: tabular-nums; }
.tp-bar .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tp-save { margin: 12px 0 0; }
.tp-stage + .tp-ratio { margin: 12px 0 0; }
@media (max-width: 480px) { .tp-bar .btn { padding: 8px 12px; font-size: 0.85rem; } }
