/* ---- Proof-watch: Export menu, render jobs, blur box editor (public/export.js) ---- */

/* Timeline: in/out band and blur keyframe ticks */
.pwx-range { position: absolute; top: 4px; height: 48px; border: 2px solid var(--pw-yellow); border-radius: 8px; background: color-mix(in srgb, var(--pw-yellow) 12%, transparent); pointer-events: none; box-sizing: border-box; }
.pwx-range[hidden] { display: none; }
.pwx-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; pointer-events: none; }
.pwx-tick { position: absolute; bottom: 0; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--pw-accent); border-radius: 1px; }

/* Menu */
.pwx-menu { display: flex; flex-direction: column; gap: 10px; }
.pwx-menu .pw-menu-title { padding: 0; }
.pwx-seg { display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--pw-menu-hover); }
.pwx-seg-btn { flex: 1; height: 28px; border: none; border-radius: 7px; background: transparent; color: var(--pw-menu-dim); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pwx-seg-btn.on { background: var(--pw-menu-bg); color: var(--pw-menu-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.pwx-seg.sm .pwx-seg-btn { height: 24px; font-size: 12px; padding: 0 8px; }
.pwx-hint { font-size: 11.5px; color: var(--pw-menu-dim); margin-top: -4px; }
.pwx-hint kbd { font: inherit; font-size: 10.5px; padding: 0 4px; border-radius: 4px; background: var(--pw-kbd-bg); border: 1px solid var(--pw-kbd-border); }
.pwx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.pwx-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.pwx-val { font-variant-numeric: tabular-nums; }
.pwx-dim { color: var(--pw-menu-dim); font-size: 11.5px; font-weight: 400; }
.pwx-io { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.pwx-io-pt { justify-self: start; border: none; background: none; padding: 0; color: var(--pw-menu-dim); font: inherit; font-size: 12.5px; cursor: pointer; }
.pwx-io-pt b { color: var(--pw-menu-text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.pwx-io-pt:hover b { text-decoration: underline; }
.pwx-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; line-height: 1.35; }
.pwx-check input { margin-top: 2px; accent-color: var(--pw-accent); }
.pwx-check b { font-weight: 500; }
.pwx-blur-actions { display: flex; gap: 6px; margin-top: -4px; }
.pwx-menu .pw-btn-ghost { background: transparent; border-color: var(--pw-menu-border); color: var(--pw-menu-text); }
.pwx-menu .pw-btn-ghost:hover:not(:disabled) { background: var(--pw-menu-hover); }
.pwx-go { justify-content: center; height: 36px; margin-top: 2px; }

/* Rail: render jobs */
.pw-exports { margin: 10px 12px 0; flex-shrink: 0; }
.pw-exports:empty { display: none; }
.pwx-jobs { list-style: none; margin: 0; padding: 4px 0 2px; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.pwx-job { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.pwx-job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pwx-job-name { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pwx-job-done { display: flex; align-items: center; gap: 10px; }
.pwx-job-done a { text-decoration: none; }
.pwx-job .pwx-dim { color: var(--text-dim); }
.pwx-job-error { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--critical); }
.pwx-job-error svg { flex-shrink: 0; margin-top: 2px; }

/* Blur box editor overlay on the viewer */
.pwx-blur-layer { position: absolute; inset: 0; z-index: 6; }
.pwx-blur-frame { position: absolute; cursor: crosshair; touch-action: none; outline: 1px dashed rgba(255, 255, 255, 0.35); }
.pwx-blur-box { position: absolute; box-sizing: border-box; border: 2px dashed #fff; border-radius: 4px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); cursor: move; }
.pwx-blur-box.is-key { border-style: solid; border-color: var(--pw-yellow); }
.pwx-blur-box[hidden] { display: none; }
.pwx-blur-bar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(20, 20, 24, 0.88); color: #eceef1; font-size: 12.5px; backdrop-filter: blur(6px); }
.pwx-blur-bar .pw-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: #eceef1; }
.pwx-blur-hint { color: #c9cbd1; }
.pwx-spacer { flex: 1; }
.pwx-kf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pwx-kf { display: inline-flex; align-items: center; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pwx-kf.on { background: color-mix(in srgb, var(--pw-yellow) 35%, transparent); }
.pwx-kf button { border: none; background: none; color: inherit; font: inherit; font-size: 11.5px; padding: 3px 6px; cursor: pointer; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
.pwx-kf button + button { padding-left: 2px; opacity: 0.7; }
.pwx-kf button:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 720px) {
  .pwx-blur-bar { left: 6px; right: 6px; top: 6px; }
  .pwx-blur-hint { width: 100%; }
}
