/* Portal v4, stage B1 (17 Nov 2026): the chat kit (chatkit.js). Apple finish per
   ~/holly/design/portal-desk/10-80-10-plan-v4.md: system type, one container level, no
   borders on cards, no accent rails, no uppercase labels, no pill rows, one prominent
   button, thin Voice Memos bars. Only inside the owner's Holly thread while PORTAL_V4 is
   on (#holly-chat.ck-on); off, none of this applies. Desktop sizes first (macOS 13 px),
   the phone (iOS 17 px) below. */
#holly-chat.ck-on {
  --ck-ink: #111; --ck-mute: #6E6E68; --ck-bg: #F6F6F2; --ck-card: #fff; --ck-fill: #E8E8E2; --ck-y: #F5C500;
  --ck-link: #8A6D00; --ck-red: #D6362B; --ck-mine: #F2E8A8; --ck-bar: rgba(0,0,0,.22); --ck-shadow: 0 1px 2px rgba(0,0,0,.06);
  --ck-body: 13px; --ck-sub: 12px; --ck-r: 16px; --ck-cr: 10px; --ck-btn-h: 28px; --ck-btn-r: 7px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--ck-bg);
}
#holly-chat.ck-on .hc-list { background: var(--ck-bg); display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; }
#holly-chat.ck-on .hc-list > * { flex: none; align-self: stretch; }
/* desk2 centres the thread in an 820px column with auto margins: keep each row the column's full width */
html.tp-desk2 #view-holly #holly-chat.ck-on .hc-list > * { width: 100%; box-sizing: border-box; }
#holly-chat.ck-on .hc-foot { display: none; }
#holly-chat.ck-on .ck-i { width: 14px; height: 14px; flex: none; }

/* rows and bubbles */
#holly-chat.ck-on .ck-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#holly-chat.ck-on .ck-row.is-me { align-items: flex-end; }
#holly-chat.ck-on .ck-row.is-them { align-items: flex-start; }
#holly-chat.ck-on .ck-b { max-width: min(88%, 620px); padding: 8px 12px; border-radius: var(--ck-r); font-size: var(--ck-body); line-height: 1.4; color: var(--ck-ink); overflow-wrap: anywhere; }
#holly-chat.ck-on .ck-b.is-me { background: var(--ck-mine); border-bottom-right-radius: 5px; }
#holly-chat.ck-on .ck-b.is-them { background: var(--ck-card); border-bottom-left-radius: 5px; box-shadow: var(--ck-shadow); }
#holly-chat.ck-on .ck-b .hc-md { font-size: inherit; line-height: inherit; }
#holly-chat.ck-on .ck-b .hc-md p { margin: 0 0 6px; }
#holly-chat.ck-on .ck-b .hc-md p:last-child { margin-bottom: 0; }
#holly-chat.ck-on .ck-b.is-voice { padding: 9px 12px 10px; min-width: 240px; }
#holly-chat.ck-on .ck-vtyped { margin-top: 6px; }
#holly-chat.ck-on .ck-st { display: flex; align-items: center; gap: 8px; font-size: var(--ck-sub); color: var(--ck-mute); padding: 0 4px; }
#holly-chat.ck-on .ck-st.is-red, #holly-chat.ck-on .ck-foot.is-red { color: var(--ck-red); }
#holly-chat.ck-on .ck-stop { color: var(--ck-red); font: inherit; background: none; border: 0; padding: 4px 2px; cursor: pointer; }
#holly-chat.ck-on .ck-dots { display: inline-flex; gap: 3px; }
#holly-chat.ck-on .ck-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ck-mute); animation: ck-dot 1.2s infinite ease-in-out; }
#holly-chat.ck-on .ck-dots i:nth-child(2) { animation-delay: .15s; } #holly-chat.ck-on .ck-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ck-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #holly-chat.ck-on .ck-dots i { animation: none; opacity: .6; } }

/* the source line: one line of tinted links, no chips */
#holly-chat.ck-on .ck-src { margin-top: 6px; font-size: var(--ck-sub); line-height: 1.45; color: var(--ck-mute); }
#holly-chat.ck-on .ck-src a { color: var(--ck-link); text-decoration: none; }
#holly-chat.ck-on .ck-src a:hover { text-decoration: underline; }

/* voice note: Voice Memos */
#holly-chat.ck-on .ck-voice { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; }
#holly-chat.ck-on .ck-vrow { display: flex; align-items: center; gap: 9px; min-width: 0; }
#holly-chat.ck-on .ck-vplay { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ck-fill); color: var(--ck-ink); border: 0; padding: 0; cursor: pointer; }
#holly-chat.ck-on .ck-vplay .ck-i { width: 12px; height: 12px; }
#holly-chat.ck-on .ck-vplay.is-off { opacity: .4; cursor: default; }
#holly-chat.ck-on .ck-wave { flex: 1; min-width: 60px; height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 1px; cursor: pointer; }
#holly-chat.ck-on .ck-wave i { flex: none; width: 2px; border-radius: 1px; background: var(--ck-bar); min-height: 3px; }
#holly-chat.ck-on .ck-wave i.on { background: var(--ck-ink); }
#holly-chat.ck-on .ck-vtime, #holly-chat.ck-on .ck-vspd { flex: none; font-size: var(--ck-sub); color: var(--ck-mute); font-variant-numeric: tabular-nums; }
#holly-chat.ck-on .ck-vspd { background: none; border: 0; padding: 2px 0 2px 2px; cursor: pointer; min-width: 26px; text-align: right; font-family: inherit; }
#holly-chat.ck-on .ck-vwords { font-size: var(--ck-body); line-height: 1.4; color: var(--ck-ink); }
#holly-chat.ck-on .ck-voice .ck-foot { margin-top: -2px; }

/* file tile */
#holly-chat.ck-on .ck-file { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: min(88%, 420px); padding: 9px 12px; background: var(--ck-card); border-radius: var(--ck-cr); box-shadow: var(--ck-shadow); color: var(--ck-ink); text-decoration: none; }
#holly-chat.ck-on .ck-ftile { width: 30px; height: 36px; border-radius: 6px; background: var(--ck-fill); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--ck-mute); flex: none; }
#holly-chat.ck-on .ck-fmeta { display: flex; flex-direction: column; min-width: 0; }
#holly-chat.ck-on .ck-fmeta b { font-size: var(--ck-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#holly-chat.ck-on .ck-fmeta span { font-size: var(--ck-sub); color: var(--ck-mute); }
#holly-chat.ck-on .ck-file.is-off { opacity: .6; }

/* cards: one white rounded rectangle, no border; one prominent button */
#holly-chat.ck-on .ck-cards { display: flex; flex-direction: column; gap: 8px; align-self: stretch; max-width: 620px; }
#holly-chat.ck-on .ck-card { background: var(--ck-card); border-radius: var(--ck-cr); box-shadow: var(--ck-shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
#holly-chat.ck-on .ck-eb { display: flex; align-items: center; gap: 6px; font-size: var(--ck-sub); color: var(--ck-mute); }
#holly-chat.ck-on .ck-ct { font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 3px; color: var(--ck-ink); }
#holly-chat.ck-on .ck-cd { font-size: var(--ck-sub); color: var(--ck-mute); line-height: 1.4; }
#holly-chat.ck-on .ck-facts { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: var(--ck-sub); color: var(--ck-ink); line-height: 1.4; }
#holly-chat.ck-on .ck-facts span { color: var(--ck-mute); }
#holly-chat.ck-on .ck-facts .is-long { white-space: pre-line; }
#holly-chat.ck-on .ck-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
#holly-chat.ck-on .ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--ck-btn-h); padding: 0 12px; border-radius: var(--ck-btn-r); border: 0;
  background: var(--ck-fill); color: var(--ck-ink); font: inherit; font-size: 12.5px; font-weight: 400; white-space: nowrap; cursor: pointer; }
#holly-chat.ck-on .ck-btn.is-p { background: var(--ck-ink); color: #fff; font-weight: 600; }
#holly-chat.ck-on .ck-btn.is-p[disabled] { opacity: .35; cursor: default; }
#holly-chat.ck-on .ck-btn.is-plain { background: transparent; color: var(--ck-mute); }
#holly-chat.ck-on .ck-btn.is-red { background: transparent; color: var(--ck-red); }
#holly-chat.ck-on .ck-btn:focus-visible, #holly-chat.ck-on .ck-qr:focus-visible, #holly-chat.ck-on .ck-go:focus-visible { outline: 2px solid var(--ck-link); outline-offset: 2px; }
#holly-chat.ck-on .ck-foot { font-size: var(--ck-sub); color: var(--ck-mute); line-height: 1.4; margin-top: 6px; }
#holly-chat.ck-on .ck-card.ck-flash, #holly-chat.ck-on .ck-q.ck-flash { box-shadow: 0 0 0 2px var(--ck-y); transition: box-shadow .3s; }

/* a question with quick replies */
#holly-chat.ck-on .ck-q { align-self: flex-start; max-width: min(92%, 560px); background: var(--ck-card); box-shadow: var(--ck-shadow); border-radius: var(--ck-r); border-bottom-left-radius: 5px; padding: 9px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
#holly-chat.ck-on .ck-qt { font-size: var(--ck-body); line-height: 1.4; color: var(--ck-ink); }
#holly-chat.ck-on .ck-opt { display: flex; gap: 10px; font-size: var(--ck-body); line-height: 1.35; }
#holly-chat.ck-on .ck-opt b { flex: none; width: 14px; font-weight: 600; color: var(--ck-mute); }
#holly-chat.ck-on .ck-qrs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
#holly-chat.ck-on .ck-qr { min-width: 38px; height: 28px; padding: 0 12px; border-radius: 7px; border: 0; background: var(--ck-fill); color: var(--ck-ink); font: inherit; font-size: var(--ck-body); cursor: pointer; }
#holly-chat.ck-on .ck-qr.is-pick { background: var(--ck-ink); color: #fff; font-weight: 600; }
#holly-chat.ck-on .ck-qr.is-dim { color: #a3a39c; }
#holly-chat.ck-on .ck-qr[disabled] { cursor: default; }
#holly-chat.ck-on .ck-ans { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-size: var(--ck-sub); color: var(--ck-mute); }
#holly-chat.ck-on .ck-ans .ck-i { width: 12px; height: 12px; }

/* decided cards: one quiet line */
#holly-chat.ck-on .ck-rcpt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#holly-chat.ck-on .ck-rline { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 2px 4px; font: inherit; font-size: var(--ck-sub); color: var(--ck-mute); cursor: pointer; text-align: left; }
#holly-chat.ck-on .ck-rline .ck-i { width: 12px; height: 12px; }
#holly-chat.ck-on .ck-rat { color: #9a9a93; }
#holly-chat.ck-on .ck-rcpt.is-failed .ck-rt { color: var(--ck-red); }
#holly-chat.ck-on .ck-rwhy { color: var(--ck-link); }

/* "3 waiting · Go through them": a plain row, no fill */
#holly-chat.ck-on .ck-waiting { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; font-size: var(--ck-body); font-weight: 600; color: var(--ck-ink); max-width: 620px; }
#holly-chat.ck-on .ck-go { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 400; color: var(--ck-link); cursor: pointer; }
#holly-chat.ck-on .ck-go .ck-i { width: 13px; height: 13px; }

/* the jobs strip: one line under the header, on the bar's material */
#holly-chat.ck-on .ck-strip-slot[hidden] { display: none; }
#holly-chat.ck-on .ck-strip { display: flex; align-items: center; gap: 7px; width: 100%; height: 28px; padding: 0 16px; background: transparent; border: 0; font: inherit; font-size: var(--ck-sub); color: var(--ck-mute); text-align: left; cursor: pointer; }
#holly-chat.ck-on .ck-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ck-y); }
#holly-chat.ck-on .ck-strip-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#holly-chat.ck-on .ck-strip .ck-i { width: 12px; height: 12px; }

/* the composer, Apple style: a white field, plain icons */
#holly-chat.ck-on .hc-composer { background: var(--ck-bg); border-top: 0; box-shadow: none; }
#holly-chat.ck-on .hc-input-row { background: var(--ck-card); border: 1px solid #DEDED7; border-radius: 18px; box-shadow: none; }
#holly-chat.ck-on #holly-chat-input { font-family: inherit; }

/* voice review: the note, its words in an editable box, Send / Send voice only / Discard */
#holly-chat.ck-on.ck-reviewing .hc-list { opacity: .5; }
#holly-chat.ck-on.ck-reviewing .hc-composer, #holly-chat.ck-on.ck-reviewing .hb-pill-slot { display: none; }
#holly-chat.ck-on #ck-review { flex: none; padding: 0 16px 12px; background: var(--ck-bg); }
#holly-chat.ck-on .ck-rv { display: flex; flex-direction: column; max-width: 620px; margin: 0 auto; }
#holly-chat.ck-on .ck-rv-card { background: var(--ck-card); border-radius: var(--ck-cr); box-shadow: var(--ck-shadow); padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
#holly-chat.ck-on .ck-rv-text { width: 100%; min-height: 64px; border: 0; outline: 0; resize: none; overflow: hidden; padding: 0; background: transparent; font: inherit; font-size: var(--ck-body); line-height: 1.4; color: var(--ck-ink); caret-color: var(--ck-link); }
#holly-chat.ck-on .ck-rv-wait { font-size: var(--ck-body); color: var(--ck-mute); line-height: 1.4; min-height: 20px; }
#holly-chat.ck-on .ck-rv-foot { padding: 8px 14px 8px; font-size: var(--ck-sub); color: var(--ck-mute); text-wrap: balance; }
#holly-chat.ck-on .ck-rv-acts { display: flex; flex-direction: column; gap: 8px; }
#holly-chat.ck-on .ck-rv-row { display: flex; gap: 8px; }
#holly-chat.ck-on .ck-rv-row .ck-btn { flex: 1; }
#holly-chat.ck-on .ck-btn.is-block { width: 100%; }
#holly-chat.ck-on .ck-rv .ck-btn.is-p { background: var(--ck-y); color: #111; }

/* the phone: iOS sizes (body 17, secondary 15, footnote 13), 44 px targets, capsules allowed */
@media (max-width: 768px) {
  #holly-chat.ck-on { --ck-bg: #F4F4EF; --ck-body: 17px; --ck-sub: 13px; --ck-r: 19px; --ck-cr: 14px; --ck-btn-h: 44px; --ck-btn-r: 22px; --ck-mine: #111; --ck-fill: #E9E9E3; }
  #holly-chat.ck-on .hc-list { gap: 6px; padding: 10px 16px 14px; }
  #holly-chat.ck-on .ck-b { max-width: 90%; padding: 9px 14px; line-height: 1.3; }
  #holly-chat.ck-on .ck-b.is-me { color: #fff; border-bottom-right-radius: 6px; }
  #holly-chat.ck-on .ck-b.is-them { border-bottom-left-radius: 6px; box-shadow: none; }
  #holly-chat.ck-on .ck-b.is-me .ck-vwords, #holly-chat.ck-on .ck-b.is-me .ck-vtime, #holly-chat.ck-on .ck-b.is-me .ck-vspd { color: rgba(255,255,255,.9); }
  #holly-chat.ck-on .ck-b.is-me .ck-wave i { background: rgba(255,255,255,.35); }
  #holly-chat.ck-on .ck-b.is-me .ck-wave i.on { background: #fff; }
  #holly-chat.ck-on .ck-b.is-me .ck-vplay { background: rgba(255,255,255,.18); color: #fff; }
  #holly-chat.ck-on .ck-src { font-size: 15px; }
  #holly-chat.ck-on .ck-vplay { width: 36px; height: 36px; }
  #holly-chat.ck-on .ck-vplay .ck-i { width: 15px; height: 15px; }
  #holly-chat.ck-on .ck-wave { height: 32px; }
  #holly-chat.ck-on .ck-vtime, #holly-chat.ck-on .ck-vspd { font-size: 15px; }
  #holly-chat.ck-on .ck-ct { font-size: 17px; margin-top: 4px; }
  #holly-chat.ck-on .ck-cd, #holly-chat.ck-on .ck-facts { font-size: 15px; }
  #holly-chat.ck-on .ck-card { padding: 14px 16px; box-shadow: var(--ck-shadow); }
  #holly-chat.ck-on .ck-eb { font-size: 13px; }
  #holly-chat.ck-on .ck-acts { flex-wrap: nowrap; gap: 8px; margin-top: 12px; }
  #holly-chat.ck-on .ck-acts .ck-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 16px; font-weight: 600; }
  #holly-chat.ck-on .ck-acts .ck-btn.is-p { flex: 1.5 1 0; background: var(--ck-y); color: #111; }
  #holly-chat.ck-on .ck-acts .ck-btn.is-plain { background: var(--ck-fill); color: var(--ck-ink); }
  #holly-chat.ck-on .ck-q { max-width: 92%; padding: 10px 14px 12px; box-shadow: none; }
  #holly-chat.ck-on .ck-opt { font-size: 15px; }
  #holly-chat.ck-on .ck-opt b { width: 16px; }
  #holly-chat.ck-on .ck-qrs { gap: 8px; margin-top: 6px; }
  #holly-chat.ck-on .ck-qr { min-width: 60px; height: 40px; border-radius: 20px; font-size: 17px; font-weight: 600; }
  #holly-chat.ck-on .ck-qr.is-pick { background: #D6D6CE; color: var(--ck-ink); }
  #holly-chat.ck-on .ck-qr.is-dim { color: var(--ck-mute); }
  #holly-chat.ck-on .ck-ans .ck-i { width: 14px; height: 14px; }
  #holly-chat.ck-on .ck-waiting { font-size: 17px; font-weight: 400; min-height: 38px; }
  #holly-chat.ck-on .ck-strip { height: 32px; font-size: 13px; background: rgba(244,244,239,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  #holly-chat.ck-on .ck-strip .ck-i { width: 14px; height: 14px; }
  #holly-chat.ck-on .ck-dot { width: 8px; height: 8px; }
  #holly-chat.ck-on .ck-rline { font-size: 15px; }
  #holly-chat.ck-on .ck-file { padding: 10px 14px; }
  #holly-chat.ck-on .ck-fmeta b { font-size: 17px; } #holly-chat.ck-on .ck-fmeta span { font-size: 13px; }
  #holly-chat.ck-on .ck-rv-card { padding: 14px 16px; gap: 12px; }
  #holly-chat.ck-on .ck-rv-foot { padding: 10px 16px 8px; }
  #holly-chat.ck-on .ck-rv .ck-btn { height: 50px; border-radius: 25px; font-size: 17px; font-weight: 600; }
  #holly-chat.ck-on .ck-rv-row .ck-btn.is-red { background: transparent; }
  #holly-chat.ck-on .ck-rv-text { font-size: 17px; }
}
#holly-chat.ck-on .ck-rv-text:focus, #holly-chat.ck-on .ck-rv-text:focus-visible { outline: 0; border: 0; box-shadow: none; }

/* Holly stage 2, previews inside the app (1 Dec 2026; mock ~/holly/design/holly-voice2/mock-stage2.html).
   Only while CONFIG.HOLLY_PREVIEW2 is on: the file card (a page-1 look, the name, "PDF · 6 pages ·
   1.4 MB"), the + in the composer, and three overlays that hang off <body> under .ck-ov (a poll repaints
   the thread): the photo viewer (black, Done / "2 of 3" / Share), the document viewer (pages, a page
   counter, Share and Save to Files) and the + sheet. Off, none of these classes is ever drawn. */
#holly-chat.ck-on .ck-file.is-p2 { gap: 12px; min-width: 240px; padding: 10px 12px; }
#holly-chat.ck-on .ck-fpage { flex: none; width: 34px; height: 44px; box-sizing: border-box; border-radius: 5px; background: #fff; border: 1px solid #E4E4DE; display: flex; flex-direction: column; gap: 3px; padding: 6px 5px; }
#holly-chat.ck-on .ck-fpage i { display: block; height: 2px; border-radius: 1px; background: #DDDDD6; }
#holly-chat.ck-on .ck-fpage i.is-s { width: 65%; }
#holly-chat.ck-on .ck-file.is-p2 .ck-fmeta b { font-weight: 400; }
#holly-chat.ck-on .hc-att-img[data-hc-photo] { cursor: zoom-in; }
/* photos alone: no box around them (Build 2 boxes his own attachments; the extra .ck-on outranks it) */
#holly-chat.ck-on.ck-on.ck-on .ck-row.is-me .hc-atts.is-p2 { background: none; padding: 0; }
#holly-chat.ck-on .hc-clip.ck-plus { border-radius: 50%; background: var(--ck-fill); color: var(--ck-ink); }
@media (max-width: 768px) {
  #holly-chat.ck-on .ck-fpage { width: 44px; height: 56px; gap: 4px; padding: 7px 6px; }
  #holly-chat.ck-on .ck-fpage i { height: 3px; }
  #holly-chat.ck-on .ck-file.is-p2 { min-width: 250px; padding: 10px 12px; }
  #holly-chat.ck-on .ck-file.is-p2 .ck-fmeta b { font-size: 16px; }
}

html.ck-ov-open, html.ck-ov-open body { overflow: hidden; }
.ck-ov { --ov-y: #F6C500; --ov-link: #8A6D00; --ov-ink: #111; --ov-mute: #6E6E68; --ov-bg: #F4F4EF; --ov-fill: #E9E9E3;
  position: fixed; inset: 0; z-index: 10060; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
.ck-ov button { font: inherit; }
/* photos: black, Done / 2 of 3 / Share in the bar, the dots under */
.ck-ov.ck-ph { display: flex; flex-direction: column; background: #000; color: #fff; }
.ck-ov .ck-ph-bar { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: calc(env(safe-area-inset-top, 0px) + 4px) 8px 4px; font-size: 17px; position: relative; z-index: 1; }
.ck-ov .ck-ph-act { min-width: 64px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ov-y); font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ck-ov .ck-ph-count { font-size: 17px; font-variant-numeric: tabular-nums; }
.ck-ov .ck-ph-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; }
.ck-ov .ck-ph-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.ck-ov .ck-ph-slide { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ck-ov .ck-ph-img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; transform-origin: center center; }
.ck-ov .ck-ph-dots { flex: none; display: flex; gap: 6px; justify-content: center; min-height: 6px; padding: 14px 0 calc(env(safe-area-inset-bottom, 0px) + 20px); }
.ck-ov .ck-ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.ck-ov .ck-ph-dots i.is-on { background: #fff; }
/* documents: Done and the name, the pages on a light grey, the counter, Share and Save to Files */
.ck-ov.ck-pv { display: flex; flex-direction: column; background: #E9E9E3; color: var(--ov-ink); }
.ck-ov .ck-pv-bar { flex: none; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; min-height: 50px; padding: calc(env(safe-area-inset-top, 0px) + 4px) 8px 4px; background: rgba(244,244,239,.96); }
.ck-ov .ck-pv-title { font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ov .ck-pv-act { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ov-link); font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ck-ov .ck-pv-bar .ck-pv-act { justify-content: flex-start; }
.ck-ov .ck-pv-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 16px 72px; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: 0; }
.ck-ov .ck-pv-page { flex: none; max-width: 100%; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.12); overflow: hidden; }
.ck-ov .ck-pv-page canvas { display: block; width: 100%; height: 100%; }
.ck-ov .ck-pv-text { width: 100%; max-width: 860px; box-sizing: border-box; margin: 0; padding: 16px; background: #fff; border-radius: 4px; font: 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; color: var(--ov-ink); }
.ck-ov .ck-pv-msg { max-width: 420px; margin: 40px auto 12px; text-align: center; font-size: 15px; line-height: 1.45; color: #4A4A4A; }
.ck-ov .ck-pv-fail { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ck-ov .ck-pv-file { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 100%; box-sizing: border-box; padding: 10px 12px; background: #fff; border-radius: 14px; color: var(--ov-ink); text-decoration: none; font-size: 16px; }
.ck-ov .ck-pv-file .hc-att-badge { flex: none; font-size: 11px; font-weight: 600; color: var(--ov-mute); background: var(--ov-fill); border-radius: 6px; padding: 6px 5px; }
.ck-ov .ck-pv-file .hc-att-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ov .ck-pv-count { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); transform: translateX(-50%); background: rgba(17,17,17,.75); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 14px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.ck-ov .ck-pv-count[hidden] { display: none; }
.ck-ov .ck-pv-tools { flex: none; display: flex; justify-content: space-around; padding: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 10px); background: rgba(244,244,239,.96); }
.ck-ov .ck-pv-tools .ck-pv-act { font-size: 15px; }
/* the + sheet: three plain rows and Cancel, like iMessage */
.ck-ov.ck-as { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ck-ov .ck-as-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.ck-ov .ck-as-panel { position: relative; width: calc(100% - 16px); max-width: 420px; margin: 0 8px calc(env(safe-area-inset-bottom, 0px) + 10px); }
.ck-ov .ck-as-group { background: rgba(250,250,247,.98); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ck-ov .ck-as-item, .ck-ov .ck-as-cancel { display: block; width: 100%; min-height: 57px; border: 0; background: none; color: var(--ov-link); font-size: 19px; text-align: center; cursor: pointer; }
.ck-ov .ck-as-item + .ck-as-item { border-top: 1px solid #E2E2DC; }
.ck-ov .ck-as-cancel { margin-top: 8px; background: #fff; border-radius: 14px; font-weight: 600; }
.ck-ov .ck-as-item:focus-visible, .ck-ov .ck-as-cancel:focus-visible, .ck-ov .ck-pv-act:focus-visible, .ck-ov .ck-ph-act:focus-visible { outline: 2px solid var(--ov-link); outline-offset: -2px; }
@media (min-width: 769px) and (hover: hover) {
  .ck-ov .ck-pv-title, .ck-ov .ck-pv-act, .ck-ov .ck-ph-act, .ck-ov .ck-ph-count { font-size: 15px; }
  .ck-ov .ck-as-item, .ck-ov .ck-as-cancel { min-height: 48px; font-size: 16px; }
}

/* Holly voice 2, stage 1 (28 Nov 2026; mock ~/holly/design/holly-voice2): tap to record, the
   hands-free panel (red dot, timer, live waveform, Cancel in red words, Stop in yellow), the hold
   hints (slide to cancel, the lock above the mic), and the words under any voice note folded to four
   lines. Only while CONFIG.HOLLY_VOICE2 is on (#holly-chat.ck-on.ck-v2). */
#holly-chat.ck-on.ck-v2 .hc-mic { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#holly-chat.ck-on.ck-v2 #ck-recp { display: none; }
#holly-chat.ck-on.ck-v2.ck-rec-locked #ck-recp { display: block; }
#holly-chat.ck-on.ck-v2.ck-rec-locked .hc-composer > :not(#ck-recp) { display: none !important; }
#holly-chat.ck-on.ck-v2 .ck-recl { display: flex; flex-direction: column; gap: 12px; max-width: 620px; margin: 0 auto; padding: 4px 0 2px; }
#holly-chat.ck-on.ck-v2 .ck-recbar { display: flex; align-items: center; gap: 10px; background: var(--ck-card); border-radius: 22px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; }
#holly-chat.ck-on.ck-v2 .ck-recdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ck-red); animation: ck-recpulse 1.2s ease-in-out infinite; }
@keyframes ck-recpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#holly-chat.ck-on.ck-v2 .ck-rectime { flex: none; min-width: 40px; font-size: var(--ck-body); font-variant-numeric: tabular-nums; color: var(--ck-ink); }
#holly-chat.ck-on.ck-v2 .ck-recwave { flex: 1; min-width: 0; height: 28px; display: block; }
#holly-chat.ck-on.ck-v2 .ck-recbtns { display: flex; gap: 10px; }
#holly-chat.ck-on.ck-v2 .ck-recbtns .ck-btn { flex: 1; height: 40px; border-radius: 20px; font-size: 14px; font-weight: 600; }
#holly-chat.ck-on.ck-v2 .ck-recbtns .ck-btn.is-p { flex: 1.5; background: var(--ck-y); color: #111; }
#holly-chat.ck-on.ck-v2 .ck-recbtns .ck-btn.is-red { background: transparent; color: var(--ck-red); }
#holly-chat.ck-on.ck-v2 .ck-recbtns .ck-i, #holly-chat.ck-on.ck-v2 .ck-rv-row.is-v2 .ck-i { width: 14px; height: 14px; }
#holly-chat.ck-on.ck-v2 .ck-rechint { text-align: center; font-size: var(--ck-sub); color: var(--ck-mute); }
/* holding: the existing bar (dot, timer, "‹ Slide to cancel") and a small lock above the mic */
#holly-chat.ck-on.ck-v2 .ck-lockhint { display: none; }
#holly-chat.ck-on.ck-v2.ck-rec-hold .ck-lockhint { position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 3; width: 44px; height: 84px; border-radius: 22px; background: var(--ck-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0; box-sizing: border-box; color: var(--ck-ink); pointer-events: none; transition: transform .08s linear; }
#holly-chat.ck-on.ck-v2 .ck-lockhint .ck-i { width: 16px; height: 16px; }
#holly-chat.ck-on.ck-v2 .ck-lockhint .ck-i + .ck-i { width: 14px; height: 14px; color: var(--ck-mute); }
#holly-chat.ck-on.ck-v2.ck-rec-hold .hc-rec { background: var(--ck-card); }
#holly-chat.ck-on.ck-v2.ck-rec-hold .hc-rec-dot { background: var(--ck-red); }
#holly-chat.ck-on.ck-v2.ck-rec-hold .hc-composer[data-recording] .hc-mic { background: var(--ck-red); color: #fff; }
/* the words under a voice note: four lines, then Show more / Show less */
#holly-chat.ck-on.ck-v2 .ck-vwords.is-clamp:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
#holly-chat.ck-on.ck-v2 .ck-vmore { align-self: flex-start; margin-top: -4px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: var(--ck-sub); color: var(--ck-link); cursor: pointer; }
#holly-chat.ck-on.ck-v2 .ck-vmore[hidden] { display: none; }
#holly-chat.ck-on.ck-v2 .ck-b.is-me .ck-vmore { color: var(--ck-link); }
/* the review's one row: Delete (red words), Voice only, Send (yellow) */
#holly-chat.ck-on.ck-v2 .ck-rv-row.is-v2 { align-items: center; }
#holly-chat.ck-on.ck-v2 .ck-rv-row.is-v2 .ck-btn.is-red { flex: .8; }
#holly-chat.ck-on.ck-v2 .ck-rv-row.is-v2 .ck-btn.is-p { flex: 1.2; background: var(--ck-y); color: #111; }
/* never a zoom on focus: the editable words are 16 px or more on any touch screen */
@media (pointer: coarse) { #holly-chat.ck-on.ck-v2 .ck-rv-text { font-size: max(16px, var(--ck-body)); } }
@media (prefers-reduced-motion: reduce) { #holly-chat.ck-on.ck-v2 .ck-recdot { animation: none; } }
@media (max-width: 768px) {
  #holly-chat.ck-on.ck-v2 .ck-recl { padding: 4px 4px 2px; }
  #holly-chat.ck-on.ck-v2 .ck-rectime { font-size: 17px; width: 46px; }
  #holly-chat.ck-on.ck-v2 .ck-recwave { height: 30px; }
  #holly-chat.ck-on.ck-v2 .ck-recbtns .ck-btn { height: 50px; border-radius: 25px; font-size: 17px; }
  #holly-chat.ck-on.ck-v2 .ck-rechint { font-size: 15px; }
  #holly-chat.ck-on.ck-v2 .ck-vmore { font-size: 15px; margin-top: -3px; }
  #holly-chat.ck-on.ck-v2 .ck-b.is-me .ck-vmore { color: var(--ck-y); }
  #holly-chat.ck-on.ck-v2.ck-rec-hold .hc-composer[data-recording] .hc-mic { width: 64px; height: 64px; margin: -10px -6px -10px 0; }
  #holly-chat.ck-on.ck-v2.ck-rec-hold .hc-composer[data-recording] .hc-mic svg { width: 26px; height: 26px; }
  #holly-chat.ck-on.ck-v2.ck-rec-hold .ck-lockhint { width: 48px; height: 92px; border-radius: 24px; right: 8px; }
}
/* the iPhone app with neither the tab bar (Build 2) nor phone4's composer padding under it: clear the
   home bar (chatkit.js sets .ck-sa / .ck-sa-p4 from the page's classes) */
#holly-chat.ck-on.ck-v2.ck-sa .ck-recl, #holly-chat.ck-on.ck-v2.ck-sa #ck-review { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
#holly-chat.ck-on.ck-v2.ck-sa-p4 #ck-review { padding-bottom: max(12px, calc(env(safe-area-inset-bottom) - var(--kbd-inset, 0px))); }
/* Holly voice 2: Holly's own voice note (outside a text bubble) sits in a white bubble like her words do. */
#holly-chat.ck-on.ck-v2 .ck-voice:not(.is-mine):not(.ck-b .ck-voice) { align-self: flex-start; box-sizing: border-box; max-width: min(90%, 620px); background: var(--ck-card); border-radius: var(--ck-r); border-bottom-left-radius: 6px; padding: 10px 14px; }
/* Holly voice 2, stage 1b (29 Nov 2026): live words while he records. In the hands-free panel a few
   lines under the waveform (the end of what he said stays in view), in the hold bar one line between
   the timer and "Slide to cancel" (it overflows to the left, so the newest words show). Grey
   "Listening…" until the first words, grey "Words will appear when you stop" if live words fail. */
#holly-chat.ck-on.ck-v2 .ck-reclive { display: flex; flex-direction: column; justify-content: flex-end; max-height: calc(3 * 1.4em); overflow: hidden; padding: 0 6px;
  font-size: var(--ck-body); line-height: 1.4; color: var(--ck-ink); overflow-wrap: anywhere; }
#holly-chat.ck-on.ck-v2 .ck-reclive[hidden], #holly-chat.ck-on.ck-v2 .ck-livebar[hidden] { display: none; }
#holly-chat.ck-on.ck-v2 .ck-reclive.is-empty, #holly-chat.ck-on.ck-v2 .ck-reclive.is-off,
#holly-chat.ck-on.ck-v2 .ck-livebar.is-empty, #holly-chat.ck-on.ck-v2 .ck-livebar.is-off { color: var(--ck-mute); }
#holly-chat.ck-on.ck-v2 .ck-livebar { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; white-space: nowrap; font-weight: 400; font-size: 14px; color: var(--ck-ink); }
#holly-chat.ck-on.ck-v2 .ck-livebar > span { flex: none; }
#holly-chat.ck-on.ck-v2 .ck-livebar:not([hidden]) + .hc-rec-hint { margin-left: 0; flex: none; }
#holly-chat.ck-on.ck-v2 .ck-rv-status { font-size: var(--ck-sub); color: var(--ck-mute); padding: 0 2px; }
#holly-chat.ck-on.ck-v2 .ck-rv-text.is-live { color: var(--ck-mute); }
#holly-chat.ck-on.ck-v2 .ck-rv-text.is-live:focus { color: var(--ck-ink); }
@media (max-width: 768px) {
  #holly-chat.ck-on.ck-v2 .ck-reclive { font-size: 17px; }
  #holly-chat.ck-on.ck-v2 .ck-livebar { font-size: 15px; }
  #holly-chat.ck-on.ck-v2 .ck-rv-status { font-size: 15px; }
}
