:root{--ink:#203d42;--muted:#7a898b;--line:#e4e9e6;--paper:#f6f7f3;--teal:#167b70;--deep:#123e45;--mint:#e8f3ed;--orange:#d38c53;--shadow:0 5px 25px #203d4204;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-size:14px}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9ccabb;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}a{text-decoration:none;color:inherit}.site-header{height:82px;padding:0 4.1%;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#fcfdf9}.brand{display:flex;align-items:center;gap:13px;font-size:18px;font-weight:700;letter-spacing:.4px}.brand strong{font-size:16px;font-weight:500}.brand-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:var(--deep);color:#d7e7c9;font-size:30px;line-height:1}.brand-separator{color:#bcc8c5;padding:0 14px;font-weight:400}.header-right{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.local-dot{width:6px;height:6px;background:#579d80;border-radius:50%}.icon-button{border:1px solid var(--line);background:transparent;border-radius:50%;width:28px;height:28px;font-size:16px;display:inline-grid;place-items:center}.header-right .icon-button{margin-left:18px}main{max-width:1536px;margin:0 auto;padding:0 4.1%}.intro{display:flex;justify-content:space-between;align-items:center;padding:38px 0 32px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8b9894;margin-bottom:12px;font-weight:600}h1{font-size:32px;letter-spacing:-.9px;margin:0 0 12px;font-weight:650}h1 span{color:var(--teal)}.intro p{margin:0;font-size:13px;color:var(--muted)}.secondary{border:1px solid #d6dfd9;background:#fff;padding:11px 17px;border-radius:9px;font-size:12px;white-space:nowrap}.secondary:hover{background:#edf3ee}.intro .secondary span{color:var(--teal);margin-right:5px}.workspace{display:grid;grid-template-columns:290px minmax(370px,1fr) 286px;gap:20px;align-items:start}.panel{border:1px solid var(--line);background:#fff;border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.panel-heading>div{display:flex;align-items:center;gap:9px}.panel-heading h2{font-size:15px;margin:0;font-weight:650;letter-spacing:.2px}.step-dot{font-size:10px;color:#7e9290;border:1px solid #dce5df;border-radius:6px;padding:3px 4px;line-height:1.3}.inventory-panel{padding:23px 19px 0}.text-button{border:0;background:none;color:#82908d;font-size:11px;padding:4px 0}.text-button:hover{color:var(--teal)}.panel-hint{font-size:11px;color:var(--muted);margin:13px 0 18px}.search-wrap{display:flex;align-items:center;gap:8px;background:#f7f9f6;border:1px solid #e9ede7;border-radius:8px;padding:0 11px}.search-wrap>span{font-size:22px;color:#98a49c}.search-wrap input{min-width:0;width:100%;border:0;background:none;padding:11px 0;font-size:11px;outline:none;color:var(--ink)}input::placeholder{color:#a0aaa3}.filter-tabs{display:flex;padding:17px 0 11px;gap:6px;border-bottom:1px solid #edf0ea;margin-bottom:6px}.filter-tabs button{border:0;font-size:11px;background:none;padding:6px 10px;color:#8b9690;border-radius:6px;white-space:nowrap}.filter-tabs button.active{background:#eaf3ec;color:#30765f}.filter-tabs span{font-size:9px;margin-left:2px}.shape-list{max-height:453px;min-height:330px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#dbe4db transparent;padding-right:3px}.shape-item{display:flex;align-items:center;gap:9px;min-height:68px;padding:8px 0;border-bottom:1px solid #f0f2ed}.shape-item.has-count .shape-name{color:var(--deep);font-weight:600}.shape-preview{display:grid;grid-template-columns:repeat(var(--w),8px);grid-template-rows:repeat(var(--h),8px);gap:2px;flex-shrink:0}.shape-mini-wrap{width:47px;min-height:38px;display:grid;place-items:center;background:#f6f8f3;border-radius:7px}.mini-cell{background:var(--shape-color,#7ba79a);border-radius:1px;box-shadow:inset 0 -1px 0 #00000012}.shape-name{font-size:11px;line-height:1.6;flex:1;min-width:0}.shape-name small{display:block;font-size:9px;color:#99a29a;font-weight:400}.quantity{display:flex;align-items:center;gap:3px}.quantity button{border:1px solid #e6eae3;border-radius:5px;width:23px;height:24px;background:#fff;font-size:15px;padding:0;color:#8b968d}.quantity button:hover{background:#edf5ef;color:var(--teal)}.quantity input{width:23px;padding:0;text-align:center;border:0;color:var(--ink);background:transparent;font-size:12px;appearance:textfield;-moz-appearance:textfield}.quantity input::-webkit-inner-spin-button{appearance:none}.delete-custom{background:none;border:0;color:#9a8170;padding:0;font-size:13px}.add-shape{border:1px dashed #d5ded1;border-radius:8px;background:#fff;width:100%;padding:11px 0;color:#708676;font-size:11px;margin:14px 0 16px}.add-shape:hover{background:#f5f9f2}.inventory-footer{background:#f9faf6;display:flex;justify-content:space-between;font-size:11px;color:#8a968c;margin:0 -19px;padding:17px 19px;border-top:1px solid var(--line)}.inventory-footer strong{color:#486b59;font-size:13px;margin:0 3px}.board-panel{padding:23px 26px 20px}.rule-badge{font-size:10px;color:#779087;background:#f1f6f0;border:1px solid #e3ebe0;padding:5px 8px;border-radius:5px}.board-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:24px 0 19px}.size-controls{display:flex;align-items:center;gap:8px;color:#92a297;font-size:11px}.size-controls label{display:flex;align-items:center;gap:6px;color:#829188}.size-controls select{border:1px solid #e1e7df;border-radius:6px;background:#fff;color:#486454;padding:5px 4px;min-width:42px;font-size:12px}.tool-button{border:1px solid #e1e7df;background:#fff;border-radius:6px;padding:7px 9px;font-size:10px;color:#7a8d7c}.tool-button.active{background:#fff2de;border-color:#e8c58b;color:#a57c38}.board-stage{margin:0 auto;max-width:460px}.column-labels{display:grid;grid-template-columns:repeat(var(--cols),1fr);margin-left:21px;margin-bottom:8px;text-align:center;font-size:9px;color:#94a59c}.board-with-rows{display:flex;align-items:stretch;gap:8px}.row-labels{display:grid;grid-template-rows:repeat(var(--rows),1fr);align-items:center;width:13px;flex-shrink:0;text-align:center;font-size:9px;color:#94a59c}.board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));aspect-ratio:var(--ratio);width:100%;padding:6px;border:1px solid #c9d8c3;border-radius:10px;background:#dfe8d8;gap:3px;box-shadow:0 4px 0 #cfdbc6,0 12px 25px #536b4a09;position:relative}.board-cell{position:relative;border:0;border-radius:4px;min-width:0;min-height:0;background:#f0f3e9;box-shadow:inset 0 1px 2px #fff8;color:#254d44;display:grid;place-items:center;padding:0;font-size:clamp(9px,1.2vw,14px);font-weight:650;transition:opacity .15s,background .15s}.board-cell:not(.filled):not(.blocked):hover{background:#e5eede}.board.block-mode .board-cell{cursor:crosshair}.board-cell.blocked{background:repeating-linear-gradient(135deg,#bec9b5,#bec9b5 4px,#cbd4c4 4px,#cbd4c4 8px);box-shadow:none;color:#7c8975}.board-cell.filled{background:var(--piece-color);box-shadow:inset 0 1px 0 #fff5,inset 0 -2px 0 #00000012;border:1px solid #00000008}.board-cell.filled.dimmed{opacity:.25}.board-cell.filled.selected{box-shadow:inset 0 0 0 2px #294d43,0 0 8px #23443625;z-index:1}.board-cell.future{opacity:.1}.board-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#98a18f;margin:18px 0 24px}.board-caption>span{display:flex;align-items:center;gap:6px}.legend-square{width:7px;height:7px;background:#dfe8d8;border:1px solid #ccd8c2;border-radius:2px}.solve-area{border-top:1px solid #edf0e8;padding-top:22px}.primary{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--deep);border:0;color:#fff;border-radius:9px;padding:14px 17px;font-size:13px;font-weight:550}.primary:hover{background:#20545a}.solve-area .primary{width:100%;position:relative}.primary>span:first-child{color:#b9d5af;font-size:19px;line-height:1}.button-arrow{position:absolute;right:18px;font-size:18px;color:#a4bdb7}.solve-note{text-align:center;font-size:10px;color:#a0aa9b;line-height:1.7;margin-top:12px}.right-column{display:flex;flex-direction:column;gap:18px}.result-panel{padding:23px 19px 18px}.status-badge{font-size:9px;border-radius:20px;padding:4px 8px;background:#f3f5ef;color:#96a28e}.status-badge.ready{background:#e8f4e9;color:#4b8967}.coverage{display:flex;align-items:center;gap:7px;margin:27px 0 23px}.coverage>span:first-child{font-size:49px;font-weight:650;letter-spacing:-2px;line-height:1}.coverage-unit{font-size:21px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:3px;padding-top:2px}.coverage-unit small{font-size:9px;color:#8b9d8e;white-space:nowrap}.coverage svg{margin-left:auto;width:60px;height:60px;transform:rotate(-90deg)}.coverage circle{fill:none;stroke-width:4;stroke:#dbe9da}.coverage #coverageRing{stroke:#5a9779;stroke-linecap:round;stroke-dasharray:175.93;stroke-dashoffset:175.93;transition:stroke-dashoffset .6s}.result-stats{display:grid;grid-template-columns:1fr 1fr 1.25fr;margin-bottom:22px}.result-stats>div{display:flex;flex-direction:column;gap:7px;align-items:center;border-right:1px solid #eaf0e5}.result-stats>div:first-child{align-items:flex-start}.result-stats>div:last-child{border:0;align-items:flex-end}.result-stats strong{font-size:16px;font-weight:600}.result-stats span{font-size:9px;color:#94a18f}.result-message{font-size:11px;color:#91a08e;line-height:1.9;background:#f7f9f3;padding:14px;border-radius:8px}.result-message.success{color:#54795f;background:#edf6eb}.placement-list{display:flex;flex-direction:column;gap:7px;max-height:255px;overflow-y:auto;scrollbar-width:thin;margin-top:12px}.placement-item{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #e8ede3;background:#fff;border-radius:7px;text-align:left;width:100%;font-size:10px}.placement-item.active{border-color:#82b29c;background:#f0f7ee}.placement-number{display:grid;place-items:center;min-width:24px;height:24px;background:var(--piece-color);border-radius:5px;font-weight:650;color:#315549}.placement-detail{display:flex;flex-direction:column;gap:3px}.placement-detail small{color:#98a38f;font-size:9px}.placement-item .shape-preview{margin-left:auto;transform:scale(.65);transform-origin:center}.step-controls{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#87987e;margin-top:14px}.step-controls[hidden]{display:none}.step-controls button{border:1px solid #e1e8dc;background:#fff;width:29px;height:27px;border-radius:5px}.tip-card{border:1px solid #e4e8d8;border-radius:13px;padding:21px 20px;background:#f0f3e8;position:relative}.tip-icon{color:#92a581;font-size:24px;line-height:1}.tip-card h3{font-size:13px;font-weight:600;margin:10px 0}.tip-card p{font-size:11px;line-height:1.9;color:#8c987f;margin:0 0 19px}.reference-button{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#6e8664;background:transparent;border:0;border-top:1px solid #dbe2cc;padding:14px 0 0;width:100%}.reference-button span{font-size:15px}#referencePreview{margin-top:15px}#referenceImage{display:block;width:100%;border-radius:7px}.privacy-note{font-size:10px;line-height:1.9;color:#9ba592;padding:0 12px}.privacy-note>span:first-child{font-size:14px;margin-right:7px}.privacy-indent{padding-left:21px}footer{display:flex;justify-content:space-between;font-size:10px;color:#a3aa9c;padding:27px 0 23px}footer>div{display:flex;gap:12px}footer button{border:0;padding:0;background:none;font-size:10px;color:#8c9c87}dialog{border:1px solid var(--line);border-radius:17px;padding:27px;width:min(470px,calc(100% - 32px));box-shadow:0 20px 100px #0c302b30;color:var(--ink)}dialog::backdrop{background:#17382c66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:19px;margin:0}dialog p{font-size:12px;line-height:1.9;color:var(--muted)}.field-label{display:flex;flex-direction:column;gap:8px;font-size:12px}.field-label input{padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fafbf7;color:var(--ink)}.custom-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;width:230px;margin:23px auto}.custom-grid button{aspect-ratio:1;border-radius:5px;background:#edf1e7;border:1px solid #dce5d5}.custom-grid button.on{background:#7eaf99;border-color:#5e9680}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.dialog-actions .primary{font-size:12px;padding:11px 17px}.error-text{color:#b67750;margin-bottom:0}.help-list{padding-left:23px;margin:26px 0}.help-list li{padding-left:7px;margin-bottom:18px;font-size:13px}.help-list p{margin:6px 0}.help-note{background:#f5f7ee;padding:12px;border-radius:7px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);background:var(--deep);color:#fff;border-radius:9px;padding:12px 21px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;max-width:90vw;z-index:5;box-shadow:0 5px 30px #123e4520}.toast.show{opacity:1;transform:translate(-50%,0)}.empty-list{font-size:11px;color:#97a391;text-align:center;padding:50px 0}.loading{animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.55}}@media(min-width:1450px){.workspace{grid-template-columns:310px minmax(400px,1fr) 310px}.shape-list{max-height:475px}}@media(max-width:1170px){.workspace{grid-template-columns:260px minmax(340px,1fr);gap:18px}.right-column{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.result-panel{grid-row:span 2}.privacy-note{align-self:start}.board-panel{padding-left:22px;padding-right:22px}.board-stage{max-width:430px}.shape-list{max-height:420px}.placement-list{max-height:170px}.intro{padding-top:30px}h1{font-size:29px}}@media(max-width:720px){.site-header{height:66px;padding:0 20px}.brand{font-size:15px;gap:9px}.brand strong{font-size:13px}.brand-separator{padding:0 7px}.brand-icon{width:31px;height:31px;font-size:26px}.header-right{font-size:0;gap:0}.header-right .local-dot{display:none}.header-right .icon-button{font-size:14px;margin-left:0}main{padding:0 17px}.intro{padding:27px 0 24px;gap:10px;align-items:flex-end}.eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:10px}h1{font-size:24px;line-height:1.5;letter-spacing:-1px;margin-bottom:6px}h1 span{display:block}.intro p{font-size:10px}.intro .secondary{padding:9px 10px;font-size:10px;margin-bottom:2px}.workspace{display:flex;flex-direction:column;gap:17px}.inventory-panel{width:100%;padding-top:19px;order:0}.shape-list{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;max-height:240px;min-height:140px}.shape-item{min-height:64px;gap:5px}.shape-name{font-size:10px}.shape-name small{font-size:8px}.shape-mini-wrap{width:36px}.shape-preview{grid-template-columns:repeat(var(--w),6px);grid-template-rows:repeat(var(--h),6px)}.quantity{gap:0}.quantity button{width:21px}.quantity input{width:19px}.board-panel{width:100%;order:1;padding:20px 19px}.board-stage{max-width:450px}.board-cell{font-size:13px}.right-column{width:100%;display:flex;order:2;gap:15px}.result-panel{padding:20px}.coverage{margin:22px 0}.coverage svg{margin-right:10px}.result-stats{margin-bottom:17px}.placement-list{display:grid;grid-template-columns:1fr 1fr;max-height:230px}.placement-detail{font-size:9px}.placement-item{padding:8px 6px;gap:6px}.placement-item .shape-preview{display:none}.tip-card{padding:18px 20px}.privacy-note{font-size:10px}footer{font-size:8px;gap:10px;line-height:1.7;align-items:flex-start}footer>div{flex-shrink:0;gap:8px}footer button{font-size:9px}.panel-hint{margin:10px 0 13px}.add-shape{margin:12px 0}.filter-tabs{padding-top:11px}.inventory-footer{padding-top:12px;padding-bottom:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.footer-credit{display:flex;align-items:center;flex-wrap:wrap;gap:7px 16px}.author-credit{white-space:nowrap;color:#84917c}.author-credit strong{font-weight:600;color:#547657}@media(max-width:720px){.footer-credit{gap:4px 10px}.author-credit{font-size:10px}}
