/* @pqs/app-shell 0.4.0 */
/*!
 * Cropper.js v1.6.2
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2024-04-21T07:43:02.731Z
 */

.cropper-container {
  direction: ltr;
  font-size: 0;
  line-height: 0;
  position: relative;
  -ms-touch-action: none;
      touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.cropper-container img {
    backface-visibility: hidden;
    display: block;
    height: 100%;
    image-orientation: 0deg;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100%;
  }

.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cropper-wrap-box,
.cropper-canvas {
  overflow: hidden;
}

.cropper-drag-box {
  background-color: #fff;
  opacity: 0;
}

.cropper-modal {
  background-color: #000;
  opacity: 0.5;
}

.cropper-view-box {
  display: block;
  height: 100%;
  outline: 1px solid #39f;
  outline-color: rgba(51, 153, 255, 0.75);
  overflow: hidden;
  width: 100%;
}

.cropper-dashed {
  border: 0 dashed #eee;
  display: block;
  opacity: 0.5;
  position: absolute;
}

.cropper-dashed.dashed-h {
    border-bottom-width: 1px;
    border-top-width: 1px;
    height: calc(100% / 3);
    left: 0;
    top: calc(100% / 3);
    width: 100%;
  }

.cropper-dashed.dashed-v {
    border-left-width: 1px;
    border-right-width: 1px;
    height: 100%;
    left: calc(100% / 3);
    top: 0;
    width: calc(100% / 3);
  }

.cropper-center {
  display: block;
  height: 0;
  left: 50%;
  opacity: 0.75;
  position: absolute;
  top: 50%;
  width: 0;
}

.cropper-center::before,
  .cropper-center::after {
    background-color: #eee;
    content: ' ';
    display: block;
    position: absolute;
  }

.cropper-center::before {
    height: 1px;
    left: -3px;
    top: 0;
    width: 7px;
  }

.cropper-center::after {
    height: 7px;
    left: 0;
    top: -3px;
    width: 1px;
  }

.cropper-face,
.cropper-line,
.cropper-point {
  display: block;
  height: 100%;
  opacity: 0.1;
  position: absolute;
  width: 100%;
}

.cropper-face {
  background-color: #fff;
  left: 0;
  top: 0;
}

.cropper-line {
  background-color: #39f;
}

.cropper-line.line-e {
    cursor: ew-resize;
    right: -3px;
    top: 0;
    width: 5px;
  }

.cropper-line.line-n {
    cursor: ns-resize;
    height: 5px;
    left: 0;
    top: -3px;
  }

.cropper-line.line-w {
    cursor: ew-resize;
    left: -3px;
    top: 0;
    width: 5px;
  }

.cropper-line.line-s {
    bottom: -3px;
    cursor: ns-resize;
    height: 5px;
    left: 0;
  }

.cropper-point {
  background-color: #39f;
  height: 5px;
  opacity: 0.75;
  width: 5px;
}

.cropper-point.point-e {
    cursor: ew-resize;
    margin-top: -3px;
    right: -3px;
    top: 50%;
  }

.cropper-point.point-n {
    cursor: ns-resize;
    left: 50%;
    margin-left: -3px;
    top: -3px;
  }

.cropper-point.point-w {
    cursor: ew-resize;
    left: -3px;
    margin-top: -3px;
    top: 50%;
  }

.cropper-point.point-s {
    bottom: -3px;
    cursor: s-resize;
    left: 50%;
    margin-left: -3px;
  }

.cropper-point.point-ne {
    cursor: nesw-resize;
    right: -3px;
    top: -3px;
  }

.cropper-point.point-nw {
    cursor: nwse-resize;
    left: -3px;
    top: -3px;
  }

.cropper-point.point-sw {
    bottom: -3px;
    cursor: nesw-resize;
    left: -3px;
  }

.cropper-point.point-se {
    bottom: -3px;
    cursor: nwse-resize;
    height: 20px;
    opacity: 1;
    right: -3px;
    width: 20px;
  }

@media (min-width: 768px) {

.cropper-point.point-se {
      height: 15px;
      width: 15px;
  }
    }

@media (min-width: 992px) {

.cropper-point.point-se {
      height: 10px;
      width: 10px;
  }
    }

@media (min-width: 1200px) {

.cropper-point.point-se {
      height: 5px;
      opacity: 0.75;
      width: 5px;
  }
    }

.cropper-point.point-se::before {
    background-color: #39f;
    bottom: -50%;
    content: ' ';
    display: block;
    height: 200%;
    opacity: 0;
    position: absolute;
    right: -50%;
    width: 200%;
  }

.cropper-invisible {
  opacity: 0;
}

.cropper-bg {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
}

.cropper-hide {
  display: block;
  height: 0;
  position: absolute;
  width: 0;
}

.cropper-hidden {
  display: none !important;
}

.cropper-move {
  cursor: move;
}

.cropper-crop {
  cursor: crosshair;
}

.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
  cursor: not-allowed;
}

/* pqs-shell-stylesheet
   Shared page tokens and the small PQS badge. Every mini-app loads this file,
   or the vendored pqs-app-shell.css that includes it. The badge is a footer
   link to https://pqs.tools (P #2563EB, Q #0D9488, S #EA580C). It is not a
   fixed corner chip and it is not a bar in the middle of the page. */

.pqs-shell,
.pqs-page {
  --pqs-bg: #f4f6f9;
  --pqs-surface: #ffffff;
  --pqs-text: #141b26;
  --pqs-muted: #5b6676;
  --pqs-border: #e2e8f0;
  --pqs-sunken: #f4f6f9;
  --pqs-wash: color-mix(in srgb, var(--pqs-brand, #334155) 12%, #ffffff);
  --pqs-accent-text: var(--pqs-brand-ink, #1e293b);
  --pqs-code-bg: #141b26;
  --pqs-code-fg: #e6edf6;
  --pqs-shadow: 0 8px 24px rgba(20, 27, 38, 0.08);
  color: var(--pqs-text);
  background: transparent;
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.pqs-shell[data-theme="dark"],
.pqs-page[data-theme="dark"] {
  --pqs-bg: #0d121a;
  --pqs-surface: #141b26;
  --pqs-text: #e6edf6;
  --pqs-muted: #9aa8ba;
  --pqs-border: #2c3a4c;
  --pqs-sunken: #0d121a;
  --pqs-wash: color-mix(in srgb, var(--pqs-brand, #334155) 24%, #141b26);
  --pqs-accent-text: color-mix(in srgb, var(--pqs-brand, #60a5fa) 68%, white);
  --pqs-code-bg: #0b1018;
  --pqs-code-fg: #e6edf6;
  --pqs-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--pqs-text);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .pqs-shell:not([data-theme="light"]),
  .pqs-page:not([data-theme="light"]) {
    --pqs-bg: #0d121a;
    --pqs-surface: #141b26;
    --pqs-text: #e6edf6;
    --pqs-muted: #9aa8ba;
    --pqs-border: #2c3a4c;
    --pqs-sunken: #0d121a;
    --pqs-wash: color-mix(in srgb, var(--pqs-brand, #334155) 24%, #141b26);
    --pqs-accent-text: color-mix(in srgb, var(--pqs-brand, #60a5fa) 68%, white);
    --pqs-code-bg: #0b1018;
    --pqs-code-fg: #e6edf6;
    --pqs-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: var(--pqs-text);
    color-scheme: dark;
  }
}

.pqs-shell,
.pqs-page,
.pqs-shell *,
.pqs-page *,
.pqs-shell *::before,
.pqs-page *::before,
.pqs-shell *::after,
.pqs-page *::after {
  box-sizing: border-box;
}

/* The page is at least the viewport. The footer follows the content on a long
   page and sits on the bottom edge when the content is short. */
.pqs-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--pqs-bg);
}

.pqs-page > main,
.pqs-page > #root {
  flex: 1 0 auto;
}

body:has(> .pqs-page) {
  margin: 0;
}

body:has(> .pqs-footer) {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body:has(> .pqs-footer) > main {
  flex: 1 0 auto;
}

.pqs-footer {
  position: static;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border-top: 1px solid var(--pqs-border);
  background: var(--pqs-surface);
  color: var(--pqs-text);
}

pqs-app-badge {
  display: contents;
}

.pqs-shell :focus-visible,
.pqs-page :focus-visible {
  outline: 2px solid var(--pqs-brand, #2563eb);
  outline-offset: 2px;
}

.pqs-badge {
  position: static;
  inset: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 7px 9px 6px;
  border: 1px solid var(--pqs-border);
  border-radius: 10px;
  background: var(--pqs-surface);
  box-shadow: none;
  overflow: visible;
  line-height: 0;
  text-decoration: none;
}

.pqs-shell .pqs-badge__mark,
.pqs-shell .pqs-badge__mark svg,
.pqs-footer .pqs-badge__mark,
.pqs-footer .pqs-badge__mark svg {
  height: 16px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.pqs-badge:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .pqs-badge:hover { transform: none; }
}

.pqs-enable-notice {
  width: min(760px, 100%);
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--pqs-border);
  border-left: 4px solid var(--pqs-brand, #2563eb);
  border-radius: 12px;
  background: var(--pqs-surface);
  color: var(--pqs-text);
}

.pqs-enable-notice h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pqs-enable-notice p,
.pqs-enable-notice li {
  margin: 8px 0;
}

.pqs-enable-notice a {
  color: var(--pqs-accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pqs-enable-notice .pqs-hosts {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.pqs-enable-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.pqs-enable-notice pre {
  margin: 8px 0;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--pqs-code-bg);
  color: var(--pqs-code-fg);
}

@media print {
  .pqs-footer,
  .pqs-badge { display: none !important; }
}

/* Shared chrome for PQS mini-apps. Tokens, the page frame, and the footer badge are in pqs-shell.css. Brand color comes from --pqs-brand and --pqs-brand-ink on each root. No external fonts. */

.pqs-shell,
.pqs-shell *,
.pqs-shell *::before,
.pqs-shell *::after {
  box-sizing: border-box;
}

.pqs-shell button,
.pqs-shell input,
.pqs-shell textarea,
.pqs-shell select {
  font: inherit;
  color: inherit;
}

.pqs-shell button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pqs-shell a {
  color: inherit;
}

.pqs-shell :focus {
  outline: none;
}

.pqs-shell :focus-visible {
  outline: 2px solid var(--pqs-brand, #2563eb);
  outline-offset: 2px;
}

.pqs-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: var(--pqs-brand-ink, #1e293b);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
}

.pqs-skip:focus {
  top: 8px;
}

.pqs-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--pqs-surface);
  border-bottom: 3px solid var(--pqs-brand-ink, #1e293b);
}

.pqs-nav__bar {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  min-height: 64px;
  padding: 8px 16px;
}

.pqs-shell .pqs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  overflow: visible;
  border-radius: 0;
  background: none;
  object-fit: contain;
  color: var(--pqs-text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* App artwork already includes its own corners and outline. Scale it; never re-round or crop it. */
.pqs-shell .pqs-brand__logo,
.pqs-shell .pqs-brand__logo--svg {
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: none;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.pqs-shell .pqs-brand__logo--svg svg {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  border-radius: 0;
  background: none;
}

.pqs-brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pqs-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.pqs-shell .pqs-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--pqs-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.pqs-shell .pqs-nav__link:hover {
  background: var(--pqs-wash);
  color: var(--pqs-accent-text);
}

.pqs-shell .pqs-nav__link[aria-current="page"] {
  background: var(--pqs-brand-ink, #1e293b);
  color: #fff;
}

.pqs-nav__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pqs-shell .pqs-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pqs-wash);
  color: var(--pqs-accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pqs-shell .pqs-agent[aria-current="page"] {
  background: var(--pqs-brand-ink, #1e293b);
  color: #fff;
}

.pqs-icon {
  display: block;
  flex: none;
}

.pqs-shell .pqs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pqs-shell .pqs-btn--primary {
  background: var(--pqs-brand-ink, #1e293b);
  color: #fff;
}

.pqs-shell .pqs-btn--primary:hover {
  background: var(--pqs-brand, #334155);
}

.pqs-shell .pqs-btn:disabled,
.pqs-shell .pqs-btn:disabled:hover {
  opacity: 1;
  cursor: not-allowed;
  background: var(--pqs-sunken);
  color: var(--pqs-muted);
  border-color: var(--pqs-border);
}

.pqs-shell .pqs-btn--ghost {
  background: transparent;
  border-color: var(--pqs-border);
  color: var(--pqs-text);
}

.pqs-shell .pqs-btn--ghost:hover {
  background: var(--pqs-sunken);
}

.pqs-account--bar,
.pqs-account--panel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pqs-account__line {
  color: var(--pqs-muted);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.pqs-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pqs-wash);
  color: var(--pqs-accent-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.pqs-signout,
.pqs-signout form {
  margin: 0;
  display: inline-flex;
}

.pqs-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--pqs-text);
}

.pqs-nav__toggle:hover {
  background: var(--pqs-sunken);
}

.pqs-burger {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.pqs-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease, top 0.15s ease;
}

.pqs-burger span:nth-child(1) { top: 0; }
.pqs-burger span:nth-child(2) { top: 6px; }
.pqs-burger span:nth-child(3) { top: 12px; }

.pqs-nav__toggle.is-open .pqs-burger span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.pqs-nav__toggle.is-open .pqs-burger span:nth-child(2) { opacity: 0; }

.pqs-nav__toggle.is-open .pqs-burger span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.pqs-nav__panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 20px;
  border-top: 1px solid var(--pqs-border);
  background: var(--pqs-surface);
}

.pqs-nav__panel[hidden] {
  display: none;
}

.pqs-shell .pqs-nav__panel .pqs-nav__link,
.pqs-shell .pqs-nav__panel .pqs-btn {
  width: 100%;
  justify-content: flex-start;
}

.pqs-account--panel {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--pqs-border);
}

/* The full link row, Feedback, Connect, and the account line fit together from 1366px up. */
@media (max-width: 1365px) {
  .pqs-nav__links { display: none; }
  .pqs-nav__toggle { display: inline-flex; }
  .pqs-account--bar .pqs-account__line,
  .pqs-account--bar .pqs-signout { display: none; }
}

@media (min-width: 1366px) {
  .pqs-nav__panel { display: none !important; }
}

@media (max-width: 640px) {
  .pqs-agent__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .pqs-shell .pqs-agent {
    justify-content: center;
    min-width: 40px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .pqs-brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.pqs-connect {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 32px 20px;
}

.pqs-kicker {
  margin: 0 0 6px;
  color: var(--pqs-accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pqs-connect h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.pqs-connect h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pqs-connect h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.pqs-lead {
  margin: 0;
  font-size: 1.02rem;
}

.pqs-connect p {
  margin: 8px 0;
}

.pqs-card,
.pqs-callout {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--pqs-border);
  border-radius: 12px;
  background: var(--pqs-surface);
}

.pqs-callout {
  border-left: 4px solid var(--pqs-brand, #2563eb);
}

.pqs-callout--warn {
  border-left-color: #b45309;
  background: color-mix(in srgb, #b45309 8%, var(--pqs-surface));
}

.pqs-hosts {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.pqs-url,
.pqs-copyline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pqs-url code,
.pqs-copyline code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid var(--pqs-border);
  border-radius: 8px;
  background: var(--pqs-sunken);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.pqs-facts {
  margin: 12px 0 0;
}

.pqs-facts div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--pqs-border);
}

.pqs-facts dt {
  color: var(--pqs-muted);
  font-size: 0.875rem;
}

.pqs-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pqs-connect a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pqs-connect a.pqs-btn,
.pqs-connect a.pqs-agent {
  text-decoration: none;
}

.pqs-client {
  padding: 14px 0;
  border-top: 1px solid var(--pqs-border);
}

.pqs-client ol,
.pqs-notes {
  margin: 0;
  padding-left: 1.25rem;
}

.pqs-client li,
.pqs-notes li {
  margin: 4px 0;
}

.pqs-snippet {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--pqs-code-bg);
  color: var(--pqs-code-fg);
}

.pqs-snippet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 0 12px;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.pqs-snippet pre {
  margin: 0;
  padding: 8px 12px 12px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.pqs-snippet code {
  font-family: inherit;
}

.pqs-shell .pqs-snippet .pqs-btn {
  min-height: 32px;
  border-color: transparent;
  color: #e6edf6;
}

.pqs-shell .pqs-snippet .pqs-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 560px) {
  .pqs-facts div { grid-template-columns: 1fr; }
  .pqs-url { flex-wrap: wrap; }
  .pqs-url code { width: 100%; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pqs-shell *,
  .pqs-shell *::before,
  .pqs-shell *::after {
    transition: none !important;
  }
  .pqs-badge:hover { transform: none; }
}

.pqs-feedback {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pqs-feedback[hidden] { display: none; }

.pqs-feedback__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 27, 38, 0.48);
}

.pqs-feedback__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 16px 18px 20px;
  border: 1px solid var(--pqs-border);
  border-radius: 14px;
  background: var(--pqs-surface);
  box-shadow: var(--pqs-shadow);
}

.pqs-feedback__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pqs-feedback__head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.pqs-feedback__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  border: 0;
  padding: 0;
}

.pqs-feedback__field input,
.pqs-feedback__field textarea,
.pqs-feedback__field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pqs-border);
  border-radius: 8px;
  background: var(--pqs-sunken);
  color: inherit;
  font: inherit;
}

.pqs-feedback__help {
  margin: -6px 0 12px;
  color: var(--pqs-muted);
  font-size: 0.92rem;
}

.pqs-feedback__help:empty { display: none; }

.pqs-feedback .pqs-callout p { margin: 8px 0; }

.pqs-feedback__crop {
  max-height: 45vh;
  overflow: hidden;
  margin: 8px 0;
  border-radius: 8px;
  background: #111;
}

.pqs-feedback__crop img,
.pqs-feedback [data-pqs-shot-preview] img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pqs-feedback [data-pqs-shot-preview] img {
  margin: 8px 0;
  border: 1px solid var(--pqs-border);
  border-radius: 8px;
}

.pqs-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pqs-feedback__error {
  margin: 8px 0 0;
  color: #9f1239;
  font-weight: 700;
}

.pqs-shell[data-theme="dark"] .pqs-feedback__error {
  color: #fda4af;
}

.pqs-feedback__status {
  margin: 8px 0;
  color: var(--pqs-muted);
}

.pqs-feedback .cropper-container {
  max-height: 45vh;
}

@media print {
  .pqs-footer,
  .pqs-badge,
  .pqs-nav__toggle,
  .pqs-skip,
  .pqs-feedback { display: none !important; }
  .pqs-nav { position: static; }
}
