.ai-key-panel .table-wrap {overflow-x:auto}
.ai-key-panel table {min-width:750px;width:100%;text-align:left}
.ai-key-panel th,.ai-key-panel td {padding:16px 12px;border-bottom:1px solid var(--line,#292936)}
.ai-key-panel th {color:var(--muted,#aaaab9);font-size:12px}
.ai-pagination {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:18px 12px}
.ai-pagination>span:first-child {margin-right:auto}
.ai-pagination select {width:auto;min-width:65px}
#new-api-key {width:100%;margin-top:16px;font-size:14px}
[data-ai-root] label {display:block}
[data-ai-root] .notice {margin:20px 0}
#api-key-error,#api-key-revoke-error {color:#ff8787}
/* Image controls follow the approved workspace palette and type scale. */
.ai-image-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
.ai-image-layout .panel{padding:24px;min-width:0}.ai-image-layout textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:130px}
.ai-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ai-size-presets{display:flex;gap:8px;flex-wrap:wrap}
.ai-image-aside p{line-height:1.7}.ai-image-price strong{font-size:40px;color:var(--text,#f7f7fa)}
.ai-reference{display:flex;gap:14px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}.ai-reference img{max-width:100px;max-height:100px;object-fit:contain}
.ai-result-image{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}.project-image img{width:100%;height:100%;object-fit:contain}
.ai-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#0b0b10;border:1px solid #292936;border-radius:8px;padding:16px;font-size:13px;line-height:1.6}
#image-error,#image-submit-error{color:#ff9098;line-height:1.6}.ai-image-aside h3{margin-top:24px}
@media(max-width:900px){.ai-image-layout{grid-template-columns:1fr}.ai-image-layout .panel{padding:18px}}
