:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;--canvas:#f3f4f1;--surface:#fff;--surface-2:#e9ece7;--ink:#171917;--muted:#646b63;--line:#d7dcd4;--soft-line:#e6eae3;--action:#176b4d;--action-hover:#10583d;--on-action:#fff;--warning:#91630f;--danger:#a23030;--focus:#245c9d;--radius:8px;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box;letter-spacing:0}html{background:var(--canvas);min-width:320px;min-height:100%;color:var(--ink)}body{background:var(--canvas);min-width:320px;min-height:100dvh;margin:0;overflow-x:hidden}button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}svg{display:block}h1,h2,h3,p{overflow-wrap:anywhere;margin:0}h1,h2{line-height:1.12}.app-shell{width:min(100%,1280px);min-height:100dvh;padding:0 20px calc(96px + env(safe-area-inset-bottom));margin:0 auto}.skip-link{z-index:50;border:1px solid var(--ink);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--ink);padding:11px 14px;font-weight:800;position:fixed;top:8px;left:8px;transform:translateY(-140%)}.skip-link:focus{transform:translateY(0)}.topbar{min-height:72px;padding-top:env(safe-area-inset-top);justify-content:space-between;align-items:center;display:flex}.brand{min-height:44px;color:var(--ink);white-space:nowrap;align-items:center;gap:10px;font-size:15px;font-weight:900;text-decoration:none;display:inline-flex}.brand svg{width:22px;height:22px;color:var(--action)}.topbar-actions,.toolbar-actions,.editor-actions,.project-actions{align-items:center;gap:8px;display:flex}.icon-button,.primary-button,.secondary-button,.danger-button,.lock-button,.template-tab,.filter-tabs button,.segmented button,.bottom-nav button,.status-pill,.project-actions button{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--ink);justify-content:center;align-items:center;font-weight:850;text-decoration:none;transition:transform .16s,background-color .16s,border-color .16s;display:inline-flex}.icon-button:active,.primary-button:active,.secondary-button:active,.danger-button:active,.template-tab:active,.filter-tabs button:active,.bottom-nav button:active,.project-actions button:active{transform:translateY(1px)}.icon-button{width:44px;padding:0}.icon-button svg,.primary-button svg,.secondary-button svg,.danger-button svg,.lock-button svg,.template-tab svg,.bottom-nav svg,.project-actions svg{flex:none;width:18px;height:18px}.primary-button{border-color:var(--action);background:var(--action);color:var(--on-action);gap:8px;padding:0 14px}.primary-button:hover{background:var(--action-hover)}.secondary-button,.danger-button,.lock-button{gap:8px;padding:0 13px}.danger-button{color:var(--danger)}.feedback{border-radius:var(--radius);color:#164b38;background:#edf7f2;border:1px solid #bad4c6;margin:4px 0 14px;padding:10px 12px;font-size:14px;font-weight:750}.workspace{outline:none;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:28px;padding:12px 0 32px;display:grid}.preview-stage,.tool-panel,.usage-panel,.fabric-editor,.project-card,.backup-strip{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.preview-stage{min-width:0;padding:18px}.studio-heading,.panel-title,.library-toolbar,.editor-title,.project-card-main,.backup-strip{justify-content:space-between;align-items:center;gap:14px;display:flex}.studio-heading h1,.library-toolbar h1{font-size:30px;font-weight:920}.studio-heading p:last-child{color:var(--muted);margin-top:6px;font-size:14px}.section-label{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:850}.status-pill{flex:none;gap:8px;padding:0 12px;font-size:13px}.status-pill svg{fill:currentColor;width:11px;height:11px}.status-pill.making,.project-actions .tight{color:var(--warning);background:#fbf5df;border-color:#d9c58e}.status-pill.completed,.project-actions .enough{color:var(--action);background:#edf7f2;border-color:#b8d7c8}.template-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0;display:grid}.template-tab{color:var(--muted);white-space:nowrap;gap:7px;padding:0 10px}.template-tab.is-active{border-color:var(--action);color:var(--action);background:#eef7f2}.preview-board{border:1px solid var(--soft-line);border-radius:var(--radius);background-color:#f8f9f6;background-image:linear-gradient(90deg,#17191709 1px,#0000 1px),linear-gradient(#17191709 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:28px 28px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;place-items:center;min-height:520px;display:grid;overflow:hidden}.preview-svg{filter:saturate(.98);width:min(100%,560px);height:auto;max-height:520px}.preview-region{cursor:pointer;stroke:#ffffffb8;stroke-width:2px}.preview-region--selected{stroke:var(--action);stroke-width:4px}.preview-line{fill:none;stroke:#14161447;stroke-width:2px;stroke-linecap:round}.preview-highlight{fill:none;stroke:#ffffff8a;stroke-width:9px;stroke-linecap:round}.preview-shadow{fill:#17191717}.tool-stack{align-content:start;gap:12px;min-width:0;display:grid}.region-list{gap:8px;display:grid}.region-row,.fabric-chip,.recommend-row,.fabric-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);width:100%;min-height:64px;color:var(--ink);text-align:left;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;padding:8px;display:grid}.region-row.is-active,.fabric-chip.is-active,.fabric-card.is-active{border-color:var(--action);background:#f1f8f4}.region-row strong,.fabric-chip span,.recommend-row strong,.fabric-card strong,.usage-row strong,.project-card strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-weight:900;display:block;overflow:hidden}.region-row small,.fabric-chip small,.recommend-row small,.fabric-card small,.usage-row small,.project-card small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;display:block;overflow:hidden}.swatch{background:linear-gradient(#ffffff29, #0000000d), var(--photo), var(--swatch,#cfd5cf);background-position:50%;background-size:cover;border:1px solid #17191729;border-radius:6px;width:48px;height:48px}.swatch--empty{background:repeating-linear-gradient(45deg,#e5e8e3 0 8px,#f5f6f3 8px 16px)}.tool-panel{padding:14px}.compact-panel{gap:12px;display:grid}.panel-title h2,.fabric-editor h2{font-size:18px}.panel-icon{width:20px;height:20px;color:var(--action)}.range-field{grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;display:grid}.range-field span{color:var(--muted);align-items:center;gap:6px;font-size:13px;font-weight:800;display:inline-flex}.range-field svg{width:16px;height:16px}input[type=range]{width:100%;accent-color:var(--action)}.segmented,.filter-tabs{flex-wrap:wrap;gap:6px;display:flex}.segmented{margin:12px 0}.segmented button,.filter-tabs button{min-height:36px;color:var(--muted);padding:0 10px;font-size:13px}.segmented button.is-active,.filter-tabs button.is-active{border-color:var(--action);color:var(--action);background:#eef7f2}.search-field{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);align-items:center;gap:8px;min-height:44px;padding:0 12px;display:flex}.search-field svg{width:18px;height:18px;color:var(--muted)}.search-field input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0}.fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:360px;margin-top:12px;padding-right:2px;display:grid;overflow:auto}.fabric-chip{grid-template-columns:42px minmax(0,1fr);align-content:center;min-height:82px}.fabric-chip .swatch{width:42px;height:58px}.recommend-list,.usage-list{gap:8px;display:grid}.recommend-row{grid-template-columns:28px 48px minmax(0,1fr)}.rank{background:var(--surface-2);width:26px;height:26px;color:var(--muted);border-radius:50%;place-items:center;font-size:12px;font-weight:900;display:grid}.usage-panel{grid-template-columns:minmax(150px,.45fr) minmax(0,1fr);gap:14px;margin-top:14px;padding:14px;display:grid}.usage-panel h2{font-size:24px}.usage-panel.enough h2{color:var(--action)}.usage-panel.tight h2{color:var(--warning)}.usage-panel.short h2{color:var(--danger)}.usage-row{grid-template-columns:38px minmax(0,1fr) 34px;align-items:center;gap:9px;display:grid}.usage-row .swatch{width:38px;height:38px}.usage-row b{color:var(--muted);justify-self:end}.library-view,.projects-view{gap:14px;padding:12px 0 32px;display:grid}.library-toolbar{min-height:72px}.filter-row{grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:10px;display:grid}.library-grid{grid-template-columns:minmax(0,1fr) minmax(300px,380px);align-items:start;gap:14px;display:grid}.fabric-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.fabric-card{grid-template-columns:88px minmax(0,1fr) 18px;min-height:112px;padding:10px}.fabric-card img,.fabric-hero{object-fit:cover;background:var(--surface-2);border-radius:6px;width:100%}.fabric-card img{height:88px}.fabric-card>i{width:16px;height:16px;color:var(--action)}.fabric-editor{gap:12px;padding:14px;display:grid;position:sticky;top:14px}.fabric-hero{aspect-ratio:4/3}.form-field{gap:6px;display:grid}.form-field span{color:var(--muted);font-size:13px;font-weight:800}.form-field input{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);width:100%;min-height:44px;color:var(--ink);padding:0 12px}.two-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.switch-row{min-height:44px;color:var(--ink);align-items:center;gap:10px;font-weight:800;display:flex}.switch-row input{width:20px;height:20px;accent-color:var(--action)}.backup-strip{color:var(--muted);justify-content:flex-start;padding:12px;font-size:14px}.backup-strip svg{width:20px;height:20px;color:var(--action)}.backup-strip button{color:var(--action);background:0 0;border:0;margin-left:auto;font-weight:900}.project-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.project-card{gap:12px;padding:14px;display:grid}.project-card.is-active{border-color:var(--action)}.project-card-main{justify-content:flex-start}.project-card-main>svg{background:var(--surface-2);width:38px;height:38px;color:var(--action);border-radius:6px;padding:9px}.mini-swatches{gap:6px;display:flex}.mini-swatches .swatch{width:42px;height:42px}.project-actions{justify-content:flex-start}.project-actions button{gap:7px;min-height:40px;padding:0 11px;font-size:13px}.project-actions .short{color:var(--danger);background:#fbefef;border-color:#e3b7b7}.bottom-nav{right:max(12px,50vw - 628px);bottom:max(12px, env(safe-area-inset-bottom));z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff0;border:1px solid #1719171f;border-radius:14px;grid-template-columns:repeat(3,1fr);gap:6px;max-width:520px;margin:0 auto;padding:7px;display:grid;position:fixed;left:max(12px,50vw - 628px);box-shadow:0 18px 44px #14181429}.bottom-nav button{min-height:54px;color:var(--muted);background:0 0;border:0;flex-direction:column;gap:3px;font-size:12px}.bottom-nav button.is-active{color:var(--action);background:#e9f4ee}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.empty-copy,.empty-state{color:var(--muted)}.empty-state{text-align:center;place-items:center;min-height:260px}.empty-state svg{width:42px;height:42px;color:var(--muted);margin:0 auto 10px}@media (max-width:980px){.app-shell{padding-left:14px;padding-right:14px}.workspace,.library-grid{grid-template-columns:1fr}.preview-stage{padding:14px}.preview-board{min-height:440px}.fabric-editor{position:static}.fabric-list{grid-template-columns:repeat(2,minmax(0,1fr))}.project-list{grid-template-columns:1fr}}@media (min-width:981px){.bottom-nav{width:300px;max-width:300px;margin:0;inset:14px auto auto 50%;transform:translate(-50%)}}@media (max-width:640px){.topbar-actions .icon-button:first-child{display:none}.brand span{text-overflow:ellipsis;max-width:180px;overflow:hidden}.studio-heading,.library-toolbar,.usage-panel,.filter-row{grid-template-columns:1fr}.studio-heading,.library-toolbar{align-items:flex-start}.toolbar-actions{flex-wrap:wrap;width:100%}.primary-button,.secondary-button,.danger-button{flex:140px}.studio-heading h1,.library-toolbar h1{font-size:25px}.template-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-board{min-height:360px}.preview-svg{max-height:380px}.fabric-grid,.fabric-list{grid-template-columns:1fr}.fabric-card{grid-template-columns:76px minmax(0,1fr) 18px;min-height:96px}.fabric-card img{height:76px}.two-fields{grid-template-columns:1fr}.backup-strip{align-items:flex-start}.backup-strip button{margin-left:0}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
