/* Premium app guide. Inherits the site theme's tokens when present.
   Core's copy of the QuirkyBit sign-in plugin's qbs-guide.css (includes/app-guide.php). */
.qg {
  --qg-fg: var(--showcase-fg, #13222a);
  --qg-muted: var(--showcase-muted, #55646a);
  --qg-faint: #8a979c;
  --qg-border: var(--showcase-border, #e1e7e4);
  --qg-surface: var(--showcase-surface, #ffffff);
  --qg-soft: #f7f9f8;
  --qg-accent: var(--showcase-accent, #1a7f53);
  --qg-mint: var(--showcase-mint, #e7f5ee);
  --qg-ink: #13222a;
  --qg-ink-2: #0b161c;
  --qg-gold: #f3c969;
  --qg-radius: 18px;
  --qg-display: var(--showcase-display, "Iowan Old Style", Palatino, Georgia, serif);
  --qg-body: var(--showcase-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--qg-fg);
  font: 400 16px/1.65 var(--qg-body);
  margin: 0 0 4rem;
}
.qg *, .qg *::before, .qg *::after { box-sizing: border-box; }
.qg .qg-icon { flex: none; }
.wms-guide-page.is-app-guide .wms-guide-products { margin: 1.5rem 0 1rem; }

/* Hero */
.qg-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  margin: 8px 0 22px; padding: 40px 44px; border-radius: 26px; color: #eef5f2;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(67,214,149,.20), transparent 60%),
    radial-gradient(600px 300px at 100% 120%, rgba(243,201,105,.18), transparent 60%),
    linear-gradient(160deg, #17323d, #0b161c 70%);
  box-shadow: 0 30px 60px -36px rgba(11,22,28,.7);
}
.qg-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 55%); pointer-events: none; }
.qg-hero-mark img { display: block; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.qg-eyebrow { margin: 0 0 6px; color: #6ee7b0; font: 700 12px/1 var(--qg-body); letter-spacing: .16em; text-transform: uppercase; }
.qg-title { margin: 0 0 10px; color: #fff; font: 600 clamp(28px, 3.6vw, 42px)/1.1 var(--qg-display); letter-spacing: -.015em; }
.qg-lead { margin: 0 0 16px; max-width: 62ch; color: #c5d3d0; font-size: 1.04rem; }
.qg-lead strong { color: #fff; }
.qg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qg-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #dbe6e2; font-size: .84rem; font-weight: 600; }
.qg-meta .qg-icon { width: 15px; height: 15px; color: #6ee7b0; }
.qg-hero-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 14px; background: #fff; color: var(--qg-ink); font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); transition: transform .15s ease; }
.qg-hero-cta:hover { transform: translateY(-1px); color: var(--qg-ink); }

/* Quick start */
.qg-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: none; }
.qg-quick a { position: relative; display: grid; gap: 6px; height: 100%; padding: 20px 20px 18px; border: 1px solid var(--qg-border); border-radius: var(--qg-radius); background: var(--qg-surface); color: var(--qg-fg); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.qg-quick a:hover { border-color: #bfd8cc; box-shadow: 0 16px 34px -22px rgba(19,34,42,.4); transform: translateY(-2px); }
.qg-quick-num { position: absolute; top: 16px; right: 18px; color: var(--qg-faint); font: 600 13px/1 var(--qg-body); }
.qg-quick-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--qg-mint); color: var(--qg-accent); }
.qg-quick strong { font-size: 1.02rem; }
.qg-quick span:last-child { color: var(--qg-muted); font-size: .9rem; line-height: 1.45; }

/* Toolbar */
.qg-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; margin: 0 0 22px; padding: 10px 0; background: linear-gradient(var(--showcase-bg, #f5f7f6) 80%, transparent); }
.qg-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--qg-border); border-radius: 14px; background: var(--qg-surface); box-shadow: 0 1px 2px rgba(19,34,42,.04); transition: border-color .15s ease, box-shadow .15s ease; }
.qg-search:focus-within { border-color: var(--qg-accent); box-shadow: 0 0 0 4px rgba(26,127,83,.12); }
.qg-search .qg-icon { color: var(--qg-faint); }
.qg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--qg-fg); }
.qg-search-count { color: var(--qg-faint); font-size: .85rem; white-space: nowrap; }
.qg-tool { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 14px; border: 1px solid var(--qg-border); border-radius: 14px; background: var(--qg-surface); color: var(--qg-fg); font: 600 .9rem/1 var(--qg-body); cursor: pointer; }
.qg-tool:hover { border-color: #c7d3ce; }
.qg-tool[data-qg-toc-toggle] { display: none; }

/* Layout */
.qg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.qg-toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; padding: 18px 8px 18px 18px; border: 1px solid var(--qg-border); border-radius: var(--qg-radius); background: var(--qg-surface); }
.qg-progress { height: 4px; margin: 0 10px 14px 0; border-radius: 999px; background: var(--qg-soft); overflow: hidden; }
.qg-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2fbf7f, var(--qg-accent)); transition: width .2s ease; }
.qg-toc-group { margin: 14px 0 6px; color: var(--qg-faint); font: 700 11px/1 var(--qg-body); letter-spacing: .12em; text-transform: uppercase; }
.qg-toc-group:first-of-type { margin-top: 0; }
.qg-toc ul { margin: 0; padding: 0; list-style: none; }
.qg-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--qg-muted); font-size: .9rem; line-height: 1.35; text-decoration: none; transition: background .15s ease, color .15s ease; }
.qg-toc a span { flex: none; width: 20px; color: var(--qg-faint); font-variant-numeric: tabular-nums; font-size: .8rem; padding-top: 1px; }
.qg-toc a:hover { background: var(--qg-soft); color: var(--qg-fg); }
.qg-toc a.is-active { background: var(--qg-mint); color: #0f5132; font-weight: 600; }
.qg-toc a.is-active span { color: var(--qg-accent); }
.qg-toc li[hidden] { display: none; }

/* Sections */
.qg-body { min-width: 0; display: grid; gap: 22px; }
.qg-section { scroll-margin-top: 90px; padding: 30px 32px; border: 1px solid var(--qg-border); border-radius: 22px; background: var(--qg-surface); box-shadow: 0 1px 2px rgba(19,34,42,.03); }
.qg-section[hidden] { display: none; }
.qg-section-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.qg-section-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg, #17323d, #0b161c); color: #6ee7b0; box-shadow: 0 10px 22px -14px rgba(11,22,28,.8); }
.qg-section-group { margin: 0 0 2px; color: var(--qg-faint); font: 600 .78rem/1.4 var(--qg-body); letter-spacing: .06em; text-transform: uppercase; }
.qg-section h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 clamp(21px, 2.2vw, 26px)/1.25 var(--qg-display); letter-spacing: -.01em; }
.qg-anchor { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--qg-faint); opacity: 0; transition: opacity .15s ease, background .15s ease; }
.qg-section-head:hover .qg-anchor, .qg-anchor:focus-visible { opacity: 1; }
.qg-anchor:hover { background: var(--qg-soft); color: var(--qg-accent); }
.qg-anchor .qg-icon { width: 16px; height: 16px; }
.qg-anchor.is-copied { opacity: 1; color: var(--qg-accent); }
@media (hover: none) { .qg-anchor { opacity: .7; } }
.qg-intro { margin: 0 0 16px; color: var(--qg-muted); font-size: 1.02rem; }

.qg-steps { counter-reset: qg; margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 4px; }
.qg-steps li { position: relative; counter-increment: qg; padding: 10px 0 10px 50px; }
.qg-steps li::before { content: counter(qg); position: absolute; left: 0; top: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--qg-mint); color: var(--qg-accent); font: 700 .85rem/1 var(--qg-body); box-shadow: inset 0 0 0 1px rgba(26,127,83,.15); }
.qg-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 42px; bottom: -6px; width: 1px; background: var(--qg-border); }

.qg-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 0 0 18px; }
.qg-defs div { padding: 14px 16px; border: 1px solid var(--qg-border); border-radius: 14px; background: var(--qg-soft); }
.qg-defs dt { margin: 0 0 4px; font-weight: 700; color: var(--qg-fg); }
.qg-defs dd { margin: 0; color: var(--qg-muted); font-size: .94rem; line-height: 1.55; }

.qg-faq { display: grid; gap: 8px; }
.qg-faq details { border: 1px solid var(--qg-border); border-radius: 14px; background: var(--qg-surface); }
.qg-faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.qg-faq summary::-webkit-details-marker { display: none; }
.qg-faq summary::after { content: "+"; color: var(--qg-faint); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.qg-faq details[open] summary::after { transform: rotate(45deg); }
.qg-faq details[open] { background: var(--qg-soft); }
.qg-faq p { margin: 0; padding: 0 18px 16px; color: var(--qg-muted); }

.qg-example { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--qg-ink); color: #d8e4e0; font: 13.5px/1.6 ui-monospace, "SF Mono", Consolas, monospace; overflow: auto; }

.qg-shot { margin: 6px 0 18px; border: 1px solid var(--qg-border); border-radius: 16px; overflow: hidden; background: var(--qg-soft); box-shadow: 0 24px 50px -34px rgba(19,34,42,.55); }
.qg-shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f0; border-bottom: 1px solid var(--qg-border); }
.qg-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dcd9; }
.qg-shot-bar i:nth-child(1) { background: #f1a29b; } .qg-shot-bar i:nth-child(2) { background: #f3d08a; } .qg-shot-bar i:nth-child(3) { background: #9fd9b5; }
.qg-shot-zoom { position: relative; display: block; width: 100%; padding: 18px; border: 0; background: var(--qg-soft); cursor: zoom-in; }
.qg-shot img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--qg-border), 0 14px 30px -20px rgba(19,34,42,.45); }
.qg-shot-hint { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(19,34,42,.75); color: #fff; opacity: 0; transition: opacity .15s ease; }
.qg-shot-zoom:hover .qg-shot-hint, .qg-shot-zoom:focus-visible .qg-shot-hint { opacity: 1; }
.qg-shot figcaption { padding: 10px 16px 12px; color: var(--qg-muted); font-size: .88rem; background: var(--qg-surface); border-top: 1px solid var(--qg-border); }

.qg-callout { display: flex; gap: 12px; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid; }
.qg-callout > div > strong { display: block; margin-bottom: 2px; font-size: .9rem; }
.qg-callout p { margin: 0; font-size: .94rem; }
.qg-callout.is-tip { background: #effaf4; border-color: #cfeadb; color: #134e33; }
.qg-callout.is-note { background: #f1f5fb; border-color: #d6e1f1; color: #1d3c64; }
.qg-callout.is-warning { background: #fff8eb; border-color: #f4dfb4; color: #7a4a05; }
.qg-callout .qg-icon { margin-top: 2px; }

.qg code { padding: 1px 6px; border-radius: 6px; background: #eef2f0; font: .88em ui-monospace, "SF Mono", Consolas, monospace; }
.qg-example code { padding: 0; border-radius: 0; background: none; font: inherit; }
.qg-keys { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.qg kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px; border: 1px solid #cfd8d4; border-bottom-width: 2px; border-radius: 7px; background: #fff; color: var(--qg-fg); font: 600 .82em/1.5 var(--qg-body); text-align: center; }
.qg-keys > span { color: var(--qg-faint); font-size: .8em; }
.qg mark { padding: 0 2px; border-radius: 4px; background: #fdeaa6; color: inherit; }

.qg-whatsnew .qbs-changelog { margin: 0; }
.qg-empty { padding: 30px; border: 1px dashed var(--qg-border); border-radius: var(--qg-radius); text-align: center; color: var(--qg-muted); }
.qg-sources { padding: 20px 24px; border-radius: var(--qg-radius); background: var(--qg-soft); border: 1px solid var(--qg-border); }
.qg-sources ul { margin: 8px 0 0; padding-left: 1.1rem; }

.qg-lightbox { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: #0b161c; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.qg-lightbox::backdrop { background: rgba(5,12,16,.72); backdrop-filter: blur(3px); }
.qg-lightbox img { display: block; width: 100%; height: auto; max-height: 94vh; object-fit: contain; }
.qg-lightbox-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }

.qg a:focus-visible, .qg button:focus-visible, .qg summary:focus-visible { outline: 3px solid rgba(26,127,83,.45); outline-offset: 2px; }

@media (max-width: 960px) {
  .qg-hero { grid-template-columns: auto 1fr; padding: 30px 26px; }
  .qg-hero-cta { grid-column: 1 / -1; justify-self: start; }
  .qg-layout { grid-template-columns: 1fr; }
  .qg-tool[data-qg-toc-toggle] { display: inline-flex; }
  .qg-toc { position: fixed; inset: auto 12px 12px 12px; top: auto; z-index: 50; max-height: 70vh; box-shadow: 0 30px 60px -20px rgba(11,22,28,.5); transform: translateY(calc(100% + 24px)); transition: transform .25s ease; }
  .qg-toc.is-open { transform: none; }
}
@media (max-width: 560px) {
  .qg-hero { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px; border-radius: 20px; }
  .qg-hero-mark img { width: 64px; height: 64px; border-radius: 16px; }
  .qg-section { padding: 22px 18px; border-radius: 18px; }
  .qg-section-icon { width: 40px; height: 40px; }
  .qg-tool span { display: none; }
  .qg-steps li { padding-left: 44px; }
}
@media print {
  .qg-toolbar, .qg-toc, .qg-hero-cta, .qg-anchor, .qg-quick, .qg-shot-hint, .wms-guide-products { display: none !important; }
  .qg mark[data-qg-mark] { background: none; color: inherit; }
  .qg-layout { display: block; }
  .qg-hero { color: #000; background: none; box-shadow: none; padding: 0; }
  .qg-title, .qg-lead { color: #000; }
  .qg-section { break-inside: avoid; box-shadow: none; }
  .qg-section[hidden] { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  .qg *, .qg *::before, .qg *::after { transition: none !important; }
}
