body { margin:0; font-family:system-ui,sans-serif; background:#f6f7f9; color:#16202a; padding:1rem; }
.card { max-width:560px; margin:2rem auto; background:#fff; border:1px solid #e2e6ea; border-radius:12px; padding:2rem; }
.center { text-align:center; }
label { display:block; margin-bottom:1rem; font-weight:500; }
input, textarea, select { display:block; width:100%; box-sizing:border-box; margin-top:.25rem; padding:.6rem; font:inherit; border:1px solid #e2e6ea; border-radius:8px; }
button { padding:.7rem 1.4rem; border:1px solid #1a56db; border-radius:8px; background:#1a56db; color:#fff; font:inherit; font-weight:600; cursor:pointer; margin-right:.5rem; }
button.alt { background:#fff; color:#1a56db; }
button:disabled { opacity:.6; cursor:wait; }
a { color:#1a56db; }
.err { color:#b42318; } .ok { color:#067647; } .warn { color:#92400e; font-weight:600; } .muted { color:#5b6773; font-size:.92rem; }
.hidden { display:none; }
.hero { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:1rem; margin:1.5rem 0; }
.name { font-size:clamp(2.2rem,7vw,4rem); margin:0; line-height:1.1; word-break:break-word; }
.stamp { display:inline-block; border:3px solid #067647; color:#067647; border-radius:10px; padding:.2rem .8rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; transform:rotate(-6deg); }
.openrow { display:flex; align-items:center; justify-content:center; gap:1rem; margin:1.5rem 0; font-size:1.2rem; }
.pill { padding:.3rem 1rem; border-radius:99px; font-weight:700; background:#fee4e2; color:#b42318; }
.pill.open { background:#d1fadf; color:#067647; }
.switch { position:relative; display:inline-block; width:92px; height:40px; margin:0; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; inset:0; background:#b42318; border-radius:40px; transition:.2s; cursor:pointer; }
.slider:before { content:""; position:absolute; height:32px; width:32px; left:4px; top:4px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider { background:#067647; }
.switch input:checked + .slider:before { transform:translateX(52px); }
.switch input:disabled + .slider { opacity:.45; cursor:not-allowed; }
.uploader { margin-top:1.5rem; text-align:left; border-top:1px solid #e2e6ea; padding-top:1rem; }
.wallet{max-width:560px;margin:1.5rem auto;padding:2rem;border-radius:20px;text-align:center;color:#fff;background:linear-gradient(135deg,#0f1f3d,#1a56db);box-shadow:0 10px 30px rgba(26,86,219,.25)}
.w-label{opacity:.8;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase}
.w-balance{font-size:clamp(2.4rem,9vw,3.6rem);font-weight:800;margin:.4rem 0 0;line-height:1.1}
.w-unit{opacity:.8;margin-bottom:1.2rem}
.w-btn{background:#fff;color:#1a56db;border:0;border-radius:12px;padding:.8rem 1.8rem;font-size:1.05rem;font-weight:700;cursor:pointer;margin:0}
.w-note{min-height:1.2rem;margin:.9rem 0 0;font-size:.92rem;color:#d1fadf}
.w-note.err{color:#fecdca}
.w-link{background:none;border:0;color:#fff;opacity:.75;text-decoration:underline;font-size:.85rem;font-weight:500;margin:.8rem 0 0;padding:0;cursor:pointer}
.m-back{position:fixed;inset:0;background:rgba(15,31,61,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:50;overflow:auto}
.m-sheet{background:#fff;border-radius:18px;width:100%;max-width:440px;padding:1.5rem;box-shadow:0 20px 50px rgba(0,0,0,.3);text-align:left}
.m-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.m-head h3{margin:0;font-size:1.3rem}
.m-x{background:none;border:0;color:#5b6773;font-size:1.8rem;line-height:1;padding:0;margin:0;cursor:pointer}
.m-rows{border:1px solid #e2e6ea;border-radius:12px;padding:.4rem 1rem;margin-bottom:1rem}
.m-row{display:flex;justify-content:space-between;padding:.65rem 0;border-bottom:1px solid #eef0f3;color:#344054}
.m-row:last-child{border-bottom:0}
.m-total{font-weight:800;font-size:1.1rem;color:#067647}
.m-primary{width:100%;margin:.4rem 0 0;padding:.9rem;border-radius:12px;font-size:1.05rem}
.m-back-btn{width:100%;margin:.5rem 0 0;background:#fff;color:#5b6773;border:0;font-weight:500}
.m-fine{color:#5b6773;font-size:.85rem}
.m-err{color:#b42318;min-height:1rem;margin:.3rem 0}
.m-ok{text-align:center;padding:1rem 0}
.m-tick{width:64px;height:64px;border-radius:50%;background:#d1fadf;color:#067647;font-size:2rem;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem}
.m-wait{text-align:center;padding:2rem 0;color:#5b6773}
.m-mini{padding:.35rem .8rem;margin:0 0 0 .4rem;font-size:.85rem}

.m-scroll{max-height:55vh;overflow-y:auto}
.w-fine{opacity:.75;font-size:.8rem;margin:-.6rem 0 1.1rem}
.ed-row{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin-bottom:.5rem}
.ed-row input,.ed-row select{margin:0;flex:1 1 150px;width:auto}
.ed-row .m-mini{margin:0}
.m-warn{background:#fffaeb;border:1px solid #fedf89;border-radius:10px;padding:.6rem 1rem;margin:.8rem 0;color:#93370d}
.dash{max-width:900px;margin:1.5rem auto}
.dash-banner{background:#fee4e2;color:#b42318;border-radius:10px;padding:.8rem 1rem;margin-bottom:1rem;font-weight:600}
.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.dash-off{opacity:.45;pointer-events:none}
.dash-mod{background:#fff;border:1px solid #e2e6ea;border-radius:12px;padding:1.2rem;text-align:left}
.dash-mod h3{margin:0 0 .5rem}
.dash-wide{grid-column:1/-1}
.dash-qr{margin:.8rem 0}
.dash-stages{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.4rem}
.dash-stage{min-width:130px;background:#f6f7f9;border:1px solid #e2e6ea;border-radius:10px;padding:.7rem;display:flex;flex-direction:column;gap:.3rem}
.pickable{cursor:pointer}
.pickable:hover{outline:2px dashed #98a2b3;outline-offset:2px}
.mk-red{outline:3px solid #d92d20!important;outline-offset:2px}
.mk-blue{outline:3px solid #1a56db!important;outline-offset:2px}
.mk-green{outline:3px solid #067647!important;outline-offset:2px}
.mk-orange{outline:3px solid #f79009!important;outline-offset:2px}
.mk-purple{outline:3px solid #7a5af8!important;outline-offset:2px}
.pen-bar{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.8rem 0}
.pen{width:30px;height:30px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #98a2b3;padding:0;margin:0;cursor:pointer}
.pen.on{box-shadow:0 0 0 3px #16202a}
.chat-log{max-height:300px;overflow-y:auto;border:1px solid #e2e6ea;border-radius:12px;padding:.6rem;margin:.8rem 0;background:#fcfcfd}
.bub{padding:.5rem .8rem;border-radius:12px;margin:.35rem 0;max-width:92%;white-space:pre-wrap}
.bub.me{background:#e0e7ff;margin-left:auto}
.bub.ai{background:#f2f4f7}
.mchip{display:inline-flex;align-items:center;gap:.35rem;background:#fff;border:1px solid #d0d5dd;border-radius:99px;padding:.1rem .6rem;margin:0 .3rem .3rem 0;font-size:.85rem}
.dot{display:inline-block;width:.75rem;height:.75rem;border-radius:50%}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}
.chip{background:#eef2ff;color:#3730a3;border-radius:99px;padding:.2rem .7rem;font-size:.9rem}
.hand{margin:1rem 0}
body.sh-on{padding:0;background:#f4f6fb}
.sh{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh;--accent:#1a56db;text-align:left}
.sh.nosb{grid-template-columns:minmax(0,1fr)}
.sh-side{background:#0b1b3a;color:#b6c2d9;padding:1rem .75rem;position:sticky;top:0;height:100vh;box-sizing:border-box;display:flex;flex-direction:column;gap:1rem}
.sh-brand{color:#fff;font-weight:800;font-size:1.1rem;padding:.4rem .6rem}
.sh-nav{display:flex;flex-direction:column;gap:.2rem}
.nvb,.nv{display:flex;align-items:center;gap:.7rem;width:100%;margin:0;padding:.65rem .8rem;border:0;border-radius:10px;background:none;color:inherit;font:inherit;font-weight:500;cursor:pointer;text-align:left;box-sizing:border-box}
.nvb:hover,.nv:hover{background:rgba(255,255,255,.08)}
.nvb.on,.nv.on{background:var(--accent);color:#fff}
.ico{display:inline-flex}
.sh.nosb>.sh-main>.sh-nav{flex-direction:row;gap:.4rem;padding:.5rem 1.4rem 0;background:#fff;border-bottom:1px solid #e4e8f0}
.sh.nosb>.sh-main>.sh-nav .nvb{width:auto;color:#475467;border-radius:10px 10px 0 0}
.sh.nosb>.sh-main>.sh-nav .nvb.on{background:none;color:var(--accent);box-shadow:inset 0 -3px 0 var(--accent)}
.sh-main{min-width:0}
.sh-top{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;padding:.75rem 1.4rem;background:#fff;border-bottom:1px solid #e4e8f0;position:sticky;top:0;z-index:5}
.sh-top button{margin:0}
.sh-name{font-size:1.25rem}
.sh-stamp{transform:none;border-width:2px;font-size:.7rem;padding:.1rem .5rem}
.sh-sw{width:68px;height:32px;margin:0}
.sh-sw .slider:before{height:24px;width:24px;left:4px;top:4px}
.sh-sw input:checked+.slider:before{transform:translateX(36px)}
.sh-sp{flex:1}
.sh-cred{display:flex;gap:.5rem;align-items:baseline;background:#f4f6fb;border:1px solid #e4e8f0;border-radius:99px;padding:.3rem .9rem}
.sh-top.low .sh-cred{background:#fee4e2;border-color:#fda29b;color:#b42318}
.sh-buy{padding:.45rem 1rem;background:var(--accent);border-color:var(--accent)}
.sh-off{opacity:.45;pointer-events:none}
.sh-page{padding:1.4rem;display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;max-width:1400px;box-sizing:border-box}
.sh-page h2{margin:0}
.sh-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem}
.tile{min-width:0;background:#fff;border:1px solid #e4e8f0;border-radius:14px;padding:1rem;display:flex;flex-direction:column;gap:.2rem}
.tile b{font-size:1.7rem}
.dc{min-width:0;background:#fff;border:1px solid #e4e8f0;border-radius:14px;padding:1.1rem;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.dc h3{margin:0 0 .6rem}
.stages{display:flex;gap:.7rem;overflow-x:auto;padding-bottom:.4rem}
.stage{min-width:150px;flex:1;background:#f8fafc;border:1px solid #e4e8f0;border-top:3px solid var(--accent);border-radius:12px;padding:.8rem;display:flex;flex-direction:column;gap:.3rem}
.url{word-break:break-all}
.sh .wallet{max-width:560px;margin:0}
.sh .dash-banner{margin:1rem 1.4rem 0}
.studio{display:grid;grid-template-columns:minmax(300px,440px) minmax(0,1fr);gap:1.2rem;padding:1.4rem;align-items:start}
.st-left{background:#fff;border:1px solid #e4e8f0;border-radius:14px;padding:1.1rem}
.st-left h2{margin-top:0}
.st-right{min-width:0}
.stage-wrap{position:relative}
.draw{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.draw.on{pointer-events:auto;touch-action:none;cursor:crosshair}
.sh.pv{min-height:0;grid-template-columns:160px minmax(0,1fr);border:1px solid #d0d5dd;border-radius:14px;overflow:hidden}
.sh.pv .sh-side{position:static;height:auto;flex-direction:column;padding:.6rem .4rem}
.sh.pv .sh-page{padding:1rem}
@media(max-width:900px){.studio{grid-template-columns:1fr;padding:1rem}.st-right{order:-1;position:static}}
@media(max-width:800px){
.sh{grid-template-columns:1fr}
.sh-side{position:fixed;left:0;right:0;bottom:0;top:auto;height:auto;flex-direction:row;padding:.25rem .3rem;z-index:20;gap:0}
.sh-side .sh-brand{display:none}
.sh-side .sh-nav{flex-direction:row;width:100%;gap:0}
.sh-side .nvb{flex-direction:column;gap:.15rem;padding:.4rem .1rem;font-size:.62rem;align-items:center;justify-content:center;text-align:center;flex:1}
.sh-page{padding:1rem 1rem 5.5rem}
.sh-top{padding:.6rem 1rem}
}
@media(max-width:640px){.sh.pv{grid-template-columns:1fr}.sh.pv .sh-nav{flex-direction:row;overflow-x:auto}.sh.pv .nv{width:auto;white-space:nowrap}}

.sh.pv .sh-side .sh-nav{flex-direction:column;width:auto;gap:.2rem}
@media(max-width:640px){.sh.pv .sh-side .sh-nav{flex-direction:row;overflow-x:auto}}
.tool{margin:0;padding:.35rem .9rem;border-radius:99px;background:#fff;color:#344054;border:1px solid #d0d5dd;font-weight:600}
.tool.on{background:#16202a;color:#fff;border-color:#16202a}
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse}
.tbl th,.tbl td{text-align:left;padding:.6rem;border-bottom:1px solid #e4e8f0;font-size:.9rem}
.tbl th{color:#475467;font-weight:600}
.wb-frame{display:block;width:100%;height:calc(100vh - 230px);min-height:440px;border:1px solid #d0d5dd;border-radius:12px;background:#fff}
.wb-phone .wb-frame{width:390px;max-width:100%;margin:0 auto}
.wb-empty{display:flex;align-items:center;justify-content:center;height:360px;border:2px dashed #d0d5dd;border-radius:12px;color:#667085;text-align:center;padding:1rem;background:#fff}
.wb-frame.hidden,.wb-empty.hidden{display:none}
.wb-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.8rem 0 0}
.wb-actions button{margin:0}
.tool{margin:0;padding:.35rem .9rem;border-radius:99px;background:#fff;color:#344054;border:1px solid #d0d5dd;font-weight:600}
.tool.on{background:#16202a;color:#fff;border-color:#16202a}

.wb-err{background:#fffaeb;border:1px solid #fedf89;color:#93370d;border-radius:10px;padding:.6rem .9rem;margin-top:.6rem;font-size:.9rem}

.site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}
.sbadge{display:inline-block;padding:.1rem .6rem;border-radius:99px;font-size:.8rem;font-weight:600;background:#f2f4f7;color:#475467}
.sbadge.ok{background:#d1fadf;color:#067647}
.sbadge.bad{background:#fee4e2;color:#b42318}

.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-top:1rem}
.gal img{width:100%;height:140px;object-fit:cover;border-radius:10px;background:#f2f4f7}
.bars{display:flex;align-items:flex-end;gap:3px;height:120px;margin:.8rem 0}
.bar{flex:1;height:100%;display:flex;align-items:flex-end}
.bar i{display:block;width:100%;background:var(--accent,#1a56db);border-radius:3px 3px 0 0}

.m-sheet.dm{max-width:680px;max-height:88vh;overflow-y:auto}
.chk{display:block;margin:.3rem 0;font-weight:500}
.chk input{display:inline-block;width:auto;margin:0 .4rem 0 0}
.rec{display:flex;justify-content:space-between;gap:.6rem;border-bottom:1px solid #eef0f3;padding:.5rem 0;word-break:break-word;font-size:.9rem}

.sh.nosb>.sh-side{display:none}
.modeseg{display:inline-flex;border:1px solid #d0d5dd;border-radius:99px;overflow:hidden;background:#fff}
.modeseg button{margin:0;border:0;border-radius:0;background:none;color:#344054;padding:.4rem .9rem;font-weight:600}
.modeseg button.on{background:var(--accent,#1a56db);color:#fff}
.custombar{display:flex;gap:.6rem;align-items:flex-start;margin:1rem 1.4rem 0;padding:.8rem 1rem;background:#fff;border:1px solid #e4e8f0;border-radius:12px;font-weight:400}
.custombar input{width:auto;margin:.25rem 0 0}
.custombar.hidden{display:none}

.todo{margin:.4rem 0 .8rem 1.1rem;padding:0;color:#475467}
.todo li{margin:.25rem 0}
@media(max-width:800px){.sh-side .sh-nav{overflow-x:auto;scrollbar-width:none}.sh-side .nvb{flex:0 0 auto;min-width:66px}}
