/*
 * HyperUI component adaptations for ZooWork editor surfaces.
 * Source: reference/hyperui/{dialog,underline-tabs,text-input,textarea,
 * pill-tabs,image-card,media-row,status-badge,button-group}.html.
 * HyperUI is Copyright (c) Mark Mead, MIT; see reference/hyperui/LICENSE.
 * These semantic CSS translations retain the application's existing DOM,
 * native dialogs, accessible controls, asset rendering and task behavior.
 * The editor shell below follows the confirmed Figma panel; other dialogs
 * continue to retain their native application behavior.
 */

/* Dialog: rounded-lg bg-white shadow-lg backdrop:bg-black/50. */
.hyperui-app :is(.reference-viewer,.image-edit-dialog,.ceo-photo-dialog,.qr-code-dialog,.composition-dialog,.visual-style-dialog,.brand-settings-dialog){
  background:var(--hui-paper);color:var(--hui-ink);border:1px solid var(--hui-border);border-radius:var(--hui-radius);box-shadow:0 20px 50px rgb(0 0 0 / .16);
}
.hyperui-app dialog::backdrop{background:rgb(0 0 0 / .5);backdrop-filter:none}
.hyperui-app .detail-dialog{color:var(--hui-ink)}

.hyperui-app .close-detail{color:#fff!important;background:rgb(255 255 255 / .14)!important;border:1px solid rgb(255 255 255 / .25)}
.hyperui-app .close-detail:hover{background:rgb(255 255 255 / .24)!important}
.hyperui-app .editor-header{background:var(--hui-paper);border:1px solid var(--hui-border);border-radius:var(--hui-radius);}

.hyperui-app .editor-header .panel-heading h1{font-family:inherit;font-size:20px;font-weight:600;letter-spacing:-.3px;line-height:1.4;color:var(--hui-ink)}
.hyperui-app .panel-heading>span{font-size:13px;line-height:1.5;color:var(--hui-muted);}
.hyperui-app .detail-shell .detail-panel{background:var(--hui-paper);border:1px solid var(--hui-border);border-radius:var(--hui-radius);box-shadow:none}
.hyperui-app .panel-scroll{scrollbar-color:#d4d4d4 transparent}
.hyperui-app .panel-footer{border-top:1px solid var(--hui-border);background:var(--hui-paper)}

.hyperui-app .footer-tools .saved{color:var(--hui-brand)}
.hyperui-app .preview-area,.hyperui-app .detail-dialog[data-step="content"] .preview-area,.hyperui-app .detail-dialog.multi-output-mode .preview-area{
  background:var(--hui-subtle);border:1px solid var(--hui-border);border-radius:var(--hui-radius);isolation:auto;
}
.hyperui-app .preview-area:before{display:none}
.hyperui-app .preview-top,.hyperui-app .detail-dialog[data-step="content"] .preview-top,.hyperui-app .detail-dialog.multi-output-mode .preview-top{color:var(--hui-muted);font-size:13px;line-height:1.6;}

.hyperui-app .preview-stage>img{box-shadow:0 2px 12px rgb(0 0 0 / .08)}
.hyperui-app .preview-bottom,.hyperui-app .preview-mode{font-size:12px;color:var(--hui-muted)}
.hyperui-app .swatches span{border-color:var(--hui-border)}

.hyperui-app .detail-dialog[data-step="content"] .reference-board[data-count="0"]{display:flex;flex:1;align-items:flex-end;justify-content:center}
.hyperui-app .reference-board[data-count="0"]>.field-hint{margin:0;text-align:center}
.hyperui-app .reference-board figure>button{background:#eee;border:1px solid var(--hui-border);border-radius:var(--hui-radius)}
.hyperui-app .reference-board figcaption{font-size:13px;color:var(--hui-muted)}
.hyperui-app .board-missing{color:var(--hui-muted);font-size:13px;border:1px dashed #d4d4d4;border-radius:var(--hui-radius)}
.hyperui-app .view-existing-result{font-size:13px;color:var(--hui-ink)}

/* Underline tabs: equal columns, transparent inactive border, 2px active line. */
.hyperui-app .editor-header .panel-tabs{border-bottom:1px solid var(--hui-border);}
.hyperui-app .editor-header .panel-tabs button{font-size:14px;font-weight:500;line-height:1.5;color:var(--hui-muted);border-radius:0}
.hyperui-app .editor-header .panel-tabs button:hover:enabled{color:var(--hui-ink);background:var(--hui-bg)}
.hyperui-app .editor-header .panel-tabs button[aria-selected="true"]{color:var(--hui-ink)}
.hyperui-app .editor-header .panel-tabs button[aria-selected="true"]:after{left:0;right:0;bottom:0;background:var(--hui-ink);height:2px}
.hyperui-app .copy-mode-heading{border-bottom:1px solid var(--hui-border)}

.hyperui-app .copy-mode-tabs>[role="tab"]{padding:14px 6px;font-size:14px;font-weight:500;color:var(--hui-muted);line-height:1.5;border-radius:0}
.hyperui-app .copy-mode-tabs>[data-copy-mode="ai"]{padding-right:34px}
.hyperui-app .copy-mode-tabs>[role="tab"][aria-selected="true"]{color:var(--hui-ink)}
.hyperui-app .copy-mode-tabs>[role="tab"][aria-selected="true"]:after{left:0;right:0;bottom:-1px;background:var(--hui-ink)}
.hyperui-app .copy-mode-tabs>[role="tab"]:hover:enabled{color:var(--hui-ink)}
.hyperui-app .copy-mode-tabs>[role="tab"]:focus-visible{outline:2px solid #666;outline-offset:-3px;box-shadow:none;border-radius:4px}
.hyperui-app .copy-mode-help{left:calc((100% - 12px)/4 + 4px);top:12px}
.hyperui-app .copy-source-info{color:var(--hui-muted)}
.hyperui-app .copy-source-info:hover{color:var(--hui-ink)}
.hyperui-app .copy-source-tooltip{border-radius:var(--hui-radius);background:var(--hui-ink);color:#fff;padding:10px 12px;font-size:12px;box-shadow:0 4px 12px rgb(0 0 0 / .12)}

/* Inputs: neutral labels, rounded borders and soft focus shadows. */

.hyperui-app .field-group>label,.hyperui-app .field-label,.hyperui-app .copy-label>label,.hyperui-app .copy-content .copy-module-label,.hyperui-app .copy-confirmed-fields>label{
  color:var(--hui-ink);font-size:14px;font-weight:500;line-height:1.5;letter-spacing:0;text-transform:none;
}
.hyperui-app .field-label small,.hyperui-app .field-group>label>small{font-size:12px;font-weight:400;line-height:1.5;color:var(--hui-muted)}
.hyperui-app .field-label svg{width:15px;height:15px;color:var(--hui-muted)}
.hyperui-app .field-hint{font-size:12px;line-height:1.75;color:var(--hui-muted)}

.hyperui-app .generation-intro h2{font-family:inherit;font-size:20px;font-weight:600;line-height:1.5;color:var(--hui-ink);letter-spacing:-.2px}
.hyperui-app .generation-intro p{font-size:13px;line-height:1.75;color:var(--hui-muted)}
.hyperui-app .copy-main-input{background:var(--hui-paper);border:1px solid #d4d4d4;border-radius:var(--hui-radius);box-shadow:none}
.hyperui-app .copy-main-input>textarea{border:0;border-radius:var(--hui-radius);padding:14px;font-size:14px;line-height:1.7;box-shadow:none;color:var(--hui-ink)}
.hyperui-app .copy-main-input:has(.copy-assist-actions)>textarea{padding-bottom:46px}
.hyperui-app .copy-main-input:focus-within{outline:none;box-shadow:none}
.hyperui-app .copy-main-input:has(textarea:focus){outline:none;border-color:#d4d4d4;box-shadow:var(--hui-focus-shadow)}
.hyperui-app .copy-main-input>textarea:focus{outline:none;box-shadow:none}
.hyperui-app .copy-main-input .ai-edit-button{min-height:30px;padding:5px 10px;border:1px solid var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-subtle);color:var(--hui-ink);font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}
.hyperui-app .copy-main-input .ai-edit-button:hover:enabled{background:#eee;border-color:#d4d4d4}
.hyperui-app .copy-confirmed-fields>textarea{font-size:14px;line-height:1.7}

.hyperui-app .copy-version{padding:14px;border-color:var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-paper)}
.hyperui-app .copy-version.selected{border-color:var(--hui-ink);box-shadow:none}
.hyperui-app .copy-version-heading,.hyperui-app .copy-version-heading .copy-language-choice{font-size:13px!important;color:var(--hui-ink)!important}
.hyperui-app .copy-version-heading input{border-color:#a3a3a3;accent-color:var(--hui-ink)}
.hyperui-app .copy-version-heading input:checked{border-color:var(--hui-ink);background-image:radial-gradient(circle,var(--hui-ink) 0 3px,transparent 3.5px)}
.hyperui-app .copy-version-heading .copy-apply-button{background:var(--hui-ink);border-color:var(--hui-ink);color:#fff;border-radius:var(--hui-radius);font-size:13px;box-shadow:none}
.hyperui-app .copy-version-heading .copy-apply-button:enabled:hover{background:#333;border-color:#333;box-shadow:none}
.hyperui-app .copy-version-heading .copy-apply-button:enabled:focus-visible{background:#333;border-color:#333;outline:2px solid #666;outline-offset:2px;box-shadow:none}
.hyperui-app .copy-version-heading .copy-apply-button:disabled{background:var(--hui-subtle);border-color:var(--hui-border);color:var(--hui-faint)}
.hyperui-app .copy-version .copy-part-label{font-size:12px;color:var(--hui-muted)}
.hyperui-app .copy-generate-button{border:1px solid var(--hui-border);border-radius:var(--hui-radius);color:var(--hui-ink);background:var(--hui-subtle);font-size:13px}

.hyperui-app .copy-suggestion-actions .copy-discard-button{font-size:12px;padding:8px}
.hyperui-app .automatic-copy-status{border-color:var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-subtle);color:var(--hui-ink);font-size:13px}
.hyperui-app .generation-settings{border-color:var(--hui-border);}
.hyperui-app .generation-settings>summary{font-size:14px;color:var(--hui-ink);line-height:1.5;padding:8px 0 14px}
.hyperui-app .generation-settings>summary:focus-visible{outline:2px solid #666;outline-offset:-3px;box-shadow:none;border-radius:4px}

.hyperui-app .pill,.hyperui-app .field-group select.more-types{min-height:34px;border:1px solid var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-paper);color:var(--hui-muted);padding:7px 10px;font-size:13px;line-height:1.4;filter:none}
.hyperui-app .pill:hover:enabled{background:var(--hui-subtle);color:var(--hui-ink);filter:none}
.hyperui-app .pill.selected,.hyperui-app .field-group select.more-types.selected{color:var(--hui-ink);background:#f0f0f0;border-color:#a3a3a3;--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m1 4 5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hyperui-app .reference-content-summary{font-size:13px;color:var(--hui-muted);}
.hyperui-app .reference-content-summary .quiet-button{font-size:12px;color:var(--hui-ink);text-decoration:none}
.hyperui-app .composition-trigger,.hyperui-app .visual-style-trigger{padding:12px;border:1px solid #d4d4d4;background:var(--hui-paper);color:var(--hui-ink);border-radius:var(--hui-radius);box-shadow:none;font-size:14px}
.hyperui-app .composition-trigger:hover,.hyperui-app .visual-style-trigger:hover{border-color:#a3a3a3;background:var(--hui-bg)}
.hyperui-app .visual-style-trigger strong{font-size:14px;color:var(--hui-ink)}
.hyperui-app .visual-style-trigger small{font-size:12px;color:var(--hui-muted)}
.hyperui-app .style-trigger-change{font-size:12px;color:var(--hui-muted)}
.hyperui-app .auto-style-mark{border-radius:6px}
.hyperui-app .upload-zone{padding:16px;border-radius:var(--hui-radius);background:var(--hui-bg);border-color:#d4d4d4;color:var(--hui-muted);font-size:13px}
.hyperui-app .asset-choice,.hyperui-app .template-option{border-radius:var(--hui-radius);border-color:var(--hui-border)}
.hyperui-app .asset-choice.selected,.hyperui-app .template-option.selected{border-color:var(--hui-ink);box-shadow:none}

/* Reference library and media rows. Artwork backgrounds themselves are intact. */
.hyperui-app .reference-library{background:var(--hui-paper);border:1px solid var(--hui-border);border-radius:var(--hui-radius);}
.hyperui-app .reference-library-heading h2{font-family:inherit;font-size:22px;font-weight:600;line-height:1.4;color:var(--hui-ink)}
.hyperui-app .reference-library-heading p,.hyperui-app .reference-upload-hint,.hyperui-app .reference-upload-status{font-size:13px;color:var(--hui-muted)}
.hyperui-app .reference-upload-status.has-error{color:#b42318}
.hyperui-app .reference-library .reference-upload-button{border:1px solid #d4d4d4;border-radius:var(--hui-radius);background:var(--hui-paper);color:var(--hui-ink);font-size:13px;padding:10px 14px}
.hyperui-app .reference-library .reference-upload-button:hover{background:var(--hui-subtle)}
.hyperui-app .reference-library .reference-filters input,.hyperui-app .reference-library .reference-filters #visual-category{font-size:14px;padding-top:10px;padding-bottom:10px}

.hyperui-app .reference-library-scroll{padding-top:2px}
.hyperui-app .reference-card{border:2px solid var(--hui-border);border-radius:var(--hui-radius);outline:none;box-shadow:none}
.hyperui-app .reference-card:hover{border-color:#a3a3a3}
.hyperui-app .reference-card.selected{border-color:var(--hui-ink);box-shadow:none}
/* Keyboard focus joins the existing edge; pointer selection has no shadow. */
.hyperui-app .reference-card-select:focus-visible{outline:none;box-shadow:none}
.hyperui-app .reference-card:has(.reference-card-select:focus-visible){border-color:var(--hui-ink);outline:1px solid var(--hui-ink);outline-offset:-3px;box-shadow:none}
.hyperui-app .reference-card-select>img{background:var(--hui-subtle)}
.hyperui-app .reference-card-select .reference-card-name{padding:10px 12px;font-size:13px;color:var(--hui-ink);line-height:1.6}
.hyperui-app .reference-card-check{color:var(--hui-muted);border-color:#d4d4d4}
.hyperui-app .reference-card.selected .reference-card-check{background:var(--hui-ink);border-color:var(--hui-ink)}
.hyperui-app .reference-card-view{display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:5px;gap:0;color:#fff;background:rgb(24 24 24 / .44);border:0;border-radius:8px;box-shadow:none}
.hyperui-app .reference-card-view:hover{background:rgb(24 24 24 / .58);color:#fff}
.hyperui-app .reference-card-view:focus-visible{outline:2px solid #fff;outline-offset:-4px;background:rgb(24 24 24 / .58);box-shadow:none}
.hyperui-app .reference-card-view svg{width:18px;height:18px;stroke-width:1.7}
.hyperui-app .selected-reference,.hyperui-app .reference-chip{border:1px solid var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-paper);color:var(--hui-ink)}
.hyperui-app .selected-reference>div>span{font-size:13px;color:var(--hui-ink)}
.hyperui-app .selected-reference small{font-size:12px;color:#b42318}
.hyperui-app .selected-reference-view{border-radius:6px;background:var(--hui-subtle)}
.hyperui-app .reference-remove{color:var(--hui-muted)}
.hyperui-app .reference-remove:hover{color:var(--hui-ink);background:var(--hui-subtle)}
.hyperui-app .reference-purpose,.hyperui-app .reference-intro p{font-size:13px;color:var(--hui-muted)}
.hyperui-app .brand-applied{color:var(--hui-ink);font-size:13px;border-color:var(--hui-border)}
.hyperui-app .brand-applied small{font-size:12px;color:var(--hui-muted)}
.hyperui-app .reference-selection-heading button{font-size:13px;color:var(--hui-ink)}
.hyperui-app .reference-route-label{font-size:12px;color:var(--hui-muted)}
.hyperui-app .reference-brand-context{padding:16px;background:var(--hui-bg);border:1px solid var(--hui-border);border-radius:var(--hui-radius)}
.hyperui-app .reference-brand-context>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;font-size:14px;font-weight:500;line-height:1.5;color:var(--hui-ink);border-radius:4px}
.hyperui-app .reference-brand-context>summary::-webkit-details-marker{display:none}
.hyperui-app .reference-brand-context>summary svg{width:14px;height:14px;flex:none}
.hyperui-app .reference-brand-context>summary::after{content:"";width:7px;height:7px;margin-left:auto;margin-right:3px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}
.hyperui-app .reference-brand-context[open]>summary{margin-bottom:16px}
.hyperui-app .reference-brand-context[open]>summary::after{transform:rotate(45deg)}
.hyperui-app .reference-brand-context>summary:focus-visible{outline:2px solid #666;outline-offset:3px;box-shadow:none}
.hyperui-app .reference-brand-context dl{font-size:13px}
.hyperui-app .reference-brand-context dt{color:var(--hui-muted)}
.hyperui-app .reference-brand-context dd{color:var(--hui-ink)}
.hyperui-app .reference-brand-colors span{border-color:var(--hui-border)}

/* Settings and brand details: the palette fills keep their source HEX values. */
.hyperui-app .brand-settings-dialog{scrollbar-width:thin}
.hyperui-app .brand-settings-dialog .settings-heading{background:var(--hui-paper);border-bottom:1px solid var(--hui-border);}
.hyperui-app .settings-heading h1{font-family:inherit;font-size:22px;font-weight:600;line-height:1.4;color:var(--hui-ink)}
.hyperui-app .settings-logo{height:auto;max-height:none;object-fit:contain;}
.hyperui-app .brand-settings-dialog #settings-folder{font-size:14px;color:var(--hui-ink)}
.hyperui-app .brand-settings-dialog .field-hint{font-size:12px}
.hyperui-app [data-brand-guidelines-content] .locked-palette{gap:8px}
.hyperui-app .brand-palette-label{margin:12px 0 8px;font-size:13px;font-weight:400;line-height:1.5;color:var(--hui-muted)}
.hyperui-app .locked-palette span,.hyperui-app .brand-color-group li>i{border-color:var(--hui-border)}
.hyperui-app [data-brand-guidelines-content] .locked-palette small{font-size:12px;color:var(--hui-muted)}
.hyperui-app .brand-guidelines-source{font-size:12px;line-height:1.75;color:var(--hui-muted)}
.hyperui-app .brand-guidelines-source a{color:#999}
.hyperui-app .brand-guidelines-source a:hover{color:#777}
.hyperui-app .brand-rule-section h3 a{color:var(--hui-brand)}
.hyperui-app .brand-guidelines-details{border:1px solid var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-paper)}
.hyperui-app .brand-guidelines-details>summary{font-size:13px;font-weight:500;padding:12px;color:var(--hui-ink);border-radius:var(--hui-radius)}
.hyperui-app .brand-guidelines-details>summary:hover{background:var(--hui-bg)}
.hyperui-app .brand-guidelines-details>summary:focus-visible,.hyperui-app .brand-recipe-guide>summary:focus-visible{outline:2px solid #666;outline-offset:-3px;box-shadow:none}
.hyperui-app .brand-guidelines-body{margin:0;padding:16px 12px 12px;border-color:var(--hui-border);font-size:13px;color:var(--hui-muted);line-height:1.8}
.hyperui-app .brand-rule-section h3{font-size:14px;color:var(--hui-ink);font-weight:600}
.hyperui-app .brand-rule-section h3 a{font-size:12px}
.hyperui-app .brand-color-group h4,.hyperui-app .brand-recipe-guide h4{font-size:13px;font-weight:500;color:var(--hui-ink)}
.hyperui-app .brand-color-group strong{font-size:12px;font-weight:500;color:var(--hui-ink)}
.hyperui-app .brand-color-group code,.hyperui-app .brand-color-group p{font-size:12px;color:var(--hui-muted)}
.hyperui-app .brand-color-group li>i{width:24px;height:24px}
.hyperui-app .brand-recipe-guide{border-color:var(--hui-border)}
.hyperui-app .brand-recipe-guide>summary{font-size:13px;font-weight:500;color:var(--hui-ink)}
.hyperui-app .brand-recipe-guide p,.hyperui-app .brand-guidelines-pending p,.hyperui-app .brand-recipe-guide dl>div{font-size:12px;line-height:1.8}
.hyperui-app .brand-recipe-guide dt,.hyperui-app .brand-recipe-scope{color:var(--hui-muted)}
.hyperui-app .brand-recipe-guide dd{color:var(--hui-ink)}
.hyperui-app .brand-guidelines-pending{padding:14px;background:var(--hui-bg);border:1px solid var(--hui-border);border-radius:var(--hui-radius)}

/* Selectable image cards; no original image, logo or QR geometry is changed. */
.hyperui-app :is(.visual-style-heading,.ceo-photo-heading,.qr-code-heading,.composition-dialog>header){border-bottom:1px solid var(--hui-border);}
.hyperui-app :is(.visual-style-heading,.ceo-photo-heading) .eyebrow{font-size:11px;letter-spacing:1px;color:var(--hui-muted)}
.hyperui-app :is(.visual-style-heading,.ceo-photo-heading,.qr-code-heading,.composition-dialog>header) h1{font-family:inherit;font-size:22px;font-weight:600;color:var(--hui-ink);line-height:1.4}
.hyperui-app :is(.visual-style-heading,.ceo-photo-heading,.qr-code-heading,.composition-dialog>header) p{font-size:13px;color:var(--hui-muted);line-height:1.7}

.hyperui-app :is(.visual-style-footer,.ceo-photo-footer,.qr-code-footer,.composition-dialog>footer){border-color:var(--hui-border);background:var(--hui-paper);}
.hyperui-app .visual-style-footer strong{font-size:14px;font-weight:500;color:var(--hui-ink)}
.hyperui-app .visual-style-footer p,.hyperui-app .ceo-photo-footer>p,.hyperui-app .qr-code-footer>p,.hyperui-app .composition-dialog footer p{font-size:13px;color:var(--hui-muted);line-height:1.6}
.hyperui-app .visual-style-footer .orange-button,.hyperui-app .ceo-photo-footer .orange-button,.hyperui-app .qr-code-footer .orange-button,.hyperui-app .composition-dialog footer .orange-button{font-size:14px;min-height:40px;padding:10px 16px;background:var(--hui-ink);border-radius:var(--hui-radius);color:#fff}
.hyperui-app .ceo-photo-footer .orange-button:hover{background:#333}
.hyperui-app .style-option,.hyperui-app .ceo-photo-option{border:1px solid var(--hui-border);border-radius:var(--hui-radius);box-shadow:none}
.hyperui-app .style-option:hover,.hyperui-app .ceo-photo-option:hover{border-color:#a3a3a3}
.hyperui-app .style-option.selected,.hyperui-app .ceo-photo-option.selected{border-color:var(--hui-ink);box-shadow:none}
.hyperui-app .style-option:has(input:focus-visible),.hyperui-app .ceo-photo-option:has(input:focus-visible){outline:1px solid var(--hui-ink);outline-offset:-2px;box-shadow:none}
.hyperui-app :is(.style-option,.ceo-photo-option,.qr-code-option,.composition-option)>input:focus-visible{outline:none;box-shadow:none}

.hyperui-app .style-card-copy strong{font-size:14px;font-weight:500;color:var(--hui-ink)}
.hyperui-app .style-card-copy>span:last-child{font-size:12px;color:var(--hui-muted);line-height:1.6}
.hyperui-app .style-number{font-size:12px;color:var(--hui-faint)}
.hyperui-app .style-option.selected .style-choice-dot,.hyperui-app .ceo-photo-check{background:var(--hui-ink);border-color:var(--hui-ink);border-radius:6px}
.hyperui-app .style-choice-dot{border-radius:6px}
.hyperui-app .style-source,.hyperui-app .style-reference-note{font-size:12px;color:var(--hui-muted)}
.hyperui-app .ceo-photo-name{font-size:13px;color:var(--hui-ink);padding:12px;line-height:1.6}
.hyperui-app .ceo-photo-empty{font-size:14px;color:var(--hui-muted)}
.hyperui-app .ceo-photo-option>img:not(.transparent-photo){background:var(--hui-subtle)}
.hyperui-app .ceo-selection,.hyperui-app .qr-selection{border-color:var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-paper);color:var(--hui-ink)}
.hyperui-app .ceo-selection-status{font-size:12px;color:var(--hui-muted)}
.hyperui-app .ceo-selection-copy strong,.hyperui-app .qr-selection strong{font-size:14px;color:var(--hui-ink)}
.hyperui-app .ceo-selection-actions button,.hyperui-app .qr-selection-actions button,.hyperui-app .qr-selection-actions button:last-child{font-size:12px;color:var(--hui-muted)}
.hyperui-app .qr-code-option{border-color:var(--hui-border);border-radius:var(--hui-radius);padding:12px;}
.hyperui-app .qr-code-option.selected{border:1px solid var(--hui-ink);box-shadow:none;padding:12px}
.hyperui-app .qr-code-option>input{accent-color:var(--hui-ink)}
.hyperui-app .qr-code-option:focus-within{outline:none;box-shadow:none}
.hyperui-app .qr-code-option:has(input:focus-visible){outline:1px solid var(--hui-ink);outline-offset:-2px;box-shadow:none}
.hyperui-app .qr-code-name{font-size:13px;color:var(--hui-ink)}
.hyperui-app .qr-code-check{font-size:12px;color:var(--hui-muted)}

.hyperui-app .composition-option{border:1px solid transparent;border-radius:var(--hui-radius);color:var(--hui-ink)}
.hyperui-app .composition-option:hover{background:var(--hui-subtle)}
.hyperui-app .composition-option.selected{background:var(--hui-subtle);border-color:#d4d4d4;color:var(--hui-ink)}
.hyperui-app .composition-option:focus-within{outline:none;box-shadow:none}
.hyperui-app .composition-option:has(input:focus-visible){outline:2px solid #666;outline-offset:-3px;box-shadow:none}
.hyperui-app .composition-choice-name{font-size:14px}
.hyperui-app .composition-option.selected .composition-choice-check{background:var(--hui-ink);border-color:var(--hui-ink)}
.hyperui-app .composition-thumbnail,.hyperui-app .composition-option.selected .composition-thumbnail{color:var(--hui-muted)}

/* Social size selectors and generated-result cards, retaining true progress. */
.hyperui-app .generation-formats>legend{font-size:14px;font-weight:500;letter-spacing:0;color:var(--hui-ink)}
.hyperui-app .generation-format-count{font-size:12px;color:var(--hui-muted)}
.hyperui-app .social-platform{border-color:var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-paper)}
.hyperui-app .social-platform>summary{font-size:14px;font-weight:500;color:var(--hui-ink);padding:12px}
.hyperui-app .social-platform>summary>small{font-size:12px;color:var(--hui-muted)}
.hyperui-app .social-platform>summary:focus-visible{outline:2px solid #666;outline-offset:-3px;box-shadow:none}
.hyperui-app .social-size-option{font-size:13px!important;color:var(--hui-muted)!important;border-color:var(--hui-border);padding:11px 2px!important}
.hyperui-app .social-size-option:has(input:checked){color:var(--hui-ink)!important}
.hyperui-app .social-size-option>input,.hyperui-app .format-row input{accent-color:var(--hui-ink)}
.hyperui-app .social-size-option small{font-size:12px;color:var(--hui-muted)}
.hyperui-app .generation-summary{font-size:13px;color:var(--hui-muted);}
.hyperui-app .generation-summary small{font-size:12px}
.hyperui-app .download-all-button{font-size:14px;min-height:40px;border-color:#d4d4d4;border-radius:var(--hui-radius);color:var(--hui-ink);background:var(--hui-paper)}
.hyperui-app .download-all-button:hover:enabled{background:var(--hui-subtle);border-color:#a3a3a3}

.hyperui-app .output-card{border:1px solid var(--hui-border);border-radius:var(--hui-radius);color:var(--hui-ink)}
.hyperui-app .output-card>header{border-color:var(--hui-border);}
.hyperui-app .output-card h2{font-size:14px;color:var(--hui-ink);font-weight:500}
.hyperui-app .output-card header p{font-size:12px;color:var(--hui-muted)}
.hyperui-app .output-status{font-size:11px;line-height:1.5;border-radius:4px;color:var(--hui-muted);background:var(--hui-subtle);padding:3px 6px}
.hyperui-app .output-status.ready{background:#edf8f1;color:#168a55}
.hyperui-app .output-art{background:#eee;}
.hyperui-app .output-placeholder{font-size:13px;color:var(--hui-muted);background:var(--hui-subtle)}

.hyperui-app .output-card .quiet-button,.hyperui-app .output-download{font-size:12px;color:var(--hui-ink)}
.hyperui-app .output-card .image-edit-entry{border-radius:6px;background:var(--hui-subtle);font-size:12px;color:var(--hui-ink);padding:7px 10px}
.hyperui-app .output-card .image-edit-entry:hover{background:#eee}
.hyperui-app .output-stale-note{color:var(--hui-muted);font-size:13px}
.hyperui-app .generation-progress{border-color:var(--hui-border);border-radius:var(--hui-radius)}
.hyperui-app .generation-progress-heading{font-size:14px;color:var(--hui-ink)}
.hyperui-app .generation-progress-heading strong{color:var(--hui-ink)}
.hyperui-app .generation-progress-track{background:#eee}
.hyperui-app .generation-progress-track>span{background:var(--hui-ink)}
.hyperui-app .generation-progress-meta{font-size:13px;color:var(--hui-muted)}
.hyperui-app .generation-progress-meta small,.hyperui-app .generation-model{font-size:12px;color:var(--hui-muted)}
.hyperui-app .generation-status{border:1px solid var(--hui-border);border-radius:var(--hui-radius);background:var(--hui-subtle);font-size:13px;color:var(--hui-muted)}
.hyperui-app .generation-status.ready{color:#168a55}
.hyperui-app .generation-error{color:#b42318;font-size:13px}

/* Image viewers and editing chat use the same dialog/input/card vocabulary. */
.hyperui-app .reference-viewer header{border-bottom:1px solid var(--hui-border)}
.hyperui-app .reference-viewer h1{font-size:18px;font-weight:600;color:var(--hui-ink)}
.hyperui-app .reference-viewer header p{font-size:13px;color:var(--hui-muted)}
.hyperui-app .reference-viewer-stage{background:var(--hui-subtle);}
.hyperui-app .reference-viewer footer{border-top:1px solid var(--hui-border);font-size:13px;color:var(--hui-muted)}
.hyperui-app .reference-viewer footer .quiet-button{font-size:13px}
.hyperui-app .output-viewer footer .image-edit-entry{border:1px solid #d4d4d4;border-radius:var(--hui-radius);font-size:14px;color:var(--hui-ink)}
.hyperui-app .output-viewer footer .orange-button{font-size:14px}
.hyperui-app .image-edit-heading{border-color:var(--hui-border)}
.hyperui-app .image-edit-heading h1{font-size:18px;font-weight:600;color:var(--hui-ink)}
.hyperui-app .image-edit-heading p{font-size:13px;color:var(--hui-muted)}
.hyperui-app .image-edit-toolbar select{padding-top:9px;padding-bottom:9px;min-height:38px;border-color:#d4d4d4;border-radius:var(--hui-radius);font-size:13px;color:var(--hui-ink)}
.hyperui-app .image-edit-toolbar .orange-button{font-size:13px;min-height:38px}

.hyperui-app .image-edit-preview{background:var(--hui-subtle);border:1px solid var(--hui-border);border-radius:var(--hui-radius)}
.hyperui-app .annotation-toggle{border-color:#d4d4d4;border-radius:var(--hui-radius);background:var(--hui-paper);color:var(--hui-ink);font-size:13px}
.hyperui-app .annotation-toggle[aria-pressed="true"]{background:var(--hui-subtle);border-color:#d4d4d4;color:var(--hui-ink);box-shadow:none}
.hyperui-app .image-edit-annotations{--orange:var(--hui-brand)}
.hyperui-app .image-edit-annotations:focus-visible{outline:2px solid #666;outline-offset:-3px;box-shadow:none}
.hyperui-app .image-edit-annotations ellipse{fill:#5755c614}
.hyperui-app .image-edit-annotations .pencil-stroke.closed{fill:#5755c60d}
.hyperui-app .image-edit-annotations.active{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m3 17-1 5 5-1L21 7l-4-4Z' fill='white' stroke='%235755c6' stroke-width='1.5'/%3E%3Cpath d='m14 6 4 4M3 17l4 4' fill='none' stroke='%235755c6' stroke-width='1.5'/%3E%3C/svg%3E") 2 22,crosshair}
.hyperui-app .image-edit-annotation-tools{font-size:12px;color:var(--hui-muted)}
.hyperui-app .image-edit-annotation-tools .quiet-button{font-size:12px}
.hyperui-app .annotation-region-list button{border-color:#d4d4d4;color:var(--hui-ink);border-radius:4px}
.hyperui-app .annotation-region-list button[aria-pressed="true"]{background:var(--hui-ink);border-color:var(--hui-ink);color:#fff}
.hyperui-app .image-edit-region-note{font-size:12px;color:var(--hui-muted)}
.hyperui-app .image-edit-message{font-size:14px;color:var(--hui-ink);line-height:1.7}
.hyperui-app .image-edit-message>span{font-size:12px;color:var(--hui-muted)}
.hyperui-app .image-edit-message.user{background:var(--hui-subtle);border:1px solid var(--hui-border);border-radius:var(--hui-radius);color:var(--hui-ink);padding:10px 14px}
.hyperui-app .image-edit-message.assistant{color:var(--hui-ink)}
.hyperui-app .image-edit-bottom{background:var(--hui-paper);}
.hyperui-app .image-edit-progress{font-size:13px;color:var(--hui-muted)}
.hyperui-app .image-edit-progress .quiet-button{font-size:12px;color:var(--hui-ink)}
.hyperui-app .image-edit-composer{border-color:#d4d4d4;border-radius:var(--hui-radius);padding:12px 14px;box-shadow:none}
.hyperui-app .image-edit-composer:focus-within{border-color:#d4d4d4;outline:none;box-shadow:none}
.hyperui-app .image-edit-composer:has(textarea:focus){border-color:#d4d4d4;outline:none;box-shadow:var(--hui-focus-shadow)}
.hyperui-app .image-edit-composer #image-edit-instruction{border:0;outline:none;box-shadow:none;background:transparent;font-size:14px;color:var(--hui-ink);line-height:1.6}
.hyperui-app .image-edit-composer #image-edit-instruction:is(:focus,:focus-visible){border:0;outline:none;box-shadow:none}
.hyperui-app .image-edit-composer textarea::placeholder{color:var(--hui-faint)}
.hyperui-app .image-edit-composer>button{border-radius:6px;background:var(--hui-ink)}
.hyperui-app .image-edit-composer>button:disabled{background:#a3a3a3}
.hyperui-app .image-edit-meta{font-size:12px;color:var(--hui-muted)}

@media(max-width:1100px){

  .hyperui-app .editor-header .panel-tabs button{font-size:13px}

}
@media(max-width:860px){

  .hyperui-app .editor-header .panel-heading h1{font-size:18px}

  .hyperui-app .editor-header .panel-tabs button{font-size:13px;}

  .hyperui-app .detail-dialog[data-step="content"] .preview-top{font-size:12px;}

  .hyperui-app .reference-board figcaption{font-size:12px}

  .hyperui-app .reference-library-heading h2{font-size:20px}
  .hyperui-app .reference-library-heading p,.hyperui-app .reference-upload-hint{font-size:12px}

  .hyperui-app .reference-card-select .reference-card-name{font-size:12px;}
  .hyperui-app .reference-card-view{font-size:11px}
}
@media(max-width:640px){

  .hyperui-app .editor-header .panel-tabs button{font-size:12px;}

  .hyperui-app .copy-mode-tabs>[role="tab"]{font-size:14px;padding:13px 6px}
  .hyperui-app .copy-mode-tabs>[data-copy-mode="ai"]{padding-right:34px}
  .hyperui-app .copy-mode-help{left:calc((100% - 7px)/4 + 4px);top:11px}

  .hyperui-app .generation-intro h2{font-size:18px}

  .hyperui-app .reference-library .reference-upload-button{min-height:36px;font-size:12px;padding:8px 10px}
  .hyperui-app .reference-library .reference-filters input,.hyperui-app .reference-library .reference-filters #visual-category{font-size:12px}

  .hyperui-app .detail-dialog[data-step="content"] .preview-top{font-size:11px;}

  .hyperui-app .reference-board figcaption{font-size:11px}
  .hyperui-app .reference-board[data-count="0"]>.field-hint{font-size:11px}

  .hyperui-app :is(.visual-style-heading,.ceo-photo-heading,.qr-code-heading,.composition-dialog>header) h1{font-size:20px}


  .hyperui-app .style-card-copy strong{font-size:13px}
  .hyperui-app .style-card-copy>span:last-child{font-size:11px}
  .hyperui-app .style-number{font-size:11px}

  .hyperui-app .reference-viewer footer{font-size:12px;}

  .hyperui-app .image-edit-heading p{font-size:12px}

  .hyperui-app .image-edit-composer{padding:10px 12px}
  .hyperui-app .image-edit-meta{font-size:11px}
  .hyperui-app .image-edit-toolbar select,.hyperui-app .image-edit-toolbar .orange-button{font-size:12px}

  .hyperui-app .output-card h2{font-size:13px}
}
@media(max-height:600px){

  .hyperui-app .image-edit-meta{font-size:10px}
}
@media(max-width:860px) and (max-height:700px){

  .hyperui-app .detail-dialog[data-step="content"] .preview-top{font-size:10px;}

  .hyperui-app .reference-board[data-count="0"]>.field-hint{font-size:10px}

  .hyperui-app .generation-summary{font-size:11px;}
  .hyperui-app .generation-summary small{font-size:10px}
  .hyperui-app .panel-footer .orange-button,.hyperui-app .download-all-button{min-height:36px;padding-top:7px;padding-bottom:7px;font-size:13px}

}
/* Confirmed Figma editor: one white panel, 70px header and a shared divider. */
.hyperui-app .detail-dialog{height:100dvh;padding:48px;overflow:hidden}
.hyperui-app .detail-dialog .detail-shell{height:100%;min-height:0;gap:0;padding-bottom:30px;overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 8px 32px rgb(0 0 0 / .12);font-family:"Noto Sans SC",StudioInter,Inter,"PingFang SC","Microsoft YaHei",sans-serif}
.hyperui-app .detail-dialog .editor-header{height:70px;min-height:70px;display:flex;flex-direction:row;align-items:center;gap:24px;padding:0 24px;border:0;border-radius:0;background:#fff}
.hyperui-app .detail-dialog .editor-header .panel-heading{display:flex;align-items:center;gap:4px;flex:1;min-width:0;padding:0}
.hyperui-app .detail-dialog .editor-header .panel-heading h1{flex:none;font-size:22px;font-weight:700;line-height:30px;letter-spacing:0;color:#181818}
.hyperui-app .detail-dialog .editor-header .panel-heading>span{display:block;min-width:0;margin:0;font-size:13px;font-weight:400;line-height:20px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hyperui-app .detail-dialog .editor-header .panel-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none;align-self:center;align-items:stretch;width:528px;height:52px;gap:0;margin:0;border:0}
.hyperui-app .detail-dialog .editor-header .panel-tabs button{width:176px;height:52px;padding:0;font-size:14px;font-weight:500;line-height:22px;white-space:nowrap;border-radius:0;box-shadow:none}
.hyperui-app .detail-dialog .editor-header .panel-tabs button:disabled{color:#ccc;opacity:1}
.hyperui-app .detail-dialog .editor-header .panel-tabs button[aria-selected="true"]:after{left:50%;right:auto;bottom:-9px;width:91px;height:3px;transform:translateX(-50%);background:#181818}
.hyperui-app .detail-dialog .editor-header>.close-detail{position:static!important;inset:auto;flex:none;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;border:1px solid #e5e5e5;border-radius:8px;color:#181818!important;background:#fff!important;box-shadow:none}
.hyperui-app .detail-dialog .editor-header>.close-detail:hover{color:#181818!important;background:#f5f5f5!important;box-shadow:none}
.hyperui-app .detail-dialog .editor-header>.close-detail svg{width:18px;height:18px;stroke-width:1.6}
.hyperui-app .detail-dialog .detail-shell>.detail-layout{display:flex;flex-direction:row;flex:1;gap:0;min-width:0;min-height:0;height:auto;border-top:1px solid #e5e5e5;overflow:hidden}
.hyperui-app .detail-dialog .reference-library,.hyperui-app .detail-dialog .detail-shell .preview-area{flex:1;min-width:0;min-height:0;height:auto;max-height:none;border:0;border-right:1px solid #e5e5e5;border-radius:0;background:#fff;box-shadow:none}
.hyperui-app .detail-dialog .detail-shell .preview-area{padding:24px;isolation:auto}
.hyperui-app .detail-dialog .detail-shell .detail-panel{flex:0 0 380px;width:380px;max-width:380px;min-height:0;border:0;border-radius:0;background:#fff;box-shadow:none}
.hyperui-app .detail-dialog .detail-panel .panel-scroll{min-width:0;min-height:0;padding:24px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.hyperui-app .detail-dialog .detail-panel .panel-footer{position:relative;z-index:1;padding:16px 24px 24px;border-top:0;background:#fff}
.hyperui-app .detail-dialog .detail-panel .panel-footer:not(:empty):before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px;background:linear-gradient(to bottom,rgb(255 255 255 / 0),#fff);pointer-events:none}
.hyperui-app .detail-dialog .panel-footer>.generation-summary{margin-top:12px;padding:0 2px}
.hyperui-app .detail-dialog .generation-intro h2{font-family:inherit;font-size:22px;font-weight:700;line-height:30px;letter-spacing:0}
.hyperui-app .detail-dialog .generation-intro p{font-size:13px;font-weight:400;line-height:20px;margin-top:8px}
.hyperui-app .detail-dialog .panel-footer :is(.orange-button,.download-all-button){min-height:44px;box-shadow:none}

/* Reference step: six real image cards at the design's desktop width. */
.hyperui-app .detail-dialog[data-step="visual"] .reference-library{padding:24px 24px 0}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading{min-height:71px;align-items:flex-start;gap:16px;flex-wrap:nowrap}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading>div{min-width:0}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading h2{font-size:20px;font-weight:700;line-height:28px;letter-spacing:0}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading p{font-size:13px;font-weight:400;line-height:20px;margin-top:8px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library .reference-upload-button{flex:none;width:136px;height:44px;min-height:44px;padding:10px 12px;gap:8px;font-size:14px;font-weight:400;line-height:22px;box-shadow:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-upload-button svg{width:16px;height:16px;stroke-width:1.6}
.hyperui-app .reference-upload-help{flex:none}
.hyperui-app .reference-upload-help:after{height:4px}
.hyperui-app .reference-upload-tooltip{top:calc(100% + 4px);right:0;max-width:min(320px,calc(100vw - 52px));padding:8px 12px;border-radius:8px;background:#181818;color:#fff;font-size:12px;line-height:18px;box-shadow:none;z-index:6}
.hyperui-app .reference-upload-tooltip:before{content:"";position:absolute;top:-4px;right:64px;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid #181818}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library #reference-library-controls{margin:16px 0 0;padding:0}
.hyperui-app .detail-dialog[data-step="visual"] .reference-filters{display:grid;grid-template-columns:minmax(0,920fr) minmax(0,463fr);gap:12px;height:48px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-filters input,.hyperui-app .detail-dialog[data-step="visual"] .reference-filters #visual-category{width:100%;min-width:0;height:48px;min-height:48px;margin:0;flex:none;font-size:14px;font-weight:400;line-height:20px;border:1px solid #e5e5e5;border-radius:8px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-filters input::placeholder{color:#999}
.hyperui-app .detail-dialog[data-step="visual"] .reference-filters #visual-category:has(option:checked[value=""]){color:#999}
.hyperui-app .detail-dialog[data-step="visual"] .reference-filters input{padding:13px 14px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-filters #visual-category{padding:13px 38px 13px 14px;background-position:right 14px center}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library-scroll{margin-top:16px;margin-bottom:19px;padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0;padding-bottom:1px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card{height:220px;border:0;border-radius:8px;outline:none;box-shadow:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card:before{content:"";position:absolute;inset:0;z-index:1;border:1px solid #e5e5e5;border-radius:inherit;pointer-events:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card:hover:before{border-color:#a3a3a3}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card.selected:before{border-color:#181818}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card:has(.reference-card-select:focus-visible){outline:none;box-shadow:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card:has(.reference-card-select:focus-visible):before{border:2px solid #181818}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-select{height:220px;padding:0}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-select>img{width:100%;height:164px;aspect-ratio:auto;object-fit:contain;background:#f5f5f5}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-select .reference-card-name{display:block;height:56px;min-height:56px;padding:8px 12px;font-size:13px;font-weight:400;line-height:20px;color:#181818}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-check{top:10px;right:10px;width:28px;height:28px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-check svg{width:16px;height:16px;stroke-width:1.6}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-view{right:10px;bottom:66px;width:28px;height:28px;min-width:28px;min-height:28px;padding:5px;border:0;border-radius:8px;box-shadow:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-card-view svg{width:18px;height:18px;stroke-width:1.6}
.hyperui-app .detail-dialog[data-step="visual"] .panel-scroll{display:flex;flex-direction:column;padding-bottom:0}
.hyperui-app .detail-dialog[data-step="visual"] .panel-scroll>*{flex:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-intro{display:block;padding-bottom:0}
.hyperui-app .detail-dialog[data-step="visual"] .reference-intro p{margin-top:12px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-actions{gap:12px;margin:46px 0 24px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-actions .full-button{height:44px;min-height:44px;font-size:14px;font-weight:400;line-height:22px;box-shadow:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-actions .full-button svg{width:16px;height:16px;stroke-width:1.6}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context{margin-top:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context>summary{height:56px;min-height:56px;gap:10px;margin:0;padding:0;border:0;border-radius:0;font-size:14px;font-weight:500;line-height:22px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context>summary svg{width:16px;height:16px;stroke-width:1.6}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context>summary:after{width:18px;height:18px;margin:0 0 0 auto;border:0;transform:none;background:url('assets/zoowork-brand/brand-chevron-right.svg') center/18px 18px no-repeat}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context[open]>summary{margin-bottom:16px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context[open]>summary:after{transform:rotate(90deg)}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context [data-brand-guidelines-content]{padding-bottom:16px}
.hyperui-app .detail-dialog[data-step="visual"] .reference-brand-context .brand-guidelines-source a{color:#999}
.hyperui-app .copy-source-info{width:24px;height:24px;min-width:24px;min-height:24px;padding:0;display:grid;place-items:center}
.hyperui-app .copy-source-info>span{width:13px;height:13px;font-size:9px;line-height:13px}

@media(max-width:1700px){
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:1440px){
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1180px){
  .hyperui-app .detail-dialog .editor-header{gap:16px}
  .hyperui-app .detail-dialog .editor-header .panel-tabs{width:420px}
  .hyperui-app .detail-dialog .editor-header .panel-tabs button{width:140px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1000px){
  .hyperui-app .detail-dialog .editor-header .panel-tabs{width:360px}
  .hyperui-app .detail-dialog .editor-header .panel-tabs button{width:120px;font-size:13px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  .hyperui-app .detail-dialog{padding:16px}
  .hyperui-app .detail-dialog .detail-shell{padding-bottom:0}
  .hyperui-app .detail-dialog .editor-header{display:grid;grid-template-columns:minmax(0,1fr) 36px;grid-template-rows:60px 44px;height:104px;min-height:104px;gap:0 12px;padding:0 16px}
  .hyperui-app .detail-dialog .editor-header .panel-heading{display:block;grid-column:1;grid-row:1;min-width:0}
  .hyperui-app .detail-dialog .editor-header .panel-heading h1{font-size:18px;line-height:26px}
  .hyperui-app .detail-dialog .editor-header .panel-heading>span{font-size:12px;line-height:18px}
  .hyperui-app .detail-dialog .editor-header .panel-tabs{grid-column:1 / -1;grid-row:2;width:100%;height:44px}
  .hyperui-app .detail-dialog .editor-header .panel-tabs button{width:100%;height:44px;font-size:12px}
  .hyperui-app .detail-dialog .editor-header .panel-tabs button[aria-selected="true"]:after{width:min(91px,calc(100% - 20px));bottom:0}
  .hyperui-app .detail-dialog .editor-header>.close-detail{grid-column:2;grid-row:1}
  .hyperui-app .detail-dialog .detail-shell>.detail-layout{flex-direction:column;gap:0;min-height:0;height:auto}
  .hyperui-app .detail-dialog .detail-shell .detail-panel{flex:1;min-height:0;width:100%;max-width:none;max-height:none}
  .hyperui-app .detail-dialog .detail-panel .panel-scroll{padding:16px}
  .hyperui-app .detail-dialog .detail-panel .panel-footer{padding:12px 16px 16px}
  .hyperui-app .detail-dialog .detail-panel .panel-footer:not(:empty):before{top:-16px;height:16px}
  .hyperui-app .detail-dialog .generation-intro h2{font-size:20px;line-height:28px}
  .hyperui-app .detail-dialog .detail-shell .preview-area{flex:none;height:clamp(180px,30dvh,260px);min-height:0;max-height:none;padding:16px;border-right:0;border-bottom:1px solid #e5e5e5}
  .hyperui-app .detail-dialog.multi-output-mode .preview-area{height:clamp(180px,30dvh,300px)!important}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library{flex:1;min-height:180px;padding:16px 16px 0;border-right:0;border-bottom:1px solid #e5e5e5}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading{min-height:64px;gap:12px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading h2{font-size:20px;line-height:28px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library-heading p{font-size:12px;line-height:20px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .reference-upload-button{font-size:12px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library-scroll{margin-bottom:0}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-card,.hyperui-app .detail-dialog[data-step="visual"] .reference-card-select{height:auto}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-card-select>img{height:auto;aspect-ratio:4 / 3}
  .hyperui-app .detail-dialog[data-step="visual"] .detail-panel{flex:0 1 42%;min-height:180px;max-height:none}
  .hyperui-app .detail-dialog[data-step="visual"] .panel-scroll{padding:16px 16px 0}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-intro{display:block}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-actions{margin-top:16px}
}
@media(max-width:420px){
  .hyperui-app .detail-dialog{padding:10px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library .visual-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-card-select .reference-card-name{font-size:12px}
}
@media(max-width:860px) and (max-height:600px){
  .hyperui-app .detail-dialog .detail-shell>.detail-layout{overflow-y:auto}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-library{flex:none;height:280px;min-height:0}
  .hyperui-app .detail-dialog[data-step="visual"] .detail-panel{flex:none;height:260px;min-height:0}
  .hyperui-app .detail-dialog:not([data-step="visual"]) .detail-panel{flex:none;min-height:320px}
}

@media(forced-colors:active){
  .hyperui-app .copy-mode-tabs>[role="tab"][aria-selected="true"],.hyperui-app .editor-header .panel-tabs button[aria-selected="true"]{color:Highlight}
  .hyperui-app .copy-mode-tabs>[role="tab"][aria-selected="true"]:after,.hyperui-app .editor-header .panel-tabs button[aria-selected="true"]:after{background:Highlight}
  .hyperui-app :is(.copy-mode-tabs>[role="tab"],.generation-settings>summary,.reference-brand-context>summary,.brand-guidelines-details>summary,.brand-recipe-guide>summary,.social-platform>summary,.image-edit-annotations):focus-visible{outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}
  .hyperui-app .copy-version-heading .copy-apply-button:enabled:focus-visible{outline:2px solid Highlight;outline-offset:2px;box-shadow:none}
  .hyperui-app :is(.copy-main-input,.image-edit-composer):has(textarea:focus){outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}
  .hyperui-app :is(.qr-code-option,.composition-option):has(input:focus-visible){outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}
  .hyperui-app .reference-card.selected{border-color:Highlight;outline:none}
  .hyperui-app .reference-card:has(.reference-card-select:focus-visible){border-color:Highlight;outline:1px solid Highlight;outline-offset:-3px}
  .hyperui-app .detail-dialog[data-step="visual"] .reference-card.selected:before,.hyperui-app .detail-dialog[data-step="visual"] .reference-card:has(.reference-card-select:focus-visible):before{border-color:Highlight}
  .hyperui-app .reference-card-view{background:ButtonFace;color:ButtonText;border:1px solid ButtonText}
  .hyperui-app .reference-card-view:focus-visible{outline:2px solid Highlight;outline-offset:-4px;box-shadow:none}
  .hyperui-app .style-option.selected,.hyperui-app .ceo-photo-option.selected,.hyperui-app .qr-code-option.selected{border-color:Highlight;outline:1px solid Highlight}
  .hyperui-app :is(.style-option,.ceo-photo-option):has(input:focus-visible){outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}
}
