.manager-image-panel { max-width: 1250px; margin: 0 auto; }
.image-history-toolbar, .image-options, .image-compose-footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.image-history-toolbar label, .image-options label { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.image-history-toolbar select { max-width: 440px; }
.manager-image-panel select, .manager-image-panel input:not([type="checkbox"]) { min-height: 42px; padding: 7px 10px; border: 1px solid #bcb3a6; border-radius: 6px; background: #fff; color: #233b52; max-width: 100%; }
.image-note { color: #646b71; font-size: 15px; }
.image-message-list { min-height: 260px; max-height: 65vh; overflow: auto; padding: 12px 6px; display: flex; flex-direction: column; gap: 14px; }
.image-message { padding: 18px; border-radius: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.image-message--user { align-self: flex-end; max-width: 85%; background: #deebf7; }
.image-message--assistant { align-self: flex-start; width: min(100%, 960px); box-sizing: border-box; background: #f1ede5; }
.image-summary { line-height: 1.75; }
.image-result { display: block; max-width: 100%; max-height: 720px; object-fit: contain; margin: 14px 0; border-radius: 6px; background: white; }
.image-message .action-button { margin: 8px 10px 0 0; }
.image-empty { margin: auto; color: #68747e; text-align: center; }
.image-input-label { display: block; margin: 14px 0 8px; font-weight: bold; }
#imageInput { width: 100%; padding: 14px; border: 1px solid #bcb3a6; border-radius: 8px; font: inherit; resize: vertical; box-sizing: border-box; background: white; }
.image-compose-footer { justify-content: space-between; }
.image-settings-panel { max-width: 980px; font-size: 16px; }
.image-settings-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.image-settings-header h2 { margin: 0 0 8px; text-align: left; font-size: 28px; }
.image-settings-header p { margin: 0; color: #646b71; }
.image-settings-header .action-button { width: auto; flex-shrink: 0; padding: 0 22px; }
.image-settings-form { display: grid; gap: 20px; margin: 28px 0 0; }
.image-settings-card { padding: 24px; border: 1px solid #ded6ca; border-radius: 12px; background: #fff; }
.image-settings-card h3, .image-settings-models h3 { margin: 0 0 18px; font-size: 18px; color: #233b52; }
.image-service-card { background: #f4f7fa; }
.image-settings-form .image-setting-check { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; margin: 0; cursor: pointer; }
.image-settings-form input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex: 0 0 22px; padding: 0; margin: 0; box-shadow: none; accent-color: #174f80; }
.image-setting-check > span:not(.image-setting-badge) { flex: 1; min-width: 0; }
.image-setting-check strong { display: block; font-size: 17px; }
.image-setting-check small { display: block; margin-top: 6px; line-height: 1.65; color: #646b71; }
.image-setting-badge { white-space: nowrap; padding: 6px 12px; border-radius: 18px; font-size: 14px; background: #ece8e2; color: #64554a; }
.image-setting-badge[data-enabled="true"] { background: #e4f2e9; color: #24603d; }
.image-setting-field { display: grid; gap: 9px; margin-top: 18px; }
.image-setting-field:first-of-type { margin-top: 0; }
.image-settings-form .image-setting-field label { display: block; margin: 0; font-weight: 600; }
.image-settings-form .image-setting-field input, .image-settings-form .image-setting-field select { width: 100%; height: 46px; min-height: 46px; min-width: 0; padding: 8px 12px; box-sizing: border-box; font-size: 16px; }
.image-setting-help { margin: 0; font-size: 14px; color: #646b71; line-height: 1.7; overflow-wrap: anywhere; }
.image-timeout-field input { max-width: 180px; }
.image-key-advanced { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e9e1d7; }
.image-key-advanced summary { color: #856145; font-size: 14px; cursor: pointer; }
.image-settings-form .image-clear-key { margin-top: 16px; align-items: flex-start; }
.image-settings-form .image-clear-key strong { color: #9b352e; font-size: 15px; }
.image-config-status { margin: 20px 0 0; padding: 12px 14px; border-radius: 7px; background: #faf1dd; color: #765716; line-height: 1.6; font-size: 14px; }
.image-config-status[data-ready="true"] { background: #eef4f8; color: #34566e; }
.image-settings-models { padding: 0 4px; }
.image-settings-models h3 { margin-bottom: 12px; }
.image-settings-models > div { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.image-settings-models > div span { padding: 7px 12px; border-radius: 6px; background: #f1ede5; color: #34566e; font-size: 14px; }
.image-settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #ded6ca; padding-top: 20px; }
.image-settings-footer p { margin: 0; color: #646b71; font-size: 14px; }
.image-settings-footer .action-button { width: auto; min-width: 180px; height: 46px; padding: 0 24px; border-radius: 8px; background: #174f80; color: #fff; border-color: #174f80; font-weight: 600; }
#imageSettingsMessage { margin: 0; line-height: 1.7; }
.manager-image-screen [hidden] { display: none !important; }
@media (max-width: 700px) { .image-message--user { max-width: 95%; } .image-options label { width: 100%; } .image-options select { flex: 1; min-width: 0; } .image-history-toolbar select { max-width: 240px; } .image-settings-header { align-items: flex-start; flex-direction: column; gap: 16px; } .image-settings-card { padding: 18px; } .image-settings-form .image-setting-check { flex-wrap: wrap; gap: 10px; } .image-setting-check > span:not(.image-setting-badge) { flex: 1 1 calc(100% - 40px); } .image-setting-badge { margin-left: 32px; } .image-settings-footer { flex-direction: column; align-items: stretch; } .image-settings-footer .action-button { width: 100%; } }

.image-preview-trigger { display: block; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.image-preview-trigger:focus-visible { outline: 3px solid #174f80; outline-offset: 4px; }
.image-preview { width: min(1100px, 92vw); max-width: 94vw; max-height: 92dvh; padding: 18px; border: 0; border-radius: 12px; background: #fff; color: #233b52; box-sizing: border-box; }
.image-preview::backdrop { background: rgb(0 0 0 / 75%); }
.image-preview header, .image-preview footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.image-preview .action-button { width: auto; min-height: 42px; padding: 8px 16px; }
.image-preview-viewport { overflow: auto; max-height: 65dvh; margin: 12px 0; background: #f1ede5; }
.image-preview-viewport img { display: block; max-width: 100%; max-height: 65dvh; width: auto; height: auto; margin: auto; object-fit: contain; }
.image-preview--original .image-preview-viewport img { max-width: none; max-height: none; margin: 0; }
#imagePreviewInfo { overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 700px) { .image-preview { padding: 12px; width: 94vw; } .image-preview .action-button { font-size: 14px; padding: 8px 12px; } }

/* 请求编号与重发核对使用页内控件，保留窄屏可读性，不出现自动提交确认框。 */
.image-request-id {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;}
.image-request-id input {flex:1 1 220px;min-width:0;width:auto;font-size:13px;}
.image-request-id .action-button {width:auto;margin:0;flex:0 0 auto;}
.image-retry-ack {display:flex;align-items:flex-start;gap:8px;margin-top:12px;font-size:14px;line-height:1.5;}
.image-retry-ack input[type=checkbox] {width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;}

.image-prompt-tools { padding:16px; margin:12px 0; border:1px solid #d7e1dc; border-radius:12px; background:#f6faf7; }
.image-prompt-tools textarea {width:100%;box-sizing:border-box;}
.image-prompt-tools .image-options label {flex:1 1 180px;}
.image-message details {margin-top:8px;}
