:root{--bg:#f6f8ff;--ink:#101936;--muted:#78839b;--line:#e3e8f5;--violet:#5b3df4;--soft:#f3efff;--shadow:0 20px 50px rgba(38,52,91,.10)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 70% 0,#eef3ff 0,#f8fbff 36%,#f7f8ff 100%);color:var(--ink)}a{color:inherit;text-decoration:none}button,.mini,.ghost{border:1px solid var(--line);background:white;border-radius:12px;padding:12px 18px;font-weight:750;color:#18213a;cursor:pointer;box-shadow:0 8px 22px rgba(30,40,80,.06)}button:hover,.mini:hover{transform:translateY(-1px)}input,textarea,select{width:100%;border:1px solid #dce3f1;border-radius:12px;padding:13px 14px;background:white;color:#17203a;font:inherit;outline:none}textarea{min-height:78px;resize:vertical}label{display:block;font-size:13px;font-weight:800;margin:12px 0 7px}.side{position:fixed;left:0;top:0;bottom:0;width:280px;padding:26px 20px;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:12px}.logo{display:flex;align-items:center;gap:12px;font-size:22px;margin-bottom:22px}.logo span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#7a5cff,#4d32e6);color:#ffd84a}.create{background:linear-gradient(135deg,#6d4aff,#4a2ee8);color:white;padding:15px 18px;border-radius:13px;text-align:center;font-weight:900;box-shadow:0 14px 25px rgba(91,61,244,.25);margin-bottom:14px}.navitem{display:flex;align-items:center;gap:14px;padding:15px 17px;border-radius:13px;color:#26314f;font-weight:750}.navitem.active{background:#f0ebff;color:#5132e8}.spacer{flex:1}.profile{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:white;border:1px solid var(--line)}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#8064ff,#c7b8ff);color:white;font-weight:900}.profile small,.form-row small,.admin-row small{display:block;color:var(--muted);margin-top:4px}.main{margin-left:280px;padding:30px 34px 34px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{font-size:34px;margin:0 0 8px}.page-head p{margin:0;color:var(--muted)}.head-actions{display:flex;gap:12px;flex-wrap:wrap}.head-actions button:last-child,.page-head>button{background:linear-gradient(135deg,#6d4aff,#4b30ea);color:#fff;border:0}.panel{background:rgba(255,255,255,.82);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.builder-grid{display:grid;grid-template-columns:minmax(520px,1fr) minmax(400px,560px);gap:28px}.builder,.preview{padding:26px}.below{margin-top:28px;padding:24px}.form-title-row{position:relative}.big-input{font-size:22px;font-weight:850;padding-right:44px}.ok{position:absolute;right:14px;top:13px;color:#22c55e;font-weight:900}.desc-input{margin-top:14px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:24px 0}.tab{box-shadow:none;border:0;border-radius:0;padding:14px 0;background:transparent;color:#6b7280}.tab.active{color:var(--violet);border-bottom:3px solid var(--violet)}.bind-box{display:grid;grid-template-columns:1fr 180px;gap:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fbfcff;margin-bottom:24px}.bind-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.colors{display:flex;gap:10px}.colors input{height:46px;padding:4px}.builder-body{display:grid;grid-template-columns:230px 1fr;gap:22px}.add-fields{display:flex;flex-direction:column;gap:9px}.typebtn{display:flex;align-items:center;gap:13px;box-shadow:none;padding:12px;background:white}.typebtn span{width:25px;color:#4e5a78;font-weight:900}.structure>b,.add-fields>b{display:block;margin-bottom:12px}.field-card{display:grid;grid-template-columns:26px 1fr 170px auto 42px;gap:10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:14px;margin-bottom:10px;background:white;box-shadow:0 8px 20px rgba(37,51,91,.04)}.drag{color:#7c86a2}.field-main small{color:var(--muted)}.field-main input+small+input{margin-top:8px;padding:9px}.pill{margin:0;white-space:nowrap;background:#f1edff;color:#5733ee;border-radius:999px;padding:8px 11px;font-size:12px}.pill input{width:auto}.icon{padding:9px 10px}.danger{color:#ef4444!important}.add-dashed{width:100%;border:2px dashed #8e7bff;color:#5b3df4;background:#fbfaff;box-shadow:none}.primary-full{width:100%;margin-top:16px;justify-content:center;background:linear-gradient(135deg,#6d4aff,#4b30ea);color:white;border:0}.phone-preview{padding:95px 28px 28px;background:linear-gradient(135deg,var(--a),var(--b));border-radius:24px;position:relative;min-height:720px;box-shadow:0 25px 70px rgba(91,61,244,.22);overflow:hidden}.wave{position:absolute;left:-5%;right:-5%;top:40px;height:145px;background:rgba(255,255,255,.55);border-radius:50% 45% 50% 45%;filter:blur(.2px)}.pub-card,.public-card{position:relative;background:rgba(255,255,255,.92);border-radius:20px;padding:30px;box-shadow:0 20px 50px rgba(28,39,82,.12)}.pub-card h2,.public-card h1{text-align:center;margin:0 0 10px}.pub-card p,.public-card p{text-align:center;color:var(--muted);margin:0 0 22px}.pub-card button,.public-card button{width:100%;margin-top:16px;background:linear-gradient(135deg,var(--a),#6d43ee);color:white;border:0}.pub-card small,.public-card small{display:block;text-align:center;color:#8b95aa;margin-top:14px}.form-row,.admin-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;border:1px solid var(--line);border-radius:16px;background:white;margin-top:10px}.form-row code{display:block;margin-top:8px;padding:7px 9px;border-radius:8px;background:#f7f8fd;color:#59647f}.mini{display:inline-block;padding:9px 12px;margin-left:7px;font-size:13px}.public-shell{min-height:100vh;display:grid;place-items:center;padding:34px;background:linear-gradient(135deg,var(--a),var(--b))}.public-card{width:min(620px,94vw)}.notice{padding:12px;border-radius:12px;background:#dcfce7;color:#166534;margin-bottom:14px}.notice.error,.toast.bad{background:#fee2e2;color:#991b1b}.toast{position:fixed;right:24px;bottom:24px;z-index:20;padding:14px 18px;border-radius:14px;background:#101936;color:white;box-shadow:var(--shadow)}.table-panel{padding:18px}.toolbar{display:grid;grid-template-columns:310px minmax(220px,1fr) auto auto;gap:14px;align-items:end;margin-bottom:18px}.grid-scroll{overflow:auto;border:1px solid var(--line);border-radius:16px;background:white;max-height:70vh}.sheet{border-collapse:collapse;min-width:1100px;width:100%;font-size:15px}.sheet th,.sheet td{border:1px solid #e7ebf4;height:46px;min-width:170px;padding:0;background:rgba(255,255,255,.8)}.sheet thead th{background:#f7f9ff;font-weight:850}.sheet .letters th{height:34px;text-align:center;color:#76829d;background:#fafbff}.sheet .corner,.sheet .rownum{min-width:56px;width:56px;text-align:center;background:#f7f9ff;color:#6f7b97}.th-title{display:flex;align-items:center;gap:5px;padding:8px}.col-title{border:0;background:transparent;font-weight:850;padding:6px}.filter-btn,.delete-col{padding:6px 8px;box-shadow:none;border:0;background:#f4f6ff}.filter-chip{margin:0 8px 7px;padding:5px 8px;border-radius:9px;background:#efeaff;color:#5b3df4;font-size:12px;text-align:left}.cell{border:0;border-radius:0;background:transparent;height:45px}.cell:focus{outline:2px solid #8d7cff;background:#fff}.actions{min-width:220px!important;padding:6px 8px!important;white-space:nowrap}.dot{display:inline-block;width:20px;height:20px;border-radius:50%;border:1px solid #cbd5e1;background:white;margin:0 3px;vertical-align:middle;cursor:pointer}.dot.y{background:#fef3c7}.dot.g{background:#dcfce7}.dot.b{background:#dbeafe}.blank td{background:#fff}.sheet-tabs{display:flex;gap:8px;align-items:center;margin-top:16px;padding:12px;background:#fbfcff;border:1px solid var(--line);border-radius:14px;overflow:auto}.sheet-tab{padding:11px 22px;border-radius:10px;border:1px solid var(--line);background:white;white-space:nowrap}.sheet-tab.active{background:#efeaff;color:#5b3df4;font-weight:900}.danger-text{color:#ef4444}.admin-grid{display:grid;grid-template-columns:360px 1fr;gap:26px;padding:24px}.empty{padding:28px;text-align:center;color:var(--muted)}.ghost{background:white;color:#25314f}.muted{color:var(--muted)}@media(max-width:1100px){.side{position:static;width:auto}.main{margin-left:0}.builder-grid,.admin-grid{grid-template-columns:1fr}.toolbar{grid-template-columns:1fr}.builder-body,.bind-box{grid-template-columns:1fr}.field-card{grid-template-columns:1fr}.preview{display:none}}
.design-box{display:grid;grid-template-columns:1fr 260px;gap:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fbfcff;margin:-8px 0 24px}.design-box input[type=file]{padding:10px;background:#fff}.design-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.design-controls label{margin:0 0 5px}.checkline{grid-column:1/3;display:flex;align-items:center;gap:8px;margin:0!important;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px;color:#26314f}.checkline input{width:auto}.design-controls .ghost{grid-column:1/3;box-shadow:none}.preview-layout,.public-layout{position:relative;display:flex;align-items:center;justify-content:center;gap:28px;z-index:1}.preview-layout.left,.public-layout.left{flex-direction:row}.preview-layout.right,.public-layout.right{flex-direction:row-reverse}.side-art{object-fit:contain;filter:drop-shadow(0 25px 35px rgba(17,24,39,.18));user-select:none;pointer-events:none;flex:0 0 auto;max-width:42%}.side-art.small{width:150px}.side-art.medium{width:230px}.side-art.large{width:310px}.phone-preview .pub-card{width:min(430px,100%)}.public-layout{width:min(1180px,96vw)}.public-art.small{width:min(240px,32vw)}.public-art.medium{width:min(360px,38vw)}.public-art.large{width:min(470px,42vw)}.floaty{animation:softFloat 4.8s ease-in-out infinite}@keyframes softFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-14px) rotate(1deg)}}@media(max-width:900px){.design-box,.design-controls{grid-template-columns:1fr}.checkline,.design-controls .ghost{grid-column:auto}.public-layout,.public-layout.left,.public-layout.right{flex-direction:column}.side-art{max-width:82vw}.public-art.small,.public-art.medium,.public-art.large{width:min(320px,78vw)}.preview-layout,.preview-layout.left,.preview-layout.right{flex-direction:column}.phone-preview{min-height:auto}.side-art.small{width:120px}.side-art.medium{width:170px}.side-art.large{width:220px}}
.settings-box{margin:18px 0;padding:16px;border:1px solid #e6e9f5;border-radius:18px;background:#fbfcff;display:grid;gap:10px}
.settings-box input:not([type="checkbox"]){height:42px;border:1px solid #dfe4f2;border-radius:12px;padding:0 14px;background:white;font-weight:700;color:#10162f}
.thanks-screen{text-align:center;padding:28px 14px;display:grid;gap:12px;justify-items:center}
.thanks-screen h1{font-size:28px;margin:0;color:#10162f}
.thanks-screen p{margin:0;color:#6b7280;font-weight:700}
.thanks-icon{width:64px;height:64px;border-radius:999px;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:34px;font-weight:900;box-shadow:0 12px 35px rgba(21,128,61,.18)}
.hidden{display:none!important}.edit-note{display:inline-flex;margin-bottom:12px;padding:8px 12px;border-radius:999px;background:#f1edff;color:#5733ee;font-weight:850}.phone-preview{background-position:center!important}.answers-panel{padding:22px}.answers-toolbar{grid-template-columns:minmax(260px,420px) auto}.answer-card{background:white;border:1px solid var(--line);border-radius:18px;padding:18px;margin-top:12px;box-shadow:0 8px 20px rgba(37,51,91,.04)}.answer-top{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}.answer-top h3{margin:0}.answer-top time{color:var(--muted);font-weight:800}.answer-item{display:grid;grid-template-columns:220px 1fr;gap:14px;padding:9px 0;border-bottom:1px dashed #edf0f7}.answer-item:last-child{border-bottom:0}.answer-item span{color:var(--muted);font-weight:750}.answer-item b{font-weight:850;color:#111936;word-break:break-word}@media(max-width:700px){.answer-item{grid-template-columns:1fr}.answers-toolbar{grid-template-columns:1fr}}
.sheet-menubar{display:flex;gap:6px;align-items:center;margin:0 0 12px;padding:8px 10px;background:rgba(255,255,255,.82);border:1px solid #e7ebf4;border-radius:14px;box-shadow:0 10px 30px rgba(16,24,40,.05)}
.sheet-menubar button{box-shadow:none;background:transparent;border:0;padding:9px 12px;border-radius:10px;font-weight:800;color:#374151}.sheet-menubar button:hover{background:#f3f0ff;color:#5b3df4}.page-head.compact{margin-bottom:14px}.mini-modal,.col-menu{position:fixed;z-index:1000;background:#fff;border:1px solid #dfe4f2;border-radius:16px;box-shadow:0 20px 60px rgba(16,24,40,.18);padding:14px;min-width:270px}.mini-modal b{display:block;margin-bottom:10px;color:#10162f}.mini-input{width:100%;height:42px;border:1px solid #cfd7ea;border-radius:10px;padding:0 12px;font-weight:800}.mini-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.mini-actions button{padding:10px 14px}.col-menu{display:grid;gap:4px;padding:8px;min-width:230px}.col-menu button{text-align:left;border:0;background:white;box-shadow:none;padding:11px 12px;border-radius:10px;color:#172038;font-weight:800}.col-menu button:hover{background:#f3f0ff;color:#5b3df4}.formula-chip{margin:0 8px 7px;padding:5px 8px;border-radius:9px;background:#eefbf3;color:#15803d;font-size:12px;text-align:left;font-weight:800}.cell[readonly]{background:#f8fafc;color:#44506a;cursor:not-allowed}.file-menu{min-width:260px}.head-actions{display:flex;gap:10px;align-items:center}.toolbar{grid-template-columns:310px minmax(220px,1fr) auto auto}.sheet th,.sheet td{position:relative}.sheet .col-title{width:100%}.filter-btn{font-weight:900;color:#5b3df4}.blank .cell{background:white}.blank .cell:focus{background:#fff;outline:2px solid #8d7cff}
.formula-panel{position:fixed;z-index:1000;background:#fff;border:1px solid #dfe4f2;border-radius:18px;box-shadow:0 24px 70px rgba(16,24,40,.2);padding:16px;min-width:520px;max-width:560px;color:#172038}.formula-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.formula-head button{border:0;background:#f3f0ff;box-shadow:none;border-radius:10px;width:34px;height:34px;font-size:20px}.formula-panel p{margin:0 0 12px;color:#667085}.formula-panel code{background:#f3f0ff;color:#5b3df4;border-radius:7px;padding:2px 6px;font-weight:800}.formula-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.formula-list div{border:1px solid #edf1f8;border-radius:12px;padding:10px;background:#fbfcff}.formula-list b{display:block;color:#10162f;margin-bottom:3px}.formula-list span{font-size:12px;color:#667085}.sheet-menubar #formulaHelpBtn{color:#5b3df4;background:#f3f0ff}
.col-menu hr{border:0;border-top:1px solid #edf1f8;margin:4px 0}.cell:focus{outline:2px solid #8d7cff;z-index:2}.cell[readonly]:focus{outline:2px solid #22c55e}
.format-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;background:rgba(255,255,255,.9);border:1px solid #e7ebf4;border-radius:14px;box-shadow:0 10px 30px rgba(16,24,40,.05)}
.format-toolbar button{height:36px;min-width:38px;padding:0 12px;border-radius:10px;border:1px solid #dfe4f2;background:#fff;box-shadow:none;color:#172038;font-weight:900;cursor:pointer}.format-toolbar button:hover{background:#f3f0ff;color:#5b3df4}.format-toolbar button:disabled{opacity:.35;cursor:not-allowed}.format-toolbar span{width:1px;height:24px;background:#e5e7eb;margin:0 2px}.format-toolbar label{display:flex;align-items:center;gap:6px;margin:0;color:#667085;font-weight:800}.format-toolbar input[type=color]{width:38px;height:30px;border:1px solid #dfe4f2;border-radius:8px;padding:2px;background:white}.rowColor{width:28px;height:28px;border:1px solid #dfe4f2;border-radius:999px;padding:2px;background:white;vertical-align:middle;margin-right:8px}.sheet td[colspan="2"]{min-width:340px}.cell{font:inherit}.cell[style*="text-align:center"]{text-align:center}.cell[style*="text-align:right"]{text-align:right}.danger-text{color:#ef4444!important}

/* Cloud v9 */
.head-actions{display:flex;gap:10px;align-items:center}
.cloud-panel{padding:18px;min-height:620px}
.cloud-path{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap;color:#94a3b8}
.path-btn{border:1px solid #e6e9f5;background:#fff;border-radius:12px;padding:8px 12px;font-weight:800;color:#64748b;cursor:pointer}
.path-btn.active{background:#efeaff;color:#5b3df4;border-color:#d8cdfd}
.cloud-drop{border:1.5px dashed #d7ddf1;border-radius:18px;background:linear-gradient(135deg,#fbfcff,#f6f2ff);padding:24px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;margin-bottom:18px;color:#64748b;transition:.2s}
.cloud-drop b{color:#111827;font-size:16px}
.cloud-drop.over{border-color:#5b3df4;background:#f1edff;transform:scale(.998)}
.cloud-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.cloud-card{position:relative;border:1px solid #e7ebf7;background:white;border-radius:18px;padding:16px;min-height:145px;box-shadow:0 10px 30px #23306a0b;display:flex;flex-direction:column;gap:8px;transition:.18s}
.cloud-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px #23306a17;border-color:#d8cdfd}
.cloud-card b{font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cloud-card small{color:#7c879e;font-weight:700}
.file-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#f2efff;font-size:24px}
.cloud-card.folder{cursor:pointer}
.cloud-actions{margin-top:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dots{position:absolute;right:10px;top:10px;width:30px;height:30px;border-radius:10px;border:1px solid #e8ebf5;background:#fff;cursor:pointer;font-weight:900}
.icon-danger{border:0;background:#fff0f0;color:#ef4444;border-radius:10px;padding:7px 9px;cursor:pointer}

.copy-card{max-width:560px}
.copy-input{font-size:14px;margin:12px 0 16px}
.access-card{max-width:720px}
.access-list{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.access-row{display:grid;grid-template-columns:auto 1fr 190px;gap:12px;align-items:center;margin:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfcff}
.access-row input{width:auto}
.access-row small{display:block;color:var(--muted);font-weight:600;margin-top:3px}
.access-row select{padding:10px;border-radius:10px}
.muted-note{display:block;color:var(--muted);margin-top:10px;line-height:1.45}
.upload-panel{position:fixed;right:22px;bottom:22px;width:360px;max-height:420px;z-index:50;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 24px 70px rgba(25,33,70,.22);overflow:hidden}.upload-panel.hidden{display:none}.upload-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #edf1f7;background:#fbfcff}.upload-head button{padding:6px 10px;border:0;box-shadow:none;background:#f1f5f9}.upload-item{padding:12px 14px;border-bottom:1px solid #edf1f7}.upload-name{font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-meta{display:flex;justify-content:space-between;gap:10px;color:#6b7280;font-size:12px;margin:7px 0}.upload-bar{height:8px;border-radius:999px;background:#eef2ff;overflow:hidden}.upload-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6d4aff,#22c55e);transition:width .2s}.upload-item small{display:block;margin-top:7px;color:#6b7280}.upload-item.done small{color:#16a34a}.upload-item.bad small{color:#dc2626}.upload-item.bad .upload-bar i{background:#ef4444}.file-dots{position:absolute;top:10px;right:10px;padding:6px 10px;box-shadow:none}.cloud-card.file{padding-top:28px}
