:root{
  --purple:#6D43E5; --purple-rgb:109,67,229; --bg:#F5F5FA; --ink:#15131A; --muted:#777181; --border:#E9E7EF;
  --card:rgba(255,255,255,.94); --danger:#D94A5A; --shadow:0 18px 50px rgba(34,25,65,.08);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}body{min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:active{transform:scale(.985)}#app{min-height:100dvh}.icon{width:21px;height:21px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.icon.fill{fill:currentColor;stroke:none}
.page{max-width:800px;margin:auto;padding:calc(env(safe-area-inset-top) + 22px) 18px calc(env(safe-area-inset-bottom) + 112px)}
.header{display:flex;align-items:center;gap:10px;margin-bottom:22px}.headerCopy{flex:1;min-width:0}.kicker{font-size:10px;letter-spacing:1.7px;color:var(--purple);font-weight:900}.title{font-size:33px;line-height:1.02;font-weight:900;letter-spacing:-1.2px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topActions{display:flex;gap:8px}.iconBtn{border:1px solid rgba(38,29,65,.06);width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.82);color:#3D3847;display:grid;place-items:center;box-shadow:0 8px 24px rgba(32,24,58,.05);backdrop-filter:blur(14px)}.iconBtn.purple{color:var(--purple);background:rgba(var(--purple-rgb),.09);border-color:rgba(var(--purple-rgb),.08)}
.hero{position:relative;overflow:hidden;background:linear-gradient(140deg,#17141D 0%,#26212D 100%);border-radius:28px;padding:19px;display:flex;align-items:center;gap:14px;color:#fff;box-shadow:0 18px 40px rgba(22,18,30,.14)}.hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-85px;top:-100px;background:radial-gradient(circle,rgba(var(--purple-rgb),.5),rgba(var(--purple-rgb),0) 68%)}.heroIcon{width:50px;height:50px;border-radius:17px;background:linear-gradient(145deg,var(--purple),#815BEE);display:grid;place-items:center;box-shadow:0 9px 24px rgba(var(--purple-rgb),.35);z-index:1}.heroCopy{flex:1;min-width:0;z-index:1}.heroTitle{font-weight:850;font-size:17px}.heroSub{color:#BEB9C5;font-size:12.5px;margin-top:4px}.heroAdd{z-index:1;width:43px;height:43px;border-radius:14px;border:0;background:#fff;color:var(--purple);display:grid;place-items:center;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.search{height:57px;background:rgba(255,255,255,.9);border:1px solid var(--border);border-radius:19px;margin-top:18px;display:flex;align-items:center;gap:11px;padding:0 15px;box-shadow:0 8px 24px rgba(34,25,65,.035)}.search .icon{color:#948E9D}.search input{border:0;outline:0;flex:1;background:transparent;font-size:15px;color:var(--ink);min-width:0}.search input::placeholder{color:#A49EAA}
.sectionHead{display:flex;align-items:center;justify-content:space-between;margin:30px 1px 12px}.sectionTitle{font-size:19px;font-weight:900;letter-spacing:-.25px}.linkBtn{border:0;background:transparent;color:var(--purple);font-weight:800;padding:7px 2px}.folderList{display:grid;gap:11px}.folderCard,.credCard{width:100%;background:var(--card);border:1px solid var(--border);border-radius:21px;padding:14px;display:flex;align-items:center;gap:12px;box-shadow:0 9px 25px rgba(34,25,65,.035);transition:.18s ease}.folderCard:hover,.credCard:hover{border-color:rgba(var(--purple-rgb),.18);box-shadow:0 12px 30px rgba(34,25,65,.055)}.folderIcon,.credIcon{width:49px;height:49px;border-radius:16px;display:grid;place-items:center;flex:none}.folderIcon .icon,.credIcon .icon{width:23px;height:23px}.grow{flex:1;min-width:0}.folderName,.credTitle{font-weight:850;font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.folderCount,.credUser{font-size:12.5px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chev{color:#B8B2BF;display:grid;place-items:center}.chev .icon{width:18px;height:18px}.empty{border:1px dashed #D9D5E0;border-radius:21px;padding:30px;background:rgba(255,255,255,.5);text-align:center;color:var(--muted)}.emptyIcon{width:48px;height:48px;border-radius:16px;margin:0 auto 10px;background:#F0EDF6;color:#A39BAB;display:grid;place-items:center}.credList{display:grid;gap:10px}.smallIcon{border:0;width:39px;height:39px;border-radius:13px;background:#F7F5FA;color:#665F70;display:grid;place-items:center}.favoriteStar{color:#E5A21A;margin-left:4px}
.fab{position:fixed;right:max(22px,calc((100vw - 800px)/2 + 22px));bottom:calc(env(safe-area-inset-bottom) + 24px);width:62px;height:62px;border-radius:21px;border:0;background:linear-gradient(145deg,var(--purple),#7C51EE);color:#fff;display:grid;place-items:center;box-shadow:0 18px 32px rgba(var(--purple-rgb),.32)}.fab .icon{width:28px;height:28px}
.lock{min-height:100dvh;background:radial-gradient(circle at 88% 4%,rgba(var(--purple-rgb),.13),transparent 28%),linear-gradient(180deg,#F7F5FD,#F4F4F8);display:grid;place-items:center;padding:calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 28px)}.lockInner{width:min(100%,430px)}.logoMark{width:76px;height:76px;border-radius:25px;background:linear-gradient(145deg,var(--purple),#7A50EB);display:grid;place-items:center;color:#fff;overflow:hidden;box-shadow:0 16px 32px rgba(var(--purple-rgb),.24)}.logoMark img{width:100%;height:100%;object-fit:cover}.logoMark .icon{width:33px;height:33px}.lockTitle{font-size:34px;font-weight:920;letter-spacing:-1.35px;margin:24px 0 8px}.lockSub{color:var(--muted);line-height:1.55;margin-bottom:22px;font-size:14px}.panel{background:rgba(255,255,255,.92);border:1px solid rgba(231,226,239,.92);border-radius:27px;padding:20px;box-shadow:var(--shadow);backdrop-filter:blur(16px)}
.field{margin-bottom:15px}.field label{display:block;font-size:11.5px;font-weight:850;color:#655F6D;margin-bottom:7px}.inputWrap{display:flex;align-items:center;gap:8px;border:1px solid #E3DFE8;background:#FAF9FC;border-radius:16px;padding:0 13px;transition:.15s}.inputWrap:focus-within{border-color:rgba(var(--purple-rgb),.45);box-shadow:0 0 0 3px rgba(var(--purple-rgb),.08);background:#fff}.inputWrap input,.inputWrap textarea,.inputWrap select{width:100%;border:0;outline:0;background:transparent;color:var(--ink);padding:14px 0}.inputWrap textarea{min-height:90px;resize:vertical}.primary{width:100%;height:54px;border:0;border-radius:17px;background:linear-gradient(135deg,var(--purple),#7B53ED);color:#fff;font-weight:850;box-shadow:0 10px 24px rgba(var(--purple-rgb),.22)}.secondary{height:46px;border:1px solid #DFD8F4;border-radius:15px;background:#fff;color:var(--purple);font-weight:800;padding:0 16px}.error{color:var(--danger);font-size:13px;margin:-3px 0 12px}
.modalBackdrop{position:fixed;inset:0;background:rgba(21,17,28,.48);display:grid;place-items:end center;z-index:20;backdrop-filter:blur(3px)}.modal{width:min(100%,760px);max-height:92dvh;overflow:auto;background:var(--bg);border-radius:30px 30px 0 0;padding-bottom:calc(env(safe-area-inset-bottom) + 24px);box-shadow:0 -18px 55px rgba(22,16,31,.16)}.modalHead{position:sticky;top:0;z-index:2;background:rgba(255,255,255,.94);border-bottom:1px solid var(--border);padding:16px 18px;display:flex;align-items:center;justify-content:space-between;backdrop-filter:blur(16px)}.modalTitle{font-weight:900}.modalBody{padding:18px}.dangerBtn{width:100%;height:50px;border:0;border-radius:15px;background:#FFF0F2;color:var(--danger);font-weight:850}
.settingsHero{background:linear-gradient(145deg,#1B1720,#2B2432);border-radius:24px;padding:18px;color:#fff;display:flex;align-items:center;gap:14px;margin-bottom:20px;position:relative;overflow:hidden}.settingsHero:after{content:"";position:absolute;right:-40px;top:-55px;width:150px;height:150px;border-radius:50%;background:rgba(var(--purple-rgb),.28)}.brandBig{width:64px;height:64px;border-radius:20px;background:var(--purple);display:grid;place-items:center;overflow:hidden;z-index:1;box-shadow:0 10px 26px rgba(var(--purple-rgb),.28)}.brandBig img{width:100%;height:100%;object-fit:cover}.brandBig .icon{width:28px;height:28px}.settingsGroup{font-size:10px;font-weight:900;letter-spacing:1.45px;color:#8B8494;margin:18px 2px 9px}.settingsCard{background:rgba(255,255,255,.94);border:1px solid var(--border);border-radius:21px;overflow:hidden;box-shadow:0 8px 24px rgba(34,25,65,.03)}.row{padding:15px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border)}.row:last-child{border-bottom:0}.rowTitle{font-weight:850;font-size:14px}.rowSub{font-size:11.8px;color:var(--muted);margin-top:3px;line-height:1.45}.pill{border:0;background:#F0ECFB;color:var(--purple);padding:8px 11px;border-radius:11px;font-weight:800}.logoPreview,.iconPreview{width:52px;height:52px;border-radius:16px;background:var(--purple);display:grid;place-items:center;color:#fff;overflow:hidden;flex:none}.logoPreview img,.iconPreview img{width:100%;height:100%;object-fit:cover}.brandForm{background:#fff;border:1px solid var(--border);border-radius:22px;padding:16px}.uploadGrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.uploadBox{border:1px solid var(--border);background:#FAF9FC;border-radius:18px;padding:14px;text-align:center}.uploadPreview{width:66px;height:66px;border-radius:20px;background:#EEEAF8;margin:0 auto 10px;display:grid;place-items:center;overflow:hidden;color:var(--purple)}.uploadPreview.appIcon{border-radius:19px}.uploadPreview img{width:100%;height:100%;object-fit:cover}.uploadLabel{font-size:12.5px;font-weight:850}.uploadHint{font-size:10.5px;color:var(--muted);margin-top:3px}.uploadAction{margin-top:10px;border:0;background:#F0ECFB;color:var(--purple);font-weight:800;padding:8px 10px;border-radius:10px}.saveBrand{margin-top:14px}.saveMeta{margin-top:9px;font-size:11px;color:var(--muted);text-align:center}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.folderTop{max-width:800px;margin:auto;padding:calc(env(safe-area-inset-top) + 18px) 18px 8px;display:flex;align-items:center;gap:12px}.folderTop .titleSm{font-size:22px;font-weight:900}.badge{font-size:12px;color:var(--muted);margin-top:2px}.installHint{font-size:12px;line-height:1.55;color:#5F5674;background:#F1EDFD;padding:14px;border-radius:16px}.backupNote{margin-top:12px;padding:13px;border-radius:15px;background:#F4F1FC;color:#655C78;font-size:11.5px;line-height:1.5}
.installBtn{width:100%;border:1px solid #DDD5F8;background:linear-gradient(135deg,#F7F3FF,#FFFFFF);border-radius:18px;padding:13px 14px;display:flex;align-items:center;gap:12px;color:var(--ink);box-shadow:0 8px 22px rgba(var(--purple-rgb),.08);text-align:left}.installBtn .installIcon{width:42px;height:42px;border-radius:13px;background:var(--purple);color:#fff;display:grid;place-items:center;flex:none}.installBtn b{display:block;font-size:14px}.installBtn small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px;font-weight:500}.homeInstall{margin-bottom:14px}.lockInstall{margin-top:15px}.settingsInstall{margin-bottom:10px}.installedBadge{background:#ECF7EF;color:#3D7650;border:1px solid #D5ECDD;border-radius:16px;padding:13px 14px;font-weight:800;font-size:13px}.installBigIcon{width:68px;height:68px;border-radius:22px;background:var(--purple);color:#fff;display:grid;place-items:center;margin:8px auto 18px}.installTitle{text-align:center;font-size:22px;font-weight:900}.installSteps{margin-top:14px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px;line-height:1.6;font-size:14px}.installNote{margin-top:12px;color:var(--muted);font-size:12.5px;line-height:1.55;text-align:center}.installBtn.installReady{border-color:#BFAEF8;box-shadow:0 10px 26px rgba(var(--purple-rgb),.16)}
@media (min-width:720px){.folderList{grid-template-columns:1fr 1fr}.fab{right:calc((100vw - 800px)/2 + 22px)}}
@media (max-width:420px){.title{font-size:30px}.uploadGrid{grid-template-columns:1fr 1fr}.uploadBox{padding:12px}.uploadPreview{width:58px;height:58px}.heroTitle{font-size:16px}}
@media (display-mode:standalone){body{overscroll-behavior:none;-webkit-user-select:none;user-select:none}.field input,.field textarea,.search input{-webkit-user-select:text;user-select:text}.homeInstall,.lockInstall{display:none}}

/* Cloud account + owner controls */
.authSwitch{width:100%;border:0;background:transparent;color:var(--purple);font-weight:800;padding:14px 8px 2px}
.cloudPill{margin:14px auto 0;width:max-content;max-width:100%;display:flex;align-items:center;gap:7px;background:#EEF8F1;color:#3D7650;border:1px solid #D8EDDE;border-radius:999px;padding:8px 12px;font-size:11.5px;font-weight:800}
.cloudPill .icon{width:16px;height:16px}.ownerBadge{display:flex;align-items:center;gap:8px;background:#F1EDFD;color:#5D4A97;border:1px solid #E2D9FA;border-radius:14px;padding:11px 12px;margin-bottom:15px;font-size:11.5px;font-weight:800;line-height:1.4}.ownerBadge .icon{width:17px;height:17px;flex:none}.syncOk{background:#ECF7EF;color:#3D7650;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:850}.primary:disabled{opacity:.55;cursor:not-allowed}.inputWrap input[readonly]{color:#6C6672;background:transparent}
