:root {
  color-scheme: dark;
  --pv-bg: #090b0f;
  --pv-panel: #11151b;
  --pv-ink: #f2efe8;
  --pv-muted: #9aa2ad;
  --pv-line: #323944;
  --pv-red: #ff4d47;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-width: 320px; background: var(--pv-bg); color: var(--pv-ink); font-family: Inter, Arial, sans-serif; }
body { min-height: 100vh; user-select: none; -webkit-user-select: none; }
.pv-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 4vw, 40px); background: rgba(9,11,15,.96); border-bottom: 1px solid var(--pv-line); backdrop-filter: blur(12px); }
.pv-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.pv-brand strong { width: 42px; height: 42px; display: grid; place-items: center; background: var(--pv-red); color: #090b0f; letter-spacing: -.06em; }
.pv-brand span { font-size: .67rem; font-weight: 900; letter-spacing: .15em; }
.pv-actions { display: flex; gap: 8px; }
.pv-button { border: 1px solid var(--pv-line); padding: 11px 14px; color: var(--pv-ink); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; cursor: pointer; }
.pv-button.primary { background: var(--pv-red); color: #090b0f; border-color: var(--pv-red); }
.pv-main { width: min(1240px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(12px, 4vw, 40px) 100px; }
.pv-intro p { color: var(--pv-red); font-size: .68rem; font-weight: 900; letter-spacing: .18em; }
.pv-intro h1 { margin: .25em 0 .15em; font: 500 clamp(2.4rem, 6vw, 5.6rem)/.95 Georgia, serif; letter-spacing: -.05em; }
.pv-intro span { color: var(--pv-muted); }
.pv-policy { position: sticky; top: 68px; z-index: 15; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 24px 0; padding: 12px 16px; background: #161b22; border-left: 4px solid var(--pv-red); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.pv-policy strong { color: var(--pv-red); font-size: .68rem; letter-spacing: .12em; }
.pv-policy span { color: var(--pv-muted); font-size: .78rem; }
.pv-policy code { color: var(--pv-ink); font-size: .68rem; }
.pv-owner-files { margin: 0 0 24px; padding: 18px; border: 1px solid var(--pv-line); background: var(--pv-panel); }
.pv-owner-files > p { margin: 0 0 12px; color: var(--pv-red); font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.pv-owner-files > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-pages { display: grid; gap: 24px; justify-items: center; }
.pv-page { position: relative; width: min(980px, 100%); margin: 0; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.pv-page.is-loading { aspect-ratio: 210 / 297; background: #11151b; border: 1px solid var(--pv-line); }
.pv-page.is-loading::before { content: attr(data-loading-label); position: absolute; inset: 0; display: grid; place-items: center; color: var(--pv-muted); font: 800 .72rem/1.35 Arial,sans-serif; letter-spacing: .08em; }
.pv-page img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.pv-page figcaption { position: absolute; right: 10px; top: 8px; padding: 5px 8px; background: rgba(9,11,15,.78); color: #fff; font: 800 10px/1 Arial,sans-serif; }
.pv-page.is-error { min-height: 180px; background: var(--pv-panel); border: 1px solid var(--pv-red); }
.pv-page.is-error img { display: none; }
.pv-page.is-error figcaption { inset: 0; display: grid; place-items: center; padding: 24px; background: transparent; color: var(--pv-ink); font-size: .78rem; text-align: center; }
.pv-error { margin-top: 30px; padding: 24px; border: 1px solid var(--pv-red); }
.pv-error strong { color: var(--pv-red); }
.pv-error a { color: var(--pv-ink); }
.pv-print-block { display: none; }
.fok-protected-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fok-protected-actions .portal-button, .fok-protected-actions .button { margin: 0; }
.fok-view-badge { font-size: .66rem; color: #ff4d47; font-weight: 900; letter-spacing: .08em; }
.fok-shop-locked { opacity: .55; cursor: not-allowed !important; }
@media (max-width: 720px) {
  .pv-head { flex-wrap: wrap; }
  .pv-brand span { display: none; }
  .pv-actions { order: 3; width: 100%; }
  .pv-actions .pv-button { flex: 1; text-align: center; }
  .pv-policy { grid-template-columns: 1fr; top: 106px; }
  .pv-policy code { overflow-wrap: anywhere; }
}
@media print {
  body > * { display: none !important; }
  .pv-print-block { display: grid !important; min-height: 100vh; place-items: center; color: #000; background: #fff; }
}

/* FOK R1.10 · PROTECTED RENDER PRECISION */
html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-synthesis: none;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

:where(button, input, select, textarea) {
  font-family: inherit !important;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
}

:where(.pv-panel, .pv-card, .pv-file, .card,
       .viewer-shell, .publication-shell, .sandbox-card) {
  border-radius: 2px !important;
  outline: 1px solid rgba(177, 189, 204, 0.34) !important;
  outline-offset: -1px !important;
  background-clip: padding-box !important;
  transform-style: flat !important;
  backface-visibility: visible !important;
}

:where(.pv-brand span, .pv-intro p, .pv-owner-files > p, .fok-view-badge,
       .step, .kicker, .micro, .fine, label) {
  font-size: max(0.66rem, 10.5px) !important;
  line-height: 1.35 !important;
}
