:root{--cream:#fff8f6;--paper:#fff;--ink:#211a18;--muted:#76645e;--brand:#934a31;--brand-dark:#6f301e;--pink:#fe97b9;--mint:#a2d3a4;--yellow:#f6c96b;--blue:#87bed9;--line:#e8d8d2;--shadow:0 18px 45px rgba(88,47,35,.08);font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--cream);line-height:1.55}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.portal-shell{width:min(1180px,calc(100% - 40px));margin:auto}
.portal-header{position:sticky;z-index:50;top:0;border-bottom:1px solid rgba(232,216,210,.8);background:rgba(255,248,246,.92);backdrop-filter:blur(18px)}.portal-header-inner{min-height:74px;display:flex;align-items:center;gap:26px}.portal-brand{display:flex;align-items:center;gap:11px;margin-right:auto}.portal-brand strong,.portal-brand small{display:block}.portal-brand small{color:var(--muted);font-size:10px;letter-spacing:.12em}.portal-mark{display:grid;grid-template-columns:repeat(2,7px);gap:4px;padding:9px;border-radius:12px;background:var(--brand)}.portal-mark i{width:7px;height:7px;border-radius:50%;background:#fff8f6}.portal-nav{display:flex;gap:24px}.portal-nav a{min-height:44px;display:grid;place-items:center;color:var(--muted);font-size:14px;font-weight:700}.portal-nav a.active{color:var(--brand)}.portal-account{min-height:44px;display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}.portal-avatar{width:28px;height:28px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#f4ddd5;color:var(--brand);font-weight:800}.portal-avatar img{width:100%;height:100%;object-fit:cover}
.portal-main{padding-block:58px 110px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}.eyebrow{margin:0 0 8px;color:var(--brand);font-size:11px;font-weight:850;letter-spacing:.14em}.page-heading h1{margin:0;font-size:clamp(34px,4vw,50px);line-height:1.15;letter-spacing:-.045em}.page-heading>div>p:last-child{margin:10px 0 0;color:var(--muted)}
.portal-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;border:1px solid var(--brand);border-radius:14px;background:var(--brand);color:#fff;cursor:pointer;font-weight:780}.portal-button.secondary{border-color:var(--line);background:#fff;color:var(--brand)}.portal-button.small{min-height:40px;padding:0 13px;font-size:12px}.portal-button.danger{border-color:#efc4bd;background:#fff3f1;color:#a6382a}.portal-button:disabled{cursor:not-allowed;opacity:.55}
.gallery-tools{display:grid;grid-template-columns:1.4fr repeat(3,minmax(130px,.55fr));gap:10px;margin-bottom:26px;padding:14px;border:1px solid var(--line);border-radius:20px;background:#fff}.gallery-tools input,.gallery-tools select,.profile-form input,.work-form input,.work-form select,.work-form textarea{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--line);border-radius:13px;background:#fffdfa;outline:none}.gallery-tools input:focus,.gallery-tools select:focus,.profile-form input:focus,.work-form input:focus,.work-form textarea:focus{border-color:#bc806b;box-shadow:0 0 0 3px rgba(147,74,49,.09)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.gallery-card{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(88,47,35,.06);transition:transform .2s ease,box-shadow .2s ease}.gallery-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.gallery-preview{position:relative;aspect-ratio:1;display:grid;place-items:center;margin:10px;overflow:hidden;border-radius:16px;background:color-mix(in srgb,var(--accent) 18%,#fff)}.gallery-preview img{width:100%;height:100%;object-fit:cover}.gallery-placeholder{width:52%;aspect-ratio:1;background:radial-gradient(circle,var(--accent) 0 22%,transparent 24%) 0 0/24px 24px;filter:drop-shadow(0 8px 7px rgba(88,47,35,.12));clip-path:polygon(50% 0,61% 34%,98% 34%,68% 55%,79% 92%,50% 70%,21% 92%,32% 55%,2% 34%,39% 34%)}.favorite-button{position:absolute;right:10px;top:10px;width:42px;height:42px;border:1px solid rgba(147,74,49,.12);border-radius:50%;background:rgba(255,255,255,.9);color:var(--brand);cursor:pointer;font-size:20px}.favorite-button.active{background:var(--brand);color:#fff}.gallery-card-body{padding:9px 17px 18px}.gallery-tags{display:flex;flex-wrap:wrap;gap:6px}.gallery-tag{padding:5px 8px;border-radius:999px;background:#f6ebe7;color:var(--brand);font-size:10px;font-weight:750}.gallery-card h3{margin:10px 0 4px;font-size:19px}.gallery-meta{color:var(--muted);font-size:12px}.empty-state{grid-column:1/-1;padding:55px 20px;border:1px dashed #d9c3bc;border-radius:22px;text-align:center;color:var(--muted);background:rgba(255,255,255,.5)}
.member-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;margin-bottom:24px}.member-card-main{position:relative;min-height:285px;overflow:hidden;padding:34px;border-radius:28px;background:linear-gradient(135deg,#eaa7be,#f4c4d3);box-shadow:var(--shadow)}.member-card-main::after{content:"";position:absolute;right:-35px;bottom:-70px;width:230px;height:230px;border-radius:50%;opacity:.28;background:radial-gradient(#fff 0 4px,transparent 5px);background-size:22px 22px}.member-profile{position:relative;z-index:2;display:flex;align-items:center;gap:18px}.member-avatar-large{width:78px;height:78px;display:grid;place-items:center;overflow:hidden;border:6px solid rgba(255,255,255,.7);border-radius:24px;background:var(--brand);color:#fff;font-size:30px;font-weight:850}.member-avatar-large img{width:100%;height:100%;object-fit:cover}.member-profile h1{margin:0;font-size:30px}.member-profile p{margin:4px 0 0;color:#734c41;font-size:13px}.member-number{position:relative;z-index:2;margin-top:42px;color:#704235;font-size:13px;letter-spacing:.13em}.stats-card{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:24px;border:1px solid var(--line);border-radius:28px;background:#fff}.stat{text-align:center}.stat+ .stat{border-left:1px solid var(--line)}.stat strong{display:block;color:var(--brand);font-size:32px;line-height:1.2}.stat span{color:var(--muted);font-size:12px}
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:34px}.quick-action{min-height:100px;display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:20px;background:#fff;cursor:pointer}.quick-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:#f7e5de;color:var(--brand);font-size:24px;font-weight:300}.quick-action strong,.quick-action small{display:block}.quick-action small{margin-top:3px;color:var(--muted);font-size:11px}
.member-tabs{display:flex;gap:6px;margin-bottom:18px;padding:5px;border:1px solid var(--line);border-radius:16px;background:#fff;width:max-content;max-width:100%;overflow-x:auto}.member-tabs button{min-height:42px;padding:0 16px;border:0;border-radius:11px;background:transparent;color:var(--muted);cursor:pointer;font-weight:720;white-space:nowrap}.member-tabs button.active{background:var(--brand);color:#fff}.member-panel{display:none}.member-panel.active{display:block}.panel-card{padding:24px;border:1px solid var(--line);border-radius:24px;background:#fff}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-head h2{margin:0;font-size:23px}
.works-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.work-card{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:#fff}.work-card img{width:100%;aspect-ratio:1.15;object-fit:cover;background:#f4ebe6}.work-card-body{padding:14px}.work-card h3{margin:0 0 4px}.work-card p{margin:0;color:var(--muted);font-size:12px}.work-actions{display:flex;gap:7px;margin-top:12px}.booking-list{display:grid;gap:10px}.booking-item{display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:16px}.booking-date{color:var(--brand);font-weight:850}.booking-item strong,.booking-item small{display:block}.booking-item small{color:var(--muted)}.status-tag{padding:6px 10px;border-radius:999px;background:#e7f3e9;color:#41734a;font-size:11px;font-weight:800}.status-tag.pending{background:#fff0d0;color:#82631e}
.profile-layout{display:grid;grid-template-columns:200px 1fr;gap:28px}.avatar-editor{text-align:center}.avatar-editor .member-avatar-large{margin:0 auto 12px}.avatar-editor input{display:none}.profile-form{display:grid;gap:15px}.profile-form label,.work-form label{display:grid;gap:7px;color:#66524c;font-size:13px;font-weight:720}.readonly-value{min-height:48px;display:flex;align-items:center;padding:0 14px;border-radius:13px;background:#f8f0ed;color:var(--muted)}
.portal-modal{position:fixed;z-index:150;inset:0;display:grid;place-items:center;padding:20px;background:rgba(42,28,24,.46);backdrop-filter:blur(6px)}.portal-dialog{width:min(560px,100%);max-height:90dvh;overflow-y:auto;padding:28px;border-radius:24px;background:#fff;box-shadow:0 25px 70px rgba(40,24,20,.25)}.portal-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.portal-dialog h2{margin:0}.dialog-close{width:44px;height:44px;border:0;border-radius:12px;background:#fff4f0;cursor:pointer;font-size:23px}.work-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.work-form .full{grid-column:1/-1}.work-form textarea{min-height:100px;padding-top:12px;resize:vertical}.upload-drop{min-height:160px;display:grid;place-items:center;padding:16px;border:2px dashed #d9beb5;border-radius:17px;background:#fff9f6;text-align:center;cursor:pointer}.upload-drop input{position:absolute;opacity:0;pointer-events:none}.upload-preview{max-height:220px;border-radius:14px}.dialog-actions{position:sticky;bottom:-28px;display:flex;justify-content:flex-end;gap:9px;margin:20px -28px -28px;padding:15px 28px;background:#fff;border-top:1px solid var(--line)}
.portal-toast{position:fixed;z-index:190;right:20px;bottom:20px;padding:13px 17px;border-radius:13px;background:var(--ink);color:#fff;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.portal-toast.show{opacity:1;transform:none}.portal-footer{padding:32px 0 100px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.portal-mobile-nav{display:none}
.gallery-cover{width:100%;display:block;padding:0;border:0;background:transparent;cursor:pointer}.gallery-placeholder{display:grid;grid-template-columns:repeat(2,36px);place-content:center;gap:7px;width:100%;aspect-ratio:1.18;background:linear-gradient(145deg,#fff3ef,#f2e6df)}.gallery-placeholder span{width:36px;height:36px;border-radius:8px;background:var(--accent);box-shadow:inset 0 0 0 6px rgba(255,255,255,.34)}.gallery-title-row{display:flex;align-items:start;gap:8px}.gallery-title-row h3{margin-right:auto}.favorite-button{width:40px;height:40px;flex:0 0 auto;border:0;border-radius:50%;background:#fff2ee;color:var(--brand);cursor:pointer;font-size:23px}.favorite-button.active{background:#f8d6dc;color:#a72f56}.pattern-detail-cover{overflow:hidden;margin:20px 0;border-radius:20px}.pattern-detail-cover>img,.pattern-detail-cover>.gallery-placeholder{width:100%;max-height:380px;object-fit:cover}.pattern-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0 0}.pattern-facts div{padding:12px;border-radius:13px;background:#faf1ee}.pattern-facts dt{color:var(--muted);font-size:11px}.pattern-facts dd{margin:2px 0 0;font-weight:800}.portal-button.danger{border-color:#efd5cf;background:#fff1ed;color:#9b3d2b}.portal-button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(2,1fr)}.member-hero{grid-template-columns:1fr}.works-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){body{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.portal-shell{width:calc(100% - 32px)}.portal-header-inner{min-height:66px}.portal-nav{display:none}.portal-account span:last-child{display:none}.portal-main{padding-block:40px 70px}.page-heading{display:block}.page-heading .portal-button{margin-top:18px}.page-heading h1{font-size:36px}.gallery-tools{grid-template-columns:1fr 1fr}.gallery-tools input{grid-column:1/-1}.gallery-grid{grid-template-columns:1fr 1fr;gap:10px}.gallery-card-body{padding:8px 12px 14px}.gallery-card h3{font-size:16px}.gallery-meta{font-size:10px}.member-card-main{min-height:250px;padding:24px}.member-profile{align-items:flex-start}.member-avatar-large{width:68px;height:68px}.member-profile h1{font-size:25px}.member-number{margin-top:35px}.stats-card{padding:20px 10px}.stat strong{font-size:26px}.quick-actions{grid-template-columns:1fr}.quick-action{min-height:82px}.member-tabs{width:100%}.member-tabs button{flex:1}.panel-card{padding:18px}.works-grid{grid-template-columns:1fr 1fr;gap:10px}.booking-item{grid-template-columns:1fr auto;gap:8px}.booking-date{grid-column:1/-1}.profile-layout{grid-template-columns:1fr}.work-form{grid-template-columns:1fr}.work-form .full{grid-column:auto}.portal-modal{align-items:end;padding:0}.portal-dialog{width:100%;max-height:92dvh;padding:22px 18px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}.dialog-actions{bottom:calc(-20px - env(safe-area-inset-bottom));margin:20px -18px calc(-20px - env(safe-area-inset-bottom));padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.portal-mobile-nav{position:fixed;z-index:80;right:0;bottom:0;left:0;min-height:calc(72px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);padding:7px 8px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:rgba(255,252,250,.97);box-shadow:0 -10px 26px rgba(88,47,35,.08);backdrop-filter:blur(16px)}.portal-mobile-nav a{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:10px;font-weight:720}.portal-mobile-nav a.active{color:var(--brand)}.portal-mobile-nav b{font-size:19px;font-weight:400}.portal-toast{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));left:16px;text-align:center}}
@media(max-width:390px){.gallery-grid{grid-template-columns:1fr}.works-grid{grid-template-columns:1fr}.gallery-tools{grid-template-columns:1fr}.gallery-tools input{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Pattern studio: a workbench inspired by the physical bead board. */
.gallery-maker-banner{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:24px;margin:0 0 28px;padding:20px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 12px 32px rgba(88,47,35,.05)}.gallery-maker-banner h2{margin:0 0 6px;font-size:23px}.gallery-maker-banner p:last-child{margin:0;color:var(--muted);font-size:13px}.maker-bead-board{display:grid;grid-template-columns:repeat(3,26px);place-content:center;gap:6px;height:112px;border-radius:17px;background:#f8e9e4}.maker-bead-board span{width:26px;height:26px;border-radius:50%;background:#f3b4c8;box-shadow:inset 0 0 0 7px rgba(255,255,255,.48)}.maker-bead-board span:nth-child(2n){background:#f2c567}.maker-bead-board span:nth-child(3n){background:#91cbb2}.maker-bead-board span:nth-child(5n){background:#84bad5}
[hidden]{display:none!important}.studio-main{width:min(1380px,calc(100% - 40px))}.studio-heading{align-items:center}.studio-layout{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,.82fr) minmax(340px,1.12fr);align-items:start;gap:16px}.studio-card{padding:22px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 12px 32px rgba(88,47,35,.045)}.studio-card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.studio-card-head h2{margin:0;font-size:21px}.studio-card-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.studio-step{width:37px;height:37px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#f5e2dc;color:var(--brand);font-size:11px;font-weight:850;letter-spacing:.08em}.studio-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:16px;padding:4px;border-radius:14px;background:#f8efec}.studio-tabs button{min-height:42px;border:0;border-radius:11px;background:transparent;color:var(--muted);cursor:pointer;font-weight:760}.studio-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 3px 10px rgba(88,47,35,.07)}.source-panel{display:none}.source-panel.active{display:block}.studio-drop{min-height:285px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;border:1px dashed #d1aaa0;border-radius:18px;background:#fffaf8;text-align:center;cursor:pointer;transition:.18s}.studio-drop.dragging{border-color:var(--brand);background:#faece7;transform:scale(.995)}.studio-drop.has-source{min-height:130px}.studio-drop input{position:absolute;width:1px;height:1px;opacity:0}.studio-drop strong{margin-top:16px}.studio-drop small{margin-top:5px;color:var(--muted)}.drop-beads{display:grid;grid-template-columns:repeat(2,20px);gap:5px}.drop-beads i{width:20px;height:20px;border-radius:50%;background:#eaa7bb;box-shadow:inset 0 0 0 5px #f9d8e2}.drop-beads i:nth-child(2){background:#f1c464;box-shadow:inset 0 0 0 5px #f8e2a9}.drop-beads i:nth-child(3){background:#89c5a9;box-shadow:inset 0 0 0 5px #c8e6d7}.drop-beads i:nth-child(4){background:#82b7d2;box-shadow:inset 0 0 0 5px #c8e1ed}.studio-field{display:grid;gap:7px;color:#66524c;font-size:12px;font-weight:750}.studio-field textarea,.studio-field select{width:100%;min-height:48px;padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:#fffdfa;outline:none;resize:vertical}.studio-field textarea:focus,.studio-field select:focus{border-color:#bc806b;box-shadow:0 0 0 3px rgba(147,74,49,.09)}.import-button{width:100%;margin-top:10px}.studio-notice{margin:11px 0 0;color:var(--muted);font-size:11px}.source-preview{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:11px;margin-top:14px;padding:10px;border-radius:15px;background:#f8efec}.source-preview img{width:70px;height:70px;border-radius:11px;object-fit:cover}.source-preview strong,.source-preview small{display:block}.source-preview small{color:var(--muted);font-size:10px}.source-preview button{border:0;background:transparent;color:var(--brand);cursor:pointer;font-weight:750}.xhs-results{margin-top:14px}.xhs-result-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.xhs-result-head strong{font-size:12px}.xhs-result-head small{color:var(--muted);font-size:10px}.xhs-image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-height:280px;overflow-y:auto}.xhs-image-grid button{position:relative;aspect-ratio:1;padding:0;overflow:hidden;border:2px solid transparent;border-radius:12px;background:#f3e6e1;cursor:pointer}.xhs-image-grid button.active{border-color:var(--brand)}.xhs-image-grid img{width:100%;height:100%;object-fit:cover}.xhs-image-grid span{position:absolute;right:5px;bottom:5px;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--brand);font-size:9px;font-weight:800}
.board-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.board-options button{min-height:76px;padding:10px 6px;border:1px solid var(--line);border-radius:14px;background:#fffdfa;cursor:pointer}.board-options button.active{border-color:var(--brand);background:#f8e5df;color:var(--brand)}.board-options strong,.board-options small{display:block}.board-options small{margin-top:2px;color:var(--muted);font-size:9px}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.range-field{display:grid;gap:7px;margin-top:17px;color:#66524c;font-size:12px;font-weight:750}.range-field span{display:flex;justify-content:space-between}.range-field b{color:var(--brand)}.range-field input{width:100%;accent-color:var(--brand)}.focus-control{margin-top:16px}.focus-control>span{display:block;margin-bottom:8px;color:#66524c;font-size:12px;font-weight:750}.focus-control>div{width:86px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.focus-control button{width:26px;height:26px;padding:0;border:1px solid var(--line);border-radius:7px;background:#fffdfa;cursor:pointer}.focus-control button.active{border-color:var(--brand);background:var(--brand);box-shadow:inset 0 0 0 8px #f4d9d0}.generate-button{width:100%;min-height:62px;display:flex;flex-direction:column;margin-top:20px}.generate-button small{font-size:9px;font-weight:500;opacity:.75}.studio-progress{margin-top:13px;text-align:center;color:var(--muted);font-size:11px}.studio-progress span{display:block;width:100%;height:4px;overflow:hidden;border-radius:999px;background:#f3e3de}.studio-progress span::after{content:"";display:block;width:35%;height:100%;border-radius:inherit;background:var(--brand);animation:studio-progress 1.2s infinite ease-in-out}.studio-progress p{margin:7px 0 0}@keyframes studio-progress{from{transform:translateX(-100%)}to{transform:translateX(300%)}}
.style-field{margin-top:17px}.style-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#66524c;font-size:12px;font-weight:750}.style-field-head small{color:var(--muted);font-size:9px;font-weight:500;text-align:right}.style-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.style-options button{min-height:76px;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fffdfa;color:var(--ink);text-align:left;cursor:pointer}.style-options button.active{border-color:var(--brand);background:#f8e5df;box-shadow:0 0 0 2px rgba(147,74,49,.06)}.style-options strong,.style-options small{display:block}.style-options strong{font-size:12px}.style-options small{margin-top:2px;color:var(--muted);font-size:8px}.style-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#f3e4df;color:var(--brand);font-size:20px}.style-original{grid-template-columns:repeat(2,9px);gap:3px}.style-original i{width:9px;height:9px;border-radius:3px;background:#eaa7bb}.style-original i:nth-child(2){background:#f1c464}.style-original i:nth-child(3){background:#89c5a9}.style-original i:nth-child(4){background:#82b7d2}.style-cartoon{background:linear-gradient(145deg,#fbd9e5,#f7c878);color:#8b3d52}.cartoon-notice{margin:8px 0 0;padding:9px 11px;border-radius:11px;background:#fff4dc;color:#785d22;font-size:9px;line-height:1.55}
.studio-result{min-height:590px}.result-empty{min-height:470px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.result-empty strong{margin-top:18px}.result-empty p{max-width:240px;margin:5px 0;color:var(--muted);font-size:12px}.empty-board{width:146px;aspect-ratio:1;border-radius:20px;background:radial-gradient(circle,#dbb8ad 0 3px,transparent 4px) 0 0/18px 18px;opacity:.48}.result-preview{display:grid;place-items:center;overflow:auto;max-height:455px;padding:10px;border-radius:18px;background:#f7efeb}.result-preview img{display:block;width:100%;height:auto;image-rendering:pixelated}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.result-stats div{padding:10px;border-radius:13px;background:#faf2ef;text-align:center}.result-stats strong,.result-stats small{display:block}.result-stats strong{color:var(--brand);font-size:17px}.result-stats small{color:var(--muted);font-size:9px}.material-head{display:flex;align-items:center;justify-content:space-between;margin-top:16px}.material-head h3{margin:0;font-size:15px}.material-head span{color:var(--muted);font-size:10px}.material-list{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.material-chip{display:flex;align-items:center;gap:7px;padding:7px;border:1px solid #eee0db;border-radius:11px}.material-chip i{width:24px;height:24px;flex:0 0 auto;border-radius:50%;background:var(--chip);box-shadow:inset 0 0 0 5px rgba(255,255,255,.44)}.material-chip strong,.material-chip small{display:block}.material-chip strong{font-size:10px}.material-chip small{color:var(--muted);font-size:8px}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.pattern-editor{margin-top:22px;padding:26px;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 15px 42px rgba(88,47,35,.06)}.editor-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.editor-heading h2{margin:0;font-size:28px}.editor-heading p:last-child{max-width:720px;margin:7px 0 0;color:var(--muted);font-size:12px}.editor-status{display:flex;align-items:center;gap:12px}.editor-status span{color:#4f7955;font-size:11px;font-weight:750}.editor-status span.dirty{color:#a45b28}.editor-toolbar{display:flex;flex-wrap:wrap;align-items:stretch;gap:9px;margin-bottom:14px;padding:10px;border:1px solid var(--line);border-radius:18px;background:#fbf6f3}.editor-tool-group{display:flex;align-items:center;gap:7px;padding:5px 8px;border-radius:13px;background:#fff}.editor-tool-group+.editor-tool-group{border-left:1px solid var(--line)}.tool-label{color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}.color-select{min-width:150px;height:42px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid var(--line);border-radius:11px;background:#fffdfa}.color-select.compact{min-width:135px}.color-select i{width:25px;height:25px;flex:0 0 auto;border-radius:50%;background:var(--swatch,#eee);box-shadow:inset 0 0 0 5px rgba(255,255,255,.52),0 0 0 1px rgba(40,25,20,.08)}.color-select select{min-width:0;width:100%;height:100%;border:0;background:transparent;color:var(--ink);font-size:11px;font-weight:750;outline:0}.tool-button{min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:#fffdfa;color:var(--ink);cursor:pointer;font-size:11px;font-weight:750}.tool-button:hover,.tool-button.active{border-color:var(--brand);background:#f7e5df;color:var(--brand)}.tool-button.accent{border-color:var(--brand);background:var(--brand);color:#fff}.tool-button:disabled{cursor:not-allowed;opacity:.4}.replace-arrow{color:var(--muted)}.editor-history{margin-left:auto}.editor-history strong{min-width:42px;color:var(--brand);font-size:11px;text-align:center}.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px}.board-viewport{min-height:580px;max-height:76vh;overflow:auto;border:1px solid #ddc9c1;border-radius:20px;background:#f2e7e1;box-shadow:inset 0 0 0 8px #fff;overscroll-behavior:contain}.board-viewport canvas{display:block;margin:18px;background:#fff;box-shadow:0 8px 24px rgba(55,34,27,.13);touch-action:manipulation;cursor:crosshair}.editor-sidebar{min-width:0;padding:15px;border:1px solid var(--line);border-radius:20px;background:#fffaf8}.cell-inspector{padding:14px;border-radius:15px;background:#f5e6e1}.cell-inspector>span{color:var(--muted);font-size:10px}.cell-inspector>strong{display:block;margin:3px 0 10px;font-size:15px}.cell-color-card{display:flex;align-items:center;gap:9px}.cell-color-card i{width:38px;height:38px;border-radius:50%;background:var(--cell);box-shadow:inset 0 0 0 8px rgba(255,255,255,.5)}.cell-color-card strong,.cell-color-card small{display:block}.cell-color-card small{color:var(--muted);font-size:9px}.editor-material-head{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 9px}.editor-material-head h3{margin:0;font-size:15px}.editor-material-head span{color:var(--muted);font-size:9px}.editor-material-list{display:grid;gap:6px;max-height:490px;overflow:auto}.editor-material-item{width:100%;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:7px;border:1px solid transparent;border-radius:11px;background:#fff;cursor:pointer;text-align:left}.editor-material-item:hover,.editor-material-item.active{border-color:#d3a698;background:#f8e9e4}.editor-material-item i{width:30px;height:30px;border-radius:50%;background:var(--item);box-shadow:inset 0 0 0 6px rgba(255,255,255,.48)}.editor-material-item strong,.editor-material-item small{display:block}.editor-material-item strong{font-size:10px}.editor-material-item small{color:var(--muted);font-size:8px}.editor-material-item>b{color:var(--brand);font-size:10px}.editor-help{margin:12px 3px 0;color:var(--muted);font-size:10px}
@media(max-width:1100px){.studio-layout{grid-template-columns:1fr 1fr}.studio-result{grid-column:1/-1}.result-content{display:grid;grid-template-columns:minmax(300px,.9fr) 1fr;gap:16px}.result-preview{grid-row:1/7}.result-stats,.material-head,.material-list,.result-actions,.result-content>.studio-notice{grid-column:2}}
@media(max-width:900px){.editor-workspace{grid-template-columns:1fr}.editor-sidebar{display:grid;grid-template-columns:220px 1fr;gap:14px}.editor-material-head{display:none}.editor-material-list{grid-template-columns:repeat(3,1fr);max-height:250px}.editor-history{margin-left:0}}
@media(max-width:760px){.pattern-editor{margin-inline:-2px;padding:18px 12px;border-radius:22px}.editor-heading{display:block}.editor-heading h2{font-size:23px}.editor-status{position:sticky;z-index:4;bottom:calc(76px + env(safe-area-inset-bottom));justify-content:space-between;margin:15px -2px 0;padding:8px;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(60,35,28,.12);backdrop-filter:blur(12px)}.editor-toolbar{display:grid;padding:8px}.editor-tool-group{flex-wrap:wrap}.editor-tool-group+.editor-tool-group{border-left:0}.replace-group{display:grid;grid-template-columns:auto 1fr auto 1fr}.replace-group .tool-label,.replace-group .tool-button{grid-column:1/-1}.color-select,.color-select.compact{min-width:0}.editor-history{display:grid;grid-template-columns:repeat(6,1fr)}.editor-history .tool-button{padding:0 5px}.editor-history strong{display:grid;place-items:center;min-width:0}.board-viewport{min-height:440px;max-height:64vh}.board-viewport canvas{margin:12px}.editor-sidebar{display:block}.editor-material-head{display:flex}.editor-material-list{grid-template-columns:repeat(2,1fr);max-height:300px}.editor-material-item{grid-template-columns:27px 1fr auto}.editor-material-item i{width:27px;height:27px}}
@media(max-width:760px){.gallery-maker-banner{grid-template-columns:88px 1fr}.gallery-maker-banner .portal-button{grid-column:1/-1}.maker-bead-board{height:88px}.studio-main{width:calc(100% - 24px)}.studio-heading .portal-button{display:none}.studio-layout{grid-template-columns:1fr}.studio-card{padding:18px;border-radius:21px}.studio-result{grid-column:auto;min-height:auto}.result-content{display:block}.result-preview{max-height:none}.gallery-maker-banner h2{font-size:18px}.gallery-maker-banner p:last-child{font-size:11px}}@media(max-width:390px){.setting-grid{grid-template-columns:1fr}.material-list{grid-template-columns:repeat(2,1fr)}}
