/* The guided try-out on the demo page: the three-step guide at the top, the pointer at the Feedback button and the result
   view that shows the report the visitor just sent. Phones first (390px wide, in-app browsers); wider screens below. */
.tour { position:sticky; top:0; z-index:4; background:#fffbeb; border-bottom:1px solid #fde68a; color:#422006; padding:8px 12px; }
.tour-demo { margin:0; font-size:12px; line-height:1.3; color:#78350f; }
.tour-demo .more { display:none; }
.tour-steps { list-style:none; margin:0; padding:0; }
.tour-n { flex:none; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-weight:750; font-size:13px; background:#fff; border:1px solid #fcd34d; color:#92400e; }
.tour-steps li.on .tour-n { background:#0f766e; border-color:#0f766e; color:#fff; box-shadow:0 0 0 3px #99f6e4; }
.tour-steps li.done .tour-n { background:#15803d; border-color:#15803d; color:#fff; }
.tour-t { font-size:13px; line-height:1.35; }
.tour-go { display:none; flex:none; min-height:44px; padding:0 14px; border:0; border-radius:10px; background:#0f766e; color:#fff; font:inherit; font-size:14px; font-weight:650; cursor:pointer; white-space:nowrap; }
.tour-steps li.on .tour-go:not([hidden]) { display:block; }
.tour-go:focus-visible, .rv button:focus-visible, .rv a:focus-visible { outline:2px solid #0f766e; outline-offset:2px; }
/* Phones: the demo line as one small full-width line on top, the three numbers below it, then the current step's text and
   button. Next to the numbers the line had too little room and wrapped.
   The list and its items take no box of their own here (display:contents), so their parts sit in one grid. */
@media (max-width:699px) {
  .tour { display:grid; grid-template-columns:26px 26px 26px 1fr auto; column-gap:6px; row-gap:6px; align-items:center; }
  .tour-steps, .tour-steps li { display:contents; }
  .tour-steps li[data-step="1"] .tour-n { grid-column:1; grid-row:2; }
  .tour-steps li[data-step="2"] .tour-n { grid-column:2; grid-row:2; }
  .tour-steps li[data-step="3"] .tour-n { grid-column:3; grid-row:2; }
  .tour-demo { grid-column:1 / 6; grid-row:1; font-size:11px; }
  .tour-t { display:none; }
  .tour-steps li.on .tour-t { display:block; grid-column:1 / 5; grid-row:3; font-weight:650; }
  .tour-steps li.on.wide .tour-t { grid-column:1 / 6; }
  .tour-steps li.on .tour-go { grid-column:5; grid-row:3; }
}
@media (max-width:340px) { .tour-go { padding:0 10px; font-size:13px; } }
@media (min-width:700px) {
  .tour { padding:10px 32px; }
  .tour-demo { margin:0 0 6px; }
  .tour-demo .more { display:inline; }
  .tour-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
  .tour-steps li { display:flex; align-items:center; gap:8px; min-width:0; border-radius:10px; border:1px solid transparent; padding:6px 8px; }
  .tour-steps li.on { background:#fff; border-color:#fcd34d; }
  .tour-steps li.on .tour-t { font-weight:650; }
  .tour-t { flex:1; min-width:0; }
  .tour-go { min-height:40px; }
  .tour-steps li:not(.done) .tour-go:not([hidden]) { display:block; } /* room for it: Feedback can be opened before step 1 */
}
/* the planted bug's message shows under the guide, not on top of it */
.note { top:120px; }
@media (min-width:700px) { .note { top:108px; } }

/* the pointer at the floating Feedback button (the widget draws its button 20px from the bottom right) */
.tour-tip { position:fixed; right:24px; bottom:72px; z-index:3; background:#0b2530; color:#fff; font-size:13px; font-weight:650; padding:7px 11px; border-radius:10px; pointer-events:none; box-shadow:0 6px 18px rgba(0,0,0,.18); animation:tour-bob 1.6s ease-in-out infinite; }
.tour-tip::after { content:""; position:absolute; right:28px; bottom:-6px; border:6px solid transparent; border-bottom:0; border-top-color:#0b2530; }
@keyframes tour-bob { 50% { transform:translateY(-4px); } }
@media (prefers-reduced-motion:reduce) { .tour-tip { animation:none; } }

/* the result view: a full-screen sheet on phones, a centred card on wider screens. Above the widget's own layer. */
html.rv-lock, html.rv-lock body { overflow:hidden; }
.rv { position:fixed; inset:0; z-index:2147483647; background:rgba(11,37,48,.55); display:flex; }
.rv[hidden] { display:none; }
.rv-card { background:#fff; color:#0f1a2a; width:100%; height:100%; display:flex; flex-direction:column; outline:none; }
.rv-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 8px 10px 16px; border-bottom:1px solid #e4e8ee; }
.rv-head h2 { margin:0; font-size:18px; letter-spacing:-.01em; }
.rv-x { flex:none; width:44px; height:44px; border:0; border-radius:10px; background:#f1f5f9; color:#0f1a2a; font-size:24px; line-height:1; cursor:pointer; }
.rv-body { flex:1; min-height:0; overflow:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:14px 16px 18px; font-size:15px; line-height:1.45; }
.rv-ref { margin:0 0 12px; color:#5f6b7c; font-size:14px; }
.rv-ref b { font-family:ui-monospace,Menlo,monospace; color:#0f1a2a; background:#f1f5f9; padding:2px 8px; border-radius:6px; }
.rv-sec { margin:0 0 16px; }
.rv-sec h3 { margin:0 0 6px; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:#5f6b7c; }
.rv-sec p { margin:0; overflow-wrap:anywhere; }
.rv-desc { white-space:pre-wrap; background:#f8fafc; border:1px solid #e4e8ee; border-radius:10px; padding:10px 12px; }
.rv-tags { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 6px !important; }
.rv-tags span { font-size:13px; background:#ecfdf5; color:#065f46; border-radius:999px; padding:3px 10px; }
.rv-quiet { color:#5f6b7c; font-style:italic; }
.rv-sec ol, .rv-sec ul { margin:0; padding-left:20px; }
.rv-sec li { margin:2px 0; overflow-wrap:anywhere; }
.rv-code li { font-family:ui-monospace,Menlo,monospace; font-size:13px; }
.rv-more { color:#5f6b7c; font-size:13px; margin-top:4px !important; }
.rv-media img, .rv-media video { display:block; max-width:100%; max-height:60vh; border:1px solid #e4e8ee; border-radius:10px; background:#f1f5f9; }
.rv-media audio { width:100%; }
.rv-blur { font-size:13px; color:#166534; background:#f0fdf4; border-radius:10px; padding:8px 10px; }
.rv-body a { color:#0f766e; font-weight:650; text-decoration:underline; }
.rv-foot { flex:none; display:grid; gap:6px; padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top:1px solid #e4e8ee; background:#fff; text-align:center; }
.rv-start { display:flex; align-items:center; justify-content:center; min-height:48px; border-radius:12px; background:#0f766e; color:#fff !important; font-size:16px; font-weight:700; text-decoration:none; }
.rv-free { margin:0; font-size:13px; color:#5f6b7c; }
.rv-another { min-height:44px; border:1px solid #e4e8ee; border-radius:12px; background:#fff; color:#0f1a2a; font:inherit; font-size:15px; font-weight:600; cursor:pointer; }
@media (min-width:700px) {
  .rv { align-items:center; justify-content:center; padding:32px; }
  .rv-card { width:min(640px, 100%); height:auto; max-height:calc(100vh - 64px); border-radius:16px; box-shadow:0 30px 80px rgba(0,0,0,.3); overflow:hidden; }
  .rv-head { padding:14px 12px 14px 22px; }
  .rv-body { padding:18px 22px 20px; }
  .rv-foot { padding:14px 22px 16px; }
}
