/* Create, rebuilt in the family design (docs/design/FAMILY.md). views/create.js arranges the markup.

   What it is for: a doctor publishes something in under a minute.
   - The chooser (#modalNewPost): one glass sheet, four equal tiles (each kind with its own hue, one line that says
     what happens next and the time it takes), and at the foot a field that takes a link and starts the summary.
   - Every composer after it is the same sheet with one decision per screen: a slim line of steps in words at the
     top, one question, one main control and room around it, Back and Continue at the foot, the primary action
     always in the same place. Optional settings sit behind one quiet "More options". The post as the feed will
     show it is the only framed thing, on the last step.
   - The memorable moment is the voice note: a large round button inside a ring that fills with the minute, the
     voice drawn as it is spoken, then the recording as a glass player.

   The sheet and the step pattern are shared classes, prefix cf- (section 1). Another dialog can wear them:
     .cf-sheet            the glass sheet (a flex column: head, body, foot)
     .cf-head             the head: .cf-kind (round mark), .cf-name (what is being made), .cf-steps (the steps, in
                          words: li.is-done, li[aria-current="step"]), .cf-save (quiet text action), .cf-x (close)
     .cf-body             the scrolling middle; .cf-step one step (hidden when it is not the current one)
     .cf-ask > .cf-q, .cf-hint      the question and its one line
     .cf-group            a heading and its fields; .cf-label above a .cf-field (48px); .cf-two puts two side by side
     .cf-more             the one "More options" disclosure (a details element)
     .cf-preview          the only framed thing
     .cf-foot             the bar: .cf-back, .cf-why (the reason beside the primary action), .cf-next (primary)
   Colours are the family's tokens. A kind's hue is a token, or two tokens mixed. */

/* ── 0. hues, and the small shared pieces ─────────────────────────────────────────────────────────────── */
.cr-hue-voice, [data-crkind="voice"] { --hue: var(--color-brand); }
.cr-hue-write, [data-crkind="post"] { --hue: color-mix(in oklab, var(--color-brand) 50%, var(--color-alert)); }
.cr-hue-video, [data-crkind="video"] { --hue: var(--color-brand-2); }
.cr-hue-talk, [data-crkind="discussion"] { --hue: color-mix(in oklab, var(--color-brand) 34%, var(--color-success)); }
.cr-hue-link, [data-crkind="summary"] { --hue: var(--color-brand); }
.cr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cr-old { display: none !important; }

/* ── 1. the sheet and the step pattern (cf-) ──────────────────────────────────────────────────────────── */
#modalNewPost .cr-pick, .modal-root > .cf-sheet {
  border: 1px solid var(--frost-line); border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(620px 340px at 100% 0%, var(--field-a), transparent 72%),
    radial-gradient(480px 320px at 0% 100%, var(--field-b), transparent 72%),
    var(--frost-strong);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: var(--frost-rim), var(--frost-pop);
  color: var(--color-foreground);
}
.modal-root > .cf-sheet { display: flex; width: min(880px, 100%); max-width: 880px; height: min(780px, calc(100dvh - 32px)); max-height: none; flex-direction: column; padding: 0; }
/* a reset must not outrank a class that sets its own margin, so it carries no weight of its own */
:where(.cf-sheet) :where(h2, h3, h4, p, ol), :where(.cr-pick) :where(h2, p) { margin: 0; }
.cf-sheet button, .cf-sheet input, .cf-sheet textarea, .cf-sheet select, .cr-pick button { font-family: inherit; }
.cf-sheet [hidden] { display: none !important; }
/* a field in use keeps its example: the page hides a placeholder on focus, and an empty page with a caret says nothing */
.cf-sheet input:focus::placeholder, .cf-sheet textarea:focus::placeholder, .cr-pick input:focus::placeholder { opacity: 1; transform: none; }

/* the head: what is being made, the steps in words, the way out */
.cf-sheet .cf-head { position: relative; display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 84px; padding: 22px 22px 14px 32px; border: 0; background: none; }
.cf-head__what, .cf-sheet .cf-head .composer-head__top { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 0; }
.cf-sheet .cf-kind { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--hue) 14%, transparent); color: var(--hue); font-size: 19px; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.cf-sheet .cf-kind.cr-hue-voice, .cr-hue-voice .cr-tile__ic { background: var(--brand-grad); color: var(--color-primary-foreground); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 10px 20px -12px var(--color-brand); }
.cf-sheet .cf-name { overflow: hidden; font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.cf-sheet .composer-kicker, .cf-sheet .composer-subtitle, .cf-sheet .composer-modes { display: none; }
.cf-steps { display: flex; align-items: center; gap: 10px; padding: 0; list-style: none; }
.cf-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-muted-foreground); }
.cf-steps li + li::before { content: ''; width: 22px; height: 1.5px; border-radius: 2px; background: color-mix(in srgb, var(--color-foreground) 14%, transparent); transition: background-color .3s var(--ease-out); }
.cf-steps li.is-done + li::before { background: var(--color-brand); }
.cf-steps button, .cf-steps span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px; border-radius: 8px; font-size: 14px; font-weight: 500; color: inherit; transition: color .2s var(--ease-out); }
.cf-steps button:disabled { cursor: default; }
.cf-steps li.is-done { color: var(--color-brand-ink); }
.cf-steps li.is-done button:hover { color: var(--color-foreground); }
.cf-steps li[aria-current="step"] { color: var(--color-foreground); }
.cf-steps li[aria-current="step"] button, .cf-steps li[aria-current="step"] span { font-weight: 600; }
.cf-steps i { font-size: 13px; }
.cf-head__out { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.cf-sheet .cf-save { display: inline-flex; min-height: 40px; flex: none; align-items: center; padding: 0 14px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cf-sheet .cf-save:hover { background: var(--frost-well); color: var(--color-foreground); }
.cf-sheet .cf-x { position: static; display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--color-muted-foreground); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cf-sheet .cf-x:hover { background: var(--frost-well); color: var(--color-foreground); }

/* the middle: one step at a time, in a column with room around it */
.cf-sheet .cf-body { display: block; min-height: 0; flex: 1 1 auto; padding: 18px 40px 32px; -webkit-mask-image: linear-gradient(to bottom, transparent, var(--color-foreground) 14px); mask-image: linear-gradient(to bottom, transparent, var(--color-foreground) 14px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 0; background: none; scrollbar-width: thin; }
.cf-step { display: flex; width: 100%; max-width: 640px; min-height: 100%; flex-direction: column; gap: 24px; margin: 0 auto; }
.cf-ask { display: flex; flex-direction: column; gap: 8px; }
.cf-q { font-size: clamp(24px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; text-wrap: balance; }
.cf-hint { max-width: 56ch; font-size: 15.5px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }
.cf-group { display: flex; min-width: 0; flex-direction: column; }
.cf-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--color-foreground); }
.cf-label small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--color-muted-foreground); }
.cf-sheet .cf-field { display: flex; width: 100%; min-width: 0; height: 48px; align-items: center; gap: 10px; margin: 0; padding: 0 16px; border: 1px solid var(--frost-line); border-radius: 14px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 15.5px; color: var(--color-foreground); text-align: left; transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out), background-color .22s var(--ease-out); }
.cf-sheet textarea.cf-field { display: block; height: auto; min-height: 96px; padding: 12px 16px; line-height: 1.5; resize: none; }
.cf-sheet .cf-field:hover { border-color: var(--oryn-border-hover); }
.cf-sheet .cf-field:focus, .cf-sheet .cf-field:focus-within, .cf-sheet .cf-field[aria-expanded="true"] { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); outline: 0; background: var(--color-card); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
.cf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.cf-two > .cf-wide { grid-column: 1 / -1; }
.cf-more { border-top: 1px solid var(--color-border); }
.cf-sheet .cf-more, .cf-sheet .cf-more:hover, .cf-sheet .cf-more[open] { margin: 0; padding: 0; border-width: 1px 0 0; border-color: var(--color-border); border-radius: 0; background: none; box-shadow: none; }
.cf-sheet .cf-more > summary { display: flex; min-height: 56px; align-items: center; gap: 10px; padding: 0; font-size: 15px; font-weight: 500; color: var(--oryn-text-2); cursor: pointer; list-style: none; }
.cf-sheet .cf-more > summary::-webkit-details-marker { display: none; }
.cf-sheet .cf-more > summary::before { content: none; }
.cf-sheet .cf-more > summary i { font-size: 14px; transition: rotate .3s var(--ease-out); }
.cf-sheet .cf-more[open] > summary i { rotate: 180deg; }
.cf-sheet .cf-more > summary:hover { color: var(--color-foreground); }
.cf-more__in { display: flex; flex-direction: column; gap: 24px; padding: 4px 0 8px; }
.cf-preview { border: 1px solid var(--frost-line); border-radius: 22px; background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow); }

/* the foot: Back on the left, the primary action always in the same place, the reason beside it */
.cf-sheet .cf-foot { display: flex; min-height: 88px; flex: none; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 32px 24px; border: 0; background: none; box-shadow: none; }
.cf-sheet .composer-footer__actions { display: contents; }
.cf-sheet .cf-back { display: inline-flex; min-height: 48px; flex: none; align-items: center; gap: 8px; padding: 0 18px 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cf-sheet .cf-back:hover { background: var(--frost-well); color: var(--color-foreground); }
.cf-sheet .cf-back i { font-size: 16px; }
.cf-sheet .composer-draft { font-size: 13px; }
.cf-sheet .cf-why { min-width: 0; margin: 0 0 0 auto; font-size: 14px; line-height: 1.35; color: var(--color-muted-foreground); text-align: right; text-wrap: balance; transition: color .2s var(--ease-out); }
.cf-sheet .cf-why.is-asked, .cf-sheet .cf-why.is-bad { font-weight: 500; color: var(--color-alert-ink); }
.cf-sheet .cf-next { display: inline-flex; width: auto; min-width: 156px; min-height: 48px; flex: none; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: 999px; background: var(--color-brand); color: var(--color-primary-foreground); font-family: inherit; font-size: 15px; font-weight: 600; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 26%, transparent), 0 8px 18px -10px var(--color-brand); transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .32s var(--ease-out); }
.cf-sheet .cf-next:hover { transform: none; background: var(--color-brand-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.cf-sheet .cf-next i { font-size: 16px; }
.cf-sheet .cf-next[aria-disabled="true"], .cf-sheet .cf-next[aria-disabled="true"]:hover { background: color-mix(in srgb, var(--color-foreground) 9%, transparent); box-shadow: none; color: var(--color-muted-foreground); cursor: default; translate: none; }
.cf-sheet .cf-next:disabled { opacity: .7; }

/* a sheet that follows another keeps the veil, and when it grew out of a tile it does not rise a second time */
.modal-root[data-cr-in]:not(.modal-closing) > .modal-backdrop { animation: none; opacity: 1; }
.modal-root[data-cr-in="morph"]:not(.modal-closing) > .modal-panel { animation: none; opacity: 1; }
::view-transition-group(cr-sheet) { animation-duration: .5s; animation-timing-function: var(--ease-out); overflow: clip; border-radius: 26px; }
::view-transition-old(cr-sheet), ::view-transition-new(cr-sheet) { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
::view-transition-old(cr-sheet) { animation: cr-vt-out .14s ease-out both; }
::view-transition-new(cr-sheet) { animation: cr-vt-in .32s ease-out .08s both; }
html.vt-create::view-transition-old(root), html.vt-create::view-transition-new(root) { animation-duration: .2s; }
@keyframes cr-vt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cr-vt-out { from { opacity: 1; } to { opacity: 0; } }

/* ── 2. choosing what to make ─────────────────────────────────────────────────────────────────────────── */
#modalNewPost .cr-pick { width: min(940px, 100%); max-width: 940px; padding: 40px 40px 0; }
.cr-pick > [data-close] { position: absolute; top: 20px; right: 20px; z-index: 5; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--color-muted-foreground); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cr-pick > [data-close]:hover { background: var(--frost-well); color: var(--color-foreground); }
.cr-pick__head { padding-right: 48px; }
.cr-pick__title { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.022em; line-height: 1.12; }
.cr-pick__sub { margin-top: 8px; font-size: 15.5px; color: var(--color-muted-foreground); }

.cr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.cr-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 228px; padding: 22px 20px 18px; border: 1px solid var(--frost-line); border-radius: 22px; background: var(--frost-strong); box-shadow: var(--frost-rim), var(--frost-shadow); color: var(--color-foreground); text-align: left; transition: translate .4s var(--ease-out), border-color .2s var(--ease-out), box-shadow .32s var(--ease-out), background-color .2s var(--ease-out); }
.cr-tile__ic { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--hue) 14%, transparent); color: var(--hue); font-size: 24px; transition: scale .4s var(--ease-out); }
.cr-tile__name { display: block; margin-top: 20px; font-size: 17px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.cr-tile__line { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--color-muted-foreground); text-wrap: pretty; }
.cr-tile__time { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.cr-tile__time i { font-size: 14px; }
.cr-tile__go { position: absolute; top: 24px; right: 20px; font-size: 16px; color: var(--hue); opacity: 0; translate: -6px 0; transition: opacity .2s var(--ease-out), translate .4s var(--ease-out); }
@media (hover: hover) {
  .cr-tile:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--hue) 46%, transparent); background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow-up); }
  .cr-tile:hover .cr-tile__ic { scale: 1.06; }
  .cr-tile:hover .cr-tile__go { opacity: 1; translate: 0 0; }
}
.cr-tile:focus-visible { border-color: color-mix(in srgb, var(--hue) 60%, transparent); background: var(--color-card); }
.cr-tile:focus-visible .cr-tile__go { opacity: 1; translate: 0 0; }

/* under the tiles: the draft that was left, and the way to a comment */
.cr-pick__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 40px; margin-top: 18px; }
.cr-pick__draft, .cr-pick__reply { display: inline-flex; min-width: 0; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 14px; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cr-pick__draft[hidden] { display: none; }
.cr-pick__draft { max-width: 100%; background: var(--brand-soft); color: var(--color-brand-ink); font-weight: 600; }
.cr-pick__draft span { flex: none; }
.cr-pick__draft small { min-width: 0; flex: 0 1 auto; overflow: hidden; font-size: 13.5px; font-weight: 400; color: var(--oryn-text-2); text-overflow: ellipsis; white-space: nowrap; }
.cr-pick__reply { margin-left: auto; }
.cr-pick__reply i:last-child, .cr-pick__draft i:last-child { flex: none; font-size: 14px; transition: translate .3s var(--ease-out); }
.cr-pick__reply:hover { background: var(--frost-well); color: var(--color-foreground); }
.cr-pick__reply:hover i:last-child, .cr-pick__draft:hover i:last-child { translate: 3px 0; }

/* the foot: paste a link and the summary starts */
.cr-pick__foot { margin: 22px -40px 0; padding: 24px 40px 28px; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 34%, transparent); }
.cr-pick__link { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 9px 0 22px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow); transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
.cr-pick__link:focus-within { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
.cr-pick__link > i { flex: none; font-size: 20px; color: var(--color-brand); }
.cr-pick__link input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--color-foreground); }
.cr-pick__link input::placeholder { color: var(--color-muted-foreground); }
.cr-pick__go { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 14.5px; font-weight: 600; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 26%, transparent), 0 8px 18px -10px var(--color-brand); transition: background-color .16s var(--ease-out), box-shadow .32s var(--ease-out); }
.cr-pick__go:hover { background: var(--color-brand-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.cr-pick__go i { font-size: 16px; }
.cr-pick__note { margin-top: 10px; padding-left: 22px; font-size: 13px; color: var(--color-muted-foreground); }

/* ── 3. the composer's steps ──────────────────────────────────────────────────────────────────────────── */
.cf-sheet .composer-body { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.cf-sheet.composer-modal.is-entering .composer-head__top, .cf-sheet.composer-modal.is-entering .composer-main > * { animation: none; }
.cf-sheet .composer-mode-panel { margin: 0; }
.cf-sheet .composer-error { margin: -12px 0 0; font-size: 14px; color: var(--color-alert-ink); }

/* writing: a title, the text under it, the tools in one pill that floats at the foot of the page */
.cf-sheet #crPaper { display: flex; flex-direction: column; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.cf-sheet #crPaper.composer-field-invalid { border: 0 !important; box-shadow: none !important; }
.cf-sheet #crPaper.composer-field-invalid #crBody::placeholder { color: var(--color-alert-ink); }
.cf-sheet .cr-title, .cf-sheet .composer-paper__title { display: block; width: 100%; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--color-border); outline: 0; background: transparent; font-family: inherit; font-size: 26px !important; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--color-foreground); transition: border-color .22s var(--ease-out); }
.cf-sheet .cr-title:focus, .cf-sheet .composer-paper__title:focus { border-bottom-color: var(--color-brand); }
.cf-sheet .cr-title::placeholder, .cf-sheet .composer-paper__title::placeholder { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
/* (the page pins every field to 16px on a phone so the browser does not zoom; these two are larger than that) */
.cf-sheet .composer-paper__body { min-height: 168px; margin-top: 20px; padding: 0; resize: none; overflow: hidden; font-size: 17px !important; line-height: 1.62; }
.cf-sheet .composer-paper__body::placeholder { color: color-mix(in srgb, var(--color-foreground) 62%, transparent); }
.cf-sheet #crAttachList { margin: 0; gap: 8px; }
.cf-sheet #crAttachList:empty { display: none; }
.cf-sheet .cw-chip { height: 36px; padding: 0 6px 0 14px; border-radius: 999px; font-size: 13.5px; }
.cf-sheet .cw-chip button { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; }
.cf-sheet .cw-chip button:hover { background: var(--color-card); }
.cf-sheet .cr-dock { position: sticky; bottom: 0; z-index: 3; display: inline-flex; flex: none; flex-wrap: nowrap; align-self: center; align-items: center; gap: 2px; margin: auto 0 0; padding: 5px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-float); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: var(--frost-rim), var(--frost-shadow); }
.cf-sheet .cr-dock .composer-tool { position: relative; display: grid; width: 44px; min-height: 0; height: 44px; padding: 0; place-items: center; border-radius: 50%; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cf-sheet .cr-dock .composer-tool:hover { transform: none; background: var(--frost-well); color: var(--color-foreground); }
.cf-sheet .cr-dock .composer-tool i { font-size: 20px !important; }
.cf-sheet .cr-dock .composer-tool span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf-sheet .cr-dock .composer-tool--ai { color: var(--color-brand); }
.cr-dock__rule { width: 1px; height: 22px; margin: 0 6px; background: var(--color-border); }
.cf-sheet .cr-dock .composer-count { margin: 0; padding: 0 14px 0 6px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }

/* a video: one large place to bring it in, the video playing in the app's player (player.css) once it is there,
   and under it what is happening to the file */
.cr-stage { position: relative; display: grid; aspect-ratio: 16 / 9; overflow: hidden; place-items: center; border-radius: 22px; background: var(--frost-ink); box-shadow: var(--frost-shadow); }
.cr-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cr-stage video.is-mirror { object-fit: cover; transform: scaleX(-1); }
.cr-stage__bar { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-stage__time { display: inline-flex; height: 40px; align-items: center; gap: 9px; padding: 0 16px; border-radius: 999px; background: var(--frost-ink); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-card); }
html:not(.light) .cr-stage__time { color: var(--color-foreground); }
.cr-stage__time::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--color-alert); }
.cr-stage__stop { display: inline-flex; height: 48px; align-items: center; gap: 9px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--color-alert); color: var(--color-card); font-size: 15px; font-weight: 600; box-shadow: 0 12px 24px -12px var(--color-alert); }
/* a recording whose upload did not go through: send it again, or let it go */
.cr-stage__again { display: inline-flex; height: 48px; align-items: center; gap: 9px; padding: 0 22px; border-radius: 999px; background: var(--frost-ink); color: var(--color-card); font-size: 15px; font-weight: 600; }
html:not(.light) .cr-stage__again { color: var(--color-foreground); }
.cr-stage__again.is-main { background: var(--color-card); color: var(--color-foreground); }
.cr-stage__note { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--frost-ink); font-size: 14.5px; font-weight: 500; color: var(--color-card); }
html:not(.light) .cr-stage__note { color: var(--color-foreground); }
.cr-stage > .bsp { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.cf-sheet .is-up .composer-drop { display: none; }
/* the stage keeps the column's width and leaves room under it for what is said about the file, so nothing that
   matters is under the fold; a recording that is not as wide stands on its own blurred light (player.css) */
.cf-sheet .cr-stage { aspect-ratio: auto; height: clamp(180px, 50vw, 320px); }
.cf-sheet .composer-drop button[hidden] { display: none; }
.cr-up { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0 0; padding: 16px 18px; border: 1px solid var(--frost-line); border-radius: 20px; background: var(--frost-strong); box-shadow: var(--frost-rim); }
.cr-up[hidden] { display: none; }
.cr-up[data-state="refused"] { margin: 0 0 16px; }
.cr-up__ic { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--hue) 13%, transparent); color: var(--hue); font-size: 20px; }
.cr-up[data-state="failed"] .cr-up__ic, .cr-up[data-state="refused"] .cr-up__ic { background: color-mix(in srgb, var(--color-alert) 12%, transparent); color: var(--color-alert-ink); }
.cr-up[data-state="canceled"] .cr-up__ic { background: var(--frost-well); color: var(--color-muted-foreground); }
.cr-up__main { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 3px; }
.cr-up__name, .cr-up__head { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cr-up__facts { overflow: hidden; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.cr-up__meter { height: 6px; margin: 10px 0 4px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground) 9%, transparent); }
.cr-up__meter > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--color-brand); transition: width .3s linear; }
.cr-up__line { margin: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; line-height: 1.45; color: var(--oryn-text-2); text-wrap: pretty; }
.cr-up[data-state="failed"] .cr-up__line, .cr-up[data-state="refused"] .cr-up__line { margin-top: 4px; color: var(--color-foreground); }
.cr-up__acts { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.cr-up__acts:empty { display: none; }
.cr-up { flex-wrap: wrap; }
.cr-up[data-state="failed"] .cr-up__acts, .cr-up[data-state="canceled"] .cr-up__acts { flex: 1 1 100%; justify-content: flex-start; padding-left: 54px; }
.cf-sheet .cr-up__btn { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14.5px; font-weight: 500; color: var(--color-foreground); transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out); }
.cf-sheet .cr-up__btn:hover { border-color: var(--oryn-border-hover); background: var(--color-card); }
.cf-sheet .cr-up__btn.is-main { border-color: transparent; background: var(--color-brand); box-shadow: none; color: var(--color-primary-foreground); font-weight: 600; }
.cf-sheet .cr-up__btn.is-main:hover { background: var(--color-brand-hover); }
.cr-up__btn i { font-size: 16px; }
.cf-sheet .composer-drop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; overflow: hidden; border: 1.5px dashed color-mix(in srgb, var(--hue) 46%, transparent); border-radius: 26px; background: color-mix(in srgb, var(--hue) 5%, transparent); transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out); }
.cf-sheet .composer-drop.hidden { display: none; }
.cf-sheet .composer-drop.is-over { border-color: var(--hue); background: color-mix(in srgb, var(--hue) 12%, transparent); }
.cf-sheet .composer-drop.composer-field-invalid { border-color: var(--color-alert) !important; box-shadow: none !important; }
.cf-sheet .composer-drop button { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 24px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; transition: background-color .2s var(--ease-out); }
.cf-sheet .composer-drop button + button { border-left: 1px solid color-mix(in srgb, var(--hue) 22%, transparent); }
.cf-sheet .composer-drop button:hover, .cf-sheet .composer-drop button:focus-visible { border-color: color-mix(in srgb, var(--hue) 22%, transparent); background: color-mix(in srgb, var(--hue) 9%, transparent); }
.cf-sheet .composer-drop .cr-drop__ic { display: grid; width: 64px; height: 64px; margin: 0 0 14px; place-items: center; border-radius: 50%; background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow); color: var(--hue); font-size: 27px; transition: scale .4s var(--ease-out); }
.cf-sheet .composer-drop button:hover .cr-drop__ic { scale: 1.06; }
.cf-sheet .composer-drop strong { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cf-sheet .composer-drop span:not(.cr-drop__ic) { max-width: 34ch; margin: 0; font-size: 14px; line-height: 1.4; color: var(--color-muted-foreground); text-wrap: balance; }
.cf-sheet .is-cam .composer-drop, .cf-sheet .is-cam #crVideoReady { display: none; }
.cf-sheet #crVideoReady { margin: 20px 0 0; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none; }
.cf-sheet #crVideoReady > i { font-size: 22px !important; color: var(--color-success); }
.cf-sheet #crVideoReady strong { font-size: 15px; font-weight: 600; }
.cf-sheet #crVideoReady span { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.cf-sheet #crClearVideo { height: 44px; min-height: 44px; padding: 0 18px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14.5px; font-weight: 500; color: var(--color-foreground); }
.cf-sheet #crClearVideo:hover { border-color: var(--oryn-border-hover); background: var(--color-card); }

/* a link: one field */
.cf-sheet .composer-source { height: 60px; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0 22px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow); transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
.cf-sheet .composer-source:focus-within { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
.cf-sheet .composer-source > i { margin: 0; font-size: 20px !important; }
.cf-sheet .composer-source input { height: 100%; font-size: 16px; }
.cf-sheet .composer-source button { display: none; }
.cf-sheet .composer-source.composer-field-invalid { border-color: var(--color-alert) !important; box-shadow: none !important; }
.cf-sheet #crSourceError { margin: 12px 0 0 22px; }
.cr-auto { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--color-muted-foreground); }
.cr-auto i { flex: none; margin-top: 2px; font-size: 16px; color: var(--color-brand); }
.cr-link { align-self: flex-start; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--color-brand-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-brand) 35%, transparent); text-underline-offset: 3px; }
.cr-link:hover { text-decoration-color: currentColor; }
.cr-link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* the last step: the post as the feed will show it, the privacy check, and the options */
.cf-sheet .cr-card { display: block; margin: 0; padding: 22px 22px 18px; }
.cr-card__head { display: flex; align-items: center; gap: 12px; }
.cr-card__av { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--color-muted); font-size: 15px; font-weight: 600; color: var(--color-muted-foreground); }
.cr-card__who { min-width: 0; flex: 1; }
.cr-card__who strong { display: block; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cr-card__who > span { display: flex; gap: 8px; margin-top: 1px; font-size: 13px; color: var(--color-muted-foreground); }
.cr-card__who > span > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-card__kind { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--hue) 13%, transparent); font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--hue) 78%, var(--color-foreground)); }
.cr-card__kind i { font-size: 13px; }
.cf-sheet .cr-card h4 { display: -webkit-box; margin-top: 18px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: -.016em; line-height: 1.28; overflow-wrap: anywhere; }
.cf-sheet .cr-card > p { display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; line-height: 1.5; color: var(--color-muted-foreground); overflow-wrap: anywhere; }
.cr-card__why { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--color-brand); }
.cr-card__why span { display: block; font-size: 12.5px; color: var(--color-muted-foreground); }
.cr-card__why p { display: -webkit-box; margin-top: 2px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14.5px; line-height: 1.45; }
.cr-card__media { position: relative; display: grid; margin-top: 16px; aspect-ratio: 16 / 9; overflow: hidden; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--color-foreground) 7%, transparent); }
.cr-card__media video, .cr-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-card__media > span { position: relative; z-index: 1; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--frost-float); box-shadow: var(--frost-rim), var(--frost-shadow); color: var(--color-foreground); font-size: 20px; }
.cr-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.cr-card__meta span { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; height: 28px; padding: 0 12px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground) 6%, transparent); font-size: 13px; font-weight: 500; color: var(--oryn-text-2); text-overflow: ellipsis; white-space: nowrap; }
.cr-card__meta span i { font-size: 14px; }
.cr-card__meta .is-alert { background: color-mix(in srgb, var(--color-alert) 12%, transparent); color: var(--color-alert-ink); font-weight: 600; }
.cr-card__meta .is-auto { background: var(--brand-soft); color: var(--color-brand-ink); }

/* the privacy check: the automated statement, and the confirmation when the text may describe a patient */
.cf-sheet .cr-priv { margin: 0; padding: 0; border: 0; }
/* when the confirmation is needed it comes before the preview: it is what this step asks for */
.cf-step > .cf-ask { order: -2; }
.cf-sheet .cr-priv:has(.composer-check:not(.hidden)) { order: -1; }
.cf-sheet .cr-priv.hidden { display: none; }
.cf-sheet .cr-priv .composer-section__head { display: none; }
.cf-sheet .cr-priv .composer-safety { align-items: flex-start; gap: 10px; padding: 0; border-radius: 0; background: none; font-size: 14px; line-height: 1.5; color: var(--color-muted-foreground); animation: none; }
.cf-sheet .cr-priv .composer-safety > i { margin-top: 2px; font-size: 17px !important; color: var(--color-success); }
.cf-sheet .cr-priv .composer-safety strong { font-weight: 600; color: var(--color-foreground); }
.cf-sheet .cr-priv .composer-safety.is-warning { color: var(--color-foreground); font-weight: 500; }
.cf-sheet .cr-priv .composer-safety.is-warning > i { color: var(--color-alert-ink); }
.cf-sheet .cr-priv .composer-check { margin: 16px 0 0; gap: 14px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.cf-sheet .cr-priv .composer-check.hidden { display: none; }
.cf-sheet .cr-priv .composer-check input { width: 22px; height: 22px; margin-top: 1px; }
.cf-sheet .cr-priv .composer-check strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.cf-sheet .cr-priv .composer-check span span { margin-top: 3px; font-size: 13.5px; }
.cf-sheet .cr-priv .composer-error { margin: 10px 0 0; }

/* more options: a field that opens its choices under it, a switch-like row, a text */
.cf-sheet .composer-meta__row.cf-field { min-height: 48px; padding: 0 14px 0 16px; }
.cf-sheet .composer-meta__row.cf-field:hover, .cf-sheet .composer-meta__row.cf-field:active { transform: none; }
.cf-sheet .cf-field .composer-meta__ic { width: auto; height: auto; border-radius: 0; background: none; color: var(--color-muted-foreground); }
.cf-sheet .cf-field .composer-meta__ic i { font-size: 18px !important; }
.cf-sheet .cf-field .composer-meta__copy small { display: none; }
.cf-sheet .cf-field .composer-meta__copy strong { font-size: 15.5px; font-weight: 400; }
.cf-sheet .cf-field > i { font-size: 13px !important; transition: rotate .25s var(--ease-out); }
.cf-sheet .cf-field[aria-expanded="true"] > i { rotate: 180deg; }
.cf-sheet .cf-wide.composer-options { gap: 8px; margin-top: -8px; animation: none; }
.cf-sheet .cf-wide.composer-options.hidden { display: none; }
.cf-sheet .composer-chip { min-height: 40px; padding: 0 16px; border-color: var(--frost-line); background: var(--frost-strong); font-size: 14px; }
.cf-sheet .composer-chip:hover { transform: none; border-color: var(--oryn-border-hover); }
.cf-sheet .composer-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-brand) 60%, transparent); background: var(--brand-soft); box-shadow: none; color: var(--color-brand-ink); font-weight: 600; }
.cf-sheet #crTimeSensitive .set-check { width: 22px; height: 22px; margin-left: auto; border-radius: 50%; border-color: color-mix(in srgb, var(--color-foreground) 22%, transparent); }
.cf-sheet #crTimeSensitive .set-check.on { border-color: var(--color-alert); background: var(--color-alert); color: var(--color-card); }
.cf-sheet #crTimeSensitive[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-alert) 40%, transparent); background: color-mix(in srgb, var(--color-alert) 7%, transparent); }
.cf-sheet #crTimeSensitive[aria-pressed="true"] .composer-meta__ic { color: var(--color-alert-ink); }
.cf-sheet label[for="crStage"] { display: block; margin: 0; }
.cf-sheet label[for="crStage"] > span { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--color-foreground); }
.cf-sheet #crStage { height: 48px; margin: 0; border-radius: 14px; font-size: 15.5px; }
.cf-sheet [data-crkind]:not([data-crkind="video"]) .cr-only-video, .cf-sheet[data-crkind]:not([data-crkind="video"]) .cr-only-video { display: none; }

/* published */
.cf-sheet #crSuccess { gap: 8px; background: radial-gradient(620px 340px at 100% 0%, var(--field-a), transparent 72%), radial-gradient(480px 320px at 0% 100%, var(--field-b), transparent 72%), var(--color-card); }
.cf-sheet #crSuccess > span.grid { width: 72px; height: 72px; margin-bottom: 12px; background: color-mix(in srgb, var(--color-success) 14%, transparent); }
.cf-sheet #crSuccess h3 { font-size: 28px; font-weight: 600; letter-spacing: -.022em; }
.cf-sheet #crSuccess p { font-size: 15.5px; }
.cf-sheet #crSuccess > div { gap: 12px; margin-top: 24px; }
.cf-sheet #crSuccess .composer-primary, .cf-sheet #crSuccess .composer-secondary { min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; }
.cf-sheet #crSuccess .composer-secondary { border-color: var(--frost-line); }

/* ── 4. the voice note ────────────────────────────────────────────────────────────────────────────────── */
#modalVoice #voiceBody { display: contents; }
.cr-voice .cf-step { align-items: stretch; }
/* the recorder: a round button in a ring that fills with the minute, and the voice as it is spoken */
.cr-rec { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0 12px; text-align: center; }
.cr-rec::before { content: ''; position: absolute; top: 50%; left: 50%; width: min(560px, 100%); aspect-ratio: 1; translate: -50% -56%; border-radius: 50%; background: radial-gradient(closest-side, var(--field-a), transparent 72%); pointer-events: none; }
.cr-rec__ring { position: relative; display: grid; width: 196px; height: 196px; flex: none; place-items: center; }
.cr-rec__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.cr-rec__track { fill: none; stroke: color-mix(in srgb, var(--color-foreground) 8%, transparent); stroke-width: 6; }
.cr-rec__fill { fill: none; stroke: var(--color-brand); stroke-width: 6; stroke-linecap: round; }
[data-vstate="rec"] .cr-rec__fill { stroke: var(--color-alert); }
.cr-rec__btn { position: relative; display: grid; width: 144px; height: 144px; place-items: center; border-radius: 50%; background: var(--brand-grad); color: var(--color-primary-foreground); font-size: 50px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 34%, transparent), 0 22px 40px -18px var(--color-brand); transition: box-shadow .32s var(--ease-out); }
.cr-rec__btn:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 34%, transparent), 0 0 0 8px var(--brand-soft), 0 26px 44px -18px var(--color-brand); }
.cr-rec__btn.is-live { background: var(--color-alert); color: var(--color-card); font-size: 42px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 22px 40px -18px var(--color-alert); }
.cr-rec__btn.is-live:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 8px color-mix(in srgb, var(--color-alert) 14%, transparent), 0 26px 44px -18px var(--color-alert); }
.cr-rec__time { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 28px; font-variant-numeric: tabular-nums; }
.cr-rec__time b, .cr-rec__time #vnTime { margin: 0; font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; text-align: left; }
.cr-rec__time span { font-size: 16px; color: var(--color-muted-foreground); }
.cr-wave { position: relative; display: block; width: min(480px, 100%); height: 64px; margin-top: 22px; color: var(--color-brand); }
[data-vstate="rec"] .cr-wave { color: var(--color-alert); }
.cr-rec__msg { position: relative; max-width: 46ch; margin-top: 18px; padding: 12px 18px; border-radius: 16px; background: color-mix(in srgb, var(--color-alert) 9%, transparent); font-size: 14px; line-height: 1.45; color: var(--color-alert-ink); }
/* recorded: the recording as a glass player, and a title */
.cr-take__stage { position: relative; display: grid; min-height: 220px; flex: 1; place-items: center; border-radius: 26px; background: radial-gradient(60% 90% at 24% 30%, var(--field-a), transparent 70%), radial-gradient(54% 80% at 82% 78%, var(--field-b), transparent 72%), color-mix(in srgb, var(--color-muted) 60%, transparent); }
.cr-player { display: flex; width: min(520px, calc(100% - 48px)); align-items: center; gap: 16px; padding: 14px 24px 14px 14px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-float); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: var(--frost-rim), var(--frost-pop); }
.cr-player audio { display: none; }
.cr-player__play { display: grid; flex: none; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 22px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 26%, transparent), 0 8px 18px -10px var(--color-brand); transition: background-color .16s var(--ease-out), box-shadow .32s var(--ease-out); }
.cr-player__play:hover { background: var(--color-brand-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.cr-player .cr-wave { min-width: 0; height: 44px; flex: 1; margin: 0; }
.cr-player__time { flex: none; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--oryn-text-2); }

/* ── 5. under 1024px: a full sheet, the bar docked at the foot ────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .modal-root:has(> .cf-sheet) { padding: 0; place-items: stretch; overflow: hidden; }
  .modal-root > .cf-sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; align-self: stretch; border: 0; border-radius: 0; }
  .cf-sheet .cf-head { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; min-height: 0; padding: calc(14px + env(safe-area-inset-top)) 12px 6px 20px; }
  .cf-sheet .cf-head .cf-steps { grid-column: 1 / -1; grid-row: 2; }
  .cf-sheet .cf-body { padding: 18px 20px 24px; }
  .cf-step { gap: 22px; }
  .cf-sheet .cf-foot { min-height: 76px; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); }
  .cf-sheet .composer-draft { display: none; }
  .cf-sheet .cf-why { font-size: 13px; }
  .cf-sheet .cf-next { min-width: 132px; padding: 0 20px; }
  .cf-sheet .composer-paper__body { min-height: 150px; }
  .cr-rec__ring { width: 176px; height: 176px; }
  .cr-rec__btn { width: 128px; height: 128px; }
  .cr-take__stage { min-height: 180px; }
}
@media (max-width: 760px) {
  #modalNewPost.modal-root { padding: 0; place-items: end stretch; }
  #modalNewPost .cr-pick { width: 100%; max-width: none; max-height: 100dvh; padding: 28px 18px 0; overflow-y: auto; border-width: 1px 0 0; border-radius: 26px 26px 0 0; }
  .cr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .cr-tile { min-height: 0; padding: 16px 14px 14px; border-radius: 20px; }
  .cr-tile__ic { width: 44px; height: 44px; font-size: 21px; }
  .cr-tile__name { margin-top: 14px; font-size: 15.5px; }
  .cr-tile__line { font-size: 13px; }
  .cr-tile__go { display: none; }
  .cr-pick__reply { margin-left: 0; }
  .cr-pick__foot { margin: 16px -18px 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
  .cr-pick__link { height: 56px; padding-left: 18px; }
  .cr-pick__go { width: 42px; padding: 0; }
  .cr-pick__go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cr-pick__note { padding-left: 18px; }
  .cf-sheet .cf-save { padding: 0 10px; }
  .cf-two { grid-template-columns: minmax(0, 1fr); }
  .cf-sheet .composer-drop button { min-height: 220px; padding: 20px 16px; }
  .cr-up { padding: 14px; }
  .cr-up__main { flex-basis: calc(100% - 54px); }
  .cr-up__acts, .cr-up[data-state="failed"] .cr-up__acts, .cr-up[data-state="canceled"] .cr-up__acts { flex: 1 1 100%; justify-content: flex-start; padding-left: 0; }
  .cr-up__acts .cr-up__btn { flex: 1 1 auto; justify-content: center; }
  .cf-sheet .composer-drop button + button { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--hue) 22%, transparent); }
  .cf-sheet .composer-drop .cr-drop__ic { width: 54px; height: 54px; margin-bottom: 10px; }
  .cf-sheet .cr-title, .cf-sheet .composer-paper__title { font-size: 23px !important; }
  .cf-sheet .cr-card { padding: 18px 16px 16px; }
  .cr-stage__bar { right: 10px; bottom: 10px; left: 10px; gap: 8px; }
  .cr-stage__time { height: 36px; padding: 0 12px; font-size: 13px; }
  .cr-stage__stop { height: 44px; padding: 0 16px 0 13px; font-size: 14px; }
}

/* ── 6. reduce motion ─────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cr-tile, .cr-tile__ic, .cr-tile__go, .cf-sheet .cf-kind, .cf-steps li + li::before, .cf-sheet .cf-more > summary i, .cr-pick__reply i, .cr-pick__draft i, .cf-sheet .composer-drop .cr-drop__ic, .cr-up__meter > span { transition: none; }
  .cr-tile:hover { translate: none; }
  /* Choosing a kind still moved the tiles (measured frame by frame, 3 October): the general hover lift of a card
     (motion.css, loaded later) won over the line above, the page's press shrank the tile, and the closing sheet
     jumped 4px while it left. With reduced motion asked for, a tile stands still under the pointer and under a
     press, and the chooser leaves without a step. */
  .np-card.cr-tile:hover, .np-card.cr-tile:active { translate: none; scale: none; }
  #modalNewPost.modal-closing .modal-panel { animation: none; opacity: 0; }
  ::view-transition-group(cr-sheet), ::view-transition-old(cr-sheet), ::view-transition-new(cr-sheet) { animation: none; }
}
html.a11y-reduce-motion .cr-tile, html.a11y-reduce-motion .cr-tile__ic, html.a11y-reduce-motion .cr-tile__go, html.a11y-reduce-motion .cf-sheet .composer-drop .cr-drop__ic, html.a11y-reduce-motion .cr-up__meter > span { transition: none; }
html.a11y-reduce-motion .cr-tile:hover { translate: none; }
html.a11y-reduce-motion .np-card.cr-tile:hover, html.a11y-reduce-motion .np-card.cr-tile:active { translate: none; scale: none; }
html.a11y-reduce-motion #modalNewPost.modal-closing .modal-panel { animation: none; opacity: 0; }

/* ── a phone: the reason beside Continue gets a line of its own above the buttons. Between Back and Continue it had
      90px at 360 wide and broke into three short lines; up to 639px it still broke into three (four in Spanish), so every
      phone width has it (19 November 2026). ── */
/* a small phone: the line of steps keeps its four words in view (the video's "Review" was cut at 360 wide) */
@media (max-width: 379.98px) {
  .cf-steps, .cf-steps li { gap: 6px; }
  .cf-steps li + li::before { width: 12px; }
}
@media (max-width: 639.98px) {
  .cf-sheet .cf-foot { flex-wrap: wrap; row-gap: 8px; }
  .cf-sheet .cf-why { order: -1; flex: 0 0 100%; margin: 0; }
  .cf-sheet .cf-why:empty { display: none; }
  .cf-sheet .cf-next { margin-left: auto; }
}

/* ── a touch screen: 44px to the finger, the look unchanged (an ::after nobody sees takes the press) ── */
@media (pointer: coarse) {
  .cf-sheet .cf-x, .cr-link, .cr-pick__reply, .cr-pick__go { position: relative; inset: auto; }   /* the close button's base rule carries offsets that only an absolute box used */
  .cf-sheet .cr-title, .cf-sheet .composer-paper__title { min-height: 44px; }
  .cf-sheet .cf-x::after, .cr-link::after, .cr-pick__reply::after, .cr-pick__go::after { content: ''; position: absolute; }
  .cf-sheet .cf-x::after { inset: -2px; }
  .cr-link::after { inset: -12px 0; }
  .cr-pick__reply::after { inset: -2px 0; }
  .cr-pick__go::after { inset: 0 -1px; }
}

/* ── what the post carries, shown while it is written (20 October 2026) ──
   Under the text: the photo itself, a file by its name, a link as the post will show it, a file on its way up.
   Each is one row with a round Remove; the link opens in a new tab. The review card repeats the files as pills
   and the first link as the same card (the feed shows it that way). */
.cf-sheet .cr-media { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cf-sheet .cr-media[hidden] { display: none; }
.cr-media__photo { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--color-muted); }
.cr-media__photo img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.cr-media__photo figcaption { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 16px; border-top: 1px solid var(--frost-line); background: var(--color-card); font-size: 13.5px; }
.cr-media__photo figcaption > span:first-child { min-width: 0; flex: 0 1 auto; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cr-media__note { flex: 1; min-width: 0; overflow: hidden; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.cr-media__file, .cr-media__up, .cr-media__link { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px 8px 12px; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--color-card); }
.cr-media__link { color: inherit; text-decoration: none; transition: border-color .16s var(--ease-out), box-shadow .2s var(--ease-out); }
.cr-media__link:hover { border-color: var(--oryn-border-hover); box-shadow: var(--frost-rim), var(--frost-shadow-up, var(--frost-shadow)); }
.cr-media__link > i { flex: none; margin-right: 8px; font-size: 16px; color: var(--color-brand-ink); transition: translate .22s var(--ease-out); }
.cr-media__link:hover > i { translate: 2px -2px; }
.cr-media__ic, .cr-link__ic { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--brand-soft); font-size: 18px; color: var(--color-brand); }
.cr-media__up img { display: block; flex: none; width: 56px; height: 40px; border-radius: 10px; object-fit: cover; opacity: .7; }
.cr-media__what, .cr-link__what { min-width: 0; flex: 1; }
.cr-media__what b, .cr-link__what b { display: block; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cr-media__what > span, .cr-link__what > span { display: flex; align-items: center; gap: 7px; margin-top: 2px; overflow: hidden; font-size: 13px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.cr-media__what .ai-spinner { width: 13px; height: 13px; color: var(--color-brand); }
.cr-media__x { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--color-muted-foreground); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cr-media__x:hover { background: var(--frost-well); color: var(--color-foreground); }
.cr-media__x:focus-visible, .cr-media__link:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.cr-media__x i { font-size: 16px; }
.cr-media__x:active { scale: .94; }
.cr-card__extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cr-card__extras[hidden] { display: none; }
.cr-card__file { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--frost-line); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--oryn-text-2); }
.cr-card__file i { font-size: 15px; }
.cr-card__link { display: flex; flex-basis: 100%; align-items: center; gap: 12px; min-height: 56px; padding: 7px 10px 7px 10px; border: 1px solid var(--frost-line); border-radius: 16px; background: var(--frost-well); color: inherit; text-decoration: none; }
.cr-card__link > i { flex: none; margin-right: 6px; font-size: 15px; color: var(--color-brand-ink); }
.cr-card__link .cr-link__ic { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
.cr-card__link .cr-link__what b { font-size: 14px; }
.cr-card__link .cr-link__what > span { font-size: 12.5px; }
@media (max-width: 640px) {
  .cr-media__photo img { max-height: 220px; }
  .cr-media__photo figcaption .cr-media__note { display: none; }
}
/* the page's own chip row says the same as the strip above it: the strip is what is shown */
.cf-sheet #crAttachList { display: none; }

/* ── a title written for the doctor (20 October 2026): the line under the card's title ── */
.cr-card__tnote { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--color-muted-foreground); }
.cr-card__tnote[hidden] { display: none; }
.cr-card__tnote > i { font-size: 15px; color: var(--color-brand); }
.cr-card__tnote .ai-spinner { width: 14px; height: 14px; color: var(--color-brand); }
.cr-card__tnote .cr-link { font-size: 13px; }

/* ── 7. the create flow of Spec C4 (23 October 2026) ─────────────────────────────────────────────────────
   The entry screen led by purpose, the structure of every post (why it matters, the source, the specialty and the
   kind of update), the privacy block and the nudges, the output choice, the video's confirmations, dictation. */

/* the entry screen: one field first, the doctor's own formats second, the private way below a divider */
.cr-pick__source { margin-top: 26px; }
.cr-pick__source .cr-pick__link { height: 64px; padding: 0 9px 0 22px; }
.cr-pick__source .cr-pick__link.is-over { border-color: var(--color-brand); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
.cr-pick__pdf, .cr-pick__link .dc-btn { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--oryn-text-2); font-size: 20px; transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cr-pick__pdf:hover, .cr-pick__link .dc-btn:hover { background: var(--frost-well); color: var(--color-foreground); }
.cr-pick__take { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 22px; font-size: 14px; line-height: 1.45; color: var(--oryn-text-2); }
.cr-pick__take[hidden] { display: none; }
.cr-pick__take > i { flex: none; font-size: 16px; color: var(--color-brand); }
.cr-pick__take span { min-width: 0; flex: 1; }
.cr-pick__source .cr-pick__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding-left: 22px; font-size: 13.5px; line-height: 1.5; }
.cr-pick__source .cr-pick__note i { flex: none; margin-top: 2px; font-size: 15px; color: var(--color-brand); }
.cr-pick__ways { margin-top: 30px; }
.cr-pick__or { font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); }
.cr-pick__ways .cr-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.cr-pick__ways .cr-tile { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.cr-pick__ways .cr-tile__ic { width: 44px; height: 44px; flex: none; font-size: 21px; }
.cr-pick__ways .cr-tile__name { margin-top: 0; font-size: 16px; }
.cr-pick__ways .cr-tile__line { margin-top: 2px; font-size: 13px; }
.cr-pick__ways .cr-tile__go { top: 50%; translate: -6px -50%; }
.cr-pick__ways .cr-tile:hover .cr-tile__go, .cr-pick__ways .cr-tile:focus-visible .cr-tile__go { translate: 0 -50%; }
.cr-pick__more:empty, .cr-pick__more:not(:has(.cr-pick__draft:not([hidden]))) { display: none; }
.cr-pick__talk { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 52px; padding: 0 6px; border-radius: 14px; font-size: 15px; line-height: 1.4; color: var(--oryn-text-2); text-align: left; transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.cr-pick__talk > i:first-child { flex: none; font-size: 20px; color: var(--color-brand); }
.cr-pick__talk span { min-width: 0; flex: 1; }
.cr-pick__talk b { font-weight: 600; color: var(--color-brand-ink); }
.cr-pick__talk > i:last-child { flex: none; font-size: 15px; transition: translate .3s var(--ease-out); }
.cr-pick__talk:hover { background: var(--frost-well); color: var(--color-foreground); }
.cr-pick__talk:hover > i:last-child { translate: 3px 0; }
#modalNewPost .cr-pick .cr-pick__foot { margin-top: 26px; padding: 14px 40px 20px; }
@media (max-width: 760px) {
  .cr-pick__ways .cr-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cr-pick__source .cr-pick__link { height: 58px; padding-left: 16px; }
  .cr-pick__source .cr-pick__note, .cr-pick__take { padding-left: 16px; margin-left: 0; }
  .cr-pick__pdf { display: none; }
  #modalNewPost .cr-pick .cr-pick__foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
}

/* a field with its microphone */
.cr-field-row { position: relative; display: flex; align-items: flex-start; gap: 8px; }
.cr-field-row > .cf-field, .cr-field-row > input, .cr-field-row > textarea { min-width: 0; flex: 1; }
.dc-btn { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: var(--oryn-text-2); font-size: 19px; transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.dc-btn:hover { background: var(--frost-well); color: var(--color-foreground); }
.dc-btn[hidden] { display: none; }
.dc-btn.is-live { background: var(--color-alert); color: var(--color-card); }
.dc-btn.is-live i { animation: dc-breathe 1.2s ease-in-out infinite; }
@keyframes dc-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.dc-note { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--color-muted-foreground); }
.dc-note--live { color: var(--color-alert-ink); font-weight: 500; }
.dc-note--bad { color: var(--color-alert-ink); }
.dc-note:empty { display: none; }
.cf-sheet .cr-dock .dc-btn { width: 44px; height: 44px; color: var(--oryn-text-2); }
.cf-sheet .cr-dock .dc-btn.is-live { color: var(--color-card); }
.cf-sheet .cr-dock .dc-btn + .dc-note { display: none; }
.cf-sheet .cr-field-row .cf-field.composer-paper__title { font-size: 26px !important; }
.cf-sheet #crPaper .cr-field-row { align-items: center; }
.cf-sheet #crPaper .cr-field-row .dc-btn { margin-top: -10px; }
@media (prefers-reduced-motion: reduce) { .dc-btn.is-live i { animation: none; } }

/* the structure on the writing step: why it matters for practice, and the source */
.cf-sheet .cr-why > label, .cf-sheet .cr-src > label, .cf-sheet .cr-output > span { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--color-foreground); }
.cf-sheet .cr-why textarea.cf-field { min-height: 84px; margin: 0; background: var(--frost-strong); }
.cf-sheet .cr-why.composer-field-invalid textarea, .cf-sheet .cr-src.composer-field-invalid .cf-field { border-color: var(--color-alert) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-alert) 12%, transparent) !important; }
.cf-sheet .cr-src > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cf-sheet .cr-src .cr-field-row { flex: 1 1 320px; }
.cf-sheet .cr-src .cf-field { margin: 0; height: 48px; font-size: 15px; }
.cf-sheet .cr-src.hidden { display: none; }
.cf-sheet .cr-src .composer-chip { min-height: 44px; padding: 0 16px; border-color: var(--frost-line); background: var(--frost-strong); font-size: 14px; }
.cf-sheet .cr-src .composer-chip[hidden] { display: none; }
.cf-sheet .cr-src .composer-chip:hover { transform: none; border-color: var(--oryn-border-hover); }
.cf-sheet .cr-src .composer-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-brand) 60%, transparent); background: var(--brand-soft); color: var(--color-brand-ink); font-weight: 600; }
.cf-sheet .cr-src #crSrcDraft { color: var(--color-brand-ink); font-weight: 600; }
.cf-sheet .cr-src #crSrcDraft i { margin-right: 6px; }
.cf-sheet .cr-src #crSourceNote { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--color-muted-foreground); }
.cf-sheet .cr-src.is-over .cf-field { border-color: var(--color-brand); }
/* how a drafted source is shared */
.cf-sheet .cr-output.hidden { display: none; }
.cf-sheet .cr-output > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cf-sheet .cr-output .composer-chip { min-height: 44px; padding: 0 16px; border-color: var(--frost-line); background: var(--frost-strong); font-size: 14px; }
.cf-sheet .cr-output .composer-chip i { margin-right: 7px; }
.cf-sheet .cr-output .composer-chip:hover { transform: none; border-color: var(--oryn-border-hover); }
.cf-sheet .cr-output .composer-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--color-brand) 60%, transparent); background: var(--brand-soft); color: var(--color-brand-ink); font-weight: 600; }
.cf-sheet .cr-output #crOutputNote { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--color-muted-foreground); }
/* a news report's primary sources */
.cr-primary { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--frost-strong); }
.cr-primary[hidden] { display: none; }
.cr-primary__h { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--oryn-text-2); }
.cr-primary__h i { flex: none; margin-top: 2px; font-size: 16px; color: var(--color-brand); }
.cr-primary ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cr-primary li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--color-card); }
.cr-primary__what { min-width: 0; flex: 1; }
.cr-primary__what b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cr-primary__what > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--color-muted-foreground); }
.cf-sheet .cr-primary__use { display: inline-flex; flex: none; min-height: 40px; align-items: center; padding: 0 14px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); font-size: 13.5px; font-weight: 600; color: var(--color-brand-ink); }
.cf-sheet .cr-primary__use:hover { border-color: var(--oryn-border-hover); background: var(--brand-soft); }
.cf-sheet .cr-primary .cr-link { flex: none; font-size: 13.5px; }
/* the video's two confirmations, in sight before anything goes up */
.cf-sheet #crVideoConsentWrap, .cf-sheet #crVideoAiWrap { margin: 16px 0 0; gap: 14px; padding: 14px 16px; border: 1px solid var(--frost-line); border-radius: 16px; background: var(--frost-strong); box-shadow: var(--frost-rim); }
.cf-sheet #crVideoConsentWrap input, .cf-sheet #crVideoAiWrap input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.cf-sheet #crVideoConsentWrap strong, .cf-sheet #crVideoAiWrap strong { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.cf-sheet #crVideoAiWrap span span { margin-top: 3px; font-size: 13px; color: var(--color-muted-foreground); }
.cf-sheet .is-cam #crVideoConsentWrap, .cf-sheet .is-cam #crVideoAiWrap { display: none; }
.cr-up[data-state="consent"] .cr-up__ic { background: var(--brand-soft); color: var(--color-brand); }
.cf-sheet #crVideoNote { margin-top: 14px; }
.cf-sheet #crVideoNote[hidden] { display: none; }

/* the last step: the structure in sight, the checks, the nudge */
.cr-struct { display: flex; flex-direction: column; gap: 14px; }
.cr-struct .cf-two { gap: 16px; }
.cf-sheet .cr-spec { padding: 0 14px 0 16px; }
.cf-sheet .cr-spec .composer-meta__copy { min-width: 0; flex: 1; }
.cf-sheet .cr-spec select { width: 100%; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--color-foreground); outline: 0; }
.cr-struct__note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--oryn-text-2); }
.cr-struct__note.hidden { display: none; }
.cr-struct__note::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--color-brand); }
.cr-checks { margin: 0; }
.cr-checks[hidden] { display: none; }
.cr-checks p { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--color-alert) 8%, transparent); font-size: 13.5px; line-height: 1.5; color: var(--color-foreground); }
.cr-checks p i { flex: none; margin-top: 2px; font-size: 16px; color: var(--color-alert-ink); }
.cf-sheet .cr-priv .composer-safety[data-state="blocked"] > i { color: var(--color-alert-ink); }
.cf-sheet .cr-priv #crPhiBlock { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--color-alert) 9%, transparent); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--color-alert-ink); }
.cf-sheet .cr-priv #crPhiBlock:not(.show) { display: none; }
.cf-sheet .cr-nudge { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--color-brand) 40%, transparent); border-radius: 20px; background: var(--brand-soft); }
.cf-sheet .cr-nudge.hidden { display: none; }
.cf-sheet .cr-nudge p:first-child { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--color-foreground); }
.cf-sheet .cr-nudge p + p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--oryn-text-2); }
.cf-sheet .cr-nudge > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.cf-sheet .cr-nudge .composer-chip { min-height: 44px; padding: 0 16px; border-color: var(--frost-line); background: var(--color-card); font-size: 14px; font-weight: 500; }
.cf-sheet .cr-nudge .composer-chip:hover { transform: none; border-color: var(--oryn-border-hover); }
.cf-sheet .cr-nudge .composer-chip[data-cr-nudge="post"] { margin-left: auto; color: var(--oryn-text-2); }
.cf-sheet .cr-nudge .composer-chip[data-cr-nudge="edit"] { border-color: transparent; background: var(--color-brand); color: var(--color-primary-foreground); font-weight: 600; }
/* the card: badges from stored fields only, then the source line */
.cr-card__meta .is-ai, .cr-card__meta .is-auto { background: var(--brand-soft); color: var(--color-brand-ink); }
.cr-card__meta .is-specialty { background: color-mix(in srgb, var(--color-brand) 9%, transparent); color: var(--color-foreground); font-weight: 600; }
.cr-card__src { display: block; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--color-muted-foreground); }
.cr-card__src[hidden] { display: none; }
.cf-sheet .cr-card > .cr-card__src { display: block; -webkit-line-clamp: unset; }
/* the voice note's words */
.cr-voice .cf-step textarea.cf-field { min-height: 72px; }
.cr-voice .cf-step #vnText { min-height: 110px; }
.cr-words-note { margin-top: 8px; font-size: 13px; }
.cr-voice .cf-next:disabled, .cr-voice .cf-next[aria-disabled="true"] { background: color-mix(in srgb, var(--color-foreground) 9%, transparent); box-shadow: none; color: var(--color-muted-foreground); opacity: 1; cursor: default; }
@media (max-width: 760px) {
  .cr-struct .cf-two { grid-template-columns: minmax(0, 1fr); }
  .cf-sheet .cr-nudge .composer-chip[data-cr-nudge="post"] { margin-left: 0; }
}

/* the last step fits a 900px window with the structure in sight: a tighter card (two lines of text, one of why) */
.cf-sheet .cr-card { padding: 18px 20px 16px; }
.cr-card__av { width: 40px; height: 40px; font-size: 14px; }
.cf-sheet .cr-card h4 { margin-top: 14px; -webkit-line-clamp: 2; font-size: 19px; }
.cf-sheet .cr-card > p { margin-top: 6px; -webkit-line-clamp: 2; font-size: 14.5px; }
.cr-card__why { margin-top: 12px; }
.cr-card__why p { -webkit-line-clamp: 2; font-size: 14px; }
.cr-card__src { margin-top: 10px; }
.cr-card__meta { margin-top: 12px; padding-top: 12px; }
.cf-step[data-cf-step="review"] { gap: 18px; }

/* ── Context fits the window (19 November 2026, the night audit): on a window under 960px tall, and on a phone, the line that
      says the post back is left out; the steps line above already shows Write done, and a press on it goes back ── */
@media (max-height: 959.98px), (max-width: 639.98px) {
  #modalCreate [data-cf-step="why"] .cr-about { display: none; }
}
