@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap";:root{font-family:DM Sans,Noto Sans SC,sans-serif;color:#252b28;background:#f6f7f4;font-synthesis:none;text-rendering:optimizeLegibility;--bg:#f6f7f4;--surface:#fff;--surface-soft:#f0f2ee;--text:#252b28;--muted:#78817b;--line:#e5e9e3;--accent:#d8573c;--accent-soft:#fbe9e5;--green:#378160;--shadow:0 12px 32px rgba(32,47,37,.07);--radius:12px}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(216,87,60,.25);outline-offset:2px}#root{min-height:100vh}[data-theme=dark]{color-scheme:dark;--bg:#1c211f;--surface:#262d29;--surface-soft:#303833;--text:#e8ede9;--muted:#a0aaa3;--line:#3c4640;--accent:#ed8068;--accent-soft:#482e29;--green:#76c39a;--shadow:0 12px 32px rgba(0,0,0,.16)}@media (prefers-color-scheme:dark){[data-theme=system]{color-scheme:dark;--bg:#1c211f;--surface:#262d29;--surface-soft:#303833;--text:#e8ede9;--muted:#a0aaa3;--line:#3c4640;--accent:#ed8068;--accent-soft:#482e29;--green:#76c39a;--shadow:0 12px 32px rgba(0,0,0,.16)}}.app-shell{min-height:100vh;background:var(--bg);color:var(--text)}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;padding:24px 16px 16px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:3}.brand{border:0;background:none;display:flex;align-items:center;gap:11px;text-align:left;padding:0 8px 35px;font-size:15px;font-weight:700;letter-spacing:.1px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;background:var(--accent);color:#fff;border-radius:11px}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-top:2px}.side-label{font-size:10px;font-weight:700;letter-spacing:1.15px;color:#969e98;padding:0 12px 10px}.nav-link{width:100%;border:0;background:transparent;height:42px;border-radius:8px;display:flex;align-items:center;gap:12px;padding:0 12px;color:var(--muted);font-size:13px;text-align:left;margin-bottom:4px}.nav-link.active{color:var(--accent);background:var(--accent-soft);font-weight:600}.nav-count{margin-left:auto;font-size:11px;color:var(--muted)}.sidebar-bottom{margin-top:auto}.account-card{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:16px 5px 2px}.account-avatar,.user-avatar{display:grid;place-items:center;background:#df9c65;color:#fff;border:0;border-radius:50%;width:34px;height:34px;font-weight:700}.account-card b{font-size:12px;display:block}.account-card small{font-size:10px;color:var(--muted)}.account-card>svg{margin-left:auto;color:var(--muted)}.main-area{margin-left:238px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:66px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:var(--bg)}.breadcrumb{font-size:13px;font-weight:600}.breadcrumb button{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--muted);font-size:12px;padding:8px 0}.top-actions{display:flex;gap:10px;align-items:center}.icon-button,.language-toggle{height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface);display:grid;place-items:center;color:var(--muted)}.icon-button{width:36px}.language-toggle{padding:0 10px;font-size:11px;font-weight:600}.user-avatar{width:31px;height:31px;font-size:12px}.content{width:min(1220px,100%);margin:0 auto;padding:39px 42px 28px;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px}.page-heading h1{font-size:25px;line-height:1.25;margin:0 0 7px;font-weight:700;letter-spacing:0}.page-heading p,.section-title p,.assets-heading p{margin:0;color:var(--muted);font-size:12px}.primary-button,.subtle-button,.text-button,.danger-button,.upload-button,.export-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;height:39px;padding:0 14px;font-size:12px;font-weight:600;white-space:nowrap;transition:transform .15s,background .15s}.primary-button{background:var(--accent);color:#fff;border:1px solid var(--accent)}.primary-button:hover{background:#c64b32;transform:translateY(-1px)}.primary-button:disabled{opacity:.45;cursor:not-allowed;transform:none}.subtle-button,.text-button{border:1px solid var(--line);background:var(--surface);color:var(--text)}.subtle-button:hover,.text-button:hover{border-color:var(--accent);color:var(--accent)}.danger-button{border:1px solid var(--line);color:#b64b39;background:var(--surface)}.list-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.search-box{height:37px;width:280px;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:0 11px;color:var(--muted)}.search-box>span{font-size:21px;line-height:1}.search-box input{border:0;outline:0;background:none;color:var(--text);font-size:12px;width:100%}.filter-button{height:36px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:11px;color:var(--muted);display:flex;align-items:center;gap:13px}.section-caption{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:14px;display:flex;gap:9px;align-items:center}.section-caption span{font-size:10px;padding:2px 7px;background:var(--surface-soft);border-radius:10px}.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.album-card{min-width:0}.album-image{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1.42;border:1px solid var(--line);border-radius:10px;background:#f1eee7;overflow:hidden}.album-card:nth-child(3n+2) .album-image{background:#e7f0e7}.album-card:nth-child(3n) .album-image{background:#f7e8e3}.mini-sticker-sheet{display:grid;grid-template-columns:repeat(2,85px);gap:4px;transform:rotate(-3deg)}.mini-character{display:grid;place-items:center;width:85px;height:73px;border-radius:19px 21px 18px 24px;background:#f9a849;color:#633720;font-size:32px;font-weight:700;box-shadow:inset -6px -5px #ae561a1f;transform:rotate(3deg)}.mini-1{background:#ffcf71;transform:rotate(-5deg)}.mini-2{background:#f8b9a0;transform:rotate(4deg)}.mini-3{background:#ffd276;transform:rotate(-4deg)}.mini-character img{width:100%;height:100%;object-fit:contain}.album-count{position:absolute;right:10px;bottom:9px;background:#ffffffe0;color:#555c56;padding:5px 8px;border-radius:6px;font-size:10px}.album-meta{display:flex;align-items:center;justify-content:space-between;margin:12px 2px 4px}.album-name{font-size:13px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border:0;background:transparent;padding:0;text-align:left}.more-button{border:0;background:transparent;color:var(--muted);height:25px}.album-submeta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px;margin:0 2px}.album-submeta span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-footer{display:flex;justify-content:space-between;padding:15px 42px 19px;color:#9aa19b;font-size:10px;border-top:1px solid var(--line)}.empty-state{margin:65px auto 40px;text-align:center;max-width:360px}.empty-art{width:120px;height:110px;background:#f8e5db;border-radius:40% 60% 51% 49%;margin:0 auto 23px;display:grid;place-items:center;position:relative;transform:rotate(-6deg)}.empty-art .sample-character{transform:rotate(6deg) scale(1.3)}.empty-spark{position:absolute;color:var(--accent);font-size:20px}.spark-a{top:6px;right:4px}.spark-b{bottom:8px;left:1px}.empty-state h2{font-size:18px;margin:0 0 8px}.empty-state p{font-size:12px;color:var(--muted);margin:0 0 20px}.create-content{max-width:920px}.direction-layout{display:flex;flex-direction:column;gap:22px}.direction-panel,.details-panel,.deliverables,.settings-section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:23px 24px}.section-title,.assets-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-title h2,.assets-heading h2,.deliverables h2{font-size:15px;margin:0 0 5px}.selection-count{font-size:11px;color:var(--muted)}.chip-grid{display:flex;flex-wrap:wrap;gap:9px}.choice-chip{display:inline-flex;align-items:center;gap:5px;height:35px;padding:0 13px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:7px;font-size:11px}.choice-chip.selected{background:var(--accent-soft);border-color:#e9a295;color:var(--accent);font-weight:600}.theme-grid{max-height:185px;overflow:auto}.direction-footer{display:flex;justify-content:space-between;align-items:center;padding:2px 1px;color:var(--muted);font-size:11px}.editor-content{max-width:1440px}.editor-heading{margin-bottom:23px}.editor-heading h1{max-width:640px;overflow-wrap:anywhere}.editor-grid{display:flex;flex-direction:column;gap:22px;align-items:stretch;max-width:960px;margin:0 auto;width:100%}.editor-main{min-width:0}.details-panel{margin-bottom:26px}.details-panel label,.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;margin-bottom:15px}.details-panel input,.details-panel textarea,.form-grid input,.form-grid textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:10px 11px;font-size:12px;resize:vertical}.details-panel label small{font-size:10px;color:var(--muted);font-weight:400}.details-actions{display:flex;gap:9px;margin-top:4px}.assets-heading{margin:0 0 8px}.assets-heading .upload-button{border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer}.upload-button input,.mini-upload input{display:none}.asset-help{font-size:10px;color:var(--muted);margin:0 0 15px}.sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sticker-tile{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;overflow:hidden}.sticker-preview{aspect-ratio:1;background-color:#fff;background-image:linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%);background-size:14px 14px;background-position:0 0,0 7px,7px -7px,-7px 0;display:grid;place-items:center;position:relative;overflow:hidden}.sticker-preview img{width:100%;height:100%;object-fit:contain}.tile-index{position:absolute;top:7px;left:7px;font-size:9px;color:#7b817c;background:#ffffffd4;border-radius:4px;padding:3px 5px}.sample-character{height:105px;width:91px;border-radius:46% 49% 43% 42%;background:#f7a646;position:relative;box-shadow:inset -9px -6px #a64f161a;display:flex;align-items:center;justify-content:center}.char-eyes{position:absolute;top:38px;color:#59351e;font-size:13px;letter-spacing:9px;margin-left:8px}.char-mouth{position:absolute;top:48px;font-size:19px;color:#59351e}.char-cheek{position:absolute;top:52px;width:12px;height:6px;border-radius:50%;background:#e77f65;opacity:.78}.char-cheek.left{left:15px}.char-cheek.right{right:15px}.pose-1{transform:rotate(8deg);background:#ffc35c}.pose-2{transform:scale(.9) rotate(-8deg);background:#f4a98f}.pose-3{transform:translateY(3px) rotate(5deg);background:#f8b94d}.pose-4{transform:scale(1.04) rotate(-5deg);background:#ed9e62}.pose-5{transform:rotate(7deg);background:#ffd17a}.tile-bottom{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 4px}.status-approved,.status-pending{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--green)}.status-pending{color:#a87937}.status-ring{width:12px;height:12px;border:1px solid #c8a15e;border-radius:50%}.tile-action{border:0;background:none;color:var(--muted);display:grid;place-items:center;width:24px;height:22px}.approve-button{display:flex;align-items:center;justify-content:center;gap:5px;margin:3px 8px 8px;width:calc(100% - 16px);height:27px;border:1px solid #d8e8dc;border-radius:5px;background:#eef5ef;color:#377c57;font-size:9px;font-weight:600}.is-approved .tile-bottom{padding-bottom:9px}.add-tile{aspect-ratio:.88;border:1px dashed #cbd2cc;border-radius:9px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted)}.add-tile>span{width:37px;height:37px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--accent)}.add-tile b{font-size:11px;color:var(--text)}.add-tile small{font-size:9px}.editor-side{display:flex;flex-direction:column;gap:14px}.deliverables h2{font-size:14px}.deliverables>p{font-size:10px;color:var(--muted);margin:0 0 16px}.deliverable{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.deliverable-thumb{width:44px;height:44px;background:var(--surface-soft);border-radius:7px;display:grid;place-items:center;color:#9ba39c;overflow:hidden}.deliverable-thumb img{width:100%;height:100%;object-fit:contain}.deliverable>div:nth-child(2){min-width:0}.deliverable b{font-size:11px;display:block}.deliverable small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.mini-upload{margin-left:auto;width:30px;height:30px;border:1px solid var(--line);border-radius:6px;display:grid;place-items:center;color:var(--muted);cursor:pointer}.export-button{margin-top:10px;width:100%;background:var(--text);color:var(--bg);border:0}.review-summary{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.summary-number{font-size:23px;font-weight:700;color:var(--accent);display:block}.summary-number small{font-size:12px;color:var(--muted);font-weight:500}.review-summary>b{font-size:10px}.summary-line{height:4px;background:var(--surface-soft);border-radius:4px;margin-top:12px;overflow:hidden}.summary-line span{display:block;height:100%;background:var(--green)}.login-content{display:grid;place-items:center;min-height:calc(100vh - 120px)}.login-panel{width:min(390px,100%);padding:34px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-align:center}.login-panel .brand-mark{margin:auto}.login-panel h1{font-size:22px;margin:18px 0 7px}.login-panel p{font-size:12px;color:var(--muted);margin:0 0 21px}.login-panel .primary-button{margin:auto}.toggle{width:30px;height:18px;border:0;padding:0;border-radius:10px;background:#c5cbc6;position:relative;cursor:pointer}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;background:#fff;border-radius:50%;transition:left .16s}.toggle.on{background:var(--green)}.toggle.on:after{left:15px}@media (max-width:1100px){.sidebar{width:205px}.main-area{margin-left:205px}.content{padding-left:28px;padding-right:28px}.topbar{padding:0 28px}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-grid{grid-template-columns:minmax(0,1fr) 240px}.sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.sidebar{inset:auto 0 0;width:auto;height:61px;padding:5px 12px;background:var(--surface);border-right:0;border-top:1px solid var(--line);flex-direction:row;justify-content:center}.brand,.side-label,.sidebar-bottom{display:none}.nav-link{width:auto;min-width:130px;justify-content:center;margin:0 5px;height:45px}.nav-count{margin-left:0}.main-area{margin-left:0;padding-bottom:62px}.topbar{height:57px;padding:0 17px}.content{padding:25px 17px 24px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:22px}.page-heading h1{font-size:21px}.page-heading p{font-size:11px;max-width:270px}.primary-button,.subtle-button,.danger-button{height:36px;padding:0 10px;font-size:11px}.listing-content>.page-heading{align-items:center}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}.album-image{aspect-ratio:1.12}.mini-sticker-sheet{grid-template-columns:repeat(2,60px)}.mini-character{width:60px;height:55px;font-size:25px}.album-name{font-size:11px}.album-submeta{font-size:9px}.app-footer{padding:12px 17px 16px}.editor-grid{grid-template-columns:1fr}.editor-side{grid-row:1}.deliverables{padding:15px}.deliverable{display:inline-flex;width:32.5%;vertical-align:top;gap:5px;padding:9px 2px}.deliverable-thumb{width:34px;height:34px;flex:none}.deliverable b{font-size:9px}.deliverable small{font-size:8px}.mini-upload{width:25px;height:25px;flex:none}.export-button{height:35px}.editor-heading{align-items:center}.editor-heading p{max-width:230px}.sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sample-character{transform:scale(.82)}.pose-1{transform:scale(.78) rotate(8deg)}.pose-2{transform:scale(.75) rotate(-8deg)}.pose-3{transform:scale(.79) rotate(5deg)}.pose-4{transform:scale(.84) rotate(-5deg)}.pose-5{transform:scale(.8) rotate(7deg)}.tile-index{top:4px;left:4px}.tile-bottom{padding:6px 5px 3px}.status-approved,.status-pending{font-size:8px}.approve-button{margin:2px 5px 6px;width:calc(100% - 10px)}.details-panel{padding:18px 16px}.details-panel .section-title{align-items:flex-start;gap:8px}.details-panel .subtle-button{font-size:10px;padding:0 8px}.direction-panel{padding:18px 15px}.choice-chip{height:33px;padding:0 10px;font-size:10px}.direction-footer{gap:8px}.direction-footer span{font-size:9px}.model-tabs{overflow:auto}.model-tab{flex:none}.content.admin-content{padding-top:24px}.settings-section{padding:18px 15px}.form-grid{grid-template-columns:1fr}.form-grid .span-two{grid-column:auto}.page-heading .text-button{font-size:10px}.toast{right:13px;bottom:75px;max-width:calc(100vw - 26px)}}@media (max-width:390px){.album-grid{gap:17px 9px}.sticker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-link{min-width:110px;font-size:11px}.deliverable{width:33%}.deliverable-thumb{width:28px;height:28px}.deliverable b{font-size:8px}.editor-heading .danger-button{font-size:9px;gap:4px}.page-heading h1{font-size:19px}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}.settings-section{margin-bottom:20px}.provider-row{display:grid;grid-template-columns:1.1fr 1.6fr 1.2fr auto auto;gap:10px;align-items:center;margin-bottom:10px}.provider-row input{height:37px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:0 11px;font-size:12px;min-width:0}.provider-row .subtle-button{height:37px}.provider-row .icon-button{width:37px;height:37px}.model-add-row{display:grid;grid-template-columns:1.2fr .7fr 1.4fr auto;gap:10px;margin-bottom:18px}.model-add-row select,.model-add-row input{height:37px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:0 11px;font-size:12px;min-width:0}.model-empty{font-size:11px;color:var(--muted);margin:0 0 8px}.model-group{margin-top:6px}.model-group-title{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;margin:14px 0 10px}.default-badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:var(--green);background:#3781601f;border-radius:10px;padding:3px 9px}.model-card{border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:14px 15px;margin-bottom:10px}.model-card.is-default{border-color:var(--green)}.model-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.model-provider{font-size:11px;font-weight:600;color:var(--muted)}.model-card-actions{display:flex;align-items:center;gap:9px}.default-chip{display:inline-flex;align-items:center;gap:5px;height:27px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:600}.default-chip.on{border-color:var(--green);color:var(--green);background:#3781601a}.model-card-body label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;margin-bottom:11px}.model-card-body input,.model-card-body textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:9px 11px;font-size:12px;resize:vertical}@media (max-width:760px){.provider-row{grid-template-columns:1fr 1fr}.provider-row .subtle-button,.provider-row .icon-button{width:auto}.model-add-row{grid-template-columns:1fr 1fr}.model-add-row .primary-button{grid-column:span 2}}.provider-block{border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:12px 13px;margin-bottom:10px}.provider-block .provider-row{margin-bottom:10px}.provider-paths{display:grid;grid-template-columns:1fr 1fr;gap:10px}.provider-paths label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:600;color:var(--muted)}.provider-paths input{height:34px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:0 11px;font-size:12px}@media (max-width:760px){.provider-paths{grid-template-columns:1fr}}.toast{position:fixed;right:24px;bottom:24px;z-index:50;display:flex;align-items:center;gap:8px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-left:3px solid var(--green);border-radius:9px;padding:11px 16px;font-size:12px;font-weight:600;box-shadow:var(--shadow);animation:toast-in .2s ease}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.admin-columns{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:20px;align-items:start}.admin-columns .settings-section{margin-bottom:0}@media (max-width:1100px){.admin-columns{grid-template-columns:1fr}}.model-row{border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:10px 12px;margin-bottom:9px}.model-row.is-default{border-color:var(--green)}.model-row-main{display:flex;align-items:center;gap:9px}.model-row-main .model-provider{flex:none;font-size:10px;font-weight:600;color:var(--muted);min-width:52px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row-main input{height:34px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:0 10px;font-size:12px;min-width:0}.model-name-input{flex:1.4}.model-path-input{flex:1;font-family:ui-monospace,Consolas,monospace;font-size:11px}.model-row-main .subtle-button{height:34px;flex:none}.model-row-main .default-chip{flex:none}.model-row-main .icon-button{width:32px;height:34px;flex:none}.model-prompt{width:100%;margin-top:9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:8px 10px;font-size:11px;resize:vertical}@media (max-width:760px){.model-row-main{flex-wrap:wrap}.model-name-input,.model-path-input{flex:1 1 100%}}.provider-row.clickable{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:9px 10px}.provider-row.clickable:hover{border-color:var(--muted)}.provider-row.clickable.selected{border-color:var(--accent);background:var(--accent-soft)}.model-add-row{display:none}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#141a1673;display:grid;place-items:center;z-index:40;padding:18px}.modal{width:min(400px,100%);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px 23px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}.modal .section-title{margin-bottom:0}.modal input{height:38px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:0 11px;font-size:13px}.kind-switch{display:flex;gap:8px}.kind-switch button{flex:1;height:38px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--muted);font-size:12px;font-weight:600}.kind-switch button.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.provider-row.compact{align-items:center}.provider-brief{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.provider-brief b{font-size:12px}.provider-brief small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.key-badge{flex:none;font-size:9px;font-weight:600;color:var(--muted);background:var(--surface-soft);border-radius:9px;padding:3px 8px}.key-badge.on{color:var(--green);background:#3781601f}.provider-row.compact{display:flex;gap:8px}.provider-row.compact .provider-brief{flex:1}.template-label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;margin-bottom:12px}.template-label textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:9px 11px;font-size:12px;resize:vertical}.kind-badge{flex:none;font-size:10px;font-weight:700;border-radius:8px;padding:4px 10px}.kind-badge.k-text{color:var(--green);background:#3781601f}.kind-badge.k-image{color:var(--accent);background:var(--accent-soft)}.model-head{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;letter-spacing:.6px;color:var(--muted);text-transform:uppercase;padding:0 12px 8px;border-bottom:1px solid var(--line);margin-bottom:10px}.model-head span:first-child{width:44px;flex:none}.model-head span:nth-child(2){flex:1;min-width:0}.model-head-actions{margin-left:auto}.modal select{height:38px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:0 10px;font-size:12px;width:100%}.modal-actions{display:flex;gap:10px}.modal-actions .subtle-button,.modal-actions .primary-button{flex:1}.test-panel{margin-top:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);padding:11px 13px;font-size:11px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.test-panel.ok{border-color:var(--green)}.test-panel.fail{border-color:#c8564b}.test-panel .test-line{line-height:1.6;word-break:break-all}.test-panel .test-line b{font-weight:700}.test-panel .test-error{color:#c8564b;font-weight:600}.test-panel .test-image{max-width:180px;border-radius:8px;border:1px solid var(--line);align-self:center}.test-spinner{width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.subtle-button .test-spinner{display:inline-block;width:13px;height:13px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}.sticker-preview.clickable{cursor:zoom-in;border:0;padding:0;background:none;width:100%}.lightbox-image{max-width:92vw;max-height:92vh;border-radius:12px;box-shadow:var(--shadow);background:#fff}.sticker-preview img{cursor:zoom-in}.log-row{display:flex;align-items:baseline;gap:10px;border-top:1px solid var(--line);padding:9px 2px;font-size:11px;flex-wrap:wrap}.log-row:first-of-type{border-top:0}.log-status{flex:none;font-size:10px;font-weight:700;border-radius:8px;padding:2px 8px}.log-status.ok{color:var(--green);background:#3781601f}.log-status.err{color:#c8564b;background:#c8564b1f}.log-model{flex:none;font-weight:600}.log-lat{flex:none;color:var(--muted);font-size:10px}.log-prompt{flex:1;min-width:240px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.log-error{flex:1;min-width:200px;color:#c8564b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.log-time{flex:none;color:var(--muted);font-size:10px}.log-uid{flex:none;font-size:10px;color:var(--muted);background:var(--surface-soft);border-radius:6px;padding:2px 6px}.mini-ai{margin-left:auto;width:30px;height:30px;border:1px solid var(--accent);border-radius:6px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;cursor:pointer}.mini-ai:hover{background:var(--accent);color:#fff}.mini-ai:disabled{opacity:.6;cursor:wait}.mini-ai.busy{animation:pulse .8s ease-in-out infinite}@keyframes pulse{50%{opacity:.4}}.delete-album{color:var(--muted);transition:color .15s}.delete-album:hover{color:#c8564b}.cut-preview{position:relative;border:1px solid var(--line);border-radius:8px;overflow:hidden}.cut-preview img{width:100%;display:block}.cut-grid{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.cut-controls{display:flex;gap:12px;align-items:flex-end}.cut-controls label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:600}.cut-controls input{width:90px;height:36px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);padding:0 10px;font-size:12px}.cut-controls span{font-size:11px;color:var(--muted);padding-bottom:9px}.modal-wide{width:min(720px,100%)}.sticker-grid .sheet-tile{grid-column:1/-1}.sheet-tile .sticker-preview{aspect-ratio:auto}.sheet-tile:not(.cut-inline) .sticker-preview img{width:100%;height:auto;cursor:pointer}.cut-inline .sticker-preview,.cut-inline .sticker-preview img{cursor:default}.cut-inline{grid-column:1/-1;display:flex;flex-direction:column;gap:12px}.cut-actions{display:flex;gap:10px;justify-content:flex-end}.cut-hint{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;font-size:11px;font-weight:600;color:var(--accent);background:var(--accent-soft);border-radius:0 0 8px 8px}.sticker-tile.sheet-tile:not(.cut-inline){cursor:zoom-in}.cut-line{position:absolute;z-index:2;touch-action:none}.cut-line.v{top:0;bottom:0;width:10px;margin-left:-5px;cursor:col-resize}.cut-line.h{left:0;right:0;height:10px;margin-top:-5px;cursor:row-resize}.cut-line.v:after{content:"";position:absolute;left:4px;top:0;bottom:0;width:2px;background:#d8573cd9}.cut-line.h:after{content:"";position:absolute;top:4px;left:0;right:0;height:2px;background:#d8573cd9}.cut-line:hover:after{background:var(--accent)}.gen-all{width:100%;margin-bottom:12px}.editor-side{display:block;margin-top:22px}.editor-side .deliverables{margin-bottom:0}.editor-side .deliverable{display:flex;width:100%;gap:14px;align-items:center}.editor-side .deliverable .mini-upload{margin-left:auto}.deliverable-thumb{border:0;padding:0;cursor:zoom-in;background:var(--surface-soft);border-radius:7px;overflow:hidden}.editor-grid>.editor-main{max-width:100%}.editor-grid>.editor-side{margin-top:22px}.editor-side .deliverable-thumb{width:88px;height:88px}.editor-side .deliverable b{font-size:13px}.editor-side .deliverable small{font-size:11px}.editor-side .deliverable .mini-ai{width:34px;height:34px}.deliverable-thumb[data-kind=cover]{width:150px;height:150px}.deliverable-thumb[data-kind=icon]{width:96px;height:96px}.deliverable-thumb[data-kind=banner]{width:280px;height:150px}.editor-side .deliverable-thumb img{width:100%;height:100%;object-fit:contain}.cut-line:before{content:"";position:absolute;background-color:#fff;background-image:radial-gradient(circle,rgba(216,87,60,.9) 1.3px,transparent 1.4px);border:1.5px solid rgba(216,87,60,.85);border-radius:7px;box-shadow:0 1px 5px #00000040;transition:transform .12s,box-shadow .12s}.cut-line.v:before{width:14px;height:34px;left:50%;top:50%;transform:translate(-50%,-50%);background-size:4px 7px;background-position:center}.cut-line.h:before{width:34px;height:14px;left:50%;top:50%;transform:translate(-50%,-50%);background-size:7px 4px;background-position:center}.cut-line:hover:before{transform:translate(-50%,-50%) scale(1.15);box-shadow:0 2px 8px #00000059}
