: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:16px}.filesTopbar{justify-content:space-between;padding:12px 16px}.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:16px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.filesSidebar{padding:16px}.sidebarSection{display:flex;flex-direction:column;gap:14px}.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}.filesMainHeader{display:flex;flex-direction:column;gap:16px;margin-bottom:18px}.filesMainHeader h1{font-size:2rem}.filesMainHeader p{margin:0}.filesToolbar{justify-content:space-between;flex-wrap:wrap}.toolbarSearch{min-width:260px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-soft)}.toolbarSearchInput{border:0;padding-left:0;background:transparent;box-shadow:none!important}.toolbarActions{display:flex;gap:8px;flex-wrap:wrap}.filesList{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface)}.filesListHeader,.fileRow{display:grid;grid-template-columns:minmax(0,1fr) 160px 260px;gap:16px;align-items:center;padding:14px 16px}.filesListHeader{background:var(--surface-soft);color:var(--text-muted);font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.fileRow+.fileRow{border-top:1px solid var(--border)}.fileIdentity,.fileCopy{display:flex;align-items:center;gap:12px}.fileCopy{align-items:flex-start;flex-direction:column;gap:6px}.fileIcon{width:38px;height:38px;display:grid;place-items:center;border-radius:var(--radius-sm);flex:0 0 auto}.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}.emptyState{padding:24px;border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--surface-soft)}.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,.filesListHeader,.fileRow{grid-template-columns:1fr}.filesListHeader{display:none}.fileRow{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}.toolbarSearch{min-width:0}.toolbarActions,.toolbarActions .uiButton,.topbarRight .uiButton{width:100%}}
