.sg-panel{position:fixed;z-index:330;left:auto;right:24px;bottom:24px;width:min(510px,calc(100vw - 320px));max-height:min(760px,88vh);display:flex;flex-direction:column;background:#fffefa;color:#33483e;border:1px solid #ccd5c9;border-radius:15px;box-shadow:0 16px 60px #182e2733;font:13px 'Instrument Sans',Arial,sans-serif}.sg-panel header{display:flex;align-items:center;gap:10px;padding:12px 15px;border-bottom:1px solid #e5e9e0}.sg-mark{width:38px;height:42px;flex:none}.sg-mark svg{width:100%;height:100%}.sg-panel header div{flex:1;min-width:0}.sg-panel header strong{display:block;font-size:14px}.sg-panel header small{display:block;margin-top:3px;color:#778476;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-panel button,.sg-panel select,.sg-panel textarea{font:inherit;color:inherit}.sg-panel button{border:1px solid #ccd6c5;border-radius:6px;background:#fff;padding:7px 10px;cursor:pointer}.sg-panel button:disabled{opacity:.45;cursor:default}.sg-panel button:focus-visible,.sg-panel textarea:focus-visible,.sg-panel select:focus-visible{outline:2px solid #698367;outline-offset:2px}.sg-panel header>button{border:0;font-size:23px;padding:1px 5px;background:none}.sg-body{padding:12px 15px;overflow:auto}.sg-target{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.sg-target label{display:flex;align-items:center;gap:8px;color:#778476;font-size:11px}.sg-panel select{border:1px solid #d6ddd1;border-radius:6px;background:#fff;padding:6px}.sg-panel textarea{box-sizing:border-box;width:100%;padding:10px 12px;line-height:1.6;border:1px solid #d6ddd1;border-radius:8px;resize:vertical;background:white}.sg-presets{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.sg-presets button{font-size:11px}.sg-presets [aria-pressed=true]{background:#eaf0e3;border-color:#91a486}.sg-source{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:11px}.sg-source select{min-width:0;flex:1}.sg-file{display:inline-flex;align-items:center;cursor:pointer;border:1px solid #ccd6c5;padding:7px 10px;border-radius:6px;background:#fff;margin:3px 0 7px}.sg-file input{width:1px;height:1px;opacity:0;position:absolute}.sg-file:focus-within{outline:2px solid #698367}.sg-references{display:flex;gap:8px;flex-wrap:wrap}.sg-references figure{position:relative;width:72px;margin:0 0 8px}.sg-references img{width:72px;height:72px;object-fit:cover;border-radius:5px}.sg-references figcaption{font-size:10px;color:#778476}.sg-references button{position:absolute;right:0;top:0;padding:0 4px}.sg-panel p{font-size:12px;line-height:1.6}.sg-panel details{margin:8px 0}.sg-panel summary{cursor:pointer;font-size:12px}.sg-panel details textarea{margin-top:7px;font-size:11px}.sg-links{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.sg-links span{display:flex;gap:8px;flex-wrap:wrap}.sg-panel a{color:#476b56;text-underline-offset:3px;font-size:11px}.sg-comparison{display:flex;gap:10px;margin-top:10px}.sg-comparison figure{flex:1;min-width:0;margin:0}.sg-comparison img{width:100%;height:160px;object-fit:contain;background:#f3f2ec;border-radius:6px}.sg-comparison figcaption{font-size:10px;color:#778476;margin-top:4px}.sg-panel [data-sg-output]{margin-top:10px}.sg-panel [data-sg-output] label{display:flex;align-items:center;gap:6px;font-size:11px;margin-bottom:7px}.sg-panel [data-sg-output] small{display:block;font-size:10px;line-height:1.5;color:#778476;margin-top:7px}.sg-status{margin:10px 0 0;color:#6d7e6a}.sg-status.is-error{color:#8a493c}.sg-panel footer{display:flex;align-items:center;gap:7px;padding:10px 15px;border-top:1px solid #e5e9e0}.sg-panel .sg-primary{margin-left:auto;background:#385345;color:#fff;border-color:#385345}.settings-gem-open .as-companion{visibility:hidden}.sg-panel [hidden]{display:none!important}@media(max-width:760px){.sg-panel{left:12px;right:12px;bottom:12px;width:calc(100vw - 24px);max-height:85vh}}

body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel{background:#f7f5f1;color:#242321;border-color:#d5d2cd;border-radius:10px;box-shadow:0 18px 65px #17171630}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel :is(header,footer){border-color:#e5e1db}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel :is(button,select,textarea,.sg-file){border-color:#d5d2cd;border-radius:5px}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel :is(button,select,textarea,.sg-file):focus-visible,body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-file:focus-within{outline-color:#79756f}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel :is(header small,.sg-target label,.sg-references figcaption,.sg-comparison figcaption,[data-sg-output] small,.sg-status){color:#79756f}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel .sg-presets [aria-pressed=true]{background:#e8e3da;border-color:#a49d93}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel a{color:#4c4943}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel .sg-primary{background:#242321;color:#fff;border-color:#242321}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel .sg-comparison img{background:#eeebe5}
body:has(#shop-page-designs.cpd-phase-review:not([hidden])) .sg-panel .sg-status.is-error{color:#8a493c}

.sg-panel.sg-customer{position:fixed;left:20px;right:auto;bottom:20px;width:min(620px,calc(100vw - 40px));max-height:calc(100dvh - 120px);background:#fff;color:#334a60;border:1px solid #d7e0e9;border-radius:10px;box-shadow:0 12px 44px #20364c24;font-size:14px}
.sg-customer header{padding:12px 18px;border-color:#d7e0e9;background:#f8fafc;flex:none}.sg-customer .sg-mark{width:32px;height:36px}.sg-customer header>.gc-restore{flex:1;min-width:0;text-align:left;font-size:14px;padding:2px 0}.sg-customer header>.gc-restore strong{font-size:16px}.sg-customer header small{color:#687c90}.sg-customer header>button:not(.gc-restore){min-width:34px;min-height:34px;border-radius:6px}.sg-customer header>button:hover{background:#e9eff5}.sg-customer .gc-mini-status{display:none}.sg-customer .gc-body{display:flex;flex-direction:column;gap:14px;min-height:0;padding:18px;flex:1}.sg-customer .gc-context-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 7px;border:1px solid #c4d4e3;background:#eef4fa;border-radius:7px;font-size:12px}.gc-context-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gc-context-chip>img{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:4px}.sg-customer .gc-context-chip button{border:0;padding:3px 7px;font-size:18px;background:transparent}.gc-context-page{font-size:12px;color:#687c90}.gc-messages{display:flex;flex-direction:column;gap:16px;min-height:100px;overflow:auto;overscroll-behavior:contain;flex:1}.gc-message{padding:0 8px 0 0}.sg-customer .gc-message>strong{font-size:12px;color:#687c90}.sg-customer .gc-message>p{font-size:14px;line-height:1.65;margin:5px 0;overflow-wrap:anywhere}.gc-message.gc-user{align-self:flex-end;max-width:90%;padding:10px 14px;background:#edf3f8;border-radius:9px}.gc-message.gc-assistant{max-width:96%}.gc-tasks:empty,.gc-references:empty,.sg-customer .sg-status:empty{display:none}.gc-tasks{display:flex;flex-direction:column;gap:7px}.sg-customer .gc-task{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid #d7e0e9;background:#f7f9fc;border-radius:7px}.gc-task>div{flex:1;min-width:0}.gc-task strong{font-size:12px}.gc-task small{display:block;margin:5px 0 0 17px;color:#687c90;line-height:1.5}.gc-task-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#7b8996;margin-right:8px}.gc-task:is([data-status=queued],[data-status=preparing],[data-status=generating],[data-status=running],[data-status=saving],[data-status=stopping]) .gc-task-dot{background:#426d99;animation:gc-pulse 1.4s ease-in-out infinite}.gc-task[data-status=ready] .gc-task-dot{background:#428365}.gc-task[data-status=error] .gc-task-dot{background:#a34e42}.sg-customer .gc-task button{white-space:nowrap;border-color:#b9cbdc;color:#365c82;font-size:12px}.sg-customer .sg-status{font-size:12px;line-height:1.5;margin:0;color:#687c90}.sg-customer .sg-status.is-error{color:#9b493d}.gc-input-label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#4b6075}.sg-customer textarea{border-color:#bccddd;min-height:90px;max-height:200px;font-size:14px;font-weight:400}.sg-customer button,.sg-customer select,.sg-customer .sg-file{border-color:#bccddd;border-radius:6px}.sg-customer :is(button,select,textarea):focus-visible,.sg-customer .sg-file:focus-within{outline-color:#426c97}.sg-customer footer{flex-wrap:wrap;gap:8px;padding:12px 18px;border-color:#d7e0e9}.sg-customer .sg-file{margin:0;white-space:nowrap}.sg-customer footer select{max-width:105px;font-size:12px}.sg-customer .sg-primary{background:#426c97;border-color:#426c97;color:#fff;white-space:nowrap}.gc-references{display:flex;gap:8px;flex-wrap:wrap}.gc-reference{display:inline-flex;align-items:center;gap:5px;max-width:180px;border:1px solid #d7e0e9;border-radius:6px;padding:4px;font-size:11px}.gc-reference img{width:32px;height:32px;object-fit:cover;border-radius:3px}.gc-reference>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-customer .gc-reference button{border:0;padding:3px 5px}.sg-customer.sg-minimized{width:min(440px,calc(100vw - 40px));height:auto;max-height:none}.sg-customer.sg-minimized .gc-body,.sg-customer.sg-minimized footer{display:none}.sg-customer.sg-minimized header{border:0;padding:8px 12px}.sg-customer.sg-minimized .gc-mini-status{display:block;max-width:180px;font-size:11px;color:#687c90;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-customer.sg-minimized .sg-mark{width:27px;height:31px}
@keyframes gc-pulse{50%{opacity:.35;transform:scale(.8)}}
@media(min-width:1101px){body.vf.ib-view #v-fup>.ib[data-desktop-workspace=true] #ib-r>.sg-customer.sg-docked{position:relative!important;grid-column:1;grid-row:3/5;align-self:stretch;justify-self:stretch;inset:auto;width:auto;max-width:none;max-height:none;min-width:0;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;z-index:12}body.vf.ib-view #v-fup>.ib[data-desktop-workspace=true] #ib-r>.sg-customer.sg-docked.sg-minimized{align-self:end;justify-self:start;min-width:320px;max-width:calc(100% - 24px);margin:12px;border:1px solid #c5d3df;border-radius:9px;box-shadow:0 5px 20px #20364c18;overflow:visible}.sg-docked .gc-messages{max-height:none}}
@media(max-width:760px){.sg-panel.sg-customer{left:10px;right:10px;bottom:10px;width:calc(100vw - 20px);max-height:85dvh}.sg-customer .gc-body{padding:12px;gap:10px}.sg-customer footer{padding:10px 12px;gap:6px}.sg-customer footer select{max-width:85px}.sg-customer .gc-message>p{font-size:13px}.sg-customer.sg-minimized .gc-mini-status{max-width:110px}.sg-customer header{padding:10px 12px}.sg-customer footer :is(button,.sg-file){padding:8px}.sg-customer .gc-task{gap:6px}}
@media(prefers-reduced-motion:reduce){.gc-task .gc-task-dot{animation:none!important}}
.sg-customer.sg-minimized.gc-working .gc-mini-status::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#426d99;margin-right:7px;animation:gc-pulse 1.4s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.sg-customer.sg-minimized.gc-working .gc-mini-status::before{animation:none}}
.sg-customer [data-gc-context]{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sg-customer .gc-context-actions{display:flex;gap:6px;flex-wrap:wrap}.sg-customer .gc-context-actions button{font-size:12px;padding:7px 10px;background:#fff;white-space:nowrap}.sg-customer .gc-context-chip>img{width:56px;height:56px}.gc-context-chip>span small{display:block;margin-bottom:4px;font-size:11px;color:#687c90}.sg-customer .gc-start h3{font-size:20px;line-height:1.3;margin:0 0 6px;color:#334a60}.sg-customer .gc-start p{font-size:13px;line-height:1.5;margin:0;color:#687c90}.sg-customer .gc-start[hidden],.sg-customer .gc-image-picker[hidden],.sg-customer .gc-messages:empty{display:none}.sg-customer .gc-image-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;max-height:224px;overflow:auto;overscroll-behavior:contain;padding:3px;flex-shrink:0}.sg-customer .gc-image-picker button{display:flex;flex-direction:column;align-items:stretch;padding:6px;min-width:0;background:#fff;text-align:left;border:1px solid #d7e0e9;border-radius:8px}.sg-customer .gc-image-picker img{width:100%;height:88px;object-fit:contain;background:#f5f6f7;border-radius:4px}.sg-customer .gc-image-picker span{display:block;margin:6px 2px 1px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.sg-customer .gc-image-picker button:hover,.sg-customer .gc-image-picker button[aria-pressed=true]{border-color:#426c97;background:#eef4fa}.sg-customer .gc-dropzone{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto;padding:12px;border:1px dashed #b9c9d7;border-radius:8px;background:#fafbfc}.sg-customer .gc-dropzone button{padding:8px 11px;background:#fff;font-size:13px}.sg-customer .gc-dropzone>span{font-size:12px;color:#687c90}.sg-customer.gc-dragover .gc-dropzone{background:#edf4fc;border:2px solid #426c97;padding:11px}.sg-customer .gc-references{flex-shrink:0}.sg-customer .gc-reference img{width:48px;height:48px;object-fit:contain}
@media(max-width:760px){.sg-customer .gc-image-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:190px}.sg-customer .gc-image-picker img{height:64px}.sg-customer .gc-start h3{font-size:18px}.sg-customer .gc-dropzone{gap:6px;padding:9px}.sg-customer.gc-dragover .gc-dropzone{padding:8px}.sg-customer .gc-context-chip{max-width:100%}.sg-customer .gc-context-actions button{padding:6px 8px}}
.sg-customer .gc-composer{display:flex;flex-direction:column;gap:10px;padding:12px 18px;flex-shrink:0;border-top:1px solid #e4e9ef;background:#fff}.sg-customer .gc-composer textarea{min-height:76px;max-height:140px}.sg-customer .gc-composer .gc-dropzone{padding:8px 10px;margin:0}.sg-customer.gc-dragover .gc-composer .gc-dropzone{padding:7px 9px}.sg-customer .gc-composer .gc-dropzone button{padding:6px 9px}.sg-customer .gc-composer .gc-references{max-height:116px;overflow:auto}.sg-customer.sg-minimized .gc-composer{display:none}@media(max-width:760px){.sg-customer .gc-composer{padding:10px 12px;gap:8px}.sg-customer .gc-composer .gc-dropzone{padding:7px}.sg-customer.gc-dragover .gc-composer .gc-dropzone{padding:6px}}
.sg-customer .gc-image-picker span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sg-customer .gc-image-picker small{display:block;margin:3px 2px;font-size:11px;line-height:1.3;color:#687c90}
.sg-customer .gc-preparation:empty{display:none}.sg-customer .gc-preparation{flex:none}.sg-customer .cwe-preparation{padding:12px 14px;border:1px solid #cfdae4;border-radius:8px;background:#f2f6fa;color:#36516b;font-size:13px;line-height:1.6;margin:0 0 8px}.sg-customer .cwe-preparation p{font-size:13px;line-height:1.6;margin:6px 0}.sg-customer .cwe-preparation button{padding:7px 10px;margin:7px 6px 0 0;font-size:12px;white-space:nowrap}.sg-customer .cwe-preparation textarea{display:block;box-sizing:border-box;width:100%;min-height:62px;margin:10px 0;padding:9px 10px;border:1px solid #bdcddb;border-radius:6px;background:#fff;color:#304759;font:13px/1.5 Arial,sans-serif}.sg-customer .cwe-preparation:last-child{margin-bottom:0}


.sg-customer [data-gc-context]:empty{display:none}

.sg-customer .gc-dropzone{flex-wrap:wrap}.sg-customer [data-gc-create-image][hidden]{display:none}

/* Inline idea creation stays inside Gem's existing conversation. */
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-options{margin:0 0 12px;padding:13px;border:1px solid #d7e1eb;border-radius:12px;background:#f6f8fb;color:#364b60}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-options header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;padding:0;border:0;background:none}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-options header>strong{font:600 13px Arial,sans-serif}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-options header>button{border:0;background:transparent;padding:2px 6px;font-size:18px;color:#63798d}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-formats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-formats button{position:relative;display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0;padding:11px 10px 11px 43px;border:1px solid #d4dfe9;border-radius:9px;background:#fff;color:#405a71;text-align:left}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-formats button>strong{font:600 12px Arial,sans-serif}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-formats button>small{font:11px Arial,sans-serif;color:#788a99}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-formats button[aria-pressed=true]{border-color:#426f9b;box-shadow:inset 0 0 0 1px #426f9b;background:#edf5fd}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-format-mark{position:absolute;left:12px;top:15px;width:20px;height:20px;border:1.5px solid #8a9eae;border-radius:50%;box-sizing:border-box}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-format-sketch{border-style:dashed;transform:rotate(-20deg);border-radius:45% 55% 42% 58%}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-format-moodboard{border-radius:3px;background:conic-gradient(#dfbfce 25%,#b5c7b7 0 50%,#e3d3b8 0 75%,#c2d7de 0)}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-format-render{background:radial-gradient(circle at 30% 25%,#fff 2%,#d3b67e 25%,#8c6e46 60%,#e7d2a1 80%);border-color:#b99f70}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-format-worn{border-radius:8px 8px 45% 45%;border-top-color:transparent;background:linear-gradient(150deg,#eddfd3,#ceae98)}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-label{display:block;margin:13px 0 7px;font:600 11px Arial,sans-serif}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-design-freedom{display:flex;padding:3px;gap:3px;border:1px solid #d7e1eb;border-radius:8px;background:#eaf0f5}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-design-freedom button{flex:1;min-width:0;border:0;border-radius:5px;background:transparent;padding:7px 3px;color:#62788b;font:11px Arial,sans-serif}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-design-freedom button[aria-pressed=true]{background:#fff;color:#355b81;box-shadow:0 1px 3px #233d5920}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-options p{margin:8px 0 0;font:11px/1.4 Arial,sans-serif;color:#768997}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-options button:focus-visible{outline:2px solid #5b8bbb;outline-offset:2px}

:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-mode{display:flex;gap:4px;margin:0 0 11px;padding:3px;background:#eaf0f5;border-radius:7px}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-mode button{flex:1;padding:7px 4px;border:0;border-radius:5px;background:transparent;color:#62788b;font:11px Arial,sans-serif}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-image-mode button[aria-pressed=true]{background:#fff;color:#355b81;box-shadow:0 1px 3px #233d5920}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-render-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-render-presets button{display:flex;gap:7px;align-items:center;text-align:left;padding:11px 8px;border:1px solid #d4dfe9;border-radius:8px;background:#fff;color:#405a71;font:12px Arial,sans-serif}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-render-presets button[aria-pressed=true]{background:#edf5fd;border-color:#426f9b;box-shadow:inset 0 0 0 1px #426f9b}
:is(#settings-gem,.gc-image-dialog,.gc-image-sheet) .gc-render-presets button>span{font-size:14px;color:#426f9b}

.gc-image-dialog{width:min(620px,calc(100vw - 40px));max-height:calc(100vh - 48px);overflow:auto;border:1px solid #d3dee7;border-radius:16px;padding:24px;background:#fff;color:#344a5c;box-shadow:0 24px 80px #152a4440;font:14px/1.5 Arial,sans-serif}
.gc-image-dialog::backdrop{background:#14233580;backdrop-filter:blur(3px)}
.gc-image-dialog .gc-image-options{margin:0;border:0;padding:0;background:none}
.gc-image-dialog .gc-image-formats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gc-image-dialog .gc-image-formats button{min-height:88px}
.gc-image-dialog>footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #dce5ed}
.gc-image-dialog>footer button{padding:10px 18px;border:1px solid #b9cada;border-radius:7px;background:#fff;color:#395b79;font:inherit;cursor:pointer}
.gc-image-dialog>footer [data-gc-dialog-done]{background:#426b91;color:white;border-color:#426b91}
.gc-image-dialog button:disabled{opacity:.45;cursor:default}
.gc-image-selection{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 10px;background:#edf4fa;border:1px solid #c8d9e7;border-radius:8px}
.gc-image-selection button{background:none;border:0;color:#355c7b;font:12px/1.5 Arial,sans-serif;text-align:left;cursor:pointer}
.gc-image-selection button:first-child{flex:1}

/* Match the editor's blue action controls without adding decorative colour. */
#settings-gem.sg-customer .gc-composer .gc-dropzone{border:1px dashed #8fa7be;background:#f6f9fc;padding:10px;gap:8px}
#settings-gem.sg-customer .gc-composer .gc-dropzone button{min-height:36px;padding:8px 11px;border:1px solid #809fbd;background:#edf4fb;color:#315b82;border-radius:7px;font-size:12px;font-weight:600}
#settings-gem.sg-customer .gc-composer .gc-dropzone button:hover{background:#dfeefa;border-color:#42688f}
#settings-gem.sg-customer .gc-composer textarea{border-color:#aebfce;background:#fff}
#settings-gem.sg-customer .gc-composer :is(button,textarea):focus-visible{outline:2px solid #42688f;outline-offset:3px}

.sg-customer .gc-question-slot{margin-left:auto;flex:none}
.sg-customer .gc-question-slot:empty{display:none}
.sg-customer .gc-question-slot+.sg-primary{margin-left:0}
.sg-customer .gc-question-slot:empty+.sg-primary{margin-left:auto}
.sg-customer .gem-companion-helper.gc-inline{position:static!important;inset:auto!important;width:36px;padding:0;max-width:none;pointer-events:auto}
.sg-customer .gem-companion-helper.gc-inline .gc-reopen{display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:1px solid #bacbd9;border-radius:7px;background:#f4f7fb;color:#42688f;box-shadow:none;font-size:23px}
.sg-customer .gem-companion-helper.gc-inline :is(.gc-pending-dot,.gc-character-button){display:none}
.sg-customer .gem-companion-helper.gc-inline .gc-bubble{display:none;position:absolute;bottom:calc(100% + 9px);right:12px;width:300px;max-width:calc(100% - 24px);max-height:40vh!important;box-sizing:border-box;padding:12px 14px;border:1px solid #bdcbd8;border-radius:9px;background:#fff;color:#334b61;box-shadow:0 5px 20px #1d2a3c1a;z-index:5}
.sg-customer .gem-companion-helper.gc-inline:is(:hover,:focus-within) .gc-bubble{display:block}
.sg-customer .gem-companion-helper.gc-inline .gc-observation{margin:0;font-size:12px;line-height:1.55}

.sg-customer footer{position:relative}

.sg-panel footer .sg-mic{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:8px}
.sg-mic::before{content:'';display:block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.sg-panel footer .sg-mic[aria-pressed=true]{color:#a73535;border-color:#c57272;background:#fff1f1}
.sg-mic[aria-pressed=true]::before{mask:none;width:12px;height:12px;border-radius:2px}
.dw-images .gc-design{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:0;background:#fff;color:#30485c;font:14px/1.45 Arial,sans-serif;container-type:inline-size}
.dw-images .gc-design *{box-sizing:border-box}
.dw-images .gc-design fieldset{display:grid;gap:18px;min-width:0;margin:0;padding:0;border:0}
.dw-images .gc-design h4{margin:0 0 8px;color:#30485c;font-size:14px}
.dw-images .gc-design h4 small{margin-left:4px;color:#647889;font-size:12px;font-weight:400}
.dw-images .gc-design button,.dw-images .gc-design select{border:1px solid #afbfce;background:#fff;border-radius:6px;padding:8px 12px;color:#35546e;font:inherit;cursor:pointer}
.dw-images .gc-design button:disabled,.dw-images .gc-design fieldset:disabled button{opacity:.5;cursor:default}
.dw-images .gc-design button[aria-pressed=true]{border-color:#426c97;background:#edf4fc;color:#244e75}
.dw-images .gc-design :is(button,input,textarea,select):focus-visible{outline:2px solid #426f9b;outline-offset:2px}
.dw-images .gc-design input[type=checkbox]{flex:none;width:17px;height:17px;margin:0;accent-color:#42698f;cursor:pointer}
.dw-images .gc-design .di-primary{background:#42698f;border-color:#42698f;color:#fff;font-weight:600}
.dw-images .gc-design [hidden]{display:none!important}
.dw-images .di-workspace{display:grid;grid-template-columns:minmax(260px,30%) minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}
.dw-images .di-controls{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;border-right:1px solid #dce4ec;background:#f7f9fc}
.dw-images .di-controls-body{display:flex;flex-direction:column;gap:22px;flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px}
.dw-images .di-controls>nav,.dw-images .di-controls>.di-options,.dw-images .di-controls>.di-refs{margin:18px 20px 0}
.dw-images .gc-design nav{display:grid;gap:6px;flex:none;margin:0;padding:0;border:0}
.dw-images .gc-design nav button{min-width:0;padding:10px 12px;text-align:left;font-size:13px;font-weight:600;line-height:1.4}
.dw-images .di-options{display:flex;flex-direction:column;gap:20px;min-width:0}
.dw-images .di-options>section{min-width:0}
.dw-images .di-list{display:flex;flex-direction:column;gap:0;min-width:0}
.dw-images .di-check{display:flex;align-items:center;gap:9px;min-width:0;padding:7px 0;cursor:pointer}
.dw-images .di-check>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.dw-images .di-check b{overflow-wrap:anywhere;font-size:13px}
.dw-images .di-choices,.dw-images .di-actions,.dw-images .di-thumbs{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.dw-images .di-choices button{min-width:40px;padding:6px 12px}
.dw-images .di-refs{display:flex;flex-direction:column;min-width:0;gap:0}
.dw-images .di-ref{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;min-width:0;padding:10px 0;border-bottom:1px solid #dce4ec}
.dw-images .di-ref:last-child{border-bottom:0}
.dw-images .di-ref>div,.dw-images .di-ref-details{flex:1;min-width:0}
.dw-images .di-ref b{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.dw-images .di-ref input,.dw-images .di-ref textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:7px 8px;border:1px solid #b4c4d3;border-radius:5px;background:#fff;color:inherit;font:12px/1.45 Arial,sans-serif}
.dw-images .di-ref>button:not(.di-photo){padding:4px 7px;font-size:12px}
.dw-images .di-view-section{grid-column:1/-1}
.dw-images .di-view-section h4{display:flex;align-items:baseline;justify-content:space-between}
.dw-images .di-view-section h4 small{width:72px;text-align:center}
.dw-images .di-view-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid #dce4ec}
.dw-images .di-view-row:last-child{border-bottom:0}
.dw-images .di-view-variants{grid-column:1;display:flex;flex-wrap:wrap;gap:4px;margin:0 0 4px 26px}
.dw-images .di-view-variants button,.dw-images .di-pose-upload button{padding:5px 8px;font-size:12px}
.dw-images .di-pose-hint{margin:4px 0 0;font-size:12px;color:#465e71}
.dw-images .di-ref .di-pose-upload{flex:0 0 100%}
.dw-images .di-pose-photo label{display:flex;align-items:center;gap:3px;padding:3px 0;font-size:11px;cursor:pointer}
.dw-images .di-pose-photo input[type=radio]{width:auto;margin:0;padding:0;accent-color:#315876}
.dw-images .di-ref-photos{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;flex:0 1 auto!important}
.dw-images .gc-design .di-photo{display:block;flex:none;min-width:0;padding:3px;border:1px solid #d5dee7;border-radius:6px;overflow:hidden;background:#fff;cursor:zoom-in}
.dw-images .gc-design .di-photo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:3px;background:#f7f7f5}
.dw-images .di-view-row .di-view-example{grid-column:2;grid-row:1;width:72px;height:72px;padding:0}
.dw-images .di-view-row:has(.di-view-variants) .di-view-example{grid-row:1 / span 2}
.dw-images .di-view-row .di-view-example img{object-fit:cover}
.dw-images .di-view-example[data-value="box"] img{object-fit:contain;background:#081324}
.dw-images .di-ref .di-photo{width:64px;height:64px}
.dw-images .di-ref .di-photo img{width:100%;height:100%}
.dw-images .di-drop{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px;padding:10px;border:1px dashed #a6b9c9;border-radius:7px}
.dw-images .di-drop button{padding:7px 9px;font-size:12px}
.dw-images .di-drop small{color:#526b80;font-size:12px}
.dw-images .di-composer{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:9px;flex:none;min-width:0;margin-top:auto;padding:14px 20px;background:#fff;border-top:1px solid #dce4ec}
.dw-images .di-field{min-width:0}
.dw-images .di-field>div{display:flex;align-items:center;gap:8px}
.dw-images .di-field label{margin-right:auto;font-weight:600;font-size:13px}
.dw-images .gc-design textarea{display:block;width:100%;min-width:0;min-height:100px;max-height:180px;resize:vertical;margin-top:7px;padding:10px;border:1px solid #b4c4d3;border-radius:7px;background:#fff;color:inherit;font:14px/1.55 Arial,sans-serif}
.dw-images .di-composer-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.dw-images .di-composer-tools>small{flex:1;color:#647889;font-size:12px}
.dw-images .gc-design button.sg-mic{display:grid;place-items:center;flex:none;padding:7px;width:34px;height:34px;border-radius:6px}
.dw-images .gc-design .sg-mic[aria-pressed=true]{background:#fff1f1;border-color:#b96b6b;color:#a73535}
.dw-images .di-composer-tools .di-primary{display:grid;place-items:center;flex:none;min-width:36px;min-height:36px;margin-left:auto;padding:7px 10px;font-size:18px;line-height:1}
.dw-images .di-composer-tools .di-primary svg{width:18px;height:18px}
.dw-images .di-request-summary{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px 10px;color:#526b80;font-size:12px;overflow-wrap:anywhere}
.dw-images .di-board{display:flex;flex-direction:column;gap:18px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px clamp(16px,2cqw,26px)}
.dw-images .di-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;min-width:0}
.dw-images .di-heading h4{margin:0 auto 0 0}
.dw-images .di-heading>small{color:#647889;font-size:12px}
.dw-images .di-board-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.dw-images .di-board-actions button{padding:7px 10px;font-size:12px}
.dw-images .di-gallery{display:flex;flex-direction:column;gap:24px;min-width:0}
.dw-images .di-board-group{display:flex;flex-direction:column;gap:10px;min-width:0}
.dw-images .di-board-group>header,.dw-images .di-board-group>h4{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-width:0;margin:0}
.dw-images .di-group-label{display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:600;cursor:pointer}
.dw-images .di-group-label span{min-width:0;overflow-wrap:anywhere}
.dw-images .gc-design .di-group-drag{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-color:#d0dbe5;background:#fff;color:#526b80;font-size:12px;cursor:grab;touch-action:none}
.dw-images .di-group-drag:active{cursor:grabbing}
.dw-images .di-board-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(144px,100%),1fr));align-items:start;gap:12px;min-width:0}
.dw-images .di-board-image{display:flex;flex-direction:column;gap:7px;min-width:0}
.dw-images .di-board-image .di-photo{width:100%;height:158px;touch-action:none}
.dw-images .di-board-image .di-photo img{width:100%;height:100%;object-fit:contain}
.dw-images .di-board-image.is-selected .di-photo{border-color:#426c97;box-shadow:inset 0 0 0 1px #426c97;background:#edf4fc}
.dw-images .di-image-meta{display:flex;align-items:flex-start;gap:7px;min-width:0;color:#405a70;font-size:12px;line-height:1.4}
.dw-images .di-image-meta label{display:flex;align-items:flex-start;gap:7px;min-width:0;cursor:pointer}
.dw-images .di-image-meta span{min-width:0;overflow-wrap:anywhere}
.dw-images .di-image-meta input{margin-top:1px}
.dw-images .di-image-meta>button{margin-left:auto;padding:2px 5px;font-size:12px}
.dw-images .di-pending{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:158px;padding:12px;border:1px dashed #bdcbd8;border-radius:6px;background:#f5f8fb;color:#526b80;text-align:center;font-size:12px}
.dw-images .di-pending strong{font-weight:400}
.dw-images .di-pending button{padding:4px 9px;font-size:12px}
.dw-images .di-pending small{font-size:12px;overflow-wrap:anywhere}
.dw-images .di-queue-set{display:flex;flex-direction:column;gap:10px;min-width:0}
.dw-images .di-queue-set>header,.dw-images .di-queue-set>.di-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#526b80;font-size:12px}
.dw-images .di-queue-set>header>span,.dw-images .di-queue-set>.di-heading>span{min-width:0;flex:1;overflow-wrap:anywhere}
.dw-images .di-queue-set>header button,.dw-images .di-queue-set>.di-heading button{padding:5px 8px;font-size:12px}
.dw-images .di-job-error{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #dfc4bf;border-radius:6px;background:#fff7f5;color:#963b31;font-size:12px}
.dw-images .di-job-error>span{flex:1;min-width:0;overflow-wrap:anywhere}
.dw-images .di-job-error button{padding:5px 8px;font-size:12px}
.dw-images .di-dragover{outline:2px dashed #426c97;outline-offset:-4px;background:#edf4fc!important}
.di-drag-ghost{position:fixed;z-index:10000;pointer-events:none;max-width:200px;padding:7px 10px;border:1px solid #426c97;border-radius:6px;background:#426c97;color:#fff;box-shadow:0 3px 12px #20364c24;font:12px/1.4 Arial,sans-serif}
.dw-images [data-di-status]{margin:0;padding:10px 18px;color:#526b80;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.dw-images [data-di-status]:empty{display:none}
.dw-images .gc-design [role=alert]{color:#963b31}
.dw-images .di-empty{display:flex;align-items:center;justify-content:center;min-height:150px;padding:22px;color:#647889;text-align:center;font-size:13px}
.dw-images .gc-design img{object-fit:contain}
.dw-images .di-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dw-images .di-compare>div{display:grid;gap:6px;min-width:0}
.dw-images .di-compare .di-inspect{padding:0;border:0;cursor:zoom-in}
.dw-images .di-compare img{width:100%;height:155px;display:block}
.dw-images .di-ready{display:grid;gap:6px;margin-bottom:14px}
.dw-images .di-ready>div{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#edf4fa;border-radius:6px;padding:8px 12px}
.dw-images .di-ready small{display:block;color:#526b80;overflow-wrap:anywhere}
dialog.gc-design-inspect{width:min(1050px,94vw);max-height:calc(100dvh - 40px);overflow:auto;padding:18px;color:#243c50;border:1px solid #bfccd5;border-radius:10px;background:#fff;box-shadow:0 18px 70px #14233244;font:14px/1.5 Arial,sans-serif}
.gc-design-inspect::backdrop{background:#142332aa;backdrop-filter:blur(3px)}
.gc-design-inspect header,.gc-design-inspect section{display:flex;gap:12px;justify-content:space-between}
.gc-design-inspect header{position:sticky;top:-18px;z-index:1;align-items:center;min-width:0;margin-bottom:12px;padding:0 0 10px;background:#fff;border-bottom:1px solid #dce4ec}
.gc-design-inspect header strong{min-width:0;overflow-wrap:anywhere}
.gc-design-inspect header button{flex:none;min-height:36px;padding:7px 13px;border:1px solid #afbfce;border-radius:6px;background:#fff;color:#35546e;font:inherit;cursor:pointer}
.gc-design-inspect button:focus-visible{outline:2px solid #426f9b;outline-offset:2px}
.gc-design-inspect figure{margin:0;flex:1;min-width:0}
.gc-design-inspect img{display:block;width:100%;height:min(72vh,740px);object-fit:contain;background:#f7f7f5}
.gc-design-inspect section:has(figure+figure) img{height:min(55vh,430px)}
.gc-design-inspect figcaption{text-align:center;color:#3a546a;margin-top:7px}
@container (max-width:800px){.dw-images .di-workspace{grid-template-columns:minmax(238px,34%) minmax(0,1fr)}.dw-images .di-controls-body{gap:18px;padding:16px}.dw-images .di-composer{padding:12px 16px}.dw-images .di-board{padding:16px;gap:16px}.dw-images .di-board-grid{grid-template-columns:repeat(auto-fill,minmax(min(126px,100%),1fr));gap:10px}.dw-images .di-board-image .di-photo,.dw-images .di-pending{height:140px;min-height:140px}.dw-images .di-ref .di-photo{width:56px;height:56px}}
@container (max-width:590px){.dw-images .di-workspace{display:flex;flex-direction:column;overflow:auto}.dw-images .di-controls{display:block;overflow:visible;border-right:0;border-bottom:1px solid #dce4ec}.dw-images .di-controls-body{overflow:visible;gap:16px}.dw-images .di-composer{position:static;padding:14px 16px}.dw-images .di-board{flex:none;overflow:visible;padding:16px;min-height:200px}.dw-images .gc-design nav{grid-template-columns:1fr 1fr}.dw-images .di-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dw-images .di-board-grid{grid-template-columns:repeat(auto-fill,minmax(min(132px,100%),1fr))}.dw-images .di-ref .di-photo{width:64px;height:64px}.dw-images .di-group-label{font-size:13px}}
@media(max-width:760px){dialog.gc-design-inspect{padding:12px;max-height:calc(100dvh - 24px)}.gc-design-inspect header{top:-12px}.gc-design-inspect section:has(figure+figure){flex-direction:column}.gc-design-inspect section:has(figure+figure) img{height:min(44vh,380px)}}
@media(pointer:coarse){.dw-images .gc-design :is(button,.di-check,.di-group-label){min-height:40px}.dw-images .gc-design textarea,.dw-images .di-ref input{font-size:16px}}

.dw-images .di-mode-tabs{display:inline-flex;gap:2px;margin:7px 0;padding:3px;border:1px solid #cbd6df;border-radius:9px;background:#f0f4f7}
.dw-images .di-mode-tabs [role=tab]{padding:6px 14px;border:1px solid transparent;background:transparent;color:#526678;font-size:14px;font-weight:600}
.dw-images .di-mode-tabs [aria-selected=true]{background:white;border-color:#cbd6df;color:#244662;box-shadow:0 1px 2px #30485c14}

.dw-images .di-piece-picker{display:grid;gap:6px}
.dw-images .di-piece-option{display:flex;align-items:center;gap:9px;padding:6px 8px;border:1px solid #d5dee7;border-radius:6px;background:#fff;cursor:pointer}
.dw-images .di-piece-option:has(input:checked){border-color:#426c97;background:#edf4fc}
.dw-images .di-piece-option input{margin:0;flex:none;accent-color:#42698f}
.dw-images .di-piece-option img{width:44px;height:44px;flex:none;object-fit:contain;border-radius:4px}
.dw-images .di-piece-option b{font-size:12px;line-height:1.35;overflow-wrap:anywhere}

/* Shared writing controls for the staff app. The final action stays next to dictation. */
:root{
 --write-line:#cbd4db;--write-radius:18px;--write-blue:#315f89;--write-ink:#344b60;
 --write-shadow:0 2px 7px #24394b0c;
 --write-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5m-7 7 7-7 7 7'/%3E%3C/svg%3E");
 --write-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23536576' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
}
#settings-gem .kq-compose-actions{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;margin-inline-start:auto}
.kq-mic-label{align-self:center;flex:none;color:#536575;font:12px/1.35 Arial,sans-serif}
.record-dictation-tools .kq-mic-label{order:-2}
.kq-voice-search .kq-mic-label{display:none}
#settings-gem .gc-question-slot{margin:0}
#settings-gem .gc-question-slot:not(:has(>:not([hidden]))){display:none}
#v-fup #settings-gem.sg-customer .gc-composer footer .kq-compose-actions [data-gc-submit]{margin:0}
#v-fup #settings-gem.sg-customer .gc-composer .gc-dropzone{margin:0}
#v-fup #settings-gem.sg-customer .gc-composer [data-gc-language],
#settings-gem .kq-compose-actions [data-sg-language],
#assistant-panel .as-input-actions #assistant-language,
body #ib-r .dw-reply-composer select[data-dictation-language],
.entry-dialog #entry-form .record-dictation-tools select[data-dictation-language],
[data-piece-media] .cm-art-input select[data-cm-language],
.cwe-root select[data-dictation-language],#settings-gem select[data-dictation-language],.gc-answer select[data-dictation-language]{
 appearance:none;box-sizing:border-box;flex:none;inline-size:7.6em!important;min-inline-size:7.6em;max-inline-size:none!important;
 padding:4px 18px 4px 6px!important;margin:0;border:0;border-radius:7px;color:var(--write-ink);
 background:transparent var(--write-chevron) no-repeat right 5px center/12px 12px!important;font:12px/1.35 Arial,sans-serif;min-height:32px;cursor:pointer;
}
#assistant-panel .as-input-wrap,#settings-gem .sg-writing,#v-fup .dw-images .di-writing,
[data-piece-media] .cm-art-input .as-input-wrap,.entry-dialog #entry-form .entry-recap-field:has(>.record-dictation),.gem-companion-helper .gc-answer{
 display:block;box-sizing:border-box;min-width:0;border:1px solid var(--write-line);border-radius:var(--write-radius);background:#fff;box-shadow:var(--write-shadow);padding:9px;color:var(--write-ink)
}
#assistant-panel .as-input-wrap:focus-within,#settings-gem .sg-writing:focus-within,#v-fup .dw-images .di-writing:focus-within,
[data-piece-media] .cm-art-input .as-input-wrap:focus-within,.entry-dialog #entry-form .entry-recap-field:focus-within{border-color:#6587a5;box-shadow:0 0 0 2px #42688f15}
#assistant-panel .as-input-wrap #assistant-input,#settings-gem .sg-writing textarea,#v-fup .dw-images .di-writing textarea,
.entry-dialog.entry-workspace #entry-form .entry-gem-dock .entry-recap-field #entry-note,[data-piece-media] .cm-art-input textarea{
 display:block;box-sizing:border-box;width:100%;min-height:54px;height:auto;max-height:160px;margin:0;padding:5px;resize:none;
 border:0;background:transparent;box-shadow:none;outline:none;font:14px/1.5 Arial,sans-serif;field-sizing:content
}
#settings-gem .sg-writing{margin:10px 12px 12px}
#assistant-panel .as-input-actions,#settings-gem .sg-writing footer,.entry-dialog #entry-form .entry-recap-field .record-dictation-tools{
 display:flex;align-items:center;justify-content:flex-end;gap:4px;padding:3px 0 0;margin:0;border:0;background:transparent
}
#assistant-panel .as-input-actions .as-send,#settings-gem .sg-writing [data-sg-submit],#v-fup .dw-images .di-writing [data-di=generate],.gc-answer .gc-answer-send{
 display:inline-grid;place-items:center;box-sizing:border-box;flex:none;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;margin:0;border:0;border-radius:50%;color:white;background:var(--write-blue)
}
#settings-gem .sg-writing [data-sg-submit],#v-fup .dw-images .di-writing [data-di=generate],.gc-answer .gc-answer-send{font-size:0}
#settings-gem .sg-writing [data-sg-submit]::before,#v-fup .dw-images .di-writing [data-di=generate]::before,.gc-answer .gc-answer-send::before{content:'';width:20px;height:20px;background:currentColor;mask:var(--write-arrow) center/contain no-repeat}
#assistant-panel .as-input-actions [data-as=mic],#settings-gem .sg-writing .sg-mic,#v-fup .dw-images .di-writing .sg-mic,
.entry-dialog #entry-form .record-dictation-tools .record-dictation-toggle{
 box-sizing:border-box;display:inline-grid;place-items:center;flex:none;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;color:var(--write-ink);background:transparent
}
.entry-dialog #entry-form .record-dictation-toggle span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.entry-dialog #entry-form .record-dictation-tools [data-dictation-language]{order:-1}
.entry-dialog #entry-form .entry-recap-field .record-dictation{position:static;margin:0}
.entry-dialog #entry-form .record-dictation-toggle[aria-pressed=true],#assistant-panel .as-input-actions [aria-pressed=true],#settings-gem .sg-writing .sg-mic[aria-pressed=true]{background:#dae9f5;color:#19588d}
.entry-dialog #entry-form .entry-gem-dock #entry-capture:has(#entry-capture-review[hidden]){display:none}
.entry-dialog #entry-form .entry-gem-dock #entry-capture .entry-capture-tools{display:none}
.entry-dialog #entry-form .entry-gem-line [data-capture-add],#v-fup .dw-images .di-writing .kq-attach,[data-piece-media] .cm-art-input .cm-attach{
 box-sizing:border-box;display:grid;place-items:center;flex:none;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:#f2f5f7;color:var(--write-ink);font:22px/1 Arial,sans-serif;cursor:pointer
}
.entry-dialog.entry-workspace #entry-form .entry-gem-dock .entry-gem-line .record-dictation-tools{margin-inline-start:auto}
.entry-dialog.entry-workspace #entry-form .entry-gem-dock #entry-gem-send{margin-inline-start:0}
#v-fup .dw-images .di-composer{gap:6px;padding:0;margin:8px 12px 12px;border:0;border-radius:0;box-shadow:none}
#v-fup .dw-images .di-prompt-label{font-size:13px;font-weight:600;color:var(--write-ink)}
#v-fup .dw-images .di-composer-tools{gap:4px;padding-top:3px}
#v-fup .dw-images .di-writing .di-request-summary{flex:1;font-size:12px}
#v-fup .dw-images .di-writing .sg-mic{margin-inline-start:auto}
:is(#settings-gem,#assistant-panel,#entry-form,.dw-images,.cm-art-input) :is(.kq-compose-actions,.as-input-actions,.di-composer-tools,.record-dictation-tools) button:not(:disabled):hover{filter:brightness(.9);box-shadow:0 0 0 2px #7798b733}
:is(#settings-gem,#assistant-panel,#entry-form,.dw-images,.cm-art-input) :is(button,select):focus-visible{outline:2px solid #42688f;outline-offset:2px}

@container (max-width:380px){
 #v-fup #settings-gem.sg-customer .gc-composer [data-gc-language]{inline-size:5.7em!important;min-inline-size:5.7em}
 #v-fup #settings-gem.sg-customer .gc-composer [data-gc-create-image]{width:32px;height:32px;padding:0;font-size:0;border-radius:50%}
 #v-fup #settings-gem.sg-customer .gc-composer [data-gc-create-image]::before{content:'✧';font:22px/1 Arial,sans-serif}
}
/* Standalone search inputs and existing search-with-icon wrappers share one frame. */
body :is(.cb-header .cb-search,.cat-header .cat-search,.settings-search),
body :is(main,section,dialog,aside,header,form,#v-fup) input[type=search]:not(:is(.cb-search,.cat-search,.settings-search) input){
 box-sizing:border-box;min-width:0;min-height:36px;border:1px solid var(--write-line);border-radius:var(--write-radius);background-color:#fff;color:var(--write-ink)
}
body :is(main,section,dialog,aside,header,form,#v-fup) input[type=search]:not(:is(.cb-search,.cat-search,.settings-search) input){
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23607484' stroke-width='1.6'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='m12 12 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:11px center;background-size:16px;padding-inline:34px 12px
}
body :is(.cb-header .cb-search,.cat-header .cat-search,.settings-search):focus-within,body input[type=search]:not(:is(.cb-search,.cat-search,.settings-search) input):focus-visible{outline:2px solid #6489aa;outline-offset:1px}
.entry-dialog #entry-form .entry-recap-field .record-dictation-tools{position:static}
.kq-search{display:inline-flex;align-items:center;max-width:100%;min-width:0;position:relative}
.kq-search:has(>input:only-of-type){width:100%}
body .kq-voice-search{position:relative}
body .kq-search input[type=search]{box-sizing:border-box;width:100%;padding-inline-end:42px!important}
body .kq-voice-search:not(.kq-search){padding-inline-end:40px}
.kq-voice-search>.record-dictation{position:absolute;right:5px;top:50%;transform:translateY(-50%);margin:0}
body .kq-voice-search .record-dictation-tools{position:static;display:flex;margin:0}
body .kq-voice-search .record-dictation-toggle{display:grid;place-items:center;min-width:30px;width:30px;height:30px;min-height:30px;padding:0;border:0;background:transparent;color:var(--write-ink);border-radius:50%}
body .kq-voice-search .record-dictation-toggle:hover,body .kq-voice-search .record-dictation-toggle[aria-pressed=true]{background:#e2edf5}
body .kq-voice-search .record-dictation-tools select,body .kq-voice-search .record-dictation-notice{display:none}
body .kq-voice-search .record-dictation-toggle span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
body .kq-voice-search .record-dictation-status{position:absolute;z-index:2;inset-inline-end:0;top:100%;margin:0;width:max-content;max-width:200px;background:#fff;border-radius:6px;font:12px/1.4 Arial,sans-serif;color:var(--write-ink)}
body .kq-voice-search .record-dictation-status:not(:empty){padding:3px 6px}
.gem-companion-helper .gc-answer{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.gem-companion-helper .gc-answer textarea{flex:1 0 100%;padding:5px;resize:none}
.gc-answer .record-dictation{display:contents}
.gc-answer .record-dictation-tools{display:flex;align-items:center;gap:4px;margin:0 0 0 auto}
.gc-answer .record-dictation-tools select{order:-1}
.gc-answer .record-dictation-toggle{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--write-ink)}
.gc-answer .record-dictation-toggle span,.gc-answer .record-dictation-notice{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.gc-answer .record-dictation-status,.gc-answer .record-dictation-fallback{order:10;flex:1 0 100%;margin:0}
.gc-answer .record-dictation-status:empty{display:none}

#v-fup .gc-design-window{width:calc(100vw - 40px);max-width:1600px;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #bbc8d3;border-radius:12px;background:#fff;color:#303b46;box-sizing:border-box}
#v-fup .gc-design-window[open]{display:flex;flex-direction:column}
.gc-design-window::backdrop{background:#17263380}
.gc-design-window-header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #ccd6df;font:700 17px Arial,sans-serif}
.gc-design-window-header button{border:1px solid #b7c4cf;border-radius:6px;background:white;padding:5px 12px;font-size:22px;cursor:pointer}
#v-fup .gc-design-window>.gc-design{min-height:0;flex:1;overflow:auto}
#v-fup .gc-design-window .di-workspace{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);height:100%;min-height:0}
#v-fup .gc-design-window .di-controls{display:flex;flex-direction:column;overflow:auto;min-height:0}
#v-fup .gc-design-window .di-controls-body{overflow:visible;flex:none;order:2}
#v-fup .gc-design-window .di-composer{order:1;flex:none;position:static}
#v-fup .gc-design-window .di-board{overflow:auto;min-height:0}
#v-fup .gc-design-window .di-concept-count{display:flex;align-items:center;gap:6px;margin:8px 0;font:13px Arial,sans-serif}
#v-fup .gc-design-window .di-concept-count button{padding:4px 10px;border:1px solid #bcc9d4;border-radius:5px;background:white}
#v-fup .gc-design-window .di-concept-count button[aria-pressed=true]{background:#e5f0fa;border-color:#4978a1}
@media(max-width:750px){#v-fup .gc-design-window .di-workspace{grid-template-columns:1fr;height:auto}#v-fup .gc-design-window .di-controls,#v-fup .gc-design-window .di-board{overflow:visible}}

#settings-gem .gc-composer .record-dictation{margin:0}
#settings-gem .gc-composer .record-dictation-status:not(:empty){margin:0 5px 4px;color:#4c6274}
#settings-gem .gc-task .gc-preparing-mark{color:#387259;font-size:15px;line-height:1}
