/* A single gallery for hover and click, with the agent app separate from the workspace. */
.concept-8 .c8-viewer { position: fixed; inset: 0; z-index: 80; width: min(1560px, calc(100vw - 96px)); max-width: 1560px; height: min(900px, calc(100dvh - 96px)); border: 0; border-radius: 16px; background: #202630; box-shadow: 0 32px 90px #10172155; }
.concept-8 .c8-viewer[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
.concept-8 .c8-viewer-head { padding: 14px 24px; }
.concept-8 .c8-viewer-head > img { box-sizing: content-box; padding: 8px; width: 26px; height: 26px; background: #f0f3f5; border: 1px solid #e2e7ec; border-radius: 12px; }
.concept-8 .c8-viewer-body { display: grid; grid-template-columns: clamp(260px, 21vw, 300px) minmax(0, 1fr); min-height: 0; }
.concept-8 .c8-viewer-agent { display: flex; flex-direction: column; padding: 22px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fafbfc; border-right: 1px solid #c5ced8; }
.concept-8 .c8-gallery-agent-title { padding-bottom: 16px; }
.concept-8 .c8-gallery-agent-logos { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.concept-8 .c8-gallery-agent-logos img { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.concept-8 .c8-gallery-agent-title strong { display: block; font-size: 15px; font-weight: 550; letter-spacing: -.025em; }
.concept-8 .c8-gallery-agent-title > span { display: block; font-size: 11px; color: #78818d; margin-top: 4px; }
.concept-8 .c8-gallery-connected { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 5px 8px; border: 1px solid #dfe5e3; border-radius: 6px; font-size: 10px; line-height: 1.4; color: #52665c; background: #f3f6f4; }
.concept-8 .c8-gallery-connected > span { width: 5px; height: 5px; background: #628573; border-radius: 50%; }
.concept-8 .c8-gallery-conversation { padding: 25px 0 22px; }
.concept-8 .c8-gallery-request { padding: 12px 15px; margin-left: 20px; background: #eceef1; border: 0; border-radius: 15px 15px 4px 15px; }
.concept-8 .c8-viewer #c8-dialog-prompt { font-size: 13px; font-weight: 400; line-height: 1.65; margin: 0; }
.concept-8 .c8-gallery-reply { margin: 26px 0 0; }
.concept-8 .c8-gallery-reply > span { display: block; font-size: 12px; color: #202630; font-weight: 600; }
.concept-8 .c8-gallery-tool-use { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #717b85; font-size: 10px; }
.concept-8 .c8-gallery-tool-use svg { color: #628573; flex-shrink: 0; }
.concept-8 .c8-gallery-tool-use > span { margin-left: auto; }
.concept-8 #c8-dialog-answer { margin-top: 12px; font-size: 13px; color: #414b57; line-height: 1.75; }
.concept-8 .c8-gallery-result { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid #dbe1e7; border-radius: 10px; background: #fff; transition: border-color .18s,background .18s; }
.concept-8 .c8-gallery-result > img { width: 18px; height: 18px; flex-shrink: 0; }
.concept-8 .c8-gallery-result > span:nth-child(2) { flex: 1; min-width: 0; }
.concept-8 .c8-gallery-result strong { display: block; font-size: 11px; font-weight: 550; line-height: 1.4; }
.concept-8 .c8-gallery-result small { display: block; margin-top: 3px; font-size: 10px; color: #7b8490; }
.concept-8 .c8-gallery-result > span:last-child { font-size: 16px; color: #7b8490; }
.concept-8 .c8-gallery-result:hover { border-color: #99a7b6; background: #f7f9fb; }
.concept-8 .c8-gallery-composer { flex-shrink: 0; margin-top: auto; padding: 13px; border: 1px solid #d7dee5; border-radius: 14px; background: #fff; color: #929ba5; box-shadow: 0 2px 6px #20263005; font-size: 12px; }
.concept-8 .c8-gallery-composer > div { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 21px; line-height: 1; }
.concept-8 .c8-gallery-send { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #202630; color: #fff; font-size: 17px; }
.concept-8 .c8-viewer-workspace { display: grid; grid-template-rows: auto minmax(0,1fr); min-height: 0; min-width: 0; background: #e7ebef; }
.concept-8 .c8-gallery-workspace-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 24px 0; font-size: 11px; color: #465466; }
.concept-8 .c8-viewer #c8-dialog-response { font-size: 10px; color: #596778; text-align: right; margin: 0; }
.concept-8 .c8-viewer-canvas { padding: 20px 24px 24px; }
.concept-8 .c8-viewer #c8-dialog-image { width: auto; height: auto; max-width: 100%; max-height: 100%; min-width: 0; object-fit: contain; border: 0; box-shadow: 0 6px 24px #243a5214; filter: none; border-radius: 6px; }
.concept-8 .c8-gallery-nav { min-width: 0; background: #fff; border-top: 1px solid #cbd4de; padding: 14px 24px 10px; }
.concept-8 .c8-gallery-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.concept-8 .c8-gallery-browse { display: flex; align-items: baseline; gap: 12px; }
.concept-8 .c8-gallery-browse strong { font-size: 13px; font-weight: 500; letter-spacing: -.015em; }
.concept-8 #c8-gallery-count { font-size: 10px; color: #7c8693; }
.concept-8 .c8-gallery-search { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 12px; border: 1px solid #e0e5eb; background: #f6f7f8; border-radius: 20px; color: #7e8996; }
.concept-8 .c8-gallery-search:focus-within { outline: 2px solid #6682a2; outline-offset: 2px; }
.concept-8 .c8-gallery-search input { width: 160px; height: 32px; border: 0; background: transparent; border-radius: 20px; padding: 6px 12px 6px 0; font-size: 11px; color: #191b22; box-shadow: none; outline: none; }
.concept-8 .c8-gallery-toolbar button { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #e0e5eb; border-radius: 50%; background: #fff; font-size: 16px; transition: background-color 120ms; }
.concept-8 .c8-gallery-toolbar button:hover { background: #eef1f4; }
.concept-8 .c8-gallery-strip { display: flex; position: relative; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d6dde4 transparent; padding: 4px 0 7px; }
.concept-8 .c8-gallery-strip button { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 8px; flex: 0 0 108px; min-height: 96px; padding: 10px 7px 8px; border: 1px solid transparent; border-radius: 14px; background: transparent; font-size: 10px; line-height: 1.3; color: #75808e; scroll-snap-align: center; transition: background-color 120ms, color 120ms, border-color 120ms; }
.concept-8 .c8-gallery-strip button[hidden] { display: none; }
.concept-8 .c8-gallery-strip button:hover { background: #f6f7f8; color: #233447; }
.concept-8 .c8-gallery-strip button[aria-pressed="true"] { background: #eaf0f5; color: #223c58; border-color: #cbd8e4; }
.concept-8 .c8-gallery-strip img { box-sizing: content-box; width: 26px; height: 26px; padding: 9px; flex-shrink: 0; border-radius: 12px; background: #f0f3f5; border: 1px solid #e2e7eb; }
.concept-8 .c8-gallery-strip button[aria-pressed="true"] img { background: #fff; border-color: #d1dde7; box-shadow: 0 3px 7px #2447630d; }
.concept-8 .c8-gallery-strip button:focus-visible { outline: 2px solid #6682a2; outline-offset: -2px; }
.concept-8 #c8-gallery-empty { font-size: 12px; color: #626777; padding: 12px 0 20px; }
@media (max-width: 1000px) {
 .concept-8 .c8-viewer { width: calc(100vw - 32px); height: calc(100dvh - 32px); }
 .concept-8 .c8-viewer-body { grid-template-columns: 240px minmax(0,1fr); }
 .concept-8 .c8-viewer-agent { padding: 18px; }
 .concept-8 .c8-gallery-workspace-label { padding: 12px 14px 0; }
 .concept-8 .c8-viewer #c8-dialog-response { display: none; }
 .concept-8 .c8-viewer-canvas { padding: 14px; }
 .concept-8 .c8-gallery-request { padding: 13px; margin-left: 8px; }
}
@media (max-width: 640px) {
 .concept-8 .c8-viewer { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 14px; }
 .concept-8 .c8-viewer-head { padding: 10px; gap: 8px; }
 .concept-8 .c8-viewer-head > img { width: 22px; height: 22px; padding: 6px; border-radius: 9px; }
 .concept-8 .c8-viewer-head h2 { font-size: 17px; }
 .concept-8 .c8-viewer-head p { display: none; }
 .concept-8 .c8-viewer-controls { gap: 4px; }
 .concept-8 .c8-viewer-controls button { width: 32px; height: 32px; }
 .concept-8 .c8-viewer-body { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
 .concept-8 .c8-viewer-workspace { order: -1; flex: 0 0 auto; }
 .concept-8 .c8-viewer-canvas { min-height: 185px; padding: 12px; }
 .concept-8 .c8-viewer #c8-dialog-image { width: 100%; max-height: none; }
 .concept-8 .c8-viewer-agent { overflow: visible; flex-shrink: 0; border-right: none; border-top: 1px solid #cbd4de; }
 .concept-8 .c8-gallery-agent-title { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding-bottom: 16px; }
 .concept-8 .c8-gallery-agent-logos { grid-row: span 2; gap: 4px; margin: 0; align-items: center; }
 .concept-8 .c8-gallery-agent-logos img { width: 19px; height: 19px; padding: 0; border-radius: 0; }
 .concept-8 .c8-gallery-agent-title strong { font-size: 15px; }
 .concept-8 .c8-gallery-agent-title > span { font-size: 10px; }
 .concept-8 .c8-gallery-nav { padding: 10px 12px 4px; }
 .concept-8 .c8-gallery-browse { flex-direction: column; gap: 1px; }
 .concept-8 .c8-gallery-browse strong { font-size: 11px; }
 .concept-8 .c8-gallery-search { padding-left: 8px; gap: 4px; }
 .concept-8 .c8-gallery-search input { width: 95px; font-size: 10px; }
 .concept-8 .c8-gallery-toolbar { gap: 5px; }
 .concept-8 .c8-gallery-toolbar button { width: 29px; height: 29px; }
 .concept-8 .c8-gallery-strip button { flex-basis: 91px; min-height: 85px; padding: 8px 5px; font-size: 9px; gap: 6px; }
 .concept-8 .c8-gallery-strip img { width: 23px; height: 23px; padding: 7px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .concept-8 .c8-gallery-strip button, .concept-8 .c8-gallery-toolbar button { transition: none; } }
