/* CHATS (Nov 6 2026): You -> Chats list, the one-on-one chat, Message buttons. Uses the Updated theme variables (dark + light). */
/* You tabs: Posts | Chats, with a coral dot while something is unread */
.u-tabs .ch-tabdot{display:inline-block;width:7px;height:7px;margin-left:6px;border-radius:50%;background:#D93350;vertical-align:middle;position:relative;top:-1px}
/* the list */
.ch-h{padding:22px 20px 6px;font:600 13px/1.2 var(--u-f-b);letter-spacing:.04em;text-transform:uppercase;color:var(--u-mut)}
.ch-list{padding:4px 0 8px}
.ch-row{display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 20px;color:var(--u-ink);text-decoration:none;position:relative;-webkit-tap-highlight-color:transparent;transition:background .15s}
.ch-row+.ch-row:before{content:"";position:absolute;top:0;left:82px;right:20px;border-top:1px solid var(--u-line)}
.ch-row:active{background:var(--u-card)}
@media (hover:hover){.ch-row:hover{background:color-mix(in srgb,var(--u-card) 70%,transparent)}}
.ch-row:focus-visible{outline:2px solid #D93350;outline-offset:-2px;border-radius:12px}
.ch-row .u-face{flex:none}
.ch-rmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ch-rtop{display:flex;align-items:baseline;gap:10px}
.ch-rtop b{flex:1;min-width:0;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-rtop time{flex:none;font-size:13px;color:var(--u-mut);font-variant-numeric:tabular-nums}
.ch-rlast{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.35;color:var(--u-mut)}
.ch-rlast>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-row.un .ch-rlast{color:var(--u-ink)}
.ch-row.un .ch-rtop time{color:#D93350;font-weight:600}
.ch-dot{flex:none;width:9px;height:9px;border-radius:50%;background:#D93350}
.ch-none{padding:18px 20px;color:var(--u-mut);font-size:15px}
.ch-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:56px 32px 40px;gap:10px}
.ch-emi{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--u-card);color:var(--u-mut);margin-bottom:6px}
.ch-emi svg{width:26px;height:26px}
.ch-empty h2{font:600 20px/1.2 var(--u-f-d)}
.ch-empty p{max-width:290px;color:var(--u-mut);font-size:15px;line-height:1.45}
.ch-empty .u-btn{margin-top:10px}
/* Message on a Circle: Follow and Message side by side */
.u-prof .ch-ctas{display:flex;gap:10px;margin-top:18px}
.u-prof .ch-ctas .u-btn{margin-top:0;flex:1 1 0;min-width:0;padding:0 16px}
.ch-msgbtn svg{flex:none}
/* the chat: header */
.ch-bar{gap:2px;border-bottom-color:var(--u-line)}
.ch-who{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 6px;border-radius:12px;color:var(--u-ink);text-decoration:none}
.ch-who span{min-width:0;display:flex;flex-direction:column;gap:1px}
.ch-who b{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-who small{font-size:12.5px;color:var(--u-mut)}
.ch-who .u-face{flex:none}
/* the chat: thread (connected, X-style) */
.ch-vp{display:flex;flex-direction:column}
.ch-thread{margin-top:auto;padding:8px 20px 14px}
.ch-day{margin:14px 0 10px;text-align:center;font-size:12.5px;color:var(--u-mut)}
.ch-from{display:flex;align-items:center;gap:6px;width:fit-content;max-width:calc(100% - 48px);min-height:44px;margin:2px 0 12px 48px;padding:7px 14px;border:1px solid var(--u-line);border-radius:12px;background:var(--u-card);color:var(--u-mut);font-size:13.5px;text-decoration:none}
.ch-from span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-from svg{flex:none}
.ch-m{display:grid;grid-template-columns:36px 1fr;column-gap:12px;padding-top:6px;position:relative}
.ch-m.cont{padding-top:2px}
.ch-mav{position:relative;min-height:1px}
.ch-mav .u-face{display:grid}
.ch-m.join .ch-mav:after{content:"";position:absolute;left:17px;width:2px;top:42px;bottom:-2px;border-radius:2px;background:var(--u-line)}
.ch-m.cont.join .ch-mav:after{top:0}
.ch-mb{min-width:0;padding-bottom:10px}
.ch-mh{display:flex;align-items:baseline;gap:8px;margin:2px 0 3px}
.ch-mh b{font-size:15px;font-weight:600}
.ch-mh time{font-size:12.5px;color:var(--u-mut);font-variant-numeric:tabular-nums}
.ch-mt{font-size:16px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.ch-new{animation:ch-in .24s var(--u-ease,ease-out)}
@keyframes ch-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ch-new{animation:none}.ch-row{transition:none}}
.ch-note{margin:6px 0 4px;padding:14px 16px;border:1px solid var(--u-line);border-radius:16px;background:var(--u-card)}
.ch-note p{font-size:14.5px;line-height:1.45;color:var(--u-mut)}
.ch-note b{display:block;margin-bottom:3px;font-size:15px;color:var(--u-ink)}
/* the chat: the docked composer (and the request / waiting bars in its place) */
.ch-foot{flex:none;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--u-line);background:var(--u-bg);position:relative;z-index:3}
body.mk-typing .ch-foot,body.kb-up .ch-foot{padding-bottom:10px}
.ch-comp{display:flex;align-items:flex-end;gap:10px}
.ch-ta{flex:1;min-width:0;min-height:44px;max-height:124px;padding:11px 16px;border:1px solid var(--u-line2);border-radius:22px;background:var(--u-card);color:var(--u-ink);font:inherit;font-size:16px;line-height:20px;resize:none;overflow:hidden;outline:0;transition:border-color .15s}
.ch-ta.scroll{overflow-y:auto}
.ch-ta::placeholder{color:var(--u-mut)}
.ch-ta:focus{border-color:var(--u-mut)}
.u-app .ch-ta:focus-visible{outline:0;border-color:var(--u-ink);border-radius:22px}
.ch-send{flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:#D93350;color:#fff;cursor:pointer;transition:opacity .15s,transform .12s}
.ch-send:active{transform:scale(.94)}
.ch-send:disabled{opacity:.35;cursor:default;transform:none}
.ch-send:focus-visible{outline:2px solid #D93350;outline-offset:3px}
.ch-ask p,.ch-wait p{font-size:14.5px;line-height:1.45;color:var(--u-mut);padding:2px 6px 10px}
.ch-wait p{padding-bottom:4px;text-align:center}
.ch-askb{display:flex;gap:10px}
.ch-askb .u-btn{flex:1}
/* sheets */
.ch-sheetp{margin:2px 0 18px;font-size:15.5px;line-height:1.45;color:var(--u-mut)}
.ch-gap{margin-top:10px}
.ch-danger{background:transparent;color:#B3261E;border-color:color-mix(in srgb,#B3261E 55%,transparent)}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .ch-danger{color:#FF8C84;border-color:color-mix(in srgb,#FF8C84 55%,transparent)}}
html[data-theme=dark] .ch-danger{color:#FF8C84;border-color:color-mix(in srgb,#FF8C84 55%,transparent)}
.ch-sheet .u-row>svg{flex:none;width:22px;height:22px}
.ch-sheet .u-row small{display:block;margin-top:2px;font-size:13px;color:var(--u-mut);font-weight:400}
/* "About: <post>" above the box until you send; x drops the link */
.ch-about{display:flex;align-items:center;gap:6px;margin:0 0 8px;padding:0 0 0 14px;min-height:36px;border:1px solid var(--u-line);border-radius:12px;background:var(--u-card);color:var(--u-mut);font-size:13.5px}
.ch-about span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-aboutx{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:-4px 0;border:0;background:transparent;color:var(--u-mut);border-radius:12px;cursor:pointer}
.ch-aboutx svg{width:18px;height:18px}
.ch-empty>.u-face{margin:0 auto 14px}
/* Replies sheet: a private reply went to Chats (app/c34.js) */
.c34chatok{display:flex;align-items:center;gap:8px;margin:4px 0 14px;padding:6px 6px 6px 14px;border:1px solid var(--u-line);border-radius:14px;background:var(--u-card)}
.c34chatok p{flex:1;min-width:0;margin:0;font-size:.9375rem;line-height:1.35;color:var(--u-ink)}
.c34chatgo{flex:none;display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 8px 0 12px;border:0;border-radius:10px;background:transparent;color:var(--u-ink);font:inherit;font-size:.9375rem;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.c34chatgo:active{background:var(--u-card2)}
.c34chatgo:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.c34chatgo svg{width:18px;height:18px}
.c34switch[aria-disabled=true]{cursor:default}
.c34switch[aria-disabled=true] i{opacity:.55}
.c34hint.c34hint2{display:grid}
.c34hint2>span{grid-area:1/1;align-self:end}
.c34hint2>span.c34hx{visibility:hidden}
/* CHATS-Q (Nov 7): the reply box takes focus like the chat box: a calm ink border, not a 3 px blue ring that squares its corners */
.u-sheet.c34replies #c34ta:focus-visible{outline:0;border-color:var(--u-ink);border-radius:14px}
/* ===== TABLE + DAY-OF (Nov 7 2026, t1072u): what a chat is about, plans, day-of, hellos ===== */
/* list: the post's photo on the face, "Name · what it's about" */
.ch-rav{position:relative;flex:none;width:48px;height:48px}
.ch-rthumb{position:absolute;right:-5px;bottom:-5px;width:24px;height:24px;border-radius:7px;object-fit:cover;border:2px solid var(--u-bg);background:var(--u-card2)}
.ch-rtop b{flex:0 1 auto}
.ch-rabout{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:var(--u-mut)}
/* the card at the top */
.ch-tb{flex:none;margin:12px 16px 4px;border:1px solid var(--u-line);border-radius:18px;background:var(--u-card);overflow:hidden}
.ch-tbm{display:flex;align-items:center;gap:14px;padding:12px;color:var(--u-ink);text-decoration:none;min-height:96px}
.ch-tbm:active{background:var(--u-card2)}
.ch-tbm img,.ch-tbi{flex:none;width:72px;height:72px;border-radius:12px;object-fit:cover;background:var(--u-card2)}
.ch-tbi{display:grid;place-items:center;color:var(--u-mut)}
.ch-tbm>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.ch-tbm small{font-size:13px;color:var(--u-mut)}
.ch-tbm b{font-size:17px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ch-tw{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:14px;color:var(--u-ink)}.ch-tw svg{flex:none;width:16px;height:16px}
.ch-tw.ok svg{color:#3FA374}
.ch-tbgo{padding:0 12px 12px}
.ch-tbgo .u-btn{min-height:44px;gap:6px;padding:0 16px}
.ch-tbe{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 4px 0 14px;border-top:1px solid var(--u-line);font-size:13px;color:var(--u-mut)}
.ch-tbe button{display:flex;align-items:center;gap:2px;min-height:44px;padding:0 10px;border:0;background:transparent;color:var(--u-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;border-radius:10px}
.ch-tbe svg{width:16px;height:16px}
.u-app.ch-typing .ch-tb{display:none}
/* the compact bar: over the top of the thread once the card's title has scrolled away, or while typing */
.u-app[data-u="x-chat"]{position:relative}
.ch-tbar{position:absolute;left:0;right:0;z-index:4;display:none;align-items:center;gap:10px;min-height:52px;padding:6px 10px 6px 16px;border:0;border-bottom:1px solid var(--u-line);background:var(--u-bg);color:var(--u-ink);font:inherit;text-align:left;cursor:pointer;animation:ch-dn .18s var(--u-ease,ease-out)}
.ch-hastb.ch-tbaway .ch-tbar,.ch-hastb.ch-typing .ch-tbar{display:flex}
.ch-tbar img{flex:none;width:36px;height:36px;border-radius:8px;object-fit:cover}
.ch-tbar>span{flex:1;min-width:0;display:flex;flex-direction:column}
.ch-tbar b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-tbar small{font-size:13px;color:var(--u-mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-tbar>svg{flex:none;color:var(--u-mut);transform:rotate(90deg);margin-right:4px}
@keyframes ch-dn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
/* later posts: a small chapter card in the thread */
.ch-chap{display:flex;align-items:center;gap:10px;margin:14px 0 10px;padding:8px 12px 8px 8px;min-height:56px;border:1px solid var(--u-line);border-radius:12px;background:var(--u-card);color:var(--u-ink);text-decoration:none}
.ch-chap img,.ch-chapi{flex:none;width:40px;height:40px;border-radius:8px;object-fit:cover;background:var(--u-card2)}
.ch-chapi{display:grid;place-items:center;color:var(--u-mut)}
.ch-chap>span{min-width:0;display:flex;flex-direction:column}
.ch-chap small{font-size:12.5px;color:var(--u-mut)}
.ch-chap b{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* a chat with no post: who this is */
.ch-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:28px 16px 18px;margin-bottom:auto}
.ch-intro .u-face{margin-bottom:10px}
.ch-intro b{font:600 20px/1.2 var(--u-f-d,inherit)}
.ch-intro p{font-size:14px;color:var(--u-mut);line-height:1.4}
.ch-introbtn{margin-top:12px;min-height:44px;padding:0 20px}
.ch-thread:has(.ch-intro){display:flex;flex-direction:column;min-height:100%;margin-top:0}
/* quiet lines, status pills, links */
.ch-sys{margin:12px 0 10px;text-align:center;font-size:13px;color:var(--u-mut)}
.ch-st{display:inline-flex;align-items:center;gap:7px;margin:2px 0 2px;padding:6px 12px;border-radius:16px;background:var(--u-card2);font-size:15px;font-weight:600}
.ch-st svg{flex:none;width:16px;height:16px;color:#3FA374}
html[data-theme=light] .ch-st svg,html[data-theme=light] .ch-tw.ok svg,html[data-theme=light] .ch-pst.ok svg{color:#1F7A4A}
.ch-link{color:var(--u-ink);text-decoration:underline;text-decoration-color:var(--u-mut);text-underline-offset:3px;overflow-wrap:anywhere}
/* plans */
.ch-plan{margin:2px 0 2px;max-width:320px;padding:12px 14px;border:1px solid var(--u-line2);border-radius:14px}
.ch-pk{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--u-mut)}.ch-pk svg{width:16px;height:16px}
.ch-plan>b{display:block;margin:4px 0 2px;font-size:17px;font-weight:600}
.ch-pw{font-size:15px}.ch-pw span{color:var(--u-mut)}
.ch-pst{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:14px;color:var(--u-mut)}.ch-pst.ok{color:var(--u-ink)}.ch-pst svg{width:16px;height:16px;color:#3FA374}
.ch-pacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ch-pacts .u-btn{min-height:44px;padding:0 16px;flex:1 1 auto}
.ch-f{display:block;margin:0 0 12px}.ch-f span{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--u-mut)}
.ch-f input{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--u-line2);border-radius:12px;background:var(--u-card);color:var(--u-ink);font:inherit;font-size:16px;outline:0}
.ch-f input:focus{border-color:var(--u-ink)}
.ch-gap2{margin-top:6px}
/* day-of: four quiet buttons above the box on the day; hidden while typing */
.ch-dayof{margin:0 0 10px}
.ch-dayof p{display:flex;justify-content:space-between;gap:10px;margin:0 4px 8px;font-size:13.5px;color:var(--u-mut)}.ch-dayof p b{color:var(--u-ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-dayof div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ch-dayof button{min-height:48px;border:1px solid var(--u-line);border-radius:14px;background:var(--u-card);color:var(--u-ink);font:inherit;font-size:15.5px;font-weight:600;cursor:pointer}
.ch-dayof button:active{background:var(--u-card2)}
.u-app.ch-typing .ch-dayof{display:none}
/* the plan button and a calm grey Send until there's something to send */
.ch-plus{flex:none;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--u-line2);border-radius:50%;background:transparent;color:var(--u-ink);cursor:pointer}
.ch-plus:active{background:var(--u-card)}
.ch-send:disabled{opacity:1;background:var(--u-card2);color:var(--u-mut)}
/* hellos */
.ch-kthread{margin-top:0;padding-top:14px}
.ch-knock{border:1px solid var(--u-line);border-radius:18px;background:var(--u-card);overflow:hidden;padding-bottom:16px}
.ch-knock>*{margin-left:16px;margin-right:16px}
.ch-kwhy{margin-top:14px;margin-bottom:10px;font-size:14px;color:var(--u-mut)}
.ch-knock .ch-kab{display:flex;flex-direction:column;margin:0 0 4px;border-top:1px solid var(--u-line);border-bottom:1px solid var(--u-line);background:var(--u-bg);color:var(--u-ink);text-decoration:none}
.ch-kab img{width:100%;height:180px;object-fit:cover;object-position:center top}
.ch-kab span{display:flex;flex-direction:column;gap:2px;padding:10px 16px 12px}.ch-kab small{font-size:13px;color:var(--u-mut)}.ch-kab b{font-size:16px;font-weight:600}
.ch-kfrom{display:flex;align-items:center;gap:10px;margin-top:14px;margin-bottom:6px}.ch-kfrom span{display:flex;flex-direction:column}.ch-kfrom b{font-weight:600}.ch-kfrom small{font-size:13px;color:var(--u-mut)}
.ch-kt{font-size:18px;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}
.ch-knock.mine .ch-kt{margin-top:12px}
.ch-kctx{margin-top:10px;font-size:14px;color:var(--u-mut)}
.ch-knote{margin:14px 8px 0;text-align:center;font-size:14px;line-height:1.45;color:var(--u-mut)}
.ch-ask .ch-askb .u-btn{min-height:52px}
.ch-topic img{flex:none;width:44px;height:44px;border-radius:9px;object-fit:cover}
/* short phones: the day-of buttons stay 44px tall so more of the chat shows */
@media (max-height:720px){.ch-dayof div{gap:6px}.ch-dayof button{min-height:44px;font-size:15px}.ch-dayof p{margin-bottom:6px}}
/* R1 refine (Nov 7): */
.ch-rtop time{margin-left:auto}                                   /* the time always sits at the right edge of a row */
.ch-vp>.ch-tb{margin-top:auto}.ch-vp>.ch-tb~.ch-thread{margin-top:0} /* a short chat sits together at the bottom: card, then messages */
.ch-chap>span{flex:1}.ch-chap>svg{flex:none;width:16px;height:16px;color:var(--u-mut)}
.ch-st.way svg,.ch-st.here svg,.ch-st.late svg{color:var(--u-ink)}
html .ch-st.no svg,html[data-theme=light] .ch-st.no svg{color:var(--u-mut)}
.ch-dayof button{display:flex;align-items:center;justify-content:center;gap:7px}
.ch-dayof button svg{flex:none;width:17px;height:17px;color:var(--u-mut)}
.ch-dayof button[aria-pressed=true]{border:1.5px solid #D93350;background:var(--u-card2)}
.ch-dayof button[aria-pressed=true] svg{color:#D93350}
.ch-tw span,.ch-tbar small{white-space:nowrap}
.u-app.ch-typing .ch-vp>.ch-tb~.ch-thread{margin-top:auto} /* card steps aside while typing: messages stay down by the composer */
/* R2 refine (Nov 7): */
.ch-dayof .ch-daygrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ch-dayof .ch-dayset{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.ch-dayof .ch-dayset .ch-st{margin:0}
.ch-dayset button{min-height:44px;min-width:44px;padding:0 16px;border:1px solid var(--u-line);border-radius:22px;background:var(--u-card);color:var(--u-ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.ch-dayof.is-set:not(.open) .ch-daygrid{display:none}
.ch-dayof.is-set.open .ch-dayset{display:none}
@media (max-height:720px){.ch-dayof .ch-daygrid{gap:6px}}
/* "late" reads as a heads-up, not "all good": amber in both themes; on-my-way / here stay ink */
html .ch-st.way svg,html .ch-st.here svg,html[data-theme=light] .ch-st.way svg,html[data-theme=light] .ch-st.here svg{color:var(--u-ink)}
html .ch-st.late svg,.ch-dayof button[data-t="Running late"][aria-pressed=true] svg{color:#F5A524}
html[data-theme=light] .ch-st.late svg,html[data-theme=light] .ch-dayof button[data-t="Running late"][aria-pressed=true] svg{color:#B45309}
html .ch-st.no svg,html[data-theme=light] .ch-st.no svg{color:var(--u-mut)}
/* plan sheet: disabled Send reads as a dimmed primary; coral focus ring on fields */
.ch-plansheet [data-pf=send]:disabled{background:#D93350;color:#fff;opacity:.4}
.ch-f input:focus-visible,.ch-f input:focus{border-color:#D93350;box-shadow:0 0 0 1px #D93350}
/* hello/Circle chats: intro sits with the messages at the bottom, like the card */
.ch-intro{margin-bottom:0;margin-top:auto;padding-bottom:24px}
/* card text keeps clear of the right edge; the row "·" sits evenly */
.ch-tbm>span{padding-right:4px}
.ch-rabout{margin-left:-6px}
/* R2b (Claude max round 2): */
.ch-kctx{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ch-kview{display:inline-flex;align-items:center;gap:2px;min-height:44px;margin:-10px 0;color:var(--u-ink);font-weight:600;text-decoration:none}
.ch-kview svg{width:16px;height:16px;color:var(--u-mut)}
.ch-chap{margin-left:-4px;margin-right:-4px}
.ch-plus:focus-visible,.ch-send:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* R3 polish (Nov 7): */
/* list headings: sentence case, Figtree 600 at 14px with no tracking (tracking is for caps only) */
.ch-h{padding:22px 20px 6px;font:600 14px/1.25 var(--u-f-b);letter-spacing:0;text-transform:none;color:var(--u-mut)}
/* "You're going" chip: pressed look, tap to change */
.ch-tbgo .ch-goon{border-color:transparent;background:var(--u-card2)}
.ch-tbgo .ch-goon svg{color:#3FA374}html[data-theme=light] .ch-tbgo .ch-goon svg{color:#1F7A4A}
.ch-gopt{width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.ch-gopt span{display:flex;flex-direction:column;gap:2px}.ch-gopt small{font-size:13px;color:var(--u-mut);font-weight:400}
.ch-gopt svg{flex:none;width:18px;height:18px;color:#3FA374}html[data-theme=light] .ch-gopt svg{color:#1F7A4A}
/* the slim bar opens the card in place */
.ch-tbpop{position:absolute;left:0;right:0;z-index:5;padding:0 0 10px;background:var(--u-bg);box-shadow:0 14px 24px -14px rgba(0,0,0,.45);animation:ch-pop .18s ease-out}
.ch-tbpop .ch-tb{margin-top:8px}
@keyframes ch-pop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ch-tbpop{animation:none}}
.ch-tbopen .ch-tbar{display:flex}.ch-tbar>svg{transition:transform .18s}.ch-tbopen .ch-tbar>svg{transform:rotate(-90deg)}
.u-app.ch-typing .ch-tbpop{display:none}
/* hello you sent: waiting composer */
.ch-wait .ch-ta:disabled{opacity:1;background:var(--u-card2);color:var(--u-mut);border-color:transparent}
.ch-wait .ch-ta:disabled::placeholder{color:var(--u-mut)}
.ch-waitl{margin-top:14px}
/* KEYBOARD MOTION (Nov 7): while the keyboard slides, the composer and the chat move with transform only (see motion() in chats.js) */
.u-app.ch-kbmove{flex:none}
.u-app.ch-kbmove>.u-bar{position:relative;z-index:6;background:var(--u-bg)}
.u-app.ch-kbmove .ch-foot{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
.u-app.ch-kbmove .ch-foot,.u-app.ch-kbmove>.u-vp{will-change:transform}
/* opening: the card and the day-of buttons fade out in place (no reflow until the keyboard has settled) */
.u-app.ch-kbopen.ch-typing .ch-tb,.u-app.ch-kbopen.ch-typing .ch-dayof{display:block;opacity:0;transition:opacity .16s ease-out;pointer-events:none}
.u-app.ch-kbopen.ch-typing .ch-vp>.ch-tb~.ch-thread{margin-top:0}
/* closing: they fade back in as the chat slides down */
.u-app.ch-kbclose .ch-tb,.u-app.ch-kbclose .ch-dayof{animation:ch-fade .22s ease-out}
@keyframes ch-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.u-app.ch-kbopen.ch-typing .ch-tb,.u-app.ch-kbopen.ch-typing .ch-dayof{transition:none}.u-app.ch-kbclose .ch-tb,.u-app.ch-kbclose .ch-dayof{animation:none}}
/* the day-of buttons leave the flow at once while they fade, so the chat can follow the composer in one move */
.u-app.ch-kbopen.ch-typing .ch-dayof{position:absolute;left:12px;right:12px;bottom:100%;margin:0}
/* while the chat slides, the screen keeps its full height so nothing is clipped mid-slide (K1 sets the short height when the keyboard settles) */
.screen:has(>.u-app.ch-kbmove){height:100dvh!important}
/* closing: the Let-X-know buttons come back only once the composer has made room for them, and the bar behind them stays
   see-through meanwhile, so the last message is never covered on the way down */
.u-app.ch-kbclose .ch-dayof{animation:ch-fade .2s ease-out .15s both}
.u-app.ch-kbclose .ch-foot{background:transparent;border-top-color:transparent}
.u-app.ch-kbclose .ch-comp{background:var(--u-bg);box-shadow:0 0 0 12px var(--u-bg)}
.u-app .ch-foot{transition:border-color .2s ease-out}
.u-app.ch-kbopen.ch-typing .ch-dayof{transition-duration:.07s}
@media (prefers-reduced-motion:reduce){.u-app.ch-kbclose .ch-dayof{animation:none}}
/* R4 (Nov 7): posts without a photo get a tile: a coral quote mark centred on the photo's grey square (emoji-only posts: their emoji) */
.ch-tile{flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box;padding:0;background:var(--u-card2);color:#D93350;line-height:1}
.ch-tile>i{display:block;line-height:0}
.ch-tile>i svg{display:block;width:15px;height:auto;transform:translateY(-1px)}
.ch-tile.emo>span{display:block;font-size:20px;line-height:1}
html[data-theme=light] .ch-tile{color:#C42A47}
/* sizes: each spot keeps its photo's size and corner */
.ch-tbm>span.ch-tile{display:flex;flex:none;width:72px;height:72px;border-radius:12px;padding:0;gap:0}
.ch-tbm>span.ch-tile>i svg{width:24px}
.ch-tbm>span.ch-tile.emo>span{font-size:32px}
.ch-chap>span.ch-tile{flex:none;width:40px;height:40px;border-radius:8px}
.ch-chap>span.ch-tile>i svg{width:14px}
.ch-tbar>span.ch-tile{display:flex;flex:none;width:36px;height:36px;border-radius:8px}
.ch-tbar>span.ch-tile>i svg{width:13px}
.ch-tbar>span.ch-tile.emo>span{font-size:18px}
a.ch-topic>span.ch-tile{display:flex;flex:none!important;width:44px!important;height:44px;min-width:0;border-radius:9px;margin:0}
/* the slim bar lines up with the chat below it: tile over the avatars (20 px), title over the message text (68 px) */
.ch-tbar{padding-left:20px;gap:12px}
/* Polish R1 (Nov 7): an unread time in coral reads at ≥4.5:1 on the light background (#D93350 was 4.1:1) */
html[data-theme=light] .ch-row.un .ch-rtop time{color:#C42A47}
/* the unread dot sits beside "Chats", so the tab's underline is as wide as the word */
.u-tabs .ch-tabdot{position:absolute;left:calc(100% + 5px);top:calc(50% - 3.5px);margin:0}
/* a focus ring only for keyboard focus, in the house coral, inside the card's corner */
.ch-tbe button:focus{outline:none}
.ch-tbe button:focus-visible{outline:2px solid #D93350;outline-offset:-2px;border-radius:8px}
/* Polish R2 (Nov 7) */
.ch-empty p{text-wrap:balance} /* centred notes end on a full last line, not one lonely word */
html .ch-tbe button:focus-visible{outline:2px solid #D93350;outline-offset:-3px;border-radius:10px}
html:not([data-theme=light]) .ch-tbe button:focus-visible{outline-color:#FF6F86}
html:not([data-theme=light]) .ch-tile{background:#2C3034} /* the quote square shows on the dark card */
.ch-chap{margin-top:7px;margin-bottom:14px} /* even space above and below the "brought this up" chip (was 27 / 16) */
/* Polish R4 */
.ch-knock{margin-left:-4px;margin-right:-4px} /* hello card lines up with the other in-thread cards (16 px) */
.ch-introbtn{min-height:48px} /* same height as the other screen buttons */
.ch-plan{padding-bottom:14px}
.ch-tbe{padding-right:6px} /* "2 on the table" chevron lines up with the chip chevron below */
