html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden}#appShell{width:100%;height:100%}#tabs{padding-top:4px;padding-left:5px;height:30px;background:#fff;overflow:hidden;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-shadow:inset 0 -6px 6px -6px #00000059}#tabs .tab-item{margin-right:3px}#tabs span{display:inline-flex;align-items:center;height:30px;line-height:30px;padding:0 0 0 5px;background:#ddd;cursor:pointer;font-family:Roboto,sans-serif;border-top-left-radius:10px;border-top-right-radius:10px;position:relative;user-select:none;vertical-align:top;box-sizing:border-box}#tabs span.active{background:#bbb;font-weight:700}#tabs .tab-item.dragging{opacity:.5}#tabs .tab-item.drop-before{box-shadow:inset 3px 0 #4f8cff}#tabs .tab-item.drop-after{box-shadow:inset -3px 0 #4f8cff}#tabs span .pencil-icon{margin-right:0;padding:0;cursor:pointer;font-size:.7em;background:transparent;margin-top:0}#tabs span .close-btn{margin-left:3px;margin-right:3px;padding:0 1px;cursor:pointer;background:inherit;color:#000;opacity:0;transition:opacity .2s;line-height:1;user-select:none}#tabs span.active .close-btn,#tabs span:hover .close-btn,#tabs span:focus-within .close-btn{opacity:1}#tabs span.active span.active-title{background:transparent}#tabs.dark{background:#1e1e1e}#tabs.dark span{background:#2d2d2d;color:#ccc}#tabs.dark span.active{background:#3c3c3c;color:#fff}#tabs.dark span .close-btn{color:#ccc;background:transparent}#tabs.dark span .pencil-icon{background:transparent}#editor{width:calc(100% - 86px);height:calc(100% - 34px)}#buttonBackdrop{position:fixed;top:34px;right:0;width:86px;height:calc(100% - 34px);z-index:1}#docStats{position:fixed;top:42px;right:8px;width:70px;z-index:2;font-family:Roboto,sans-serif;font-size:11px;line-height:1.4;color:#00000085;user-select:none;pointer-events:none;white-space:pre-line}#tabs.dark~#docStats{color:#ffffff94}#editor.dragover{outline:3px dashed #3b82f6;outline-offset:-6px;transition:outline-color .15s ease}.dropdown{display:none;position:fixed;z-index:1000;background:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;box-shadow:0 2px 6px #0003;max-height:70%;overflow-y:auto}#themeSelector{width:180px}#modeSelector{width:140px}.dropdown h4{margin:8px 0 4px;font-size:1rem;font-weight:700}.dropdown button{display:block;width:100%;margin-bottom:5px;padding:5px;border:none;background:#f0f0f0;cursor:pointer;text-align:left}.dropdown button:hover{background:#ddd}.dropdown button.active{background:#ddd;font-weight:700}.bottom-button{position:fixed;right:20px;width:56px;height:56px;border:none;border-radius:50%;cursor:pointer;box-shadow:0 2px 4px #0000004d;display:flex;align-items:center;justify-content:center;background-color:gray;z-index:2000}.bottom-button.is-hidden-space{display:none}#downloadButton{bottom:10px;background-color:red}#archiveButton{bottom:76px;background-color:#7c3aed}#importButton{bottom:142px;background-color:#0a0}#settingsButton{bottom:208px}#keyboardButton{bottom:274px}#toggleThemeButton{bottom:340px}#modeButton{bottom:406px}#themeButton{bottom:472px}#stripEmojiButton{bottom:538px;background-color:#555}#caseButton{bottom:604px;background-color:#6b6b6b}.bottom-button img{width:27px;height:27px;filter:invert(1)}#fileInput{display:none}#fabPopover{position:fixed;z-index:5000;max-width:260px;padding:8px 11px;border-radius:10px;font-family:Roboto,sans-serif;font-size:12px;line-height:1.25;letter-spacing:.01em;pointer-events:none;opacity:0;transform:translateY(2px) scale(.98);transition:opacity .12s ease,transform .12s ease;box-shadow:0 12px 24px #0000002e,0 2px 6px #0003;border:1px solid rgba(0,0,0,.08);background:linear-gradient(180deg,#fff,#f4f6fa);color:#111827;white-space:nowrap}#fabPopover.dark{border-color:#ffffff26;background:linear-gradient(180deg,#2b3240,#1a1f2b);color:#f8fafc;box-shadow:0 12px 24px #0000006b,0 2px 6px #00000059}#fabPopover.show{opacity:1;transform:translateY(0) scale(1)}#closedTabsDialog{display:none;position:fixed;inset:0;z-index:4500;align-items:center;justify-content:center;background:#00000059;font-family:Roboto,sans-serif}#closedTabsDialog.open{display:flex}#closedTabsPanel{width:min(700px,calc(100vw - 24px));max-height:min(80vh,620px);background:#fff;border-radius:12px;box-shadow:0 20px 45px #00000059;border:1px solid rgba(0,0,0,.1);overflow:hidden;display:flex;flex-direction:column}#tabs.dark~#closedTabsDialog #closedTabsPanel{background:#1f2937;border-color:#ffffff24;color:#e5e7eb}.closed-tabs-header{padding:14px 16px;font-size:18px;font-weight:600;border-bottom:1px solid rgba(0,0,0,.08)}#tabs.dark~#closedTabsDialog .closed-tabs-header{border-bottom-color:#ffffff1f}#closedTabsList{overflow:auto;padding:8px 0}.closed-tab-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:8px 14px}.closed-tab-row:hover{background:#0000000a}#tabs.dark~#closedTabsDialog .closed-tab-row:hover{background:#ffffff0f}.closed-tab-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.closed-tab-empty{padding:16px;opacity:.8}.closed-tab-icon-btn{border:none;background:transparent;width:32px;height:32px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:inherit}.closed-tab-icon-btn:hover{background:#0000001a}#tabs.dark~#closedTabsDialog .closed-tab-icon-btn:hover{background:#ffffff26}.closed-tab-icon-btn i{font-size:20px}#tabPreviewPopover{position:fixed;z-index:5100;max-width:min(700px,calc(100vw - 30px));background:#111827;color:#f9fafb;border:1px solid rgba(255,255,255,.16);border-radius:8px;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;white-space:pre-wrap;line-height:1.35;display:none;pointer-events:none}[hidden]{display:none!important}.auth-screen,.modal-screen{position:fixed;inset:0;z-index:10000;font-family:Roboto,sans-serif}#loadingScreen{display:grid;place-items:center;color:#475569;background:#f8fafc}#authScreen{display:grid;grid-template-columns:70% 30%;background:#fff}.auth-wallpaper{position:relative;min-width:0;overflow:hidden;color:#fff;background:#172554 url(/assets/downloaded_image-DBTymf1E.jpg) center / cover no-repeat}.auth-wallpaper:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#09122a1f,#09122a14 44%,#09122aa3)}.wallpaper-brand,.wallpaper-copy{position:absolute;z-index:1}.wallpaper-brand{top:clamp(28px,4vw,64px);left:clamp(30px,5vw,76px);display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;letter-spacing:-.02em}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border:1px solid rgba(255,255,255,.55);border-radius:12px;background:#ffffff2e;box-shadow:0 8px 28px #0f172a2e;backdrop-filter:blur(12px)}.brand-mark img{display:block;width:24px;height:24px;object-fit:contain}.wallpaper-copy{bottom:clamp(46px,7vw,100px);left:clamp(30px,5vw,76px);text-shadow:0 2px 22px rgba(15,23,42,.34)}.wallpaper-copy p{margin:0 0 4px;font-size:clamp(18px,2vw,30px)}.wallpaper-copy strong{font-size:clamp(34px,4vw,62px);line-height:1.05;letter-spacing:-.045em}.auth-panel{position:relative;display:flex;min-width:0;align-items:center;justify-content:center;padding:clamp(28px,4vw,64px);box-sizing:border-box;background:#fff}#authScreen .auth-card{width:min(100%,390px);padding:0;border:0;border-radius:0;box-shadow:none}.auth-heading{margin-bottom:38px}.auth-eyebrow{display:block;margin-bottom:12px;color:#6366f1;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.auth-heading p{margin:0;color:#64748b;font-size:14px;line-height:1.65}#passwordLabel>span,.auth-label{display:block;margin-bottom:10px;color:#334155;font-size:13px;font-weight:600}#passwordInput{display:block;width:100%;box-sizing:border-box;margin:0;padding:16px 18px;color:#0f172a;font:500 15px/1.2 Roboto,sans-serif;opacity:.58;border:1px solid #dbe2ea;border-radius:14px;outline:0;background:#f8fafc;box-shadow:0 5px 16px #0f172a0f,inset 0 1px #fff;transition:opacity .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}#passwordInput:hover{opacity:.78;border-color:#cbd5e1}#passwordInput:focus,#passwordInput:not(:placeholder-shown){opacity:1;border-color:#a5b4fc;background:#fff;box-shadow:0 0 0 4px #6366f11c,0 14px 32px #0f172a1a}#passwordInput::placeholder{color:#94a3b8}#authSubmit{display:flex;width:100%;align-items:center;justify-content:space-between;box-sizing:border-box;margin:8px 0 0;padding:15px 18px;color:#fff;font:600 14px/1 Roboto,sans-serif;cursor:pointer;border:0;border-radius:14px;background:linear-gradient(135deg,#4f46e5,#6366f1);box-shadow:0 12px 24px #4f46e53b;transition:transform .18s ease,box-shadow .18s ease}#authSubmit:hover{transform:translateY(-1px);box-shadow:0 16px 28px #4f46e54d}#authSubmit:focus-visible{outline:3px solid rgba(99,102,241,.25);outline-offset:3px}#authSubmit:disabled{cursor:wait;opacity:.65;transform:none}#totpInput{display:block;width:100%;height:54px;box-sizing:border-box;margin-bottom:13px;padding:0 18px;color:#0f172a;font:700 24px/54px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:.55em;text-align:center;caret-color:#4f46e5;border:1px solid #dbe3ef;border-radius:11px;outline:0;background:#f8fafc;box-shadow:inset 0 1px 2px #0f172a05;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s}#totpInput:focus{border-color:#818cf8;background:#fff;box-shadow:0 0 0 4px #6366f11c,0 10px 24px #0f172a17;transform:translateY(-1px)}.otp-hint{display:block;margin:0;color:#94a3b8;font-size:12px;line-height:1.5}#enrollment{margin:-15px 0 28px;color:#64748b;font-size:13px;line-height:1.5}#totpQr img,#totpQr svg{display:block;width:min(190px,100%);height:auto;margin:0 auto 14px;border-radius:14px;box-shadow:0 8px 25px #0f172a1a}#totpSecret{display:block;overflow-wrap:anywhere;padding:10px;color:#334155;text-align:center;border-radius:9px;background:#f1f5f9}#authError{min-height:1.4em;margin:15px 0 4px;color:#be123c;font-size:13px;line-height:1.4}.auth-footer{position:absolute;bottom:24px;margin:0;color:#94a3b8;font-size:11px}.auth-footer span{margin-right:5px;color:#22c55e;font-size:8px}.modal-screen{display:grid;place-items:center;background:#0000008c}.modal-screen .auth-card{width:min(420px,calc(100% - 48px));padding:24px;border-radius:12px;background:#fff;box-shadow:0 10px 35px #0003}.modal-screen button{margin:5px;padding:9px 14px}.rename-dialog{width:min(430px,calc(100% - 32px));box-sizing:border-box;padding:26px;border:1px solid rgba(148,163,184,.3);border-radius:20px;color:#0f172a;background:#fff;box-shadow:0 22px 55px #0f172a40}.rename-dialog h2{margin:0 0 8px;font-size:24px;letter-spacing:-.03em}.rename-dialog>p{margin:0 0 20px;color:#64748b;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.rename-dialog label{display:block;margin-bottom:8px;color:#334155;font-size:13px;font-weight:600}#renameInput{display:block;width:100%;box-sizing:border-box;padding:12px 14px;color:#0f172a;font:500 15px/1.3 Roboto,sans-serif;border:1px solid #cbd5e1;border-radius:11px;outline:0;background:#f8fafc;transition:border-color .16s,box-shadow .16s,background .16s}#renameInput:focus{border-color:#818cf8;background:#fff;box-shadow:0 0 0 4px #6366f11f}#renameInput:disabled{cursor:wait;opacity:.65}.rename-error{min-height:1.4em;margin:9px 0 0!important;color:#be123c!important;font-size:13px!important}.rename-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.rename-dialog-actions button{margin:0;border-radius:10px;font:600 13px/1 Roboto,sans-serif;cursor:pointer}.rename-cancel{color:#475569;border:1px solid #cbd5e1;background:#fff}.rename-cancel:hover{background:#f8fafc}#renameSubmit{color:#fff;border:0;background:linear-gradient(135deg,#4f46e5,#6366f1);box-shadow:0 8px 18px #4f46e538}#renameSubmit:hover{background:linear-gradient(135deg,#4338ca,#4f46e5)}.rename-dialog-actions button:disabled{cursor:wait;opacity:.6}@media(max-width:900px){#authScreen{grid-template-columns:46% 54%}.wallpaper-copy strong{font-size:clamp(30px,5vw,44px)}.auth-panel{padding:34px}}@media(max-width:640px){#authScreen{display:block;overflow-y:auto;background:#fff}.auth-wallpaper{height:28vh;min-height:190px;border-radius:0 0 28px 28px}.wallpaper-brand{top:22px;left:24px}.wallpaper-copy{bottom:26px;left:24px}.wallpaper-copy p{font-size:15px}.wallpaper-copy strong{font-size:30px}.auth-panel{min-height:72vh;align-items:flex-start;padding:40px 24px 70px}.auth-heading{margin-bottom:28px}}@media(prefers-reduced-motion:reduce){#passwordInput,#authSubmit,#totpInput{transition:none}}.sync-tools{position:fixed;right:92px;top:3px;z-index:3000;display:flex;align-items:center;gap:5px;font:12px Roboto;color:#555}#refreshServerButton{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center}#refreshServerButton:hover{background:#00000014}#refreshServerButton:focus-visible{outline:2px solid #2563eb;outline-offset:1px}#refreshServerButton:disabled{cursor:wait;opacity:.5}#refreshServerButton i{font-size:20px}#tabs .files-tab{display:inline-flex;align-items:center;gap:5px;height:30px;margin-right:8px;padding:0 11px;color:#fff;font:600 13px/30px Roboto,sans-serif;vertical-align:top;cursor:pointer;border:0;border-radius:10px 10px 0 0;background:#4f46e5}#tabs .files-tab:hover{background:#4338ca}#tabs .files-tab.active,#tabs.dark .files-tab{color:#fff;background:#4f46e5}#tabs.dark .files-tab:hover{background:#4338ca}#tabs.dark .files-tab.active{color:#fff;background:#6366f1}#tabs .files-tab i{font-size:17px}#tabs .files-tab>span{display:inline;height:auto;padding:0;color:inherit;line-height:inherit;background:transparent;border-radius:0;position:static}#tabs.dark .files-tab>span{color:inherit;background:transparent}#appShell.files-mode .bottom-button,#appShell.files-mode .sync-tools{display:none}#filesView{position:fixed;inset:34px 0 0;z-index:100;overflow:auto;color:#1e293b;font-family:Roboto,sans-serif;background:linear-gradient(145deg,#f8fafc,#eef2ff)}.files-shell{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:34px 0 60px}.files-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.files-eyebrow{display:block;margin-bottom:7px;color:#6366f1;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.files-header h1{margin:0;color:#0f172a;font-size:clamp(30px,5vw,48px);letter-spacing:-.045em}.files-header p{margin:8px 0 0;color:#64748b;font-size:14px}.files-header-meta{color:#475569;font-size:13px;font-weight:700;white-space:nowrap}#filesUsage.is-full{color:#be123c}.files-feedback{margin:0 0 16px;padding:12px 15px;border:1px solid #c7d2fe;border-radius:12px;color:#3730a3;font-size:13px;line-height:1.45;white-space:pre-line;background:#eef2ff}.files-feedback.success{color:#166534;border-color:#bbf7d0;background:#f0fdf4}.files-feedback.warning{color:#92400e;border-color:#fde68a;background:#fffbeb}.files-feedback.error{color:#9f1239;border-color:#fecdd3;background:#fff1f2}.files-dropzone{display:flex;min-height:170px;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin-bottom:24px;padding:24px;text-align:center;border:2px dashed #a5b4fc;border-radius:22px;background:#ffffffb8;box-shadow:0 16px 40px #4f46e514;transition:background .16s,border-color .16s,transform .16s}.files-dropzone.dragover{border-color:#4f46e5;background:#eef2ff;transform:scale(1.01)}.files-dropzone>i{color:#6366f1;font-size:42px}.files-dropzone strong{color:#1e293b;font-size:17px}.files-dropzone span{color:#64748b;font-size:12px}#filesPickButton{margin-top:7px;padding:10px 17px;color:#fff;font:600 13px Roboto,sans-serif;cursor:pointer;border:0;border-radius:10px;background:#4f46e5;box-shadow:0 7px 16px #4f46e538}#filesPickButton:hover{background:#4338ca}#filesList{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px}.file-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid rgba(148,163,184,.27);border-radius:16px;background:#ffffffe0;box-shadow:0 10px 25px #0f172a12}.file-preview{display:grid;height:145px;place-items:center;overflow:hidden;color:#6366f1;background:linear-gradient(135deg,#eef2ff,#f8fafc)}.file-preview img{width:100%;height:100%;object-fit:cover}.file-preview.is-clickable{cursor:zoom-in}.file-preview.is-clickable:focus-visible{outline:3px solid #6366f1;outline-offset:-3px}.file-preview>i{font-size:58px}.file-card-content{min-width:0;padding:13px 14px 4px}.file-name{display:block;overflow:hidden;color:#1e293b;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.file-details{display:block;margin-top:5px;color:#64748b;font-size:11px}.file-actions{display:flex;justify-content:flex-end;gap:4px;padding:7px 10px 10px}.file-action{display:inline-grid;width:32px;height:32px;place-items:center;color:#475569;cursor:pointer;border:0;border-radius:9px;background:transparent}.file-action:hover{background:#eef2ff;color:#4338ca}.file-action.danger:hover{color:#be123c;background:#fff1f2}.file-action i{font-size:19px}.files-empty{display:flex;min-height:180px;grid-column:1 / -1;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#64748b;text-align:center}.files-empty i{color:#818cf8;font-size:48px}.files-empty strong{color:#334155;font-size:16px}.files-empty span{max-width:460px;font-size:13px;line-height:1.5}.file-modal{padding:20px;box-sizing:border-box;background:#0f172ac7}.file-preview-dialog{display:flex;width:min(960px,100%);max-height:calc(100vh - 40px);flex-direction:column;box-sizing:border-box;border-radius:18px;color:#0f172a;background:#fff;box-shadow:0 24px 70px #00000061}.file-preview-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #e2e8f0}.file-preview-dialog h2{overflow:hidden;margin:0;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.file-preview-dialog header button{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;margin:0;padding:0;color:#475569;cursor:pointer;border:0;border-radius:9px;background:transparent}.file-preview-dialog header button:hover{color:#0f172a;background:#f1f5f9}.file-preview-dialog header button i{font-size:23px}.file-preview-content{display:grid;min-height:220px;flex:1;place-items:center;overflow:auto;padding:18px;color:#64748b}.file-preview-content.is-zoomed{place-items:start}.file-preview-content img{display:block;max-width:100%;max-height:calc(100vh - 115px);cursor:zoom-in;object-fit:contain}.file-preview-content img.is-full-size{max-width:none;max-height:none;cursor:zoom-out;object-fit:none}#tabs.dark~#filesView{color:#e5e7eb;background:linear-gradient(145deg,#111827,#1f2937)}#tabs.dark~#filesView .files-header h1,#tabs.dark~#filesView .file-name,#tabs.dark~#filesView .files-dropzone strong,#tabs.dark~#filesView .files-empty strong{color:#f8fafc}#tabs.dark~#filesView .files-header p,#tabs.dark~#filesView .files-header-meta,#tabs.dark~#filesView .files-dropzone span,#tabs.dark~#filesView .file-details,#tabs.dark~#filesView .files-empty{color:#cbd5e1}#tabs.dark~#filesView .files-dropzone{border-color:#6366f1;background:#1e293bbf}#tabs.dark~#filesView .files-dropzone.dragover{background:#312e81}#tabs.dark~#filesView .file-card{border-color:#94a3b833;background:#1e293bdb}#tabs.dark~#filesView .file-preview{background:linear-gradient(135deg,#312e81,#1e293b)}#tabs.dark~#filesView .file-action{color:#cbd5e1}#tabs.dark~#filesView .file-action:hover{color:#fff;background:#3730a3}#tabs.dark~#filesView .files-feedback{color:#c7d2fe;border-color:#4338ca;background:#1e1b4b}#tabs.dark~#filesView .files-feedback.success{color:#bbf7d0;border-color:#166534;background:#14532d}#tabs.dark~#filesView .files-feedback.warning{color:#fde68a;border-color:#92400e;background:#451a03}#tabs.dark~#filesView .files-feedback.error{color:#fecdd3;border-color:#9f1239;background:#4c0519}@media(max-width:640px){.files-shell{width:min(100% - 24px,560px);padding-top:24px}.files-header{align-items:flex-start;flex-direction:column;gap:10px}.files-header h1{font-size:36px}#filesList{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.file-preview{height:115px}.file-card-content{padding-left:10px;padding-right:10px}.file-actions{padding-left:7px;padding-right:7px}.file-modal{padding:10px}.file-preview-dialog{max-height:calc(100vh - 20px)}}
