:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;--bg:#f4f6f8;--surface:#fff;--surface-2:#f8fafb;--text:#172033;--muted:#687386;--line:#dfe4ea;--line-strong:#c8d0da;--primary:#245dcc;--primary-hover:#194ba9;--primary-soft:#eaf1ff;--green:#168565;--green-soft:#e8f6f1;--orange:#ca6b1d;--orange-soft:#fff1e4;--red:#c63d45;--red-soft:#fff0f1;--shadow:0 8px 25px #19284112;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif}.dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#11151b;--surface:#1a2029;--surface-2:#202833;--text:#eef2f7;--muted:#a4afbd;--line:#303a47;--line-strong:#424e5e;--primary:#77a5ff;--primary-hover:#9bbdff;--primary-soft:#202f4c;--green:#57c7a4;--green-soft:#183a33;--orange:#f1a25e;--orange-soft:#442f20;--red:#ff8d92;--red-soft:#472529;--shadow:0 10px 30px #00000038}*{box-sizing:border-box;letter-spacing:0}html,body,#root{min-height:100%;margin:0}body{background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.screen-loading{min-height:100vh;color:var(--muted);place-items:center;display:grid}.inline-loading{align-items:center;gap:7px;display:inline-flex}.spin{animation:.85s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.button{white-space:nowrap;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:8px 14px;font-size:13px;font-weight:650;transition:all .16s;display:inline-flex}.button:disabled{opacity:.55;cursor:not-allowed}.button-primary{color:#fff;background:var(--primary)}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-outline{color:var(--text);background:var(--surface);border-color:var(--line)}.button-outline:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.button-ghost{color:var(--muted);background:0 0}.button-ghost:hover{color:var(--text);background:var(--surface-2)}.button-danger{color:var(--red);background:var(--red-soft);border-color:color-mix(in srgb, var(--red) 25%, transparent)}.icon-button{width:36px;height:36px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:6px;flex:0 0 36px;place-items:center;padding:0;display:inline-grid}.icon-button:hover{background:var(--surface-2);color:var(--text);border-color:var(--line)}.icon-text-button,.text-button{color:var(--primary);background:0 0;align-items:center;gap:7px;padding:5px 0;font-size:13px;display:inline-flex}.toast{z-index:200;width:min(410px,100vw - 32px);color:var(--text);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:7px;align-items:center;gap:10px;padding:12px 14px;display:flex;position:fixed;top:80px;right:20px}.toast span{flex:1;font-size:13px;line-height:1.45}.toast button{color:inherit;background:0 0;place-items:center;display:grid}.toast-error{border-color:color-mix(in srgb, var(--red) 45%, var(--line));color:var(--red)}.toast-success{border-color:color-mix(in srgb, var(--green) 45%, var(--line));color:var(--green)}.toast-warning{border-color:color-mix(in srgb, var(--orange) 45%, var(--line));color:var(--orange)}.auth-shell{background:var(--surface);grid-template-columns:minmax(360px,.9fr) minmax(460px,1.1fr);min-height:100vh;display:grid}.auth-art{color:#fff;background:#172235;flex-direction:column;justify-content:center;min-height:100vh;padding:56px;display:flex;position:relative;overflow:hidden}.auth-art:before{content:"";opacity:.24;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:36px 36px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(to bottom right,#000,#0000 75%);mask-image:linear-gradient(to bottom right,#000,#0000 75%)}.auth-art>*{z-index:1;position:relative}.brand-mark{color:#172235;background:#f0a43a;border-radius:7px;flex:0 0 38px;place-items:center;width:38px;height:38px;display:inline-grid}.auth-art h1{margin:30px 0 10px;font-size:42px;line-height:1.1}.auth-art p{color:#c9d4e3;max-width:420px;margin:0;font-size:17px;line-height:1.8}.art-lines{gap:12px;width:min(330px,80%);margin-top:54px;display:grid}.art-lines span{background:#ffffff26;border-radius:4px;height:8px}.art-lines span:nth-child(2){background:#3e81df;width:72%}.art-lines span:nth-child(3){background:#43ad89;width:46%}.eyebrow{color:var(--primary);text-transform:uppercase;margin-bottom:7px;font-size:11px;font-weight:800;display:block}.auth-heading h2,.page-heading h1{margin:0;font-size:28px;line-height:1.2}.auth-heading p,.page-heading p{color:var(--muted);margin:10px 0 0;font-size:14px;line-height:1.65}.form-stack{gap:17px;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-stack label,.field-label{color:var(--muted);gap:7px;font-size:12px;font-weight:650;display:grid}input,textarea,select{border:1px solid var(--line);background:var(--surface);border-radius:6px;outline:0;width:100%;transition:all .15s}input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent)}.code-row{grid-template-columns:1fr auto;align-items:end;gap:10px;display:grid}.auth-switch{justify-content:space-between;margin-top:20px;display:flex}.auth-switch button{color:var(--primary);background:0 0;padding:4px 0;font-size:13px}.app-shell{min-height:100vh}.topbar{z-index:60;background:color-mix(in srgb, var(--surface) 92%, transparent);border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);align-items:center;gap:28px;height:64px;padding:0 max(18px,50vw - 740px);display:flex;position:sticky;top:0}.brand{flex:none;align-items:center;gap:10px;display:flex}.brand .brand-mark{flex-basis:34px;width:34px;height:34px}.brand>span:last-child{display:grid}.brand b{font-size:16px}.brand small{color:var(--muted);font-size:8px;font-weight:750}.nav{flex:1;align-items:center;gap:3px;display:flex}.nav a{min-height:36px;color:var(--muted);border-radius:6px;align-items:center;gap:7px;padding:8px 12px;font-size:13px;font-weight:600;display:inline-flex}.nav a:hover{background:var(--surface-2);color:var(--text)}.nav a.active{color:var(--primary);background:var(--primary-soft)}.top-actions{align-items:center;gap:7px;display:flex}.announcement-trigger{position:relative}.announcement-dot{border:2px solid var(--surface);background:#ef4444;border-radius:50%;width:7px;height:7px;position:absolute;top:5px;right:5px}.points{height:34px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:6px;align-items:baseline;gap:6px;padding:7px 10px;font-size:11px;display:flex}.points b{color:var(--green);font-size:14px}.user-chip{white-space:nowrap;text-overflow:ellipsis;max-width:130px;color:var(--muted);background:0 0;border-radius:6px;align-items:center;gap:6px;padding:7px 6px;font-size:12px;display:inline-flex;overflow:hidden}.user-chip:hover{color:var(--text);background:var(--surface-2)}.page-shell{width:min(1480px,100%);min-height:calc(100vh - 64px);margin:0 auto;padding:24px 22px 40px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 1px 2px #141e2d06}.page-heading{justify-content:space-between;align-items:flex-end;gap:24px;min-height:74px;margin-bottom:22px;display:flex}.page-heading h1{font-size:25px}.heading-actions{align-items:center;gap:10px;display:flex}.mobile-only,.mobile-nav-account{display:none}.workbench-grid{grid-template-columns:minmax(390px,5fr) minmax(520px,7fr);gap:18px;min-height:calc(100vh - 112px);display:grid}.workbench-input,.workbench-output{flex-direction:column;min-height:680px;padding:20px;display:flex}.panel-heading{justify-content:space-between;align-items:flex-start;gap:14px;min-height:43px;margin-bottom:16px;display:flex}.panel-heading h2{margin:0;font-size:16px}.select-wrap{border:1px solid var(--line);min-width:140px;color:var(--primary);background:var(--primary-soft);border-radius:6px;align-items:center;gap:5px;padding-left:9px;display:flex;position:relative}.select-wrap select{min-height:34px;box-shadow:none;color:inherit;appearance:none;background:0 0;border:0;padding:5px 25px 5px 2px;font-size:12px}.select-wrap>svg:last-child{pointer-events:none;position:absolute;right:8px}.prompt-box{margin-bottom:18px;position:relative}.prompt-box textarea{resize:vertical;background:var(--surface-2);min-height:128px;padding:13px 42px 28px 13px;line-height:1.7}.prompt-tool{width:30px;height:30px;color:var(--muted);background:0 0;border-radius:6px;place-items:center;display:grid;position:absolute;top:9px;right:9px}.prompt-tool:hover,.prompt-tool.active{color:var(--primary);background:var(--primary-soft)}.counter{color:var(--muted);font-size:10px;position:absolute;bottom:9px;right:10px}.restore-prompt{color:var(--primary);background:var(--primary-soft);border-radius:4px;padding:3px 6px;font-size:10px;position:absolute;bottom:7px;left:9px}.config-section h3{color:var(--muted);margin:0 0 9px;font-size:12px;font-weight:700}.section-line{justify-content:space-between;align-items:center;display:flex}.section-line span{color:var(--muted);font-size:11px}.segment{grid-auto-columns:1fr;grid-auto-flow:column;gap:6px;display:grid}.segment button{border:1px solid var(--line);background:var(--surface-2);min-width:0;height:38px;color:var(--muted);text-overflow:ellipsis;border-radius:6px;padding:4px 5px;font-size:11px;overflow:hidden}.segment button:hover{border-color:var(--line-strong);color:var(--text)}.segment button.selected{color:var(--primary);border-color:color-mix(in srgb, var(--primary) 48%, var(--line));background:var(--primary-soft);font-weight:750}.dimension-row{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:8px;display:grid}.dimension-row span{color:var(--muted)}.ref-stack{align-items:center;min-height:66px;padding-left:18px;display:flex}.ref-thumb,.ref-add{border:2px solid var(--surface);width:66px;height:66px;box-shadow:0 0 0 1px var(--line);background:var(--surface-2);border-radius:7px;flex:0 0 66px;margin-left:-18px;transition:all .18s;position:relative}.ref-stack:hover{padding-left:0}.ref-thumb:hover{z-index:3;transform:translateY(-3px)}.ref-thumb img{object-fit:cover;cursor:pointer;border-radius:5px;width:100%;height:100%}.ref-thumb button{color:#fff;background:var(--red);opacity:0;border-radius:50%;place-items:center;width:18px;height:18px;padding:0;display:grid;position:absolute;top:-5px;right:-5px}.ref-thumb:hover button{opacity:1}.ref-add{border:1px dashed var(--line-strong);box-shadow:none;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:10px;display:flex}.ref-add:hover{color:var(--primary);border-color:var(--primary)}.hidden-input{display:none}.workbench-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;margin-top:auto;padding-top:17px;display:flex}.cost{color:var(--muted);font-size:12px}.cost b{color:var(--green);font-size:17px}.output-body{flex:1;min-height:0;display:grid}.empty-output,.progress-state{text-align:center;flex-direction:column;justify-content:center;align-self:stretch;align-items:center;display:flex}.empty-icon,.status-icon{width:82px;height:82px;color:var(--primary);background:var(--primary-soft);border:1px solid color-mix(in srgb, var(--primary) 16%, var(--line));border-radius:50%;place-items:center;margin-bottom:18px;display:grid}.empty-output h3,.progress-state h3{margin:0;font-size:17px}.empty-output p,.progress-state p{max-width:420px;color:var(--muted);margin:9px 0 0;font-size:13px;line-height:1.6}.status-icon{color:var(--green);background:var(--green-soft)}.status-icon-warn{color:var(--orange);background:var(--orange-soft)}.progress-track{background:var(--surface-2);border:1px solid var(--line);border-radius:4px;width:min(380px,76%);height:7px;margin-top:24px;overflow:hidden}.progress-track span{background:var(--green);height:100%;transition:width .5s;display:block}.progress-number{min-height:28px;color:var(--muted);padding-top:8px;font-size:11px}.result-state{flex-direction:column;height:100%;min-height:0;display:flex}.result-image-grid{flex:1;place-items:center;min-height:0;display:grid;overflow:hidden}.result-image-grid img{max-height:calc(100vh - 240px);box-shadow:var(--shadow);cursor:zoom-in;border-radius:6px}.result-meta{color:var(--green);justify-content:space-between;align-items:center;gap:12px;padding-top:15px;font-size:12px;display:flex}.result-meta>span,.result-meta>div{align-items:center;gap:12px;display:flex}.modal-backdrop{z-index:150;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0d141fa6;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--line);border-radius:8px;flex-direction:column;width:min(560px,100%);max-height:calc(100vh - 40px);display:flex;overflow:hidden;box-shadow:0 28px 80px #00000040}.modal-wide{width:min(980px,100%)}.modal-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;min-height:58px;padding:12px 18px;display:flex}.modal-header h2{margin:0;font-size:16px}.modal-body{padding:18px;overflow:auto}.preview-image{object-fit:contain;max-height:calc(100vh - 190px);margin:0 auto 16px}.account-summary{background:var(--surface-2);border:1px solid var(--line);border-radius:7px;align-items:center;gap:11px;margin-bottom:20px;padding:12px;display:flex}.account-summary>div{gap:4px;display:grid}.account-summary b{font-size:13px}.account-summary small{color:var(--muted);font-size:10px}.library-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.managed-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:15px;display:grid}.library-item{text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:7px;min-width:0;padding:7px}.library-item:hover{border-color:var(--primary);box-shadow:var(--shadow)}.library-item img{aspect-ratio:1;object-fit:cover;border-radius:5px;width:100%}.library-item span,.library-item small{white-space:nowrap;text-overflow:ellipsis;margin-top:7px;font-size:11px;display:block;overflow:hidden}.library-item small{color:var(--muted);margin-top:3px;font-size:9px}.empty-block{min-height:260px;color:var(--muted);text-align:center;flex-direction:column;grid-column:1/-1;justify-content:center;align-items:center;gap:9px;display:flex}.empty-block p{margin:0}.filter-row{gap:8px;display:flex}.search-input{border:1px solid var(--line);background:var(--surface);min-width:230px;height:39px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:0 10px;display:flex}.search-input input{min-height:0;box-shadow:none;background:0 0;border:0;padding:0}.history-toolbar{border-bottom:1px solid var(--line);align-items:center;margin-bottom:20px;padding-bottom:18px}.history-toolbar .search-input{width:min(360px,100%)}.history-toolbar select{width:auto;min-width:132px}.history-toolbar input[type=date]{width:148px}.history-section,.reference-section{min-width:0}.history-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;display:grid}.history-card{border:1px solid var(--line);background:var(--surface);border-radius:7px;min-width:0;transition:border-color .16s,box-shadow .16s,transform .16s;overflow:hidden}.history-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow);transform:translateY(-2px)}.history-card-media{aspect-ratio:4/3;background:var(--surface-2);place-items:center;width:100%;padding:0;display:grid;position:relative;overflow:hidden}.history-card-media img{object-fit:contain;width:100%;height:100%;transition:transform .18s}.history-card:hover .history-card-media img{transform:scale(1.015)}.history-card-placeholder{color:var(--muted);justify-items:center;gap:8px;font-size:11px;display:grid}.history-card-status{position:absolute;top:9px;right:9px}.history-card-body{flex-direction:column;min-height:142px;padding:13px;display:flex}.history-card-meta{color:var(--primary);justify-content:space-between;align-items:center;gap:10px;font-size:9px;font-weight:700;display:flex}.history-card-meta span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.history-card-meta span:first-child{min-width:0}.history-card-meta span:last-child{color:var(--muted);flex:none}.history-card h2{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:9px 0 14px;font-size:13px;font-weight:650;line-height:1.55;display:-webkit-box;overflow:hidden}.history-card-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;min-width:0;margin-top:auto;padding-top:10px;display:flex}.history-card-footer time{white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--muted);font-size:9px;overflow:hidden}.history-card .icon-button{flex-basis:31px;width:31px;height:31px}.history-section>.pager,.reference-section>.pager{margin-top:20px}.admin-list{display:grid}.admin-row{border-bottom:1px solid var(--line);align-items:center;gap:13px;min-width:0;min-height:74px;padding:10px 7px;display:flex;position:relative}.admin-row:last-child{border-bottom:0}.history-thumb{width:50px;height:50px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:6px;flex:0 0 50px;place-items:center;display:grid;overflow:hidden}.history-thumb img{object-fit:cover;width:100%;height:100%}.admin-row-main{flex:1;min-width:0}.admin-row-main b{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:13px;overflow:hidden}.admin-row-main small{white-space:nowrap;text-overflow:ellipsis;color:var(--muted);margin:6px 0 0;font-size:10px;display:block;overflow:hidden}.row-actions{gap:4px;display:flex}.status-badge{width:fit-content;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:999px;flex:none;align-items:center;padding:4px 8px;font-size:9px;font-weight:700;display:inline-flex}.status-badge.success{color:var(--green);background:var(--green-soft)}.status-badge.danger{color:var(--red);background:var(--red-soft)}.status-badge.warning{color:var(--orange);background:var(--orange-soft)}.status-badge.info{color:var(--primary);background:var(--primary-soft)}.pager{min-height:52px;color:var(--muted);border-top:1px solid var(--line);justify-content:space-between;align-items:flex-end;padding-top:14px;font-size:11px;display:flex}.pager>div{align-items:center;gap:10px;display:flex}.pager button{color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:5px;padding:6px 9px}.detail-layout{grid-template-columns:1fr 1.25fr;gap:20px;display:grid}.detail-fields{min-width:0}.detail-prompt{background:var(--surface-2);border-radius:6px;padding:12px;font-size:12px;line-height:1.65}.detail-fields dl{grid-template-columns:auto 1fr;gap:9px 14px;font-size:11px;display:grid}.detail-fields dt{color:var(--muted)}.detail-fields dd{margin:0}.detail-images img{object-fit:contain;border-radius:6px;max-height:560px;margin:auto}.detail-actions{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.detail-images>div{justify-items:center;gap:8px;display:grid}.detail-reference-grid{flex-wrap:wrap;gap:7px;margin-top:12px;display:flex}.detail-reference-grid img{object-fit:cover;border:1px solid var(--line);border-radius:5px;width:48px;height:48px}.warning-box{color:var(--orange);background:var(--orange-soft);border:1px solid color-mix(in srgb, var(--orange) 28%, var(--line));border-radius:6px;align-items:flex-start;gap:8px;margin:12px 0;padding:10px;font-size:11px;line-height:1.5;display:flex}.managed-image{border:1px solid var(--line);background:var(--surface);border-radius:7px;min-width:0;transition:border-color .16s,box-shadow .16s,transform .16s;position:relative;overflow:hidden}.managed-image:hover{border-color:var(--line-strong);box-shadow:var(--shadow);transform:translateY(-2px)}.image-preview-button{background:0 0;width:100%;padding:0;display:block}.image-preview-button img{aspect-ratio:4/3;object-fit:contain;background:var(--surface-2);width:100%;transition:transform .18s}.managed-image:hover .image-preview-button img{transform:scale(1.015)}.managed-image>div{border-top:1px solid var(--line);padding:11px}.managed-image b,.managed-image small{white-space:nowrap;text-overflow:ellipsis;font-size:11px;display:block;overflow:hidden}.managed-image small{color:var(--muted);margin-top:5px;font-size:9px}.image-delete{color:#fff;background:#991f29e0;border-radius:6px;place-items:center;width:31px;height:31px;display:grid;position:absolute;top:8px;right:8px}.settings-layout{grid-template-columns:200px minmax(0,1fr);gap:16px;display:grid}.settings-nav{flex-direction:column;gap:5px;display:flex}.settings-nav button{text-align:left;min-height:41px;color:var(--muted);background:0 0;border-radius:6px;align-items:center;gap:9px;padding:8px 11px;display:flex}.settings-nav button:hover{color:var(--text);background:var(--surface)}.settings-nav button.active{color:var(--primary);background:var(--primary-soft);font-weight:700}.settings-content{min-width:0;padding:20px}.section-title-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:15px;display:flex}.section-title-row h2{margin:0;font-size:17px}.section-title-row p{color:var(--muted);margin:6px 0 0;font-size:11px}.status-cards{grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0;display:grid}.service-card{border:1px solid var(--line);background:var(--surface-2);border-radius:7px;grid-template-columns:auto 1fr;gap:4px 8px;padding:13px;display:grid}.service-dot{background:var(--orange);border-radius:50%;width:8px;height:8px;margin-top:5px}.service-dot.ok{background:var(--green)}.service-card b{font-size:12px}.service-card small{color:var(--muted);grid-column:2;font-size:9px}.metric-grid{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.metric-grid>div{background:var(--surface-2);border:1px solid var(--line);border-radius:7px;padding:15px}.metric-grid span,.metric-grid b{display:block}.metric-grid span{color:var(--muted);font-size:10px}.metric-grid b{margin-top:7px;font-size:22px}.system-tests{border-top:1px solid var(--line);align-items:center;gap:10px;margin-top:18px;padding-top:17px;display:flex}.test-sms{flex:1;align-items:center;gap:8px;display:flex}.test-sms input{min-width:180px}.danger-icon{color:var(--red)}.announcement-list{gap:0;display:grid}.announcement-item{border-bottom:1px solid var(--line);padding:18px 2px}.announcement-item:first-child{padding-top:2px}.announcement-item:last-child{border-bottom:0;padding-bottom:2px}.announcement-item-heading{justify-content:space-between;align-items:baseline;gap:16px;display:flex}.announcement-item h3{margin:0;font-size:15px}.announcement-item time{color:var(--muted);flex:none;font-size:11px}.announcement-item p,.announcement-preview{color:var(--muted);white-space:pre-wrap;word-break:break-word;margin:9px 0 0;line-height:1.75}.announcement-empty{min-height:180px}.announcement-form{border-bottom:1px solid var(--line);max-width:760px;padding:20px 0 24px}.announcement-admin-list{margin-top:8px}.announcement-admin-row{align-items:flex-start}.announcement-admin-row .announcement-preview{margin-top:6px;font-size:11px}.config-state{color:var(--muted);background:var(--surface-2);border-radius:6px;padding:5px 9px;font-size:11px;font-weight:700}.config-state.ready{color:var(--green);background:var(--green-soft)}.optimizer-form{max-width:760px;padding-top:20px}.field-help{color:var(--muted);font-size:10px;font-weight:500;line-height:1.5}.optimizer-actions{flex-wrap:wrap;gap:9px;display:flex}.provider-symbol{width:38px;height:38px;color:var(--primary);background:var(--primary-soft);border-radius:6px;flex:0 0 38px;place-items:center;display:grid}.user-points{color:var(--green);font-size:12px}.role-tag{color:var(--orange);background:var(--orange-soft);border-radius:4px;padding:2px 5px;font-size:8px}.checkbox-label{grid-template-columns:auto 1fr;align-items:center;display:flex!important}.checkbox-label input{width:16px;min-height:16px}.filter-wrap{flex-wrap:wrap;justify-content:flex-end}.admin-filters{flex-wrap:wrap;gap:8px;padding:15px 0;display:flex}.admin-filters select,.admin-filters input[type=date]{width:auto;min-width:130px}.capability-groups{border:1px solid var(--line);background:var(--surface-2);border-radius:6px;gap:12px;padding:12px;display:grid}.capability-groups fieldset{border:0;min-width:0;margin:0;padding:0}.capability-groups legend{color:var(--muted);margin-bottom:7px;font-size:11px;font-weight:700}.capability-groups fieldset>div{flex-wrap:wrap;gap:9px 14px;display:flex}.capability-groups .checkbox-label{color:var(--text);font-size:11px;font-weight:500}.admin-detail-grid{grid-template-columns:1fr 1fr;gap:20px;display:grid}.admin-detail-grid h3{margin:0 0 10px;font-size:14px}.admin-detail-grid h3 small{color:var(--muted);font-size:10px;font-weight:500}.compact-list{border-top:1px solid var(--line);display:grid}.compact-list>div{border-bottom:1px solid var(--line);grid-template-columns:auto 1fr;gap:4px 9px;padding:10px 0;font-size:11px;display:grid}.compact-list small{color:var(--muted);grid-column:2;font-size:9px}.positive{color:var(--green)}.negative{color:var(--red)}.break-value{word-break:break-all}@media (width<=1120px){.topbar{gap:16px}.nav a{padding:8px 9px}.workbench-grid{grid-template-columns:minmax(340px,5fr) minmax(430px,7fr)}}@media (width<=860px){.desktop-only,.user-chip{display:none}.mobile-only{display:inline-grid}.topbar{padding:0 15px}.nav{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;align-items:stretch;padding:8px;display:none;position:absolute;top:59px;left:12px;right:12px}.nav-open{display:flex}.nav a{justify-content:flex-start}.top-actions{margin-left:auto}.page-shell{padding:18px 14px 32px}.workbench-grid{grid-template-columns:1fr;min-height:0}.workbench-input,.workbench-output{min-height:620px}.result-image-grid img{max-height:620px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout{grid-template-columns:1fr}.settings-nav{flex-direction:row;overflow-x:auto}.settings-nav button{flex:none}.metric-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=620px){.auth-shell{background:var(--surface);display:block}.auth-art{justify-content:flex-end;min-height:220px;padding:28px 24px}.auth-art h1{margin:18px 0 6px;font-size:30px}.auth-art p{font-size:13px}.art-lines{display:none}.auth-panel{width:calc(100% - 32px);padding:32px 0}.auth-heading h2{font-size:24px}.brand small,.points span{display:none}.points{padding:7px 8px}.page-heading{flex-direction:column;align-items:stretch}.heading-actions,.filter-row{width:100%}.filter-row{flex-direction:column}.search-input{width:100%;min-width:0}.workbench-input,.workbench-output{min-height:0;padding:15px}.workbench-output{min-height:560px}.panel-heading{align-items:center}.segment{grid-template-columns:repeat(3,1fr);grid-auto-flow:row}.segment button{height:36px}.ref-stack:hover .ref-thumb,.ref-stack:hover .ref-add{margin-left:-12px}.ref-stack{padding-left:12px;overflow-x:auto}.ref-thumb,.ref-add{margin-left:-12px}.result-meta{flex-direction:column;align-items:flex-start}.modal-backdrop{padding:8px}.modal{max-height:calc(100vh - 16px)}.library-grid,.managed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-toolbar select,.history-toolbar input[type=date]{width:100%}.history-grid{grid-template-columns:1fr}.pager{flex-direction:column;align-items:flex-start;gap:10px}.detail-layout{grid-template-columns:1fr}.settings-content{padding:14px}.status-cards{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.admin-row{flex-wrap:wrap;align-items:flex-start}.admin-row-main{flex-basis:calc(100% - 55px)}.section-title-row{flex-direction:column;align-items:stretch}.form-grid,.admin-detail-grid{grid-template-columns:1fr}.filter-wrap{justify-content:stretch}.filter-wrap>*{flex:130px}.admin-filters>*{flex:130px;min-width:0!important}}:root{--bg:#f7f8fc;--surface:#fff;--surface-2:#f5f7fb;--text:#172033;--muted:#6b768a;--line:#e2e7f0;--line-strong:#cbd4e2;--primary:#4f46e5;--primary-hover:#4338ca;--primary-soft:#eef0ff;--green:#168567;--green-soft:#e8f7f1;--orange:#b96920;--orange-soft:#fff3e6;--red:#c64350;--red-soft:#fff0f2;--shadow:0 14px 35px #1e294b14, 0 2px 6px #1e294b0a;--shadow-hover:0 18px 42px #1e294b21, 0 3px 8px #1e294b0f}.dark{--bg:#111522;--surface:#1a2030;--surface-2:#20283a;--text:#f1f4fb;--muted:#aab4c8;--line:#303b51;--line-strong:#43516a;--primary:#9b9cff;--primary-hover:#b5b5ff;--primary-soft:#2d3154;--green:#65d2ab;--green-soft:#1d403b;--orange:#f0ae6b;--orange-soft:#493424;--red:#ff929e;--red-soft:#4d2931;--shadow:0 16px 38px #00000047, 0 2px 8px #0000002e;--shadow-hover:0 20px 48px #0000005c, 0 3px 10px #00000038}body{background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,textarea,select{font-size:13px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb, var(--primary) 25%, transparent);outline-offset:2px}.screen-loading{background:var(--bg)}.spin{animation-duration:.9s}.button{border-radius:8px;min-height:42px;padding:9px 16px;font-size:13px;font-weight:700;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}.button-primary{box-shadow:0 7px 16px color-mix(in srgb, var(--primary) 20%, transparent)}.button-primary:hover:not(:disabled){box-shadow:0 10px 20px color-mix(in srgb, var(--primary) 25%, transparent);transform:translateY(-1px)}.button-outline{background:var(--surface);border-color:var(--line-strong)}.button-outline:hover:not(:disabled){background:var(--primary-soft)}.button-ghost{border-radius:7px;min-height:38px;padding-inline:10px}.button-danger{border-color:#0000}.icon-button{border-radius:9px;flex-basis:38px;width:38px;height:38px}.icon-button:hover{background:var(--surface);border-color:var(--line);box-shadow:0 3px 10px #1e294b0f}.icon-text-button,.text-button{min-height:34px;padding:7px 0;font-weight:650}.toast{box-shadow:var(--shadow);border-radius:10px;padding:13px 15px;animation:.18s ease-out toast-in;top:auto;bottom:24px;right:50%;transform:translate(50%)}@keyframes toast-in{0%{opacity:0;transform:translate(50%,8px)}to{opacity:1;transform:translate(50%)}}.auth-shell{background:var(--bg)}.auth-art{background:#202b45}.auth-art:before{opacity:.12}.auth-art h1{letter-spacing:0;font-weight:760}.auth-art p{color:#cbd5e5}.auth-panel{width:min(472px,100% - 56px);padding:56px 0}.auth-heading h2{letter-spacing:0;font-size:30px}.auth-heading p{margin-top:11px}.form-stack{gap:19px}.form-stack label,.field-label{gap:8px;font-size:12px}input,textarea,select{border-color:var(--line);background:var(--surface);border-radius:9px}input,select{min-height:44px;padding:9px 12px}textarea{padding:13px}input::placeholder,textarea::placeholder{color:color-mix(in srgb, var(--muted) 72%, transparent)}input:focus,textarea:focus,select:focus{box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent)}.code-row .button{height:44px}.topbar{background:color-mix(in srgb, var(--surface) 90%, transparent);height:70px;box-shadow:0 1px #1e294b05}.brand{gap:11px}.brand .brand-mark{background:#f3b34c;border-radius:10px}.brand b{letter-spacing:.01em;font-size:16px}.nav{gap:6px}.nav a{border-radius:9px;min-height:40px;padding:8px 13px;font-weight:650}.nav a.active{box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent)}.points{border-radius:9px;height:38px;padding:8px 11px}.user-chip{border-radius:9px;min-height:38px;padding:7px 9px}.page-shell{padding-top:30px}.panel{border-color:var(--line);box-shadow:var(--shadow);border-radius:12px}.page-heading{min-height:80px;margin-bottom:26px}.page-heading h1{letter-spacing:0;font-size:28px;font-weight:760}.page-heading p{margin-top:8px}.workbench-grid{gap:22px}.workbench-input,.workbench-output{min-height:700px;padding:25px}.auth-shell{color:#172033;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#f5f7fa;grid-template-columns:minmax(420px,.92fr) minmax(500px,1.08fr);min-height:100dvh;display:grid}.auth-art{color:#fff;background:#0f1523;min-height:100dvh;padding:clamp(44px,6vw,88px);display:block}.auth-art:before{display:none}.auth-art-inner{flex-direction:column;justify-content:space-between;width:min(520px,100%);height:100%;min-height:calc(100dvh - clamp(88px,12vw,176px));display:flex}.auth-logo{width:100%;height:auto;display:block}.auth-logo-dark{width:min(460px,100%)}.auth-logo-light{width:230px}.auth-message{margin-block:auto;padding:64px 0}.auth-message span{color:#60a5fa;margin-bottom:20px;font-size:12px;font-weight:750;display:block}.auth-art .auth-message h1{max-width:500px;margin:0;font-size:clamp(36px,4vw,58px);font-weight:720;line-height:1.18}.auth-art .auth-message p{color:#aeb9ca;max-width:460px;margin-top:24px;font-size:16px;line-height:1.8}.auth-art-inner>small{color:#6f7d92;font-size:12px}.auth-panel-wrap{background:#fff;place-items:center;min-height:100dvh;padding:48px;display:grid;overflow-y:auto}.auth-panel{width:min(420px,100%);margin:0;padding:0}.auth-mobile-brand{display:none}.auth-heading{margin-bottom:32px}.auth-heading .eyebrow{color:#2563eb;margin-bottom:12px;font-size:11px}.auth-heading h2{color:#111827;font-size:32px;font-weight:720;line-height:1.25}.auth-heading p{color:#6b7280;margin-top:10px;font-size:14px}.auth-panel .form-stack{gap:18px}.auth-panel .form-stack label{color:#374151;gap:8px;font-size:13px;font-weight:650}.auth-panel input{color:#111827;background:#fff;border:1px solid #d5dbe5;border-radius:8px;min-height:50px;padding:11px 14px;font-size:15px}.auth-panel input::placeholder{color:#9ca3af}.auth-panel input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1f}.auth-panel .code-row{grid-template-columns:minmax(0,1fr) 122px;gap:12px}.auth-panel .code-row .button{width:122px;height:50px}.auth-panel .form-stack>.button{width:100%;min-height:50px;margin-top:4px;font-size:15px}.auth-panel .button-primary{box-shadow:none;background:#2563eb}.auth-panel .button-primary:hover:not(:disabled){box-shadow:none;background:#1d4ed8;transform:none}.auth-switch{margin-top:24px}.auth-switch button{color:#2563eb;min-height:38px;font-size:13px;font-weight:650}.auth-switch button:hover{color:#1d4ed8}.auth-switch-single{color:#9ca3af;justify-content:center;font-size:12px}.auth-panel .auth-terms-check{color:#64748b;grid-template-columns:none;align-items:flex-start;gap:9px;font-size:12px;font-weight:500;line-height:1.6;display:flex}.auth-panel .auth-terms-check input{accent-color:#2563eb;flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:2px 0 0;padding:0}.auth-terms-view{color:#6b7280;text-align:center;font-size:12px;line-height:1.6}.terms-link{color:#2563eb;font-size:inherit;background:0 0;padding:0;display:inline}.terms-link:hover{color:#1d4ed8;text-decoration:underline}.terms-document{color:var(--text);font-size:13px;line-height:1.85}.terms-document .terms-intro{color:var(--muted);background:var(--surface-2);border-radius:8px;margin:0 0 20px;padding:12px 14px}.terms-document section{margin-top:18px}.terms-document h3{margin:0 0 6px;font-size:14px}.terms-document p{color:var(--muted);margin:6px 0 0}.terms-document .terms-version{color:var(--text);margin-top:24px;font-weight:650}.auth-method-tabs{background:#f1f5f9;border-radius:9px;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:24px;padding:4px;display:grid}.auth-method-tabs button{color:#64748b;background:0 0;border-radius:6px;min-height:38px;font-size:13px;font-weight:650}.auth-method-tabs button.active{color:#1d4ed8;background:#fff;box-shadow:0 1px 5px #0f172a17}.captcha-row{grid-template-columns:minmax(0,1fr) 138px;gap:12px;display:grid}.captcha-image{color:#64748b;background:#f8fafc;border:1px solid #d5dbe5;border-radius:8px;place-items:center;width:138px;height:50px;padding:0;display:grid;overflow:hidden}.captcha-image img{object-fit:cover;width:100%;height:100%}@media (width<=900px){.auth-shell{background:#fff;min-height:100dvh;display:block;overflow-x:hidden}.auth-art{display:none}.auth-panel-wrap{min-height:100dvh;padding:max(22px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));align-items:flex-start;display:flex;overflow:visible}.auth-panel{width:min(440px,100%);margin:0 auto}.auth-mobile-brand{margin-bottom:clamp(22px,4.5vh,36px);display:block}.auth-logo-light{width:min(190px,58vw)}.auth-heading{margin-bottom:22px}.auth-heading .eyebrow{display:none}.auth-heading h2{font-size:27px}.auth-heading p{margin-top:8px}.auth-method-tabs{margin-bottom:20px}.auth-panel .form-stack{gap:16px}.auth-panel input{min-height:52px;font-size:16px}.auth-panel .code-row .button,.auth-panel .form-stack>.button{min-height:52px}.auth-switch{margin-top:18px}.auth-switch button{min-height:42px}.auth-shell .modal-backdrop{padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));align-items:center;overflow-y:auto}.auth-shell .modal{width:min(440px,100%);max-height:calc(100dvh - 32px)}}@media (width<=380px){.auth-panel-wrap{padding-inline:16px}.auth-logo-light{width:min(172px,58vw)}.auth-panel .code-row{grid-template-columns:1fr}.auth-panel .code-row .button{width:100%}.captcha-row{grid-template-columns:1fr 116px}.captcha-image{width:116px;height:52px}}.site-logo{width:160px;height:auto}.site-logo-dark,.dark .site-logo-light{display:none}.dark .site-logo-dark{display:block}.dark .topbar{background:#0f1523;border-bottom-color:#273145}@media (width<=620px){.site-logo{width:128px}}.library-mode-tabs{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;gap:4px;margin-bottom:16px;padding:4px;display:inline-flex}.library-mode-tabs button{min-height:34px;color:var(--muted);background:0 0;border-radius:6px;align-items:center;gap:6px;padding:7px 12px;font-size:12px;display:inline-flex}.library-mode-tabs button.active{color:var(--primary);background:var(--surface);box-shadow:0 1px 4px #0f172a14}.library-item-select{width:100%;color:inherit;text-align:left;background:0 0;padding:0}.library-item.disabled .library-item-select{cursor:default;opacity:.58}.library-favorite,.image-favorite{z-index:3;color:#64748b;background:#ffffffe6;border:1px solid #ffffffbf;place-items:center;display:grid;position:absolute;box-shadow:0 2px 8px #0f172a24}.library-favorite{border-radius:8px;width:31px;height:31px;top:14px;left:14px}.image-favorite{border-radius:9px;width:31px;height:31px;top:10px;left:10px}.library-favorite:hover,.image-favorite:hover,.library-favorite.active,.image-favorite.active{color:#d97706;background:#fffbeb}.dark .library-favorite,.dark .image-favorite{color:#cbd5e1;background:#0f172ae6;border-color:#475569}.dark .library-favorite.active,.dark .image-favorite.active{color:#fbbf24;background:#453412f0}.panel-heading{min-height:47px;margin-bottom:21px}.panel-heading h2{font-size:17px;font-weight:760}.select-wrap{border-radius:9px;min-width:158px;min-height:38px}.select-wrap select{min-height:36px}.field-label{margin-bottom:17px}.prompt-box{margin-bottom:24px}.prompt-box textarea{background:var(--surface-2);border-radius:10px;min-height:148px;line-height:1.75}.prompt-tool{border-radius:8px;width:34px;height:34px;top:10px;right:10px}.counter{bottom:10px;right:12px}.config-section{margin-bottom:23px}.config-section h3{color:var(--text);margin-bottom:11px;font-size:12px;font-weight:750}.section-line h3{color:var(--text)}.segment{gap:8px}.segment button{background:var(--surface);border-radius:9px;height:43px;font-weight:600}.segment button.selected{box-shadow:0 3px 10px color-mix(in srgb, var(--primary) 12%, transparent);border-width:1.5px}.dimension-row{margin-top:10px}.ref-stack{min-height:78px;padding-left:22px}.ref-thumb,.ref-add{border-radius:10px;flex-basis:76px;width:76px;height:76px;margin-left:-20px}.ref-stack:hover .ref-thumb,.ref-stack:hover .ref-add{margin-left:7px}.ref-thumb img{border-radius:8px}.ref-add{background:var(--surface-2);border-width:1.5px}.workbench-footer{padding-top:21px}.cost b{font-size:19px}.output-body{padding-top:2px}.empty-icon,.status-icon{border-radius:24px;width:88px;height:88px;margin-bottom:20px}.empty-output h3,.progress-state h3{font-size:18px}.empty-output p,.progress-state p{line-height:1.7}.progress-track{border-radius:99px;height:8px;margin-top:27px}.progress-track span{border-radius:inherit}.result-image-grid img{box-shadow:var(--shadow);border-radius:10px}.result-meta{padding-top:19px}.modal-backdrop{background:#0f172a94;padding:24px}.modal{border-radius:14px;box-shadow:0 30px 90px #0f172a45}.modal-header{min-height:64px;padding:14px 22px}.modal-header h2{font-size:17px;font-weight:760}.modal-body{padding:22px}.captcha-modal-form{gap:18px;display:grid}.captcha-modal-form label{color:var(--muted);gap:8px;font-size:12px;font-weight:650;display:grid}.captcha-modal-form>.button{width:100%;min-height:46px}.captcha-modal-form .captcha-row{grid-template-columns:minmax(0,1fr) 138px}.account-summary{border-radius:10px;padding:15px}.library-grid{gap:14px}.library-item{border-radius:10px;padding:8px;transition:border-color .16s,box-shadow .16s,transform .16s}.library-item:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}.library-item img{border-radius:8px}.empty-block{gap:11px;min-height:290px}.history-toolbar{border:1px solid var(--line);background:var(--surface);border-radius:12px;gap:10px;margin-bottom:24px;padding:14px;box-shadow:0 3px 12px #1e294b0a}.search-input{border-radius:9px;min-width:250px;height:44px;padding:0 12px}.history-toolbar select,.history-toolbar input[type=date]{border-radius:9px;min-height:44px}.history-grid{gap:20px}.history-card,.managed-image{border-radius:12px;box-shadow:0 3px 12px #1e294b0a}.history-card:hover,.managed-image:hover{border-color:color-mix(in srgb, var(--primary) 40%, var(--line));box-shadow:var(--shadow-hover)}.history-card-media{background:var(--surface-2)}.history-card-status{top:12px;right:12px}.history-card-body{min-height:150px;padding:16px}.history-card h2{margin:10px 0 16px;font-size:14px;line-height:1.6}.history-card-footer{padding-top:12px}.pager{min-height:58px;padding-top:18px}.pager button{border-radius:8px;min-height:36px;padding:7px 11px}.detail-prompt{border-radius:9px;line-height:1.75}.detail-images img{border-radius:10px;box-shadow:0 5px 18px #1e294b14}.warning-box{border-radius:9px;line-height:1.6}.managed-grid{gap:20px}.image-preview-button img{background:var(--surface-2)}.managed-image>div{padding:13px}.image-delete{border-radius:9px;top:10px;right:10px}.settings-layout{gap:22px}.settings-nav{gap:7px}.settings-nav button{border-radius:9px;min-height:44px}.settings-content{padding:25px}.section-title-row{padding-bottom:18px}.section-title-row h2{font-size:18px;font-weight:760}.status-cards,.metric-grid{gap:14px}.service-card,.metric-grid>div{border-radius:10px}.service-card{padding:15px}.metric-grid>div{padding:17px}.capability-groups{border-radius:9px;padding:15px}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (width<=860px){.topbar{height:64px}.nav{border-radius:12px;padding:9px;top:62px}.page-shell{padding-top:22px}.workbench-input,.workbench-output{min-height:650px}.history-toolbar{padding:12px}}@media (width<=620px){.auth-panel{width:min(440px,100%);padding:0}.auth-heading h2{font-size:26px}.page-shell{padding:18px 12px 30px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:25px}.workbench-input,.workbench-output{padding:18px}.workbench-output{min-height:600px}.segment button{height:42px}.ref-thumb,.ref-add{flex-basis:68px;width:68px;height:68px}.modal-body{padding:17px}.modal-header{padding-inline:17px}.captcha-modal-form .captcha-row{grid-template-columns:minmax(0,1fr) 116px}.captcha-modal-form .captcha-image{width:116px}}.page-shell{width:min(1280px,100%);padding:24px 32px 34px}.topbar{padding-inline:max(32px,50vw - 608px)}.workbench-grid{grid-template-columns:minmax(390px,5fr) minmax(520px,7fr);gap:24px;min-height:calc(100vh - 112px)}.workbench-input,.workbench-output{border-radius:16px;min-height:700px;padding:24px;box-shadow:0 1px 3px #0f172a0f}.workbench-input{gap:18px}.workbench-output{gap:0}.workbench-grid .panel-heading{align-items:center;min-height:40px;margin-bottom:0}.workbench-output .panel-heading{margin-bottom:24px}.panel-title{align-items:center;gap:12px;display:flex}.panel-title h2{margin:0;font-size:16px;font-weight:650}.panel-icon{color:#fff;border-radius:12px;flex:0 0 38px;place-items:center;width:38px;height:38px;display:grid;box-shadow:0 7px 15px #2563eb2e}.panel-icon-create{background:linear-gradient(135deg,#3b82f6,#2563eb)}.panel-icon-output{background:linear-gradient(135deg,#ec4899,#e11d48);box-shadow:0 7px 15px #e11d482b}.select-wrap{color:#3158a5;background:linear-gradient(90deg,#eef6ff,#e0ecff);border:1px solid #cdddfd;border-radius:999px;gap:0;min-width:0;padding:0}.select-wrap select{width:auto;max-width:190px;min-height:38px;padding:6px 32px 6px 15px;font-size:12px;font-weight:500}.select-wrap>svg{right:12px!important}.dark .select-wrap{color:#c7d2fe;background:linear-gradient(90deg,#3b82f624,#6366f12e);border-color:#818cf857}.workbench-input .prompt-box{background:linear-gradient(#fff,#fafcff);border:1px solid #e8edf5;border-radius:18px;margin:0;padding:14px 14px 12px;box-shadow:inset 0 1px #ffffffe6}.workbench-input .prompt-box textarea{resize:none;min-height:154px;box-shadow:none;color:#374151;background:0 0;border:0;border-radius:0;padding:10px 34px 28px 0;font-size:14px;line-height:1.8}.workbench-input .prompt-box textarea:focus,.workbench-input .prompt-box textarea:focus-visible{box-shadow:none;outline:none}.workbench-input .prompt-tool{border-radius:8px;width:28px;height:28px;top:17px;right:14px}.workbench-input .counter{color:#9ca3af;font-size:12px;bottom:12px;right:14px}.workbench-input .restore-prompt{bottom:10px;left:14px}.dark .workbench-input .prompt-box{box-shadow:none;background:linear-gradient(#1e293bf5,#0f172af5);border-color:#334155}.dark .workbench-input .prompt-box textarea{color:#e5e7eb}.workbench-input .config-section{flex-direction:column;gap:10px;margin:0;display:flex}.workbench-input .config-section h3{color:#4b5563;margin:0;font-size:13px;font-weight:600}.dark .workbench-input .config-section h3{color:#cbd5e1}.workbench-input .section-line span{color:#9ca3af;font-size:11px}.workbench-input .segment{grid-auto-flow:unset;grid-auto-columns:unset;gap:8px;display:grid}.workbench-input .ratio-segment{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-input .quality-segment{grid-template-columns:repeat(4,minmax(0,1fr))}.workbench-input .segment button{color:#4b5563;background:linear-gradient(#f7f9fc,#f0f4f9);border:1px solid #e2e8f0;border-radius:12px;min-width:0;height:42px;padding:4px 6px;font-size:12px;font-weight:400;transition:border-color .18s,background .18s,color .18s,box-shadow .18s}.workbench-input .ratio-segment button{flex-direction:column;justify-content:center;align-items:center;gap:4px;height:58px;min-height:58px;display:flex}.workbench-input .segment button:hover{color:#374151;background:linear-gradient(#fbfcfe,#f5f7fb);border-color:#c7d2e3}.workbench-input .segment button.selected{color:#7c3aed;background:linear-gradient(#f4efff,#ece4ff);border:1px solid #c4b5fd;font-weight:500;box-shadow:inset 0 0 0 1px #c4b5fd52}.ratio-preview{opacity:.55;border:1.5px solid;border-radius:4px;flex:none}.ratio-label{color:inherit;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:400;line-height:1;overflow:hidden}.quality-segment .ratio-label{font-size:12px}.dark .workbench-input .segment button{color:#d1d5db;background:#1f2937;border-color:#334155}.dark .workbench-input .segment button.selected{color:#f5f3ff;background:linear-gradient(#8b5cf647,#6d28d961);border-color:#8b5cf6}.workbench-input .dimension-row{margin-top:0}.workbench-input .dimension-row input{border-radius:12px;height:40px;min-height:40px}.workbench-input .ref-stack{flex-wrap:wrap;align-items:stretch;gap:10px;min-height:72px;padding:0;display:flex;overflow:visible}.workbench-input .ref-thumb,.workbench-input .ref-add{width:72px;height:72px;box-shadow:none;background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex:0 0 72px;margin:0}.workbench-input .ref-stack:hover .ref-thumb,.workbench-input .ref-stack:hover .ref-add{margin:0}.workbench-input .ref-stack:hover{padding:0}.workbench-input .ref-thumb:hover{border-color:#c7d2e3;transform:none}.workbench-input .ref-thumb img{border-radius:13px}.workbench-input .ref-add{color:#6b7280;background:linear-gradient(#f7f9fc,#f0f4f9);border-style:solid;flex-direction:column;justify-content:center;align-items:center;gap:3px;display:flex}.workbench-input .ref-add strong{font-size:11px;font-weight:500}.workbench-input .ref-add small{opacity:.62;font-size:9px;font-weight:400}.workbench-input .ref-add:hover{color:#374151;background:linear-gradient(#fbfcfe,#f5f7fb);border-color:#c7d2e3}.workbench-input .text-button{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;width:fit-content;min-height:34px;margin-top:0;padding:8px 12px;font-size:12px}.workbench-input .text-button:hover{background:#f1f5f9;border-color:#cbd5e1}.dark .workbench-input .ref-thumb,.dark .workbench-input .ref-add,.dark .workbench-input .text-button{color:#cbd5e1;background:#0f172a;border-color:#334155}.workbench-output .button-ghost{color:#2563eb;background:0 0}.workbench-output .button-ghost:hover{color:#1d4ed8;background:#eff6ff}.workbench-output .output-body{padding:0;position:relative}.workbench-output .empty-output{position:absolute;inset:0}.workbench-output .empty-icon{width:264px;height:238px;color:inherit;background:0 0;border:0;border-radius:0;place-items:center;margin-bottom:18px;display:grid}.workbench-empty-icon{object-fit:contain;width:264px;height:238px;display:block}.workbench-empty-icon-dark{display:none}.dark .workbench-output .empty-icon{background:0 0}.dark .workbench-empty-icon-light{display:none}.dark .workbench-empty-icon-dark{display:block}.workbench-output .empty-output h3{font-size:18px;font-weight:600}.workbench-output .empty-output p{color:#6b7280;max-width:430px;margin-top:10px;font-size:14px;line-height:1.7}.empty-hint{color:#9ca3af;align-items:center;gap:7px;margin:14px 0 26px;font-size:12px;display:inline-flex}.generate-output-button{color:#fff;background:linear-gradient(90deg,#10b981,#0891b2);border:0;border-radius:13px;min-height:52px;padding:12px 32px;font-size:16px;font-weight:600;box-shadow:0 12px 25px #10b98140}.generate-output-button:hover:not(:disabled){background:linear-gradient(90deg,#059669,#0e7490);box-shadow:0 15px 30px #10b9814d}.aurora-loader{justify-content:center;align-items:center;width:184px;height:184px;margin:0 auto 26px;display:flex;position:relative}.aurora-core{transform-origin:50%;background:linear-gradient(45deg,#00d2ff,#3b82f6,#8b5cf6,#ec4899,#06b6d4,#6366f1,#00d2ff) 0 0/400% 400%;border-radius:50%;width:184px;height:184px;animation:3s ease-in-out infinite aurora-breathe,8s ease-in-out infinite aurora-color;box-shadow:0 0 36px #3b82f685,0 0 72px #8b5cf652,inset 0 0 34px #ffffff52}@keyframes aurora-breathe{0%,to{opacity:.85;transform:scale(1)}25%{opacity:1;transform:scale(1.06)}40%{opacity:.92;transform:scale(1.02)}65%{opacity:1;transform:scale(1.1)}85%{opacity:.95;transform:scale(1.04)}}@keyframes aurora-color{0%,to{filter:hue-rotate()}20%{filter:hue-rotate(30deg)}35%{filter:hue-rotate(80deg)}55%{filter:hue-rotate(140deg)}70%{filter:hue-rotate(200deg)}85%{filter:hue-rotate(280deg)}}.workbench-output .progress-track{width:256px;height:8px}@media (width<=1024px){.page-shell,.topbar{padding-inline:16px}.workbench-grid{grid-template-columns:1fr;min-height:0}.workbench-input,.workbench-output{min-height:680px}}@media (width<=620px){.page-shell,.topbar{padding-inline:12px}.workbench-input,.workbench-output{border-radius:14px;min-height:0;padding:18px}.workbench-output{min-height:590px}.workbench-grid .panel-heading{flex-direction:row;align-items:center}.panel-title{gap:9px}.panel-icon{flex-basis:36px;width:36px;height:36px}.select-wrap select{max-width:135px}.workbench-input .prompt-box textarea{min-height:140px}.workbench-input .quality-segment{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-input .segment button{height:42px}.workbench-input .ratio-segment button{height:58px}.workbench-output .empty-output p br{display:none}.aurora-loader,.aurora-core{width:148px;height:148px}.workbench-output .empty-icon,.workbench-empty-icon{width:220px;height:198px}}.workbench-input .ref-stack.drag-upload-active{outline-offset:-2px;background:#dbeafe9e;border-radius:14px;outline:2px dashed #60a5fa;margin:-8px;padding:8px}.workbench-input .ref-thumb[draggable=true]{cursor:grab}.workbench-input .ref-thumb[draggable=true]:active{cursor:grabbing}.ref-drag{z-index:2;color:#fff;opacity:0;background:#0f172aad;border-radius:6px;place-items:center;width:20px;height:20px;transition:opacity .16s;display:grid;position:absolute;top:4px;left:4px}.ref-thumb:hover .ref-drag{opacity:1}.generation-facts{flex-wrap:wrap;justify-content:center;gap:8px;margin:15px 0 16px;display:flex}.generation-facts span{border:1px solid var(--line);min-height:28px;color:var(--muted);background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:7px;align-items:center;padding:5px 10px;font-size:11px;display:inline-flex}.library-selection-bar{border-bottom:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding-bottom:14px;font-size:12px;display:flex}.library-item{position:relative}.library-item.selected{background:#eff6ff;border-color:#60a5fa;box-shadow:inset 0 0 0 2px #60a5fa40}.library-item:disabled{cursor:default;opacity:.58}.library-check{z-index:2;color:#fff;background:#2563eb;border-radius:6px;place-items:center;min-width:23px;height:23px;padding:0 6px;font-size:9px;display:grid;position:absolute;top:7px;right:7px}.library-check:empty{display:none}.dark .library-item.selected{background:#2563eb29;border-color:#60a5fa}.history-page .page-heading{margin-bottom:18px}.history-count{border:1px solid var(--line);min-height:34px;color:var(--muted);background:var(--surface);border-radius:7px;align-items:center;padding:6px 11px;font-size:11px;display:inline-flex}.history-page .history-toolbar{box-shadow:none;background:0 0;border:0;border-radius:0;justify-content:flex-start;align-items:center;gap:12px;margin-bottom:24px;padding:0}.history-page .history-toolbar .search-input{border-radius:8px;flex:280px;width:min(320px,100%);min-width:250px;height:40px;padding:0 12px}.history-page .history-toolbar .search-input input{height:100%}.history-page .history-toolbar select,.history-page .history-toolbar input[type=date]{border-radius:8px;width:148px;min-width:148px;height:40px;min-height:40px;padding:7px 11px;font-size:12px}.history-toolbar-actions{gap:6px;margin-left:auto;display:flex}.history-toolbar-actions .icon-button{border:1px solid var(--line);background:var(--surface);border-radius:8px;flex-basis:40px;width:40px;height:40px}.pager{border:0;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0;display:flex;margin-top:32px!important}.pager button{border:1px solid var(--line);width:40px;height:40px;min-height:40px;color:var(--text);background:var(--surface);border-radius:8px;flex:0 0 40px;place-items:center;padding:0;font-size:13px;font-weight:600;transition:border-color .15s,background .15s,color .15s;display:inline-grid}.pager button:hover:not(:disabled):not(.active){border-color:var(--line-strong);background:var(--surface-2)}.pager button.active,.pager button.active:hover{border-color:var(--primary);color:#fff;background:var(--primary)}.pager button:disabled{opacity:.45;cursor:not-allowed}.pager-ellipsis{width:24px;height:40px;color:var(--muted);flex:0 0 24px;place-items:center;font-size:13px;display:inline-grid}.history-page .history-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:20px}.history-page .history-card{border-color:var(--line);border-radius:16px;overflow:visible;box-shadow:0 1px 3px #0f172a0f}.history-page .history-card:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 12px 28px #0f172a17}.history-page .history-card-media{background:#f1f5f9;border-radius:15px 15px 0 0;min-height:170px;overflow:hidden}.history-page .history-card-media img{object-fit:contain}.history-page .history-card-status{top:11px;left:11px;right:auto}.history-page .history-card-body{min-height:154px;padding:15px}.history-page .history-card-meta{color:#2563eb;font-size:10px}.history-page .history-card h2{margin:9px 0 14px;font-size:13px;line-height:1.6}.history-page .history-card-footer{overflow:visible}.history-page .history-card-footer time{font-size:10px}.history-page .row-actions{align-items:center;gap:5px;display:flex;position:relative}.history-load-state{min-height:64px;padding:18px 0 max(8px, env(safe-area-inset-bottom));color:var(--muted);justify-content:center;align-items:center;font-size:12px;display:flex}.history-load-state .button{min-width:120px}.history-more{position:relative}.history-more>summary{cursor:pointer;list-style:none}.history-more>summary::-webkit-details-marker{display:none}.history-more[open]>summary{color:var(--primary);background:var(--primary-soft)}.history-more-menu{z-index:20;border:1px solid var(--line);background:var(--surface);border-radius:9px;width:158px;padding:5px;position:absolute;bottom:calc(100% + 7px);right:0;overflow:hidden;box-shadow:0 14px 32px #0f172a29}.history-more-menu button,.history-more-menu a{width:100%;min-height:35px;color:var(--text);text-align:left;background:0 0;border-radius:6px;align-items:center;gap:8px;padding:7px 9px;font-size:11px;display:flex}.history-more-menu button:hover,.history-more-menu a:hover{background:var(--surface-2)}.history-more-menu .danger{color:var(--red)}.detail-badges{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.detail-prompt-wrap{position:relative}.detail-prompt-wrap .detail-prompt{padding-right:42px}.detail-prompt-wrap .icon-button{position:absolute;top:10px;right:8px}.detail-section-title{margin:18px 0 9px;font-size:12px}.history-detail-layout .detail-images>div{min-width:0}.dark .workbench-input .ref-stack.drag-upload-active{background:#1e40af2e}.dark .history-page .history-card-media{background:#0f172a}.dark .history-page .history-card:hover{border-color:#475569}@media (width<=1280px){.history-page .history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.history-page .history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-toolbar-actions{margin-left:0}}@media (width<=620px){.library-selection-bar{flex-direction:column;align-items:stretch}.history-count{align-self:flex-start}.history-page .history-grid{grid-template-columns:1fr;gap:16px}.history-page .history-toolbar .search-input,.history-page .history-toolbar select,.history-page .history-toolbar input[type=date]{width:100%}.history-page .history-card-media{min-height:150px}.history-toolbar-actions{justify-content:flex-end;width:100%}.pager{justify-content:flex-start;padding-bottom:2px;overflow-x:auto}}.workbench-output .result-state{align-self:start;width:100%;height:100%;padding:4px;overflow:auto}.workbench-output .result-image-grid{flex-direction:column;flex:none;justify-content:flex-start;align-items:center;gap:12px;width:100%;min-height:0;padding:0;display:flex;overflow:visible}.workbench-output .result-image-preview{border:1px solid var(--line);background:var(--surface-2);width:fit-content;max-width:100%;max-height:70vh;box-shadow:var(--shadow);cursor:zoom-in;border-radius:10px;padding:0;display:block;overflow:hidden}.workbench-output .result-image-preview img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:60vh;box-shadow:none;pointer-events:none;border-radius:0;display:block}.workbench-output .result-meta{flex:none}@media (width<=620px){.workbench-output .result-image-preview,.workbench-output .result-image-preview img{max-height:58vh}}.history-filter{min-width:0;color:var(--muted);gap:6px;font-size:11px;font-weight:650;display:grid}.history-page .history-toolbar{flex-wrap:wrap;display:flex}.history-filter-search{flex:280px}.history-filter>span{display:none}.history-tool-button{border:1px solid var(--line);min-width:76px;height:40px;color:var(--muted);background:var(--surface);border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:0 12px;font-size:12px;font-weight:650;display:inline-flex}.history-tool-button:hover{color:var(--text);border-color:var(--line-strong);background:var(--surface-2)}.pager-mobile-status{display:none}@media (width<=900px){body{overflow-x:hidden}.topbar{padding-inline:max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));gap:12px}.brand{min-width:0}.site-logo{width:132px}.top-actions{gap:5px;min-width:0}.top-actions .icon-button{flex-basis:40px;width:40px;height:40px}.points{justify-content:center;min-width:42px}.nav{left:max(10px, env(safe-area-inset-left));right:max(10px, env(safe-area-inset-right));max-height:calc(100dvh - 76px);overflow-y:auto}.nav a{min-height:46px}.mobile-nav-account{border-bottom:1px solid var(--line);gap:10px;margin-bottom:6px;padding:10px 10px 12px;display:none}.mobile-nav-account>div:first-child{align-items:center;gap:10px;display:flex}.mobile-nav-account>div:first-child>span{gap:2px;min-width:0;display:grid}.mobile-nav-account b{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.mobile-nav-account small{color:var(--primary);font-size:11px}.mobile-nav-account>div:last-child{grid-template-columns:1fr 1fr;gap:8px;display:grid}.mobile-nav-account button{min-height:40px;color:var(--muted);background:var(--surface-2);border-radius:8px;justify-content:center;align-items:center;gap:7px;font-size:12px;display:inline-flex}.page-heading{align-items:flex-start;min-height:0}.page-heading>div:first-child{min-width:0}.heading-actions{flex-wrap:wrap}.history-page .history-toolbar{border:1px solid var(--line);background:var(--surface);box-shadow:none;border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;padding:14px;display:grid}.history-filter>span{display:block}.history-filter-search{grid-column:1/-1}.history-page .history-toolbar .search-input,.history-page .history-toolbar select,.history-page .history-toolbar input[type=date]{width:100%;min-width:0;max-width:none;height:44px;min-height:44px;margin:0;font-size:13px}.history-page .history-toolbar input[type=date]{appearance:none;display:block}.history-toolbar-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:10px;width:100%;display:grid}.history-tool-button{width:100%;height:44px}.settings-layout{grid-template-columns:minmax(0,1fr)}.settings-nav{overscroll-behavior-inline:contain;scrollbar-width:none;margin-inline:-2px;padding:2px 2px 8px;overflow-x:auto}.settings-nav::-webkit-scrollbar{display:none}.settings-nav button{white-space:nowrap;min-height:42px}.settings-content{min-width:0}.section-title-row{flex-wrap:wrap}.section-title-row>div:first-child{flex:220px;min-width:0}.admin-row{overflow:visible}.admin-row-main small{white-space:normal;overflow-wrap:anywhere;line-height:1.55}.admin-filters{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.admin-filters>*{width:100%;min-width:0!important}.admin-filters .search-input{grid-column:1/-1}}@media (width<=860px){.mobile-nav-account{display:grid}}@media (width<=620px){:root{--bg:#f5f7fb;--surface-2:#f7f9fc;--line:#e3e8f1;--primary-soft:#eef3ff;--shadow:0 1px 3px #0f172a0f;--shadow-hover:0 4px 12px #0f172a14}.dark{--bg:#0f1420;--surface:#181f2d;--surface-2:#202838;--line:#303a4d;--primary-soft:#293253}body{background:var(--bg);font-size:14px}.topbar{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;gap:7px;height:62px;padding-inline:10px}.site-logo{width:108px}.top-actions{gap:3px;margin-left:auto}.top-actions .icon-button{flex-basis:39px;width:39px;height:39px}.points,.theme-toggle{display:none}.nav{border-radius:10px;padding:8px;top:60px}.page-shell{padding:17px 12px max(28px, env(safe-area-inset-bottom))}.page-heading{gap:12px;margin-bottom:17px}.page-heading h1{font-size:23px}.page-heading p{margin-top:6px;font-size:13px}.heading-actions,.heading-actions>.button{width:100%}.panel{box-shadow:var(--shadow);border-radius:12px}.workbench-grid{gap:14px}.workbench-input,.workbench-output{border-radius:12px;min-height:0;padding:16px}.workbench-input{gap:12px}.workbench-grid .panel-heading{min-height:40px;margin-bottom:14px}.workbench-output .panel-heading{margin-bottom:16px}.workbench-output .panel-heading .button{min-height:38px;padding-inline:8px}.workbench-input .prompt-box{margin-bottom:14px}.workbench-input .prompt-box textarea{min-height:132px;font-size:16px}.config-section{margin-bottom:17px}.workbench-input .ratio-segment{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-input .quality-segment{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-input .segment{gap:7px}.workbench-input .segment button{min-width:0;height:44px;padding-inline:5px}.workbench-input .ratio-segment button{height:56px}.dimension-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.dimension-row input{min-width:0;font-size:16px}.ref-stack{margin-inline:-4px;padding-left:10px}.ref-thumb,.ref-add{flex-basis:70px;width:70px;height:70px;margin-left:6px}.ref-stack:hover .ref-thumb,.ref-stack:hover .ref-add{margin-left:6px}.ref-drag{display:none}.empty-output{min-height:500px;padding-block:24px}.workbench-output .empty-icon,.workbench-empty-icon{width:190px;height:172px}.generate-output-button{width:min(280px,100%)}.workbench-output .result-state{padding:0;overflow:visible}.workbench-output .result-meta{align-items:stretch;gap:12px}.workbench-output .result-meta>span{text-align:center;justify-content:center}.workbench-output .result-meta>div{grid-template-columns:1fr 1fr;gap:8px;width:100%;display:grid}.workbench-output .result-meta .icon-text-button{border:1px solid var(--line);background:var(--surface);border-radius:8px;justify-content:center;min-height:44px}.history-page .page-heading{flex-direction:row;align-items:flex-end}.history-page .page-heading .heading-actions{width:auto}.history-count{white-space:nowrap}.history-page .history-toolbar{background:var(--surface);border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px;padding:14px}.history-filter-search,.history-toolbar-actions{grid-column:1/-1}.history-filter{gap:7px;font-size:12px}.history-page .history-toolbar .search-input,.history-page .history-toolbar select,.history-page .history-toolbar input[type=date]{height:46px;min-height:46px;font-size:16px}.history-page .history-toolbar select{padding-right:30px}.history-tool-button{height:46px;font-size:13px}.history-page .history-grid{gap:14px}.history-masonry{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;display:grid}.history-masonry.single-column{grid-template-columns:minmax(0,1fr)}.history-masonry-column{flex-direction:column;gap:10px;min-width:0;display:flex}.history-page .history-card{width:100%;box-shadow:none;border-radius:10px;margin:0;overflow:hidden}.history-page .history-card:hover{box-shadow:none;transform:none}.history-page .history-card:hover .history-card-media img{transform:none}.history-page .history-card-media{border-radius:9px 9px 0 0;min-height:0}.history-page .history-card-status{top:7px;left:7px}.history-page .history-card-status .status-badge{padding:3px 6px;font-size:8px}.history-page .history-card-body{min-height:102px;padding:10px}.history-page .history-card-meta{font-size:9px}.history-page .history-card h2{margin:7px 0 10px;font-size:12px;line-height:1.5}.history-page .history-card-footer{min-height:24px;padding-top:7px}.history-page .history-card-footer time{font-size:9px}.history-page .history-card-footer .row-actions{display:none}.history-more-menu{left:12px;right:12px;bottom:max(12px, env(safe-area-inset-bottom));border-radius:12px;width:auto;padding:8px;position:fixed}.history-more-menu button,.history-more-menu a{min-height:44px;font-size:13px}.pager{justify-content:center;gap:12px;width:100%;min-height:48px;overflow:visible;margin-top:22px!important}.pager .pager-page,.pager .pager-ellipsis{display:none}.pager-mobile-status{min-width:104px;height:42px;color:var(--muted);font-variant-numeric:tabular-nums;justify-content:center;align-items:center;font-size:13px;display:inline-flex}.pager button{flex-basis:46px;width:46px;height:42px;min-height:42px}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:16px 16px 0 0;width:100%;max-height:min(88dvh,760px)}.modal-wide{width:100%}.modal-header{min-height:58px;padding:11px 16px}.modal-body{padding:16px}.detail-layout,.history-detail-layout,.admin-detail-grid{grid-template-columns:minmax(0,1fr);gap:18px}.detail-actions{grid-template-columns:1fr 1fr;gap:9px;display:grid}.detail-actions .button{width:100%}.detail-images img{object-fit:contain;max-height:58dvh}.announcement-item{padding-block:15px}.announcement-item-heading{flex-direction:column;align-items:flex-start;gap:5px}.announcement-item p,.terms-document{font-size:13px}.library-mode-tabs{grid-template-columns:1fr 1fr;width:100%;display:grid}.library-mode-tabs button{justify-content:center;min-height:42px}.library-selection-bar{gap:10px}.library-selection-bar .button{width:100%}.library-grid,.managed-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-item,.managed-image{min-width:0;box-shadow:none;border-radius:10px}.managed-image>div{padding:10px}.managed-image b,.managed-image small{font-size:10px}.library-favorite,.image-favorite,.image-delete{width:36px;height:36px}.settings-layout{gap:12px}.settings-nav{gap:5px;margin-inline:-12px;padding-inline:12px}.settings-nav button{border-radius:8px;min-height:42px;padding-inline:11px}.settings-content{border-radius:12px;padding:16px}.section-title-row{flex-direction:column;align-items:stretch;gap:12px;padding-bottom:14px}.section-title-row>.button{width:100%}.section-title-row .filter-row{grid-template-columns:1fr;width:100%;display:grid}.section-title-row .filter-row>*{width:100%;min-width:0}.config-state{align-self:flex-start}.status-cards,.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.service-card,.metric-grid>div{min-width:0;padding:12px}.metric-grid b{font-size:19px}.system-tests{flex-direction:column;align-items:stretch}.system-tests>.button{width:100%}.test-sms{grid-template-columns:minmax(0,1fr);display:grid}.test-sms input{min-width:0;font-size:16px}.test-sms .button{width:100%}.form-grid{grid-template-columns:minmax(0,1fr)}.optimizer-actions{grid-template-columns:minmax(0,1fr);display:grid}.optimizer-actions .button,.announcement-form .button{width:100%}.admin-filters{grid-template-columns:minmax(0,1fr);gap:9px}.admin-filters .search-input{grid-column:auto}.admin-filters input,.admin-filters select{min-width:0;font-size:16px}.admin-row{align-items:flex-start;gap:9px;padding:13px 2px}.admin-row-main{flex:calc(100% - 50px)}.admin-row>.button{flex:calc(50% - 5px);min-width:0;padding-inline:8px}.admin-row>.icon-button{border:1px solid var(--line);flex-basis:42px;width:42px;height:42px}.announcement-admin-row .status-badge{margin-left:47px}.announcement-admin-row .announcement-preview{font-size:12px}.toast{right:12px;bottom:max(12px, env(safe-area-inset-bottom));width:calc(100vw - 24px);transform:none}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}@media (width<=360px){.site-logo{width:96px}.top-actions{gap:1px}.top-actions .icon-button{flex-basis:37px;width:37px;height:37px}.page-shell{padding-inline:10px}.workbench-input,.workbench-output,.settings-content{padding:14px}.history-page .page-heading{flex-direction:column;align-items:flex-start}.history-page .page-heading .heading-actions{width:100%}.history-count{align-self:flex-start}.history-page .history-card-body{min-height:112px;padding:12px}.history-page .history-card h2{font-size:13px}.status-cards,.metric-grid{grid-template-columns:minmax(0,1fr)}}
