/* The look of <solopdf-workspace> on the site, and the layout of the pages that mount it. Theming is ONLY through the component's --solopdf-* tokens.
   The site is dark-only (color-scheme: dark), so the tokens are fixed: they do not follow prefers-color-scheme. */
solopdf-workspace {
  --solopdf-bg: #0f0a26;
  --solopdf-fg: #e5e7eb;
  --solopdf-muted: #b4bac6;
  --solopdf-surface: #1b1442;
  --solopdf-border: rgba(255, 255, 255, .26);
  --solopdf-accent: #fb7185;
  --solopdf-accent-fg: #1a1040;
  --solopdf-danger: #fda4af;
  --solopdf-radius: 10px;
  --solopdf-font: var(--sans);
  --solopdf-font-size: 1rem;
  display: block;
  /* the whole viewport below the compact header; the component itself only sizes to its container (see zcatpdfui API.md, "Embedding") */
  height: max(26rem, calc(100vh - var(--cab-h, 3.4rem)));
  height: max(26rem, calc(100dvh - var(--cab-h, 3.4rem)));
  color: #e5e7eb;
}
solopdf-workspace:not(:defined) { min-height: 34rem; }
solopdf-workspace[hidden] { display: none; }
/* the open document's name, in the empty centre of the header (<solopdf-docname>, zcatpdfui); same tokens as the workspace */
solopdf-docname { --solopdf-fg: #e5e7eb; --solopdf-muted: #b4bac6; --solopdf-accent: #fb7185; --solopdf-font: var(--sans); --solopdf-font-size: .95rem; }
.cab .docname { flex: 1 1 0; min-width: 0; padding: 0 .6rem; }
solopdf-speeddial { --solopdf-fg: #e5e7eb; --solopdf-muted: #b4bac6; --solopdf-surface: #1b1442; --solopdf-border: rgba(255, 255, 255, .26); --solopdf-accent: #fb7185; --solopdf-radius: 10px; }
.ws-fallback { margin: 0; padding: 1rem; color: var(--tinta-suave); }
.ws-fail { padding: 1rem 1.2rem; border: 1px solid var(--acento); border-radius: 10px; background: var(--vidrio); }
.ws-intro h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: .6rem; }
.ws-intro p { font-size: .95rem; line-height: 1.55; margin-bottom: .7rem; }
.ws-intro a { color: var(--acento); }

/* the application screen */
.app-main { padding: .35rem .6rem 0; max-width: none; }
@media (max-width: 760px) {
  solopdf-workspace { height: auto; min-height: 30rem; }
  .app-main { padding: .3rem .4rem 0; }
}

/* the password prompt (assets/password-modal.js): a native <dialog> in the page, outside the workspace */
.pw-dialog { background: var(--canvas-2); color: var(--tinta); border: 1px solid var(--linea-viva); border-radius: 12px; padding: 1.4rem; width: min(30rem, calc(100vw - 2rem)); box-sizing: border-box; }
.pw-dialog::backdrop { background: rgba(5, 6, 15, .72); }
.pw-title { margin: 0 0 .6rem; font-size: 1.2rem; }
.pw-form { margin-top: .8rem; }
.pw-form .ft-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.pw-form .ft-field { display: flex; flex-direction: column; gap: .4rem; }
.pw-form .ft-field label { font-weight: 600; }
.pw-form .ft-radio { display: flex; align-items: center; gap: .6rem; min-height: 2.6rem; cursor: pointer; font-weight: 400; }
.pw-form .ft-radio input { width: 1.15rem; height: 1.15rem; accent-color: var(--acento); margin: 0; }
.pw-form .ft-text { width: 100%; box-sizing: border-box; font: inherit; color: var(--tinta); background: var(--canvas-3); border: 1px solid var(--linea-viva); border-radius: .5rem; padding: .55rem .7rem; min-height: 2.6rem; }
.pw-form .ft-text[aria-invalid="true"] { border-color: #fda4af; }
.pw-dialog .ft-hint { font-size: .92rem; color: var(--tinta-suave); margin-bottom: .6rem; }
.pw-dialog .ft-field-err { margin: 0; color: #fda4af; font-size: .92rem; }
.pw-dialog .ft-field-err:empty { display: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
