/* Release screen (web/release.js, Release Screen v1). House tokens from app.css; colour = state.
   Tags: given green · worked out blue · default purple · needed red · blocked red outline. */
:root { --purple:#6A4C9C; --purple-soft:#EFEAF7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --purple:#B79CE8; --purple-soft:#2C2540; } }

.rl { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--ground); }
.rl-cols { flex: 1; display: grid; grid-template-columns: 40% 60%; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.rl-meta { color: var(--muted); font-size: 13px; }
.rl-red { color: var(--red); }
.rl-amber { color: var(--amber); }
.rl-pad { padding: 12px 16px; }
.rl-code { font-variant-numeric: tabular-nums; letter-spacing: .01em; font-weight: 600; }
.rl-sm { height: 32px; padding: 0 12px; font-size: 14px; }

/* step bar: grey not started · blue current · green done · red blocked */
.rl-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; }
.rl-step button { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 14px; color: var(--faint); white-space: nowrap; }
.rl-step button:disabled { cursor: default; }
.rl-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; border: 1.5px solid var(--line); background: var(--card); color: var(--faint); }
.rl-step + .rl-step::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--line); vertical-align: middle; margin-right: 4px; }
.rl-step { display: flex; align-items: center; }
.rl-step.current button { color: var(--blue); font-weight: 600; }
.rl-step.current .rl-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.rl-step.done button { color: var(--ink-2); }
.rl-step.done button:hover { background: var(--fill); }
.rl-step.done .rl-dot { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.rl-step.blocked button { color: var(--red); font-weight: 600; }
.rl-step.blocked .rl-dot { background: var(--red); border-color: var(--red); color: #fff; }

/* phone tabs (hidden on desktop) */
.rl-tabs { display: none; }
.rl-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; margin-left: 4px; }

/* chat column */
.rl-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); background: var(--ground); }
.rl-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rl-m.from-me { align-self: flex-end; max-width: 88%; }
.rl-m.from-desk { align-self: stretch; }
.rl-me { max-width: none; font-size: 14px; }
.rl-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.rl-bubble .rl-meta { margin-top: 3px; }
.rl-quiet { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.rl-good { border-left: 3px solid var(--green); }
.rl-warn { border-left: 3px solid var(--amber); }
.rl-bad { border-left: 3px solid var(--red); color: var(--ink); }
.rl-off { border-left: 3px solid var(--faint); }
.rl-saved { color: var(--green); font-weight: 500; border-color: var(--green-soft); }
.rl-notes { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(46,125,79,.18); display: grid; gap: 4px; }
.rl-notes-t { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rl-note { display: flex; gap: 8px; color: var(--amber); background: var(--card); border-radius: 8px; padding: 5px 9px; font-size: 13px; }
.rl-note > span { font-weight: 700; flex: 0 0 8px; }
.rl-steps-r { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; padding-left: 12px; }
.rl-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.rl-past { font-size: 13px; color: var(--muted); padding: 2px 4px; }
.rl-hint { margin: auto 0; padding: 20px 6px; }
.rl-hint-t { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.rl-example { font-size: 15px; background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin: 4px 0 10px; }

.rl-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.rl-card-t { font-weight: 600; margin-bottom: 6px; }
.rl-cand { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.rl-cand-n { font-weight: 500; }
.rl-cand.picked .rl-cand-n { color: var(--green); }
.rl-prod { display: flex; gap: 8px; padding: 6px 0; align-items: flex-start; }
.rl-prod + .rl-prod { border-top: 1px solid var(--line); }
.rl-prod-i { flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--muted); margin-top: 1px; }
.rl-prod.ok .rl-prod-i { background: var(--green-soft); color: var(--green); }
.rl-prod.new .rl-prod-i { background: var(--amber-soft); color: var(--amber); }
.rl-prod.bad .rl-prod-i { background: var(--red-soft); color: var(--red); }

/* the single "missing details" message */
.rl-ask-g { padding-top: 6px; }
.rl-ask-g + .rl-ask-g { border-top: 1px solid var(--line); margin-top: 6px; }
.rl-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 2px 0 2px; }
.rl-ask-i { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.rl-ask-l { flex: 0 0 128px; font-size: 14px; }
.rl-ask-l::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: middle; }
.rl-ask-c { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.rl-chip { min-height: 30px; padding: 3px 11px; font-size: 13px; }
.rl-chip.quiet { border-style: dashed; color: var(--muted); }
.rl-type { display: inline-flex; gap: 6px; }
.rl-type input { width: 140px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--card); }
.rl-type input:focus { outline: none; border-color: var(--acc); }
.rl-composer { padding: 10px 12px; }
.rl-composer textarea:disabled { background: var(--fill); }

/* order card column */
.rl-cardcol { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--panel); }
.rl-cardscroll { flex: 1; overflow-y: auto; padding: 14px 18px 18px; }
.rl-cardcol.locked .rl-cardscroll { opacity: .5; pointer-events: none; filter: grayscale(.4); }
.rl-block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.rl-block-t { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.rl-block-t b { font-size: 15px; }
.rl-amt { font-size: 14px; color: var(--ink-2); }
.rl-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rl-wide { grid-column: 1 / -1; display: grid; }
.rl-f { display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 36px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14px; min-width: 0; width: 100%; color: var(--ink); }
.rl-grid > .rl-f:nth-child(odd):not(.rl-wide) { border-right: 1px solid var(--line); }
.rl-f.edit:hover { background: var(--acc-soft); cursor: pointer; }
.rl-f-l { flex: 0 0 128px; color: var(--muted); font-size: 13px; }
.rl-f-v { flex: 1; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.rl-f-why { font-size: 12px; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-f-why.amber { color: var(--amber); }
.rl-need { display: inline-block; min-width: 110px; border: 1.5px solid var(--red); border-radius: 6px; padding: 0 8px; color: var(--red); font-size: 12px; background: var(--red-soft); line-height: 22px; }
.rl-f.blocked { outline: 2px solid var(--red); outline-offset: -2px; background: var(--red-soft); }
.rl-f.blocked s { color: var(--red); }
.rl-f.diff { outline: 2px solid var(--amber); outline-offset: -2px; background: var(--amber-soft); }
.rl-tag { flex: none; font-size: 11px; border-radius: 999px; padding: 1px 7px; font-weight: 500; }
.t-given { color: var(--green); background: var(--green-soft); }
.t-derived { color: var(--blue); background: var(--blue-soft); }
.t-default { color: var(--purple); background: var(--purple-soft); }
.t-blocked { color: #fff; background: var(--red); }
.rl-check { display: flex; gap: 8px; padding: 6px 12px; font-size: 13px; border-bottom: 1px solid var(--line); }
.rl-check:last-child { border-bottom: 0; }
.rl-check > span { flex: 0 0 14px; font-weight: 700; }
.rl-check.ok > span { color: var(--green); }
.rl-check.ok { color: var(--ink-2); }
.rl-check.warn { background: var(--amber-soft); color: var(--amber); }
.rl-check.fail { color: var(--red); }

/* banner (only when needed) */
.rl-banner { border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.rl-banner > b { font-size: 15px; }
.rl-banner.good { background: var(--green-soft); color: var(--green); }
.rl-banner.warn { background: var(--amber-soft); color: var(--amber); }
.rl-banner.bad { background: var(--red-soft); color: var(--red); border: 1.5px solid var(--red); }
.rl-banner.off { background: var(--fill); color: var(--ink-2); }
.rl-diffs { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--card); border-radius: 8px; overflow: hidden; color: var(--ink); font-size: 13px; }
.rl-diffs th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.rl-diffs td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.rl-diffs tr:last-child td { border-bottom: 0; }

/* empty / reading */
.rl-ghost { border-style: dashed; background: transparent; }
.rl-ghost .rl-block-t { color: var(--faint); border-bottom-style: dashed; }
.rl-ghost-rows { padding: 10px 12px; display: grid; gap: 10px; }
.rl-skel { height: 12px; border-radius: 6px; background: var(--fill); }
.rl-skel.shimmer { background: linear-gradient(90deg, var(--fill) 0%, var(--line) 50%, var(--fill) 100%); background-size: 200% 100%; animation: rl-shimmer 1.2s linear infinite; }
@keyframes rl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rl-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rl-turn .8s linear infinite; vertical-align: -2px; opacity: .8; }
@keyframes rl-turn { to { transform: rotate(360deg); } }

/* sticky action bar */
.rl-bar { display: flex; align-items: center; gap: 12px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.rl-bar-r { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.rl-reason { font-size: 13px; color: var(--muted); text-align: right; }
.rl-release { height: 42px; padding: 0 20px; font-weight: 600; }
.rl-quietbtn { border-color: transparent; background: none; color: var(--muted); }
.rl-quietbtn:hover { color: var(--ink); }
.rl-cardcol.readonly .rl-f { cursor: default; }

/* states page (/release/_states) */
.rl-states-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.rl-states-top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.rl-states-top nav button { border: 0; background: none; padding: 3px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.rl-states-top nav button.on { background: var(--acc); color: var(--acc-ink); }
.rl-states-top label { margin-left: auto; }
.rl-state { padding: 14px 16px 22px; }
.rl-state-l { font-size: 15px; margin-bottom: 6px; }
.rl-state-f { height: 860px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.rl-state-f > .rl { flex: 1; height: auto; }
.rl-states.one { position: fixed; inset: 0; display: flex; flex-direction: column; }
.rl-states.one .rl-state { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; }
.rl-states.one .rl-state-l { padding: 6px 16px; margin: 0; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; }
.rl-states.one .rl-state-f { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; }
.rl-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 9px 14px; border-radius: 10px; font-size: 14px; z-index: 9; }

/* phone: one column, Chat | Order tabs */
@media (max-width: 899px) {
  .rl-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--card); }
  .rl-tabs button { flex: 1; border: 0; background: none; height: 40px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
  .rl-tabs button.on { color: var(--ink); border-bottom-color: var(--acc); }
  .rl-cols { grid-template-columns: 1fr; }
  .rl.tab-chat .rl-cardcol, .rl.tab-order .rl-chat { display: none; }
  .rl-chat { border-right: 0; }
  .rl-steps { padding: 6px 8px; }
  .rl-step button { font-size: 0; padding: 2px; gap: 0; }
  .rl-step.current button { font-size: 13px; gap: 6px; padding-right: 6px; }
  .rl-step + .rl-step::before { width: 10px; }
  .rl-grid { grid-template-columns: 1fr; }
  .rl-grid > .rl-f:nth-child(odd):not(.rl-wide) { border-right: 0; }
  .rl-f-l { flex-basis: 112px; }
  .rl-ask-i { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rl-ask-l { flex: none; }
  .rl-cardscroll { padding: 10px; }
  .rl-bar { padding: 8px 10px; gap: 8px; }
  .rl-quietbtn { padding: 0 6px; }
  .rl-bar-r { flex-direction: column; align-items: flex-end; gap: 2px; }
  .rl-reason { order: 2; font-size: 12px; }
  .rl-release { height: 40px; padding: 0 14px; }
  .rl-states-top label { margin-left: 0; }
}

/* live screen inside the app shell (web/release-page.js) */
.rl-page { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.rl-page > .rl { flex: 1; height: auto; }
.nav.rl-sub { height: 32px; padding-left: 37px; font-size: 14px; color: var(--ink-2); }
.nav.rl-sub svg { display: none; }
.rl-ed-back { position: fixed; inset: 0; background: rgba(26,31,36,.28); z-index: 50; display: grid; place-items: center; padding: 16px; }
.rl-ed { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; width: min(440px, 100%); max-height: 80vh; overflow-y: auto; }
.rl-ed-t { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rl-ed-t b { flex: 1; font-size: 15px; }
.rl-ed-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-ed-row { display: flex; gap: 8px; }
.rl-ed-row input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); }
.rl-ed-row input:focus { outline: none; border-color: var(--acc); }
.rl-list { max-width: 900px; }
.rl-rows { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.rl-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15px; }
.rl-row:last-child { border-bottom: 0; }
.rl-row:hover { background: var(--fill); }
.rl-row-n { font-weight: 500; flex: 0 0 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-row-t { flex: 0 0 80px; text-align: right; }
.rl-fix { margin-top: 12px; }
.rl-diffs.flat { margin: 0; border-radius: 0; }
@media (max-width: 760px) {
  .nav.quiet.rl-nav { display: flex; order: -1; }   /* Release first on the phone bar */
  .rail { justify-content: flex-start; overflow-x: auto; gap: 0; }   /* one more item (Release): let the bar scroll */
  .rail .nav { padding: 4px 7px; flex: none; }
  .rl-steps { padding-right: 116px; }                                  /* room for the Live badge */
  .rl-steps-r { display: none; }
  .rl-tabs-r { display: flex; align-items: center; padding: 0 12px; font-size: 13px; }
  .rl-row-n { flex-basis: 45%; }
  .rl-row-t { display: none; }
}

/* answered quick picks: ticked, greyed, small; what is still needed stands out (Bharat, 7 Oct 2026) */
.rl-ask-i.done { padding: 1px 0; opacity: .6; }
.rl-ask-i.done .rl-ask-l { font-size: 13px; color: var(--green); }
.rl-ask-i.done .rl-ask-l::before { display: none; }
.rl-ask-g.done .rl-eyebrow { opacity: .55; }
/* until step 5: the yellow practice line on top of the Release screen (release_draft.PRACTICE_BANNER) */
.rl-practice { flex: none; background: #F6D84A; color: #3B3000; text-align: center; font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 5px 12px; }
.live-pair { display: grid; gap: 6px; margin-bottom: 12px; }
.live-pair .live-badge { margin-bottom: 0; }
.live-pair .live-badge { flex-wrap: nowrap; align-items: flex-start; font-size: 12.5px; }
.live-pair .live-badge .live-dot { margin-top: 4px; }
.toast { pointer-events: none; }   /* a toast never covers the Release / New order buttons under it */
/* phone: the rail's "Practice Renuka – connected" pill sits top-right; keep the PRACTICE line readable beside it */
@media (max-width: 760px) { .rl-practice { text-align: left; padding: 7px 12px; min-height: 34px; padding-right: 222px; font-size: 11.5px; letter-spacing: .02em; overflow-wrap: anywhere; } }
.rl-practice.rl-live { background: #B42318; color: #fff; }

/* Stock page -> Release (8 Oct 2026): the ticked reels kept with the line */
.rl-raw { margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel, #f6f4ef); font-size: 12.5px; line-height: 1.45; }

/* the Copy-for-WhatsApp text on a released order: selectable when the browser won't copy (simulation, 8 Oct 2026) */
.rl-wa { margin: 0; padding: 10px 14px; white-space: pre-wrap; font: 13px/1.5 var(--mono, ui-monospace, Menlo, monospace);
  user-select: text; color: var(--ink, inherit); }

/* ---- research-backed changes (8 Oct 2026) ---- */
/* "Read as" under a typed message: what the reader understood */
.rl-readas { font-size: 12px; color: var(--muted); text-align: right; margin-top: 3px; line-height: 1.35; }
/* amber "check" on values read from text that need a second look; plain notes under a field (what's wrong + what to do) */
.t-check { color: var(--amber); background: var(--amber-soft); border: 1px solid currentColor; }
.rl-tagbtn { cursor: pointer; font: inherit; font-size: 11px; line-height: 16px; }
.rl-tagbtn:disabled { cursor: default; }
.rl-f-note { font-size: 12px; line-height: 1.35; white-space: normal; margin-top: 1px; }
.rl-f-note.bad { color: var(--red); }
.rl-f-note.warn { color: var(--amber); }
.rl-pmark { padding: 5px 12px; font-size: 12px; color: var(--amber); background: var(--amber-soft); border-bottom: 1px solid var(--line); }
/* customer picker: number keys, recent badge, best match (Enter) */
.rl-key { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; margin-right: 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--fill); vertical-align: 1px; }
.rl-cand > .rl-key { margin: 0; flex: none; }
.rl-recent { font-size: 11px; font-weight: 500; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.rl-cand.best { background: var(--acc-soft); border-radius: 8px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; border-top-color: transparent; box-shadow: inset 0 0 0 1.5px var(--acc); }
.rl-enter { font-size: 11.5px; white-space: nowrap; }
.rl-cand-g { padding-top: 8px; border-top: 1px solid var(--line); margin-top: 2px; }
.rl-cand-g + .rl-cand { border-top: 0; }
/* Repeat last order */
.rl-repeat .rl-rep-lines { margin-top: 4px; font-size: 13px; display: grid; gap: 1px; }
/* S5 Check your answers */
.rl-cya-g { padding: 6px 12px 4px; }
.rl-cya-g + .rl-cya-g { border-top: 1px solid var(--line); }
.rl-cya-r { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.rl-cya-r:last-child { border-bottom: 0; }
.rl-cya-r.prod { padding-top: 7px; }
.rl-cya-r.prod .rl-cya-l { color: var(--ink); font-weight: 600; }
.rl-cya-l { color: var(--muted); font-size: 13px; }
.rl-cya-v { min-width: 0; overflow-wrap: anywhere; }
.rl-cya-c { font-size: 13px; }
.rl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rl-allbtn { font-size: 13px; margin: 0 0 10px 2px; }
/* S8: minor differences after the ones that matter */
.rl-diffs tr.minor td { color: var(--ink-2); }
.rl-diffs tr.rl-minor-h td { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--fill); padding: 3px 10px; }
/* reels added from the Stock page */
.rl-stockb { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 13.5px; display: grid; gap: 3px; }
.rl-stockb-r { display: flex; align-items: center; gap: 10px; }
/* "Saved 10:42" beside Drafts */
.rl-savedrow { display: inline-flex; align-items: center; gap: 10px; }
.rl-saved-at { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.rl-release { max-width: 100%; white-space: normal; line-height: 1.2; text-align: center; }
@media (max-width: 899px) { .rl-cya-r { grid-template-columns: 110px 1fr auto; } .rl-release { font-size: 13px; } }
.rl-f.edit, .rl-f { flex-wrap: wrap; }
.rl-f-sub { flex: 1 0 100%; padding-left: 136px; margin-top: -3px; font-size: 12px; line-height: 1.35; }
.rl-f-sub.bad { color: var(--red); }
.rl-f-sub.warn { color: var(--amber); }
@media (max-width: 899px) { .rl-f-sub { padding-left: 120px; } }
.rl-cya-why { display: block; font-size: 12px; color: var(--amber); }

/* attachments in the chat (9 Oct 2026): paperclip, chips before sending, files on a sent message, drop zone */
.rl-composer { flex-wrap: wrap; position: relative; }
.rl-clip { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.rl-clip:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.rl-clip:disabled { opacity: .5; cursor: default; }
.rl-pending { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.rl-chipfile { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 40px; padding: 0 4px 0 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13px; }
.rl-chipfile img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.rl-chipfile .rl-meta { font-size: 12px; white-space: nowrap; }
.rl-att-n { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-x { border: 0; background: none; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.rl-x:hover { background: var(--fill); color: var(--ink); }
.rl-att-ic { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .03em; background: var(--fill); color: var(--ink-2); }
.rl-att-ic.k-pdf { background: var(--red-soft, #FBEAEA); color: var(--red); }
.rl-att-ic.k-sheet { background: var(--green-soft); color: var(--green); }
.rl-filenote { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.35; padding-left: 2px; }
.rl-att { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.rl-att-img { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.rl-att-img img { display: block; width: 120px; height: 90px; object-fit: cover; }
.rl-att-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; }
.rl-att-file:hover { border-color: var(--acc); }
.rl-att-file .rl-meta { font-size: 12px; white-space: nowrap; }
.rl-chat { position: relative; }
.rl-dropping .rl-msgs, .rl-dropping .rl-composer { opacity: .35; }
.rl-drop { position: absolute; inset: 10px; z-index: 5; border: 2px dashed var(--acc); border-radius: 14px; background: color-mix(in srgb, var(--card) 85%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--acc); pointer-events: none; }
.rl-drop > div:first-child { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .rl-att-n { max-width: 120px; }
  .rl-att-img img { width: 96px; height: 72px; }
  .rl-clip { width: 40px; height: 40px; }
}
