.craft-config{padding:17px;background:linear-gradient(145deg,#fff,#edf4f8);border:1px solid #e2ebf1;border-radius:22px;margin:18px 0;color:#597487}
.craft-config details summary{cursor:pointer;font-size:13px}
.paper-presets{display:flex;gap:8px;margin:15px 0}
.paper-presets button,.dimension-row button,.craft-config .row button,.pottery-view button,.kiln-control button{background:#e2eef6;border:1px solid #d1e2ed;border-radius:15px;padding:10px 14px;font-size:11px}
.paper-presets button{flex:1}
.dimension-row{display:flex;align-items:end;gap:8px;font-size:11px}
.dimension-row label{flex:1;min-width:0}
.dimension-row input{display:block;width:100%;padding:9px 7px;margin-top:6px;border:1px solid #d6e3eb;border-radius:11px;background:white;font-size:12px}
.dimension-row button{white-space:nowrap;padding:10px}
.dimension-row>span{padding-bottom:9px}
.paper-options{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0;font-size:11px;align-items:center}
.paper-options label{display:flex;align-items:center;gap:6px}
.paper-options select{padding:7px 5px;border:1px solid #dae5ec;border-radius:10px;background:white}
.paper-options input[type=range]{width:105px}
.pressure-note,.craft-note{font-size:10px;line-height:1.9;color:#8198a8;margin-bottom:0}
.phase-title{font-size:13px}
.craft-config #blackink.ink-selected{background:#34494F;color:#FFF;border-color:#34494F}
body:has(.wide-studio) aside{display:none}
.pottery-config:not([data-phase="3"]) .kiln-control{display:none}
.tool-cursor-hint{font-size:10px;color:#8198a8}
.tool-cursor-hint b{font-weight:500;color:#56758b}
.pottery-view{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0;font-size:11px}
.pottery-view label{display:flex;gap:5px;align-items:center}
.pottery-view input{accent-color:#7fa6ba}
.pottery-view button{font-size:10px;padding:8px 11px}
.pottery-phases{margin:18px 0 9px}
.pottery-phases button{font-size:12px;padding:13px 2px;min-height:46px}
.kiln-control{display:flex;align-items:center;gap:12px}
.kiln-control button{background:linear-gradient(135deg,#bfddeb,#7ea7c2);border-color:#aac9dc;color:#315775;box-shadow:0 4px 14px #7094ad25}
.kiln-control span{font-size:10px;color:#64859b}
.cursor-tip{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8299a9;margin:20px 4px 7px}
.cursor-tip b{font-weight:500;color:#55758b}
.stage canvas[data-depth-material=clay],.stage canvas[data-depth-material=dye],.stage canvas[data-depth-material=weave],.stage canvas[data-depth-material=cut]{height:390px}
.stage .hint{background:#f8fbfcbb;border-radius:15px;bottom:9px;left:25%;right:25%;padding:3px 6px;font-size:9px;white-space:nowrap}
.stage canvas[data-depth-material=ink]{max-height:650px}
.ink-config+.stage .hint{display:none}
.stage:has([data-depth-material=ink]) .hint{display:none}
.wide-studio{max-width:760px!important;width:min(760px,100%)!important;margin-left:auto!important;margin-right:auto!important}
.wide-studio .stage canvas{max-height:75vh}
.material-grid .tile svg{filter:drop-shadow(0 9px 7px #566f8a25)}
.stage{border:1px solid #dbe6ed}
.stage canvas{user-select:none;-webkit-user-select:none}
.tool-support{min-height:70px}
.tool-support p:first-child{font-size:12px;line-height:1.9;color:#658397}
.tool-support #materialstatus{color:#8fa5b3}
.tools button{touch-action:manipulation}
.brush-desk{margin-bottom:18px;padding-bottom:17px;border-bottom:1px solid #dce8ef}
.brush-desk h3{font-size:13px;margin:0 0 15px}
.brush-desk>label{display:grid;grid-template-columns:1fr auto;gap:8px;margin:12px 0;font-size:12px}
.brush-desk input[type=range]{grid-column:1/-1;width:100%;accent-color:#7fa6ba}
.brush-desk output{font-variant-numeric:tabular-nums;color:#537a95}
.pressure-meter{height:5px;border-radius:10px;background:#dfebf2;overflow:hidden}
.pressure-meter span{display:block;height:100%;width:0;background:#8bb8ce;transition:width .06s}
.tile time{display:block;color:#8198a7;font-size:11px;letter-spacing:.6px;margin-top:8px}
.full-palette{border-top:1px solid #dce7ee;margin-top:17px;padding-top:18px;width:100%}
.full-palette h3{font-size:12px;margin:0;font-weight:500}
.chosen-colour{font-size:10px;display:flex;align-items:center;gap:6px}
.chosen-colour:before{content:'';width:12px;height:12px;border-radius:50%;background:var(--chosen);border:1px solid #9cabb733}
.colour-family{display:flex;align-items:center;gap:12px;margin-top:13px;font-size:10px;color:#8198a7}
.colour-family>div{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;flex:1}
.full-palette .swatch{width:100%;height:auto;aspect-ratio:1;border-radius:50%;min-height:22px;border:2px solid #fff;box-shadow:0 1px 4px #44647a18;position:relative}
.full-palette .swatch.on{outline:1px solid #6489a3;outline-offset:2px;transform:none}
.full-palette .swatch.on:after{content:'✓';color:#fff;text-shadow:0 1px 3px #203c50;position:absolute;inset:0;display:grid;place-items:center;font-size:11px}
.custom-colour{display:flex;gap:8px;align-items:center;margin-top:18px;font-size:10px}
.custom-colour label{display:flex;align-items:center;gap:7px}
.custom-colour input[type=text],.custom-colour input:not([type]){width:88px;border:1px solid #d6e3eb;border-radius:9px;padding:8px;font:11px monospace;background:#fff}
.custom-colour input[type=color]{width:36px;height:32px;border:1px solid #d6e3eb;border-radius:9px;padding:3px;background:#fff;cursor:pointer}
.custom-colour button{padding:9px 12px;border-radius:10px;background:#e2eef6;color:#56758b;font-size:10px}
.recent-colours{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:10px;color:#8198a7}
.recent-colours .swatch{width:22px;min-height:22px;flex:none}
.parameter>.row{justify-content:flex-end}
.textile-config h3,.cut-config h3{font-size:13px;margin:0 0 14px;font-weight:500}
.fabric-shapes,.product-choices{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 16px}
.fabric-shapes button,.product-choices button{flex:1;min-width:49px;border-radius:13px;background:#E4EFF5;padding:10px 5px;font-size:11px;color:#668297;border:1px solid #D1E2EC}
.fabric-shapes button[aria-pressed=true],.product-choices button[aria-pressed=true]{background:linear-gradient(135deg,#B6D5E6,#85AEC6);border-color:#A3C5D9;color:#fff;box-shadow:0 3px 9px #759bb422}
.textile-config details summary{font-size:12px;padding-top:12px;border-top:1px solid #DAE7EF}
.dye-progress{font-size:10px;color:#7894A6;margin:13px 0}
.dip-controls{display:flex;gap:10px;margin:12px 0 18px}
.dip-controls button{flex:1;padding:10px;border:1px solid #C7DEEA;background:#D9EAF4;border-radius:12px;color:#557E98;font-size:11px}
.glue-controls{display:flex;gap:10px;margin:12px 0}
.glue-controls button,.paper-reference-controls button{flex:1;padding:10px;border:1px solid #D2E3EC;background:#F8FBFD;border-radius:12px;color:#557E98;font-size:10px}
.paper-reference-controls{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:16px 0}
.paper-reference-controls button[aria-pressed=true]{background:#ABCADA;color:#fff}
.paper-design-options{display:flex;flex-wrap:wrap;gap:13px;margin:18px 0}
.paper-design-options label{font-size:10px}
.paper-design-options select{padding:8px;font-size:10px}
.sketch-toggle{font-size:10px!important;color:#8CA2B0}
.dye-tools{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.dye-tools button{font-size:10px;min-height:70px}
.dye-tools [data-tool="4"]{order:2}
.dye-tools [data-tool="2"]{order:3}
.dye-tools [data-tool="3"]{order:4}
.weave-tools{grid-template-columns:repeat(3,1fr)}
.fabric-products{background:linear-gradient(145deg,#fff,#EDF5FA);border:1px solid #DCE8F0;border-radius:21px;padding:17px;margin:18px 0;color:#69879C}
.fabric-products summary{cursor:pointer;font-size:12px;line-height:1.8}
.fabric-products .small{font-size:10px}
.gallery-entry{margin:15px 0 20px;display:block;width:100%;font-size:12px;padding:14px;border:1px solid #D1E3EE;background:linear-gradient(130deg,#EFF8FC,#DBEBF4);border-radius:17px;color:#5D819A}
#modal:has(#potgallery){width:min(700px,94vw);max-width:700px;padding:22px;border:1px solid #D7E8F2;background:#F6FAFC}
#potgallery{display:block;width:100%;height:min(55vh,440px);border-radius:22px;touch-action:none;background:#E7F1F7}
.gallery-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;margin:17px 0 4px;font-size:11px}
.gallery-controls button,#closegallery{padding:9px 13px;border-radius:11px;background:#E0EDF5;color:#577E99;font-size:11px}
.gallery-controls label{display:flex;gap:8px;align-items:center}
.gallery-controls input{width:120px;accent-color:#8CB3CB}
.gallery-controls output{font-variant-numeric:tabular-nums;color:#6A8EA6;min-width:32px;text-align:center}
.weave-download{display:block;text-align:center;padding:14px;background:#E6F1F7;border:1px solid #D9E8F1;border-radius:17px;margin:15px 0;text-decoration:none;color:#64889F;font-size:12px}
.savedart.weave-artwork{background:transparent;box-shadow:none;border:0;object-fit:contain}
.finish-preview:has(.weave-artwork){background:transparent;border:0;box-shadow:none}
.finish-preview:has(img[alt="本次创作作品"]){overflow:hidden}
.cut-config label{font-size:12px;display:flex;align-items:center;gap:12px}
.cut-config select{border:1px solid #D6E4ED;background:#fff;border-radius:10px;padding:8px 15px;color:#648296}
.tools button,.pottery-phases button{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;min-height:66px;padding:9px 3px}
.tool-art{filter:drop-shadow(0 2px 2px #51728C25);flex:none}
.reflection-heading{display:flex;gap:13px;align-items:center}
.reflection-heading h2{margin:7px 0}
.reflection-flower{font-size:38px;color:#9BBACF;text-shadow:0 4px 9px #83A2B83A}
.reflection-panel{background:linear-gradient(145deg,#fff,#EFF6FA);margin-top:22px}
.reflection-panel fieldset{border:0;padding:0;margin:22px 0}
.reflection-panel .radio-option{font-size:12px;padding:14px}
.reflection-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}
.reflection-actions button{font-size:11px;min-width:0}
.reflection-actions .secondary{width:auto;padding:11px 16px}
.reflection-boundary{font-size:9px;color:#91A7B5;text-align:right;margin-top:14px}
.reflection-summary h3,.reflection-science h3{font-size:17px;line-height:1.7}
.reflection-summary .summary-line{gap:20px;font-size:11px}
.reflection-summary .summary-line span:last-child{text-align:right}
.reflection-science{margin-top:23px;padding-top:23px;border-top:1px solid #DCE7EE}
.reflection-science h4{font-size:12px;color:#6A8BA0;margin-bottom:8px}
.reflection-science p{font-size:12px;line-height:1.95}
.reflection-science details{font-size:10px;color:#8DA1AF;margin-top:15px}
.reflection-science a{color:#6A8BA0}
.saved-reflection summary{font-size:13px;cursor:pointer}
.day small{font-size:9px!important;min-width:24px!important;right:3px!important;bottom:3px!important}
@media(max-width:360px){.craft-config{padding:13px}
.stage canvas[data-depth-material=clay],.stage canvas[data-depth-material=dye],.stage canvas[data-depth-material=weave],.stage canvas[data-depth-material=cut]{height:350px}
.dimension-row{gap:5px}
.kiln-control{gap:7px}
.pottery-view{gap:8px}
}

.canvas-history{display:flex;gap:8px;justify-content:flex-end;margin:8px 0 14px;position:sticky;bottom:92px;z-index:8;pointer-events:none}.canvas-history button{pointer-events:auto;background:#f5fbffed;border:1px solid #bcd5e4;box-shadow:0 3px 14px #668da524;min-height:42px;padding:8px 16px;border-radius:16px}.tie-directions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:12px 0}.tie-directions button{padding:8px 12px;border-radius:12px;background:#f2f8fb;border:1px solid #c7dde8}.tie-directions button[aria-pressed=true]{background:#c4dfea}.tie-directions p{width:100%;margin:3px 0}.finish-preview.yarn-only,.yarn-only img{background:transparent!important;box-shadow:none!important;border:0!important}
.grouped-shelf{display:block!important}.shelf-day{margin:24px 0 32px}.shelf-day>.row{border-bottom:1px solid #d6e5ec;margin-bottom:14px;padding-bottom:8px}.shelf-day h2{font-size:17px;margin:0}.hole-size-control{display:flex;align-items:center;gap:12px;background:#edf6fa;padding:12px 15px;border-radius:16px;margin-bottom:14px;color:#5d7c90}.hole-size-control input{min-width:80px;flex:1}.hole-size-control output{font-variant-numeric:tabular-nums}.finishing-entry{display:block;width:100%;margin:12px 0 18px;padding:14px}.finishing-dialog{max-width:650px;width:calc(100% - 28px);border:1px solid #d0e3ed;border-radius:26px;padding:22px;background:#f8fbfc}.finishing-dialog canvas{display:block;width:100%;height:min(52vh,470px);border-radius:20px;background:#e8f1f6;touch-action:none}.finish-settings{display:flex;gap:14px;flex-wrap:wrap;margin:15px 0}.finish-settings label{display:flex;flex:1;min-width:120px;flex-direction:column;gap:8px;color:#658397;font-size:13px}.finish-settings select{padding:10px;border:1px solid #c7dce7;border-radius:12px;background:#fff}.finish-settings input[type=color]{width:100%;height:38px;border:0;background:transparent}.canvas-history button:disabled{opacity:.4;box-shadow:none;cursor:not-allowed}
.finishing-dialog #resetfinish{min-width:96px;white-space:nowrap;flex-shrink:0}.product-detail-controls{border-top:1px solid #d3e4ec;padding-top:14px;margin-top:14px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.product-detail-controls label{flex:1;min-width:150px;font-size:12px;color:#668397}.product-detail-controls input{width:100%;margin-top:8px}.product-detail-controls button{padding:10px;border-radius:12px;background:#e4eff4;color:#607e91}.product-detail-controls p{width:100%;margin:0}.grouped-shelf>.shelf-day>.grid .tile{min-width:0}
canvas{cursor:default!important}
.knowledge-deck{border:1px solid #d4e3eb;border-radius:28px;padding:28px;background:linear-gradient(145deg,#fcfdff,#e1eff6);margin:22px 0;box-shadow:0 12px 36px #85a5bd16}.knowledge-star{font-size:48px;color:#90b6cc;display:block;margin-bottom:12px}.knowledge-deck h1{font-size:25px;line-height:1.5;margin:14px 0}.knowledge-deck p{font-size:14px;line-height:1.9}.knowledge-deck h3{font-size:13px;color:#6c8b9e;margin-top:23px}.card-reveal{animation:knowledge-reveal .55s cubic-bezier(.16,1,.3,1)}@keyframes knowledge-reveal{from{opacity:.2;transform:translateY(22px) rotateY(-14deg)}to{opacity:1;transform:none}}.personal-rack{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;align-items:end;gap:9px!important;padding:0 23px 3px;touch-action:pan-x}.personal-object{flex:0 0 31%;min-width:110px;height:139px;scroll-snap-align:center;background:none;border:0;padding:0;color:#6c8797;user-select:none}.personal-object img{width:100%;height:111px;object-fit:contain;pointer-events:none;mix-blend-mode:multiply;border-radius:17px}.personal-object span{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0}.personal-arrows{position:absolute;left:0;right:0;bottom:80px;display:flex;justify-content:space-between;pointer-events:none;z-index:4}.personal-arrows button{pointer-events:auto;width:28px;height:36px;background:#ffffffbf;border:1px solid #d9e7ee;border-radius:14px;color:#7394a8;font-size:25px;padding:0}.personal-empty{width:100%;min-width:100%;text-align:center;color:#7e9aab;font-size:12px;align-self:center;background:#f4f9fbbd;padding:18px;border-radius:20px}.personal-empty button{display:block;margin:10px auto 0;padding:8px 16px;background:#c6deeb;border-radius:14px;color:#57768c}.bloom-palette{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.bloom-palette button{border:1px solid #c9dde8;border-radius:14px;padding:8px 12px;background:#f1f7fa;color:#628398}.floral-edit{padding:12px;background:#e9f2f6;border-radius:16px;margin:12px 0}.floral-edit .row{flex-wrap:wrap}.floral-edit label{font-size:12px;color:#6c8797;flex:1;min-width:110px}.floral-edit input{width:100%}.floral-edit button{padding:8px 12px;border-radius:12px;background:#d1e4ee;color:#59798f}.finishing-dialog{max-height:94vh;overflow-y:auto}
.personal-object,.personal-object:hover,.personal-object:focus-visible{border:0!important;box-shadow:none!important;background:transparent!important}.personal-object canvas{display:block;width:100%!important;height:111px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;pointer-events:none}.personal-object img{border:0!important;background:transparent!important;box-shadow:none!important}
