
:root{--bl-ink:#171b25;--bl-muted:#727b8b;--bl-line:#e6eaf1;--bl-bg:#f5f7fb;--bl-card:#fff;--bl-blue:#356df3;--bl-blue2:#2458df;--bl-green:#1b9b68;--bl-shadow:0 18px 55px rgba(24,40,80,.08)}
*{box-sizing:border-box}body.blocks-page{margin:0;background:var(--bl-bg);color:var(--bl-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.bl-wrap{width:min(1120px,calc(100% - 36px));margin:auto}.bl-nav{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--bl-line);background:rgba(255,255,255,.86);backdrop-filter:blur(18px);position:sticky;top:0;z-index:10}.bl-brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:850;letter-spacing:-.06em}.bl-brand img{width:32px;height:32px;object-fit:contain}.bl-nav-actions{display:flex;align-items:center;gap:9px}.bl-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--bl-line);border-radius:12px;padding:11px 16px;background:#fff;color:var(--bl-ink);font-weight:750;font-size:13px;transition:.18s}.bl-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px #1b2b4a12}.bl-btn.primary{background:var(--bl-blue);color:white;border-color:var(--bl-blue);box-shadow:0 8px 22px #356df32a}.bl-btn.primary:hover{background:var(--bl-blue2)}.bl-btn.dark{background:#202633;color:#fff;border-color:#202633}.bl-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.bl-eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid #dce5ff;background:#f0f4ff;color:#356df3;padding:7px 11px;border-radius:999px;font-size:11px;font-weight:850;letter-spacing:.06em}.bl-dot{width:7px;height:7px;border-radius:50%;background:#356df3;box-shadow:0 0 0 4px #356df31b}.bl-hero{padding:92px 0 76px;position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#f5f7fb 100%)}.bl-hero:before{content:"";position:absolute;width:650px;height:650px;right:-220px;top:-270px;border-radius:50%;background:radial-gradient(circle,#dfe8ff 0,transparent 68%);pointer-events:none}.bl-hero-grid{display:grid;grid-template-columns:1fr .9fr;gap:65px;align-items:center;position:relative}.bl-hero h1{font-size:clamp(42px,5.8vw,70px);line-height:1.08;letter-spacing:-.085em;margin:18px 0 20px;font-weight:900}.bl-hero h1 span{color:var(--bl-blue)}.bl-hero p{max-width:520px;color:#687285;font-size:16px;line-height:1.9;margin:0}.bl-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.bl-note{font-size:12px;color:#939baa;margin-top:17px}.bl-preview{background:#202633;border:1px solid #30394a;border-radius:22px;padding:20px;box-shadow:0 28px 70px rgba(24,37,68,.2);transform:rotate(.4deg);color:#fff}.bl-preview-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid #3a4352;font-size:12px}.bl-preview-tag{color:#a9c0ff;background:#30436c;border-radius:20px;padding:6px 9px;font-size:10px}.bl-preview-stack{display:grid;gap:9px;margin-top:18px}.bl-preview-block{padding:13px 15px;border-radius:11px;font-size:12px;font-weight:750;box-shadow:inset 4px 0 rgba(255,255,255,.18);background:#355fce}.bl-preview-block.purple{background:#7553c7}.bl-preview-block.green{background:#268b67}.bl-preview-block.orange{background:#b46b2d}.bl-preview-block small{display:block;font-size:10px;opacity:.75;margin-top:4px;font-weight:500}.bl-section{padding:78px 0}.bl-section-head{text-align:center;max-width:650px;margin:0 auto 35px}.bl-section-head h2{font-size:clamp(28px,4vw,40px);letter-spacing:-.07em;margin:12px 0}.bl-section-head p{color:var(--bl-muted);line-height:1.8;font-size:14px}.bl-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.bl-feature{background:var(--bl-card);border:1px solid var(--bl-line);border-radius:17px;padding:23px;min-height:170px}.bl-feature-icon{width:39px;height:39px;border-radius:12px;background:#edf2ff;color:var(--bl-blue);display:grid;place-items:center;font-weight:900;margin-bottom:18px}.bl-feature h3{font-size:15px;margin:0 0 8px}.bl-feature p{font-size:12px;color:var(--bl-muted);line-height:1.75;margin:0}.bl-bottom-cta{background:#202633;color:white;border-radius:22px;padding:34px;display:flex;justify-content:space-between;align-items:center;gap:20px}.bl-bottom-cta h2{font-size:25px;letter-spacing:-.06em;margin:0 0 8px}.bl-bottom-cta p{color:#b9c1d0;font-size:13px;margin:0;line-height:1.7}.bl-footer{padding:35px 0;color:#939baa;font-size:11px;text-align:center}.bl-panel{background:#fff;border:1px solid var(--bl-line);border-radius:18px;box-shadow:var(--bl-shadow);padding:24px}.bl-form-wrap{width:min(650px,calc(100% - 32px));margin:55px auto 80px}.bl-form-wrap h1{font-size:32px;letter-spacing:-.07em;margin:14px 0 8px}.bl-sub{color:var(--bl-muted);font-size:13px;line-height:1.8;margin:0 0 23px}.bl-field{display:grid;gap:7px;margin:15px 0}.bl-field label{font-size:12px;font-weight:800}.bl-field input,.bl-field textarea,.bl-field select{width:100%;border:1px solid var(--bl-line);border-radius:11px;padding:12px 13px;background:#fbfcfe;color:var(--bl-ink);outline:none}.bl-field textarea{min-height:105px;resize:vertical;line-height:1.6}.bl-field input:focus,.bl-field textarea:focus,.bl-field select:focus{border-color:#8eacff;box-shadow:0 0 0 3px #356df315}.bl-help{font-size:11px;color:#8b94a4;line-height:1.6}.bl-status{border:1px solid var(--bl-line);border-radius:13px;padding:14px;background:#f8faff;color:#596579;font-size:12px;line-height:1.7;margin:16px 0}.bl-status.success{border-color:#c8edda;background:#f0fbf5;color:#23734b}.bl-status.error{border-color:#f1d0d0;background:#fff6f6;color:#b43b3b}.bl-app-shell{width:min(1100px,calc(100% - 32px));margin:35px auto 80px}.bl-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:30px 0 22px}.bl-page-head h1{font-size:32px;letter-spacing:-.07em;margin:7px 0}.bl-page-head p{font-size:13px;color:var(--bl-muted);margin:0}.bl-server-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bl-server-row select{min-width:260px;max-width:100%;padding:12px;border:1px solid var(--bl-line);border-radius:11px;background:#fff}.bl-project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:16px}.bl-project-card{background:#fff;border:1px solid var(--bl-line);border-radius:15px;padding:18px;display:grid;gap:12px}.bl-project-card h3{font-size:15px;margin:0}.bl-project-card p{font-size:11px;color:var(--bl-muted);margin:0}.bl-project-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:10px;color:#7f8999}.bl-pill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:20px;background:#eef3ff;color:#356df3;font-size:10px;font-weight:800}.bl-pill.green{background:#e9f8ef;color:#23834f}.bl-pill.gray{background:#f0f2f5;color:#747d8d}.bl-editor-page{background:#f1f3f7;min-height:100vh}.bl-editor-top{height:64px;background:#fff;border-bottom:1px solid var(--bl-line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:10px;position:sticky;top:0;z-index:20}.bl-editor-title{display:flex;align-items:center;gap:10px;min-width:0}.bl-editor-title input{width:min(260px,35vw);border:1px solid var(--bl-line);border-radius:9px;padding:9px 10px;font-weight:750}.bl-editor-actions{display:flex;gap:7px;align-items:center}.bl-editor-actions .bl-btn{padding:9px 12px;font-size:11px}.bl-editor-grid{display:grid;grid-template-columns:235px minmax(0,1fr) 245px;gap:12px;padding:12px;max-width:1600px;margin:auto;min-height:calc(100vh - 64px)}.bl-editor-panel{background:#fff;border:1px solid var(--bl-line);border-radius:14px;overflow:hidden;min-width:0}.bl-editor-panel-head{padding:13px 14px;border-bottom:1px solid var(--bl-line);font-size:12px;font-weight:850}.bl-palette{padding:12px;display:grid;gap:8px}.bl-palette-group{font-size:10px;color:#8a94a5;font-weight:850;letter-spacing:.06em;margin:7px 0 1px}.bl-palette-block{border:0;border-radius:9px;padding:11px 12px;color:#fff;text-align:left;font-size:11px;font-weight:800;cursor:grab;box-shadow:inset 4px 0 rgba(255,255,255,.17);transition:.15s}.bl-palette-block:hover{transform:translateX(2px);filter:brightness(1.05)}.bl-palette-block.event{background:#356df3}.bl-palette-block.condition{background:#a36a20}.bl-palette-block.action{background:#268b67}.bl-palette-block.control{background:#7654c7}.bl-palette-block.data{background:#c05a77}.bl-workspace{padding:18px;min-height:600px;background-color:#fafbfd;background-image:radial-gradient(#d8deea 1px,transparent 1px);background-size:18px 18px}.bl-workspace-hint{font-size:11px;color:#929aaa;padding:8px 10px 15px}.bl-workspace-block{background:#fff;border:1px solid #dfe5ef;border-radius:12px;margin:0 0 10px;box-shadow:0 5px 15px rgba(25,40,70,.06);overflow:hidden}.bl-workspace-block.dragging{opacity:.45}.bl-block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;color:white;font-size:11px;font-weight:850}.bl-block-head.event{background:#356df3}.bl-block-head.condition{background:#a36a20}.bl-block-head.action{background:#268b67}.bl-block-head.control{background:#7654c7}.bl-block-head.data{background:#c05a77}.bl-block-tools{display:flex;gap:5px}.bl-block-tools button{background:#ffffff24;border:0;color:white;border-radius:6px;padding:4px 7px;font-size:10px}.bl-block-fields{padding:11px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bl-block-field{display:grid;gap:5px;min-width:0}.bl-block-field.full{grid-column:1/-1}.bl-block-field label{font-size:10px;color:#6f7a8d;font-weight:800}.bl-block-field input,.bl-block-field textarea,.bl-block-field select{width:100%;min-width:0;border:1px solid #e2e7ef;border-radius:8px;padding:8px 9px;font-size:11px;background:#fbfcfe;color:#273044}.bl-block-field textarea{min-height:62px;resize:vertical}.bl-block-field input:focus,.bl-block-field textarea:focus,.bl-block-field select:focus{outline:0;border-color:#8eacff;box-shadow:0 0 0 2px #356df315}.bl-variable-tools{padding:12px;display:flex;gap:7px}.bl-variable-tools input{min-width:0;width:100%;border:1px solid var(--bl-line);border-radius:8px;padding:8px;font-size:11px}.bl-variable-tools button{border:0;background:#202633;color:#fff;border-radius:8px;padding:8px 10px;font-size:11px}.bl-variable-list{padding:0 12px 12px;display:flex;gap:6px;flex-wrap:wrap}.bl-variable-chip{background:#fff0f4;color:#a63f61;border:1px solid #f0c9d6;border-radius:20px;padding:6px 9px;font-size:10px;font-weight:800;cursor:grab}.bl-side-info{padding:13px;font-size:11px;color:#737e90;line-height:1.7}.bl-side-info strong{color:#283246}.bl-log-list{padding:12px;display:grid;gap:7px;max-height:230px;overflow:auto}.bl-log{background:#f8f9fc;border:1px solid #edf0f5;border-radius:9px;padding:9px;font-size:10px;color:#6e7889;line-height:1.6}.bl-log b{color:#273044}.bl-empty{padding:28px;text-align:center;color:#8b94a4;font-size:12px;line-height:1.7;border:1px dashed #dce2ec;border-radius:12px;background:#fff}.bl-toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#202633;color:#fff;border-radius:10px;padding:11px 15px;font-size:12px;z-index:100;transition:.2s}.bl-toast.show{opacity:1;transform:translate(-50%,0)}.bl-hidden{display:none!important}








@media(max-width:900px){.bl-hero-grid{grid-template-columns:1fr;gap:35px}.bl-preview{max-width:560px}.bl-feature-grid{grid-template-columns:repeat(2,1fr)}.bl-editor-grid{grid-template-columns:200px minmax(0,1fr)}.bl-editor-grid>.bl-editor-panel:last-child{grid-column:1/-1}.bl-project-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.bl-wrap{width:calc(100% - 28px)}.bl-nav{height:62px}.bl-brand{font-size:18px}.bl-nav-actions .bl-btn{padding:8px 10px;font-size:10px}.bl-hero{padding:65px 0 50px}.bl-hero h1{font-size:43px}.bl-hero p{font-size:14px}.bl-section{padding:55px 0}.bl-feature-grid,.bl-project-grid{grid-template-columns:1fr}.bl-bottom-cta{align-items:flex-start;flex-direction:column;padding:25px}.bl-form-wrap{margin:30px auto 55px}.bl-page-head{align-items:flex-start;flex-direction:column}.bl-server-row{align-items:stretch;flex-direction:column}.bl-server-row select{width:100%;min-width:0}.bl-editor-top{height:auto;min-height:62px;flex-wrap:wrap;padding:9px}.bl-editor-title{width:100%}.bl-editor-title input{width:100%}.bl-editor-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.bl-editor-grid{grid-template-columns:1fr;padding:8px}.bl-editor-grid>.bl-editor-panel:first-child{order:1}.bl-editor-grid>.bl-editor-panel:nth-child(2){order:2}.bl-editor-grid>.bl-editor-panel:last-child{order:3;grid-column:auto}.bl-workspace{min-height:420px;padding:10px}.bl-block-fields{grid-template-columns:1fr}.bl-block-field.full{grid-column:auto}}


/* TEND BLOCKS visual refresh, theme coverage and mobile editor */

















.bl-nav-inner{display:flex;align-items:center;justify-content:space-between;min-height:72px}
.bl-nav-link{font-size:13px;font-weight:700;color:var(--bl-muted);padding:10px}

.bl-hero-v2{position:relative;overflow:hidden;padding:100px 0 90px;background:radial-gradient(ellipse at 75% 45%,#dfe8ff 0,transparent 42%),linear-gradient(180deg,#f8faff,#f2f5fb)}

.bl-hero-glow{position:absolute;width:550px;height:550px;border-radius:50%;background:#5c8bff12;filter:blur(25px);right:-130px;top:-170px;pointer-events:none}
.bl-hero-copy,.bl-visual-stage{position:relative;z-index:1}
.bl-hero-copy h1{font-size:clamp(42px,5.4vw,68px);line-height:1.12;letter-spacing:-.075em;margin:26px 0 20px;font-weight:900}
.bl-hero-copy h1 span,.bl-section-head h2 em,.bl-safety-grid h2 em{font-style:normal;color:var(--bl-blue)}
.bl-hero-copy p{max-width:530px;line-height:1.9;font-size:16px;color:var(--bl-muted)}
.bl-hero-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px;color:var(--bl-muted);font-size:11px;font-weight:700}
.bl-hero-meta span:first-child i,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#24bf83;box-shadow:0 0 0 4px #24bf8320;margin-right:6px}
.bl-visual-stage{min-height:430px;display:grid;place-items:center}
.bl-preview-live{width:min(100%,460px);position:relative;z-index:2;box-shadow:0 35px 90px #1b37651c;transform:perspective(1000px) rotateY(-7deg) rotateX(3deg);animation:floatCanvas 6s ease-in-out infinite}
.bl-preview-top{display:flex;justify-content:space-between;align-items:center}
.bl-preview-stack{padding:16px 22px 18px}
.bl-preview-block{padding:14px 16px;border-radius:13px;background:#eaf0ff;border:1px solid #d5e1ff;color:#25385f;font-size:13px;font-weight:800;display:flex;flex-direction:column;gap:5px}
.bl-preview-block b{font-size:10px;color:#4773db;letter-spacing:.06em}
.bl-preview-block span{font-size:14px}
.bl-preview-block small{font-size:9px;opacity:.65;font-weight:700}
.bl-preview-block.purple{background:#f2edff;border-color:#e1d5ff;color:#493276}
.bl-preview-block.green{background:#e8f8f0;border-color:#c7ecd9;color:#215b43}
.bl-connector{height:15px;width:2px;background:linear-gradient(#8ca8e9,#a7b5d5);margin:auto}
.bl-preview-foot{border-top:1px solid var(--bl-line);padding:12px 20px;display:flex;justify-content:space-between;color:var(--bl-muted);font-size:9px;font-weight:800;letter-spacing:.05em}
.bl-floating-chip{position:absolute;z-index:3;padding:11px 14px;border:1px solid var(--bl-line);border-radius:12px;background:var(--bl-card);box-shadow:0 15px 40px #1b2b4a18;font-size:10px;font-weight:850;letter-spacing:.06em;animation:floatChip 5s ease-in-out infinite}
.chip-one{top:35px;left:0;color:#4773db}.chip-two{right:0;bottom:40px;color:#8b61cf;animation-delay:-2.2s}
.bl-orbit{position:absolute;border:1px dashed #8ba7e555;border-radius:50%;width:380px;height:380px;animation:spinOrbit 35s linear infinite}
.orbit-b{width:470px;height:470px;animation-direction:reverse;opacity:.5}
.bl-trust-strip{border-top:1px solid var(--bl-line);border-bottom:1px solid var(--bl-line);background:var(--bl-card)}
.bl-trust-strip .bl-wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:22px 0;color:var(--bl-muted);font-size:11px;font-weight:750}
.bl-section-v2{padding:105px 0}
.bl-section-head{max-width:680px;margin:0 auto 46px;text-align:center}
.bl-section-head h2{font-size:clamp(32px,4vw,48px);line-height:1.2;letter-spacing:-.065em;margin:18px 0}
.bl-section-head p{color:var(--bl-muted);line-height:1.85;font-size:14px}
.bl-feature-grid-v2{gap:16px}
.bl-feature-card{padding:28px;border:1px solid var(--bl-line);border-radius:20px;background:var(--bl-card);transition:transform .25s,border-color .25s,box-shadow .25s}
.bl-feature-card:hover{transform:translateY(-6px);border-color:#9bb5fa;box-shadow:0 22px 55px #1d3d7410}
.bl-feature-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:20px;font-weight:900;margin-bottom:23px}
.bl-feature-icon.blue{background:#eaf0ff;color:#356df3}.bl-feature-icon.violet{background:#f1eaff;color:#8257ce}.bl-feature-icon.green{background:#e6f8ef;color:#199968}.bl-feature-icon.orange{background:#fff2e4;color:#cf7a28}
.bl-feature-card h3,.bl-library-card h3{font-size:17px;letter-spacing:-.04em;margin:0 0 10px}
.bl-feature-card p,.bl-library-card p{font-size:13px;line-height:1.8;color:var(--bl-muted);min-height:70px}
.bl-feature-card>span{font-size:9px;letter-spacing:.12em;font-weight:900;color:var(--bl-blue)}
.bl-block-showcase{background:linear-gradient(180deg,transparent,#edf2fb70,transparent)}

.bl-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bl-library-card{padding:24px;border:1px solid var(--bl-line);border-radius:18px;background:var(--bl-card);transition:transform .2s}
.bl-library-card:hover{transform:translateY(-4px)}
.lib-color{font-size:9px;font-weight:900;letter-spacing:.12em;display:inline-block;padding:6px 9px;border-radius:7px;margin-bottom:15px}
.lib-color.event{background:#eaf0ff;color:#356df3}.lib-color.condition{background:#f0eaff;color:#8257ce}.lib-color.action{background:#e5f8ef;color:#159768}.lib-color.control{background:#fff0e4;color:#c8782b}.lib-color.data{background:#e5f2ff;color:#347cb9}.lib-color.utility{background:#fce9ef;color:#b74f78}
.lib-pills{display:flex;gap:7px;flex-wrap:wrap}.lib-pills span{border:1px solid var(--bl-line);border-radius:8px;padding:7px 9px;font-size:10px;color:var(--bl-muted);font-weight:700}
.bl-library-note{text-align:center;color:var(--bl-muted);font-size:11px;margin-top:24px}
.bl-how-section{padding:100px 0;background:var(--bl-card)}
.bl-steps{max-width:780px;margin:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bl-step{display:flex;gap:18px;padding:25px;border:1px solid var(--bl-line);border-radius:18px}
.bl-step>span{font-size:24px;font-weight:900;color:var(--bl-blue);letter-spacing:-.06em}
.bl-step h3{font-size:15px;margin:2px 0 8px}.bl-step p{font-size:12px;line-height:1.8;color:var(--bl-muted);margin:0}
.bl-safety-section{padding:90px 0;background:#f1f5fc}

.bl-safety-grid{display:grid;grid-template-columns:1fr .8fr;gap:60px;align-items:center}
.bl-safety-grid h2{font-size:clamp(30px,4vw,44px);letter-spacing:-.06em;line-height:1.2;margin:20px 0}
.bl-safety-grid p{font-size:13px;line-height:1.9;color:var(--bl-muted);max-width:520px}
.bl-safety-points{display:grid;gap:10px}
.bl-safety-points div{padding:19px 22px;border:1px solid var(--bl-line);border-radius:15px;background:var(--bl-card);display:flex;align-items:center;justify-content:space-between;gap:15px}
.bl-safety-points b{font-size:19px;color:var(--bl-blue)}.bl-safety-points span{font-size:11px;color:var(--bl-muted)}
.bl-bottom-cta{padding:75px 0;background:linear-gradient(120deg,#eaf0ff,#f5f7fb)}

.bl-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}
.bl-cta-inner h2{font-size:35px;letter-spacing:-.06em;margin:18px 0 10px}.bl-cta-inner p{color:var(--bl-muted);font-size:13px}
.bl-footer{border-top:1px solid var(--bl-line);padding:24px 0}
.bl-footer .bl-wrap{display:flex;align-items:center;justify-content:space-between;gap:18px}
.bl-footer .bl-brand{font-size:15px}.bl-footer .bl-brand img{width:25px;height:25px}.bl-footer span,.bl-footer>a:last-child{font-size:10px;color:var(--bl-muted)}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1)}
.reveal.is-visible{opacity:1;transform:translateY(0)}
@keyframes floatCanvas{0%,100%{transform:perspective(1000px) rotateY(-7deg) rotateX(3deg) translateY(0)}50%{transform:perspective(1000px) rotateY(-4deg) rotateX(1deg) translateY(-12px)}}
@keyframes floatChip{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-12px) rotate(2deg)}}
@keyframes spinOrbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}.reveal{opacity:1;transform:none}}
@media(max-width:900px){.bl-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bl-safety-grid{grid-template-columns:1fr;gap:28px}.bl-hero-v2{padding:75px 0}.bl-visual-stage{min-height:390px}}
@media(max-width:620px){
 .bl-nav-inner{min-height:60px}.bl-nav-actions{gap:3px}.bl-nav-link{display:none}.bl-nav-actions .bl-btn{padding:9px 11px;font-size:11px}
 .bl-hero-v2{padding:58px 0 38px}.bl-hero-copy h1{font-size:43px}.bl-hero-copy p{font-size:13px;line-height:1.85}.bl-hero-meta{gap:9px 13px;font-size:9px}.bl-visual-stage{min-height:340px;margin:12px -4px 0}.bl-preview-live{transform:none;animation:floatCanvasMobile 6s ease-in-out infinite}.bl-preview-stack{padding:12px 14px}.bl-preview-block{padding:11px 12px}.bl-floating-chip{font-size:8px;padding:8px 10px}.chip-one{left:0;top:10px}.chip-two{right:0;bottom:12px}.bl-orbit{width:280px;height:280px}.orbit-b{width:330px;height:330px}
 .bl-trust-strip .bl-wrap{display:grid;grid-template-columns:1fr 1fr;font-size:9px;gap:12px}.bl-section-v2,.bl-how-section{padding:68px 0}.bl-section-head{margin-bottom:30px}.bl-section-head h2{font-size:32px}.bl-feature-grid-v2,.bl-library-grid,.bl-steps{grid-template-columns:1fr}.bl-feature-card{padding:22px}.bl-feature-card p{min-height:0}.bl-library-card{padding:20px}.bl-safety-section{padding:60px 0}.bl-safety-points div{padding:15px}.bl-cta-inner{align-items:flex-start;flex-direction:column}.bl-cta-inner h2{font-size:30px}.bl-bottom-cta{padding:55px 0}.bl-footer .bl-wrap{flex-wrap:wrap}.bl-footer span{order:3;width:100%}
}
@keyframes floatCanvasMobile{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}

/* Mobile-first editor layout */
@media(max-width:760px){
 body.bl-editor-page{min-height:100dvh;overflow-x:hidden}
 .bl-editor-top{position:sticky;top:0;z-index:30;display:flex;gap:7px;padding:8px 10px;background:var(--bl-card);border-bottom:1px solid var(--bl-line);box-shadow:0 5px 20px #18274610}
 .bl-editor-title{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;width:100%}
 .bl-editor-title .bl-brand{font-size:14px;gap:5px;white-space:nowrap}.bl-editor-title .bl-brand img{width:23px;height:23px}
 .bl-editor-title input{min-width:0;width:100%;height:36px;font-size:13px;padding:7px 9px}
 .bl-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
 .bl-editor-actions .bl-help{grid-column:1/-1;font-size:10px;text-align:left}
 .bl-editor-actions .bl-btn{min-height:37px;padding:8px 10px;font-size:11px}
 .bl-editor-actions a.bl-btn{grid-column:1/-1}
 .bl-editor-grid{display:flex;flex-direction:column;gap:9px;padding:8px 8px calc(18px + env(safe-area-inset-bottom))}
 .bl-editor-grid>.bl-editor-panel:first-child{order:1;position:relative;min-width:0}
 .bl-editor-grid>.bl-editor-panel:nth-child(2){order:2;min-width:0}
 .bl-editor-grid>.bl-editor-panel:last-child{display:none}
 .bl-editor-panel{border-radius:14px;overflow:hidden;min-width:0}
 .bl-editor-panel-head{padding:11px 12px;font-size:12px}
 .bl-palette{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;max-height:142px;align-items:flex-start}
 .bl-palette-group{flex:0 0 auto;align-self:center;writing-mode:vertical-rl;font-size:9px;margin:0 2px;color:var(--bl-muted);letter-spacing:.05em}
 .bl-palette-block{flex:0 0 auto;min-width:120px;max-width:160px;min-height:54px;padding:9px 11px;white-space:normal;text-align:left;scroll-snap-align:start;font-size:11px;border-radius:11px}
 .bl-variable-tools{display:flex;gap:6px;padding:0 10px 9px}.bl-variable-tools input{min-width:0;flex:1;height:36px;font-size:12px}.bl-variable-tools button{flex:0 0 auto;padding:0 12px}
 .bl-variable-list{display:flex;gap:7px;overflow-x:auto;padding:0 10px 10px;max-width:100%;-webkit-overflow-scrolling:touch}
 .bl-variable-chip{flex:0 0 auto;min-height:32px;padding:6px 10px}
 .bl-workspace{min-height:55dvh;max-height:none;padding:10px;overflow:visible;background-size:18px 18px}
 .bl-workspace-block{margin-bottom:10px;border-radius:12px;max-width:100%;min-width:0}
 .bl-block-head{display:flex;align-items:center;gap:7px;padding:9px 9px;font-size:11px}
 .bl-block-head>span{flex:1;min-width:0;line-height:1.4}
 .bl-block-tools{display:flex;gap:3px;flex:0 0 auto}
 .bl-block-tools button{min-width:31px;min-height:31px;padding:4px 6px;font-size:10px;touch-action:manipulation}
 .bl-block-fields{display:grid;grid-template-columns:1fr;gap:9px;padding:10px}
 .bl-block-field{min-width:0}.bl-block-field>span{font-size:10px;margin-bottom:5px}
 .bl-block-field input,.bl-block-field textarea,.bl-block-field select{width:100%;min-width:0;min-height:40px;font-size:13px;padding:9px 10px;border-radius:9px}
 .bl-block-field textarea{min-height:90px}
 .bl-empty{font-size:12px;line-height:1.7;padding:18px 10px}
 .bl-editor-page .bl-toast{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;text-align:center}
}
@media(max-width:380px){
 .bl-editor-actions{grid-template-columns:1fr 1fr}.bl-editor-actions .bl-btn{font-size:10px;padding:7px 6px}
 .bl-editor-title .bl-brand{font-size:12px}.bl-palette-block{min-width:108px}
 .bl-block-tools button{min-width:28px}
}


/* TEND BLOCKS visual consistency and accessible theme system */
:root{color-scheme:light}
.bl-brand img{border-radius:11px;overflow:hidden}

.bl-theme-toggle:hover{transform:translateY(-1px);border-color:#9bb5fa}
.bl-theme-toggle:focus-visible,.bl-btn:focus-visible,.bl-nav-link:focus-visible{outline:3px solid #7fa2ff;outline-offset:3px}
.bl-hero-copy h1{max-width:690px;font-size:clamp(38px,5.1vw,64px);line-height:1.12;word-break:keep-all}
.bl-hero-copy h1 span{display:inline-block}
.bl-eyebrow{line-height:1.35}
.bl-nav-actions{gap:10px}
.bl-nav-actions 
.bl-field input:focus,.bl-field textarea:focus,.bl-field select:focus,.bl-server-row select:focus,.bl-editor-title input:focus{outline:0;border-color:#789cff;box-shadow:0 0 0 3px #356df322}
.bl-block-field input:focus,.bl-block-field textarea:focus,.bl-block-field select:focus{outline:0;border-color:#789cff;box-shadow:0 0 0 3px #356df322}
.bl-btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.bl-project-card,.bl-feature-card,.bl-library-card,.bl-panel,.bl-step,.bl-log{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s}
@media(max-width:620px){
 .bl-hero-copy h1{font-size:clamp(34px,9vw,45px);line-height:1.16;letter-spacing:-.065em}
 .bl-nav-actions{gap:7px}
 
}






































































@media(prefers-reduced-motion:reduce){.bl-theme-toggle,.bl-btn,.bl-feature-card{transition:none}}
/* Same logout confirmation component used by the main TEND portal */
.tend-account-confirm{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.42);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);animation:tend-confirm-fade 420ms cubic-bezier(.16,1,.3,1) both}
.tend-account-confirm-card{width:min(100%,390px);padding:30px;border:1px solid rgba(255,255,255,.72);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 28px 90px rgba(15,23,42,.2);animation:tend-confirm-rise 560ms cubic-bezier(.16,1,.3,1) both}
.tend-confirm-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#7c8799}
.tend-account-confirm-card h2{margin:10px 0 7px;font-size:24px;letter-spacing:-.055em;color:#171b24}
.tend-confirm-desc{margin:0;color:#78808d;font-size:13px;line-height:1.6}
.tend-account-confirm-card .btn{width:100%;min-height:46px;justify-content:center}
.tend-logout-card{display:flex;flex-direction:column;gap:0}
.tend-logout-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:26px;width:100%}
.tend-logout-actions .btn{display:flex;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:0 16px;align-items:center;justify-content:center;line-height:1.2;white-space:nowrap;border-radius:11px;font-size:13px;font-weight:750}
.tend-logout-actions .tend-logout-yes{background:#e5484d;border:1px solid #e5484d;color:#fff}
.tend-logout-actions .tend-logout-yes:hover{background:#d9363e;border-color:#d9363e}
.tend-logout-actions .btn-light{background:#fff;border:1px solid #e3e7ee;color:#292d36}
@keyframes tend-confirm-fade{from{opacity:0}to{opacity:1}}
@keyframes tend-confirm-rise{from{opacity:0;transform:translate3d(0,16px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@media(prefers-reduced-motion:reduce){.tend-account-confirm,.tend-account-confirm-card{animation:none}}

/* Responsive Entry-inspired BLOCKS editor */
.bl-brand img,.bl-editor-title .bl-brand img{border-radius:13px!important;overflow:hidden;clip-path:inset(0 round 13px)}
.bl-editor-app{width:min(100%,1800px);height:calc(100vh - 76px);min-height:580px;margin:auto;display:grid;grid-template-columns:250px minmax(0,1fr) 250px;gap:12px;padding:12px;box-sizing:border-box}
.bl-editor-sidebar,.bl-editor-inspector,.bl-editor-main{min-width:0;min-height:0;border:1px solid var(--bl-line,#e5eaf1);border-radius:16px;background:var(--bl-card,#fff);overflow:hidden}
.bl-editor-sidebar,.bl-editor-inspector{display:flex;flex-direction:column;padding:14px}
.bl-sidebar-heading{display:flex;align-items:baseline;justify-content:space-between;padding:2px 2px 12px}.bl-sidebar-heading strong,.bl-canvas-toolbar strong{font-size:14px;font-weight:850}.bl-sidebar-heading span{font-size:9px;letter-spacing:.12em;color:var(--bl-muted,#8792a3);font-weight:800}
.bl-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;border-radius:12px;background:var(--bl-soft,#f3f5f8);margin-bottom:10px}
.bl-category-tab{border:0;background:transparent;border-radius:8px;padding:9px 3px;font-size:11px;font-weight:750;color:var(--bl-muted,#778397);cursor:pointer}.bl-category-tab.active{background:var(--bl-card,#fff);color:var(--bl-text,#172033);box-shadow:0 2px 8px #10182812}
.bl-palette{overflow:auto;min-height:90px;flex:1;display:flex;flex-direction:column;gap:7px;padding:2px 2px 10px}
.bl-palette-block{width:100%;min-height:39px;text-align:left;border:1px solid var(--bl-line,#e5eaf1);border-radius:9px;padding:9px 11px;background:var(--bl-card,#fff);color:var(--bl-text,#182235);font-size:12px;font-weight:700;cursor:grab;box-shadow:0 1px 2px #10182808;transition:border-color .15s,transform .15s}.bl-palette-block:hover{border-color:#6c93ed;transform:translateX(2px)}
.bl-palette-block.event{border-left:4px solid #e6a23c}.bl-palette-block.condition{border-left:4px solid #9a76dc}.bl-palette-block.action{border-left:4px solid #38a879}.bl-palette-block.control{border-left:4px solid #e28c48}.bl-palette-block.data,.bl-palette-block.value{border-left:4px solid #4b8fe8}
.bl-sidebar-divider{height:1px;background:var(--bl-line,#e5eaf1);margin:10px 0}
.bl-editor-main{display:flex;flex-direction:column;position:relative}.bl-canvas-toolbar{height:48px;flex:none;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--bl-line,#e5eaf1);background:var(--bl-card,#fff)}.bl-canvas-toolbar>div:first-child{display:flex;align-items:center;gap:12px}.bl-canvas-toolbar #blocks-count{font-size:11px;color:var(--bl-muted,#8792a3)}
.bl-canvas-tools{display:flex;align-items:center;gap:5px}.bl-canvas-tools button{height:29px;min-width:30px;padding:0 8px;border:1px solid var(--bl-line,#e5eaf1);border-radius:7px;background:var(--bl-card,#fff);color:var(--bl-text,#172033);font-size:12px;cursor:pointer}.bl-canvas-tools span{font-size:10px;min-width:38px;text-align:center;color:var(--bl-muted,#8792a3)}
.bl-workspace{position:relative;flex:1;min-height:0;overflow:hidden;isolation:isolate;touch-action:pan-y;background-color:#f8fafc;background-image:radial-gradient(#cbd4e1 1px,transparent 1px);background-size:20px 20px}
#blocks-workspace-list{position:absolute;left:0;top:0;width:max-content;min-width:320px;transform-origin:0 0;display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding:0 0 80px;will-change:transform}
.bl-canvas-tip{position:absolute;z-index:2;left:14px;bottom:12px;max-width:calc(100% - 28px);padding:7px 10px;border-radius:8px;background:#ffffffd9;color:#64748b;border:1px solid #e2e8f0;font-size:10px;pointer-events:none}.bl-workspace.is-panning{cursor:grabbing;user-select:none}
.bl-event-stack{width:320px;max-width:calc(100vw - 40px);display:flex;flex-direction:column;align-items:stretch;filter:drop-shadow(0 5px 12px #1720330c)}
.bl-event-children{position:relative;margin-left:20px;padding:8px 0 8px 16px;border-left:3px solid #e7a23b;display:flex;flex-direction:column;align-items:stretch;gap:0}
.bl-workspace-block{position:relative;width:100%;box-sizing:border-box;border:1px solid #dbe2ec;border-radius:10px 10px 13px 13px;background:#fff;color:#172033;overflow:visible;margin:0 0 9px}
.bl-event-hat{border-radius:18px 18px 10px 10px;border-top:5px solid #e6a23c}.bl-connected-block{margin-left:0;width:100%;border-radius:8px 8px 11px 11px}.bl-condition-block{border-left:4px solid #9a76dc;margin-left:4px;width:calc(100% - 4px);border-radius:8px 8px 8px 15px}
.bl-block-head{min-height:38px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:8px 8px 0 0;font-size:12px;font-weight:800}
.bl-block-head.event{background:#fff0d7;color:#80500d}.bl-block-head.condition{background:#f0eaff;color:#62429a}.bl-block-head.action{background:#dcf7e9;color:#176c49}.bl-block-head.control{background:#fff0e4;color:#92501e}.bl-block-head.data,.bl-block-head.value{background:#e5f0ff;color:#245a9b}
.bl-block-tools{display:flex;gap:3px;flex:none}.bl-block-tools button{border:1px solid #00000012;background:#ffffffa8;color:inherit;border-radius:5px;padding:3px 6px;font-size:10px;cursor:pointer}
.bl-block-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.bl-block-field{min-width:0;display:flex;flex-direction:column;gap:4px;font-size:10px;color:#697586}.bl-block-field.full{grid-column:1/-1}
.bl-block-field input,.bl-block-field textarea,.bl-block-field select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#182235;padding:8px;font-size:12px;outline:none}.bl-block-field textarea{min-height:64px;resize:vertical}.bl-block-field input:focus,.bl-block-field textarea:focus,.bl-block-field select:focus{border-color:#5b8def;box-shadow:0 0 0 3px #5b8def20}
.bl-canvas-empty{position:absolute;left:24px;top:24px}.bl-editor-inspector .bl-side-info{font-size:11px;line-height:1.8;color:var(--bl-muted,#6b7789);overflow:auto}.bl-editor-inspector .bl-editor-panel-head{font-size:11px;font-weight:850;padding:11px 0 7px;border-bottom:1px solid var(--bl-line,#e5eaf1);margin-bottom:8px}.bl-editor-inspector #blocks-editor-server{padding:0 0 12px}.bl-editor-inspector .bl-log-list{overflow:auto;min-height:60px}










@media(max-width:1100px){.bl-editor-app{grid-template-columns:220px minmax(0,1fr);height:calc(100vh - 76px)}.bl-editor-inspector{display:none}}
@media(max-width:700px){.bl-editor-top{height:auto;min-height:64px;align-items:flex-start;gap:8px;padding:9px 10px;flex-wrap:wrap}.bl-editor-title{min-width:0;flex:1}.bl-editor-actions{width:100%;justify-content:flex-end;gap:6px}.bl-editor-actions .bl-help{margin-right:auto;font-size:10px}.bl-editor-actions .bl-btn{padding:8px 10px;font-size:11px}.bl-editor-app{height:calc(100dvh - 112px);min-height:480px;display:flex;flex-direction:column;gap:8px;padding:8px}.bl-editor-sidebar{flex:none;max-height:190px;padding:9px}.bl-sidebar-heading{padding-bottom:7px}.bl-category-tabs{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin-bottom:7px}.bl-category-tab{font-size:10px;padding:8px 2px}.bl-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:82px;overflow:auto;gap:5px}.bl-palette-block{min-height:34px;padding:7px;font-size:10px}.bl-sidebar-divider,.bl-editor-sidebar>.bl-editor-panel-head,.bl-variable-tools,.bl-variable-list{display:none}.bl-editor-main{flex:1;min-height:240px}.bl-canvas-toolbar{height:42px;padding:0 9px}.bl-canvas-toolbar strong{font-size:12px}.bl-workspace{min-height:0}.bl-event-stack{width:290px}.bl-block-fields{grid-template-columns:1fr}.bl-block-field.full{grid-column:auto}.bl-canvas-tip{font-size:9px;left:7px;bottom:7px}.bl-canvas-tools button{height:26px;min-width:26px}.bl-canvas-tools button:last-child{padding:0 6px}}

/* Closed beta CTA: readable in both themes */
.bl-bottom-cta{background:linear-gradient(120deg,#eaf0ff 0%,#f5f7fb 100%);color:#172033}
.bl-bottom-cta .bl-cta-inner{color:#172033}
.bl-bottom-cta .bl-cta-inner h2{color:#172033!important}
.bl-bottom-cta .bl-cta-inner p{color:#596579!important}
.bl-bottom-cta .bl-cta-inner .bl-eyebrow{color:#285bd0!important;background:#e4ebff!important;border-color:#cbd8ff!important}
.bl-bottom-cta .bl-cta-inner .bl-btn.primary{color:#fff!important}






/* Entry-like block drag and drop feedback */
.bl-workspace-block{cursor:grab;transition:box-shadow .14s ease,opacity .14s ease,transform .14s ease}
.bl-workspace-block:active{cursor:grabbing}
.bl-workspace-block.dragging{opacity:.38;transform:scale(.985)}
.bl-workspace-block.bl-drop-before:before,.bl-workspace-block.bl-drop-after:after{content:"";position:absolute;left:-5px;right:-5px;height:5px;border-radius:8px;background:#3978f6;box-shadow:0 0 0 3px #3978f626;z-index:20;pointer-events:none}
.bl-workspace-block.bl-drop-before:before{top:-8px}
.bl-workspace-block.bl-drop-after:after{bottom:-8px}

.bl-palette-block{cursor:grab}
.bl-palette-block:active{cursor:grabbing}
@media(prefers-reduced-motion:reduce){.bl-workspace-block{transition:none}}


/* TEND BLOCKS - Blockly powered visual programming workspace */
.bl-editor-app{grid-template-columns:minmax(0,1fr) 250px}

.bl-editor-main{min-width:0}
.bl-blockly-workspace{touch-action:none;background:var(--bl-bg)}
#blocklyDiv{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.bl-blockly-workspace .blocklySvg{background:transparent!important}
.bl-blockly-workspace .blocklyToolboxDiv{background:var(--bl-card)!important;border-right:1px solid var(--bl-line);padding:8px 5px}
.bl-blockly-workspace .blocklyTreeRow{height:38px!important;line-height:38px!important;border-radius:9px;margin:2px 5px;padding-right:12px}
.bl-blockly-workspace .blocklyTreeLabel{font-family:inherit;font-size:12px;font-weight:750}
.bl-blockly-workspace .blocklyFlyout{filter:drop-shadow(4px 0 12px #18243a12)}
.bl-blockly-workspace .blocklyScrollbarHandle{fill:#91a0b5!important}
.bl-blockly-workspace .blocklyMainBackground{stroke:none!important}







@media(max-width:1100px){.bl-editor-app{grid-template-columns:minmax(0,1fr)}.bl-editor-inspector{display:none}}
@media(max-width:700px){.bl-editor-app{display:flex}.bl-editor-main{flex:1;min-height:0}.bl-blockly-workspace{min-height:0}.bl-editor-top{flex-wrap:wrap}}


.bl-canvas-tools #blocks-undo,.bl-canvas-tools #blocks-redo,.bl-canvas-tools #blocks-cleanup{min-width:30px;padding:0 7px}
@media(max-width:700px){.bl-canvas-tools #blocks-cleanup{display:none}.bl-canvas-tools button{font-size:11px}}


/* Compact Blockly editor refinement */
.bl-editor-app{grid-template-columns:minmax(0,1fr) 214px;gap:9px;padding:9px;height:calc(100vh - 68px)}
.bl-editor-top{min-height:54px;padding:8px 14px}
.bl-editor-title .bl-brand{font-size:13px;gap:7px}
.bl-editor-title .bl-brand img{width:27px;height:27px}
.bl-editor-title input{font-size:13px;max-width:240px;padding:6px 9px}
.bl-editor-actions{gap:6px}
.bl-editor-actions .bl-btn{min-height:30px;padding:6px 10px;font-size:11px;border-radius:8px}
.bl-editor-actions .bl-help{font-size:10px}
.bl-editor-inspector{padding:10px}
.bl-editor-inspector .bl-side-info{font-size:10px;line-height:1.65}
.bl-editor-inspector .bl-editor-panel-head{font-size:10px;padding:8px 0 6px}
.bl-canvas-toolbar{height:39px;padding:0 10px}
.bl-canvas-toolbar strong{font-size:12px}
.bl-canvas-tools{gap:4px}
.bl-canvas-tools button{height:26px;min-width:27px;padding:0 6px;font-size:11px}
.bl-canvas-tools span{font-size:9px}
.bl-blockly-workspace .blocklyTreeRow{height:32px!important;line-height:32px!important;margin:1px 4px;padding-right:8px}
.bl-blockly-workspace .blocklyTreeLabel{font-size:11px;font-weight:700}
.bl-blockly-workspace .blocklyToolboxDiv{padding:5px 3px}
.bl-resource-tools{display:flex;align-items:center;gap:6px;justify-content:space-between;margin:2px 0 10px;padding:7px 8px;border:1px solid var(--bl-line);border-radius:9px;background:var(--bl-soft);font-size:9px;color:var(--bl-muted)}
.bl-resource-tools span{min-width:0;line-height:1.4}
.bl-resource-tools button{flex:none;border:1px solid var(--bl-line);background:var(--bl-card);color:var(--bl-text);border-radius:6px;padding:5px 7px;font-size:9px;cursor:pointer}


@media(max-width:1100px){.bl-editor-app{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .bl-editor-top{min-height:unset;padding:7px 9px}
 .bl-editor-title input{font-size:12px;max-width:150px}
 .bl-editor-actions .bl-btn{min-height:27px;padding:5px 8px;font-size:10px}
 .bl-editor-app{height:calc(100dvh - 98px);min-height:420px;padding:5px;gap:5px}
 .bl-canvas-toolbar{height:35px;padding:0 7px}
 .bl-canvas-tools button{height:24px;min-width:24px;padding:0 5px}
}

/* Mobile viewport-safe Blockly editor layout */
body.bl-editor-page{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.bl-editor-page .bl-editor-top{position:relative;top:auto;flex:0 0 auto;height:auto;min-height:54px}
.bl-editor-page .bl-editor-app{flex:1 1 0;height:auto!important;min-height:0!important;max-height:none;overflow:hidden}
.bl-editor-page .bl-editor-main{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
.bl-editor-page .bl-canvas-toolbar{flex:0 0 39px;min-height:0}
.bl-editor-page .bl-blockly-workspace{position:relative;flex:1 1 0;height:auto;min-height:0!important;overflow:hidden}
.bl-editor-page #blocklyDiv{position:absolute;inset:0;width:100%;height:100%}
@media(max-width:700px){
 body.bl-editor-page{height:100dvh;overflow:hidden}
 .bl-editor-page .bl-editor-top{width:100%;gap:6px}
 .bl-editor-page .bl-editor-title{width:auto;flex:1 1 100%;min-width:0}
 .bl-editor-page .bl-editor-actions{width:100%;display:flex;justify-content:flex-end;flex-wrap:wrap}
 .bl-editor-page .bl-editor-app{flex:1 1 0;height:auto!important;min-height:0!important;padding:4px;gap:4px}
 .bl-editor-page .bl-editor-main{flex:1 1 0;min-height:0}
 .bl-editor-page .bl-canvas-toolbar{height:34px;flex-basis:34px;min-height:34px;padding:0 5px}
 .bl-editor-page .bl-canvas-toolbar>div:first-child{min-width:55px}
 .bl-editor-page .bl-canvas-tools{gap:2px}
 .bl-editor-page .bl-canvas-tools button{height:24px;min-width:23px;padding:0 4px}
 .bl-editor-page .bl-blockly-workspace{flex:1 1 0;min-height:0!important}
 .bl-editor-page .blocklyToolboxDiv{max-width:108px}
}
@media(max-height:520px) and (max-width:900px){
 .bl-editor-page .bl-editor-top{padding-top:4px;padding-bottom:4px}
 .bl-editor-page .bl-editor-title .bl-brand img{width:22px;height:22px}
 .bl-editor-page .bl-editor-actions .bl-btn{min-height:23px;padding:3px 6px}
}


/* Entry-style project element manager */
.bl-manager-launch{padding:12px;display:grid;gap:9px}.bl-manager-launch p{margin:0;color:#788397;font-size:11px;line-height:1.6}.bl-manager-launch button{border:0;border-radius:10px;background:#356df3;color:#fff;padding:11px 12px;font-size:12px;font-weight:800}.bl-manager-overlay{position:fixed;inset:0;z-index:1000;background:rgba(20,30,48,.38);display:grid;place-items:center;padding:18px}.bl-manager-overlay.bl-hidden{display:none!important}.bl-manager{width:min(650px,100%);max-height:min(760px,92vh);overflow:auto;background:#fff;border:1px solid #e5eaf2;border-radius:18px;box-shadow:0 25px 90px #16274630;color:#1b2433}.bl-manager>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e9edf4}.bl-manager>header strong{font-size:16px}.bl-manager button{border:1px solid #e1e7f0;background:#fff;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:750;color:#273246}.bl-manager-tabs{display:flex;gap:6px;padding:12px 16px;border-bottom:1px solid #edf0f5;overflow:auto}.bl-manager-tabs button.active{background:#356df3;color:#fff;border-color:#356df3}.bl-manager-body{padding:17px 18px 20px}.bl-manager-body p{font-size:12px;color:#7b8494;line-height:1.7;margin:0 0 13px}.bl-manager-body [data-pane].bl-hidden,.bl-manager-body .bl-hidden{display:none!important}.bl-manager-create{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.bl-manager-create input,.bl-manager-create select{flex:1 1 130px;min-width:0;border:1px solid #e1e7f0;border-radius:9px;padding:10px;font-size:12px;background:#fbfcfe;color:#202a3a}.bl-manager-create button{background:#202b3d;color:#fff;border-color:#202b3d}.bl-manager-create label{font-size:11px;color:#596579;white-space:nowrap}.bl-manager-create label input{width:auto;vertical-align:middle}.bl-manager-list{display:grid;gap:7px}.bl-manager-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #e9edf3;border-radius:10px;background:#fbfcfe;font-size:12px}.bl-manager-row>span{font-weight:750;overflow-wrap:anywhere}.bl-manager-row>div{display:flex;gap:5px;flex:0 0 auto}.bl-manager-row button{padding:6px 9px}.bl-manager-empty{padding:18px;text-align:center;color:#9099a8;border:1px dashed #dce3ed;border-radius:10px;font-size:11px}#manager-options{margin-top:18px;padding-top:16px;border-top:1px solid #edf0f5}#manager-options h4{font-size:13px;margin:0 0 12px}
/* Keep Blockly toolbox and flyout typography independent from workspace zoom */
.bl-editor-sidebar{flex:0 0 250px;min-width:250px;transform:none!important}.bl-editor-sidebar .bl-palette,.bl-editor-sidebar .bl-category-tabs{zoom:1!important;transform:none!important}.bl-editor-main{min-width:0;flex:1}.bl-editor-main .blocklyToolboxDiv{transform:none!important}
@media(max-width:760px){.bl-manager-overlay{padding:9px}.bl-manager{max-height:94dvh;border-radius:14px}.bl-manager>header{padding:14px}.bl-manager-body{padding:13px}.bl-manager-create{align-items:stretch}.bl-manager-create button{flex:0 0 auto}}


/* FIX: Entry-style editor layout — compact left palette, dominant center workspace, small right inspector */
.bl-editor-page .bl-editor-app{
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr) 214px!important;
  grid-template-rows:minmax(0,1fr);
  align-items:stretch;
  gap:9px;
  width:100%;
  max-width:1800px;
  height:auto!important;
  min-height:0!important;
  flex:1 1 0;
  padding:9px;
  margin:0 auto;
  overflow:hidden;
}
.bl-editor-page .bl-editor-sidebar{
  grid-column:1;
  grid-row:1;
  width:auto;
  min-width:0;
  max-width:190px;
  flex:initial;
  padding:10px;
  overflow:hidden;
}
.bl-editor-page .bl-editor-main{
  grid-column:2;
  grid-row:1;
  width:100%;
  min-width:0;
  min-height:0;
}
.bl-editor-page .bl-editor-inspector{
  grid-column:3;
  grid-row:1;
  display:flex;
  width:auto;
  min-width:0;
  max-width:214px;
  padding:10px;
}
.bl-editor-page .bl-editor-sidebar .bl-palette{
  min-width:0;
  overflow-x:hidden;
}
.bl-editor-page .bl-editor-sidebar .bl-palette-block{
  width:100%;
  min-width:0;
}
@media(max-width:1100px){
  .bl-editor-page .bl-editor-app{
    grid-template-columns:174px minmax(0,1fr)!important;
  }
  .bl-editor-page .bl-editor-sidebar{
    grid-column:1;
    grid-row:1;
    max-width:none;
  }
  .bl-editor-page .bl-editor-main{
    grid-column:2;
    grid-row:1;
  }
  .bl-editor-page .bl-editor-inspector{
    display:none;
  }
}
@media(max-width:700px){
  .bl-editor-page .bl-editor-app{
    display:flex!important;
    flex-direction:column;
    gap:5px;
    padding:5px;
  }
  .bl-editor-page .bl-editor-sidebar{
    order:0;
    width:100%;
    max-width:none;
    max-height:130px;
    flex:0 0 auto;
  }
  .bl-editor-page .bl-editor-main{
    order:1;
    width:100%;
    flex:1 1 0;
    min-height:0;
  }
  .bl-editor-page .bl-editor-inspector{display:none}
}


/* BLOCKS: put the real Blockly toolbox in the dedicated left library panel */
.bl-editor-page .bl-editor-app{grid-template-columns:190px minmax(0,1fr) 214px!important}
.bl-editor-page .bl-editor-sidebar{display:flex!important;flex-direction:column;min-width:0;overflow:hidden}
.bl-editor-page .bl-toolbox-holder{position:relative;display:flex;flex:1 1 0;min-height:100px;min-width:0;overflow:hidden;border:1px solid var(--bl-line);border-radius:10px;background:#fff}
.bl-editor-page .bl-toolbox-holder>.blocklyToolboxDiv{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;width:100%!important;height:100%!important;max-height:100%!important;overflow:auto!important;border:0!important;box-sizing:border-box}
.bl-editor-page .bl-toolbox-holder .blocklyTreeRoot{padding:5px 3px}
.bl-editor-page .bl-toolbox-holder .blocklyTreeRow{width:calc(100% - 8px);box-sizing:border-box}
.bl-editor-page .bl-editor-sidebar .bl-manager-launch{display:grid;gap:7px;flex:0 0 auto;padding:7px 1px 1px}
.bl-editor-page .bl-editor-sidebar .bl-manager-launch .bl-editor-panel-head{padding:2px 0 0;border:0;margin:0}
.bl-editor-page .bl-editor-sidebar .bl-manager-launch p{font-size:10px;line-height:1.45}
.bl-editor-page .bl-editor-sidebar .bl-manager-launch button{width:100%;cursor:pointer}
@media(max-width:1100px){
 .bl-editor-page .bl-editor-app{grid-template-columns:174px minmax(0,1fr)!important}
}
@media(max-width:700px){
 .bl-editor-page .bl-editor-app{display:flex!important;flex-direction:column}
 .bl-editor-page .bl-editor-sidebar{max-height:180px;flex:0 0 180px;padding:8px}
 .bl-editor-page .bl-toolbox-holder{min-height:65px}
 .bl-editor-page .bl-editor-sidebar .bl-manager-launch{grid-template-columns:auto 1fr auto;align-items:center;padding-top:4px}
 .bl-editor-page .bl-editor-sidebar .bl-manager-launch p{display:none}
 .bl-editor-page .bl-editor-sidebar .bl-manager-launch .bl-editor-panel-head{font-size:10px}
 .bl-editor-page .bl-editor-sidebar .bl-manager-launch button{width:auto;padding:6px 9px}
}


/* BLOCKS editor: remove the separate library column and place project tools below Blockly categories */
.bl-editor-page .bl-editor-app{
  grid-template-columns:minmax(0,1fr) 214px!important;
}
.bl-editor-page .bl-editor-main{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0;
}
.bl-editor-page .bl-editor-inspector{
  grid-column:2!important;
  grid-row:1!important;
}
.bl-editor-page .bl-editor-sidebar,
.bl-editor-page .bl-toolbox-holder{
  display:none!important;
}
.bl-editor-page .blocklyToolboxDiv{
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box;
  overflow:hidden!important;
  background:#fff!important;
}
.bl-editor-page .blocklyToolboxDiv .blocklyToolboxContents{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.bl-editor-page .bl-toolbox-manager{
  position:relative;
  z-index:5;
  flex:0 0 auto;
  display:grid;
  gap:5px;
  padding:11px 10px 12px;
  margin-top:auto;
  border-top:1px solid #e7ebf2;
  background:#fff;
  color:#172033;
}
.bl-editor-page .bl-toolbox-manager strong{
  font-size:12px;
  line-height:1.35;
  font-weight:750;
}
.bl-editor-page .bl-toolbox-manager p{
  margin:0;
  color:#748096;
  font-size:10px;
  line-height:1.45;
}
.bl-editor-page .bl-toolbox-manager button{
  width:100%;
  min-height:32px;
  padding:7px 9px;
  border:1px solid #dce3ed;
  border-radius:8px;
  background:#f7f9fc;
  color:#26344b;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.bl-editor-page .bl-toolbox-manager button:hover{
  border-color:#9bb8f5;
  background:#eef4ff;
}
@media(max-width:1100px){
  .bl-editor-page .bl-editor-app{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .bl-editor-page .bl-editor-inspector{display:none!important}
}
@media(max-width:700px){
  .bl-editor-page .bl-editor-app{
    display:flex!important;
    flex-direction:column;
  }
  .bl-editor-page .bl-editor-main{
    order:0;
    flex:1 1 0;
    min-height:0;
  }
  .bl-editor-page .blocklyToolboxDiv{
    max-width:155px;
  }
  .bl-editor-page .bl-toolbox-manager{
    padding:8px 7px;
  }
  .bl-editor-page .bl-toolbox-manager p{
    font-size:9px;
  }
}


/* Project element manager is a native-looking row directly after the Values category */
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row{
  display:flex!important;
  align-items:center;
  box-sizing:border-box;
  min-height:32px;
  height:32px;
  margin:1px 4px;
  padding:0 8px;
  border-radius:6px;
  cursor:pointer;
  user-select:none;
}
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row .blocklyTreeLabel{
  font-family:inherit;
  font-size:11px;
  line-height:32px;
  font-weight:700;
  color:#303b4d;
  white-space:nowrap;
}
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row:hover{
  background:#edf3ff;
}
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row:focus-visible{
  outline:2px solid #3978f6;
  outline-offset:-2px;
}


/* Project manager inherits the exact native Blockly category row structure */
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row{
  cursor:pointer!important;
  user-select:none;
  margin-top:0!important;
}
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row:hover{
  background-color:#edf3ff;
}
.bl-editor-page .blocklyToolboxDiv .bl-toolbox-manager-row:focus-visible{
  outline:2px solid #3978f6;
  outline-offset:-2px;
}
