.agnes-images-app{max-width:1440px;margin:0 auto;padding:0 40px 80px;color:var(--theme-text);min-height:100vh}
.ag-nav{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--theme-line)}
.ag-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ag-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid var(--theme-line);border-radius:10px;background:var(--theme-surface);color:var(--theme-text);font-size:12px;font-weight:600;text-decoration:none;line-height:1.5}
.ag-button:hover:not(:disabled){border-color:var(--theme-accent);background:var(--theme-surface-soft)}
.ag-primary{background:var(--theme-accent-fill);border-color:var(--theme-accent-fill);color:#fff}
.ag-primary:hover:not(:disabled){background:var(--theme-accent-fill);filter:brightness(1.08)}
.agnes-images-app :focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}
.ag-heading{padding:45px 0 30px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.ag-kicker{font:600 10px/1.5 var(--mono,monospace);letter-spacing:.13em;color:var(--theme-accent);display:block;margin:0 0 9px}
.ag-heading h1{font-size:32px;font-weight:600;letter-spacing:-.02em;margin-bottom:10px}
.ag-subtitle{color:var(--theme-muted);margin:0;font-size:13px}
.ag-quota{padding:11px 15px;border:1px solid var(--theme-line);border-radius:12px;color:var(--theme-muted);font-size:12px;background:var(--theme-surface);white-space:nowrap}
.ag-layout{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:30px;align-items:start}
.ag-panel{background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:18px;padding:26px;box-shadow:var(--theme-shadow)}
.ag-panel-heading,.ag-history-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}
.ag-panel-heading h2,.ag-history-heading h2{font-size:20px;margin:0;font-weight:600}
.ag-provider{font-size:11px;border:1px solid var(--theme-line);border-radius:7px;padding:5px 9px;white-space:nowrap;color:var(--theme-muted)}
.ag-composer fieldset{padding:0;margin:0;border:0;min-width:0}
.ag-composer label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
.ag-composer select,.ag-composer textarea,.ag-composer input{background:var(--theme-input,var(--theme-surface));color:var(--theme-text);border-color:var(--theme-line);font-size:13px;border-radius:9px}
.ag-composer textarea{padding:13px;min-height:176px}
.ag-composer select{min-height:43px}
.ag-composer input[type=file]{padding:9px;max-width:100%;font-size:11px}
.ag-composer input[type=file]::file-selector-button{padding:5px 8px;margin-right:8px;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-surface-soft);color:var(--theme-text);cursor:pointer}
.ag-label-row{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:22px;margin-bottom:8px}
.ag-label-row label{margin:0}.ag-text-button{color:var(--theme-accent);font-size:10px;padding:2px 0;text-align:right}
.ag-count{font:10px/1.5 var(--mono,monospace);color:var(--theme-muted);text-align:right;margin:5px 0 18px}
.ag-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ag-grid select{margin-top:8px}
.ag-reference{margin:20px 0;padding:16px;background:var(--theme-surface-soft);border:1px dashed var(--theme-line);border-radius:11px}
.ag-optional{font-size:10px;font-weight:400;color:var(--theme-muted);margin-left:5px}
.ag-muted{color:var(--theme-muted);font-size:11px;line-height:1.8;margin-bottom:12px;overflow-wrap:anywhere}
.ag-reference-preview{display:flex;align-items:center;gap:10px;margin-top:13px;min-width:0}
.ag-reference-preview img{width:62px;height:62px;border-radius:7px;object-fit:cover;flex-shrink:0}
.ag-reference-preview span{font-size:11px;color:var(--theme-muted);overflow-wrap:anywhere;flex:1;min-width:0}
.ag-reference-preview .ag-button{min-height:32px;padding:6px 8px;font-size:10px}
.ag-submit{width:100%;min-height:47px;font-size:13px}
.ag-form-message{font-size:12px;line-height:1.8;color:var(--theme-muted);margin:12px 0 0;overflow-wrap:anywhere}
.ag-form-message:empty{display:none}.ag-error{color:var(--theme-danger,#b93845)}
.ag-draft-note{font-size:10px;color:var(--theme-muted);line-height:1.8;margin:12px 0 0}
.ag-notice{padding:12px;border-radius:8px;background:var(--theme-surface-soft);color:var(--theme-muted);font-size:12px;line-height:1.8;margin-bottom:18px}
.ag-notice[hidden]{display:none}.ag-warning{margin:14px 0 0;background:var(--theme-warning-bg,#fff5df);color:var(--theme-warning,#825b13);border:1px solid var(--theme-warning-line,#efdfb4)}
.ag-warning p{margin:0 0 10px}.ag-warning p:last-child{margin-bottom:0}.ag-delete{color:var(--theme-danger,#b93845)}
.ag-video-link{display:block;border-top:1px solid var(--theme-line);padding-top:19px;margin-top:22px;text-decoration:none;color:var(--theme-muted);font-size:11px}
.ag-video-link span{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.ag-video-link strong{font-size:12px;font-weight:600;color:var(--theme-accent)}
.ag-video-link small{display:block;margin-top:6px;font-size:10px}
.ag-history-heading{margin:5px 0 10px}.ag-history>[data-history-note]{margin-bottom:20px}
.ag-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.ag-task{background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:14px;overflow:hidden;min-width:0;box-shadow:var(--theme-shadow)}
.ag-task-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px}
.ag-task-heading time{font-size:9px;color:var(--theme-muted);text-align:right}.ag-status{font-size:10px;border-radius:5px;padding:4px 7px;background:var(--theme-surface-soft);color:var(--theme-muted);white-space:nowrap}
.ag-status.succeeded{background:var(--theme-success-bg,#e5f5ef);color:var(--theme-success,#18765b)}
.ag-status.failed,.ag-status.unknown{background:var(--theme-warning-bg,#fff5df);color:var(--theme-warning,#825b13)}
.ag-status.pending,.ag-status.running,.ag-status.saving{background:var(--theme-accent-soft,#eaf0ff);color:var(--theme-accent)}
.ag-image-preview{display:flex;width:100%;aspect-ratio:1;align-items:center;justify-content:center;background:var(--theme-surface-soft)}
.ag-image-preview img{display:block;width:100%;height:100%;object-fit:contain}
.ag-placeholder{display:flex;min-height:190px;aspect-ratio:1;flex-direction:column;align-items:center;justify-content:center;background:var(--theme-surface-soft);padding:25px;text-align:center;color:var(--theme-muted)}
.ag-placeholder span{font-size:35px;font-weight:300;color:var(--theme-accent);line-height:1.5}.ag-placeholder p{font-size:11px;line-height:1.8;max-width:180px;margin:8px 0 0}
.ag-task-body{padding:16px}.ag-task-prompt{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 10px}
.ag-task-body .ag-muted{font-size:10px;margin-bottom:13px}.ag-task-message{font-size:11px;line-height:1.8;overflow-wrap:anywhere;margin-bottom:14px}.ag-task-body .ag-button{font-size:10px;min-height:34px;padding:7px 10px}
.ag-empty{grid-column:1/-1;min-height:390px;border:1px dashed var(--theme-line);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;color:var(--theme-muted);background:var(--theme-surface-soft)}
.ag-empty>span{font-size:44px;color:var(--theme-accent);margin-bottom:16px}.ag-empty h3{font-size:16px;font-weight:500;color:var(--theme-text);margin-bottom:10px}.ag-empty p{font-size:12px;margin:0}
@media(min-width:1450px){.ag-composer{position:sticky;top:24px}}
@media(max-width:1120px){.agnes-images-app{padding-inline:25px}.ag-layout{grid-template-columns:minmax(310px,390px) minmax(0,1fr);gap:22px}.ag-task-list{grid-template-columns:1fr}.ag-heading h1{font-size:29px}.ag-panel{padding:22px}.ag-quota{font-size:11px}.ag-nav .ag-actions{gap:5px}}
@media(max-width:760px){.agnes-images-app{padding:0 16px 60px}.ag-nav{min-height:80px;gap:12px;flex-wrap:wrap;padding:16px 0}.ag-nav>.ag-actions{flex:1;justify-content:flex-end}.ag-nav .ag-button{font-size:10px;padding:7px 8px;min-height:34px}.ag-nav .brand-logo{width:105px;height:34px}.ag-nav .fennzo-user-name{display:none}.ag-heading{padding:28px 0 23px;display:block}.ag-heading h1{font-size:27px}.ag-quota{display:inline-block;margin-top:18px}.ag-layout{grid-template-columns:1fr;gap:30px}.ag-panel{padding:22px 20px}.ag-task-list{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-task-heading{align-items:flex-start;flex-wrap:wrap}.ag-placeholder{min-height:160px;padding:16px}.ag-task-body{padding:13px}.ag-empty{min-height:290px}}
@media(max-width:460px){.ag-nav{gap:12px}.ag-nav>.ag-actions{gap:4px}.ag-nav .fennzo-profile-link{display:none}.ag-task-list{grid-template-columns:1fr}.ag-heading h1{font-size:25px}.ag-panel{padding:21px 18px}.ag-label-row{gap:10px}.ag-text-button{font-size:10px}.ag-subtitle{font-size:12px}}
