:root{
  --bg:#070b14;--panel:#0d1422;--panel2:#111a2b;--line:rgba(255,255,255,.08);
  --text:#f8fafc;--muted:#93a0b5;--primary:#8b5cf6;--primary2:#6d5dfc;
  --cyan:#22d3ee;--green:#34d399;--red:#fb7185;--amber:#f59e0b
}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text)}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden;
background:radial-gradient(circle at 8% -8%,rgba(139,92,246,.20),transparent 32%),radial-gradient(circle at 100% 0%,rgba(34,211,238,.09),transparent 26%),#070b14}
button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.app{height:100vh;display:grid;grid-template-rows:70px 1fr}
.top{
  margin:12px 14px 0;border:1px solid var(--line);border-radius:18px;background:rgba(10,15,27,.86);backdrop-filter:blur(18px);
  display:flex;align-items:center;justify-content:space-between;padding:0 14px;gap:12px;box-shadow:0 12px 34px rgba(0,0,0,.22)
}
.brand{display:flex;align-items:center;gap:10px}.brand-home{color:inherit;text-decoration:none;border-radius:16px;transition:transform .18s ease,opacity .18s ease}.brand-home:hover{transform:translateY(-1px);opacity:.9}.brand-home:focus-visible{outline:3px solid rgba(47,131,247,.28);outline-offset:5px}.logo{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-weight:900;
background:linear-gradient(135deg,#a477ff,#6d5dfc 58%,#22d3ee);box-shadow:0 10px 28px rgba(109,93,252,.32)}
.brand h1{font-size:15px;margin:0}.brand p{font-size:10px;color:var(--muted);margin:3px 0 0}
.project{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.project input{width:220px;background:transparent;color:white;border:1px solid transparent;border-radius:8px;padding:7px 9px;outline:none;font-weight:700}
.project input:hover,.project input:focus{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.12)}
.actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.btn{height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04);color:white;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.btn:hover{background:rgba(255,255,255,.075)}.btn.primary{border:0;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 9px 24px rgba(109,93,252,.25)}.btn.red{color:#ffd8df;background:rgba(251,113,133,.08)}
.workspace{min-height:0;display:grid;grid-template-columns:290px minmax(520px,1fr) 360px;gap:12px;padding:12px 14px 14px}
.panel{min-height:0;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(15,23,40,.95),rgba(10,16,28,.95));box-shadow:0 28px 90px rgba(0,0,0,.32);overflow:hidden}
.head{height:52px;padding:0 13px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.head h3{font-size:11px;margin:0}.small{font-size:9px;color:var(--muted)}
.scroll{height:calc(100% - 52px);overflow:auto;padding:11px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:5px 2px 8px;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.item,.emp{border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025);padding:9px;margin-bottom:7px}.item.active,.emp.active{border-color:rgba(139,92,246,.42);background:rgba(139,92,246,.08)}
.itemrow{display:flex;gap:8px;align-items:center}.thumb{width:42px;height:32px;border-radius:7px;background:linear-gradient(135deg,#fff,#e9edf4);position:relative}.thumb:after{content:"";position:absolute;left:9px;top:9px;width:22px;height:3px;border-radius:4px;background:#7c5cff;box-shadow:0 6px 0 #cbd5e1,0 12px 0 #cbd5e1}
.it{font-size:10px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.im{font-size:8.5px;color:var(--muted);margin-top:2px}
.emp{display:flex;align-items:center;gap:8px;cursor:pointer}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,rgba(139,92,246,.23),rgba(34,211,238,.10));font-size:10px;font-weight:900;border:1px solid var(--line)}
.empinfo{min-width:0;flex:1}.empname{font-size:10px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emprole{font-size:8.5px;color:var(--muted);margin-top:2px}.mini{border:0;background:none;color:#aab5c7;font-size:16px}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
.center{display:flex;flex-direction:column}.canvasbar{height:52px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:10px}.live{display:flex;align-items:center;gap:8px;min-width:0}.dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(52,211,153,.08)}.live b{font-size:10px}.live span{font-size:8.5px;color:var(--muted);margin-left:4px}
.canvas-tools{display:flex;align-items:center;gap:8px;min-width:0}.modes{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#09101e}.mode{border:0;background:transparent;color:var(--muted);border-radius:7px;padding:6px 12px;font-size:9px;font-weight:800}.mode.active{background:rgba(255,255,255,.08);color:white}.mode.active[data-mode=preview]{background:rgba(52,211,153,.12);color:#d1fae5}.mode.active[data-mode=edit]{background:rgba(139,92,246,.14);color:#ede9fe}
.stage{flex:1;min-height:0;overflow:auto;padding:24px;background:linear-gradient(rgba(255,255,255,.017) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.017) 1px,transparent 1px),#080e18;background-size:24px 24px}
.canvas{width:100%;max-width:980px;margin:auto;transition:.2s}.browser{background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.08)}.browserbar{height:38px;background:#eef1f5;border-bottom:1px solid #d9dee6;display:flex;align-items:center;gap:6px;padding:0 11px}.bd{width:8px;height:8px;border-radius:50%;background:#c8ced8}.url{margin-left:7px;height:22px;max-width:430px;flex:1;border-radius:6px;border:1px solid #d8dee8;background:white;color:#929bad;font-size:8.5px;display:flex;align-items:center;padding:0 8px}
.preview{position:relative;background:white;min-height:530px}iframe{width:100%;height:530px;border:0;background:white}.empty{position:absolute;inset:0;display:grid;place-items:center;background:white;color:#64748b;text-align:center;padding:30px}.empty h4{margin:0 0 5px;color:#334155;font-size:14px}.empty p{margin:0 auto 12px;max-width:330px;font-size:10px;line-height:1.55}.emptyicon{width:56px;height:56px;border-radius:18px;margin:0 auto 12px;display:grid;place-items:center;background:linear-gradient(135deg,#ede9fe,#cffafe);color:#6d5dfc;font-weight:900}
.status{height:32px;border-top:1px solid var(--line);padding:0 12px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:8.5px}
.tabs{height:52px;display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}.tab{border:0;background:transparent;color:var(--muted);font-size:9px;font-weight:900;position:relative}.tab.active{color:#fff}.tab.active:after{content:"";position:absolute;height:2px;bottom:0;left:22%;right:22%;background:linear-gradient(90deg,var(--primary),var(--cyan))}
.rightbody{height:calc(100% - 52px);overflow:auto;padding:12px}.card{border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.025);padding:12px;margin-bottom:10px}.ct{font-size:9px;color:#d8e0ec;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px}
.field{margin-bottom:8px;min-width:0}.field:last-child{margin:0}.field label{display:flex;justify-content:space-between;font-size:8.5px;color:#adb8ca;font-weight:800;margin-bottom:4px}.field input,.field textarea,.field select{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:#09101d;color:white;outline:none;padding:8px 9px;font-size:9.5px}.field input:focus,.field textarea:focus{border-color:rgba(34,211,238,.48);box-shadow:0 0 0 3px rgba(34,211,238,.08)}.field textarea{min-height:66px;resize:vertical}.fieldrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.chips{display:flex;gap:5px;flex-wrap:wrap}.chip{padding:5px 7px;border-radius:7px;border:1px solid rgba(139,92,246,.12);background:rgba(139,92,246,.1);color:#ddd6fe;font-size:8.5px;font-weight:850}
.note{padding:8px;border-radius:8px;border:1px solid rgba(34,211,238,.1);background:rgba(34,211,238,.045);font-size:8.5px;line-height:1.5;color:#a7b6c9}
.code{width:100%;min-height:180px;border:1px solid var(--line);border-radius:9px;background:#070d17;color:#dbeafe;padding:9px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:8.7px;line-height:1.5;resize:vertical}
.warning{padding:8px;border-radius:8px;background:rgba(245,158,11,.055);border:1px solid rgba(245,158,11,.12);color:#f6d48c;font-size:8.5px;line-height:1.45;margin-bottom:6px}.warning.ok{background:rgba(52,211,153,.05);border-color:rgba(52,211,153,.1);color:#b8f7db}
.image-card{border:1px solid var(--line);border-radius:11px;padding:9px;margin-bottom:8px;background:rgba(255,255,255,.018);min-width:0;overflow:hidden}.image-top{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:8px}.image-thumb{width:48px;height:48px;border-radius:9px;background:#fff;object-fit:contain;border:1px solid var(--line)}.image-title{font-size:9.5px;font-weight:850}.image-url{font-size:8px;color:var(--muted);overflow-wrap:anywhere;word-break:break-word;margin-top:3px;line-height:1.35}
.editor-block{scroll-margin:12px;transition:border-color .18s,background .18s,box-shadow .18s}.editor-block.active{border-color:rgba(34,211,238,.55);background:rgba(34,211,238,.06);box-shadow:0 0 0 3px rgba(34,211,238,.055)}.text-card{border:1px solid rgba(255,255,255,.075);border-radius:10px;background:rgba(6,12,22,.48);padding:9px;margin-bottom:8px}.text-card label b{color:#e5edf8;font-size:9px}.text-card label span{max-width:46%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-card textarea{min-height:76px}.text-summary{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 9px}.pill{border:1px solid rgba(34,211,238,.12);border-radius:999px;background:rgba(34,211,238,.055);color:#c7f4ff;padding:5px 7px;font-size:8px;font-weight:850}.backend-editor{margin-top:7px;border:1px solid rgba(139,92,246,.14);border-radius:9px;background:rgba(139,92,246,.045);padding:7px}.backend-editor summary{cursor:pointer;color:#d9d4ff;font-size:8.5px;font-weight:900;list-style:none}.backend-editor summary::-webkit-details-marker{display:none}.backend-editor summary:after{content:"";float:right;width:7px;height:7px;margin:1px 2px 0 0;border-right:1.5px solid #9ba8bd;border-bottom:1.5px solid #9ba8bd;transform:rotate(45deg);transition:.18s}.backend-editor[open] summary{margin-bottom:7px}.backend-editor[open] summary:after{transform:rotate(225deg);margin-top:5px}.backend-editor .field{margin:0}
.switchrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.switchrow span{font-size:8.5px;color:#b8c2d2;font-weight:800}
.switch{position:relative;width:36px;height:20px}.switch input{display:none}.slider{position:absolute;inset:0;background:#273247;border-radius:999px;transition:.2s}.slider:before{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s}.switch input:checked+.slider{background:#6d5dfc}.switch input:checked+.slider:before{transform:translateX(16px)}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.58);backdrop-filter:blur(8px);z-index:100;padding:18px}.modal.show{display:flex}.modalcard{width:min(720px,96vw);max-height:84vh;overflow:auto;border-radius:17px;border:1px solid rgba(255,255,255,.13);background:#101827;box-shadow:0 30px 90px rgba(0,0,0,.45)}.dialogcard{width:min(440px,94vw);background:linear-gradient(180deg,#121b2c,#0c1322);border-color:rgba(255,255,255,.16)}.modalhead{height:54px;border-bottom:1px solid var(--line);padding:0 14px;display:flex;align-items:center;justify-content:space-between}.modalhead h3{font-size:11px;margin:0}.modalbody{padding:13px}.dialog-message{margin:0 0 12px;color:#c8d2e2;font-size:10px;line-height:1.55}.drop{border:1px dashed rgba(255,255,255,.14);border-radius:13px;padding:20px;text-align:center;background:rgba(255,255,255,.02)}.drop.drag{border-color:var(--cyan);background:rgba(34,211,238,.045)}.drop b{font-size:11px}.drop p{font-size:8.5px;color:var(--muted)}.modalactions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}
.toast{position:fixed;right:18px;bottom:18px;padding:10px 13px;border-radius:10px;background:#111827;border:1px solid rgba(255,255,255,.12);font-size:10px;font-weight:800;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;z-index:150}.toast.show{opacity:1;transform:none}
@media(max-width:1240px){.workspace{grid-template-columns:250px 1fr 320px}}
@media(max-width:980px){body{overflow:auto}.app{height:auto}.workspace{grid-template-columns:1fr}.panel{min-height:540px}.scroll,.rightbody{height:auto}.stage{min-height:600px}.top{height:auto;min-height:60px;flex-wrap:wrap;padding:10px}.project{order:3;width:100%}.project input{flex:1}.canvasbar{height:auto;min-height:52px;flex-wrap:wrap;padding:9px 12px}.canvas-tools{width:100%;justify-content:flex-end}.modes{min-width:210px}.mode{flex:1}}

body.landing-page{overflow:auto;min-height:100%;background:#050812;color:#f8fafc}
@media(max-width:620px){.profile-trigger{min-width:46px;width:46px;padding:6px}.profile-trigger-copy,.profile-trigger i{display:none}.card-actions{opacity:1}.profile-stats{grid-template-columns:1fr}.profile-identity{align-items:flex-start}.profile-form .fieldrow{grid-template-columns:1fr}}
.landing-shell{min-height:100vh;background:linear-gradient(180deg,#050812 0%,#0a1220 52%,#f8fafc 52%,#eef2f7 100%)}
.landing-nav{position:fixed;z-index:20;top:16px;left:50%;transform:translateX(-50%);width:min(1180px,calc(100% - 28px));height:58px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(6,10,18,.76);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 14px;box-shadow:0 18px 54px rgba(0,0,0,.28)}
.landing-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:13px}.landing-brand span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#34d399,#22d3ee 52%,#8b5cf6);font-weight:950}.landing-brand b{font-size:12px}
.landing-nav nav{display:flex;align-items:center;gap:6px}.landing-nav nav a{color:#aeb9c8;text-decoration:none;font-size:10px;font-weight:850;padding:10px 11px;border-radius:9px}.landing-nav nav a:hover{color:#fff;background:rgba(255,255,255,.06)}.landing-nav .nav-cta{color:#06101c;background:#f8fafc}
.landing-hero{position:relative;min-height:92vh;display:flex;align-items:flex-end;padding:130px max(24px,calc((100vw - 1180px)/2)) 10vh;overflow:hidden}.hero-media{position:absolute;inset:0;background:linear-gradient(115deg,rgba(5,8,18,.98) 0%,rgba(5,8,18,.86) 42%,rgba(15,23,42,.35) 100%),linear-gradient(90deg,#111827,#172033 48%,#0d9488 100%)}.hero-grid{position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(90deg,transparent,#000 18%,#000 88%,transparent)}
.product-frame{position:absolute;right:max(22px,calc((100vw - 1180px)/2));top:17vh;width:min(640px,52vw);border:1px solid rgba(255,255,255,.2);border-radius:18px;background:#f8fafc;box-shadow:0 44px 130px rgba(0,0,0,.48);overflow:hidden;transform:perspective(1000px) rotateY(-7deg) rotateX(2deg)}.product-bar{height:38px;background:#e8edf4;border-bottom:1px solid #d4dbe7;display:flex;align-items:center;gap:6px;padding:0 12px}.product-bar i{width:8px;height:8px;border-radius:50%;background:#c8d0dc}.product-bar span{margin-left:8px;height:22px;flex:1;border:1px solid #d4dbe7;border-radius:7px;background:#fff;color:#8490a3;font-size:8px;display:flex;align-items:center;padding:0 9px}.product-ui{display:grid;grid-template-columns:170px 1fr;min-height:390px;color:#0f172a}.product-ui aside{background:#101827;color:#dbe7f5;padding:22px 18px}.product-ui aside b{font-size:10px;text-transform:uppercase;letter-spacing:.1em}.product-ui aside p{margin:14px 0 0;padding:10px 11px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.045);font-size:10px}.product-ui section{padding:34px;background:#fff}.sig-strip{height:6px;width:78%;background:linear-gradient(90deg,#49d43d 0 62%,#e42314 62%);margin-bottom:25px}.product-ui h3{margin:0;font-size:25px;color:#111827}.product-ui h4{margin:9px 0 10px;color:#47bf3c;font-size:15px}.sig-line{height:34px;border:2px solid #22d3ee;margin:12px 0 26px}.sig-row{display:grid;grid-template-columns:90px 1fr;gap:14px;border-top:1px solid #e5e7eb;padding:13px 0;font-size:13px}.sig-row span{color:#737d8c}.sig-row b{color:#ef4c28}.sig-footer{margin-top:18px;background:#49d43d;color:#020617;font-weight:950;font-size:13px;padding:12px}
.hero-copy{position:relative;z-index:2;max-width:620px}.eyebrow{margin:0 0 14px;color:#7dd3fc;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.14em}.hero-copy h1{margin:0;color:#fff;font-size:clamp(48px,8vw,102px);line-height:.9;letter-spacing:0}.hero-text{max-width:550px;color:#c8d2e2;font-size:17px;line-height:1.62;margin:24px 0 28px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:11px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);color:#fff;text-decoration:none;font-size:12px;font-weight:950}.hero-btn.primary{border:0;background:#f8fafc;color:#07111f;box-shadow:0 16px 46px rgba(255,255,255,.12)}
.landing-band,.precision-band{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:76px 0;color:#0f172a}.band-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:24px}.band-head .eyebrow,.precision-band .eyebrow{color:#0f766e}.landing-band h2,.precision-band h2{margin:0;font-size:clamp(30px,4vw,52px);letter-spacing:0;line-height:1.02}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-grid article{border:1px solid #d9e1ec;border-radius:14px;background:#fff;padding:22px;box-shadow:0 18px 52px rgba(15,23,42,.08)}.feature-grid span{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ecfeff;color:#0e7490;font-size:10px;font-weight:950}.feature-grid h3{font-size:17px;margin:18px 0 8px}.feature-grid p{margin:0;color:#64748b;font-size:13px;line-height:1.6}.precision-band{display:flex;align-items:center;justify-content:space-between;gap:26px;border-top:1px solid #dce4ef}.precision-band .hero-btn.primary{background:#07111f;color:#fff;box-shadow:none}
@media(max-width:900px){.landing-nav nav a:not(.nav-cta){display:none}.landing-hero{min-height:900px;align-items:start;padding-top:112px}.product-frame{top:430px;left:18px;right:18px;width:auto;transform:none}.hero-copy h1{font-size:54px}.product-ui{grid-template-columns:1fr}.product-ui aside{display:none}.feature-grid{grid-template-columns:1fr}.precision-band,.band-head{display:block}.precision-band .hero-btn{margin-top:20px}}

/* Premium light dashboard theme */
:root{
  --bg:#eef4fb;--panel:#ffffff;--panel2:#f8fbff;--line:#e5edf6;
  --text:#111827;--muted:#758195;--primary:#0b8df3;--primary2:#4f7cff;
  --cyan:#16b8e8;--green:#10b981;--red:#ef476f;--amber:#f59e0b
}
html,body{background:var(--bg);color:var(--text)}
body{
  background:
    radial-gradient(circle at 12% 0%,rgba(11,141,243,.10),transparent 34%),
    radial-gradient(circle at 92% 8%,rgba(124,92,255,.09),transparent 30%),
    linear-gradient(180deg,#f7fbff 0%,#eef4fb 100%);
}
.app{padding:18px;gap:16px}
.top{
  margin:0;
  min-height:68px;
  border-color:rgba(214,224,238,.9);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  color:var(--text);
  box-shadow:0 18px 48px rgba(52,69,99,.10);
  animation:panelIn .55s cubic-bezier(.16,1,.3,1) both;
}
.logo{
  color:#fff;
  background:#eef4ff;
  box-shadow:0 12px 26px rgba(11,141,243,.22)
}
.logo img{width:27px;height:27px;display:block;object-fit:contain}
.brand{min-width:0}
.brand h1{font-size:16px;letter-spacing:-.02em}
.brand p,.project,.small,.section-title,.im,.emprole,.live span,.field label,.switchrow span{color:var(--muted)}
.project input{
  background:#f7faff;
  color:var(--text);
  border-color:#e3ebf6;
}
.project input:hover,.project input:focus{
  background:#fff;
  border-color:#b9d8f5;
  box-shadow:0 0 0 4px rgba(11,141,243,.08)
}
.actions{gap:10px}
.action-group{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border:1px solid #e4edf8;
  border-radius:14px;
  background:rgba(248,251,255,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.actions .btn,.btn{
  border-color:#dce7f4;
  background:#fff;
  color:#273142;
  box-shadow:0 8px 22px rgba(52,69,99,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{background:#f5f9ff;border-color:#cfe1f5;transform:translateY(-1px);box-shadow:0 12px 28px rgba(52,69,99,.09)}
.btn.primary{
  color:#fff;
  background:linear-gradient(135deg,#0b8df3,#4f7cff);
  box-shadow:0 14px 30px rgba(11,141,243,.22)
}
.btn.red{color:#d9365f;background:#fff3f6;border-color:#ffd4df}
.workspace{padding:0;gap:16px}
.panel{
  border-color:#e3ebf6;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 52px rgba(52,69,99,.09);
  position:relative;
  isolation:isolate;
  animation:panelIn .6s cubic-bezier(.16,1,.3,1) both;
}
.panel:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(11,141,243,.08),transparent 34%,rgba(79,124,255,.06));
  opacity:.65;
  pointer-events:none;
  z-index:-1;
}
.head,.canvasbar,.tabs,.status{border-color:#e7eef7}
.head{background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(248,251,255,.56))}
.head h3,.live b,.it,.empname,.ct,.image-title,.text-card label b{color:#182033}
.scroll,.rightbody{scrollbar-color:#c7d7ea transparent}
.scroll{padding:14px}
.section-title{
  margin:8px 2px 10px;
  color:#77859a;
  font-size:8.5px;
  letter-spacing:.11em;
}
.mini{
  width:28px;
  height:28px;
  border-radius:9px;
  display:inline-grid;
  place-items:center;
  background:#f4f9ff;
  border:1px solid #dce9f7;
  color:#53677f;
  font-size:17px;
  line-height:1;
  transition:.18s ease;
}
.mini:hover{background:#0b8df3;color:#fff;border-color:#0b8df3;transform:translateY(-1px)}
.item,.emp,.card,.image-card,.text-card{
  border-color:#e6eef8;
  background:#fbfdff;
  box-shadow:0 8px 22px rgba(52,69,99,.035);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.item:hover,.emp:hover,.card:hover,.image-card:hover,.text-card:hover{
  transform:translateY(-1px);
  border-color:#d1e6f8;
  box-shadow:0 14px 34px rgba(52,69,99,.07);
}
.item{padding:10px}
.itemrow{gap:10px}
.item-copy{min-width:0;flex:1}
.template-item{background:linear-gradient(135deg,#f1f9ff,#fbfdff)}
.item-state{
  padding:5px 7px;
  border-radius:999px;
  background:#eafaf3;
  color:#047857;
  font-size:8px;
  font-weight:900;
}
.item.active,.emp.active,.editor-block.active{
  border-color:#8cc7f7;
  background:#edf7ff;
  box-shadow:0 0 0 3px rgba(11,141,243,.08)
}
.avatar{
  border-color:#dce8f5;
  color:#0b6fc2;
  background:linear-gradient(135deg,#eaf6ff,#f3f0ff)
}
.employee-actions .btn{height:34px}
.danger-command{
  width:100%;
  margin-top:8px;
  justify-content:space-between;
  padding:0 12px;
  box-shadow:none;
}
.danger-command b{
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#e0446e;
}
.command-list{display:grid;gap:8px}
.command-row{
  width:100%;
  min-height:58px;
  border:1px solid #dce7f4;
  border-radius:14px;
  background:#fff;
  color:#273142;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  text-align:left;
  padding:9px 10px;
  box-shadow:0 8px 22px rgba(52,69,99,.04);
  transition:.18s ease;
}
.command-row:hover{transform:translateY(-1px);border-color:#cfe1f5;background:#f8fbff;box-shadow:0 14px 30px rgba(52,69,99,.08)}
.command-icon{
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#eef8ff;
  color:#0b6fc2;
  font-weight:900;
}
.command-row b{display:block;font-size:10px;color:#1f2937}
.command-row small{display:block;margin-top:2px;font-size:8px;color:#758195}
.command-row i{font-style:normal;color:#98a6ba;font-size:11px}
.reset-command .command-icon{background:#fff3f6;color:#d9365f}
.card-actions{margin-left:auto;display:flex;align-items:center;gap:4px;opacity:.72;transition:.18s}.item:hover .card-actions,.emp:hover .card-actions,.emp.active .card-actions{opacity:1}.card-icon{width:27px;height:27px;flex:0 0 27px;border:1px solid #dce7f4;border-radius:8px;background:#fff;color:#607087;display:grid;place-items:center;font-size:12px;font-weight:900;line-height:1;box-shadow:0 5px 14px rgba(52,69,99,.05);transition:.16s}.card-icon:hover{border-color:#a8d2f4;background:#edf7ff;color:#0878ce;transform:translateY(-1px)}.card-icon.danger-icon:hover{border-color:#ffc7d5;background:#fff1f4;color:#d9365f}.empinfo{min-width:0;flex:1}.empname,.emprole{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-item .thumb{flex:0 0 auto}.profile-trigger{min-width:155px;height:46px;border:1px solid #dce7f4;border-radius:13px;background:#fff;color:#273142;display:grid;grid-template-columns:32px minmax(0,1fr) 12px;align-items:center;gap:8px;padding:5px 9px 5px 6px;text-align:left;box-shadow:0 8px 22px rgba(52,69,99,.06)}.profile-trigger>span:first-child{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background-color:#eaf6ff;background-size:cover;background-position:center;color:#0878ce;font-size:10px;font-weight:900}.profile-trigger-copy{min-width:0}.profile-trigger-copy b,.profile-trigger-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-trigger-copy b{font-size:9px}.profile-trigger-copy small{margin-top:2px;color:#758195;font-size:7.5px}.profile-trigger i{font-style:normal;color:#98a6ba}.profile-modal-card{width:min(650px,96vw);background:#fff;color:#182033;border-color:#dce7f4;box-shadow:0 34px 100px rgba(28,42,67,.28)}.profile-modal-card .modalhead{border-color:#e5edf6}.profile-modal-card .modalhead h3{color:#182033;font-size:14px}.profile-subtitle{display:block;margin-top:3px;color:#758195;font-size:8px}.profile-body{display:grid;gap:14px;padding:18px}.profile-identity{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid #e2ebf6;border-radius:14px;background:#f8fbff}.profile-photo{position:relative;width:68px;height:68px;flex:0 0 68px;border:1px solid #dce7f4;border-radius:18px;background:#eaf6ff;overflow:hidden;display:grid;place-items:center;color:#0878ce;font-weight:900}.profile-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-photo i{position:absolute;right:3px;bottom:3px;width:21px;height:21px;border-radius:7px;background:#0b8df3;color:#fff;display:grid;place-items:center;font-style:normal;font-size:12px;border:2px solid #fff}.profile-identity h3{margin:0;color:#182033;font-size:17px}.profile-identity p{margin:4px 0 8px;color:#758195;font-size:10px}.profile-identity>div>span{display:inline-flex;padding:5px 8px;border-radius:999px;background:#e7f8f1;color:#07865c;font-size:8px;font-weight:900;text-transform:capitalize}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-stats article{padding:12px;border:1px solid #e2ebf6;border-radius:12px;background:#fbfdff}.profile-stats span,.profile-stats b{display:block}.profile-stats span{color:#8491a4;font-size:8px;text-transform:uppercase;font-weight:850}.profile-stats b{margin-top:5px;color:#253044;font-size:11px}.profile-form{padding:14px;border:1px solid #e2ebf6;border-radius:14px;background:#fff}.profile-form .ct{color:#253044}.profile-form .field label{color:#66758a}.profile-form .field input{background:#f8fbff;color:#253044;border-color:#dce7f4}.profile-form .field input[readonly]{color:#8491a4}.profile-footer-actions{justify-content:space-between}
.modes{background:#f2f6fb;border-color:#dce7f4}
.mode{color:#748297}
.mode.active{background:#fff;color:#101827;box-shadow:0 7px 16px rgba(52,69,99,.08)}
.mode.active[data-mode=preview]{background:#ecfdf5;color:#047857}
.mode.active[data-mode=edit]{background:#eaf6ff;color:#0b6fc2}
.stage{
  background:
    linear-gradient(rgba(105,125,155,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(105,125,155,.06) 1px,transparent 1px),
    radial-gradient(circle at 50% 10%,rgba(11,141,243,.09),transparent 30%),
    #f3f7fc;
  background-size:28px 28px;
}
.browser{
  border-color:#dce7f4;
  box-shadow:0 28px 70px rgba(52,69,99,.16);
  animation:canvasFloat 7s ease-in-out infinite;
}
.browserbar{background:#f5f8fc;border-color:#e0e8f2}
.url{border-color:#dce7f4;color:#8b98aa}
.empty{color:#66758a;background:linear-gradient(180deg,#fff,#fbfdff)}
.empty-card{width:min(560px,92%);margin:auto;text-align:center;padding:34px 28px;border:1px solid #e3ebf6;border-radius:24px;background:rgba(255,255,255,.88);box-shadow:0 24px 70px rgba(52,69,99,.10)}
.empty h4{color:#1f2937;font-size:17px}
.empty p{font-size:11px;max-width:440px}
.emptyicon{background:linear-gradient(135deg,#dff2ff,#edf0ff);color:#0b8df3;box-shadow:0 16px 32px rgba(11,141,243,.12);animation:softPulse 3s ease-in-out infinite}
.emptyicon img{width:32px;height:32px;display:block;object-fit:contain}
.empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.empty-proof{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:16px}
.empty-proof span{padding:6px 9px;border-radius:999px;background:#f3f8ff;border:1px solid #e1edf8;color:#637288;font-size:8.5px;font-weight:850}
.sync-badge{padding:5px 8px;border-radius:999px;background:#f2f9ff;border:1px solid #d7e8f8;color:#0b6fc2;font-weight:850}
.sync-badge[data-state=server]{background:#ecfdf5;border-color:#c7f0da;color:#047857}
.sync-badge[data-state=syncing]{background:#fff8e8;border-color:#f7dfa4;color:#9a650b;animation:syncPulse 1.2s ease-in-out infinite}
.sync-badge[data-state=draft]{background:#fff3f6;border-color:#ffd1dd;color:#c62f57}
.sync-badge[data-state=local]{background:#f2f9ff;border-color:#d7e8f8;color:#0b6fc2}
.tab{color:#748297}
.tab.active{color:#0f172a}
.tab.active:after{background:linear-gradient(90deg,#0b8df3,#4f7cff)}
.field input,.field textarea,.field select,.code{
  border-color:#dce7f4;
  background:#fff;
  color:#111827;
}
.field input:focus,.field textarea:focus,.field select:focus,.code:focus{
  border-color:#8cc7f7;
  box-shadow:0 0 0 4px rgba(11,141,243,.09)
}
.chip,.pill{
  border-color:#d6ecfb;
  background:#eef8ff;
  color:#0b6fc2;
}
.note{
  border-color:#d7ecfb;
  background:#f3faff;
  color:#607089;
}
.warning{background:#fff8e8;border-color:#f8df9e;color:#94640f}
.warning.ok{background:#edfdf6;border-color:#bfead6;color:#08764e}
.backend-editor{
  border-color:#d9e6ff;
  background:#f5f8ff;
}
.backend-editor summary{color:#3254b8}
.slider{background:#d8e4f2}
.switch input:checked+.slider{background:#0b8df3}
.modal{background:rgba(38,52,73,.32);backdrop-filter:blur(10px)}
.modalcard,.dialogcard{
  border-color:#dce7f4;
  background:#fff;
  color:#111827;
  box-shadow:0 28px 80px rgba(52,69,99,.18);
}
.modalhead{border-color:#e7eef7}
.dialog-message{color:#657389}
.drop{
  border-color:#c9d9ea;
  background:#f8fbff;
}
.drop.drag{border-color:#0b8df3;background:#eef8ff}
.toast{
  background:#111827;
  color:#fff;
  border-color:rgba(255,255,255,.14);
  box-shadow:0 18px 44px rgba(52,69,99,.18);
}
@keyframes panelIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes canvasFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes softPulse{0%,100%{transform:scale(1);box-shadow:0 16px 32px rgba(11,141,243,.12)}50%{transform:scale(1.04);box-shadow:0 22px 44px rgba(11,141,243,.18)}}
@keyframes syncPulse{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.18)}50%{box-shadow:0 0 0 4px rgba(245,158,11,.10)}}
@media(max-width:980px){
  .app{height:auto;padding:12px}
  .top{padding:10px 12px}
  .action-group{flex-wrap:wrap}
  .empty-actions .btn{flex:1;min-width:130px}
}

/* Premium profile experience */
.profile-trigger{min-width:190px;height:52px;grid-template-columns:38px minmax(0,1fr) 16px;gap:10px;padding:6px 12px 6px 7px;border-radius:15px}.profile-trigger>span:first-child{width:38px;height:38px;border-radius:12px;font-size:12px;background-repeat:no-repeat}.profile-trigger>span:first-child.has-photo{color:transparent;text-shadow:none}.profile-trigger-copy b{font-size:12px;line-height:1.2}.profile-trigger-copy small{margin-top:4px;font-size:9px}.profile-trigger i{font-size:13px}.profile-modal-card{width:min(760px,calc(100vw - 36px));max-height:min(850px,calc(100vh - 36px));border-radius:24px}.profile-modal-card .modalhead{height:76px;padding:0 24px}.profile-modal-card .modalhead h3{font-size:21px;letter-spacing:0}.profile-subtitle{margin-top:5px;font-size:11px}.profile-modal-card .modalhead .mini{width:40px;height:40px;border-radius:12px;font-size:20px}.profile-tabs{display:flex;gap:8px;padding:14px 24px 0;border-bottom:1px solid #e8eef7;background:#fbfdff}.profile-tab{position:relative;min-width:100px;height:42px;border:0;background:transparent;color:#718096;font-size:12px;font-weight:850}.profile-tab:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:999px 999px 0 0;background:#0b8df3;transform:scaleX(0);transition:.18s}.profile-tab.active{color:#0878ce}.profile-tab.active:after{transform:scaleX(1)}.profile-body{gap:18px;padding:22px 24px 26px}.profile-pane{display:grid;gap:18px}.profile-identity{gap:22px;padding:20px;border-radius:17px;background:linear-gradient(135deg,#f5faff,#fbfdff)}.profile-photo-wrap{display:grid;justify-items:center;gap:9px}.profile-photo{width:92px;height:92px;flex-basis:92px;border-radius:22px;font-size:22px}.profile-photo i{right:5px;bottom:5px;width:27px;height:27px;border-radius:9px;font-size:15px}.photo-actions{display:flex;align-items:center;gap:9px}.subtle-action{border:0;background:none;color:#0878ce;font-size:10px;font-weight:850;padding:3px}.danger-text{color:#d9365f}.identity-copy{min-width:0}.identity-eyebrow{display:block;margin-bottom:8px!important;padding:0!important;background:transparent!important;color:#0b8df3!important;font-size:9px!important;letter-spacing:.1em;text-transform:uppercase}.profile-identity h3{font-size:25px;letter-spacing:0}.profile-identity p{margin:6px 0 12px;font-size:13px}.profile-identity>div>span{padding:7px 10px;font-size:10px}.profile-stats{gap:12px}.profile-stats article{min-height:86px;padding:16px;border-radius:14px}.profile-stats span{font-size:10px}.profile-stats b{margin-top:9px;font-size:15px}.profile-form{padding:20px;border-radius:17px}.settings-heading{display:flex;align-items:start;justify-content:space-between;margin-bottom:18px}.settings-heading span{display:block;color:#1f2937;font-size:15px;font-weight:900}.settings-heading p{margin:5px 0 0;color:#758195;font-size:11px;line-height:1.5}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-form .field{margin:0}.profile-form .field label{margin-bottom:7px;font-size:11px}.profile-form .field input{height:48px;border-radius:11px;padding:0 13px;font-size:13px}.profile-form .modalactions{margin-top:18px}.profile-submit{height:44px;min-width:140px;font-size:12px}.password-control{position:relative}.password-control input{padding-right:58px!important}.password-toggle{position:absolute;right:7px;top:7px;height:34px;border:0;border-radius:8px;background:#edf6ff;color:#0878ce;font-size:10px;font-weight:850;padding:0 10px}.account-session{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #ffd8e2;border-radius:17px;background:#fff8fa}.account-session span{display:block;color:#273142;font-size:14px;font-weight:900}.account-session p{margin:5px 0 0;color:#758195;font-size:11px}.account-session .btn{height:42px;min-width:100px;font-size:11px}
.password-toggle{width:34px;display:grid;place-items:center;padding:0}.password-toggle .tn-icon{width:16px;height:16px}.password-toggle.active{background:#0b8df3;color:#fff}
@media(max-width:700px){.profile-modal-card{width:min(100% - 20px,760px);max-height:calc(100vh - 20px);border-radius:18px}.profile-modal-card .modalhead{height:68px;padding:0 17px}.profile-modal-card .modalhead h3{font-size:18px}.profile-tabs{padding:10px 16px 0}.profile-body{padding:16px}.profile-identity{align-items:center;gap:14px;padding:16px}.profile-photo{width:76px;height:76px;flex-basis:76px}.profile-identity h3{font-size:20px}.profile-identity p{font-size:11px;overflow-wrap:anywhere}.profile-stats,.profile-fields{grid-template-columns:1fr}.profile-stats article{min-height:70px}.profile-form{padding:16px}.account-session{align-items:flex-start;flex-direction:column}.account-session .btn{width:100%}.profile-form .modalactions .btn{width:100%}}
.profile-actionbar{position:sticky;z-index:4;bottom:0;min-height:76px;padding:14px 24px;border-top:1px solid #e3ebf5;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 -14px 36px rgba(52,69,99,.06)}.profile-logout-button{height:44px;padding:0 16px;border:1px solid #ffd3de;border-radius:11px;background:#fff6f8;color:#d9365f;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:900}.profile-logout-button:hover{background:#ffedf2;border-color:#ffbdcd}.profile-logout-button span{font-size:16px;transform:rotate(180deg)}.profile-action-copy{display:flex;align-items:center;gap:14px}.profile-action-copy>span{color:#8491a4;font-size:10px}.profile-actionbar .profile-submit{min-width:150px}
@media(max-width:700px){.profile-actionbar{min-height:70px;padding:12px 16px;gap:10px}.profile-action-copy{flex:1}.profile-action-copy>span{display:none}.profile-actionbar .profile-submit{flex:1;min-width:0}.profile-logout-button{padding:0 13px}}
