/* peek.css · the peek: ONE sheet that opens over the page you are on, to look at one thing without leaving.
   Four things are the peek: an audience (#ds-audp, ?aud=), a piece of creative (#ds-lib-dr, ?a=), the Questions
   list (#ds-pane, ?history=1) and Help (#ds-ai, the Chronicle mark). Each keeps its own ids and inner classes;
   the shared class .ds-peek carries the geometry, the motion, the head and the phone sheet. One dim (#ds-peek-dim,
   made by peek.js) sits behind whichever one is open. Loads after the skin, so every rule is raised with
   html[data-skin] to beat the skin's own html[data-skin="chronicle"] .x rules (same weight, later wins). */

/* ---- the sheet ---- */
html[data-skin] .ds-peek { position: fixed; z-index: 62; top: calc(var(--ds-head) + 12px); right: 12px; bottom: 12px; left: auto; width: min(560px, calc(100vw - 24px)); max-width: none; height: auto; max-height: none; margin: 0; padding: 22px 26px 26px; display: block; box-sizing: border-box; background: var(--ds-paper); color: var(--ds-ink); border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-sheet); box-shadow: 0 30px 80px -30px rgba(var(--ck-navy-rgb), .55); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: auto; scrollbar-color: rgba(127, 136, 150, .35) transparent; visibility: visible; opacity: 0; transform: translateX(24px); animation: none; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
html[data-skin] .ds-peek.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .32s cubic-bezier(.2, .8, .2, 1), transform .32s cubic-bezier(.2, .8, .2, 1); }
html[data-skin] .ds-peek.out { opacity: 0; transform: translateX(12px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
html[data-skin] .ds-peek[hidden] { display: none; }
html[data-skin] .ds-peek::-webkit-scrollbar { width: 6px; }
html[data-skin] .ds-peek::-webkit-scrollbar-thumb { background: rgba(127, 136, 150, .35); border-radius: 3px; }

/* ---- the one dim behind it ---- */
html[data-skin] .ds-peek-dim { position: fixed; z-index: 61; inset: var(--ds-head) 0 0 0; background: rgba(var(--ck-navy-rgb), .40); opacity: 0; transition: opacity .26s ease; }
html[data-skin] .ds-peek-dim.on { opacity: 1; }
html[data-skin] .ds-peek-dim[hidden] { display: none; }
/* the audience panel's own dim is retired; its element stays for the code that toggles it */
html[data-skin] .ds-audp-dim { display: none; }
body.ds-peek-open .ds-totop { opacity: 0; visibility: hidden; }
/* the header's avatar strip: ds.css gives .ds-top-people's last span display:inline while help is open (an older row had a text span there); today that span is the avatars, so keep them a row */
html[data-skin] .ds-shell.ai-open .ds-top-people > .ds-avatars { display: flex; }

/* ---- motion off ---- */
body.ds-still .ds-peek, body.ds-still .ds-peek-dim { transition: none; }
@media (prefers-reduced-motion: reduce) { html[data-skin] .ds-peek, html[data-skin] .ds-peek-dim { transition: none; } }

/* ---- the head, the same in every peek: icon tile + mono kicker + the round close, then the title, one hairline under ---- */
html[data-skin] .ds-peek .ds-peek-head { margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--ds-line); }
html[data-skin] .ds-peek .ds-peek-h { position: static; display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0 0 14px; padding: 0; background: none; border: 0; }
html[data-skin] .ds-peek .ds-peek-h .ds-sh-i { width: 28px; height: 28px; flex: none; }
html[data-skin] .ds-peek .ds-peek-k { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ds-m); font-weight: 500; font-size: var(--ds-fs-1); letter-spacing: .11em; text-transform: uppercase; color: var(--ds-blue); }
html[data-skin] .ds-peek .ds-peek-x { flex: none; width: 28px; height: 28px; margin: 0 0 0 auto; padding: 0; display: grid; place-items: center; background: var(--ds-paper); border: 1px solid var(--ds-line-strong); border-radius: 50%; font-family: var(--ds-f); font-size: 18px; font-weight: 400; line-height: 1; color: var(--ds-ink); text-decoration: none; box-shadow: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
html[data-skin] .ds-peek .ds-peek-x:hover { background: var(--ds-wash); border-color: var(--ds-blue); color: var(--ds-blue); }
html[data-skin] .ds-peek .ds-peek-x:focus-visible { outline: 2px solid var(--ds-blue); outline-offset: 2px; }
html[data-skin] .ds-peek .ds-peek-t { margin: 0; font-size: var(--ds-fs-8); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
html[data-skin] .ds-peek .ds-peek-s { margin: 6px 0 0; font-size: var(--ds-fs-4); line-height: 1.45; color: var(--ds-muted); }

/* ---- each panel's body, now that the sheet itself scrolls and the head carries the hairline ---- */
html[data-skin] .ds-peek .ds-audp-nums { margin-top: 0; padding-top: 0; border-top: 0; }
html[data-skin] .ds-peek .ds-ai-b { flex: none; display: grid; gap: 22px; align-content: start; padding: 0; overflow: visible; min-height: 0; }
html[data-skin] .ds-peek .ds-ai-b .ds-help-find { margin: 0; }

/* ---- phones: a bottom sheet, same head ---- */
@media (max-width: 720px) {
  html[data-skin] .ds-peek { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 88dvh; padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-bottom: 0; border-radius: var(--ds-r-sheet) var(--ds-r-sheet) 0 0; box-shadow: 0 -18px 50px -20px rgba(var(--ck-navy-rgb), .55); transform: translateY(24px); }
  html[data-skin] .ds-peek.on { transform: none; }
  html[data-skin] .ds-peek.out { transform: translateY(12px); }
  html[data-skin] .ds-peek-dim { inset: 0; }
  html[data-skin] .ds-peek .ds-peek-head { margin-bottom: 16px; padding-bottom: 14px; }
  html[data-skin] .ds-peek .ds-peek-t { font-size: var(--ds-fs-7); }
  html[data-skin] .ds-peek .ds-audp-acts .ds-btn, html[data-skin] .ds-peek .ds-lib-dr-acts .ds-btn { flex: 1 1 auto; justify-content: center; }
}
@media print { .ds-peek, .ds-peek-dim { display: none !important; } }
