/* Log a Bug demo (home page): video + voice, Framework + Structure, page objects tree. V8.10.4 extension features. */

.pg .bi { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg .bi.fill { fill: currentColor; stroke: none; }

/* ---- idle: heading and the two ticks */
.bug-head { margin: 0; font: 400 24px/1.1 var(--serif); color: var(--esp-900); letter-spacing: -.01em; }
.bug-head em { display: block; font-style: italic; color: var(--ember-600); }
.vopts { display: grid; gap: 8px; width: 100%; text-align: left; }
.vopt { position: relative; display: grid; grid-template-columns: 18px 20px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--cream-50); box-shadow: 0 0 0 1.5px var(--cream-300) inset; cursor: pointer; }
.vopt:has(input:checked) { background: var(--ember-tint); box-shadow: 0 0 0 1.5px var(--ember-500) inset; }
.vopt:has(input:focus-visible) { box-shadow: 0 0 0 1.5px var(--ember-500) inset, var(--ring); }
.vopt.sub { margin-left: 18px; }
.vopt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ember-600); cursor: pointer; }
.vopt-ic { display: grid; place-items: center; color: var(--ember-700); padding-top: 1px; }
.vopt-t { display: grid; gap: 2px; min-width: 0; }
.vopt-t b { font: 800 13.5px/1.25 var(--sans); color: var(--esp-900); }
.vopt-t small { font: 600 12px/1.4 var(--sans); color: var(--esp-600); }
.vopt-lock { display: none; }
.vopt-lock svg { width: 15px; height: 15px; color: var(--ember-600); }
.vopt.is-locked { cursor: not-allowed; opacity: .85; }
.vopt.is-locked input { cursor: not-allowed; }
.vopt.is-locked .vopt-lock { display: block; }
.vlock { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream-200); color: var(--esp-700); text-align: left; }
.vlock > svg { flex: none; width: 16px; height: 16px; color: var(--ember-600); }
.vlock > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.vlock b { font: 800 13px/1.25 var(--sans); color: var(--esp-900); }
.vlock small { font: 600 12px/1.35 var(--sans); color: var(--esp-600); }
.vlock-btn { flex: none; padding: 8px 12px; border-radius: 9px; background: var(--btn-grad); color: #fff; font: 800 12.5px/1 var(--sans); text-decoration: none; }
.vlock-btn:hover { color: #fff; }
.vlock-btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---- recording: the video line in the dark bar */
.vbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 10px; background: rgba(244, 235, 219, .08); color: #F4EBDB; font: 600 12.5px/1.35 var(--sans); }
.vbar-dot { width: 7px; height: 7px; border-radius: 50%; background: #F0644A; animation: rec-blink 1.4s ease-in-out infinite; }
.vbar-text { flex: 1 1 150px; min-width: 0; font-variant-numeric: tabular-nums; }
.vbar-text b { font: 700 13px/1 var(--mono); color: #FFF8EA; }
.vbar-voice { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(47, 122, 77, .35); color: #C9EBD3; font: 800 11px/1.2 var(--sans); }
.vbar-voice .bi { width: 12px; height: 12px; }
.vbar-blur { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 6px 10px; border: 1px solid rgba(244, 235, 219, .25); border-radius: 8px; background: transparent; color: #F4EBDB; font: 800 11.5px/1 var(--sans); cursor: pointer; }
.vbar-blur .bi { width: 13px; height: 13px; }
.vbar-blur[aria-pressed="true"] { background: var(--champagne); border-color: var(--champagne); color: var(--esp-900); }
.vbar-blur:focus-visible { outline: none; box-shadow: var(--ring); }
.vbar.is-low { background: rgba(166, 50, 32, .45); }
.vbar.is-low .vbar-text, .vbar.is-low .vbar-text b { color: #FFC9BC; }
.vbar.is-paused .vbar-dot { animation: none; background: var(--champagne); }
.vbar.is-saved { background: rgba(47, 122, 77, .3); }
.vbar.is-saved .vbar-dot { animation: none; background: #8FD3A6; }

/* the page: REC video badge and Blur in video */
.pg-recvid { position: absolute; top: 52px; right: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(31, 23, 18, .85); color: #fff; font: 800 10.5px/1 var(--sans); letter-spacing: .06em; pointer-events: none; }
.pg-recvid::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F0644A; animation: rec-blink 1.4s ease-in-out infinite; }
.pgb-page.is-vpick { cursor: crosshair; }
.pgb-page.is-vpick * { cursor: crosshair; }
.pgb-page.is-vpick .sp-cocard :is(.sp-field, .sp-radios, .sp-line, button, h3):hover { outline: 2px dashed var(--champagne); outline-offset: 2px; }
.pgb-page.is-vpick::after { content: "Click a part of the page to blur it in the video. Esc to stop."; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; padding: 7px 10px; border-radius: 8px; background: rgba(31, 23, 18, .88); color: #fff; font: 800 12px/1.3 var(--sans); text-align: center; pointer-events: none; }
.pgb-page .is-vblur { filter: blur(5px); }

/* step time chips */
.tchip { display: inline-flex; align-items: center; gap: 3px; margin: 0 6px 2px 0; padding: 2px 7px; border: 0; border-radius: 999px; background: var(--ember-tint); color: var(--ember-700); font: 800 11px/1.3 var(--mono); vertical-align: 1px; }
.tchip::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
button.tchip { cursor: pointer; }
button.tchip:hover, button.tchip.is-at { background: var(--ember-600); color: #fff; }
button.tchip:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---- review: Video */
.vsec { display: grid; gap: 8px; margin-bottom: 12px; }
.vsec-h { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--esp-600); }
.vsec-h .bi { width: 14px; height: 14px; color: var(--ember-600); }
.vplayer { overflow: hidden; border-radius: 10px; background: #0F0B09; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.vframe { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vframe-inner { position: absolute; left: 0; top: 0; width: var(--pw, 600px); transform: translate(var(--vx, 0), var(--vy, 0)) scale(var(--s, .5)); transform-origin: 0 0; pointer-events: none; }
.vframe-inner .pgb-page { min-height: 0; }
.vmark { position: absolute; top: calc(var(--my, 0px) + 6px); right: calc(var(--mx, 0px) + 8px); padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .35); color: #F28A3C; font: 800 11px/1.2 var(--sans); letter-spacing: .02em; pointer-events: none; }
.vcap { position: absolute; left: 50%; bottom: 10px; max-width: calc(100% - 20px); margin: 0; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 12px/1.35 var(--sans); transform: translateX(-50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.vring { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2.5px solid #F28A3C; border-radius: 50%; box-shadow: 0 0 0 4px rgba(242, 138, 60, .3); transition: left .35s ease, top .35s ease; pointer-events: none; animation: vring 1.2s ease-out infinite; }
@keyframes vring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.25); opacity: .55; } }
.vbig { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: rgba(31, 23, 18, .78); color: #fff; transform: translate(-50%, -50%); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); transition: opacity .2s ease, transform .2s ease; }
.vbig .bi { width: 26px; height: 26px; margin-left: 3px; }
.vbig:hover { background: var(--ember-600); }
.vbig:focus-visible { outline: none; box-shadow: var(--ring); }
.vplayer.is-playing .vbig { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.vctrl { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #17110D; color: #F4EBDB; }
.vpp { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; }
.vpp .bi { width: 18px; height: 18px; }
.vpp .i-pause, .vpp[aria-pressed="true"] .i-play { display: none; }
.vpp[aria-pressed="true"] .i-pause { display: block; }
.vpp:focus-visible { outline: none; box-shadow: var(--ring); }
.vtime { flex: none; font: 700 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.vseek { flex: 1; min-width: 0; height: 18px; margin: 0; accent-color: #F28A3C; cursor: pointer; }
.vbody { display: grid; gap: 8px; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font: 700 12.5px/1.3 var(--sans); color: var(--esp-700); }
.vmeta b { font-family: var(--mono); color: var(--esp-900); }
.vmeta .bi { width: 13px; height: 13px; color: var(--success); }
.vacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.vdl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--cream-300) inset; color: var(--esp-800); font: 800 12.5px/1 var(--sans); cursor: pointer; }
.vdl svg { width: 14px; height: 14px; }
.vdl:hover { box-shadow: 0 0 0 1.5px var(--ember-400) inset; }
.vdl:focus-visible { outline: none; box-shadow: var(--ring); }
.vzip { display: inline-flex; align-items: center; gap: 7px; font: 700 12.5px/1.3 var(--sans); color: var(--esp-800); cursor: pointer; }
.vzip input { width: 16px; height: 16px; margin: 0; accent-color: var(--ember-600); }
.vsec .note { margin: 0; font-size: 12.5px; }

/* ---- review: more screenshot tools are in the extension */
.tool-more { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: transparent; box-shadow: 0 0 0 1px var(--cream-300) inset; color: var(--esp-600); font: 700 12px/1 var(--sans); }
.tool-more svg { width: 12px; height: 12px; color: var(--ember-600); }

/* ---- test script: Framework + Structure + file tree */
.bug-struct { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 800 12px/1.2 var(--sans); color: var(--esp-600); }
.pgp .bug-struct .seg { flex: 1; min-width: 0; width: auto; }
.fw-soon { margin: 0 0 8px; padding: 7px 10px; border-radius: 9px; background: var(--warn-tint, #FFF4DB); color: var(--warn-ink, #7A5200); font: 700 12px/1.4 var(--sans); }
.ftree { display: grid; gap: 1px; margin-bottom: 8px; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--cream-300) inset; max-height: 230px; overflow-y: auto; overscroll-behavior: contain; }
.ftree-head { margin: 0 0 4px; padding: 0 4px; font: 600 11.5px/1.3 var(--sans); color: var(--esp-600); }
.ftree-head b { font-family: var(--mono); color: var(--esp-900); }
.ftree-dir { display: flex; align-items: center; gap: 6px; width: 100%; margin: 3px 0 1px; padding: 5px 8px; border: 1px solid rgba(232, 121, 58, .28); border-radius: 8px; background: rgba(255, 237, 220, .7); color: var(--esp-800); font: 700 12px/1.25 var(--mono); text-align: left; cursor: pointer; }
.ftree-dir:hover { background: var(--ember-tint); }
.ftree-dir:focus-visible { outline: none; box-shadow: var(--ring); }
.ftree-dir .bi { width: 14px; height: 14px; flex: none; color: var(--esp-600); }
.ftree-dname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ftree-dir small { flex: none; font: 600 11px/1 var(--sans); color: var(--esp-500); }
.ftree-arrow { flex: none; width: 7px; height: 7px; margin: 0 3px 0 1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.ftree-dir[aria-expanded="true"] .ftree-arrow { transform: rotate(45deg) translate(-1px, -1px); }
.ftree-file { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 28px; padding: 4px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--esp-800); font: 600 12px/1.25 var(--mono); text-align: left; overflow-wrap: anywhere; }
button.ftree-file { cursor: pointer; }
.ftree-file.in { padding-left: 26px; }
.ftree-file .bi, .ftree-file svg { width: 13px; height: 13px; flex: none; color: var(--esp-500); }
button.ftree-file:hover { background: var(--cream-100); }
.ftree-file[aria-pressed="true"] { background: var(--ember-tint); color: var(--ember-800); font-weight: 800; }
.ftree-file[aria-pressed="true"] .bi { color: var(--ember-600); }
button.ftree-file:focus-visible { outline: none; box-shadow: var(--ring); }
.ftree-file.is-locked { color: var(--esp-500); }
.ftree-file.is-locked svg { color: var(--ember-600); }

/* zip list: long project paths wrap */
.zip-list li span { min-width: 0; overflow-wrap: anywhere; }
.zip-note { font: 600 12px/1.4 var(--sans); color: #BFAF98; }

@media (max-width: 620px) {
  .bug-head { font-size: 21px; }
  .vopt.sub { margin-left: 0; }
  .vlock { flex-wrap: wrap; }
  .vbar-blur { margin-left: 0; }
  .vbig { width: 46px; height: 46px; }
  .vcap { font-size: 11px; }
  .bug-struct { flex-wrap: wrap; }
  .pgp .bug-struct .seg { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vbar-dot, .pg-recvid::before, .vring { animation: none; }
  .vring { transition: none; }
}
