.smp-surface{margin:20px 0;padding:22px;background:#fff;border:1px solid #d9d4cd;border-radius:18px;color:#282725;min-width:0}.smp-surface header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.smp-surface h2{margin:5px 0 16px;font-size:23px}.smp-surface small,.smp-dialog-head small{font-size:11px;letter-spacing:.12em;color:#6b655e}.smp-idea-row{display:flex;gap:16px;overflow-x:auto;padding:6px 2px 16px;scroll-snap-type:x proximity}.smp-idea{flex:0 0 210px;display:flex;flex-direction:column;text-align:left;background:#f7f5f2;border:1px solid #d9d4cd;border-radius:13px;overflow:hidden;padding:0;scroll-snap-align:start;color:#282725}.smp-idea img{width:100%;aspect-ratio:4/5;object-fit:cover}.smp-idea>span,.smp-idea>strong,.smp-idea>small{padding:0 13px}.smp-idea>span{margin-top:12px;font-size:12px;color:#353330}.smp-idea>strong{margin:5px 0;font-size:16px}.smp-idea>small{margin:5px 0 15px;letter-spacing:0}.smp-dialog{box-sizing:border-box;width:min(940px,calc(100vw - 32px));max-width:940px;height:auto;max-height:92dvh;padding:0;border:1px solid #d9d4cd;border-radius:20px;background:#fff;color:#282725;box-shadow:0 24px 100px #28272540;overflow:auto}.smp-dialog::backdrop{background:#28272580;backdrop-filter:blur(3px)}.smp-dialog *{box-sizing:border-box;min-width:0}.smp-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:18px 22px;border-bottom:1px solid #e4dfd8}.smp-dialog-head h2{font-size:21px;margin:4px 0;overflow-wrap:anywhere}.smp-dialog-head>div:last-child{display:flex;gap:6px;flex-shrink:0}.smp-dialog-body{padding:22px;display:block}.smp-dialog label,.smp-surface label{display:block;font-weight:600;margin:16px 0 8px}.smp-dialog label>span{font-weight:400;color:#6b655e}.smp-dialog textarea,.smp-dialog input:not([type=checkbox]),.smp-surface textarea,.smp-surface input,.smp-surface select{display:block;width:100%;max-width:100%;border:1px solid #b8b0a6;border-radius:10px;background:#fff;color:#282725;font:inherit;padding:12px;margin-top:7px}.smp-dialog textarea{resize:vertical;line-height:1.5}.smp-dialog button,.smp-surface button,[data-smp-product]{min-height:44px;border:1px solid #c9c1b7;border-radius:10px;padding:10px 15px;background:#f7f5f2;color:#282725;font:inherit;font-weight:600;cursor:pointer}.smp-dialog button:disabled,.smp-surface button:disabled{opacity:.5;cursor:default}.smp-dialog button.smp-primary,.smp-surface button.smp-primary{background:#353330;color:#fff;border-color:#353330}.smp-dialog :focus-visible,.smp-surface :focus-visible,.smp-dock:focus-visible{outline:3px solid #8c7a63;outline-offset:3px}.smp-dialog .smp-fine{font-size:13px;color:#6b655e;line-height:1.5}.smp-actions,.smp-format-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.smp-format-tabs button[aria-pressed=true]{background:#282725;color:#fff}.smp-template-preview{display:block;width:min(290px,100%);border-radius:12px;margin:0 auto 20px}.smp-result-images{max-width:460px;margin:0 auto}.smp-result-images figure[hidden]{display:none!important}.smp-result-images canvas{max-width:100%;height:auto}.smp-result-images>p{font-size:13px}.smp-product-name{font-size:19px;font-weight:700}.smp-dock{position:fixed;bottom:22px;right:22px;z-index:20000;max-width:calc(100vw - 32px);padding:15px 20px;min-height:48px;border:1px solid #fff;border-radius:30px;background:#353330;color:white;font:600 15px system-ui;box-shadow:0 6px 30px #28272540}.smp-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.smp-filter label{flex:1;min-width:150px}.smp-saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:14px;margin:20px 0}.smp-saved{display:flex;flex-direction:column;gap:8px;text-align:left;overflow-wrap:anywhere}.smp-saved p{font-weight:400;line-height:1.45}.smp-toggle{display:flex!important;align-items:center;gap:12px;min-height:44px}.smp-toggle input{width:20px;height:20px;flex:0 0 20px}.smp-surface details{margin-top:15px}.smp-product-entry{margin:16px auto;max-width:1100px;padding:0 20px}.smp-job-state{padding:12px;background:#f2efea;border-radius:10px}.smp-dialog [role=alert]{color:#9c3419;background:#fff4ef;padding:12px;border-radius:10px}.smp-surface form{max-width:700px}.smp-dialog [role=status]{white-space:pre-wrap;overflow-wrap:anywhere}.smp-dialog hr{border:0;border-top:1px solid #d9d4cd;margin:22px 0}@media(max-width:600px){.smp-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.smp-dialog-head{padding:14px 16px}.smp-dialog-body{padding:16px}.smp-dialog-head h2{font-size:18px}.smp-surface{padding:16px;margin:14px 0}.smp-idea{flex-basis:180px}.smp-dock{right:16px;bottom:16px}.smp-actions>*{flex:1 1 140px}.smp-surface header>div:last-child{display:flex;gap:12px;align-items:center}}

[data-smp-pos-entry][hidden]{display:none!important}

.smp-surface a,.smp-dialog a{color:#353330}.smp-toggle input{accent-color:#353330}
