/*
 * Daily Life Doc, round 12 (zone A1): the looks of the pictures the AI makes (js/convo/images.js, field-image.js,
 * proposal-chat.js), the answer type Choice (js/ui/chips-choice.js), Send later (js/convo/field-later.js) and the
 * line "Send later · …" on a card. One type scale (base.css), tinted not bordered, "Making…" in place (never a cover).
 */

/* The picture: a calm square that keeps its place while it is made. */
.im-box { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--tint); }
.im-box.is-failed { aspect-ratio: auto; background: none; max-width: none; }
.im-pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.im-work { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--t-sm); color: var(--ink2); animation: im-breathe 1.6s ease-in-out infinite; }
@keyframes im-breathe { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .im-work { animation: none; } }

/* Round + › Image: the box above the words. */
.cf-it.cf-im { height: auto; min-height: 56px; flex-wrap: wrap; align-items: flex-start; gap: 8px; width: min(320px, calc(100vw - 96px)); padding: 10px 6px 10px 12px; }
.cf-im .im-head { flex: 1 1 calc(100% - 44px); font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-im .im-shows { font-weight: 400; color: var(--ink2); }
.cf-im .cf-x { order: 2; margin: 0; }
.cf-im .im-in { order: 3; flex: 1 1 100%; resize: none; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 10px; font: inherit; font-size: var(--t-s); }
.cf-im .im-box { order: 3; flex: 1 1 100%; max-width: 220px; }
.cf-im .im-acts { order: 4; flex: 1 1 100%; display: flex; gap: 8px; }
.cf-items:has(.cf-im) { overflow-x: visible; flex-wrap: wrap; }

/* A card's picture and its words under it. */
.pc-im .im-slot { margin: 6px 0 2px; }
.pc-later { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.pc-later-i svg { width: 15px; height: 15px; color: var(--ink2); }
.pc-note { background: var(--tint-team); }

/* Choice: each choice a soft button; one tap answers; the answer in ink. */
.cc.ch { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.3; }
.cc.ch > button, .cc.ch > span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 12px; background: var(--tint); font-size: var(--t-s); color: var(--ink2); text-align: left; }
.cc.ch > button { transition: background-color var(--m-press) ease, color var(--m-press) ease, transform var(--m-press) var(--ease-out); }
.cc.ch > button:active { transform: scale(.97); }
.cc.ch > .v { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.cc.ch.is-read > span { min-height: 30px; background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
.cc.ch.is-read > span.x { opacity: .75; }
.cc.ch.is-read > span.v { background: none; padding-left: 0; color: inherit; }
.rc-ct .cc.ch { flex: 1 1 0; min-width: 0; }
.rc-ct:has(.cc.ch) { align-items: flex-start; }
.rc-ct:has(.cc.ch) .rq-o { margin-top: 4px; }

/* Send later: the patient's time under the clock. */
.sl .sl-when { margin: 2px 0 8px; font-size: var(--t-m); }
.sl .sl-when b { font-weight: 600; }

/* A field's name in a card's Edit (Choices, Length in days …): small, quiet, above its box. */
.pc-flabel { display: block; margin: 10px 0 4px; font-size: var(--t-xs); font-weight: 600; color: var(--ink2); }
