:root{--bg: #eef1f5;--bg-strong: #e5ebf3;--surface: #ffffff;--surface-soft: #f7f9fc;--surface-muted: #f2f5f9;--text: #162033;--text-muted: #66768c;--border: #d7dee9;--border-strong: #c1cbdb;--accent: #2156d8;--accent-soft: #dfe8ff;--green-soft: #def4e6;--orange-soft: #ffe8d7;--violet-soft: #ece4ff;--slate-soft: #e8edf3;--danger: #d83f4f;--shadow: 0 18px 45px rgba(15, 23, 42, .08);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 20px}html,body,#root{min-height:100%;margin:0}body{background:linear-gradient(180deg,rgba(33,86,216,.06),transparent 30%),linear-gradient(180deg,#f7f9fc 0%,var(--bg) 100%);color:var(--text);font-family:IBM Plex Sans,Segoe UI,sans-serif}*{box-sizing:border-box}button,input,select,textarea{font:inherit}button{cursor:pointer}.brandBadge,.panelKicker{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.brandBadge{padding:9px 12px;border-radius:var(--radius-sm);background:var(--accent);color:#fff}.panelKicker{color:var(--text-muted)}.authLayout{min-height:100vh;display:grid;grid-template-columns:1.15fr minmax(320px,420px);gap:24px;align-items:stretch;padding:24px}.authBrandPanel,.authFormPanel,.filesSidebar,.filesMain,.sessionPill,.contextPill{border:1px solid var(--border);background:#ffffffe0;box-shadow:var(--shadow)}.authBrandPanel,.authFormPanel,.filesSidebar,.filesMain{border-radius:var(--radius-xl)}.authBrandPanel{padding:28px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(140deg,#2156d814,#fffffff0 44%),repeating-linear-gradient(90deg,rgba(22,32,51,.03),rgba(22,32,51,.03) 1px,transparent 1px,transparent 18px),var(--surface)}.authBrandPanel h1,.authFormPanel h2,.filesMainHeader h1{margin:14px 0 10px;font-size:clamp(2rem,4vw,3.5rem);line-height:1.05}.authBrandPanel p,.authFormPanel p,.filesMainHeader p,.fieldHelp,.editorHeaderCopy span,.fileMeta,.metaRow,.emptyState{color:var(--text-muted)}.authFormPanel{padding:28px;align-self:center}.stack16{display:flex;flex-direction:column;gap:16px}.fieldShell{display:flex;flex-direction:column;gap:8px}.fieldLabel{font-size:.92rem;font-weight:600}.fieldHelp{font-size:.85rem}.uiInput,.uiSelect,.uiTextarea{width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius-sm);padding:11px 13px;transition:border-color .14s ease,box-shadow .14s ease}.uiInput:focus,.uiSelect:focus,.uiTextarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #2156d81f}.uiTextarea{min-height:160px;resize:vertical}.uiButton{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--radius-sm);border:1px solid transparent;padding:0 14px;font-size:.95rem;font-weight:600;white-space:nowrap;transition:background .14s ease,border-color .14s ease,color .14s ease}.uiButton svg{flex:0 0 auto}.uiButton-primary{background:var(--accent);color:#fff}.uiButton-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.uiButton-ghost{background:transparent;border-color:var(--border);color:var(--text)}.uiButton-danger{background:#fff3f5;border-color:#f1c8d0;color:var(--danger)}.uiButton:disabled{opacity:.55;cursor:not-allowed}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modalBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a47;display:grid;place-items:center;padding:24px;z-index:40}.modalCard{width:min(100%,460px);max-height:calc(100vh - 48px);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 30px 80px #0f172a2e}.modalHeader,.filesTopbar,.sidebarSectionHeader,.filesToolbar,.editorHeader,.topbarLeft,.topbarRight,.editorHeaderMain,.editorHeaderActions,.fileActions{display:flex;align-items:center;gap:12px}.presenceChips{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.presenceChip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 12px;border:1px solid rgba(148,163,184,.24);border-radius:999px;background:linear-gradient(135deg,#f8fafcc7,#ecf2ff8f);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 1px #ffffffb3;color:#30405f;font-size:.8rem;font-weight:600;white-space:nowrap}.modalHeader{justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border)}.modalHeader h2{margin:0;font-size:1.1rem}.modalBody{padding:20px}.choiceGroup{display:grid;gap:10px;margin:0;padding:14px;border:1px solid var(--border);border-radius:var(--radius-md)}.choiceGroup legend{padding:0 6px;color:var(--text-muted);font-size:.9rem}.choiceGroup label{display:flex;align-items:center;gap:10px}.toastStack{position:fixed;right:16px;bottom:16px;z-index:60;display:flex;flex-direction:column;gap:10px}.toastItem{min-width:240px;max-width:360px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow)}.toastItem-success{border-color:#c8ead3}.toastItem-error{border-color:#f3c7cf}.filesLayout,.editorShell{min-height:100vh;padding:12px}.filesTopbar{justify-content:space-between;padding:10px 14px;border-radius:14px;background:linear-gradient(180deg,#fffffff0,#f7faffe6)}.topbarLeft,.topbarRight,.editorHeaderMain{min-width:0}.contextPill,.sessionPill,.editorHint{padding:8px 12px;border-radius:var(--radius-sm);background:var(--surface);color:var(--text-muted)}.filesWorkspace{margin-top:12px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:0;align-items:start;border:1px solid var(--border);border-radius:18px;background:#ffffffe0;box-shadow:var(--shadow);overflow:hidden;min-height:calc(100vh - 108px)}.filesSidebar{padding:14px 12px;min-height:100%;border:0;border-right:1px solid var(--border);border-radius:0;box-shadow:none;background:linear-gradient(180deg,#f3f7fdeb,#ecf2fadb),var(--surface-soft)}.sidebarSection{display:flex;flex-direction:column;gap:14px}.sidebarSectionCopy{display:flex;flex-direction:column;gap:2px}.sidebarEyebrow{color:var(--text-muted);font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.sidebarSectionHeader{justify-content:space-between}.sidebarList{display:flex;flex-direction:column;gap:4px}.sidebarItem{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);padding:10px 12px;border-radius:var(--radius-sm);text-align:left}.sidebarItem:hover,.sidebarItem.is-active{background:var(--accent-soft);color:var(--accent)}.filesMain{padding:18px 18px 22px;position:relative;border-radius:0;min-width:0;min-height:100%;border:0;box-shadow:none;background:linear-gradient(180deg,#fffffff5,#f9fbfff0),var(--surface)}.filesWorkspace.is-dropping .filesSidebar,.filesWorkspace.is-dropping .filesMain{background:linear-gradient(180deg,#ebf2ffeb,#f5f9fff5),var(--surface)}.filesMainHeader{display:flex;flex-direction:column;gap:16px;margin-bottom:18px}.mainHeaderCopy{display:flex;flex-direction:column;gap:6px}.filesMainHeader h1{font-size:2rem}.filesMainHeader p{margin:0}.filesToolbar{justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(180deg,#f6f9fde0,#fffffff2)}.toolbarSearch{min-width:280px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:#fff}.toolbarSearchInput{border:0;padding-left:0;background:transparent;box-shadow:none!important}.toolbarActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.explorerList{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface)}.explorerCanvas{display:flex;flex-direction:column;gap:18px;min-height:0}.explorerSection{display:flex;flex-direction:column;gap:10px}.explorerSectionTitle{padding:0 2px;color:#40506c;font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.explorerList-compact .explorerListHeader,.explorerList-compact .explorerRow{grid-template-columns:minmax(0,1.2fr) 130px 160px 228px;gap:10px}.explorerListHeader,.explorerRow{display:grid;grid-template-columns:minmax(0,1.25fr) 140px 180px 260px;gap:14px;align-items:center;padding:14px 16px}.explorerListHeader{background:var(--surface-soft);color:var(--text-muted);font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.explorerRow+.explorerRow{border-top:1px solid var(--border)}.explorerRow{transition:background-color .15s ease,border-color .15s ease}.explorerRow:hover{background:#f8fbff}.explorerRow.is-selected{background:#dfe8ffc7}.explorerGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;align-content:start;padding-bottom:4px}.explorerTile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;min-height:128px;padding:12px 10px;border:0;border-radius:14px;background:transparent;cursor:pointer}.explorerTile:hover{background:#f4f7ffe0}.explorerTile.is-selected{background:#dfe8ffb8}.explorerTileBody{display:flex;align-items:flex-start;gap:12px;min-width:0;grid-column:2 / 3}.explorerTileHeader{display:flex;align-items:flex-start;justify-content:center;min-height:26px}.explorerTile .fileCopy strong{font-size:.96rem}.explorerTileName{display:flex;flex-direction:column;gap:4px;min-width:0;align-items:center;margin-top:auto}.explorerTileName strong{font-size:.96rem;line-height:1.25;word-break:break-word;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.explorerIdentity,.fileIdentity,.fileCopy{display:flex;align-items:center;gap:12px}.fileCopy{align-items:flex-start;flex-direction:column;gap:4px}.fileIcon{width:38px;height:38px;display:grid;place-items:center;border-radius:var(--radius-sm);flex:0 0 auto}.fileIcon-tile{width:54px;height:54px;border-radius:16px}.fileMeta{color:var(--text-muted);font-size:.92rem}.fileMeta-compact{font-size:.84rem}.fileActions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.explorerList-compact .fileActions .uiButton{padding:0 10px;height:34px}.explorerList-compact .fileActions .uiButton span{font-size:.82rem}.explorerList .uiButton{white-space:nowrap}.tone-blue{background:var(--accent-soft);color:var(--accent)}.tone-green{background:var(--green-soft);color:#21724b}.tone-orange{background:var(--orange-soft);color:#b5581b}.tone-violet{background:var(--violet-soft);color:#6e43c5}.tone-slate{background:var(--slate-soft);color:#516172}.toneTag{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:.76rem;font-weight:600}.extTag{display:inline-flex;align-items:center;color:var(--text-muted);font-size:.8rem;font-weight:600;letter-spacing:.01em;text-transform:lowercase}.emptyState{padding:24px;border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--surface-soft)}.treeBranch{display:flex;flex-direction:column;gap:4px}.treeList{display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 230px);overflow:auto}.treeItem{width:100%;display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;color:var(--text);padding:9px 12px;border-radius:10px;text-align:left;cursor:pointer}.treeItem:hover,.treeItem.is-active{background:var(--accent-soft);color:var(--accent);border-color:#355bdc1f}.breadcrumbTrail{display:flex;flex-wrap:wrap;gap:6px;color:var(--text-muted);font-size:.92rem;margin-bottom:2px}.breadcrumbTrail button{border:0;background:transparent;color:inherit;padding:0;cursor:pointer}.breadcrumbTrail button:after{content:">";margin-left:6px;color:var(--border-strong)}.breadcrumbTrail button:last-child:after{content:""}.selectionPill{display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:.8rem}.statusBar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.statusBar{justify-content:flex-end;margin-top:16px;padding:10px 14px;border-top:1px solid var(--border);color:var(--text-muted);font-size:.86rem}.contextMenuBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40}.contextMenu{position:fixed;z-index:41;min-width:220px;padding:8px;border:1px solid var(--border);border-radius:14px;background:#fffffff5;box-shadow:0 22px 42px #0f172a26;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.contextMenuItem{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);padding:10px 12px;border-radius:10px;text-align:left}.contextMenuItem:hover{background:var(--surface-soft)}.contextMenuItem.danger{color:#c0392b}.contextMenuIcon{display:inline-flex;color:inherit}.uploadDropOverlay{position:fixed;top:16px;right:16px;bottom:16px;left:16px;display:grid;place-items:center;z-index:30;border:2px dashed rgba(53,91,220,.35);border-radius:24px;background:#ebf2ffbd;color:var(--accent);font-weight:700;letter-spacing:.01em;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.publicLayout .filesWorkspace{grid-template-columns:300px minmax(0,1fr)}.publicSidebar{position:sticky;top:16px}.publicMain{min-width:0}.viewToggle{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--border);border-radius:999px;background:#fff}.viewToggleButton{min-width:0}.viewToggleButton.uiButton{height:32px;padding:0 12px}.editorShell{display:flex;flex-direction:column;min-height:100vh}.editorShell-immersive{padding:4px}.editorHeader{justify-content:space-between;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-md);background:#ffffffeb;box-shadow:0 10px 28px #0f172a0f}.editorHeader-immersive{padding:4px 8px;background:#ffffffc7;border-color:#c1cbdbb3;box-shadow:none}.editorHeaderCopy{min-width:0;display:flex;flex-direction:column;gap:2px}.editorHeaderCopy strong{font-size:.98rem;font-weight:600}.editorHeader-immersive .editorHeaderCopy strong{font-size:.88rem}.editorHeader-immersive .editorHeaderCopy span,.editorHeader-immersive .editorHint{font-size:.72rem}.editorBody{margin-top:8px;min-height:calc(100vh - 86px);flex:1}.editorShell-immersive .editorBody{margin-top:6px;min-height:calc(100vh - 58px)}.splitWorkspace,.embeddedPanel{min-height:calc(100vh - 102px);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:#fff}.splitWorkspace{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(320px,1.05fr)}.editorShell-immersive .embeddedPanel{min-height:calc(100vh - 62px);height:calc(100vh - 62px);border-radius:10px;border-color:#c1cbdba6}.codePane,.previewPane,.embeddedFrame,.onlyOfficeFrame{width:100%;min-height:calc(100vh - 102px)}.embeddedPanel .onlyOfficeFrame{height:100%}.editorShell-immersive .embeddedFrame,.editorShell-immersive .onlyOfficeFrame{min-height:calc(100vh - 62px);height:calc(100vh - 62px)}.editorHeader-immersive .uiButton{height:32px;padding:0 10px;font-size:.82rem}.codePane{border:0;border-right:1px solid var(--border);padding:18px;resize:none;background:linear-gradient(180deg,#f9fbff,#fff);color:#122031;font-family:IBM Plex Mono,JetBrains Mono,monospace;font-size:.92rem;line-height:1.6}.previewPane{overflow:auto;background:#fff}.markdownPreview{padding:24px 28px}.markdownPreview h1,.markdownPreview h2,.markdownPreview h3{margin-top:0}.markdownPreview p,.markdownPreview li{line-height:1.75}.erCanvas{display:flex;flex-wrap:wrap;gap:12px;align-content:flex-start;padding:18px;min-height:100%;background:linear-gradient(180deg,#f7f9fc,#eef2f7)}.erCard{min-width:240px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff}.erCard strong{display:block;margin-bottom:8px}.erColumn{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-top:1px solid #edf1f5}.erColumn em{color:var(--text-muted);font-style:normal}.embeddedFrame,.onlyOfficeFrame{border:0;background:#fff}.metaRow{display:flex;align-items:center;gap:10px}.noLabel{min-height:calc(100vh - 110px)}@media(max-width:1120px){.filesWorkspace,.authLayout,.splitWorkspace,.explorerListHeader,.explorerRow,.publicLayout .filesWorkspace{grid-template-columns:1fr}.explorerListHeader{display:none}.explorerRow{gap:10px}.fileActions{flex-wrap:wrap}}@media(max-width:760px){.authLayout,.filesLayout,.editorShell{padding:12px}.editorShell-immersive{padding:6px}.filesTopbar,.filesToolbar,.editorHeader,.topbarLeft,.topbarRight,.editorHeaderMain,.editorHeaderActions{flex-direction:column;align-items:stretch}.breadcrumbTrail{gap:4px 8px}.statusBar{flex-direction:column;align-items:stretch}.toolbarSearch{min-width:0}.toolbarActions,.toolbarActions .uiButton,.topbarRight .uiButton{width:100%}}
