.pot-designer{--pot-bg:#f6f7fb;--pot-surface:#fff;--pot-surface-2:#f1f2f6;--pot-accent:#d25208;--pot-accent-hover:#b84607;--pot-accent-gradient:linear-gradient(135deg, #d25208 0%, #f07b24 100%);--pot-text:#242424;--pot-text-secondary:#666;--pot-text-muted:#888;--pot-border:#e6e6e6;--pot-border-focus:#d2520840;--pot-shadow:0 8px 32px #24242414;--pot-fs-xs:.75rem;--pot-fs-sm:.875rem;--pot-fs-lg:1.125rem;--pot-fs-2xl:1.5rem;--pot-side-pad:24px;color:var(--pot-text)}.pot-designer *,.pot-designer :before,.pot-designer :after{box-sizing:border-box}.pot-layout{background-color:var(--pot-bg);border:1px solid var(--pot-border);width:100%;height:calc(100vh - 150px);min-height:600px;box-shadow:var(--pot-shadow);border-radius:12px;grid-template:"head viewer""panel viewer"minmax(0,1fr)"actions viewer"/380px minmax(0,1fr);display:grid;overflow:hidden}.pot-head{padding:var(--pot-side-pad);background:var(--pot-surface);border-right:1px solid var(--pot-border);border-bottom:1px solid var(--pot-border);grid-area:head}.pot-title{font-size:var(--pot-fs-2xl);background:var(--pot-accent-gradient);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin:0;font-weight:700;line-height:1.25}.pot-subtitle{font-size:var(--pot-fs-xs);color:var(--pot-text-secondary);margin:4px 0 0;line-height:1.5}.pot-panel{background:var(--pot-surface);border-right:1px solid var(--pot-border);flex-direction:column;grid-area:panel;min-height:0;display:flex}.pot-section{padding:20px var(--pot-side-pad);border-bottom:1px solid var(--pot-border)}.pot-section-fill{border-bottom:none;flex-direction:column;flex:1;min-height:0;display:flex}.pot-section-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.pot-section-head .pot-section-title{margin-bottom:0}.pot-section-title{font-size:var(--pot-fs-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--pot-text-muted);margin-bottom:12px;font-weight:600;display:block}.pot-reset{font-family:inherit;font-size:var(--pot-fs-xs);color:var(--pot-accent);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:6px;margin:-4px -8px -4px 0;padding:4px 8px;font-weight:600;transition:background-color .2s}.pot-reset:hover{background:#d2520814}.pot-select{background-color:var(--pot-surface-2);border:1px solid var(--pot-border);width:100%;min-height:44px;color:var(--pot-text);font-family:inherit;font-size:var(--pot-fs-sm);cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;border-radius:8px;outline:none;padding:10px 40px 10px 16px;font-weight:500;transition:border-color .2s,box-shadow .2s}.pot-select:focus{border-color:var(--pot-accent);box-shadow:0 0 0 2px var(--pot-border-focus)}.pot-template-desc{font-size:var(--pot-fs-xs);color:var(--pot-text-secondary);margin:10px 0 0;line-height:1.5;display:none}.pot-tabs{background:var(--pot-surface-2);border:1px solid var(--pot-border);border-radius:8px;margin-bottom:16px;padding:3px;display:flex}.pot-tab{min-height:36px;color:var(--pot-text-secondary);font-family:inherit;font-size:var(--pot-fs-sm);cursor:pointer;background:0 0;border:none;border-radius:6px;outline:none;flex:1;padding:6px 16px;font-weight:600;transition:all .2s}.pot-tab:hover{color:var(--pot-text)}.pot-tab:focus-visible{box-shadow:0 0 0 2px var(--pot-border-focus)}.pot-tab.active{background:var(--pot-accent-gradient);color:#fff;box-shadow:0 2px 8px #d2520833}.pot-params{overscroll-behavior:contain;flex-direction:column;flex:1;gap:18px;min-height:0;margin:-2px -4px 0 -2px;padding:2px 4px 4px 2px;display:flex;overflow-y:auto}.pot-param{flex-direction:column;gap:4px;display:flex}.pot-param-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.pot-param-label{font-size:var(--pot-fs-sm);color:var(--pot-text);cursor:pointer;margin:0;font-weight:600}.pot-param-unit{font-size:var(--pot-fs-xs);color:var(--pot-text-muted);font-weight:500}.pot-param-desc{font-size:var(--pot-fs-xs);color:var(--pot-text-secondary);margin:0;line-height:1.4}.pot-slider{appearance:none;cursor:pointer;touch-action:pan-y;background:0 0;outline:none;width:100%;height:28px;margin:2px 0 0;padding:0;display:block}.pot-slider:focus-visible{box-shadow:0 0 0 2px var(--pot-border-focus);border-radius:6px}.pot-slider::-webkit-slider-runnable-track{background:#e2e4ea;border-radius:3px;height:6px}.pot-slider::-webkit-slider-thumb{-webkit-appearance:none;background:var(--pot-accent);border:2px solid #fff;border-radius:50%;width:18px;height:18px;margin-top:-6px;transition:transform .1s,background-color .1s;box-shadow:0 1px 4px #24242440}.pot-slider::-webkit-slider-thumb:hover{background:var(--pot-accent-hover);transform:scale(1.15)}.pot-slider:active::-webkit-slider-thumb{background:var(--pot-accent-hover);transform:scale(1.15)}.pot-slider::-moz-range-track{background:#e2e4ea;border-radius:3px;height:6px}.pot-slider::-moz-range-thumb{background:var(--pot-accent);border:2px solid #fff;border-radius:50%;width:14px;height:14px;box-shadow:0 1px 4px #24242440}.pot-number-input{background:var(--pot-surface-2);border:1px solid var(--pot-border);width:72px;min-height:32px;color:var(--pot-text);font-family:inherit;font-size:var(--pot-fs-sm);text-align:center;appearance:textfield;border-radius:6px;outline:none;flex:none;padding:4px 8px;font-weight:600;transition:border-color .2s,box-shadow .2s}.pot-number-input:focus{border-color:var(--pot-accent);box-shadow:0 0 0 2px var(--pot-border-focus)}.pot-number-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pot-number-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.pot-advanced-number-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pot-advanced-number-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.pot-advanced-grid{grid-template-columns:1fr;gap:10px;display:grid}.pot-advanced-row{background:var(--pot-bg);border:1px solid var(--pot-border);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;transition:all .2s;display:flex}.pot-advanced-row:hover{background:#d2520808;border-color:#d252084d}.pot-advanced-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.pot-advanced-title{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.pot-advanced-label{font-size:var(--pot-fs-sm);color:var(--pot-text);font-weight:500}.pot-advanced-unit{font-size:var(--pot-fs-xs);color:var(--pot-text-muted)}.pot-advanced-desc{font-size:var(--pot-fs-xs);color:var(--pot-text-secondary);margin:0;line-height:1.3}.pot-advanced-number-input{background:var(--pot-surface-2);border:1px solid var(--pot-border);width:80px;min-height:40px;color:var(--pot-text);font-family:inherit;font-size:var(--pot-fs-sm);text-align:center;appearance:textfield;border-radius:6px;outline:none;flex:none;padding:8px 10px;font-weight:600;transition:all .2s}.pot-advanced-number-input:focus{border-color:var(--pot-accent);box-shadow:0 0 0 2px var(--pot-border-focus)}.pot-actions{padding:16px var(--pot-side-pad);border-top:1px solid var(--pot-border);border-right:1px solid var(--pot-border);background:var(--pot-bg);grid-area:actions;gap:8px;display:flex}.pot-btn{min-height:44px;font-family:inherit;font-size:var(--pot-fs-sm);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:none;border-radius:8px;outline:none;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-weight:600;line-height:1.2;transition:all .2s;display:inline-flex}.pot-btn:focus-visible{box-shadow:0 0 0 3px var(--pot-border-focus)}.pot-btn-primary{background:var(--pot-accent-gradient);color:#fff;flex:1;min-width:0;box-shadow:0 4px 12px #d252084d}.pot-btn-primary:hover:not(:disabled){opacity:.95;transform:translateY(-1px)}.pot-btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.pot-btn-secondary{background:var(--pot-surface-2);border:1px solid var(--pot-border);color:var(--pot-text)}.pot-btn-secondary:hover:not(:disabled){border-color:var(--pot-text-muted);background:#e9ebf0}.pot-btn-secondary:disabled{opacity:.4;cursor:not-allowed}.pot-btn-icon{background:var(--pot-surface-2);border:1px solid var(--pot-border);width:44px;height:44px;color:var(--pot-text-secondary);flex:none;padding:0}.pot-btn-icon:hover{color:var(--pot-text);border-color:var(--pot-text-muted)}.pot-btn-icon.active{color:var(--pot-accent);background:#d2520814;border-color:#d252084d}.pot-viewer{background-color:#eef0f4;grid-area:viewer;min-width:0;min-height:0;position:relative}.pot-canvas-wrapper{width:100%;height:100%}.pot-viewer-fallback{width:100%;height:100%;color:var(--pot-text-secondary);font-size:var(--pot-fs-sm);text-align:center;background-color:#eef0f4;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:16px;display:flex}.pot-viewer-fallback p{margin:0}.pot-loading-spinner{border:3px solid var(--pot-border);border-bottom-color:var(--pot-accent);border-radius:50%;width:32px;height:32px;animation:1s linear infinite pot-rotation}.pot-viewer-overlay{pointer-events:none;border:1px solid var(--pot-border);-webkit-backdrop-filter:blur(8px);background:#ffffffd1;border-radius:12px;max-width:min(450px,100% - 48px);padding:16px 20px;position:absolute;top:24px;left:24px;box-shadow:0 4px 20px #24242414}.pot-viewer-overlay h2{font-size:var(--pot-fs-lg);color:var(--pot-text);margin:0 0 4px;font-weight:700;line-height:1.3}.pot-viewer-overlay p{font-size:var(--pot-fs-xs);color:var(--pot-text-secondary);margin:0;line-height:1.4}.pot-viewer-status{pointer-events:none;max-width:calc(100% - 32px);position:absolute;bottom:16px;left:16px}.pot-status-badge{font-size:var(--pot-fs-xs);-webkit-backdrop-filter:blur(8px);border-radius:20px;align-items:center;gap:8px;padding:6px 12px;font-weight:600;line-height:1.3;display:inline-flex}.pot-status-ready{color:#1d7a34;background:#28a7461f;border:1px solid #28a74640}.pot-status-success{color:var(--pot-accent);background:#ffffffd9;border:1px solid #d2520833}.pot-status-loading{color:#b45309;background:#fff7edeb;border:1px solid #f59e0b4d}.pot-status-error{color:#b91c1c;background:#fef2f2eb;border:1px solid #dc26264d}.pot-spinner{border:2px solid;border-bottom-color:#0000;border-radius:50%;flex:none;width:12px;height:12px;animation:1s linear infinite pot-rotation;display:inline-block}@keyframes pot-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pot-viewer-hint{color:var(--pot-text-muted);pointer-events:none;white-space:nowrap;background:#ffffffb3;border-radius:20px;margin:0;padding:4px 10px;font-size:11px;line-height:1.4;position:absolute;bottom:16px;right:16px}.pot-hint-touch{display:none}@media (hover:none) and (pointer:coarse){.pot-hint-touch{display:inline}.pot-hint-mouse{display:none}}@media (min-width:768px) and (max-width:991.98px){.pot-designer{--pot-side-pad:18px}.pot-layout{grid-template-columns:320px minmax(0,1fr);height:calc(100vh - 130px);min-height:560px}.pot-title{font-size:1.25rem}.pot-viewer-overlay{padding:12px 14px;top:16px;left:16px}.pot-viewer-overlay p{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}@media (max-width:767.98px){.pot-designer{--pot-side-pad:0px;--pot-fs-2xl:1.375rem}.pot-layout{height:auto;min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;display:flex;overflow:visible}.pot-head{background:0 0;border:0;order:0;padding:0 0 14px}.pot-viewer{z-index:5;border:1px solid var(--pot-border);height:min(42vh,380px);min-height:240px;box-shadow:var(--pot-shadow);border-radius:12px;order:1;position:sticky;top:8px;overflow:hidden}.pot-panel{background:0 0;border:0;order:2;padding-top:16px}.pot-section{border-bottom:0;padding:0 0 18px}.pot-section-fill{flex:none}.pot-template-desc{display:block}.pot-params{flex:none;gap:16px;margin:-2px;padding:2px;overflow:visible}.pot-param{gap:2px}.pot-param-head{gap:16px}.pot-slider{height:32px}.pot-slider::-webkit-slider-thumb{width:22px;height:22px;margin-top:-8px}.pot-slider::-moz-range-thumb{width:18px;height:18px}.pot-number-input{width:76px;min-height:36px}.pot-tab{min-height:40px}.pot-actions{z-index:6;-webkit-backdrop-filter:blur(10px);border:1px solid var(--pot-border);background:#fffffff0;border-radius:12px;order:3;margin-top:4px;padding:10px;position:sticky;bottom:8px;box-shadow:0 8px 28px #24242424}body:has(.page-pot) #scrollUp{display:none}.pot-viewer-overlay{border-radius:8px;max-width:calc(100% - 20px);padding:6px 10px;top:10px;left:10px}.pot-viewer-overlay h2{font-size:var(--pot-fs-sm);white-space:nowrap;text-overflow:ellipsis;margin:0;overflow:hidden}.pot-viewer-overlay p{display:none}.pot-viewer-status{bottom:10px;left:10px}.pot-viewer-hint{font-size:10px;bottom:10px;right:10px}.pot-viewer-status:has(.pot-status-error)~.pot-viewer-hint{display:none}}@media (max-width:400px){.pot-btn-secondary{width:44px;padding:0}.pot-btn-secondary .pot-btn-label{display:none}}@media (prefers-reduced-motion:reduce){.pot-designer *,.pot-designer :before,.pot-designer :after{transition-duration:.01ms!important}}
