/* Functional flow feedback. Proposed card compositions remain in review. */
.history-list .history-item.current{background:#f4f4f3;color:var(--ink);box-shadow:inset 3px 0 0 var(--ink),inset 0 0 0 1px #c8c8c5;font-weight:600;border-radius:9px}
.history-list .history-item.current:hover{background:#ececeb;color:var(--ink)}
.user-message-content{display:flex;align-items:baseline;justify-content:flex-end;gap:14px;min-width:0}
.user-message-content>p{min-width:0;margin:0;overflow-wrap:anywhere}
.user-bubble .user-message-edit{flex:none;display:inline-flex;align-items:center;gap:5px;margin:0;padding:4px 0;font-size:11px;white-space:nowrap}
.user-message-edit svg{width:12px;height:12px}
.understood-brand{margin-top:17px}
.understood-brand .understood-colors{margin-top:12px}
.understood-pairings{display:flex;flex-wrap:wrap;gap:12px}
.understood-pairing{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px 10px;min-width:150px;padding:11px;border:1px solid var(--line);border-radius:10px;background:white}
.understood-pairing>span{grid-column:1/-1;font-size:10px;color:var(--muted)}
.understood-pairing>strong{font-size:11px;font-weight:500}
.pairing-swatches{display:flex;border:1px solid #00000020;border-radius:5px;overflow:hidden}
.pairing-swatches i{width:23px;height:26px}
.understood-edit{margin-top:12px;font-size:11px}
.reference-selection-count{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:11px;line-height:1.5;margin:10px 0 17px}
.reference-selection-count strong{font-size:12px;color:var(--ink);font-weight:600}
.reference-selection-count>span{color:var(--muted)}
.reference-scope-note{max-width:600px;margin:-6px 0 18px;color:var(--muted);font-size:11px;line-height:1.6}
.ref-card.selection-unavailable .ref-image-button,.ref-card.selection-unavailable .ref-body{opacity:.45}
.ref-card.selection-unavailable .ref-checkbox{opacity:.35;cursor:default}
.library-selection-actions{align-items:center;justify-content:space-between;gap:14px}
.library-selection-actions .reference-selection-count{margin:0;display:grid;gap:2px}
.library-selection-actions>.button{flex:none}
.composer .attach-button:disabled{opacity:.4;cursor:default}
.handoff-color-groups{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px}
.handoff-color-group{display:grid;gap:10px;flex:1 1 170px;max-width:290px;padding:16px;border:1px solid var(--line);border-radius:14px}
.color-group-label{font-size:11px;color:var(--muted)}
.color-group-swatches{display:flex;min-height:68px;border:1px solid #0000001a;border-radius:8px;overflow:hidden}
.color-group-swatches>i{flex:1}
.handoff-color-group>strong{font-size:12px;font-weight:500}
.handoff-color-groups>.handoff-palette{flex-basis:100%;margin-top:0}
.expanded-handoff .handoff-agent-footer{align-items:center;gap:24px}
.expanded-handoff .handoff-agent-card{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:15px;flex:1 1 360px;border-radius:16px}
.expanded-handoff .handoff-agent-symbol{width:34px;height:34px;border-radius:10px}
.expanded-handoff .handoff-agent-symbol>svg{width:17px;height:17px}
.expanded-handoff .handoff-agent-heading{min-height:25px}
.expanded-handoff .handoff-agent-heading>h2{font-size:22px}
.expanded-handoff .handoff-agent-card .agent-link.compact{margin-top:7px;padding:2px 4px 2px 9px}
.handoff-add-details{flex:0 1 235px;margin-left:auto;display:grid;gap:10px}
.handoff-add-details>p{font-size:11px;color:var(--muted);line-height:1.5}
.expanded-handoff .handoff-add-details .handoff-return-button{min-height:50px;width:100%;font-size:13px}
.handoff-additional-sheet>.handoff-body-copy{margin-top:20px;max-width:700px}
.handoff-additional-sheet .handoff-section-heading>span{font-size:11px;color:var(--muted)}
.handoff-bottom>.button:last-child{margin-left:auto}
@media(max-width:640px){
 .user-message-content{gap:9px}
 .user-bubble .user-message-edit{font-size:10px}
 .understood-pairing{flex:1 1 145px;min-width:0}
 .understood-pairings{gap:8px}
 .reference-selection-count{font-size:10px;gap:3px 10px}
 .reference-selection-count strong{font-size:11px}
 .reference-scope-note{font-size:10px}
 .handoff-color-group{max-width:none;flex-basis:140px}
 .expanded-handoff .handoff-agent-content{display:contents}
 .expanded-handoff .handoff-agent-card .agent-link.compact{margin-top:0;grid-column:1/-1;padding:5px}
 .expanded-handoff .handoff-agent-card .agent-link.compact input{min-height:32px}
 .handoff-add-details{flex-basis:100%;width:100%}
 .handoff-add-details>p{margin:0}
 .expanded-handoff .handoff-add-details .handoff-return-button{max-width:none}
}

/* Welcome alignment and interactive prompts. */
.welcome-screen .workspace{display:flex;flex-direction:column;justify-content:center;padding-block:40px}
.welcome-screen .welcome-title-restored{width:100%;margin-block:0}
.welcome .starter{padding-inline:14px;border-radius:0;transition:background .16s,color .16s}
.welcome .starter svg{transition:transform .16s,color .16s}
.welcome .starter:is(:hover,:focus-visible){background:#ebebeb;color:var(--ink)}
.welcome .starter:is(:hover,:focus-visible) svg{color:var(--ink);transform:translateX(4px)}
.welcome .starter:active{background:#dedede}
/* Place collapsed-menu labels beside their icons. */
.nav-collapsed .sidebar [data-tooltip]:after{left:calc(100% + 14px);right:auto;top:50%;bottom:auto;transform:translate(4px,-50%);z-index:90}
.nav-collapsed .sidebar [data-tooltip]:is(:hover,:focus-visible):after{transform:translate(0,-50%)}
@media(max-width:640px){
 .welcome-screen .workspace{padding-top:110px;padding-bottom:32px}
 .nav-collapsed .sidebar [data-tooltip]:after{left:50%;top:calc(100% + 12px);transform:translate(-50%,-4px)}
 .nav-collapsed .sidebar [data-tooltip]:is(:hover,:focus-visible):after{transform:translate(-50%,0)}
 .nav-collapsed .sidebar .settings-toggle[data-tooltip]:after{left:auto;right:0;transform:translateY(-4px)}
 .nav-collapsed .sidebar .settings-toggle[data-tooltip]:is(:hover,:focus-visible):after{transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){.welcome .starter,.welcome .starter svg,.nav-collapsed .sidebar [data-tooltip]:after{transition:none}.welcome .starter:is(:hover,:focus-visible) svg{transform:none}}

/* Example prompts share the input space without becoming draft content. */
.welcome .composer-input{position:relative;display:grid;flex:1;min-width:0;font-size:calc(20px * var(--scale));line-height:30px}
.welcome .composer-input textarea{grid-area:1/1;width:100%;min-height:100%;font-size:inherit;line-height:inherit}
.welcome .composer-example-space,.welcome .composer-example{grid-area:1/1;padding:11px 0;font-size:inherit;line-height:inherit;overflow-wrap:anywhere;white-space:pre-wrap;pointer-events:none}
.welcome .composer-example-space{visibility:hidden}
.welcome .composer-example{align-self:center;color:var(--muted);visibility:hidden}
.welcome .composer-input.has-example .composer-example{visibility:visible}
.composer-example-cursor{display:inline-block;width:1px;height:1em;margin-left:2px;vertical-align:-.12em;background:currentColor}
.composer-example-cursor[hidden]{display:none}
@media(max-width:640px){.welcome .composer-input{font-size:calc(15px * var(--scale));line-height:24px}}

/* Completion actions stay together with a quiet brief action. */
.handoff-card .handoff-bottom{justify-content:flex-end;gap:15px;flex-wrap:wrap}
.handoff-card .handoff-bottom>.button{margin-left:0}
.handoff-card .handoff-bottom>.handoff-brief-link{min-height:44px;padding:0;border:0;background:transparent;text-decoration:none;white-space:nowrap}
.handoff-card .handoff-bottom>.handoff-brief-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:4px}
.agent-link.compact .agent-link-open,.expanded-handoff .handoff-agent-card .agent-link-open{padding:0;border:0;border-radius:0;background:transparent;text-decoration:underline;text-underline-offset:4px}
.agent-link.compact .agent-link-open:hover,.expanded-handoff .handoff-agent-card .agent-link-open:hover{background:transparent}
