body.approved-ui #workspace:has(.pattern-chat){padding:0!important;max-width:none!important;overflow:hidden}
.pattern-chat{--pc-bg:#fafbf9;--pc-surface:#fff;--pc-surface2:#f0f4f1;--pc-line:#d8e1dd;--pc-text:#233735;--pc-muted:#647b75;--pc-teal:#117a67;--pc-accent:#e0f1e8;--pc-primary:#167c67;--pc-on-primary:#fff;color:var(--pc-text);background:var(--pc-bg);height:calc(100dvh - 72px);min-height:480px;display:flex;flex-direction:column;font-size:14px;overflow:hidden}
body.dark .pattern-chat{--pc-bg:#101a1d;--pc-surface:#19262b;--pc-surface2:#203037;--pc-line:#2c3d43;--pc-text:#e9f1f2;--pc-muted:#9cb0b6;--pc-teal:#77d9c7;--pc-accent:#203d3c;--pc-primary:#8ce4cd;--pc-on-primary:#102b28}
.pattern-chat *{box-sizing:border-box}.pattern-chat button,.pattern-chat .button{font:inherit;cursor:pointer;border:1px solid var(--pc-line);border-radius:9px;background:transparent;color:var(--pc-text);padding:10px 14px;font-weight:600;line-height:1.4;text-decoration:none;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:5px;flex-direction:column}.pattern-chat button:hover,.pattern-chat .button:hover{background:var(--pc-surface2);border-color:var(--pc-muted)}.pattern-chat button:disabled{opacity:.45;cursor:default}.pattern-chat button.primary{background:var(--pc-primary);color:var(--pc-on-primary);border-color:transparent}.pattern-chat button.accent{background:var(--pc-accent);border-color:var(--pc-teal);color:var(--pc-teal);min-height:52px}.pattern-chat button small{font-size:11px;font-weight:400}.pattern-chat :focus-visible{outline:2px solid var(--pc-teal);outline-offset:3px}
.pc-heading{flex:none;min-height:86px;padding:18px 32px;border-bottom:1px solid var(--pc-line);display:flex;justify-content:space-between;align-items:center;gap:16px}.pc-heading small{display:block;font-size:10px;color:var(--pc-muted);margin-bottom:8px;letter-spacing:.5px}.pattern-chat h1{font-size:20px;line-height:1.3;margin:0;font-weight:650}.pc-heading>div:last-child{display:flex;gap:10px}.pc-heading button{font-size:12px;font-weight:500;min-height:36px;padding:8px 10px}.pc-work-area{display:flex;flex:1;min-height:0}.pc-conversation{display:flex;flex-direction:column;flex:1;min-width:0}.pc-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--pc-line) transparent;overflow-anchor:none}.pc-messages{max-width:932px;margin:auto;padding:24px 42px 35px}.pc-session-label{text-align:center;font-size:11px;color:var(--pc-muted);margin:2px 0 24px}.pc-message{display:flex;gap:14px;margin:0 0 31px}.pc-avatar{flex:none;width:28px;height:28px;display:grid;place-items:center;color:var(--pc-teal);font-size:24px;margin-top:2px}.pc-message-body{min-width:0;flex:1}.pc-author{font-size:12px;font-weight:650;line-height:28px;margin-bottom:7px}.pc-author span{font-weight:400;color:var(--pc-muted);font-size:11px;margin-left:8px}.pc-copy{font-size:16px;line-height:1.85;margin:0 0 16px;white-space:normal;overflow-wrap:anywhere}.pattern-chat h2{font-size:22px;line-height:1.5;margin:0 0 8px;font-weight:650}.pattern-chat h3{font-size:15px;margin:0;line-height:1.5}.pc-user{justify-content:flex-end;margin-bottom:25px}.pc-bubble{background:var(--pc-surface2);padding:14px 17px;border:1px solid var(--pc-line);border-radius:15px 15px 3px 15px;max-width:80%;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.pc-bubble img{display:block;max-height:200px;max-width:100%;margin:10px 0;object-fit:contain;cursor:zoom-in;border-radius:8px}.pc-bubble small{display:block;color:var(--pc-muted);font-size:11px}.pc-question-label{display:flex;gap:9px;align-items:center;color:var(--pc-teal);font-size:11px;margin-bottom:10px}.pc-question-label span{padding:2px 6px;background:var(--pc-accent);border-radius:4px}.pc-inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.pc-hint{font-size:12px;line-height:1.8;color:var(--pc-muted);margin:14px 0}.pc-error{color:#d8896d;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.pc-drop{border:1px dashed var(--pc-muted);padding:24px;background:var(--pc-surface);border-radius:14px;margin:22px 0;text-align:center}.pc-drop>span{font-size:30px;color:var(--pc-teal)}.pc-drop p{font-size:14px;color:var(--pc-muted)}.pc-drop small{display:block;font-size:11px;color:var(--pc-muted);margin-top:12px}
.pc-candidates{display:flex;gap:10px;overflow:auto;padding-bottom:10px;margin-bottom:20px}.pattern-chat .pc-candidate{width:150px;min-width:125px;background:var(--pc-surface);padding:8px;justify-content:flex-start}.pc-candidate img{width:100%;height:100px;object-fit:contain;background:#f7f6f2;border-radius:5px}.pc-candidate small{max-width:100%;overflow-wrap:anywhere}.pattern-chat .pc-candidate.selected{border-color:var(--pc-teal);background:var(--pc-accent)}.pc-result-heading{display:flex;justify-content:space-between;align-items:center;padding:14px 17px;gap:8px}.pc-result-heading h2{font-size:18px}.pc-result-heading small{font-size:11px;color:var(--pc-muted)}.pc-result-heading select{max-width:170px}.pc-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pc-result-grid:has(>.pc-card:only-child){grid-template-columns:1fr}.pc-patterns{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-card{border:1px solid var(--pc-line);background:var(--pc-surface);border-radius:12px;overflow:hidden;min-width:0}.pc-result-img{width:100%;height:auto;max-height:550px;object-fit:contain;background:#f7f6f2;display:block;cursor:zoom-in}.pc-patterns .pc-result-img{aspect-ratio:1}.pc-card.pc-effect .pc-result-img{height:clamp(400px,calc(100dvh - 240px),700px);max-height:700px}.pc-result-toolbar{padding:12px 15px;display:flex;gap:8px;flex-wrap:wrap}.pc-result-toolbar button,.pc-result-toolbar a{font-size:12px;min-height:38px;padding:8px 12px}.pc-section-title{padding:22px 0 14px}.pc-empty{padding:30px;text-align:center}.pc-empty p{font-size:12px;color:var(--pc-muted)}.pc-card>p{padding:0 15px 10px}.pc-card canvas{max-width:100%;height:auto;display:block;margin:auto}.pc-task{padding:17px 18px;border:1px solid var(--pc-line);border-radius:12px;margin:12px 0;background:var(--pc-surface)}.pc-task>div{display:flex;justify-content:space-between;gap:10px}.pc-task strong{font-size:13px}.pc-task span{font-size:11px;color:var(--pc-teal)}.pc-task p{font-size:12px;color:var(--pc-muted);line-height:1.75;margin:7px 0}.pc-task.failed{border-color:#bb8866}.pc-task button{font-size:12px;min-height:36px;margin-right:8px;padding:7px 12px}
.pc-composer-wrap{width:min(100%,932px);margin:auto;padding:0 42px 14px;flex:none}.pc-context{font-size:11px;color:var(--pc-muted);padding:0 7px 9px}.pc-composer{border:1px solid #47615f;border-radius:14px;background:var(--pc-surface);padding:13px 14px 9px;box-shadow:0 3px 15px #0001}.pc-composer:focus-within{border-color:var(--pc-teal)}.pc-drop.dragging,.pc-composer.dragging{outline:2px dashed var(--pc-teal);outline-offset:4px;background:var(--pc-accent)}.pattern-chat textarea{width:100%;resize:vertical;background:transparent;border:0;color:var(--pc-text);outline:none;font:inherit;line-height:1.7;min-height:44px;max-height:120px}.pattern-chat textarea::placeholder{color:var(--pc-muted)}.pc-composer-tools{display:flex;gap:12px;align-items:center}.pc-composer-tools>button:first-child{display:flex;flex-direction:row;gap:6px;border:0;color:var(--pc-muted);padding:3px 4px;font-size:20px;font-weight:400;min-height:30px}.pc-composer-tools button span{font-size:11px}.pc-composer-tools>span{font-size:10px;color:var(--pc-muted);margin-left:auto}.pattern-chat .pc-send{background:var(--pc-primary);color:var(--pc-on-primary);border:0;border-radius:9px;width:36px;min-height:36px;height:36px;padding:0;font-size:21px}.pc-composer-note{display:block;text-align:center;font-size:10px;color:var(--pc-muted);line-height:1.6;margin-top:9px}.pc-attachment{padding:9px;margin:6px 0;background:var(--pc-surface2);border-radius:9px;display:flex;align-items:center;gap:12px;font-size:12px}.pc-attachment img{height:56px;width:45px;object-fit:contain}.pc-attachment>div{min-width:0;flex:1}.pc-attachment strong{display:block;font-size:11px;overflow-wrap:anywhere}.pc-attachment label{display:flex;align-items:center;gap:8px;margin-top:7px}.pc-attachment select{width:auto}.pc-attachment>button{margin-left:auto;padding:5px 10px}.pattern-chat select,.pattern-chat input{font:inherit;font-size:13px;background:var(--pc-surface2);border:1px solid var(--pc-line);color:var(--pc-text);padding:9px;border-radius:7px;min-width:0}
.pc-summary{width:272px;flex:none;border-left:1px solid var(--pc-line);padding:27px 22px;overflow:auto;scrollbar-width:thin;background:var(--pc-bg)}.pc-summary.pc-closed{display:none}.pc-summary-heading{font-size:14px;font-weight:650;display:flex;justify-content:space-between;align-items:center}.pc-summary-heading button{border:0;min-height:25px;padding:2px 7px}.pc-summary p{font-size:11px;line-height:1.8;color:var(--pc-muted);margin:8px 0 20px;overflow-wrap:anywhere}.pc-summary-thumb{display:flex;align-items:center;gap:11px;background:var(--pc-surface);padding:9px;border-radius:9px;border:1px solid var(--pc-line)}.pc-summary-thumb img{width:46px;height:62px;object-fit:contain;border-radius:4px}.pc-summary-thumb strong{font-size:12px}.pc-summary dl{display:grid;gap:16px;margin:24px 0}.pc-summary dl>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.pc-summary dt{font-size:11px;color:var(--pc-muted)}.pc-summary dd{margin:0;font-size:12px;font-weight:550;text-align:right;overflow-wrap:anywhere}.pc-summary>button{width:100%;font-size:12px;margin-bottom:8px}.pc-summary h3{margin-top:24px;font-size:13px}.pc-summary details{margin:14px 0;font-size:11px;color:var(--pc-muted)}.pc-summary .pc-notes{white-space:pre-wrap}.pc-edit label{display:block;margin:16px 0}.pc-edit input,.pc-edit select,.pc-edit textarea{display:block;width:100%;margin-top:8px}.pc-edit textarea{min-height:140px}.pc-edit footer{display:flex;justify-content:flex-end;gap:10px}
@media(min-width:1700px){.pc-messages,.pc-composer-wrap{max-width:1050px}.pc-summary{width:300px;padding:30px}.pc-copy{font-size:17px}}
.pc-print-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:var(--pc-surface);border:1px solid var(--pc-line);border-radius:10px}.pc-result-grid.pc-pieces{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.pc-piece-image{aspect-ratio:3/4!important;width:100%;height:auto!important;object-fit:contain;background:#f7f6f2;display:block;max-height:none!important}.pc-piece-image canvas{width:100%;height:auto}.pc-piece-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#647b75}.pc-piece-empty span{font-size:12px}.pc-piece-body{padding:14px}.pc-piece-print{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:600;margin-bottom:12px}.pattern-chat .pc-piece-edit{width:100%;font-size:15px}.pc-piece-body>button{width:100%}.pc-piece-body .pc-result-toolbar{padding:12px 0}.pc-piece>select{margin:0 12px 12px;max-width:calc(100% - 24px)}.pc-legacy{margin-top:20px;color:var(--pc-muted);font-size:12px}.pc-legacy>summary{cursor:pointer;padding:12px 0}.pc-piece-dialog{width:min(1000px,95vw)!important;max-height:94dvh}.pc-piece-dialog h2{font-size:22px}.pc-piece-dialog>form>p{font-size:13px}.pc-piece-editor{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:center}.pc-piece-stage{aspect-ratio:3/4;max-height:65dvh;margin:auto;max-width:100%;background:#f7f6f2}.pc-piece-stage img,.pc-piece-stage canvas{width:100%;height:100%;object-fit:contain;display:block}.pc-piece-stage [hidden]{display:none}.pc-piece-controls label{display:block;margin:17px 0;font-size:14px}.pc-piece-controls select,.pc-piece-controls input{display:block;width:100%;margin-top:10px}.pc-piece-controls output{float:right}.pc-piece-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.pc-piece-dialog canvas{touch-action:none}
.pc-piece-print{display:block}.pc-piece-print select{display:block;width:100%;margin-top:8px}.pc-piece-dialog{padding:0!important;overflow:hidden!important}.pc-piece-dialog>form{max-height:92dvh;display:flex;flex-direction:column;padding:22px 24px 0;overflow:auto}.pc-piece-dialog .pc-piece-editor{flex:none}.pc-piece-dialog footer{position:sticky;bottom:0;z-index:2;flex:none;background:var(--card,#fff);padding:14px 0;border-top:1px solid var(--border,#d8e1dd);margin-top:auto}.pc-piece-dialog footer button{min-height:46px;font-size:14px}body.dark .pc-piece-dialog footer{background:#19262b}.pc-piece-dialog .pc-piece-stage{max-height:56dvh}.pc-piece-dialog [data-layout-status]{margin:12px 0!important}
.pc-progress{display:grid;gap:9px;background:var(--pc-accent);padding:14px 16px;border:1px solid var(--pc-line);border-radius:10px;margin:14px 0}.pc-progress strong{font-size:13px;color:var(--pc-teal)}.pc-progress span{font-size:11px;color:var(--pc-muted)}.pattern-chat progress{display:block;width:100%;height:7px;accent-color:var(--pc-teal);border:0;border-radius:9px;overflow:hidden}.pc-piece-working{margin-top:0}.pattern-chat progress::-webkit-progress-bar{background:var(--pc-line)}.pattern-chat progress::-webkit-progress-value{background:var(--pc-teal)}
.pc-current-reply{font-size:15px;line-height:1.7;margin-bottom:17px}.pc-question-card{border:1px solid var(--pc-line);border-radius:13px;background:var(--pc-surface);overflow:hidden}.pc-question-head{padding:19px 20px 14px}.pc-question-head .pc-question-label{margin-bottom:7px;font-weight:600}.pattern-chat .pc-question-head h2{font-size:19px;line-height:1.45;margin:0;font-weight:700}.pc-question-options{display:grid;gap:7px;padding:0 12px}.pc-question-option{display:flex;gap:12px;align-items:center;min-height:67px;padding:11px 13px;border:1px solid var(--pc-line);border-radius:9px;cursor:pointer;overflow-wrap:anywhere}.pc-question-option:hover{background:var(--pc-surface2)}.pc-question-option:has(input:checked){background:var(--pc-accent);border-color:var(--pc-teal)}.pc-question-option:has(input:disabled){cursor:default}.pattern-chat .pc-question-option input{appearance:none;-webkit-appearance:none;width:17px;height:17px;border:1px solid var(--pc-muted);border-radius:50%;margin:0;padding:0;flex-shrink:0;display:grid;place-items:center;background:transparent}.pattern-chat .pc-question-option input:checked{border-color:var(--pc-teal)}.pc-question-option input:checked:after{content:"";width:9px;height:9px;border-radius:50%;background:var(--pc-teal)}.pc-question-option>span{min-width:0}.pc-question-option strong{font-size:14px;font-weight:650;line-height:1.5;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.pc-recommended{font-size:10px;font-weight:500;border-radius:5px;background:var(--pc-accent);color:var(--pc-teal);border:1px solid var(--pc-line);padding:1px 5px}.pc-option-description{display:block;font-size:11px;line-height:1.6;color:var(--pc-muted);margin-top:3px}.pc-question-footer{padding:14px 17px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.pc-question-footer p{font-size:11px;line-height:1.6;color:var(--pc-muted);margin:0}.pc-question-footer button{flex-shrink:0;white-space:nowrap;font-size:13px}.pc-question-free{padding:0 20px 16px;font-size:13px;color:var(--pc-muted);line-height:1.8}.pc-question-free .pc-drop{margin:0}.pc-question-pieces{display:grid;gap:8px;padding:0 12px}.pc-question-pieces .pc-print-choice{padding:12px;font-size:14px}.pc-understanding{display:grid;gap:10px;border:1px solid var(--pc-teal);background:var(--pc-accent);border-radius:12px;padding:18px 20px}.pc-understanding strong{font-size:16px;color:var(--pc-teal)}.pc-understanding span{font-size:13px;line-height:1.7;color:var(--pc-muted)}.pc-understanding button{justify-self:start}
@media(max-width:680px){.pc-piece-editor{grid-template-columns:1fr}.pc-piece-stage{max-height:42dvh}.pc-piece-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.pc-piece-controls label{margin:10px 0}.pc-piece-dialog h2{font-size:18px}.pc-piece-dialog{padding:18px}}
@media(max-width:1200px){.pc-summary{width:235px;padding:23px 16px}.pc-messages{padding:25px 23px}.pc-composer-wrap{padding-left:23px;padding-right:23px}.pc-heading{padding:18px 23px}}
@media(max-width:1050px){.pc-summary{position:absolute;right:0;top:145px;bottom:0;width:280px;box-shadow:0 15px 40px #0004;z-index:5}.pc-messages,.pc-composer-wrap{max-width:850px}}
@media(max-width:680px){.pattern-chat{height:calc(100dvh - 60px)}.pc-heading{min-height:75px;padding:14px 16px}.pc-heading h1{font-size:16px}.pc-heading>div:last-child{gap:4px}.pc-heading button{font-size:11px;padding:6px}.pc-messages{padding:20px 15px 25px}.pc-composer-wrap{padding:0 15px 11px}.pc-message{gap:7px}.pc-avatar{width:20px;font-size:20px}.pc-copy{font-size:15px}.pc-bubble{max-width:94%;font-size:13px}.pc-patterns{grid-template-columns:1fr}.pc-result-grid{gap:9px}.pc-result-heading{padding:11px;align-items:flex-start}.pc-result-heading h2{font-size:15px}.pc-composer-tools>span{display:none}.pattern-chat .pc-send{margin-left:auto}.pc-composer-note{font-size:9px}.pc-summary{top:135px}.pc-result-heading select{max-width:115px}.pc-context{font-size:10px}.pc-result-grid.pc-pieces{grid-template-columns:1fr}}
@media(min-width:681px) and (max-height:780px){.pc-heading{min-height:64px;padding-top:10px;padding-bottom:10px}.pc-heading small{margin-bottom:4px}.pc-messages{padding-top:14px;padding-bottom:8px}.pc-session-label{margin-bottom:14px}.pc-message{margin-bottom:12px}.pc-user{margin-bottom:16px}.pc-bubble{padding:9px 14px}.pc-current-reply{margin-bottom:10px;line-height:1.6}.pc-question-head{padding:12px 17px 10px}.pc-question-head .pc-question-label{margin-bottom:4px}.pc-question-options{gap:5px;padding:0 10px}.pc-question-option{min-height:57px;padding:8px 12px}.pc-option-description{margin-top:1px}.pc-question-footer{padding:10px 15px}.pc-composer-wrap{padding-top:5px;padding-bottom:7px}.pc-context{padding-bottom:5px}.pc-composer{padding:8px 12px}.pc-composer textarea{min-height:36px;height:36px;line-height:1.5;resize:none}.pc-composer-note{margin-top:5px}}
@media(max-width:680px){.pc-question-head{padding:15px 14px 12px}.pattern-chat .pc-question-head h2{font-size:17px}.pc-question-options{padding:0 8px;gap:6px}.pc-question-option{padding:10px;gap:9px;min-height:63px}.pc-question-option strong{font-size:13px;gap:6px}.pc-question-footer{padding:12px;gap:9px;align-items:center;flex-wrap:wrap}.pc-question-footer p{flex:1;min-width:135px}.pc-question-footer button{font-size:12px;margin-left:auto}.pc-question-free{padding:0 14px 14px}.pc-question-free .pc-drop{padding:18px 12px}.pc-question-pieces{padding:0 8px}.pc-question-pieces .pc-print-choice{font-size:13px}.pc-question-pieces select{max-width:110px}.pc-understanding{padding:15px}.pc-current-reply{font-size:14px}}
@media(max-width:480px){.pc-heading{display:block;min-height:auto;padding:10px 14px}.pc-heading small{display:none}.pc-heading>div:last-child{margin-top:8px;justify-content:space-between}.pc-heading button{min-height:32px}.pc-summary{top:143px}}
/* Keep question radios out of the approved layout's full-width text-input rule. */
body.approved-ui #pattern-workspace.pattern-chat .pc-question-option{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}
body.approved-ui #pattern-workspace.pattern-chat .pc-question-option>input[type=radio]{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;flex:0 0 18px;align-self:center;margin:0;padding:0;border:1px solid var(--pc-muted);border-radius:50%;background:transparent;display:grid;place-items:center}
body.approved-ui #pattern-workspace.pattern-chat .pc-question-option>input[type=radio]:checked{border-color:var(--pc-teal)}
body.approved-ui #pattern-workspace.pattern-chat .pc-question-option>span{flex:1;min-width:0}
body.approved-ui #pattern-workspace.pattern-chat .pc-question-card .pc-question-footer>button.primary{background:var(--pc-primary);border-color:var(--pc-primary);color:var(--pc-on-primary)}
body.approved-ui #pattern-workspace.pattern-chat .pc-inline-actions>button.primary{background:var(--pc-primary);border-color:var(--pc-primary);color:var(--pc-on-primary)}

/* Compact question cards and uploads inside the composer, approved as a batch. */
.pattern-chat .pc-question-head{padding:14px 16px 11px}.pattern-chat .pc-question-head h2{font-size:17px}.pattern-chat .pc-question-label{margin-bottom:5px}
.pattern-chat .pc-question-options{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;padding:0 14px}
.pattern-chat .pc-question-option{min-height:48px;padding:9px 11px;gap:8px}.pattern-chat .pc-question-option strong{font-size:13px;gap:6px}
.pattern-chat .pc-question-footer{padding:11px 14px;gap:10px}.pattern-chat .pc-question-footer button{min-height:38px;padding:8px 12px}
.pc-member-counts{padding:0 14px;display:grid;gap:8px}.pc-member-counts fieldset{min-width:0;display:flex;align-items:center;gap:12px;padding:0;margin:0;border:0}.pc-member-counts legend{float:left;width:42px;flex:none;font-size:13px;font-weight:650;line-height:48px}.pc-member-counts fieldset>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex:1;min-width:0}.pc-member-counts .pc-question-option{border-radius:7px}
.pc-composer [data-chat-pending]:not(:empty){max-height:180px;overflow:auto;margin-bottom:8px}.pc-composer .pc-attachment{margin:0 0 6px;padding:7px}.pc-composer .pc-attachment img{height:48px}.pc-composer .pc-attachment select{padding:5px;min-height:30px;flex:1;min-width:0}.pc-composer .pc-attachment label{margin-top:4px;white-space:nowrap}
@media(max-width:680px){.pattern-chat .pc-question-options{grid-template-columns:1fr}.pattern-chat .pc-question-head{padding:12px}.pattern-chat .pc-question-head h2{font-size:16px}.pc-member-counts{padding:0 10px}.pc-member-counts fieldset{gap:7px}.pc-member-counts legend{width:30px}.pc-member-counts .pc-question-option{padding:8px 5px;gap:5px}.pc-member-counts .pc-question-option strong{font-size:12px}.pc-member-counts fieldset>div{gap:4px}.pc-composer [data-chat-pending]:not(:empty){max-height:140px}}

/* Compact icon questions and result cards approved in round-two preview. */
.pattern-chat .pc-style-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:0 12px 10px;max-height:254px;overflow:auto;overscroll-behavior:contain}
.pattern-chat .pc-style-option{display:flex;flex-direction:column;gap:3px;min-width:0;min-height:74px;padding:6px 4px;font-size:10px;line-height:1.35;white-space:normal;justify-content:flex-start}
.pattern-chat .pc-style-option img{width:41px;height:41px;object-fit:contain;border-radius:5px;background:#fff}
.pattern-chat .pc-style-option.selected{background:var(--pc-accent);border-color:var(--pc-teal)}
.pattern-chat .pc-neckline-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:0 14px}
.pattern-chat .pc-neckline-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:88px;padding:8px 5px;font-size:12px;white-space:normal}
.pattern-chat .pc-neckline-option svg{width:48px;height:43px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pattern-chat .pc-neckline-detail{stroke:var(--pc-teal)}
.pattern-chat .pc-neckline-option.selected{background:var(--pc-accent);border-color:var(--pc-teal)}
.pc-neckline-selected{display:flex;align-items:center;gap:8px;padding:10px 13px;margin-bottom:10px;border:1px solid var(--pc-line);border-radius:11px;background:var(--pc-surface);font-size:13px;line-height:1.5}
.pc-neckline-selected>span{color:var(--pc-teal)}.pc-neckline-selected strong{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.pattern-chat .pc-neckline-selected button{flex:none;min-height:30px;padding:5px 8px;font-size:11px}
@media(max-width:680px){.pattern-chat .pc-neckline-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 12px}.pattern-chat .pc-neckline-option{min-height:76px;font-size:12px}.pc-neckline-selected{padding:9px 11px;font-size:12px}}
.pattern-chat .pc-style-summary{display:block!important}.pattern-chat .pc-style-summary dt{margin-bottom:5px}.pattern-chat .pc-style-summary dd{display:flex;align-items:center;gap:7px;text-align:left!important}.pc-style-summary dd img{width:34px;height:34px;object-fit:contain;background:#fff;border-radius:5px}.pc-style-summary dd span{flex:1;min-width:0;overflow-wrap:anywhere}.pattern-chat .pc-style-summary dd button{width:auto;margin:0;min-height:28px;padding:4px 7px;font-size:11px}
.pattern-chat .pc-result-grid.pc-lines,.pattern-chat .pc-result-grid.pc-lines:has(>.pc-card:only-child){grid-template-columns:repeat(2,minmax(0,300px));align-items:start}.pattern-chat .pc-result-grid.pc-lines:has(>.pc-card:nth-child(3)){grid-template-columns:repeat(3,minmax(0,300px))}.pc-lines>.pc-card{max-width:300px}.pc-lines .pc-result-img{aspect-ratio:4/3;max-height:225px;object-fit:contain}
.pc-piece-group{margin-top:14px}.pc-piece-group>header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.pattern-chat .pc-piece-group>header h3{font-size:14px}.pc-piece-group>header small{font-size:11px;color:var(--pc-muted)}
.pattern-chat .pc-result-grid.pc-pieces,.pattern-chat .pc-result-grid.pc-pieces:has(>.pc-card:only-child){grid-template-columns:repeat(var(--pc-piece-count),minmax(0,1fr));max-width:calc(var(--pc-piece-count)*220px + (var(--pc-piece-count) - 1)*12px);width:100%;align-items:start;gap:12px}.pc-pieces>.pc-card{max-width:220px}.pc-pieces .pc-result-heading{padding:5px 8px;min-height:34px;font-size:12px}.pc-pieces .pc-result-heading select{width:auto;max-width:110px;min-height:25px;height:25px;padding:2px 3px;font-size:10px}.pc-pieces .pc-result-heading small{font-size:10px}
.pc-pieces .pc-piece-image{height:175px!important;max-height:175px!important;aspect-ratio:auto!important;object-fit:contain}.pc-pieces .pc-piece-image canvas{width:100%;height:100%;max-height:100%;object-fit:contain}.pc-pieces .pc-piece-empty{font-size:12px;padding:8px}.pc-pieces .pc-piece-empty span{font-size:10px;text-align:center}.pc-pieces .pc-piece-body{padding:6px 8px}.pc-pieces .pc-piece-print{font-size:11px;line-height:1.25;gap:5px;margin:0}.pc-pieces .pc-piece-print select{width:76px;min-height:26px;height:26px;padding:3px 5px;font-size:11px}.pattern-chat .pc-pieces .pc-piece-edit{min-height:29px;margin:6px 0 5px;padding:5px 4px;font-size:11px;line-height:1.3}.pc-pieces .pc-piece-body .pc-result-toolbar{padding:0;gap:5px}.pc-pieces .pc-result-toolbar button,.pc-pieces .pc-result-toolbar a{flex:1;min-width:0;max-width:100%;min-height:32px;padding:4px;font-size:11px;line-height:1.2;gap:2px;overflow-wrap:anywhere}.pc-pieces .pc-result-toolbar button small{font-size:9px}.pc-pieces .pc-piece-notice{font-size:11px;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}.pc-pieces .pc-piece-working{padding:8px;margin:0 0 7px}.pc-pieces .pc-piece-working span{font-size:10px}
.pc-result-img[data-zoom]:focus-visible,.pc-piece-image[data-zoom]:focus-visible,.pc-bubble img[data-zoom]:focus-visible,.pc-summary-thumb img[data-zoom]:focus-visible{outline:3px solid var(--pc-teal);outline-offset:-3px}.pc-piece-image[data-zoom],.pc-summary-thumb img[data-zoom]{cursor:zoom-in}

/* Approved JPG export controls; retain the grouped, compact image sizes. */
.pc-independent-lines>progress{display:block;width:100%;height:6px;accent-color:var(--pc-teal)}.pc-independent-lines>.pc-hint{margin-bottom:6px}.pc-line-group{margin:12px 0}.pc-line-group>header{display:flex;align-items:center;gap:9px;margin-bottom:7px}.pattern-chat .pc-line-group h3{font-size:14px}.pc-line-group>header small,.pc-line-save-all>small{font-size:11px;color:var(--pc-muted)}
.pc-line-parts{display:grid;grid-template-columns:repeat(var(--pc-line-count),minmax(0,220px));gap:12px;align-items:start}.pc-line-part{min-width:0;max-width:220px}.pc-line-part-state{display:flex;justify-content:space-between;gap:5px;color:var(--pc-muted);font-size:10px;line-height:18px;padding:0 3px 3px}.pc-line-part .pc-result-heading{padding:5px 8px;min-height:29px;font-size:12px}.pc-line-part .pc-result-heading>small{display:none}.pc-line-part .pc-result-img{height:175px;max-height:175px;object-fit:contain;aspect-ratio:3/4}.pc-line-part .pc-result-toolbar{display:flex;flex-wrap:nowrap;gap:4px;padding:6px}.pc-line-part .pc-result-toolbar button,.pc-line-part .pc-result-toolbar a{flex:1;min-width:0;min-height:38px;padding:4px 3px;font-size:10px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.pc-line-part .pc-result-toolbar small{font-size:9px}.pc-line-part .pc-empty{min-height:254px;padding:9px;display:flex;flex-direction:column;align-items:stretch}.pc-line-part .pc-empty>strong{font-size:12px}.pc-line-part .pc-empty>p{margin:auto 0;padding:10px 0;max-height:170px;overflow:auto;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.pc-line-part .pc-empty .pc-result-toolbar{padding:5px 0 0;margin-top:auto}.pc-line-part .pc-card>.pc-error{font-size:11px;padding:0 8px;margin:4px 0 6px}.pc-line-save-all{align-items:center;padding:6px 0}.pattern-chat .pc-line-count{font-size:12px;font-weight:500}
.pattern-chat .pc-send{display:grid;place-items:center;flex:none}.pattern-chat .pc-send svg{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;pointer-events:none}
.pc-save-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px;color:var(--pc-muted);font-size:11px;line-height:1.5;min-width:0}.pc-save-options>span{min-width:0;overflow-wrap:anywhere}.pc-save-options [data-chat-save-directory]{flex:none;min-height:28px;padding:3px 6px;border:0;background:transparent;color:var(--pc-teal);font-size:11px;text-decoration:underline;text-underline-offset:3px}
.pc-save-notice{margin:0 0 10px;color:var(--pc-muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}.pc-save-notice:empty,.pc-save-options:empty{display:none}
.pattern-chat .pc-result-toolbar [data-chat-save-all]{max-width:100%;background:var(--pc-accent);border-color:var(--pc-teal);color:var(--pc-teal);font-weight:600;text-align:center;white-space:normal;overflow-wrap:anywhere}.pattern-chat .pc-result-toolbar [data-chat-save-all]:hover{border-color:var(--pc-teal);background:var(--pc-surface2)}
.pc-pieces .pc-piece-body .pc-result-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:4px}.pc-pieces .pc-result-toolbar button,.pc-pieces .pc-result-toolbar a{min-width:0;min-height:32px;height:auto;padding:4px;line-height:1.25;white-space:normal}
.pc-pieces .pc-result-toolbar [data-chat-download]{grid-column:1;grid-row:2}.pc-pieces .pc-result-toolbar [data-chat-save-all]{grid-column:2;grid-row:2}.pc-pieces .pc-result-toolbar>:only-child{grid-column:1/-1}

.pc-line-part-card{min-height:254px;display:flex;flex-direction:column}.pc-line-part-card>.pc-result-toolbar{margin-top:auto}.pc-card>.pc-error{overflow-wrap:anywhere;max-height:96px;overflow:auto}.pc-task>div>strong{display:flex;align-items:center;gap:7px}.pc-task-feedback{display:inline-flex}.pc-task-feedback .pc-media-symbol{width:16px;height:16px;flex:none}
/* Generation and image decoding share the existing card footprint. */
.pc-media{position:relative;isolation:isolate;min-height:175px;display:grid;place-items:center;overflow:hidden;background:#f7f6f2;color:var(--pc-muted)}.pc-media>.pc-result-img,.pc-media>.pc-piece-image{grid-area:1/1;max-width:100%}.pc-media-feedback{grid-area:1/1;position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;text-align:center;max-width:100%}.pc-media-feedback strong{font-size:13px;line-height:1.5;color:var(--pc-text)}.pc-media-feedback small{font-size:11px;line-height:1.5;color:var(--pc-muted)}.pc-media-feedback button{font-size:11px;min-height:32px;padding:5px 9px}.pc-media-feedback [hidden]{display:none!important}.pc-media[data-media-state="ready"]>.pc-media-feedback{display:none}.pc-media:not([data-media-state="ready"])>img{opacity:0}.pc-media[data-media-state="error"]{background:var(--pc-surface2)}
.pc-media-symbol{display:block;width:24px;height:24px;border:2px solid var(--pc-line);border-radius:50%;position:relative;color:var(--pc-teal)}:is(.pc-media,.pc-task-feedback)[data-media-state="running"] .pc-media-symbol,.pc-media[data-media-state="loading"] .pc-media-symbol,.pc-media[data-media-state="receiving"] .pc-media-symbol{border-top-color:var(--pc-teal);animation:pc-media-turn 1.3s linear infinite;animation-play-state:paused}.pc-media[data-media-state="queued"] .pc-media-symbol:after,.pc-media[data-media-state="preparing"] .pc-media-symbol:after{content:"";position:absolute;width:6px;height:7px;left:10px;top:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor}.pc-media[data-media-state="failed"] .pc-media-symbol:after,.pc-media[data-media-state="error"] .pc-media-symbol:after{content:"!";position:absolute;inset:0;line-height:20px;color:#b86b42;font-weight:700}.pc-media[data-media-state="pending_recovery"] .pc-media-symbol:after,.pc-media[data-media-state="outcome_unknown"] .pc-media-symbol:after{content:"↻";position:absolute;inset:0;line-height:20px}.pc-media[data-media-state="paused"] .pc-media-symbol:after{content:"Ⅱ";position:absolute;inset:0;line-height:20px}.pc-media-visible .pc-media-symbol{animation-play-state:running!important}.pc-media-hidden .pc-media-symbol{animation-play-state:paused!important}
.pc-line-part .pc-media,.pc-pieces .pc-piece-media{height:175px;min-height:175px}.pc-lines .pc-media{height:225px;min-height:175px}.pc-patterns .pc-media{aspect-ratio:1;min-height:175px}.pc-patterns .pc-media>.pc-result-img{height:100%;width:100%;object-fit:contain}.pc-card.pc-effect .pc-media{height:clamp(400px,calc(100dvh - 240px),700px)}.pc-card.pc-effect .pc-media>.pc-result-img{height:100%;max-height:100%}.pc-line-part .pc-media-feedback,.pc-pieces .pc-media-feedback{padding:8px;gap:6px}.pc-line-part .pc-media-feedback strong,.pc-pieces .pc-media-feedback strong{font-size:12px}.pc-line-part .pc-media-feedback small,.pc-pieces .pc-media-feedback small{font-size:10px}.dark .pc-media{background:var(--pc-surface2)}.dark .pc-media[data-media-state="ready"]{background:#f7f6f2}
@keyframes pc-media-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.pc-media .pc-media-symbol,.pc-task-feedback .pc-media-symbol{animation:none!important}}
@media(max-width:680px){.pc-line-part-card{min-height:244px}.pc-line-part .pc-media,.pc-pieces .pc-piece-media{height:165px;min-height:165px}.pc-lines .pc-media{height:165px;min-height:165px}.pc-line-parts{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(146px,min(220px,calc((100% - 8px)/2)));max-width:100%;overflow-x:auto;gap:8px;padding-bottom:6px;scroll-snap-type:x proximity}.pc-line-part{scroll-snap-align:start}.pc-line-part .pc-result-img{height:165px;max-height:165px}.pc-line-part .pc-empty{min-height:244px}.pc-line-part .pc-result-toolbar{gap:3px;padding:5px}.pc-line-part .pc-result-toolbar button,.pc-line-part .pc-result-toolbar a{font-size:10px;min-height:37px;padding:4px 2px}.pc-line-part .pc-result-toolbar small{font-size:8px}.pattern-chat .pc-style-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:249px;padding:0 9px 9px;gap:5px}.pattern-chat .pc-style-option{font-size:9px;min-height:72px}.pattern-chat .pc-style-option img{width:38px;height:38px}.pattern-chat .pc-result-grid.pc-lines,.pattern-chat .pc-result-grid.pc-lines:has(>.pc-card:only-child){grid-template-columns:repeat(2,minmax(0,1fr))}.pattern-chat .pc-result-grid.pc-lines:has(>.pc-card:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}.pattern-chat .pc-result-grid.pc-pieces,.pattern-chat .pc-result-grid.pc-pieces:has(>.pc-card:only-child){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(140px,min(220px,calc((100% - 8px)/2)));max-width:100%;overflow-x:auto;gap:8px;padding-bottom:6px;scroll-snap-type:x proximity}.pc-pieces>.pc-card{scroll-snap-align:start}.pc-pieces .pc-result-heading{font-size:11px;padding:4px 5px;min-height:32px;gap:3px;flex-wrap:wrap}.pc-pieces .pc-result-heading select{font-size:9px;max-width:95px;min-height:24px;height:24px}.pc-pieces .pc-piece-image{height:165px!important;max-height:165px!important}.pc-pieces .pc-piece-print{font-size:10px;flex-wrap:wrap;gap:3px}.pc-pieces .pc-piece-print select{max-width:100%;min-width:0;width:64px;font-size:10px}.pc-pieces .pc-piece-body{padding:5px}.pattern-chat .pc-pieces .pc-piece-edit{font-size:10px;padding:4px 2px}.pc-pieces .pc-result-toolbar{gap:3px}.pc-pieces .pc-result-toolbar button,.pc-pieces .pc-result-toolbar a{font-size:10px;min-height:31px;padding:4px 3px}.pc-pieces .pc-result-toolbar button small{font-size:8px}.pc-lines>.pc-empty{padding:10px}.pc-lines>.pc-empty strong{font-size:12px}.pc-lines>.pc-empty p{padding:0;margin:8px 0;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.pc-lines .pc-result-toolbar{padding:8px;gap:5px}.pc-lines>.pc-empty .pc-result-toolbar{padding:0}.pc-lines .pc-result-toolbar button,.pc-lines .pc-result-toolbar a{min-width:0;max-width:100%;padding:6px 8px;font-size:11px;overflow-wrap:anywhere}.pc-lines>.pc-empty .pc-result-toolbar button{width:100%}.pc-save-options{gap:4px;font-size:10px}.pc-save-options [data-chat-save-directory]{font-size:10px}.pc-save-notice{font-size:10px}.pc-pieces .pc-piece-body .pc-result-toolbar{gap:3px}.pc-pieces .pc-result-toolbar button,.pc-pieces .pc-result-toolbar a{font-size:10px;min-height:34px;padding:4px 3px}}
