:root{font-family:Poppins,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;--bg: #0f172a;--card: #ffffff;--line: #cbd5e1;--text: #0f172a;--muted: #4b5563;--primary: #0f766e;--primary-soft: #d1f9f4;--danger: #b91c1c;--danger-soft: #fecaca;--canvas-bg: #0b0f14;--grid-minor: #1a2330;--grid-major: #2b3848;--ruler-bg: #111827;--ruler-line: #4b5563;--ruler-text: #334155;--page-bg: radial-gradient(circle at 10% 10%, #ecfeff 0%, transparent 38%), radial-gradient(circle at 90% 0%, #e0e7ff 0%, transparent 42%), linear-gradient(140deg, #e0f2fe, #f8fafc)}html[data-theme=dark]{--bg: #020617;--card: #0f172a;--line: #334155;--text: #e2e8f0;--muted: #94a3b8;--primary: #2dd4bf;--primary-soft: #155e75;--danger: #fca5a5;--danger-soft: #7f1d1d;--canvas-bg: #090d13;--grid-minor: #19222f;--grid-major: #2a3747;--ruler-bg: #111827;--ruler-line: #4b5563;--ruler-text: #cbd5e1;--page-bg: radial-gradient(circle at 10% 10%, #0f172a 0%, transparent 38%), radial-gradient(circle at 90% 0%, #0f172a 0%, transparent 42%), linear-gradient(140deg, #020617, #0b1220);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--page-bg);color:var(--text);overflow-x:hidden}html.body-auth-open,body.body-auth-open{overflow:hidden;overflow-x:hidden;overscroll-behavior:none}html.body-auth-open .theme-toggle,body.body-auth-open .theme-toggle{visibility:hidden}.auth-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:220;display:grid;place-items:center;padding:16px}.auth-modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#02061799;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.home-shell{max-width:1280px;margin:0 auto;padding:28px 18px 36px;min-height:100vh;display:flex;flex-direction:column;gap:26px}.home-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.home-brand{margin:0;text-decoration:none;color:#0f172a;font-size:16px;letter-spacing:.2em;text-transform:uppercase;font-weight:700;display:inline-flex;align-items:center;gap:8px}.home-brand img{width:24px;height:24px;object-fit:contain;border-radius:6px}.home-brand span{display:inline-block}.home-nav-links{display:flex;align-items:center;gap:14px}.home-nav-links a{color:#1f2937;text-decoration:none;font-size:14px;border-bottom:1px solid transparent}.home-nav-links .home-outline-btn{display:inline-flex;align-items:center;justify-content:center;line-height:1.2;border-bottom-color:#94a3b8}.home-nav-link-btn{margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#1f2937;font:inherit;font-size:14px;border-bottom:1px solid transparent;white-space:nowrap}.home-nav-links button{margin:0;padding:8px 12px;border:0;border-radius:999px;font:inherit;cursor:pointer;color:#0f172a;background:#0f766e1f;border:1px solid rgba(15,118,110,.24)}.theme-toggle{width:32px;height:32px;border-radius:999px;border:1px solid rgba(15,118,110,.35);background:#fff;color:#0f172a;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;top:auto;right:auto;position:fixed;z-index:10}.theme-toggle:hover{background:#f8fafc}.app-shell .theme-toggle{position:static;width:28px;height:28px;font-size:14px;border-color:#0f766e47}.home-nav-links a:hover{border-bottom-color:#0ea5e9}.home-nav-links .home-outline-btn:hover{border-color:#0ea5e9}.home-nav-link-btn:hover{background:transparent;border-bottom-color:#0ea5e9}.home-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:stretch}.home-hero{border-radius:22px;background:linear-gradient(160deg,#fffffff2,#f8fafccc);border:1px solid #dbeafe;padding:22px;display:flex;flex-direction:column;justify-content:center}.home-kicker{margin:0 0 12px;color:#0f766e;letter-spacing:.2em;text-transform:uppercase;font-size:12px;font-weight:700}.home-title{margin:0;max-width:20ch;line-height:1.24;font-size:clamp(1.7rem,2.8vw,2.25rem)}.home-subtitle{margin:14px 0 0;color:#334155;max-width:58ch;line-height:1.55}.home-pill-row{margin:16px 0 0;display:flex;flex-wrap:wrap;gap:8px}.home-pill-row span{font-size:12px;border:1px solid #bae6fd;color:#155e75;background:#e0f2fe;border-radius:999px;padding:6px 10px}.home-primary-btn{width:fit-content;margin-top:18px;text-decoration:none;border:1px solid transparent;color:#fff;background:linear-gradient(130deg,#0f766e,#0ea5e9);border-radius:11px;padding:10px 15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:0}.pricing-actions .home-primary-btn{margin-top:0}.start-free-hero-btn{margin-top:0;box-shadow:0 12px 20px #0f766e33;transition:transform .18s ease,box-shadow .18s ease}.start-free-hero-btn:hover{transform:translateY(-1px);box-shadow:0 14px 24px #0f766e47}.start-free-hero-btn:focus-visible{outline:2px solid rgba(15,118,110,.45);outline-offset:2px}.home-stats{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px;color:var(--text)}.home-stats p{margin:0;font-size:13px;border-left:3px solid var(--primary);border-radius:10px;padding:6px 10px;background:#2dd4bf14}.home-stats strong{color:var(--primary);font-weight:700}.home-media-panel{border-radius:22px;background:linear-gradient(155deg,#fffffff0,#f1f5f9f5);border:1px solid #cbd5e1;padding:18px;display:grid;gap:12px;align-content:start}.home-media-title{margin:0;font-size:clamp(1.05rem,2.4vw,1.35rem);color:#0f172a}.home-media-subtitle{margin:0;color:#334155;font-size:13px}.sample-slider{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center}.sample-track-wrap{width:100%;overflow:hidden;border-radius:14px;border:1px solid #dbeafe}.sample-track{display:flex;width:100%;transition:transform .35s ease;transform:translate(0)}.sample-slide{min-width:100%;background:linear-gradient(155deg,#f8fafc,#f1f5f9);border-radius:12px;overflow:hidden}.sample-slide img{display:block;width:100%;aspect-ratio:16 / 9;object-fit:cover}.sample-meta{padding:10px 12px;display:grid;gap:4px}.sample-meta p{margin:0;color:#0f172a;font-weight:700}.sample-meta span{margin:0;color:#334155;font-size:12px}.sample-arrow{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #cbd5e1;background:#fff;color:#0f172a;width:34px;height:44px;border-radius:12px;cursor:pointer;font-size:20px;line-height:1}.sample-arrow:hover{background:#e2e8f0}.sample-dots{display:flex;gap:8px;justify-content:flex-end}.sample-dot{width:10px;height:10px;border-radius:999px;border:1px solid #94a3b8;background:#f8fafc;padding:0}.sample-dot.is-active{width:22px;border-color:#0f766e;background:#14b8a6}.home-cta-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}.home-outline-btn{border:1px solid #94a3b8;border-radius:11px;background:#ffffffe6;color:#0f172a;padding:10px 15px;cursor:pointer;font-weight:600;text-decoration:none}.home-nav-btn{border:1px solid #0f766e;border-radius:999px;padding:8px 12px;color:#0f766e;background:#0f766e14}.feature-section{border-radius:18px;background:linear-gradient(180deg,#fffffffa,#f8fafcf2);border:1px solid var(--line);padding:24px;display:grid;gap:14px}.feature-section h2,.feature-copy p,.feature-card p,.proof-strip{margin:0}.feature-copy{color:#334155;max-width:64ch}.feature-copy h2{color:#0f172a;margin-bottom:8px}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.feature-card{border:1px solid #dbeafe;border-radius:14px;background:#fff;padding:12px}.feature-card h3{font-size:15px;color:#0f172a;margin-bottom:7px}.feature-card p{font-size:13px;color:#334155;line-height:1.45}.home-section,.home-feature-points,.home-template-section,.home-showcase-section,.home-faq-section{border-radius:18px;background:linear-gradient(180deg,#fffffffa,#f8fafcf2);border:1px solid var(--line);padding:24px}.home-section-title{margin:0;color:#0f172a;font-size:clamp(1.24rem,2.4vw,1.72rem);letter-spacing:.01em}.home-section-head{margin-bottom:12px}.home-section-intro{margin:0 0 14px;color:#334155;line-height:1.5;max-width:72ch}.home-media-panel--spotlight{position:relative;overflow:hidden}.home-media-panel--spotlight:before{content:"";position:absolute;inset:-20% -15% auto;height:55%;background:radial-gradient(circle,#22d3ee33,#0ea5e900);pointer-events:none}.home-pill-row-mini{margin-top:2px}.home-pill-row-mini span{font-size:11px;padding:5px 9px}.home-highlight-band{border-color:#c7d2fe;background:linear-gradient(170deg,#fffffffa,#f0f9fff2)}.home-split-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:center}.home-split-media img{width:100%;display:block;border-radius:14px;border:1px solid #dbeafe;box-shadow:0 18px 36px #02081726;background:#fff}.home-split-copy .home-section-intro{margin-bottom:10px}.home-split-copy .how-it-works-list{margin:0 0 12px}.home-accordion{display:grid;gap:8px}.home-accordion details{border:1px solid #dbeafe;border-radius:12px;background:#fff;padding:10px 12px}.home-accordion summary{list-style:none;cursor:pointer;font-weight:600;color:#0f172a;position:relative;padding-right:20px}.home-accordion summary::-webkit-details-marker{display:none}.home-accordion summary:after{content:"+";position:absolute;right:0;top:0;color:#0f766e;font-weight:700}.home-accordion details[open] summary:after{content:"-"}.home-accordion details p{margin:8px 0 0;color:#334155;font-size:13px;line-height:1.5}.home-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-feature-card{background:#fff;border:1px solid #dbeafe;border-radius:14px;padding:12px;display:grid;gap:8px;min-height:0}.home-feature-icon{margin:0;width:34px;height:34px;border-radius:11px;border:1px solid #cbd5e1;display:grid;place-items:center;background:#e0f2fe;color:#0f766e;font-size:16px}.home-feature-card h3{margin:0;color:#0f172a;font-size:15px}.home-feature-card p{margin:0;color:#334155;font-size:13px;line-height:1.45}.home-steps{list-style:none;counter-reset:home-step;margin:0;padding:0;display:grid;gap:12px}.home-steps li{counter-increment:home-step;position:relative;padding:12px 12px 12px 48px;margin:0;border:1px solid #dbeafe;border-radius:12px;background:#fff}.home-steps li:before{content:counter(home-step);position:absolute;top:50%;left:14px;transform:translateY(-50%);width:22px;height:22px;border-radius:999px;background:#e0f2fe;color:#0f766e;border:1px solid #0f766e;font-size:11px;display:grid;place-items:center;font-weight:700}.home-steps li strong{display:block;color:#0f172a}.home-steps li span{color:#334155;font-size:13px;line-height:1.45}.home-template-grid{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-template-card{border:1px solid #dbeafe;border-radius:14px;background:#fff;overflow:hidden;min-height:100%;display:grid}.home-template-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.home-template-card div{padding:12px;display:grid;gap:6px}.home-template-card h3{margin:0;font-size:16px;color:#0f172a}.home-template-card p{margin:0;color:#334155;font-size:13px;line-height:1.4}.home-showcase-grid{margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-showcase-card{border:1px solid #dbeafe;border-radius:14px;overflow:hidden;background:#fff;display:grid}.home-showcase-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.home-showcase-card p{margin:0;padding:10px 12px;color:#334155;font-size:13px;line-height:1.45}.home-faq-grid{margin-top:4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-faq-card{border:1px solid #dbeafe;border-radius:14px;background:#fff;padding:12px;display:grid;gap:6px}.home-faq-card h3{margin:0;color:#0f172a;font-size:16px}.home-faq-card p{margin:0;color:#334155;line-height:1.45;font-size:13px}.home-cta-strip{border-radius:18px;background:linear-gradient(135deg,#0f766e,#0ea5e9);color:#fff;padding:20px;display:flex;justify-content:space-between;gap:14px;align-items:center}.home-cta-strip h2{margin:0;max-width:28ch;font-size:clamp(1.2rem,2.4vw,1.6rem)}.home-cta-strip p{margin:8px 0 0;color:#ffffffd9}.home-cta-strip .home-primary-btn{margin-top:0;white-space:nowrap;border:0}.proof-strip{border-radius:16px;border:1px solid #e2e8f0;background:#0f172a;color:#f8fafc;padding:18px;margin-bottom:8px;display:flex;flex-direction:column;gap:4px}.proof-strip span{color:#bae6fd;font-size:13px}.auth-card{width:min(420px,92vw);max-height:min(92dvh,760px);position:relative;z-index:1;background:#fffffff7;border-radius:18px;border:1px solid rgba(255,255,255,.45);padding:24px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(15,118,110,.45) transparent;-webkit-overflow-scrolling:touch;box-shadow:0 24px 58px #02061759;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:authReveal .35s ease-out;margin:0}.auth-close-btn{position:absolute;top:12px;right:12px;border:1px solid #cbd5e1;border-radius:10px;width:32px;height:32px;line-height:1;background:#fff;color:#0f172a;cursor:pointer}.auth-close-btn:hover{cursor:pointer}.auth-brand{margin:0 0 6px;font-size:13px;letter-spacing:.15em;font-weight:700;text-transform:uppercase;color:#334155}.auth-title{margin:0;font-size:clamp(1.4rem,2.7vw,1.85rem)}.auth-subtitle{margin:10px 0 0;color:#334155;font-size:14px;line-height:1.45}.auth-mode-note{margin:14px 0;font-size:13px;color:#475569}.auth-mode-note .highlight{color:#0f766e;font-weight:700}.auth-tabs{margin:16px 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.auth-tab{border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#334155;padding:10px 12px;cursor:pointer;transition:.2s ease}.auth-tab.is-active{background:linear-gradient(140deg,#0f766e,#0ea5e9);border-color:#0f766e;color:#fff}.auth-form{display:none;margin-top:4px}.auth-form.is-active{display:grid;gap:10px}.auth-field-label{font-size:12px;color:#334155}.auth-form input[type=text],.auth-form input[type=email],.auth-form input[type=password]{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:10px}.auth-field-check{display:flex;align-items:center;gap:8px;font-size:12px;color:#334155}.auth-submit{border:0;border-radius:10px;color:#fff;background:linear-gradient(140deg,#0f766e,#0ea5e9);padding:10px 12px;cursor:pointer;margin-top:4px}.auth-google-submit{background:#fff;color:#0f172a;border:1px solid #cbd5e1;display:block;width:100%;margin:6px auto 0;padding:12px 16px;font-size:15px;text-align:center}.auth-google-submit:before{content:"G";display:inline-block;width:16px;height:16px;margin-right:8px;border-radius:50%;background:#0f766e;color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center}.auth-divider{margin:16px 0 12px;border-bottom:1px dashed #94a3b8;color:#475569;text-align:center;font-size:12px;line-height:1}.auth-feedback{margin:8px 0 0;min-height:1em;font-size:13px;transition:.2s ease}.auth-feedback-error{color:#b91c1c}.auth-feedback-success{color:#0f766e}.is-auth-hidden,#authGate.is-hidden,.auth-modal.is-hidden{display:none}body{padding:14px}.app-shell{max-width:1500px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.topbar{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 18px;box-shadow:0 14px 28px #0f172a14;display:flex;justify-content:space-between;align-items:center;gap:18px}h1,h2,h3,p{margin:0}h1{font-size:24px}.topbar p{margin-top:6px;color:var(--muted);font-size:13px}button,input,label{font:inherit;text-decoration:none}button{text-decoration:none}.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 30px #02081714}.builder-layout{display:grid;grid-template-columns:280px 1fr;gap:14px;align-items:stretch;min-height:75vh}.control-panel{display:flex;flex-direction:column;gap:12px;padding:12px}.card{border:1px solid var(--line);border-radius:14px;padding:12px;background:#f8fafc}.card h2{font-size:17px;margin-bottom:8px}.hint{font-size:12px;color:var(--muted);margin-top:6px}.tool-grid,.button-row{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tool-btn,.align-btn,.button-row button,#clearBtn,#undoBtn,#redoBtn,#deleteBtn,#duplicateBtn,.ghost-btn{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);padding:8px 10px;cursor:pointer}.tool-btn:hover,.align-btn:hover,.button-row button:hover,#clearBtn:hover,#undoBtn:hover,#redoBtn:hover,#deleteBtn:hover,#duplicateBtn:hover,.ghost-btn:hover{background:#f1f5f9}.tool-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.mermaid-textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:8px 10px;resize:vertical;background:#fff;min-height:160px;font-family:Consolas,Courier New,monospace}.mermaid-hidden{display:none}.danger-btn{grid-column:span 2;border-color:var(--danger);color:var(--danger);background:var(--danger-soft)}.check-line{margin-top:10px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}#gridValue{color:var(--text);font-weight:700}.field-grid{margin-top:10px;display:grid;grid-template-columns:1fr;gap:8px}.field-grid label{display:grid;grid-template-columns:70px 1fr;gap:8px;align-items:center;color:var(--muted);font-size:13px}.field-grid input{border-radius:8px;border:1px solid var(--line);padding:8px 10px;width:100%;background:#fff}.field-grid select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:8px;border:1px solid var(--line);padding:8px 10px;width:100%;background:#fff;color:var(--text)}.field-grid input[type=color]{padding:5px;height:35px}.field-grid .color-palette{width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.field-grid .color-picker-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;clip:rect(0,0,0,0);overflow:hidden}#shapeTextColor,#shapeBorder,#shapeEdgeColor,#shapeFill{width:0px}.field-grid .color-palette-option{width:100%;aspect-ratio:1 / 1;border:1px solid var(--line);border-radius:8px;background:#fff;color:transparent;padding:0;line-height:0;position:relative;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.field-grid .color-palette-option:not(.color-palette-picker){background:var(--palette-color, #000000);border-color:#0f172a40}.field-grid .color-palette-option.color-palette-picker{display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;background:#fff;color:var(--muted)}.field-grid .color-palette-option.color-palette-none{border-color:#0f172a59;background-color:#fff!important;background-image:repeating-conic-gradient(#f8fafc,#f8fafc 25%,#e2e8f0 0%,#e2e8f0 50%)!important;background-position:50% 50%;background-size:8px 8px;overflow:hidden}.field-grid .color-palette-option.color-palette-none:after{content:"";position:absolute;left:2px;right:2px;top:50%;height:2.5px;background:#ef4444;border-radius:999px;transform:translateY(-50%) rotate(-45deg);transform-origin:center}.field-grid .color-palette-option.color-palette-roughjs{border-color:#0f172a59;background-color:#fff!important;background-image:repeating-linear-gradient(135deg,rgba(15,23,42,.42) 0 1.6px,transparent 1.6px 8px),repeating-linear-gradient(112deg,rgba(15,23,42,.24) 0 1.2px,transparent 1.2px 11px)!important;background-size:100% 100%;background-position:center}.field-grid .color-palette-option:hover{filter:brightness(.96)}.field-grid .color-palette-option.is-active{border-color:var(--primary);box-shadow:0 0 0 2px #0f766e29}.field-grid .color-palette-option:disabled,.field-grid .color-palette-picker:disabled{opacity:.5;cursor:not-allowed}.field-grid .gradient-palette{width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.field-grid .gradient-palette.palette-circles{display:flex;flex-wrap:wrap;gap:8px}.field-grid .gradient-palette-option{width:100%;aspect-ratio:1 / 1;border:1px solid var(--line);border-radius:8px;background:var(--gradient-swatch, linear-gradient(135deg, #18cccc, #0c48a8, #a81860, #d85430));padding:0;position:relative;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.field-grid .gradient-palette.palette-circles .gradient-palette-option{width:28px;height:28px;aspect-ratio:auto;border-radius:999px;overflow:hidden;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}.field-grid .gradient-palette-option.is-active{border-color:var(--primary);box-shadow:0 0 0 2px #0f766e29}.field-grid .gradient-palette-picker{display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:16px;font-weight:700;background:#fff}.gradient-builder-panel{margin-top:6px;display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#f8fafc}.gradient-builder-panel.is-hidden{display:none}.gradient-preview{width:100%;height:42px;border-radius:8px;border:1px solid rgba(148,163,184,.55);background-image:linear-gradient(135deg,#18cccc,#0c48a8,#a81860,#d85430)}.fill-mode-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.fill-mode-panel{margin-top:6px}.fill-mode-card{border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc;padding:8px}.field-grid .color-palette.palette-circles{display:flex;flex-wrap:wrap;gap:8px}.field-grid .palette-circles .color-palette-option{width:28px;height:28px;aspect-ratio:auto;border-radius:999px;border-width:2px}.field-grid .palette-circles .color-palette-option.color-palette-picker{font-size:14px;line-height:1}.field-grid .palette-circles .color-palette-option.is-active,.field-grid .gradient-palette.palette-circles .gradient-palette-option.is-active{transform:scale(1.08);box-shadow:0 0 0 2px #fff,0 0 0 4px #0f766e94;z-index:1}.fill-mode-tab{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 4px;font-size:11px}.fill-mode-tab.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}.line-fill-grid{display:flex;flex-wrap:wrap;gap:8px}.line-fill-option{--line-fill-preview-color: rgba(15, 23, 42, .6);--line-fill-preview-bg: #ffffff;border:1px solid var(--line);border-radius:999px;background:var(--line-fill-preview-bg);color:transparent;width:30px;height:30px;min-width:30px;padding:0;line-height:0;position:relative;overflow:hidden;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,filter .14s ease}.line-fill-option:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background-color:var(--line-fill-preview-bg)}.line-fill-option[data-fill-style=roughjs-fill]:before{background-image:repeating-linear-gradient(133deg,var(--line-fill-preview-color) 0 1.5px,transparent 1.5px 7px),repeating-linear-gradient(110deg,rgba(15,23,42,.35) 0 1px,transparent 1px 9px)}.line-fill-option[data-fill-style=hatching]:before{background-image:repeating-linear-gradient(135deg,var(--line-fill-preview-color) 0 1.5px,transparent 1.5px 7px)}.line-fill-option[data-fill-style=crosshatch]:before{background-image:repeating-linear-gradient(135deg,var(--line-fill-preview-color) 0 1.4px,transparent 1.4px 7px),repeating-linear-gradient(45deg,var(--line-fill-preview-color) 0 1.4px,transparent 1.4px 7px)}.line-fill-option[data-fill-style=dots]:before{background-image:radial-gradient(var(--line-fill-preview-color) 1.5px,transparent 1.5px);background-size:7px 7px}.line-fill-option[data-fill-style=scribble]:before{background-image:repeating-radial-gradient(circle at 50% 50%,transparent 0 7px,rgba(15,23,42,.2) 7px 8px),repeating-linear-gradient(27deg,var(--line-fill-preview-color) 0 1.1px,transparent 1.1px 6px),repeating-linear-gradient(157deg,rgba(15,23,42,.34) 0 1px,transparent 1px 8px)}.line-fill-option[data-fill-style=horizontal-lines]:before{background-image:repeating-linear-gradient(0deg,var(--line-fill-preview-color) 0 1.5px,transparent 1.5px 6px)}.line-fill-option[data-fill-style=vertical-lines]:before{background-image:repeating-linear-gradient(90deg,var(--line-fill-preview-color) 0 1.5px,transparent 1.5px 6px)}.line-fill-option[data-fill-style=diagonal-right]:before{background-image:repeating-linear-gradient(135deg,var(--line-fill-preview-color) 0 1.5px,transparent 1.5px 6px)}.line-fill-option[data-fill-style=diagonal-left]:before{background-image:repeating-linear-gradient(45deg,var(--line-fill-preview-color) 0 1.5px,transparent 1.5px 6px)}.line-fill-option[data-fill-style=zigzag-lines]:before{background-image:linear-gradient(135deg,transparent 48%,var(--line-fill-preview-color) 48% 52%,transparent 52%),linear-gradient(45deg,transparent 48%,var(--line-fill-preview-color) 48% 52%,transparent 52%);background-size:8px 8px;background-position:0 0,4px 0}.line-fill-option[data-fill-style=weave-lines]:before{background-image:repeating-linear-gradient(0deg,rgba(15,23,42,.52) 0 1.2px,transparent 1.2px 6px),repeating-linear-gradient(90deg,rgba(15,23,42,.32) 0 1.2px,transparent 1.2px 6px)}.line-fill-option:hover{filter:brightness(.96);transform:scale(1.04)}.line-fill-option.is-active{border-color:var(--primary);box-shadow:0 0 0 2px #fff,0 0 0 4px #0f766e94;transform:scale(1.08)}.gradient-more-btn{margin-top:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 10px;font-size:11px;text-align:left}.gradient-advanced{margin-top:8px}.gradient-mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.gradient-mode-tab{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 4px;font-size:11px}.gradient-mode-tab.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}.gradient-inline-check{display:flex;align-items:center;gap:6px;font-size:11px}.gradient-builder-row{display:flex;flex-direction:column;gap:4px}.gradient-builder-row.is-hidden{display:none}.gradient-degree-field span{min-width:44px;text-align:right}.gradient-actions{display:flex;justify-content:flex-start}.gradient-actions button{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:5px 8px;font-size:11px}.gradient-color-stops{display:flex;flex-direction:column;gap:6px}.gradient-stop-row{border:1px solid #dbe4ef;border-radius:8px;padding:6px;background:#fff;display:flex;flex-direction:column;gap:6px}.gradient-stop-top,.gradient-stop-bottom{display:flex;align-items:center;gap:6px}.gradient-stop-top input[type=color]{width:34px;height:30px;padding:2px}.gradient-stop-top input[type=text]{flex:1 1 auto;min-width:0}.gradient-stop-bottom input[type=range]{flex:1 1 auto}.gradient-stop-bottom input[type=number]{width:62px}.gradient-stop-remove{border:1px solid #dbe4ef;border-radius:6px;background:#fff;color:#b91c1c;width:28px;height:28px;line-height:1}.gradient-preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.gradient-preset-btn{width:100%;aspect-ratio:2 / 1;border:1px solid var(--line);border-radius:8px;background:var(--gradient-swatch, linear-gradient(135deg, #18cccc, #0c48a8, #a81860, #d85430));padding:0}.field-grid.is-disabled{opacity:.45;pointer-events:none}.shape-properties-panel{position:absolute;z-index:12;top:8px;right:8px;width:min(340px,calc(100% - 16px));max-height:calc(100% - 16px);border:1px solid var(--line);border-radius:12px;background:#fffffff7;box-shadow:0 12px 30px #0208172e;padding:8px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow:auto}.shape-properties-panel.is-hidden{display:none}.shape-properties-title{margin:0 0 6px;font-size:12px;font-weight:700;color:var(--muted)}.shape-properties-panel .field-grid{display:flex;flex-direction:column;align-items:stretch;margin-top:0;gap:8px}.shape-properties-panel .shape-panel-tabs{position:sticky;top:0;z-index:4;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:2px 0 6px;background:#fffffff7}.shape-properties-panel .shape-panel-tab-btn{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-size:11px;font-weight:600;line-height:1.1;padding:6px 4px;min-width:0;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shape-properties-panel .shape-panel-tab-btn:hover{background:#f1f5f9}.shape-properties-panel .shape-panel-tab-btn.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}.shape-properties-panel .shape-panel-tab-content{display:flex;flex-direction:column;gap:4px}.shape-properties-panel .shape-panel-tab-content.is-hidden{display:none}.shape-properties-panel .field-grid label{display:flex;flex-direction:column;gap:2px;min-width:95px;font-size:11px;width:100%}.shape-properties-panel .field-grid .shape-field-row{display:flex;flex-direction:column;gap:2px;min-width:95px;font-size:11px;width:100%;color:var(--muted)}.shape-properties-panel .field-grid input,.shape-properties-panel .field-grid select{width:100%;padding:4px 6px}.shape-properties-panel .field-grid input[type=range]{padding:0;border:none}.shape-properties-panel .field-grid .range-field{display:flex;align-items:center;gap:6px}.shape-properties-panel .field-grid .range-field input{flex:1 1 auto}.shape-properties-panel .field-grid .range-field span{min-width:44px;width:44px;font-size:11px;color:var(--muted);text-align:right}.shape-properties-panel .field-grid .width-stepper{display:flex;align-items:center;gap:6px;width:100%}.shape-properties-panel .field-grid .width-stepper-value{flex:1 1 auto;min-width:42px;width:46px;text-align:center;font-size:11px;color:var(--text);background:#fff;border:1px solid var(--line);border-radius:8px;padding:5px 4px;line-height:1}.shape-properties-panel .field-grid .width-stepper-btn{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:18px;line-height:1}.shape-properties-panel .field-grid .width-stepper-btn-small{font-size:16px}.shape-properties-panel .field-grid .width-stepper-btn:hover{background:#f1f5f9}.shape-properties-panel .field-grid .width-stepper-btn:disabled{opacity:.5;cursor:not-allowed}.shape-properties-panel .field-grid .style-icon-picker{width:100%;display:flex;flex-wrap:wrap;gap:8px}.theme-option-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.theme-tab-row{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:8px}.theme-tab-btn{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-size:12px;padding:6px 8px;font-weight:600}.theme-tab-btn:hover{background:#f1f5f9}.theme-tab-btn.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}.theme-tab-panel{display:block}.theme-tab-panel.is-hidden{display:none}.theme-option-btn{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 4px;font-size:12px;line-height:1}.theme-option-btn:hover{background:#f1f5f9}.theme-option-btn.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}.theme-option-btn:disabled{opacity:.5;cursor:not-allowed}.shape-properties-panel .field-grid .style-icon-btn{width:24px;height:24px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);aspect-ratio:auto;min-height:24px;padding:0;font-size:11px;line-height:1;display:inline-flex;align-items:center;justify-content:center;transition:background .16s ease,border-color .16s ease,color .16s ease}.shape-properties-panel .field-grid .style-icon-btn:hover{background:#f1f5f9}.shape-properties-panel .field-grid .style-icon-btn.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}.shape-properties-panel .field-grid .style-icon-btn:disabled{opacity:.5;cursor:not-allowed}.shape-properties-panel .border-persona-picker{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.shape-properties-panel .border-persona-picker .persona-btn{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 4px;font-size:11px;line-height:1.1;text-align:center}.shape-properties-panel .border-persona-picker .persona-btn:hover{background:#f1f5f9}.shape-properties-panel .border-persona-picker .persona-btn.is-active{border-color:var(--primary);color:var(--primary);background:#eff6ff}html[data-theme=dark] .shape-properties-panel .field-grid .style-icon-btn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .field-grid .style-icon-btn{background:#1e293b;border-color:#e2e8f059;color:#e2e8f0}html[data-theme=dark] .shape-properties-panel .field-grid .style-icon-btn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .field-grid .style-icon-btn:hover{background:#334155;border-color:#94a3b8}html[data-theme=dark] .shape-properties-panel .field-grid .style-icon-btn.is-active,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .field-grid .style-icon-btn.is-active{background:#14b8a633;border-color:#67e8f98c;color:#67e8f9}html[data-theme=dark] .shape-properties-panel .border-persona-picker .persona-btn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .border-persona-picker .persona-btn{background:#1e293b;border-color:#e2e8f059;color:#e2e8f0}html[data-theme=dark] .shape-properties-panel .border-persona-picker .persona-btn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .border-persona-picker .persona-btn:hover{background:#334155;border-color:#94a3b8}html[data-theme=dark] .shape-properties-panel .shape-panel-tabs,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .shape-panel-tabs{background:#0f172aeb}html[data-theme=dark] .shape-properties-panel .shape-panel-tab-btn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .shape-panel-tab-btn{background:#1e293b;border-color:#e2e8f059;color:#e2e8f0}html[data-theme=dark] .shape-properties-panel .shape-panel-tab-btn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .shape-panel-tab-btn:hover{background:#334155;border-color:#94a3b8}html[data-theme=dark] .shape-properties-panel .shape-panel-tab-btn.is-active,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .shape-panel-tab-btn.is-active,html[data-theme=dark] .shape-properties-panel .border-persona-picker .persona-btn.is-active,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .border-persona-picker .persona-btn.is-active{background:#14b8a633;border-color:#67e8f98c;color:#67e8f9}html[data-theme=dark] .shape-properties-panel #shapeTextIconApplyBtn,html[data-theme=dark] .shape-properties-panel #shapeTextIconClearBtn,html[data-theme=dark] .shape-properties-panel #openShapeIconLibraryBtn,html[data-theme=dark] .shape-properties-panel #shapeTextIconUploadBtn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #shapeTextIconApplyBtn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #shapeTextIconClearBtn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #openShapeIconLibraryBtn,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #shapeTextIconUploadBtn{background:#1e293b;border-color:#e2e8f059;color:#e2e8f0}html[data-theme=dark] .shape-properties-panel #shapeTextIconApplyBtn:hover,html[data-theme=dark] .shape-properties-panel #shapeTextIconClearBtn:hover,html[data-theme=dark] .shape-properties-panel #openShapeIconLibraryBtn:hover,html[data-theme=dark] .shape-properties-panel #shapeTextIconUploadBtn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #shapeTextIconApplyBtn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #shapeTextIconClearBtn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #openShapeIconLibraryBtn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel #shapeTextIconUploadBtn:hover{background:#334155;border-color:#94a3b8}.shape-properties-panel .shape-actions{margin-top:8px;display:grid;grid-template-columns:repeat(3,58px);gap:6px;justify-content:start}.shape-properties-panel .shape-actions button{width:58px;height:48px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);padding:0;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.shape-properties-panel .shape-actions .shape-action-icon{font-size:14px;line-height:1}.shape-properties-panel .shape-actions .shape-action-label{font-size:10px;line-height:1}.shape-properties-panel .shape-actions button:hover{background:#f1f5f9}html[data-theme=dark] .shape-properties-panel .shape-actions button,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .shape-actions button{background:#1e293b;border-color:#e2e8f059;color:#e2e8f0}html[data-theme=dark] .shape-properties-panel .shape-actions button:hover,body[data-page=editor][data-diagram-theme=dark] .shape-properties-panel .shape-actions button:hover{background:#334155;border-color:#94a3b8}.shape-properties-panel #shapeLabel{width:100%}.shape-properties-panel #shapeIconField{gap:8px}.shape-properties-panel .shape-icon-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shape-properties-panel .shape-icon-size-controls{align-items:center}.shape-properties-panel .shape-icon-size-range{flex:1 1 170px;min-width:150px}.shape-properties-panel .shape-icon-size-range span{min-width:48px;text-align:right}.shape-properties-panel #shapeTextIconPosition{flex:1 1 120px;min-width:0}.shape-properties-panel #openShapeIconLibraryBtn{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 10px}.shape-properties-panel #openShapeIconLibraryBtn:hover{background:#f1f5f9}.shape-properties-panel .icon-position-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.shape-properties-panel .shape-icon-color-label{font-size:12px;color:var(--muted)}.shape-properties-panel #shapeTextIconColor{width:48px;height:30px;border:1px solid var(--line);border-radius:8px;background:transparent;padding:2px;cursor:pointer}.shape-properties-panel #shapeTextIconCustom{flex:1 1 160px;min-width:120px}.shape-properties-panel #shapeTextIconApplyBtn,.shape-properties-panel #shapeTextIconClearBtn,.shape-properties-panel #shapeTextIconUploadBtn{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:6px 10px}.shape-properties-panel #shapeTextIconApplyBtn:hover,.shape-properties-panel #shapeTextIconClearBtn:hover,.shape-properties-panel #shapeTextIconUploadBtn:hover{background:#f1f5f9}.shape-properties-panel .shape-icon-upload-name{font-size:12px;color:var(--muted)}.shape-properties-panel .shape-icon-file-input{display:none}.shape-icon-library-card{width:min(620px,92vw);max-height:min(72vh,620px);display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr);gap:6px}.shape-icon-library-card #shapeIconLibrarySearch{border-radius:8px;border:1px solid var(--line);padding:7px 10px;width:100%;background:#fff}.shape-icon-library-grid{border:1px solid #dbe4ef;border-radius:10px;padding:4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:4px;overflow:auto;min-height:150px;max-height:42vh;background:#f8fafc}.shape-icon-library-btn{border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:4px 3px;display:grid;gap:0;justify-items:center;align-content:center;min-height:58px;cursor:pointer}.shape-icon-library-btn:hover{border-color:#94a3b8;background:#f8fafc}.shape-icon-library-btn:focus-visible{outline:2px solid rgba(14,165,233,.45);outline-offset:2px}.shape-icon-library-glyph{font-family:Material Symbols Outlined,"Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:24px;line-height:1}.status{font-size:13px;color:var(--primary);margin:0 4px 4px;text-align:center}.canvas-panel{display:flex;flex-direction:column;padding:14px;gap:6px}.canvas-toolbar{display:flex;flex-wrap:nowrap;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;border:1px solid #334155;border-radius:12px;background:#0f172a;padding:8px;overflow-x:auto;box-shadow:0 6px 24px #02061759;-webkit-user-select:none;user-select:none;touch-action:none;cursor:grab}.canvas-toolbar.is-toolbar-dragging{cursor:grabbing}.canvas-toolbar .tool-btn.compact-tool{width:38px;height:38px;min-width:0;padding:0;border-radius:10px;border:1px solid #374151;background:#111827;color:#e5e7eb;display:inline-flex;gap:0;align-items:center;justify-content:center}.canvas-toolbar .tool-btn.compact-tool:hover{background:#1f2937}.canvas-toolbar .tool-btn.compact-tool.active{background:#312e81;border-color:#6366f1;color:#fff}.freehand-mode-options{position:fixed;display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid #374151;border-radius:10px;background:#111827;box-shadow:0 8px 22px #02061773;z-index:6}.freehand-mode-options.is-hidden{display:none}.freehand-mode-btn{width:28px;height:28px;border:1px solid #4b5563;border-radius:8px;background:#0f172a;color:#e5e7eb;display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:14px;line-height:1}.freehand-mode-btn .material-symbols-outlined{font-size:16px;line-height:1;font-variation-settings:"FILL" 0,"wght" 500,"GRAD" 0,"opsz" 20}.freehand-mode-btn:hover{background:#1f2937}.freehand-mode-btn.is-active{background:#312e81;border-color:#6366f1;color:#fff}.tool-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1;flex-shrink:0;font-variation-settings:"FILL" 0,"wght" 500,"GRAD" 0,"opsz" 20}.tool-icon.tool-icon-svg{width:18px;height:18px}.tool-icon.tool-icon-svg svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tool-label{display:none}.tool-label{font-size:10px;font-weight:600;white-space:nowrap}.canvas-shell{border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;flex:1;min-height:0}.ruler{position:relative;background:var(--ruler-bg);color:var(--ruler-text);-webkit-user-select:none;user-select:none;overflow:hidden}.ruler-x{height:24px;margin-left:28px}.canvas-main{display:flex;flex:1;position:relative}body[data-page=editor][data-diagram-theme=neon] .canvas-shell{border-color:#173767;background:#04081d;box-shadow:inset 0 1px #9ac1ff24}body[data-page=editor][data-diagram-theme=neon] .canvas-main:before,body[data-page=editor][data-diagram-theme=neon] .canvas-main:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}body[data-page=editor][data-diagram-theme=neon] .canvas-main:before{background:radial-gradient(circle at 18% 14%,#178aff57,#178aff00 45%),radial-gradient(circle at 82% 86%,#f942b43b,#f942b400 47%);opacity:.92;z-index:0}body[data-page=editor][data-diagram-theme=neon] .canvas-main:after{background:radial-gradient(circle at 50% 52%,#26c3ff1a,#26c3ff00 58%),linear-gradient(145deg,#0306151f,#070d204d);mix-blend-mode:screen;z-index:0}body[data-page=editor][data-diagram-theme^=modern-] .canvas-shell{border-color:#60a5fa73;background:#090f1f;box-shadow:inset 0 1px #bae6fd1f}body[data-page=editor][data-diagram-theme^=modern-] .canvas-main:before,body[data-page=editor][data-diagram-theme^=modern-] .canvas-main:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}body[data-page=editor][data-diagram-theme=modern-aurora] .canvas-main:before{background:radial-gradient(circle at 18% 12%,#3b82f659,#3b82f600 46%),radial-gradient(circle at 84% 82%,#8b5cf647,#8b5cf600 50%);z-index:0}body[data-page=editor][data-diagram-theme=modern-candy] .canvas-main:before{background:radial-gradient(circle at 16% 14%,#ec48995c,#ec489900 47%),radial-gradient(circle at 88% 78%,#f973164f,#f9731600 50%);z-index:0}body[data-page=editor][data-diagram-theme=modern-ocean] .canvas-main:before{background:radial-gradient(circle at 16% 12%,#0ea5e957,#0ea5e900 46%),radial-gradient(circle at 82% 84%,#22c55e3d,#22c55e00 48%);z-index:0}body[data-page=editor][data-diagram-theme=modern-sunset] .canvas-main:before{background:radial-gradient(circle at 14% 14%,#f9731661,#f9731600 46%),radial-gradient(circle at 86% 80%,#dc26264d,#dc262600 50%);z-index:0}body[data-page=editor][data-diagram-theme=modern-cosmic] .canvas-main:before{background:radial-gradient(circle at 18% 12%,#6366f15c,#6366f100 46%),radial-gradient(circle at 82% 84%,#ec489947,#ec489900 50%);z-index:0}body[data-page=editor][data-diagram-theme=modern-mint] .canvas-main:before{background:radial-gradient(circle at 18% 14%,#14b8a657,#14b8a600 46%),radial-gradient(circle at 84% 82%,#22d3ee42,#22d3ee00 49%);z-index:0}body[data-page=editor][data-diagram-theme^=modern-] .canvas-main:after{background:radial-gradient(circle at 50% 54%,#ffffff14,#fff0 60%),linear-gradient(145deg,#04081933,#09112661);mix-blend-mode:screen;z-index:0}.ruler-y{width:28px;min-height:100%}.ruler-tick{position:absolute;font-size:10px;line-height:1}.ruler-x .ruler-tick{top:6px;border-left:1px solid var(--ruler-line);height:100%;padding-top:14px}.ruler-y .ruler-tick{left:2px;border-top:1px solid var(--ruler-line);width:24px;text-align:center;transform:translateY(-50%)}.canvas-surface{--grid-size: 24px;--grid-dot-size: 1.3px;--grid-dot-gap: 6px;position:relative;min-height:0;flex:1;overflow:hidden;touch-action:none;background-color:var(--canvas-bg);background-image:radial-gradient(circle at 0 0,var(--grid-minor) 0 var(--grid-dot-size),transparent var(--grid-dot-size)),linear-gradient(var(--grid-major) 1px,transparent 1px),linear-gradient(90deg,var(--grid-major) 1px,transparent 1px);background-image:radial-gradient(circle at 0 0,color-mix(in srgb,var(--grid-minor) 38%,transparent) 0 var(--grid-dot-size),transparent var(--grid-dot-size)),linear-gradient(color-mix(in srgb,var(--grid-major) 52%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--grid-major) 52%,transparent) 1px,transparent 1px);background-size:var(--grid-dot-gap) var(--grid-dot-gap),calc(var(--grid-size) * 5) calc(var(--grid-size) * 5),calc(var(--grid-size) * 5) calc(var(--grid-size) * 5);background-position:0 0,0 0,0 0}.canvas-surface.is-grid-hidden{background-image:none}.shape{position:absolute;display:flex;align-items:center;justify-content:center;border:2px solid var(--text);border-radius:10px;cursor:move;-webkit-user-select:none;user-select:none;box-sizing:border-box;box-shadow:0 6px 14px #0f172a1a}.shape.is-selected{outline:3px solid rgba(15,118,110,.45)}.shape-label{padding:4px 8px;border-radius:999px;background:#0f172a14;color:inherit;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700}.shape-freehand{border:none!important;background:transparent!important;pointer-events:all;box-shadow:none}.freehand-svg{width:100%;height:100%}.shape-label-freehand{position:absolute;top:-24px;left:0}.shape-rectangle .shape-label,.shape-rounded .shape-label,.shape-square .shape-label,.shape-circle .shape-label,.shape-oval .shape-label,.shape-terminator .shape-label,.shape-parallelogram .shape-label{background:transparent}.shape-circle{border-radius:999px}.shape-diamond{transform:rotate(45deg)}.shape-diamond .shape-label{transform:rotate(-45deg)}.canvas-footer{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#334155;font-size:11px;padding:4px 8px;border:1px solid #d7e1ee;border-radius:10px;background:linear-gradient(180deg,#fffffffa,#f8fafcf5);box-shadow:inset 0 1px #ffffffd9;overflow-x:auto;white-space:nowrap}@keyframes authReveal{0%{transform:translateY(12px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.status-bar-group{display:flex;align-items:center;gap:6px;flex:0 0 auto;position:relative}body[data-page=editor]{padding:0}body[data-page=editor] .app-shell,body[data-page=editor] .app-shell-fullscreen{max-width:none;width:100vw;height:100dvh;min-height:100dvh;margin:0;padding:0;gap:8px}body[data-page=editor] .canvas-panel{min-height:0;position:relative}body[data-page=editor] .canvas-panel-fullscreen{height:100%;padding:0;gap:6px;border-radius:14px;box-shadow:none;min-height:0}body[data-page=editor] .canvas-shell{min-height:0;position:relative}body[data-page=editor] .canvas-main{min-height:0}body[data-page=editor] .canvas-toolbar{position:fixed;top:10px;left:50%;right:auto;transform:translate(-50%);z-index:20;width:fit-content;max-width:calc(100% - 24px);margin:0;pointer-events:auto}body[data-page=editor] #openMermaidModalBtn,body[data-page=editor] #rotateGraphBtn,body[data-page=editor] #resetButton,body[data-page=editor] .ruler-x,body[data-page=editor] .ruler-y{display:none!important}.status-chip{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border:1px solid #dbe4ef;border-radius:7px;background:#fff;color:#334155;font-weight:600}.status-chip-connection{flex:0 1 min(34vw,440px);min-width:220px;max-width:440px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#075985;border-color:#bae6fd;background:#f0f9ff}#connectionStatus:before{content:"☀️ ";margin-right:4px;font-size:11px}.status-chip-connection.is-active{color:#854d0e;border-color:#fde68a;background:#fffbeb}.status-chip-message{flex:0 0 auto;color:var(--primary);border-color:#0f766e38}html[data-theme=dark] .home-shell,html[data-theme=dark] .home-nav,html[data-theme=dark] .home-hero,html[data-theme=dark] .home-media-panel,html[data-theme=dark] .home-cta-strip,html[data-theme=dark] .proof-strip,html[data-theme=dark] .feature-section,html[data-theme=dark] .home-feature-points,html[data-theme=dark] .home-template-section,html[data-theme=dark] .home-showcase-section,html[data-theme=dark] .home-faq-section,html[data-theme=dark] .feature-card,html[data-theme=dark] .home-feature-card,html[data-theme=dark] .home-template-card,html[data-theme=dark] .home-showcase-card,html[data-theme=dark] .home-feature-grid,html[data-theme=dark] .home-template-grid,html[data-theme=dark] .home-faq-grid,html[data-theme=dark] .auth-modal,html[data-theme=dark] .auth-card,html[data-theme=dark] .topbar,html[data-theme=dark] .panel,html[data-theme=dark] .card,html[data-theme=dark] .tool-btn,html[data-theme=dark] .align-btn,html[data-theme=dark] .button-row button,html[data-theme=dark] #clearBtn,html[data-theme=dark] #undoBtn,html[data-theme=dark] #redoBtn,html[data-theme=dark] #deleteBtn,html[data-theme=dark] #duplicateBtn,html[data-theme=dark] .ghost-btn,html[data-theme=dark] .canvas-footer,html[data-theme=dark] .status-chip,html[data-theme=dark] .status-chip-connection,html[data-theme=dark] .status-chip-message,html[data-theme=dark] .profile-menu,html[data-theme=dark] .account-modal-card,html[data-theme=dark] .pricing-modal-card,html[data-theme=dark] .mermaid-modal-card,html[data-theme=dark] .ai-prompt-dock,html[data-theme=dark] .toolbar-popup,html[data-theme=dark] .shape-properties-panel,html[data-theme=dark] .auth-google-submit{background:var(--card);border-color:var(--line);color:var(--text)}html[data-theme=dark] .home-nav-links a,html[data-theme=dark] .home-nav-link-btn,html[data-theme=dark] .home-nav-btn,html[data-theme=dark] .home-brand,html[data-theme=dark] .home-kicker,html[data-theme=dark] .home-title,html[data-theme=dark] .home-subtitle,html[data-theme=dark] .home-copy,html[data-theme=dark] .home-media-title,html[data-theme=dark] .home-media-subtitle,html[data-theme=dark] .home-section-title,html[data-theme=dark] .home-section-head,html[data-theme=dark] .feature-copy,html[data-theme=dark] .feature-card p,html[data-theme=dark] .feature-card h3,html[data-theme=dark] .home-feature-card h3,html[data-theme=dark] .home-feature-card p,html[data-theme=dark] .home-template-card h3,html[data-theme=dark] .home-template-card p,html[data-theme=dark] .home-showcase-card p,html[data-theme=dark] .home-faq-card h3,html[data-theme=dark] .home-faq-card p,html[data-theme=dark] .proof-strip p,html[data-theme=dark] .proof-strip span,html[data-theme=dark] .auth-brand,html[data-theme=dark] .auth-title,html[data-theme=dark] .auth-subtitle,html[data-theme=dark] .auth-tab,html[data-theme=dark] .auth-label,html[data-theme=dark] .auth-field-label,html[data-theme=dark] .auth-mode-note,html[data-theme=dark] .topbar p,html[data-theme=dark] .tool-label,html[data-theme=dark] .tool-icon,html[data-theme=dark] .hint,html[data-theme=dark] .field-grid label,html[data-theme=dark] .toolbar-popup label,html[data-theme=dark] .toolbar-popup h3,html[data-theme=dark] .status-chip,html[data-theme=dark] .status-chip.profile-menu-trigger,html[data-theme=dark] .auth-google-submit:before{color:var(--text)}html[data-theme=dark] .home-pill-row span,html[data-theme=dark] .home-steps li:before,html[data-theme=dark] .sample-dot{background:#1e293b;border-color:var(--line);color:var(--text)}html[data-theme=dark] .home-steps li{border-color:var(--line);background:#0f172a;border-left:3px solid var(--primary);color:var(--text)}html[data-theme=dark] #how-to,html[data-theme=dark] .home-faq-section{background:#0f172ab3;border:1px solid var(--line);border-radius:16px}html[data-theme=dark] .home-steps{background:#0f172acc;border:1px solid var(--line);border-radius:14px;padding:12px}html[data-theme=dark] .home-steps li strong{color:#f1f5f9}html[data-theme=dark] .home-steps span,html[data-theme=dark] .home-section-intro{color:#e2e8f0}html[data-theme=dark] .home-faq-card{background:linear-gradient(150deg,#2dd4bf1f,#0d1a23cc);border-color:#2dd4bf47}html[data-theme=dark] .home-faq-card p,html[data-theme=dark] .home-faq-card h3{color:#f8fafc}html[data-theme=dark] .tool-btn:hover,html[data-theme=dark] .align-btn:hover,html[data-theme=dark] .button-row button:hover,html[data-theme=dark] #clearBtn:hover,html[data-theme=dark] #undoBtn:hover,html[data-theme=dark] #redoBtn:hover,html[data-theme=dark] #deleteBtn:hover,html[data-theme=dark] #duplicateBtn:hover,html[data-theme=dark] .ghost-btn:hover,html[data-theme=dark] .profile-menu button:hover,html[data-theme=dark] .profile-menu-link:hover,html[data-theme=dark] .theme-toggle:hover{background:#1e293b}html[data-theme=dark] .sample-track-wrap,html[data-theme=dark] .sample-slider .sample-track-wrap{border-color:var(--line)}html[data-theme=dark] .sample-dot.is-active{background:#2dd4bf;border-color:#5eead4}html[data-theme=dark] .home-nav-links a:hover{border-bottom-color:#2dd4bf}html[data-theme=dark] .home-nav-links .home-outline-btn:hover{border-color:#2dd4bf}html[data-theme=dark] .home-nav-link-btn:hover{border-bottom-color:#2dd4bf}html[data-theme=dark] .home-outline-btn,html[data-theme=dark] .home-primary-btn{color:#e2e8f0}html[data-theme=dark] .home-stats{color:var(--text)}html[data-theme=dark] .home-stats p{background:#2dd4bf29}html[data-theme=dark] .home-stats strong{color:#5eead4}html[data-theme=dark] .home-outline-btn{background:transparent}html[data-theme=dark] .home-highlight-band{border-color:#67e8f959;background:linear-gradient(170deg,#0f172ae6,#031420eb)}html[data-theme=dark] .home-split-media img{border-color:#5eead44d;background:#0f172ad9;box-shadow:0 18px 36px #02061773}html[data-theme=dark] .home-accordion details{border-color:#5eead447;background:linear-gradient(160deg,#0f172aeb,#0a1221e6)}html[data-theme=dark] .home-accordion summary{color:#f8fafc}html[data-theme=dark] .home-accordion summary:after{color:#5eead4}html[data-theme=dark] .home-accordion details p{color:#e2e8f0}html[data-theme=dark] .theme-toggle{background:#1e293b;border-color:#64748b;color:#e2e8f0}html[data-theme=dark] .theme-tab-btn{background:#1e293b;border-color:#e2e8f059;color:#e2e8f0}html[data-theme=dark] .theme-tab-btn:hover{background:#334155;border-color:#94a3b8}html[data-theme=dark] .theme-tab-btn.is-active{background:#14b8a633;border-color:#67e8f98c;color:#67e8f9}html[data-theme=dark] .auth-google-submit{border-color:var(--line);color:var(--text)}html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select,html[data-theme=dark] button{accent-color:var(--primary)}html[data-theme=dark] .sample-track-wrap,html[data-theme=dark] .sample-slide,html[data-theme=dark] .sample-meta,html[data-theme=dark] .sample-arrow{border-color:var(--line);background:var(--card);color:var(--text)}html[data-theme=dark] .sample-meta p,html[data-theme=dark] .sample-meta span{color:var(--muted)}html[data-theme=dark] .mermaid-textarea,html[data-theme=dark] .toolbar-popup input:not([type=checkbox]):not([type=radio]),html[data-theme=dark] .toolbar-popup select,html[data-theme=dark] .field-grid input,html[data-theme=dark] .field-grid select,html[data-theme=dark] .field-grid .color-palette-picker,html[data-theme=dark] .account-summary,html[data-theme=dark] .account-stat,html[data-theme=dark] .account-work-item,html[data-theme=dark] .profile-menu button,html[data-theme=dark] .profile-menu-link,html[data-theme=dark] .profile-menu-stat,html[data-theme=dark] .pricing-tab,html[data-theme=dark] .pricing-card,html[data-theme=dark] .mermaid-modal-card,html[data-theme=dark] .auth-card,html[data-theme=dark] .auth-modal,html[data-theme=dark] .ai-prompt-textarea,html[data-theme=dark] .ai-prompt-message,html[data-theme=dark] .ai-prompt-minimize-btn,html[data-theme=dark] .ai-prompt-floating-btn{background:#1e293b;color:var(--text)}html[data-theme=dark] .field-grid .color-palette-option:not(.color-palette-picker){background:var(--palette-color, #000000);border-color:#e2e8f059;color:var(--text)}html[data-theme=dark] .field-grid .color-palette-option.color-palette-none{border-color:#e2e8f08c;background-color:#0f172a!important;background-image:repeating-conic-gradient(#1e293b,#1e293b 25%,#0f172a 0%,#0f172a 50%)!important;background-position:50% 50%;background-size:8px 8px}html[data-theme=dark] .field-grid .palette-circles .color-palette-option.is-active,html[data-theme=dark] .field-grid .gradient-palette.palette-circles .gradient-palette-option.is-active{box-shadow:0 0 0 2px #0f172a,0 0 0 4px #2dd4bfd1}html[data-theme=dark] .gradient-builder-panel,html[data-theme=dark] .gradient-stop-row,html[data-theme=dark] .fill-mode-tab,html[data-theme=dark] .fill-mode-card,html[data-theme=dark] .gradient-more-btn,html[data-theme=dark] .gradient-mode-tab,html[data-theme=dark] .gradient-actions button,html[data-theme=dark] .gradient-stop-remove,html[data-theme=dark] .field-grid .gradient-palette-picker{background:#1e293b;color:var(--text);border-color:#e2e8f059}html[data-theme=dark] .gradient-mode-tab.is-active,html[data-theme=dark] .fill-mode-tab.is-active{background:#14b8a633;color:#67e8f9;border-color:#67e8f980}html[data-theme=dark] .line-fill-option{--line-fill-preview-color: rgba(226, 232, 240, .64);--line-fill-preview-bg: #0f172a;border-color:#e2e8f059}html[data-theme=dark] .line-fill-option.is-active{border-color:#67e8f980;box-shadow:0 0 0 2px #0f172a,0 0 0 4px #67e8f9ad}html[data-theme=dark] .pricing-tab-row{background:#0f172a;border-color:#334155}html[data-theme=dark] .pricing-tab{color:#f8fafc;background:transparent}html[data-theme=dark] .pricing-tab:hover:not(.is-active){background:#1e293b}html[data-theme=dark] .pricing-tab.is-active{background:linear-gradient(130deg,#14b8a6,#0ea5e9);color:#fff;box-shadow:0 8px 18px #14b8a640}html[data-theme=dark] .auth-divider{border-bottom-color:var(--line);color:var(--muted);background:transparent}html[data-theme=dark] .auth-modal-backdrop{background:#020617cc}html[data-theme=dark] .auth-card{box-shadow:0 24px 58px #02061799}html[data-theme=dark] .auth-brand,html[data-theme=dark] .auth-title,html[data-theme=dark] .auth-subtitle,html[data-theme=dark] .auth-mode-note,html[data-theme=dark] .auth-field-label,html[data-theme=dark] .auth-field-check{color:var(--text)}html[data-theme=dark] .auth-close-btn{border-color:var(--line);background:#1e293b;color:var(--text)}html[data-theme=dark] .auth-tab{border-color:var(--line);background:#0f172a;color:var(--muted)}html[data-theme=dark] .auth-tab.is-active{background:linear-gradient(140deg,var(--primary),#0ea5e9);color:#fff}html[data-theme=dark] .auth-form input[type=text],html[data-theme=dark] .auth-form input[type=email],html[data-theme=dark] .auth-form input[type=password]{background:#1e293b;border-color:var(--line);color:var(--text)}html[data-theme=dark] .auth-form input::placeholder{color:#64748b}html[data-theme=dark] .auth-google-submit{background:#1e293b;border-color:var(--line)}html[data-theme=dark] .auth-google-submit:before{background:var(--primary);color:#020617}html[data-theme=dark] .auth-feedback-error{color:#fca5a5}html[data-theme=dark] .auth-feedback-success{color:var(--primary)}.home-nav-btn,.theme-toggle{position:relative}.theme-toggle{cursor:pointer}.is-hidden{display:none!important}.home-profile-shell,.status-links-shell{position:relative;display:inline-flex;align-items:center}.status-editor-menu-shell{position:relative;display:inline-flex;align-items:center;gap:4px}.status-editor-menu-group{position:relative;display:inline-flex;align-items:center}.status-chip.status-links-menu-trigger{min-width:32px;padding:3px 6px;justify-content:center;border-radius:8px;border-color:#cbd5e1;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 6px 14px #0f172a14;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}.status-chip.status-links-menu-trigger .tool-icon{font-size:18px;line-height:1}.status-chip.status-links-menu-trigger:hover{border-color:#94a3b8;box-shadow:0 8px 18px #0f172a1f}.status-chip.status-links-menu-trigger:focus-visible{outline:2px solid rgba(15,118,110,.5);outline-offset:2px}.status-chip.status-links-menu-trigger[aria-expanded=true]{border-color:#0f766e85;box-shadow:0 10px 22px #0f766e2e;transform:translateY(-1px)}.status-chip.status-editor-menu-trigger{min-width:54px;padding:3px 8px;justify-content:center;gap:5px;border-radius:8px;border-color:#cbd5e1;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 6px 14px #0f172a14;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}.status-editor-menu-caret{font-size:9px;opacity:.7}.status-chip.status-editor-menu-trigger:hover{border-color:#94a3b8;box-shadow:0 8px 18px #0f172a1f}.status-chip.status-editor-menu-trigger:focus-visible{outline:2px solid rgba(15,118,110,.5);outline-offset:2px}.status-chip.status-editor-menu-trigger[aria-expanded=true]{border-color:#0f766e85;box-shadow:0 10px 22px #0f766e2e;transform:translateY(-1px)}.status-links-menu{position:fixed;z-index:140;top:0;left:0;min-width:190px;width:min(220px,calc(100vw - 20px))}.status-editor-menu{position:fixed;z-index:140;top:0;left:0;min-width:210px;width:min(240px,calc(100vw - 24px))}.status-editor-menu button:after{content:"";display:none}.status-editor-menu button:disabled,.status-editor-menu button:disabled:hover{opacity:.5;cursor:not-allowed;transform:none;border-color:transparent;background:#e2e8f0b3}.status-editor-menu-divider{height:1px;margin:2px 4px;background:#dbe4ef}.status-chip.profile-menu-trigger{padding:5px 12px 5px 7px;gap:9px;min-width:170px;max-width:min(240px,calc(100vw - 30px));border-radius:999px;border-color:#cbd5e1;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 8px 20px #0f172a14;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}.status-chip.profile-menu-trigger:hover{border-color:#94a3b8;box-shadow:0 10px 24px #0f172a1f}.status-chip.profile-menu-trigger:focus-visible{outline:2px solid rgba(15,118,110,.5);outline-offset:2px}.status-chip.profile-menu-trigger[aria-expanded=true]{border-color:#0f766e85;box-shadow:0 12px 28px #0f766e2e;transform:translateY(-1px)}.profile-avatar{width:26px;height:26px;border-radius:999px;border:2px solid rgba(255,255,255,.82);display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7c3aed,#06b6d4);color:#fff;font-size:11px;font-weight:700;position:relative;flex-shrink:0;background-size:cover;background-position:center;box-shadow:0 4px 12px #082f4938}.profile-avatar-text{line-height:1}.profile-avatar-text.is-hidden{display:none!important}.profile-premium-badge{position:absolute;right:-5px;bottom:-4px;width:17px;height:17px;border-radius:999px;border:1px solid rgba(120,53,15,.2);background:radial-gradient(circle at 28% 22%,#fef3c7,#f59e0b 58%,#b45309);display:grid;place-items:center;font-size:11px;box-shadow:0 6px 14px #b4530957}.profile-avatar.is-pro{border-color:#facc15d1;box-shadow:0 0 0 2px #f59e0b40,0 8px 18px #f59e0b52}.status-chip.profile-menu-trigger.is-pro{border-color:#f59e0b8f;background:linear-gradient(130deg,#fffbebfa,#fef3c7f0);box-shadow:0 14px 30px #d9770633}.status-chip.profile-menu-trigger.is-pro:hover{border-color:#d97706b3;box-shadow:0 16px 34px #d977063d}.profile-menu.is-pro{border-color:#f59e0b6b;background:linear-gradient(180deg,#fffbeb,#fff7ed)}.profile-menu-stat.is-pro{border-color:#f59e0b73;background:linear-gradient(130deg,#fde68a38,#fbbf2433)}body.is-pro-member{background-image:radial-gradient(1100px 560px at -10% -10%,rgba(245,158,11,.14),transparent 60%),radial-gradient(920px 520px at 108% 0%,rgba(14,165,233,.13),transparent 55%),linear-gradient(180deg,#fff0,#fff7ed59);background-attachment:fixed}html[data-theme=dark] body.is-pro-member{background-image:radial-gradient(1200px 620px at -8% -12%,rgba(245,158,11,.12),transparent 58%),radial-gradient(860px 480px at 104% 2%,rgba(14,165,233,.14),transparent 56%),linear-gradient(180deg,#0f172a00,#1e293b6b)}.profile-menu-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;color:#0f172a}.profile-menu-arrow{font-size:11px;opacity:.7;transition:transform .18s ease,opacity .18s ease}.status-chip.profile-menu-trigger[aria-expanded=true] .profile-menu-arrow{transform:rotate(180deg);opacity:1}.profile-menu{position:fixed;z-index:140;top:0;left:0;min-width:230px;width:min(270px,calc(100vw - 24px));background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #dbe4ef;border-radius:14px;box-shadow:0 20px 42px #0208173d;padding:8px;display:grid;gap:6px;overflow:hidden}.home-profile-menu{right:auto}.profile-menu button,.profile-menu-link{border:1px solid transparent;border-radius:10px;background:#f8fafceb;color:#0f172a;padding:9px 10px;text-align:left;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;display:flex;align-items:center;gap:8px;width:100%;transition:background .16s ease,border-color .16s ease,transform .16s ease}.profile-menu button:not(.danger-btn):after,.profile-menu-link:after{content:">";margin-left:auto;opacity:.48;font-size:12px;font-weight:700}.profile-menu-stat{border:1px solid rgba(20,184,166,.35);border-radius:10px;background:linear-gradient(135deg,#2dd4bf1f,#bae6fd3d);color:#0f172a;padding:8px 10px;font-size:12px;font-weight:600;line-height:1.2;display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-menu-stat:after{content:"View plans";font-size:11px;font-weight:700;color:#0f766e;letter-spacing:.01em}.profile-menu #profileMenuSignOutBtn.danger-btn{grid-column:auto;border:1px solid rgba(239,68,68,.45);background:#fff5f5;color:#b91c1c}.profile-menu button:hover,.profile-menu-link:hover{background:#f1f5f9;border-color:#cbd5e1;transform:translateY(-1px)}html[data-theme=dark] .status-chip.profile-menu-trigger{border-color:#94a3b866;background:linear-gradient(180deg,#1e293bf5,#0f172af5);box-shadow:0 12px 24px #02081773}html[data-theme=dark] .status-chip.status-links-menu-trigger,html[data-theme=dark] .status-chip.status-editor-menu-trigger{border-color:#94a3b866;background:linear-gradient(180deg,#1e293bf5,#0f172af5);box-shadow:0 10px 22px #0208176b}html[data-theme=dark] .status-chip.status-links-menu-trigger:hover,html[data-theme=dark] .status-chip.status-editor-menu-trigger:hover{border-color:#2dd4bf7a;box-shadow:0 12px 24px #02081785}html[data-theme=dark] .status-chip.status-links-menu-trigger[aria-expanded=true],html[data-theme=dark] .status-chip.status-editor-menu-trigger[aria-expanded=true]{border-color:#2dd4bf9e;box-shadow:0 14px 28px #082f4980}html[data-theme=dark] .status-chip.profile-menu-trigger:hover{border-color:#2dd4bf7a;box-shadow:0 14px 26px #0208178c}html[data-theme=dark] .status-chip.profile-menu-trigger[aria-expanded=true]{border-color:#2dd4bf9e;box-shadow:0 16px 34px #082f4985}html[data-theme=dark] .status-chip.profile-menu-trigger.is-pro{border-color:#f59e0b94;background:linear-gradient(180deg,#78350f5c,#1e293bf2);box-shadow:0 16px 32px #7c2d1266}html[data-theme=dark] .status-chip.profile-menu-trigger.is-pro:hover{border-color:#fbbf24b8;box-shadow:0 18px 36px #7c2d127a}html[data-theme=dark] .profile-menu-name{color:#e2e8f0}html[data-theme=dark] .profile-avatar{border-color:#0f172ae0;box-shadow:0 6px 14px #02081780}html[data-theme=dark] .profile-avatar.is-pro{border-color:#fbbf24b8;box-shadow:0 0 0 2px #d9770657,0 9px 20px #d977066b}html[data-theme=dark] .profile-menu{border-color:#475569b8;background:linear-gradient(180deg,#0f172afa,#020617fa);box-shadow:0 24px 44px #020617a8}html[data-theme=dark] .status-editor-menu-divider{background:#475569b8}html[data-theme=dark] .status-editor-menu button:disabled,html[data-theme=dark] .status-editor-menu button:disabled:hover{background:#33415599;color:#cbd5e19e}html[data-theme=dark] .profile-menu.is-pro{border-color:#f59e0b75;background:linear-gradient(180deg,#331802bf,#0f172afa)}html[data-theme=dark] .profile-menu-stat{border-color:#2dd4bf70;background:linear-gradient(135deg,#14b8a633,#0e74902e)}html[data-theme=dark] .profile-menu-stat.is-pro{border-color:#fbbf248a;background:linear-gradient(135deg,#f59e0b4d,#b453093d)}html[data-theme=dark] .profile-menu-stat:after{color:#5eead4}html[data-theme=dark] .profile-menu button,html[data-theme=dark] .profile-menu-link{background:#0f172abd;border-color:#94a3b84d}html[data-theme=dark] .profile-menu button:not(.danger-btn):after,html[data-theme=dark] .profile-menu-link:after{color:#94a3b8}html[data-theme=dark] .profile-menu #profileMenuSignOutBtn.danger-btn{border-color:#f871718c;background:#7f1d1d47;color:#fecaca}html[data-theme=dark] .profile-menu button:hover,html[data-theme=dark] .profile-menu-link:hover{background:#2dd4bf2e;border-color:#2dd4bf85}.account-modal-card,.pricing-modal-card{width:min(720px,96vw)}.account-summary{border:1px solid #dbe4ef;border-radius:12px;background:linear-gradient(180deg,#f8fafc,#fff);padding:10px}.account-summary-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.account-summary-meta .account-summary-title{margin:0;font-size:16px}.account-summary-meta .account-summary-subtitle{margin:3px 0 0;color:#475569;font-size:12px}.account-plan-badge{border:1px solid #94a3b8;border-radius:999px;padding:4px 10px;font-size:12px;background:#f8fafc}.account-plan-badge.is-premium{background:linear-gradient(120deg,#0f766e,#0ea5e9);color:#fff;border-color:#0f766e}.account-plan-badge.is-basic{color:#0f172a}.account-plan-status{margin-top:6px;font-size:12px;color:#334155}.account-stats{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.account-stat{background:#fff;border:1px solid #dbe4ef;border-radius:10px;padding:10px 8px;display:grid;gap:4px}.account-stat span{color:#475569;font-size:12px}.account-stat strong{font-size:18px}html[data-theme=dark] .account-summary-meta .account-summary-subtitle,html[data-theme=dark] .account-plan-status,html[data-theme=dark] .account-stat span,html[data-theme=dark] .account-work-item span{color:#cbd5e1}html[data-theme=dark] .account-plan-badge{border-color:#94a3b88c;background:#0f172ad1;color:#e2e8f0}html[data-theme=dark] .account-plan-badge.is-basic{color:#e2e8f0}html[data-theme=dark] .account-plan-badge.is-premium{border-color:#2dd4bf9e;background:linear-gradient(130deg,#0f766e,#0ea5e9);color:#fff}.account-work-section{margin-top:10px;border-top:1px dashed #cbd5e1;padding-top:10px}.account-work-section h3{margin:0 0 6px}.account-work-list{margin-top:8px;display:grid;gap:6px;max-height:220px;overflow:auto}.account-work-item{border:1px solid #dbe4ef;border-radius:8px;padding:8px;display:flex;justify-content:space-between;gap:10px;align-items:center;background:#fff}.account-work-meta{min-width:0;flex:1;display:grid;gap:2px}.account-work-item span{font-size:12px;color:#475569}.account-work-open-btn{min-width:88px;white-space:nowrap}.account-actions{margin-top:12px}.account-page-shell{display:grid;gap:12px}.saved-works-controls{display:flex;align-items:center;gap:10px}.saved-works-controls #savedWorksRefreshBtn{min-width:160px;max-width:320px;width:100%}.saved-works-controls #savedWorksTotals{margin-top:0;white-space:nowrap}.account-page-header h1{margin:0}.settings-card{display:grid;gap:10px}.settings-row{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.settings-row strong{font-size:13px;color:var(--text)}.settings-row span{color:var(--muted);font-size:13px;text-align:right}#settingsSignOutBtn{grid-column:auto;width:100%;justify-self:stretch;border-radius:10px;padding:10px 14px;font-weight:600;letter-spacing:.01em;text-align:center;border:1px solid #ef4444;color:#fff;background:linear-gradient(135deg,#dc2626,#b91c1c)}#settingsSignOutBtn:hover{background:linear-gradient(135deg,#ef4444,#dc2626)}html[data-theme=dark] .settings-card .settings-row{background:#0f172a!important;border-color:#334155!important}html[data-theme=dark] .settings-card .settings-row strong{color:#f8fafc!important}html[data-theme=dark] .settings-card .settings-row span{color:#cbd5e1!important}html[data-theme=dark] .settings-card .settings-row .ghost-btn{background:#0b1220;border-color:#334155;color:#e2e8f0}html[data-theme=dark] #settingsSignOutBtn{border-color:#f87171;color:#fff;background:linear-gradient(135deg,#b91c1c,#7f1d1d)}html[data-theme=dark] #settingsSignOutBtn:hover{background:linear-gradient(135deg,#dc2626,#991b1b)}.pricing-tab-row{margin:10px 0;display:flex;width:100%;align-items:center;gap:4px;padding:4px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;overflow:hidden}.pricing-tab{border:none;border-radius:999px;flex:1;background:transparent;color:#334155;padding:8px 12px;text-align:center;font-size:12px;font-weight:600;transition:background .2s ease,transform .2s ease;min-width:86px}.pricing-tab:last-child{border-right:0}.pricing-tab:hover{background:#e2e8f0}.pricing-tab.is-active{background:linear-gradient(130deg,#0f766e,#0ea5e9);color:#fff;transform:translateY(-1px);box-shadow:0 8px 18px #0f766e4d}.pricing-tab:focus-visible{outline:2px solid rgba(15,118,110,.55);outline-offset:2px}.pricing-cards{margin:12px 0;display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-card{border:1px solid #dbe4ef;border-radius:12px;padding:12px;background:#fff;display:grid;gap:8px}.pricing-card.is-featured{border-color:#0f766e;box-shadow:0 12px 24px #0f766e24;background:linear-gradient(180deg,#ecfeff,#fff)}.pricing-card h3{margin:0}.pricing-card .price{margin:0;font-size:24px;font-weight:700;color:#0f172a}.pricing-card .billing{margin:0;color:#475569;font-size:12px}.pricing-card ul{margin:0;padding-left:18px;display:grid;gap:4px;color:#334155;font-size:12px}.pricing-details-link{color:#0f766e;font-size:12px;text-decoration:none}.pricing-details-link:hover{text-decoration:underline}.pricing-details-panel{margin-top:8px;border:1px dashed #94a3b8;border-radius:10px;padding:10px}.pricing-details-panel.is-hidden{display:none}.pricing-checkout-status{margin-top:10px;border-radius:10px;border:1px solid #dbe4ef;background:#f8fafc;color:#0f172a;padding:9px 11px}.pricing-checkout-status[data-state=info]{border-color:#0ea5e95c;background:linear-gradient(120deg,#e0f2fee6,#f0f9ffe6);color:#0c4a6e}.pricing-checkout-status[data-state=success]{border-color:#10b98180;background:linear-gradient(120deg,#d1fae5eb,#ecfdf5eb);color:#065f46}.pricing-checkout-status[data-state=warn]{border-color:#f59e0b8f;background:linear-gradient(120deg,#fef3c7eb,#fffbebeb);color:#92400e}.pricing-checkout-status[data-state=error]{border-color:#ef444485;background:linear-gradient(120deg,#fee2e2f0,#fff1f2f0);color:#991b1b}html[data-theme=dark] #pricingModal .pricing-modal-card{border-color:#475569b8;background:linear-gradient(180deg,#0f172afa,#020617fa);box-shadow:0 26px 52px #020617b8}html[data-theme=dark] #pricingModal .hint{color:#cbd5e1}html[data-theme=dark] #pricingModal .pricing-card{border-color:#94a3b857;background:linear-gradient(180deg,#0f172ae6,#1e293be6);color:#e2e8f0}html[data-theme=dark] #pricingModal .pricing-card.is-featured{border-color:#2dd4bfa8;background:linear-gradient(180deg,#082f499e,#0f172af5);box-shadow:0 14px 28px #082f495c}html[data-theme=dark] #pricingModal .pricing-card h3,html[data-theme=dark] #pricingModal .pricing-card .price{color:#f8fafc}html[data-theme=dark] #pricingModal .pricing-card .billing{color:#94a3b8}html[data-theme=dark] #pricingModal .pricing-card ul{color:#cbd5e1}html[data-theme=dark] #pricingModal .pricing-card ul li::marker{color:#94a3b8db}html[data-theme=dark] #pricingModal .pricing-savings-text{color:#dbeafe}html[data-theme=dark] #pricingModal .pricing-details-link{color:#5eead4}html[data-theme=dark] #pricingModal .pricing-details-link:hover{color:#99f6e4}html[data-theme=dark] #pricingModal .pricing-details-panel{border-color:#5eead45c;background:#0f172a9e;color:#dbeafe}html[data-theme=dark] #pricingModal .pricing-details-panel h3{color:#f8fafc}html[data-theme=dark] #pricingModal .pricing-details-panel ul{color:#cbd5e1}html[data-theme=dark] #pricingModal .pricing-checkout-status{border-color:#64748b8f;background:#0f172abd;color:#e2e8f0}html[data-theme=dark] #pricingModal .pricing-checkout-status[data-state=info]{border-color:#38bdf894;background:linear-gradient(125deg,#0e749052,#0284c738);color:#e0f2fe}html[data-theme=dark] #pricingModal .pricing-checkout-status[data-state=success]{border-color:#34d3999e;background:linear-gradient(125deg,#064e3b80,#065f4661);color:#d1fae5}html[data-theme=dark] #pricingModal .pricing-checkout-status[data-state=warn]{border-color:#fbbf24a6;background:linear-gradient(125deg,#78350f85,#92400e61);color:#fef3c7}html[data-theme=dark] #pricingModal .pricing-checkout-status[data-state=error]{border-color:#f87171a6;background:linear-gradient(125deg,#7f1d1d94,#991b1b6b);color:#fee2e2}html[data-theme=dark] body[data-page=pricing] .pricing-checkout-status{border-color:#64748b9e;background:linear-gradient(140deg,#0f172ae6,#0f172ac2);color:#e2e8f0;box-shadow:inset 0 1px #94a3b826}html[data-theme=dark] body[data-page=pricing] .pricing-checkout-status[data-state=info]{border-color:#38bdf89e;background:linear-gradient(125deg,#0e749057,#0284c73d);color:#e0f2fe}html[data-theme=dark] body[data-page=pricing] .pricing-checkout-status[data-state=success]{border-color:#34d399a3;background:linear-gradient(125deg,#064e3b85,#065f4666);color:#d1fae5}html[data-theme=dark] body[data-page=pricing] .pricing-checkout-status[data-state=warn]{border-color:#fbbf24ad;background:linear-gradient(125deg,#78350f8f,#92400e66);color:#fef3c7}html[data-theme=dark] body[data-page=pricing] .pricing-checkout-status[data-state=error]{border-color:#f87171ad;background:linear-gradient(125deg,#7f1d1d9e,#991b1b70);color:#fee2e2}.ghost-btn,#clearBtn{color:#334155}.mermaid-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0206179e;display:grid;place-items:center;padding:16px}.pending-changes-modal{z-index:60}.save-mode-modal{z-index:70}.mermaid-modal.is-hidden{display:none}.mermaid-modal-card{width:min(760px,96vw);border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 28px 55px #02081747;padding:14px}.premium-success-modal{z-index:110;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.premium-success-card{width:min(520px,94vw);position:relative;overflow:hidden;border:1px solid rgba(245,158,11,.4);background:linear-gradient(160deg,#fff8eb,#fff 38%,#eff6ff)}.premium-success-kicker{margin:0;letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:700;color:#92400e}.premium-success-card h2{margin:6px 0 8px;font-size:30px;line-height:1.1;color:#111827}.premium-success-message{margin:0;color:#334155}.premium-success-grid{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.premium-success-grid article{border:1px solid rgba(251,191,36,.36);border-radius:12px;padding:9px 10px;background:#ffffffd6;display:grid;gap:4px}.premium-success-grid span{font-size:11px;color:#92400e}.premium-success-grid strong{font-size:14px;color:#111827}.premium-success-actions{margin-top:14px;grid-template-columns:1fr}.premium-success-close-btn{position:absolute;top:10px;right:10px}.premium-success-spark{position:absolute;width:130px;height:130px;border-radius:999px;filter:blur(.5px);opacity:.55;pointer-events:none}.premium-success-spark-a{background:radial-gradient(circle,rgba(251,191,36,.52),transparent 72%);top:-30px;left:-24px}.premium-success-spark-b{background:radial-gradient(circle,rgba(56,189,248,.46),transparent 74%);bottom:-34px;right:-28px}.premium-payment-method-modal{z-index:108;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.premium-payment-method-card{width:min(520px,94vw);position:relative;border:1px solid rgba(14,116,144,.28);background:linear-gradient(160deg,#fff,#f8fafc 42%,#eff6ff);padding-top:22px}.premium-payment-method-card h2{margin:6px 0 8px;color:#111827}.premium-payment-method-actions{margin-top:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.premium-payment-method-close-btn{position:absolute;top:10px;right:10px}html[data-theme=dark] .premium-success-card{border-color:#f59e0b85;background:linear-gradient(160deg,#1e293b,#111827 48%,#0f172a)}html[data-theme=dark] .premium-success-kicker{color:#fbbf24}html[data-theme=dark] .premium-success-card h2{color:#f8fafc}html[data-theme=dark] .premium-success-message{color:#cbd5e1}html[data-theme=dark] .premium-success-grid article{border-color:#fbbf245c;background:#0f172ad6}html[data-theme=dark] .premium-success-grid span{color:#fbbf24}html[data-theme=dark] .premium-success-grid strong{color:#f8fafc}html[data-theme=dark] .premium-payment-method-card{border-color:#38bdf870;background:linear-gradient(160deg,#1e293b,#111827 48%,#0f172a)}html[data-theme=dark] .premium-payment-method-card h2{color:#f8fafc}html[data-theme=dark] .premium-payment-method-card .home-outline-btn{border-color:#94a3b89e;background:#0f172a99;color:#e2e8f0}.mermaid-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.mermaid-modal-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.save-project-card{width:min(420px,94vw);border-radius:12px;border-color:#bfccda;padding:20px;box-shadow:0 20px 36px #0f172a38}.save-project-head{justify-content:flex-start}.save-project-head h2{margin:0;font-size:29px;line-height:1.15;font-weight:600;color:#334155}.save-project-copy{margin-top:12px;color:#475569;font-size:15px;line-height:1.35}.save-project-label{display:grid;gap:8px;margin-top:14px;color:#334155;font-size:14px;font-weight:500}.save-project-input{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:10px 12px}.button-row.save-project-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}.save-project-confirm-btn{border:1px solid #0f766e;background:linear-gradient(135deg,#0f766e,#0e7490);color:#ecfeff;box-shadow:0 8px 16px #0f766e33}.save-project-confirm-btn:hover{border-color:#0b5f59;background:linear-gradient(135deg,#0b5f59,#0f5d7a);color:#fff}.save-project-confirm-btn:disabled,.save-project-confirm-btn[aria-disabled=true]{border-color:#cbd5e1;background:#e2e8f0;color:#64748b;box-shadow:none;cursor:not-allowed;pointer-events:none}.save-mode-card{width:min(420px,94vw);border-radius:12px;border-color:#bfccda;padding:20px;box-shadow:0 20px 36px #0f172a38}.save-mode-head{justify-content:flex-start}.save-mode-head h2{margin:0;font-size:29px;line-height:1.15;font-weight:600;color:#334155}.save-mode-copy{margin-top:12px;color:#475569;font-size:15px;line-height:1.35}.button-row.save-mode-actions{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.save-mode-update-btn{border:1px solid #0f766e;background:linear-gradient(135deg,#0f766e,#0e7490);color:#ecfeff;box-shadow:0 8px 16px #0f766e33}.save-mode-saveas-btn{border:1px solid #6b7280;background:linear-gradient(135deg,#6b7280,#4b5563);color:#f8fafc;box-shadow:0 8px 16px #4b556333}.save-mode-update-btn:hover{border-color:#0b5f59;background:linear-gradient(135deg,#0b5f59,#0f5d7a);color:#fff}.save-mode-saveas-btn:hover{border-color:#374151;background:linear-gradient(135deg,#4b5563,#374151);color:#fff}.save-mode-update-btn:disabled,.save-mode-update-btn[aria-disabled=true],.save-mode-saveas-btn:disabled,.save-mode-saveas-btn[aria-disabled=true]{border-color:#cbd5e1;background:#e2e8f0;color:#64748b;box-shadow:none;cursor:not-allowed;pointer-events:none}.pending-changes-card{width:min(420px,94vw);border-radius:12px;border-color:#bfccda;padding:20px;box-shadow:0 20px 36px #0f172a38}.pending-changes-head{justify-content:flex-start}.pending-changes-head h2{margin:0;font-size:28px;line-height:1.15;font-weight:600;color:#334155}.pending-changes-copy{margin-top:12px;color:#475569;font-size:15px;line-height:1.35}.button-row.pending-changes-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}.pending-changes-proceed-btn{border:1px solid #b45309;background:linear-gradient(135deg,#d97706,#b45309);color:#fff7ed;box-shadow:0 8px 16px #b4530938;opacity:1;-webkit-text-fill-color:#fff7ed}.pending-changes-proceed-btn:not(:disabled):not([aria-disabled=true]){border-color:#b45309;background:linear-gradient(135deg,#d97706,#b45309);color:#fff7ed;box-shadow:0 8px 16px #b4530938;opacity:1;-webkit-text-fill-color:#fff7ed}.pending-changes-proceed-btn:hover{border-color:#92400e;background:linear-gradient(135deg,#b45309,#92400e);color:#fff}.pending-changes-proceed-btn:disabled,.pending-changes-proceed-btn[aria-disabled=true]{border-color:#d6c3b5;background:#ece4dd;color:#7c5e48;box-shadow:none;cursor:not-allowed;pointer-events:none}.clear-confirm-card{width:min(360px,94vw);border-radius:6px;border-color:#bfccda;padding:24px;box-shadow:0 18px 32px #0f172a33}.clear-confirm-head{justify-content:flex-start}.clear-confirm-head h2{margin:0;font-size:31px;line-height:1.15;font-weight:600;color:#334155}.clear-confirm-copy{margin-top:12px;margin-bottom:0;color:#475569;font-size:15px;line-height:1.35}.clear-confirm-copy-secondary{margin-top:18px}.clear-confirm-list{margin:8px 0 0;padding-left:20px;color:#475569;font-size:15px;line-height:1.35}.clear-confirm-list li+li{margin-top:2px}.clear-confirm-checkline{margin-top:22px;align-items:flex-start;font-size:15px;line-height:1.35;color:#475569}.clear-confirm-checkline input[type=checkbox]{margin-top:2px;width:16px;height:16px;accent-color:#0f766e}.button-row.clear-confirm-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px;gap:10px}.button-row.clear-confirm-actions .ghost-btn{-moz-appearance:none;appearance:none;-webkit-appearance:none;border-color:#cbd5e1;color:#334155;background:#f8fafc;font-size:17px;font-weight:500}.clear-confirm-proceed-btn{-moz-appearance:none;appearance:none;-webkit-appearance:none;border:1px solid #0f766e;background:linear-gradient(135deg,#0f766e,#0e7490);color:#ecfeff;font-size:17px;font-weight:500;box-shadow:0 8px 16px #0f766e33}.button-row.clear-confirm-actions .ghost-btn:hover{border-color:#94a3b8;background:#e2e8f0;color:#0f172a}.clear-confirm-proceed-btn:not(:disabled):hover,.clear-confirm-proceed-btn[aria-disabled=false]:hover{border-color:#0b5f59;background:linear-gradient(135deg,#0b5f59,#0f5d7a);color:#fff}.clear-confirm-proceed-btn:disabled,.clear-confirm-proceed-btn[aria-disabled=true]{border-color:#cbd5e1;background:#e2e8f0;color:#94a3b8;box-shadow:none;cursor:not-allowed;pointer-events:none}.clear-confirm-proceed-btn:disabled:hover,.clear-confirm-proceed-btn[aria-disabled=true]:hover{border-color:#cbd5e1;background:#e2e8f0;color:#94a3b8}html[data-theme=dark] .clear-confirm-card,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-card,html[data-theme=dark] .save-project-card,body[data-page=editor][data-diagram-theme=dark] .save-project-card,html[data-theme=dark] .pending-changes-card,body[data-page=editor][data-diagram-theme=dark] .pending-changes-card{border-color:#334155;background:#111827}html[data-theme=dark] .save-project-head h2,body[data-page=editor][data-diagram-theme=dark] .save-project-head h2,html[data-theme=dark] .pending-changes-head h2,body[data-page=editor][data-diagram-theme=dark] .pending-changes-head h2{color:#e2e8f0}html[data-theme=dark] .save-project-copy,html[data-theme=dark] .save-project-label,body[data-page=editor][data-diagram-theme=dark] .save-project-copy,body[data-page=editor][data-diagram-theme=dark] .save-project-label,html[data-theme=dark] .pending-changes-copy,body[data-page=editor][data-diagram-theme=dark] .pending-changes-copy{color:#cbd5e1}html[data-theme=dark] .save-project-input,body[data-page=editor][data-diagram-theme=dark] .save-project-input{border-color:#475569;background:#0f172a;color:#e2e8f0}html[data-theme=dark] .save-project-confirm-btn,body[data-page=editor][data-diagram-theme=dark] .save-project-confirm-btn{border-color:#60a5fa;background:#2563eb;color:#eaf2ff}html[data-theme=dark] .save-project-confirm-btn:hover,body[data-page=editor][data-diagram-theme=dark] .save-project-confirm-btn:hover{border-color:#93c5fd;background:#3b82f6}html[data-theme=dark] .save-project-confirm-btn:disabled,html[data-theme=dark] .save-project-confirm-btn[aria-disabled=true],body[data-page=editor][data-diagram-theme=dark] .save-project-confirm-btn:disabled,body[data-page=editor][data-diagram-theme=dark] .save-project-confirm-btn[aria-disabled=true]{border-color:#38517f;background:#38517f;color:#cdd8f1;box-shadow:none;pointer-events:none}html[data-theme=dark] .save-mode-card,body[data-page=editor][data-diagram-theme=dark] .save-mode-card{border-color:#334155;background:#111827}html[data-theme=dark] .save-mode-head h2,body[data-page=editor][data-diagram-theme=dark] .save-mode-head h2{color:#e2e8f0}html[data-theme=dark] .save-mode-copy,body[data-page=editor][data-diagram-theme=dark] .save-mode-copy{color:#cbd5e1}html[data-theme=dark] .save-mode-update-btn,body[data-page=editor][data-diagram-theme=dark] .save-mode-update-btn{border-color:#38bdf8;background:#0ea5e9;color:#eaf2ff}html[data-theme=dark] .save-mode-update-btn:hover,body[data-page=editor][data-diagram-theme=dark] .save-mode-update-btn:hover{border-color:#7dd3fc;background:#38bdf8}html[data-theme=dark] .save-mode-saveas-btn,body[data-page=editor][data-diagram-theme=dark] .save-mode-saveas-btn{border-color:#a78bfa;background:#7c3aed;color:#ede9fe}html[data-theme=dark] .save-mode-saveas-btn:hover,body[data-page=editor][data-diagram-theme=dark] .save-mode-saveas-btn:hover{border-color:#c4b5fd;background:#8b5cf6}html[data-theme=dark] .save-mode-update-btn:disabled,html[data-theme=dark] .save-mode-update-btn[aria-disabled=true],html[data-theme=dark] .save-mode-saveas-btn:disabled,html[data-theme=dark] .save-mode-saveas-btn[aria-disabled=true],body[data-page=editor][data-diagram-theme=dark] .save-mode-update-btn:disabled,body[data-page=editor][data-diagram-theme=dark] .save-mode-update-btn[aria-disabled=true],body[data-page=editor][data-diagram-theme=dark] .save-mode-saveas-btn:disabled,body[data-page=editor][data-diagram-theme=dark] .save-mode-saveas-btn[aria-disabled=true]{border-color:#38517f;background:#38517f;color:#cdd8f1;box-shadow:none;pointer-events:none}html[data-theme=dark] .pending-changes-proceed-btn,body[data-page=editor][data-diagram-theme=dark] .pending-changes-proceed-btn{border-color:#f59e0b;background:#d97706;color:#fff7ed}html[data-theme=dark] .pending-changes-proceed-btn:hover,body[data-page=editor][data-diagram-theme=dark] .pending-changes-proceed-btn:hover{border-color:#fbbf24;background:#f59e0b}html[data-theme=dark] .pending-changes-proceed-btn:disabled,html[data-theme=dark] .pending-changes-proceed-btn[aria-disabled=true],body[data-page=editor][data-diagram-theme=dark] .pending-changes-proceed-btn:disabled,body[data-page=editor][data-diagram-theme=dark] .pending-changes-proceed-btn[aria-disabled=true]{border-color:#8a5a2d;background:#8a5a2d;color:#f4dcc2;box-shadow:none;pointer-events:none}html[data-theme=dark] .clear-confirm-head h2,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-head h2{color:#e2e8f0}html[data-theme=dark] .clear-confirm-copy,html[data-theme=dark] .clear-confirm-list,html[data-theme=dark] .clear-confirm-checkline,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-copy,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-list,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-checkline{color:#cbd5e1}html[data-theme=dark] .button-row.clear-confirm-actions .ghost-btn,body[data-page=editor][data-diagram-theme=dark] .button-row.clear-confirm-actions .ghost-btn{border-color:#60a5fa;color:#bfdbfe;background:#1e40af29}html[data-theme=dark] .clear-confirm-proceed-btn,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-proceed-btn{border-color:#60a5fa;background:#2563eb;color:#eaf2ff}html[data-theme=dark] .button-row.clear-confirm-actions .ghost-btn:hover,body[data-page=editor][data-diagram-theme=dark] .button-row.clear-confirm-actions .ghost-btn:hover{border-color:#93c5fd;background:#2563eb4d;color:#eaf2ff}html[data-theme=dark] .clear-confirm-proceed-btn:hover,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-proceed-btn:hover{border-color:#93c5fd;background:#3b82f6}html[data-theme=dark] .clear-confirm-proceed-btn:disabled,html[data-theme=dark] .clear-confirm-proceed-btn[aria-disabled=true],html[data-theme=dark] .clear-confirm-proceed-btn:disabled:hover,html[data-theme=dark] .clear-confirm-proceed-btn[aria-disabled=true]:hover,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-proceed-btn:disabled,body[data-page=editor][data-diagram-theme=dark] .clear-confirm-proceed-btn[aria-disabled=true],body[data-page=editor][data-diagram-theme=dark] .clear-confirm-proceed-btn:disabled:hover{border-color:#38517f;background:#38517f;color:#cdd8f1;box-shadow:none;pointer-events:none}.ai-prompt-dock{position:fixed;right:18px;bottom:18px;width:min(360px,calc(100vw - 36px));z-index:75;background:linear-gradient(180deg,#fffffffa,#f8fafcfa);border:1px solid #cbd5e1;border-radius:14px;padding:10px;box-shadow:0 16px 32px #02081733;display:grid;gap:8px;-webkit-user-select:none;user-select:none}.ai-prompt-dock-header{display:flex;align-items:center;gap:8px;min-height:28px;cursor:move}.ai-prompt-dock-header:active{cursor:grabbing}.ai-prompt-minimize-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:10px;height:26px;width:26px;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:grab;line-height:1;font-size:14px;font-weight:700}.ai-prompt-minimize-btn:active{cursor:grabbing}.ai-prompt-minimize-btn:hover{background:#f1f5f9}.ai-prompt-minimize-btn{cursor:pointer}.ai-prompt-title{margin:0;font-size:12px;font-weight:700;color:#0f172a;letter-spacing:.2px;flex:1;min-width:0}.ai-prompt-textarea::placeholder{color:#64748b}.ai-prompt-floating-btn{position:fixed;right:18px;bottom:18px;z-index:76;width:52px;height:52px;border:1px solid rgba(148,163,184,.55);border-radius:999px;background:linear-gradient(135deg,#0f766e,#0891b2);color:#fff;cursor:pointer;box-shadow:0 12px 26px #02081740;display:grid;place-items:center;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.ai-prompt-floating-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px #0208174d;filter:brightness(1.05)}.ai-floating-icon{font-size:20px;line-height:1;transform:translateY(-1px)}html[data-theme=dark] .ai-prompt-floating-btn{background:linear-gradient(135deg,#0f766e,#0284c7);color:#fff;border-color:#38bdf859}.ai-prompt-textarea{width:100%;min-height:84px;border:1px solid #cbd5e1;border-radius:10px;resize:vertical;padding:8px 10px;font:inherit;color:#0f172a;background:#fff}.ai-prompt-actions{display:flex;align-items:center;gap:8px}.ai-prompt-actions button{border:1px solid #cbd5e1;border-radius:10px;background:#0f766e;color:#fff;padding:7px 10px;font-weight:600}.ai-prompt-actions button:hover{background:#0d9488}.ai-prompt-actions button:disabled{opacity:.5;cursor:not-allowed}.ai-prompt-message{font-size:12px;color:#334155}@media (max-width: 700px){.ai-prompt-dock{left:12px;right:12px;width:auto}.ai-prompt-floating-btn{right:12px;bottom:12px}.pricing-cards{grid-template-columns:1fr}.status-chip.profile-menu-trigger{min-width:154px;max-width:min(214px,calc(100vw - 24px))}.profile-menu{min-width:210px;width:min(248px,calc(100vw - 18px))}.saved-works-controls{flex-wrap:wrap;align-items:center}.saved-works-controls #savedWorksRefreshBtn{flex:1 1 200px;max-width:none}}button:focus-visible,input:focus-visible{outline:2px solid rgba(15,118,110,.5);outline-offset:1px}@media (max-width: 1100px){.home-layout,.home-split-section{grid-template-columns:1fr}.home-hero{order:1}.home-media-panel{order:2;justify-self:stretch}.home-hero,.home-media-panel,.sample-slide{width:100%}.feature-grid,.home-feature-grid,.home-template-grid,.home-faq-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shell{padding-top:24px;gap:22px}.builder-layout{grid-template-columns:1fr}.control-panel{order:2}.canvas-panel{order:1;min-height:620px}}@media (max-width: 820px){.home-title{max-width:100%;font-size:clamp(1.5rem,6vw,2rem)}.home-nav{justify-content:center}.home-nav-links{width:100%;justify-content:center}.feature-grid,.home-feature-grid,.home-template-grid,.home-showcase-grid,.home-faq-grid{grid-template-columns:1fr}.home-cta-strip{flex-direction:column;align-items:flex-start}.home-shell{padding-left:14px;padding-right:14px;gap:18px}.auth-card{width:min(420px,calc(100vw - 24px));max-height:calc(100vh - 20px);padding:18px}}.app-shell-fullscreen{max-width:none;width:100vw;height:100vh;margin:0;padding:8px;gap:8px}.canvas-panel-fullscreen{height:calc(100vh - 16px);padding:8px;gap:6px;border-radius:14px;box-shadow:none}.auth-card::-webkit-scrollbar{width:8px}.auth-card::-webkit-scrollbar-track{background:transparent}.auth-card::-webkit-scrollbar-thumb{background:#0f766e7a;border-radius:999px}.auth-card::-webkit-scrollbar-thumb:hover{background:#0f766eb8}html[data-theme=dark] .auth-card::-webkit-scrollbar-thumb{background:#2dd4bf94}html[data-theme=dark] .auth-card::-webkit-scrollbar-thumb:hover{background:#5eead4e0}.pricing-shell{max-width:1100px;margin:0 auto;padding:14px;min-height:100vh;display:grid;gap:16px}.pricing-hero{border:1px solid var(--line);border-radius:18px;background:linear-gradient(150deg,#fffffff7,#f8fafce6);padding:26px;display:grid;gap:14px}.pricing-title{margin:0;max-width:48ch;font-size:clamp(1.4rem,4vw,2rem);color:#0f172a}.pricing-intro{margin:0;max-width:72ch;color:#334155;line-height:1.6}.pricing-actions{display:flex;gap:10px;flex-wrap:wrap}.pricing-savings-text{margin:0;color:#334155;font-size:13px;min-height:44px;display:flex;align-items:center;line-height:1.35;overflow:hidden}.pricing-cards-section{display:grid;gap:12px}.pricing-cards{margin:0}.pricing-card-title-wrap{display:flex;align-items:center;justify-content:space-between;gap:10px}.pricing-badge{border:1px solid #0f766e;border-radius:999px;background:linear-gradient(130deg,#ecfeff,#f8fafc);color:#0f172a;font-size:11px;padding:4px 9px}.pricing-cycle-text{margin:2px 0 0;color:#475569;font-size:12px}.pricing-card-cta{margin-top:8px;justify-self:stretch;width:100%;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid #0f766e;background:linear-gradient(130deg,#0f766e,#0ea5e9);color:#fff;text-decoration:none;font-size:13px;font-weight:700;letter-spacing:.01em;box-shadow:0 10px 20px #0f766e33;transition:transform .18s ease,box-shadow .18s ease}.pricing-card-cta:hover{transform:translateY(-1px);background:linear-gradient(130deg,#0d9488,#0284c7);box-shadow:0 12px 22px #0e746e40}.pricing-card-cta:focus-visible{outline:2px solid rgba(15,118,110,.45);outline-offset:2px}.pricing-feature-block,.pricing-footer-cta{border:1px solid var(--line);background:linear-gradient(160deg,#fffffff7,#f8fafcf2);border-radius:18px;padding:22px}.pricing-block-intro{margin:0 0 12px;color:#334155}.how-it-works-list{margin:0;padding-left:18px;display:grid;gap:8px;color:#334155;font-size:14px;line-height:1.55}.how-it-works-list strong{color:#0f172a}.pricing-feature-grid{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pricing-feature-card{border:1px solid #dbeafe;border-radius:12px;background:#fff;padding:12px;display:grid;gap:6px}.pricing-feature-card h3{margin:0;color:#0f172a;font-size:16px}.pricing-feature-card p{margin:0;color:#334155;line-height:1.5}.pricing-faq-section .home-faq-grid{margin-top:8px}.pricing-faq-grid .home-faq-card{background:#fff}.pricing-footer-cta{text-align:left;display:grid;gap:8px}.pricing-footer-cta h2{margin:0}.pricing-footer-cta p{margin:0;color:#334155;line-height:1.55}.site-legal-footer{border:1px solid var(--line);border-radius:18px;background:linear-gradient(160deg,#fffffff7,#f8fafcf2);padding:16px 18px;display:grid;gap:8px}.site-legal-links{display:flex;flex-wrap:wrap;gap:10px}.site-legal-links a{color:#0f172a;text-decoration:none;border-bottom:1px solid transparent;font-size:13px}.site-legal-links a:hover{border-bottom-color:#0ea5e9}.site-legal-contact,.site-legal-company{margin:0;color:#334155;font-size:13px;line-height:1.5}.site-legal-contact a{color:#0f766e}@media (max-width: 980px){.pricing-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 720px){.pricing-hero,.pricing-feature-block,.pricing-footer-cta{padding:16px}.pricing-feature-grid{grid-template-columns:1fr}}html[data-theme=dark] .pricing-hero,html[data-theme=dark] .pricing-feature-block,html[data-theme=dark] .pricing-footer-cta,html[data-theme=dark] .site-legal-footer{background:#0f172ae6}html[data-theme=dark] .pricing-intro,html[data-theme=dark] .pricing-block-intro,html[data-theme=dark] .pricing-feature-card p,html[data-theme=dark] .pricing-savings-text,html[data-theme=dark] .pricing-cycle-text,html[data-theme=dark] .pricing-footer-cta p,html[data-theme=dark] .site-legal-contact,html[data-theme=dark] .site-legal-company{color:#e2e8f0}html[data-theme=dark] .pricing-feature-card{border-color:#94a3b859;background:#1e293b9e}html[data-theme=dark] .pricing-feature-card h3,html[data-theme=dark] .pricing-title,html[data-theme=dark] .pricing-feature-block h2,html[data-theme=dark] .pricing-footer-cta h2{color:#f8fafc}html[data-theme=dark] .pricing-feature-block .how-it-works-list{color:#e2e8f0}html[data-theme=dark] .pricing-feature-block .how-it-works-list strong{color:#f8fafc}html[data-theme=dark] .pricing-feature-block .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] .pricing-feature-block .pricing-block-intro a,html[data-theme=dark] .pricing-feature-block .how-it-works-list a{color:#5eead4}html[data-theme=dark] .pricing-feature-block .pricing-block-intro a:hover,html[data-theme=dark] .pricing-feature-block .how-it-works-list a:hover{color:#99f6e4}html[data-theme=dark] body[data-page=home] #trust h2{color:#f8fafc}html[data-theme=dark] body[data-page=home] #trust .how-it-works-list{color:#e2e8f0}html[data-theme=dark] body[data-page=home] #trust .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=home] #trust .how-it-works-list a{color:#5eead4}html[data-theme=dark] body[data-page=home] #trust .how-it-works-list a:hover{color:#99f6e4}html[data-theme=dark] body[data-page=pricing] .pricing-feature-block h2,html[data-theme=dark] body[data-page=pricing] .pricing-footer-cta h2,html[data-theme=dark] body[data-page=privacy] .pricing-feature-block h2,html[data-theme=dark] body[data-page=support] .pricing-feature-block h2,html[data-theme=dark] body[data-page=terms] .pricing-feature-block h2,html[data-theme=dark] body[data-page=cancellation-policy] .pricing-feature-block h2,html[data-theme=dark] body[data-page=contact] .pricing-feature-block h2,html[data-theme=dark] body[data-page=about] .pricing-feature-block h2,html[data-theme=dark] body[data-page=refund-policy] .pricing-feature-block h2{color:#f8fafc}html[data-theme=dark] body[data-page=pricing] .pricing-card{border-color:#94a3b859;background:#1e293b;color:#e2e8f0}html[data-theme=dark] body[data-page=pricing] .pricing-card.is-featured{border-color:#2dd4bf;background:linear-gradient(180deg,#0f172afa,#1e293bf2);box-shadow:0 12px 24px #0f172a73}html[data-theme=dark] body[data-page=pricing] .pricing-card h3,html[data-theme=dark] body[data-page=pricing] .pricing-card .price{color:#f8fafc}html[data-theme=dark] body[data-page=pricing] .pricing-card .billing{color:#cbd5e1}html[data-theme=dark] body[data-page=pricing] .pricing-card ul{color:#e2e8f0}html[data-theme=dark] body[data-page=pricing] .pricing-feature-card{border-color:#94a3b859;background:#1e293b9e}html[data-theme=dark] body[data-page=pricing] .pricing-feature-card h3{color:#f8fafc}html[data-theme=dark] body[data-page=pricing] .how-it-works-list,html[data-theme=dark] body[data-page=privacy] .how-it-works-list,html[data-theme=dark] body[data-page=support] .how-it-works-list,html[data-theme=dark] body[data-page=terms] .how-it-works-list,html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list,html[data-theme=dark] body[data-page=contact] .how-it-works-list,html[data-theme=dark] body[data-page=about] .how-it-works-list{color:#e2e8f0}html[data-theme=dark] body[data-page=pricing] .how-it-works-list strong,html[data-theme=dark] body[data-page=privacy] .how-it-works-list strong,html[data-theme=dark] body[data-page=support] .how-it-works-list strong,html[data-theme=dark] body[data-page=terms] .how-it-works-list strong,html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list strong,html[data-theme=dark] body[data-page=contact] .how-it-works-list strong,html[data-theme=dark] body[data-page=about] .how-it-works-list strong{color:#f8fafc}html[data-theme=dark] body[data-page=pricing] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=privacy] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=support] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=terms] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=contact] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=about] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] body[data-page=support] .pricing-block-intro a{color:#5eead4}html[data-theme=dark] body[data-page=support] .pricing-block-intro a:hover{color:#99f6e4}html[data-theme=dark] body[data-page=pricing] .pricing-block-intro a,html[data-theme=dark] body[data-page=pricing] .how-it-works-list a,html[data-theme=dark] body[data-page=privacy] .pricing-block-intro a,html[data-theme=dark] body[data-page=privacy] .how-it-works-list a,html[data-theme=dark] body[data-page=support] .pricing-block-intro a,html[data-theme=dark] body[data-page=support] .how-it-works-list a,html[data-theme=dark] body[data-page=terms] .pricing-block-intro a,html[data-theme=dark] body[data-page=terms] .how-it-works-list a,html[data-theme=dark] body[data-page=refund-policy] .pricing-block-intro a,html[data-theme=dark] body[data-page=refund-policy] .how-it-works-list a,html[data-theme=dark] body[data-page=cancellation-policy] .pricing-block-intro a,html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list a,html[data-theme=dark] body[data-page=contact] .pricing-block-intro a,html[data-theme=dark] body[data-page=contact] .how-it-works-list a,html[data-theme=dark] body[data-page=about] .pricing-block-intro a,html[data-theme=dark] body[data-page=about] .how-it-works-list a{color:#5eead4}html[data-theme=dark] body[data-page=pricing] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=pricing] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=privacy] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=privacy] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=support] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=support] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=terms] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=terms] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=refund-policy] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=refund-policy] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=cancellation-policy] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=contact] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=contact] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=about] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=about] .how-it-works-list a:hover{color:#99f6e4}html[data-theme=dark] body[data-page=cancellation-policy] .pricing-block-intro a,html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list a,html[data-theme=dark] body[data-page=contact] .pricing-block-intro a,html[data-theme=dark] body[data-page=contact] .how-it-works-list a,html[data-theme=dark] body[data-page=about] .pricing-block-intro a,html[data-theme=dark] body[data-page=about] .how-it-works-list a{color:#5eead4}html[data-theme=dark] body[data-page=cancellation-policy] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=contact] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=contact] .how-it-works-list a:hover,html[data-theme=dark] body[data-page=about] .pricing-block-intro a:hover,html[data-theme=dark] body[data-page=about] .how-it-works-list a:hover{color:#99f6e4}html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list,html[data-theme=dark] body[data-page=contact] .how-it-works-list,html[data-theme=dark] body[data-page=about] .how-it-works-list{list-style:disc;padding-left:20px;gap:10px}html[data-theme=dark] body[data-page=cancellation-policy] .how-it-works-list li,html[data-theme=dark] body[data-page=contact] .how-it-works-list li,html[data-theme=dark] body[data-page=about] .how-it-works-list li{border:1px solid rgba(148,163,184,.28);background:#0f172a73;border-radius:10px;padding:8px 10px}html[data-theme=dark] body[data-page=refund-policy] .how-it-works-list{list-style:disc;padding-left:20px;color:#e2e8f0;gap:6px}html[data-theme=dark] body[data-page=refund-policy] .how-it-works-list li{border:0;background:transparent;border-radius:0;padding:0}html[data-theme=dark] body[data-page=refund-policy] .how-it-works-list li::marker{color:#5eead4}html[data-theme=dark] .site-legal-links a{color:#f8fafc}html[data-theme=dark] .site-legal-contact a{color:#5eead4}html[data-theme=dark] .pricing-badge{background:#2dd4bf29;border-color:#5eead4;color:#f8fafc}.canvas-panel-fullscreen .canvas-shell{min-height:0}.toolbar-popup{position:absolute;z-index:24;top:62px;left:8px;width:min(340px,92vw);max-width:calc(100vw - 16px);max-height:calc(100dvh - 74px);background:linear-gradient(180deg,#fffffffa,#f8fafcfa);border:1px solid #d8e1ef;border-radius:14px;box-shadow:0 16px 36px #02081738;padding:12px;display:grid;gap:10px;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;transform-origin:top left;animation:popupIn .14s ease-out}.toolbar-popup label{display:grid;grid-template-columns:1fr;gap:5px;color:#334155;font-size:12px;font-weight:600}.toolbar-popup h3{margin:0;font-size:14px;letter-spacing:.2px;color:#0f172a}.toolbar-popup input:not([type=checkbox]):not([type=radio]),.toolbar-popup select{width:100%;border:1px solid #c7d2e4;border-radius:10px;padding:8px 10px;background:#fff;color:#0f172a}.toolbar-popup input[type=range]{padding:0;border:none;height:28px}.toolbar-popup input[type=color]{padding:4px;height:38px}.toolbar-popup .button-row{margin-top:2px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.toolbar-popup .button-row button{border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:8px 10px}.toolbar-popup .button-row button:hover{background:#f1f5f9}.download-popup{width:min(380px,94vw)}.download-export-options{display:grid;gap:8px;margin-top:4px}.download-export-options .check-line{margin-top:0;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #d8e1ef;border-radius:10px;background:linear-gradient(180deg,#fff,#f8fafc);color:#0f172a;font-size:12px;font-weight:600;line-height:1.25;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.download-export-options .check-line:hover{border-color:#94a3b8;background:#f8fafc}.download-export-options .check-line:focus-within{border-color:#0f766e;box-shadow:0 0 0 2px #0f766e33}.download-export-options .check-line input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:17px;height:17px;margin:0;border:1px solid #94a3b8;border-radius:5px;background:#fff;display:inline-grid;place-content:center;flex-shrink:0;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.download-export-options .check-line input[type=checkbox]:after{content:"";width:4px;height:8px;border:solid transparent;border-width:0 2px 2px 0;transform:rotate(45deg) scale(.85)}.download-export-options .check-line input[type=checkbox]:checked{border-color:#0f766e;background:linear-gradient(135deg,#0f766e,#0e7490);box-shadow:0 0 0 2px #0f766e24}.download-export-options .check-line input[type=checkbox]:checked:after{border-color:#ecfeff}html[data-theme=dark] .download-export-options .check-line{border-color:#475569cc;background:linear-gradient(180deg,#1e293be6,#0f172aeb);color:#e2e8f0}html[data-theme=dark] .download-export-options .check-line:hover{border-color:#2dd4bf8c;background:#1e293bf2}html[data-theme=dark] .download-export-options .check-line:focus-within{border-color:#2dd4bfbf;box-shadow:0 0 0 2px #2dd4bf38}html[data-theme=dark] .download-export-options .check-line input[type=checkbox]{border-color:#94a3b8d9;background:#0f172a}html[data-theme=dark] .download-export-options .check-line input[type=checkbox]:checked{border-color:#2dd4bf;background:linear-gradient(135deg,#0d9488,#0ea5e9);box-shadow:0 0 0 2px #2dd4bf33}.download-button-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.download-popup #downloadStatusMessage{margin:0;min-height:18px}@media (max-width: 520px){.download-button-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.scale-theme-popup{width:min(380px,94vw);gap:12px}.scale-theme-popup .popup-headline{padding:2px 2px 0}.scale-theme-popup .popup-headline .hint{margin-top:4px}.scale-theme-popup .popup-section{border:1px solid #d8e1ef;border-radius:12px;background:linear-gradient(180deg,#fff,#f8fafc);padding:10px;display:grid;gap:8px}.scale-theme-popup .popup-row-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.scale-theme-popup .popup-label{margin:0;font-size:12px;font-weight:700;color:#334155}.scale-theme-popup .popup-value{border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;padding:2px 8px;font-size:12px;font-weight:700}.scale-theme-popup #scaleReadout{margin:0}.scale-theme-popup .popup-toggle-stack{gap:6px}.scale-theme-popup .popup-toggle{margin-top:0;display:flex;align-items:center;gap:10px;border:1px solid #d8e1ef;border-radius:10px;background:#fff;color:#334155;padding:7px 9px;font-size:12px;font-weight:600;line-height:1.35;cursor:pointer}.scale-theme-popup .popup-toggle input[type=checkbox]{flex:0 0 auto;width:16px;height:16px;margin:0;padding:0;border-radius:4px;border:1px solid #94a3b8;background:#fff;accent-color:#0ea5e9}.scale-theme-popup .popup-toggle:hover{border-color:#94a3b8;background:#f8fafc}.scale-theme-popup .theme-tab-row{margin-bottom:2px}.scale-theme-popup .theme-tab-btn,.scale-theme-popup .theme-option-btn{transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.scale-theme-popup .theme-option-grid{gap:7px}.scale-theme-popup .theme-option-btn{font-size:11px;min-height:30px;border-radius:9px}.scale-theme-popup .theme-option-btn.is-active{box-shadow:0 0 0 1px #0ea5e933}html[data-theme=dark] #scaleThemePopup,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup{background:linear-gradient(180deg,#0f172afa,#020617f5);border-color:#64748b8c;box-shadow:0 20px 40px #0206179e}html[data-theme=dark] #scaleThemePopup .popup-section,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .popup-section{border-color:#334155;background:linear-gradient(180deg,#0f172a,#111827)}html[data-theme=dark] #scaleThemePopup .popup-label,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .popup-label{color:#e2e8f0}html[data-theme=dark] #scaleThemePopup .popup-value,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .popup-value{border-color:#475569;background:#0b1220;color:#f8fafc}html[data-theme=dark] #scaleThemePopup .popup-toggle,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .popup-toggle{border-color:#334155;background:#111827;color:#e2e8f0}html[data-theme=dark] #scaleThemePopup .popup-toggle input[type=checkbox],body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .popup-toggle input[type=checkbox]{border-color:#64748b;background:#0f172a;accent-color:#22d3ee}html[data-theme=dark] #scaleThemePopup .popup-toggle:hover,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .popup-toggle:hover{background:#1e293b;border-color:#64748b}html[data-theme=dark] #scaleThemePopup .theme-option-btn,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .theme-option-btn{background:#0f172a;border-color:#334155;color:#e2e8f0}html[data-theme=dark] #scaleThemePopup .theme-option-btn:hover,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .theme-option-btn:hover{background:#1e293b;border-color:#64748b}html[data-theme=dark] #scaleThemePopup .theme-option-btn.is-active,body[data-page=editor][data-diagram-theme=dark] #scaleThemePopup .theme-option-btn.is-active{background:#14b8a633;border-color:#67e8f999;color:#67e8f9;box-shadow:0 0 0 1px #67e8f938}.icon-preset-grid{display:grid;grid-template-columns:repeat(6,minmax(42px,1fr));gap:8px;margin-top:6px;padding:2px}.icon-preset-btn{border:1px solid #cbd5e1;border-radius:10px;background:#fff;min-height:40px;cursor:pointer;font-size:21px;line-height:1;display:inline-flex;align-items:center;justify-content:center;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}.icon-preset-btn:hover{background:#f8fafc;border-color:#94a3b8;transform:translateY(-1px)}.icon-preset-btn:focus-visible{outline:2px solid rgba(14,165,233,.45);outline-offset:2px}#canvasStylePopup{left:344px}html[data-theme=dark] #iconPickerPopup,body[data-page=editor][data-diagram-theme=dark] #iconPickerPopup{background:linear-gradient(180deg,#0f172afa,#020617f5);border-color:#64748b8c;box-shadow:0 20px 40px #02061794}html[data-theme=dark] #iconPickerPopup .hint,body[data-page=editor][data-diagram-theme=dark] #iconPickerPopup .hint{color:#94a3b8}html[data-theme=dark] .icon-preset-btn,body[data-page=editor][data-diagram-theme=dark] .icon-preset-btn{background:linear-gradient(180deg,#0f172a,#111827);border-color:#334155;color:#f8fafc;box-shadow:inset 0 1px #94a3b814}html[data-theme=dark] .icon-preset-btn:hover,body[data-page=editor][data-diagram-theme=dark] .icon-preset-btn:hover{background:linear-gradient(180deg,#1e293b,#0f172a);border-color:#67e8f9;box-shadow:0 8px 18px #02061773}html[data-theme=dark] .icon-preset-btn:focus-visible,body[data-page=editor][data-diagram-theme=dark] .icon-preset-btn:focus-visible{outline-color:#67e8f9a6}html[data-theme=dark] .shape-icon-library-grid,body[data-page=editor][data-diagram-theme=dark] .shape-icon-library-grid{border-color:#334155;background:#0f172a94}html[data-theme=dark] .shape-icon-library-btn,body[data-page=editor][data-diagram-theme=dark] .shape-icon-library-btn{background:linear-gradient(180deg,#0f172a,#111827);border-color:#334155;color:#f8fafc}html[data-theme=dark] .shape-icon-library-btn:hover,body[data-page=editor][data-diagram-theme=dark] .shape-icon-library-btn:hover{border-color:#67e8f9;background:linear-gradient(180deg,#1e293b,#0f172a)}html[data-theme=dark] .shape-icon-library-card #shapeIconLibrarySearch,body[data-page=editor][data-diagram-theme=dark] .shape-icon-library-card #shapeIconLibrarySearch{background:#0f172a;color:#e2e8f0;border-color:#334155;caret-color:#e2e8f0}html[data-theme=dark] .shape-icon-library-card #shapeIconLibrarySearch::placeholder,body[data-page=editor][data-diagram-theme=dark] .shape-icon-library-card #shapeIconLibrarySearch::placeholder{color:#94a3b8}.toolbar-popup.is-hidden{display:none}@keyframes popupIn{0%{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 980px){#canvasStylePopup{left:8px;top:280px}}body{padding:0}
