/* 10.2 (15 Nov 2026): the composer's bottom row (What to make, Agent, Options at phone width), agent reply formatting, starter
   thumbnails and the read-only old chat. Colours only from theme tokens; the menu is a .composer-menu (the shared floating
   elevation); selected items are the flat --sel-* family; nothing here is a shadow, a one-sided edge or a private tint. */

/* ---- the row: quiet pills that never wrap the row or push the message box */
.cc-wrap{position:static;display:inline-flex;align-items:center;gap:2px;min-width:0;flex:0 1 auto}
.cc-wrap[hidden]{display:none}
.cc-trigger{min-width:0;max-width:340px}
.cc-trigger[hidden],.cc-static[hidden]{display:none}
.cc-trigger .cc-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cc-trigger .cc-credits{color:var(--ink-3);font-weight:400;white-space:nowrap}
.cc-trigger .cc-credits:empty{display:none}
.cc-trigger .cc-credits::before{content:"· ";color:var(--ink-3)}
.cc-trigger[data-choice="image"],.cc-trigger[data-choice="video"]{color:var(--ink)}
.cc-static{display:inline-flex;align-items:center;height:30px;padding:0 10px;color:var(--ink-3);font:400 12.5px/1 var(--ui);white-space:nowrap;cursor:default}
.cc-options{display:none}

/* ---- the menu: opens upward over the messages, anchored to the row, so opening and choosing never moves anything */
.cc-menu{left:0;bottom:calc(100% + 10px);min-width:300px;max-width:min(380px,calc(100vw - 32px));max-height:min(62vh,560px);overflow-y:auto;overscroll-behavior:contain}
.cc-menu[hidden]{display:none}
.cc-menu .cc-item{gap:2px}
.cc-menu .cc-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%}
.cc-menu .cc-item-name{font-weight:500;color:var(--ink)}
.cc-menu .cc-item-credits,.cc-menu .cc-item-value{flex:none;font-size:11.5px;font-weight:400;color:var(--ink-3);white-space:nowrap}
.cc-menu .cc-chev{margin-left:6px;color:var(--ink-3)}
.cc-menu .cc-item[aria-checked="true"]{background:var(--sel-fill);color:var(--sel-ink);font-weight:var(--sel-weight)}
.cc-menu .cc-item[aria-checked="true"] .cc-item-name{color:var(--sel-ink)}
.cc-menu .cc-back .cc-item-name{color:var(--ink-2);font-weight:500}
.cc-menu .cc-group{border-top:1px solid var(--hair-soft);margin-top:4px;padding-top:2px}
.cc-menu .cc-group:first-of-type{border-top:0}
.cc-menu .cc-shapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:0 4px 4px}
.cc-menu .cc-shapes .cc-item{align-items:center;text-align:center;padding:8px 4px}
.cc-menu .cc-shapes .cc-item-top{justify-content:center}
.cc-menu .cc-stepper{display:flex;align-items:center;gap:8px;padding:4px 11px 6px}
.cc-menu .cc-step{width:34px;height:32px;padding:0;align-items:center;justify-content:center;border:1px solid var(--hair-2);border-radius:8px;font-size:16px;flex-direction:row}
.cc-menu .cc-step[aria-disabled="true"]{color:var(--ink-3);cursor:default;opacity:.5}
.cc-menu .cc-length{min-width:44px;text-align:center;font:600 13px/1 var(--ui);color:var(--ink)}
.cc-menu .cc-range{margin-left:auto;font-size:11px;color:var(--ink-3)}
.cc-menu .cc-total{margin:2px 11px 8px;font:500 12px/1.4 var(--ui);color:var(--ink-2)}
.cc-menu .cc-static-line{display:flex;justify-content:space-between;gap:12px;margin:0;padding:9px 11px;font:400 12.5px/1.35 var(--ui);color:var(--ink-3)}
.cc-menu .cc-static-line span:first-child{color:var(--ink);font-weight:500}

/* ---- at phone width the two controls sit inside one "Options" control that opens the same menus */
@media(max-width:600px){
 .cc-wrap .cc-trigger:not(.cc-options),.cc-wrap .cc-static{display:none}
 .cc-wrap .cc-options{display:inline-flex}
 .cc-wrap .cc-options[hidden]{display:none}
 .cc-menu{min-width:0;width:calc(100vw - 32px);max-width:none;left:-8px}
}

/* ---- the choice under a sent message: one small chip, not words */
.cc-sent-chip{display:inline-flex;margin:6px 0 0;padding:3px 9px;border:1px solid var(--hair-2);border-radius:999px;font:500 11px/1.4 var(--ui);color:var(--ink-2);background:var(--surface)}

/* ---- agent replies: one comfortable gap between paragraphs, lists read as lists, never stacked blank lines */
.message-text.reply-format{white-space:normal}
.message-text.reply-format>p{margin:0 0 .65em}
.message-text.reply-format>p:last-child,.message-text.reply-format>ul:last-child,.message-text.reply-format>ol:last-child{margin-bottom:0}
.message-text.reply-format>ul,.message-text.reply-format>ol{margin:0 0 .65em;padding-left:1.35em}
.message-text.reply-format li{margin:0 0 .3em}
.message-text.reply-format li:last-child{margin-bottom:0}
.message-text.reply-format strong{font-weight:600;color:var(--ink)}

/* ---- starters: a picture at the LEFT of each card, as tall as the card's content area (square, rounded like the product tiles),
   with the title and its line to its right. The card keeps exactly the size it has without the picture: the page measures each card
   without it, fixes that height (--starter-h) and the picture's side (--starter-thumb), and the words wrap and are clamped to fit. */
.starter-prompts button.has-thumb{position:relative;--starter-h:auto;--starter-thumb:40px;--starter-pad:17px;--starter-padtop:15px;--starter-lines:2}
.starter-prompts.is-fitted button.has-thumb{height:var(--starter-h);padding-left:calc(var(--starter-pad,17px) + var(--starter-thumb) + 11px);overflow:hidden}
.starter-prompts .starter-thumb{display:none}
.starter-prompts.is-fitted .starter-thumb{display:flex;position:absolute;left:var(--starter-pad,17px);top:var(--starter-padtop,15px);width:var(--starter-thumb);height:var(--starter-thumb);border-radius:10px;overflow:hidden;background:var(--paper-2);border:1px solid var(--hair-2);align-items:center;justify-content:center}
.starter-prompts .starter-thumb img,.starter-prompts .starter-thumb .placeholder{width:100%;height:100%;object-fit:cover;display:block}
.starter-prompts .starter-thumb .placeholder{font-size:0}
.starter-prompts .starter-thumb>svg{width:46%;height:46%;stroke:var(--ink-3);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.starter-prompts .starter-thumb.is-wide img{object-position:50% 30%}
.starter-prompts .starter-thumb .starter-play{position:absolute;right:4px;bottom:4px;width:16px;height:16px;border-radius:50%;background:var(--surface);display:flex;align-items:center;justify-content:center}
.starter-prompts .starter-thumb .starter-play svg{width:8px;height:8px;fill:var(--ink);stroke:none}
.starter-prompts .starter-copy{display:flex;flex-direction:column;gap:inherit;min-width:0;color:var(--ink);font-size:inherit;font-weight:inherit}
.starter-prompts .starter-title{color:var(--ink);font-size:inherit;font-weight:inherit}
.starter-prompts .starter-copy>span:not(.starter-title){color:var(--ink-3);font-weight:400}
.starter-prompts.is-fitted .starter-title,.starter-prompts.is-fitted .starter-copy>span:not(.starter-title){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
/* 10.5: the title takes one line; workspace.js fitStarters shows the shorter title where the full one does not fit whole. */
.starter-prompts.is-fitted .starter-title{-webkit-line-clamp:1;flex:none}
.starter-prompts.is-fitted .starter-copy>span:not(.starter-title){-webkit-line-clamp:var(--starter-lines,2)}
@media(max-width:740px){.starter-prompts.is-fitted .starter-thumb{border-radius:8px}.starter-prompts.is-fitted button.has-thumb{padding-left:calc(var(--starter-pad,12px) + var(--starter-thumb) + 8px)}.starter-prompts .starter-thumb .starter-play{width:13px;height:13px;right:3px;bottom:3px}}

/* ---- an old chat: read-only for model work; Edit, Download, the 4K queue and logo edits stay */
.chat-read-only [data-native-edit-output],.chat-read-only [data-prompt-edit],.chat-read-only [data-person-edit]{display:none}

/* ---- attachments from the uploads module that are not reference chips yet (uploading, checking, refused, videos) */
.cc-attachments{display:flex;flex-wrap:wrap;gap:6px;margin:2px 2px 6px}
.cc-attachments[hidden]{display:none}
.cc-att{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;padding:0 4px 0 10px;border:1px solid var(--hair-2);border-radius:999px;font:500 11.5px/1 var(--ui);color:var(--ink-2);background:var(--surface)}
.cc-att.is-refused{border-color:var(--status-error);color:var(--status-error)}
.cc-att-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:220px}
.cc-att-state{color:var(--ink-3);font-weight:400;white-space:nowrap}
.cc-att.is-refused .cc-att-state{color:inherit;white-space:normal}
.cc-att-remove{width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:var(--ink-3);cursor:pointer;font-size:14px;line-height:1}
.cc-att-remove:hover{background:var(--hover-fill);color:var(--ink)}
