html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}:root{color-scheme:light;font-family:Avenir Next,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#1b1a17;background:radial-gradient(circle at top left,rgba(250,205,128,.55),transparent 28%),radial-gradient(circle at top right,rgba(97,154,210,.35),transparent 24%),linear-gradient(180deg,#f6efe3,#f2e8da 48%,#ece4d8);--surface: rgba(255, 249, 241, .92);--surface-strong: #fff8ef;--surface-quiet: rgba(246, 238, 224, .88);--border: rgba(75, 63, 45, .14);--text-muted: #6e6253;--accent: #2b8cc4;--accent-strong: #17648d;--warm: #ef9f45;--shadow: 0 24px 60px rgba(86, 67, 31, .12)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer}img{display:block;max-width:100%}#root{min-height:100vh;min-height:100dvh}.app-shell{min-height:100vh;min-height:100dvh;padding:28px 28px max(28px,env(safe-area-inset-bottom) + 28px)}.page-drop-overlay{position:fixed;top:18px;right:18px;bottom:18px;left:18px;z-index:30;display:grid;place-items:center;pointer-events:none;border-radius:30px;background:linear-gradient(180deg,#1b1a1724,#17648d29),#f6efe3b8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.page-drop-card{display:flex;flex-direction:column;gap:10px;max-width:420px;padding:24px 26px;border:2px dashed rgba(23,100,141,.34);border-radius:26px;background:#fff9f1f0;box-shadow:0 24px 60px #17648d24;text-align:center}.page-drop-card strong{font-size:1.22rem;color:#1b1a17}.page-drop-card p{margin:0;color:var(--text-muted);line-height:1.55}.shell-busy-overlay{position:fixed;top:18px;right:18px;bottom:18px;left:18px;z-index:26;display:grid;place-items:center;background:linear-gradient(180deg,#1b1a171f,#17648d1f),#f6efe385;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.shell-busy-card{display:flex;flex-direction:column;gap:8px;min-width:min(420px,calc(100vw - 64px));max-width:460px;padding:24px 26px;border:1px solid rgba(23,100,141,.16);border-radius:26px;background:#fff9f1f5;box-shadow:0 24px 60px #56431f24;text-align:center}.shell-busy-card strong{font-size:1.06rem}.shell-busy-card p{margin:0;color:var(--text-muted)}.top-bar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;align-items:center;margin:0 auto 28px;max-width:1360px}.brand-title{margin:0;font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.02}.step-pills{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.header-side{display:flex;flex-direction:column;gap:12px;align-items:flex-end;max-width:100%}.locale-switcher{display:inline-flex;align-items:center;gap:12px;padding:2px 0}.locale-button{border:none;position:relative;min-width:0;padding:4px 0;background:transparent;color:var(--text-muted);font-weight:600;font-size:.94rem;line-height:1;letter-spacing:.01em;transition:color .14s ease,opacity .14s ease}.locale-divider{width:1px;height:14px;background:#4b3f2d3d}.locale-button:hover,.locale-button.active{color:#1b1a17}.locale-button.active:after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:2px;border-radius:999px;background:#1b1a17}.step-pill{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border);border-radius:999px;padding:10px 16px;background:#fffcf7a8;color:var(--text-muted);white-space:nowrap;font:inherit;cursor:pointer;transition:background .14s ease,color .14s ease,border-color .14s ease,opacity .14s ease}.step-pill:not(:disabled):hover{border-color:#1b1a172e;background:#fffcf7e6;color:#1b1a17}.step-pill:disabled{cursor:default}.step-pill.active{background:#1b1a17;color:#fff8ef}.step-pill.active:disabled{opacity:1}.main-shell{margin:0 auto;max-width:1360px}.site-footer{display:flex;justify-content:center;margin:24px auto 0;max-width:1360px;padding:10px 0 8px}.site-footer-inner{display:flex;align-items:center}.site-footer-links{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:12px;align-items:center;color:var(--text-muted);font-size:.94rem}.site-footer-link{border:none;padding:0;background:transparent;color:inherit;font:inherit;transition:color .14s ease}.site-footer-link:hover{color:#1b1a17}.site-footer-link-with-hint{position:relative;display:inline-flex;align-items:center}.site-footer-hint{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%) translateY(4px);padding:8px 10px;border-radius:10px;background:#1b1a17eb;color:#fff8ef;font-size:.8rem;line-height:1.3;white-space:nowrap;box-shadow:0 12px 28px #1b1a172e;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease}.site-footer-link-with-hint:hover .site-footer-hint,.site-footer-link-with-hint:focus-within .site-footer-hint{opacity:1;transform:translate(-50%) translateY(0)}.site-footer-separator{color:#4b3f2d59}.footer-modal-copy{display:flex;flex-direction:column;gap:12px;color:var(--text-muted);line-height:1.65}.footer-modal-copy p{margin:0}.footer-contact-link{color:var(--accent-strong);font-weight:600;text-decoration:none}.footer-contact-link:hover{text-decoration:underline}.footer-donate-note{font-size:.92rem}.footer-donate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.footer-donate-card{margin:0;padding:14px;border-radius:20px;background:#fff9f1db;border:1px solid var(--border)}.footer-donate-image{width:100%;border-radius:14px}.footer-donate-card figcaption{margin-top:10px;text-align:center;font-weight:600;color:#1b1a17}.shell-loading{display:grid;place-items:center;min-height:280px;border:1px solid var(--border);border-radius:30px;background:var(--surface);box-shadow:var(--shadow);color:var(--text-muted);font-weight:600}.page-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}.workbench-card{background:var(--surface);border:1px solid var(--border);border-radius:30px;box-shadow:var(--shadow);min-width:0}.home-layout{display:block}.home-workbench{max-width:1040px;margin:0 auto}.home-title{margin:0 0 22px;font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.05}.section-heading h2{margin:0;font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.05}.upload-card{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;width:100%;padding:26px;border:1px dashed rgba(27,26,23,.24);border-radius:24px;background:linear-gradient(180deg,#fffbf3f5,#f7efe1eb);cursor:pointer;text-align:left}.upload-card:focus-visible{outline:2px solid rgba(23,100,141,.52);outline-offset:2px}.upload-card-input{display:none}.upload-card-title{display:block;font-size:1.2rem;font-weight:700;margin-bottom:10px}.upload-card-copy{display:block;color:var(--text-muted);max-width:540px}.upload-card-action{display:inline-flex;align-items:center;justify-content:center;margin-top:18px;min-height:44px;padding:10px 20px;border-radius:999px;background:linear-gradient(135deg,#1f3950,#17648d);color:#fff;font-weight:600;box-shadow:none}.upload-card:hover .upload-card-action,.upload-card:focus-visible .upload-card-action{background:linear-gradient(135deg,#244662,#1f74a3)}.inline-info-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid rgba(75,63,45,.16);border-radius:999px;background:#fffbf3d1;color:var(--text-muted);cursor:help;transition:border-color .14s ease,color .14s ease,background .14s ease}.inline-info-button:hover,.inline-info-button:focus-visible{border-color:#17648d4d;color:#17648d;background:#fffffff5}.template-section{margin-top:26px}.home-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.home-section-actions{display:inline-flex;align-items:center;gap:10px}.home-section-copy,.home-section-note{margin:0;color:var(--text-muted)}.home-section-copy{margin-top:6px;max-width:720px}.home-section-note{margin-top:10px}.template-section-title,.result-side-title{margin:0 0 16px;font-size:1.08rem}.recent-pattern-grid,.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.template-card.ant-card{border-radius:24px;border-color:#4b3f2d1f;background:#fffaf3e0;box-shadow:none}.template-card.ant-card:hover{border-color:#1f39503d}.template-preview-shell{padding:18px 18px 0}.recent-pattern-preview-shell{padding:18px;background:radial-gradient(circle at top left,rgba(239,159,69,.12),transparent 46%),linear-gradient(180deg,#1f39500f,#fffbf3d1)}.template-preview-image{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px;border:1px solid rgba(27,26,23,.08);background:#ffffffb3}.recent-pattern-preview-image{aspect-ratio:4 / 3;object-fit:contain;padding:12px}.template-card-body{display:flex;flex-direction:column;gap:16px}.template-card-body h3{margin:0 0 8px;font-size:1.06rem}.template-card-body p{margin:0;color:var(--text-muted)}.recent-pattern-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.recent-pattern-header .ant-tag{margin-inline-end:0}.recent-pattern-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-empty-state p{margin:0;color:var(--text-muted)}.template-tag-list{display:flex;gap:8px;flex-wrap:wrap}.palette-explorer{display:flex;flex-direction:column;gap:16px;padding:22px;border:1px solid rgba(31,57,80,.12);border-radius:24px;background:linear-gradient(180deg,#f5f9fceb,#fff9f1eb)}.home-collapsible-section{gap:18px}.palette-explorer-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.palette-explorer-copy{margin:0;max-width:700px;color:var(--text-muted)}.palette-explorer-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.palette-explorer-meta .ant-tag{margin-inline-end:0;padding:8px 12px;border:none;border-radius:999px;background:#1f395014;color:#1f3950}.palette-explorer-toolbar{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:14px;align-items:end}.palette-explorer-hint{margin:-4px 0 0}.palette-default-action{display:flex;align-items:center;justify-content:space-between;gap:16px}.palette-default-copy{margin:0}.lookup-result-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;align-items:stretch;padding:18px;border:1px solid rgba(31,57,80,.12);border-radius:22px;background:#fffcf7f0}.lookup-result-swatch{min-height:120px;border-radius:18px;border:1px solid rgba(27,26,23,.12);box-shadow:inset 0 0 0 1px #ffffff38}.lookup-result-swatch.is-missing-rgb,.palette-swatch-color.is-missing-rgb{background:repeating-linear-gradient(135deg,#1b1a1724 0,#1b1a1724 8px,#ffffffbf 8px,#ffffffbf 16px)!important}.lookup-result-body{display:flex;flex-direction:column;gap:14px;min-width:0}.lookup-result-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.lookup-result-heading strong{display:block;font-size:1.3rem;line-height:1.08}.lookup-result-heading .ant-tag{margin-inline-end:0}.lookup-result-eyebrow{display:block;margin-bottom:6px;color:var(--text-muted);font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.lookup-result-name{margin:0;color:#1f3950;font-size:1rem;font-weight:600}.lookup-result-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.lookup-result-details div{display:flex;flex-direction:column;gap:4px;min-width:0}.lookup-result-details dt{color:var(--text-muted);font-size:.82rem}.lookup-result-details dd{margin:0;font-weight:600;word-break:break-word}.palette-query-note{margin:0}.palette-chart-section{display:flex;flex-direction:column;gap:14px}.palette-chart-header{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.palette-chart-title{margin:0;font-size:1rem}.palette-chart-count{color:var(--text-muted);font-size:.92rem}.palette-swatch-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.palette-swatch-card{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgba(27,26,23,.1);border-radius:18px;background:#fffcf7e6;text-align:left;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.palette-swatch-card:hover{transform:translateY(-1px);border-color:#1f395038;box-shadow:0 14px 32px #1f395014}.palette-swatch-card.is-active{border-color:#1f39504d;box-shadow:0 14px 32px #1f39501a}.palette-swatch-color{width:100%;aspect-ratio:1;border-radius:14px;border:1px solid rgba(27,26,23,.12)}.palette-swatch-code{font-weight:700;line-height:1}.palette-swatch-meta{color:var(--text-muted);font-size:.84rem;line-height:1.3;word-break:break-word}.palette-empty-state{padding:20px 12px;border:1px dashed rgba(27,26,23,.12);border-radius:20px;background:#fffcf7a8}.workbench-card{padding:30px}.section-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:26px}.top-bar>*,.section-heading>*,.result-card-header>*{min-width:0}.ghost-button,.secondary-button,.primary-button{border:none;border-radius:999px;transition:transform .12s ease,opacity .12s ease}.ghost-button:hover,.secondary-button:hover,.primary-button:hover{transform:translateY(-1px)}.ghost-button{padding:12px 16px;background:#1b1a1714;color:#1b1a17}.secondary-button{padding:10px 16px;background:#2b8cc41f;color:var(--accent-strong)}.primary-button{padding:14px 18px;background:linear-gradient(135deg,#1b1a17,#584223);color:#fff8ef}.primary-button:disabled{opacity:.6;cursor:wait}.editor-layout,.result-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}.control-panel,.result-card{border:1px solid var(--border);border-radius:24px;background:var(--surface-strong);min-width:0}.editor-image-preview{min-width:0}.editor-image-preview img{width:100%;height:auto;border-radius:16px;border:1px solid rgba(27,26,23,.12);background:#fffdf8;display:block}.meta-strip,.result-summary{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.meta-strip span,.result-summary span{padding:8px 12px;border-radius:999px;background:#1b1a170f;color:var(--text-muted)}.meta-strip .ant-tag,.result-summary .ant-tag,.position-readout .ant-tag{margin-inline-end:0;padding:8px 12px;border-radius:999px;border:none;background:#1b1a170f;color:var(--text-muted)}.control-panel,.result-sidebar{display:flex;flex-direction:column;gap:16px;min-width:0}.control-panel{padding:20px 20px max(36px,env(safe-area-inset-bottom) + 24px);max-height:calc(100vh - 160px);max-height:calc(100dvh - 160px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-bottom:max(28px,env(safe-area-inset-bottom) + 16px)}.control-panel .panel-button.ant-btn{width:100%}.control-field{display:flex;flex-direction:column;gap:8px}.control-field span{font-weight:600}.control-field select,.control-field input[type=range],.control-field .ant-select,.control-field .ant-slider,.control-field .ant-input-number{width:100%}.control-field .ant-checkbox-wrapper{font-weight:600}.control-inline-meta{display:flex;flex-wrap:wrap;gap:8px}.control-inline-meta .ant-tag{margin-inline-end:0}.grid-dimension-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid-dimension-field{display:flex;flex-direction:column;gap:8px}.grid-dimension-field span{color:var(--text-muted);font-size:.88rem}.field-hint{color:var(--text-muted);font-size:.9rem;line-height:1.4}.generation-preset-grid{display:grid;grid-template-columns:1fr;gap:10px}.generation-preset-card{display:flex;flex-direction:column;gap:12px;width:100%;padding:14px;border:1px solid rgba(31,57,80,.12);border-radius:18px;background:linear-gradient(180deg,#fffcf7fa,#f6f1e8fa);cursor:pointer;font:inherit;text-align:left;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease,background .18s ease}.generation-preset-card:hover{border-color:#17648d52;transform:translateY(-1px);box-shadow:0 14px 32px #1f395014}.generation-preset-card:disabled{cursor:not-allowed;opacity:.66;transform:none;box-shadow:none}.generation-preset-card:disabled:hover{border-color:#1f39501f;transform:none;box-shadow:none}.generation-preset-card.is-active{border-color:#17648d85;background:linear-gradient(180deg,#ecf7fffa,#f5fafefa);box-shadow:0 14px 32px #17648d1f}.generation-preset-card:focus-visible{outline:2px solid rgba(23,100,141,.52);outline-offset:2px}.generation-preset-copy{display:flex;flex-direction:column;gap:6px}.generation-preset-copy strong{font-size:.98rem}.generation-preset-copy p{margin:0;color:var(--text-muted);font-size:.9rem;line-height:1.45}.generation-preset-meta{display:flex;flex-wrap:wrap;gap:8px}.generation-preset-meta .ant-tag{margin-inline-end:0;padding:5px 10px;border:none;border-radius:999px;background:#1f395014;color:#1f3950}.recommendation-card{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid rgba(31,57,80,.12);border-radius:20px;background:linear-gradient(180deg,#f5f9fceb,#fff9f1eb)}.recommendation-card-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.recommendation-card-header strong{display:block;font-size:1rem}.recommendation-card-header p{margin:6px 0 0;color:var(--text-muted);font-size:.92rem}.recommendation-card-scope{color:#1f3950;font-size:.84rem}.recommendation-button.ant-btn{min-width:128px}.recommendation-tag-list{display:flex;flex-wrap:wrap;gap:8px}.recommendation-tag-list .ant-tag{margin-inline-end:0;padding:6px 10px;border:none;border-radius:999px;background:#1f395014;color:#1f3950}.recommendation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.recommendation-list div{display:flex;flex-direction:column;gap:4px;min-width:0}.recommendation-list dt{color:var(--text-muted);font-size:.84rem}.recommendation-list dd{margin:0;font-weight:700}.position-readout{display:flex;gap:10px;flex-wrap:wrap}.position-readout span{padding:8px 12px;border-radius:999px;background:#1b1a170f;color:var(--text-muted)}.editor-note{padding:14px 16px;border-radius:18px;background:#ef9f451f;color:#5d4f3a}.generation-progress-card{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid rgba(23,100,141,.16);border-radius:20px;background:linear-gradient(180deg,#ecf7fff5,#fff9f1eb)}.generation-progress-header,.generation-progress-meta{display:flex;justify-content:space-between;gap:12px;align-items:center}.generation-progress-header strong,.generation-progress-meta span{color:#1f3950}.generation-progress-header span{color:var(--text-muted);font-size:.9rem}.generation-progress-card .ant-progress{margin:0}.generation-progress-meta .panel-button.ant-btn{width:auto}.error-banner{margin:0;padding:14px 16px;border-radius:18px;background:#bd33481f;color:#8c243d}.panel-button.ant-btn{min-height:44px;border-radius:999px;font-weight:600;box-shadow:none}.panel-button.ant-btn-default{border-color:transparent;background:#1b1a1714;color:#1b1a17}.panel-button.ant-btn-default:not(:disabled):hover{border-color:transparent;background:#1b1a171f;color:#1b1a17}.panel-button.ant-btn-primary{border-color:transparent;background:linear-gradient(135deg,#1f3950,#17648d)}.panel-button.ant-btn-primary:not(:disabled):hover{border-color:transparent;background:linear-gradient(135deg,#244662,#1f74a3)}.control-panel .ant-alert{border-radius:18px}.result-visuals{display:flex;flex-direction:column;gap:18px}.result-guidance{display:flex;flex-direction:column;gap:12px;margin:20px 0 0}.result-guidance-title{margin:0;font-size:1rem}.result-guidance .ant-alert{border-radius:18px}.result-card{padding:18px}.result-card-header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;align-items:flex-start;margin-bottom:16px}.result-card-heading{display:flex;flex-direction:column;gap:6px;min-width:0}.result-card-copy{margin:0;color:var(--text-muted);font-size:.92rem;line-height:1.45}.result-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-items:center}.chart-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;width:100%;margin-bottom:14px}.chart-view-picker{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:600}.chart-view-picker span{color:var(--text-muted);font-size:.84rem}.chart-view-select{width:100%;min-width:0}.chart-download-button.ant-btn{min-width:160px;justify-self:start}.result-card h3{margin:0;font-size:1.18rem}.preview-mode-switcher{position:relative;display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:linear-gradient(180deg,#fffcf7f0,#f3ece0f5);border:1px solid rgba(27,26,23,.08);box-shadow:inset 0 1px #fff9}.preview-mode-switcher:before{content:"";position:absolute;top:4px;left:4px;width:46px;height:calc(100% - 8px);border-radius:999px;background:linear-gradient(135deg,#1f3950,#17648d);box-shadow:0 10px 22px #17648d2e;transition:transform .22s cubic-bezier(.2,.8,.2,1)}.preview-mode-switcher.is-pixel:before{transform:translate(0)}.preview-mode-switcher.is-beads:before{transform:translate(50px)}.preview-mode-switcher.is-fused:before{transform:translate(100px)}.preview-mode-button{position:relative;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:999px;width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--text-muted);font:inherit;font-weight:600;transition:background .16s ease,color .16s ease,transform .16s ease}.preview-mode-button:hover{color:#1b1a17;transform:translateY(-1px)}.preview-mode-button.is-active{color:#fff8ef}.preview-mode-icon{width:22px;height:22px;fill:currentColor;stroke:currentColor;stroke-width:1.15;transition:transform .18s ease,opacity .18s ease}.preview-mode-button.is-active .preview-mode-icon{transform:scale(1.06)}.preview-mode-icon-hole{fill:#fff9f1e6;stroke:none}.preview-mode-button.is-active .preview-mode-icon-hole{fill:#17648d47}.preview-mode-icon-wave{fill:none;stroke-linecap:round}.finished-preview-stage{transform-origin:center center;animation:finished-preview-flip .42s cubic-bezier(.2,.8,.2,1);will-change:transform,opacity;filter:saturate(1.02)}@keyframes finished-preview-flip{0%{opacity:.2;transform:perspective(1200px) rotateY(-88deg) rotateX(3deg) scale(.96);filter:blur(2px) saturate(.9)}52%{opacity:.92;transform:perspective(1200px) rotateY(10deg) rotateX(0) scale(1.01);filter:blur(.4px) saturate(1.04)}to{opacity:1;transform:perspective(1200px) rotateY(0) scale(1);filter:blur(0) saturate(1.02)}}.preview-image-trigger{display:block;width:100%;padding:0;border:none;background:transparent;cursor:zoom-in}.preview-image-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:20px}.result-image{width:100%;border-radius:16px;border:1px solid rgba(27,26,23,.12);background:#fffdf8}.result-image-chart{max-height:960px;object-fit:contain;image-rendering:pixelated}.chart-view-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.chart-pagination-alert.ant-alert{margin-bottom:14px;border-radius:18px}.compact-card{background:var(--surface)}.pixel-preview-image{width:100%;image-rendering:pixelated;border-radius:16px;border:1px solid rgba(27,26,23,.12)}.preview-modal .ant-modal-content{padding:18px;border-radius:24px;background:#fff9f1fa}.preview-modal-image{width:100%;max-height:80vh;object-fit:contain;border-radius:18px;background:#fffdf8}.preview-modal-image-pixelated,.preview-modal-image-chart{image-rendering:pixelated}.export-option-modal .ant-modal-content{border-radius:24px;padding:20px;background:#fff9f1fa}.export-option-layout{display:flex;flex-direction:column;gap:16px}.export-option-copy,.export-option-note{margin:0}.export-option-copy{color:var(--text-muted)}.export-option-note{padding:12px 14px;border-radius:16px;background:#1f395014;color:#1f3950;font-size:.92rem}.export-option-section{display:flex;flex-direction:column;gap:10px}.export-option-label{font-weight:700}.export-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.export-mode-card{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid rgba(31,57,80,.12);border-radius:18px;padding:14px;background:linear-gradient(180deg,#fffcf7fa,#f6f1e8fa);text-align:left;font:inherit;cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease,background .18s ease}.export-mode-card:hover{border-color:#17648d52;transform:translateY(-1px);box-shadow:0 14px 32px #1f395014}.export-mode-card.is-active{border-color:#17648d85;background:linear-gradient(180deg,#ecf7fffa,#f5fafefa);box-shadow:0 14px 32px #17648d1f}.export-mode-card:disabled{cursor:not-allowed;opacity:.66;transform:none;box-shadow:none}.export-mode-card strong{display:block;margin-bottom:6px}.export-mode-card p{margin:0;color:var(--text-muted);line-height:1.45}.export-scale-group.ant-radio-group{display:flex;flex-wrap:wrap;gap:8px}.export-scale-group .ant-radio-button-wrapper{border-radius:999px;margin-inline-start:0}.export-checkbox-list{gap:12px}.export-checkbox-list .ant-checkbox-wrapper{font-weight:600}.usage-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.usage-list li{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;border:1px solid rgba(27,26,23,.08);border-radius:16px;background:#fffcf7b8}.usage-chip{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}.usage-list li>span:last-child{color:var(--text-muted);font-weight:600}.usage-swatch{width:16px;height:16px;border-radius:999px;border:1px solid rgba(27,26,23,.16)}@media (max-width: 1280px){.app-shell{padding:24px 24px max(24px,env(safe-area-inset-bottom) + 24px)}.top-bar{margin-bottom:24px}.brand-title{font-size:clamp(1.65rem,2.8vw,2.2rem)}.workbench-card{padding:26px}.editor-layout,.result-layout{grid-template-columns:minmax(0,1fr) 320px;gap:20px}}@media (max-width: 1120px){.page-grid{grid-template-columns:1fr}.top-bar,.section-heading{flex-direction:column}.top-bar{align-items:flex-start}.header-side{width:100%;align-items:flex-start}.step-pills{justify-content:flex-start}.brand-title{font-size:clamp(1.6rem,4vw,2.1rem)}.workbench-card{padding:24px}.editor-layout,.result-layout{grid-template-columns:minmax(0,1fr) 300px}}@media (max-width: 960px){.app-shell{padding:20px 20px max(20px,env(safe-area-inset-bottom) + 20px)}.top-bar{gap:18px}.workbench-card{padding:24px;border-radius:26px}.editor-layout,.result-layout{grid-template-columns:1fr;gap:18px}.control-panel{max-height:none;overflow:visible}.result-card-header{flex-direction:column}.export-mode-grid{grid-template-columns:1fr}.result-card-actions{justify-content:flex-start}.chart-toolbar{justify-content:flex-start;width:100%}.recommendation-card-header{flex-direction:column}.home-section-heading,.palette-explorer-header,.palette-chart-header{flex-direction:column;align-items:flex-start}.palette-explorer-meta{justify-content:flex-start}.palette-explorer-toolbar,.lookup-result-card,.lookup-result-details{grid-template-columns:1fr}.palette-default-action{flex-direction:column;align-items:flex-start}.palette-swatch-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.section-heading>.panel-button.ant-btn,.result-card-header>.panel-button.ant-btn{align-self:flex-start}}@media (max-width: 720px){.app-shell{padding:16px 16px max(16px,env(safe-area-inset-bottom) + 16px)}.page-drop-overlay{top:12px;right:12px;bottom:12px;left:12px;border-radius:24px}.page-drop-card{max-width:min(100%,360px);padding:20px;border-radius:22px}.top-bar{margin-bottom:22px}.workbench-card{padding:20px;border-radius:24px}.control-panel,.result-card{padding:16px;border-radius:20px}.control-panel{padding-bottom:max(28px,env(safe-area-inset-bottom) + 20px)}.upload-card{padding:20px;border-radius:20px}.template-preview-shell{padding:14px 14px 0}.palette-explorer{padding:18px;border-radius:20px}.meta-strip,.result-summary,.position-readout{gap:8px;margin-top:14px}.meta-strip .ant-tag,.result-summary .ant-tag,.position-readout .ant-tag{padding:6px 10px}.recommendation-list,.grid-dimension-row{grid-template-columns:1fr}.result-card h3{font-size:1.08rem}.recent-pattern-grid,.template-grid{grid-template-columns:1fr}.palette-swatch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 560px){.app-shell{padding:14px 14px max(14px,env(safe-area-inset-bottom) + 14px)}.page-drop-overlay{top:10px;right:10px;bottom:10px;left:10px;border-radius:20px}.top-bar{margin-bottom:18px}.brand-title{font-size:clamp(1.45rem,8vw,1.9rem);line-height:1.02}.home-title,.section-heading h2{font-size:clamp(1.4rem,8vw,2rem);line-height:1.06}.locale-switcher{gap:10px}.step-pills{width:100%;gap:8px}.step-pill{flex:1 1 calc(50% - 4px);padding:8px 12px;text-align:center}.workbench-card{padding:18px;border-radius:20px}.control-panel,.result-card{padding:14px;border-radius:18px}.control-panel{padding-bottom:max(24px,env(safe-area-inset-bottom) + 18px)}.upload-card{padding:18px}.palette-explorer{padding:16px}.upload-card-action,.recent-pattern-actions,.template-card-body .ant-btn,.panel-button.ant-btn{width:100%}.chart-toolbar{grid-template-columns:1fr;align-items:stretch}.chart-view-picker{min-width:0}.chart-download-button.ant-btn{min-width:0;justify-self:stretch}.recent-pattern-actions{grid-template-columns:1fr}.section-heading,.result-card-header{gap:14px}.usage-list{grid-template-columns:1fr}.usage-list li>span:last-child{width:auto;padding-left:0}}@media (max-width: 420px){.locale-switcher,.step-pills{width:100%;justify-content:flex-start}}.survey-copy{margin:0;color:var(--text-muted);line-height:1.6}.survey-layout{display:flex;flex-direction:column;gap:18px}.survey-section{display:flex;flex-direction:column;gap:10px}.survey-label{font-weight:600;color:#1b1a17}.survey-radio-group{display:flex;flex-wrap:wrap;gap:8px}.survey-radio-group .ant-radio-button-wrapper{border-radius:999px}
