:root{--bg: #f5f6f8;--surface: #ffffff;--surface-2: #fafbfc;--border: #e6e8ec;--border-strong: #d3d7de;--text: #16181d;--muted: #6b7280;--accent: #e8590c;--accent-hover: #cf4f0a;--accent-soft: #fff4e8;--accent-ring: rgba(232, 89, 12, .25);--danger: #d92d20;--danger-soft: #fef3f2;--radius: 16px;--radius-sm: 10px;--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);--shadow-md: 0 6px 20px rgba(16, 24, 40, .08);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;color:var(--text);background-color:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body{height:100%}body{margin:0;min-width:320px;background:var(--bg)}h1,h2,h3,p{margin:0}button{font:inherit;cursor:pointer}input,select{font:inherit}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.app{min-height:100%;display:flex;flex-direction:column}.header{width:100%;max-width:1120px;margin:0 auto;padding:28px 24px 14px}.brand{display:flex;align-items:center;gap:14px}.brand__logo{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:13px;background:linear-gradient(150deg,#ff9f45,var(--accent));box-shadow:var(--shadow-sm)}.brand__logo svg{width:26px;height:26px;display:block}.brand__title{font-size:21px;font-weight:700;letter-spacing:-.01em}.brand__subtitle{font-size:13.5px;color:var(--muted)}.main{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:8px 24px 40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}@media(max-width:900px){.main{grid-template-columns:minmax(0,1fr)}}.col{display:flex;flex-direction:column;gap:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:22px}.card__title{font-size:15px;font-weight:600}.card__hint{font-size:13px;color:var(--muted);margin-top:3px;margin-bottom:16px}.mode{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.mode__btn{padding:10px 14px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.mode__btn:hover{border-color:var(--accent)}.mode__btn--active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.grille-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.grille-options__field{display:grid;gap:6px;font-size:13px;color:var(--muted)}.grille-options__field select{width:100%;padding:10px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;font-size:14px}.grille-options__field select:focus{outline:none;border-color:var(--accent)}.grille-options__check{grid-column:1 / -1;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);cursor:pointer}.grille-options__check input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}.grille-options__check input:disabled{cursor:not-allowed;opacity:.5}.dropzone{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:30px 20px;border:1.5px dashed var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-2);transition:border-color .15s ease,background .15s ease;cursor:pointer}.dropzone:hover{border-color:var(--accent)}.dropzone--active{border-color:var(--accent);background:var(--accent-soft)}.dropzone__icon{color:var(--accent);margin-bottom:4px}.dropzone__icon svg{width:30px;height:30px;display:block}.dropzone__title{font-weight:600;font-size:14.5px}.dropzone__hint{font-size:12.5px;color:var(--muted)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.file{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.file__thumb{width:54px;height:54px;flex:none;border-radius:9px;object-fit:cover;border:1px solid var(--border);background:#fff}.file__icon{width:54px;height:54px;flex:none;border-radius:9px;display:grid;place-items:center;border:1px solid var(--border);background:#fff;color:var(--accent);font-weight:700;font-size:12px}.file__meta{flex:1;min-width:0}.file__name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file__size{font-size:12.5px;color:var(--muted)}.slider{margin-top:18px;display:flex;align-items:center;gap:14px}.slider__input{flex:1;appearance:none;height:4px;border-radius:999px;background:var(--border-strong);outline:none}.slider__input::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border-radius:50%;background:var(--accent);border:2px solid #fff;box-shadow:0 1px 4px #00000040;cursor:pointer}.slider__input::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--accent);border:2px solid #fff;cursor:pointer}.slider__value{min-width:62px;text-align:right;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.actions{display:grid;gap:10px;margin-top:20px}.actions__row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:var(--radius-sm);border:1px solid transparent;font-size:14.5px;font-weight:600;text-decoration:none;transition:background .15s ease,border-color .15s ease,opacity .15s ease}.btn:disabled{opacity:.55;cursor:not-allowed}.btn--primary{background:var(--accent);color:#fff}.btn--primary:hover:not(:disabled){background:var(--accent-hover)}.btn--ghost{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.btn--ghost:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.spinner{width:15px;height:15px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.alert{margin-top:16px;padding:12px 14px;border-radius:var(--radius-sm);border:1px solid #fda29b;background:var(--danger-soft);color:var(--danger);font-size:13.5px}.feedback{display:grid;gap:8px}.feedback__input{width:100%;padding:11px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);font:inherit;font-size:14px;color:var(--text)}.feedback__input:focus{outline:none;border-color:var(--accent)}.feedback__input--area{resize:vertical;min-height:92px}.feedback__trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}.feedback__status{font-size:13.5px;color:var(--muted)}.limits{margin-top:16px;padding:10px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);font-size:13.5px;color:var(--muted)}.limits--ok{border-color:#a6f4c5;background:#ecfdf3;color:#027a48}.support{margin-top:16px;display:grid;gap:10px;padding:14px;border-radius:var(--radius-sm);border:1px solid var(--accent-ring);background:var(--accent-soft)}.support__text{font-size:13.5px;color:var(--text)}.support__link{margin-top:16px}.promo{display:flex;gap:8px}.promo__input{flex:1;min-width:0;padding:11px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);font-size:14px}.promo__input:focus{outline:none;border-color:var(--accent)}.preview{display:grid;place-items:center;min-height:320px;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fbfbfc;padding:16px}.preview__img{max-width:100%;max-height:420px;display:block}.grille-editor__wrap{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}.grille-editor{width:100%;max-width:420px;display:block;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}.grille-editor:active{cursor:grabbing}.grille-editor--draw{cursor:crosshair}.grille-editor--erase{cursor:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cg%20transform='rotate(-45%2012%2012)'%3E%3Crect%20x='4'%20y='9'%20width='16'%20height='7'%20rx='1.5'%20fill='%23f6b7ba'%20stroke='%23333333'/%3E%3Crect%20x='4'%20y='9'%20width='5'%20height='7'%20rx='1.5'%20fill='%23e5484d'%20stroke='%23333333'/%3E%3C/g%3E%3C/svg%3E") 12 12,crosshair}.grille-editor--draw:active{cursor:crosshair}.grille-editor--erase:active{cursor:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cg%20transform='rotate(-45%2012%2012)'%3E%3Crect%20x='4'%20y='9'%20width='16'%20height='7'%20rx='1.5'%20fill='%23f6b7ba'%20stroke='%23333333'/%3E%3Crect%20x='4'%20y='9'%20width='5'%20height='7'%20rx='1.5'%20fill='%23e5484d'%20stroke='%23333333'/%3E%3C/g%3E%3C/svg%3E") 12 12,crosshair}.grille-editor--fill,.grille-editor--fill:active{cursor:crosshair}.grille-editor--stacked{width:auto;max-width:100%;height:560px}.grille-editor__frame{fill:#cfd4dc}.grille-editor__cut{fill:#fbfbfc}.grille-editor__art{fill:var(--accent);opacity:.92;pointer-events:none}.grille-editor__bridge{fill:none;stroke:var(--accent);opacity:.95}.grille-editor__outline{fill:none;stroke:#9aa1ab;stroke-width:.8;pointer-events:none}.grille-editor__tools{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.grille-editor__toggle{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#4b5563;cursor:pointer}.grille-editor__toggle select{padding:4px 6px;font-size:13px;border-radius:6px;border:1px solid #d0d4da;background:#fff;color:#1f2430}.grille-editor__wrap--full{position:fixed;inset:0;z-index:1000;padding:16px;background:#fbfbfc;overflow:hidden}.grille-editor__wrap--full .grille-editor{width:100%;max-width:none;height:100%;flex:1 1 auto;min-height:0}.grille-editor__reset{padding:8px 14px;font-size:13px}.viewer3d{width:100%;height:380px;border-radius:var(--radius-sm);overflow:hidden;cursor:grab}.preview__empty{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted);text-align:center;font-size:13.5px}.preview__empty svg{width:40px;height:40px;color:var(--border-strong)}.preview__loading{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13.5px}.legend{margin-top:16px;display:grid;gap:10px}.legend__item{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.legend__badge{width:10px;height:10px;flex:none;border-radius:3px}.legend__badge--cutter{background:#b8bcc4}.legend__badge--stamp{background:var(--accent)}.guide{width:100%;max-width:1120px;margin:8px auto 0;padding:0 24px}.guide__title{font-size:22px;font-weight:700;letter-spacing:-.01em;margin-bottom:10px}.guide__lead{font-size:14px;color:var(--muted);max-width:820px;margin-bottom:10px}.guide__lead code{background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:1px 6px;font-size:13px;color:var(--text)}.guide__list{margin:0 0 12px;padding-left:20px;max-width:820px;display:grid;gap:6px}.guide__list li{font-size:14px}.guide__toggle{margin-top:4px}.prompt{margin-top:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);overflow:hidden}.prompt__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--surface-2)}.prompt__hint{font-size:13px;color:var(--muted)}.prompt__code{margin:0;padding:14px;max-height:420px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.55;color:var(--text);white-space:pre-wrap;word-break:break-word}.seo{width:100%;max-width:1120px;margin:24px auto 0;padding:0 24px 24px}.seo h1{font-size:24px;font-weight:700;letter-spacing:-.01em;margin-bottom:10px}.seo h2{font-size:18px;font-weight:700;margin:20px 0 8px}.seo h3{font-size:15px;font-weight:600;margin:14px 0 4px}.seo p{font-size:14px;color:var(--muted);max-width:760px;margin-bottom:8px}.seo__steps{margin:0 0 10px;padding-left:22px;display:grid;gap:4px}.seo__steps li{font-size:14px;color:var(--muted);max-width:760px}.footer{width:100%;max-width:1120px;margin:0 auto;padding:0 24px 28px;font-size:12.5px;color:var(--muted)}
