@font-face{font-family:SYN;src:url(https://cdn.synthenis.com/fonts/syn.woff2) format("woff2");font-display:swap}
:root{--bg:#07090d;--bg2:#0f1319;--panel:rgba(12,15,20,.88);--panel-2:rgba(16,19,25,.72);--panel-3:rgba(255,255,255,.04);--text:#f5f7fb;--text-2:rgba(245,247,251,.72);--text-3:rgba(245,247,251,.48);--border:rgba(255,255,255,.09);--border-2:rgba(255,255,255,.14);--accent:#3e91ff;--accent-soft:rgba(62,145,255,.16);--accent-soft-2:rgba(62,145,255,.24);--success:#10b981;--danger:#ef4444;--shadow:0 24px 80px rgba(0,0,0,.45);--radius:24px;--radius-2:20px;--radius-3:16px;--safe:24px}
body[data-theme=light]{--bg:#edf1f7;--bg2:#f6f8fc;--panel:rgba(255,255,255,.94);--panel-2:rgba(255,255,255,.84);--panel-3:rgba(0,0,0,.03);--text:#111827;--text-2:rgba(17,24,39,.68);--text-3:rgba(17,24,39,.46);--border:rgba(0,0,0,.09);--border-2:rgba(0,0,0,.14);--accent:#0072de;--accent-soft:rgba(0,114,222,.1);--accent-soft-2:rgba(0,114,222,.2);--shadow:0 18px 48px rgba(15,23,42,.12)}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%}
body{font-family:SYN,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at top left,rgba(62,145,255,.15),transparent 22%),linear-gradient(180deg,var(--bg),var(--bg2));color:var(--text);overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button,input,select{border:none;outline:none}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.hidden{display:none!important}
.mobile-only{display:none!important}
.desktop-only{display:inline-flex!important}
.shell{min-height:100vh;display:grid;grid-template-columns:84px 340px minmax(0,1fr);gap:18px;padding:24px}
.rail,.sidebar,.workspace,.modal{background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow)}
.rail,.sidebar,.workspace{backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.rail{border-radius:28px;padding:16px 12px;display:flex;flex-direction:column;align-items:center;gap:18px}
.rail-group{display:flex;flex-direction:column;gap:10px;width:100%;align-items:center}
.rail-bottom{margin-top:auto}
.rail-avatar{width:60px;height:60px;border-radius:20px;background:var(--panel-3);border:1px solid var(--border);padding:2px;transition:border-color .2s,transform .2s}
.rail-avatar:hover,.rail-btn:hover,.ghost:hover,.project-item:hover,.tree-item:hover,.action-card:hover{transform:translateY(-1px);border-color:var(--border-2)}
.rail-avatar img,.profile-card img{width:100%;height:100%;object-fit:cover;border-radius:18px}
.rail-btn,.ghost{height:46px;border-radius:16px;background:var(--panel-3);border:1px solid var(--border);color:var(--text);display:inline-flex;align-items:center;justify-content:center;padding:0 16px;transition:background .2s,border-color .2s,transform .2s}
.rail-btn{width:46px;padding:0}
.icon,.card-icon{position:relative;display:inline-block;width:18px;height:18px}
.card-icon{width:22px;height:22px;color:var(--accent)}
.icon:before,.icon:after,.card-icon:before,.card-icon:after{content:"";position:absolute;inset:0;border:2px solid currentColor;border-radius:4px}
.i-plus:before,.i-plus:after,.i-file:after,.i-cloud:before,.i-cloud:after,.i-spark:before,.i-spark:after,.i-menu:before,.i-menu:after,.i-folder:after,.i-gear:after,.i-user:after{border:none}
.i-plus:before,.i-plus:after{background:currentColor;left:8px;right:8px;top:3px;bottom:3px}
.i-plus:after{top:8px;bottom:8px;left:3px;right:3px}
.i-file:before{border-radius:5px}
.i-file:after{content:"";position:absolute;right:2px;top:2px;width:6px;height:6px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:skew(-12deg)}
.i-folder:before{top:5px;bottom:1px}
.i-folder:after{content:"";position:absolute;left:2px;top:2px;width:9px;height:5px;border-top-left-radius:4px;border-top-right-radius:4px;background:currentColor;opacity:.45}
.i-gear:before{border-radius:50%}
.i-gear:after{content:"";position:absolute;inset:6px;border:2px solid currentColor;border-radius:50%}
.i-user:before{content:"";position:absolute;left:4px;right:4px;top:2px;height:7px;border:2px solid currentColor;border-radius:999px}
.i-user:after{content:"";position:absolute;left:2px;right:2px;bottom:2px;height:8px;border:2px solid currentColor;border-top:none;border-radius:0 0 999px 999px}
.i-menu:before,.i-menu:after{content:"";position:absolute;left:2px;right:2px;height:2px;background:currentColor;border-radius:999px}
.i-menu:before{top:5px;box-shadow:0 5px 0 currentColor,0 10px 0 currentColor}
.i-cloud:before{content:"";position:absolute;left:1px;right:1px;bottom:4px;height:8px;border:2px solid currentColor;border-radius:999px}
.i-cloud:after{content:"";position:absolute;left:5px;top:1px;width:8px;height:8px;border:2px solid currentColor;border-radius:50%;background:transparent;box-shadow:-5px 4px 0 -2px currentColor,5px 4px 0 -2px currentColor}
.i-spark:before{content:"";position:absolute;left:8px;top:1px;bottom:1px;width:2px;background:currentColor;border-radius:999px}
.i-spark:after{content:"";position:absolute;top:8px;left:1px;right:1px;height:2px;background:currentColor;border-radius:999px}
.sidebar{border-radius:28px;padding:18px;display:flex;flex-direction:column;gap:16px;overflow:hidden}
.brand,.section-head,.sync-head,.topbar,.profile-card,.sync-meta,.sync-actions,.topbar-left,.topbar-right,.crumbs,.modal-head,.modal-foot,.section-actions{display:flex;align-items:center}
.brand{gap:14px}
.brand-mark{width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,var(--accent-soft-2),rgba(255,255,255,.04));border:1px solid var(--border);display:grid;place-items:center;font-weight:700;letter-spacing:.06em}
.brand-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.brand-copy strong{font-size:1rem}
.brand-copy span{font-size:.8rem;color:var(--text-2)}
.profile-card,.sync-card,.search-wrap,.project-list,.file-tree,.welcome-view,.editor-view{background:var(--panel-2);border:1px solid var(--border);border-radius:22px}
.profile-card{padding:16px;gap:14px;align-items:flex-start}
.profile-card img{width:64px;height:64px;border-radius:20px;flex:0 0 64px}
.profile-meta{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.profile-meta strong{font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-meta span{font-size:.82rem;color:var(--text-2)}
.sync-card{padding:16px;display:flex;flex-direction:column;gap:10px}
.sync-head{justify-content:space-between;gap:12px}
.status-dot{width:10px;height:10px;border-radius:50%;background:var(--success);box-shadow:0 0 0 6px rgba(16,185,129,.12)}
.sync-card p{font-size:.84rem;color:var(--text-2);line-height:1.5}
.sync-meta{justify-content:space-between;gap:10px;color:var(--text-2);font-size:.8rem;flex-wrap:wrap}
.sync-actions,.modal-foot{gap:10px}
.section-head{justify-content:space-between;gap:12px;margin-top:2px}
.section-head strong{font-size:.88rem;color:var(--text-2)}
.search-wrap{padding:10px 12px}
.search-wrap input,.field,.select{width:100%;height:42px;background:var(--panel-3);border:1px solid var(--border);border-radius:14px;color:var(--text);padding:0 14px}
.select{padding-right:34px}
.workspace{border-radius:32px;display:flex;flex-direction:column;overflow:hidden}
.topbar{justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--border)}
.topbar-right{gap:10px;flex-wrap:wrap}
.crumbs{gap:8px;flex-wrap:wrap}
.crumb-pill{height:36px;padding:0 14px;border-radius:999px;background:var(--panel-3);border:1px solid var(--border);display:inline-flex;align-items:center;color:var(--text-2);max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.welcome-view{margin:18px;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;flex:1;overflow:auto}
.hero-logo{width:128px;height:128px;object-fit:contain;filter:drop-shadow(0 14px 28px rgba(62,145,255,.16))}
.welcome-view h1{font-size:clamp(2rem,4vw,3.1rem);letter-spacing:-.03em}
.welcome-view p{max-width:780px;color:var(--text-2);line-height:1.6}
.action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:min(980px,100%);margin-top:8px}
.action-card{padding:22px;border-radius:24px;background:linear-gradient(180deg,var(--panel-3),transparent);border:1px solid var(--border);text-align:left;color:var(--text);display:flex;flex-direction:column;gap:14px;transition:transform .2s,border-color .2s,background .2s}
.action-card strong{font-size:1.02rem}
.action-card span:last-child{color:var(--text-2);line-height:1.5}
.editor-view{margin:18px;flex:1;display:flex;flex-direction:column;overflow:hidden}
.tabs{display:flex;gap:10px;padding:12px 12px 0;flex-wrap:wrap}
.tab{height:40px;max-width:260px;padding:0 14px;border-radius:14px;background:var(--panel-3);border:1px solid var(--border);display:inline-flex;align-items:center;gap:10px;color:var(--text-2);cursor:pointer}
.tab.active{border-color:var(--accent-soft-2);background:var(--accent-soft);color:var(--text)}
.tab .close-x{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:transparent;color:inherit;border:none;padding:0}
.tab .close-x:before{content:"×";font-size:15px;line-height:1}
.editor-stage{flex:1;min-height:420px;margin:12px;border-radius:20px;overflow:hidden;border:1px solid var(--border);background:rgba(0,0,0,.18)}
.empty-editor{height:100%;display:grid;place-items:center;text-align:center;gap:8px;color:var(--text-2);padding:32px}
.empty-editor strong{display:block;color:var(--text);font-size:1rem}
.btn{height:42px;padding:0 16px;border-radius:14px;background:linear-gradient(180deg,var(--accent),#1c6cd7);color:#fff;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .2s,filter .2s}
.btn:hover{filter:brightness(1.03);transform:translateY(-1px)}
.btn.secondary{background:var(--panel-3);color:var(--text);border-color:var(--border)}
.ghost{background:var(--panel-3)}
.ghost.compact{height:38px;padding:0 12px;font-size:.82rem}
.project-list,.file-tree{padding:8px;overflow:auto}
.project-item,.tree-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;border:1px solid transparent;color:var(--text-2);transition:background .2s,border-color .2s,transform .2s}
.project-item.active,.tree-item.active{background:var(--accent-soft);border-color:var(--accent-soft-2);color:var(--text)}
.project-item-meta{display:flex;flex-direction:column;min-width:0;flex:1}
.project-item-meta strong,.tree-item strong{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-item-meta span,.tree-item span{font-size:.76rem;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-item .item-actions,.tree-item .item-actions{display:flex;gap:6px;opacity:0;transition:opacity .2s}
.project-item:hover .item-actions,.tree-item:hover .item-actions{opacity:1}
.small-btn{width:28px;height:28px;border-radius:10px;background:var(--panel-3);border:1px solid var(--border);color:var(--text-2)}
.small-btn:hover{border-color:var(--border-2);color:var(--text)}
.tree-group{display:flex;flex-direction:column}
.tree-children{padding-left:16px}
.tree-item[data-type=folder]{font-weight:600}
.indent{width:10px;flex:0 0 10px}
.modal-backdrop,.sidebar-scrim{position:fixed;inset:0;background:rgba(0,0,0,.34);backdrop-filter:blur(.1px);-webkit-backdrop-filter:blur(.1px);display:grid;place-items:center;z-index:50}
body[data-theme=light] .modal-backdrop,body[data-theme=light] .sidebar-scrim{background:rgba(255,255,255,.34);backdrop-filter:blur(.1px);-webkit-backdrop-filter:blur(.1px)}
.modal{width:min(560px,calc(100vw - 32px));border-radius:26px;padding:18px;background:var(--panel)}
.modal-head,.modal-foot{justify-content:space-between}
.modal-head{padding-bottom:14px;border-bottom:1px solid var(--border)}
.modal-body{padding:16px 0;display:flex;flex-direction:column;gap:14px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-label{font-size:.84rem;color:var(--text-2);margin-bottom:6px;display:block}
.switch{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:16px;background:var(--panel-3);border:1px solid var(--border)}
.toast-wrap{position:fixed;right:24px;bottom:24px;z-index:60;display:flex;flex-direction:column;gap:10px}
.toast{min-width:240px;max-width:360px;padding:14px 16px;border-radius:16px;background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow);animation:toastIn .25s ease}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.sidebar-collapsed .shell{grid-template-columns:84px 0 minmax(0,1fr)}
.sidebar-collapsed .sidebar{width:0;padding:0;border:none;opacity:0;pointer-events:none}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:999px}
::-webkit-scrollbar-track{background:transparent}
@media (max-width:1180px){.shell{grid-template-columns:84px 300px minmax(0,1fr)}.action-grid{grid-template-columns:1fr}.topbar{padding:18px}.crumb-pill{max-width:180px}}
@media (max-width:980px){body{overflow:auto}.shell{grid-template-columns:84px minmax(0,1fr);padding:16px}.sidebar{position:fixed;left:100px;top:16px;bottom:16px;width:min(360px,calc(100vw - 116px));z-index:45;transform:translateX(-120%);transition:transform .24s ease}.sidebar.open{transform:translateX(0)}.sidebar-scrim{display:none}.sidebar-scrim.show{display:block}.mobile-only{display:inline-flex!important}.desktop-only{display:none!important}.workspace{min-height:calc(100vh - 32px)}}
@media (max-width:720px){.shell{grid-template-columns:minmax(0,1fr);padding:12px}.rail{position:fixed;left:12px;right:12px;bottom:12px;top:auto;height:72px;z-index:48;flex-direction:row;justify-content:space-between;padding:10px 12px;border-radius:24px}.rail-group{flex-direction:row;width:auto}.rail-bottom{margin-top:0}.rail-avatar{width:52px;height:52px}.workspace{padding-bottom:92px;border-radius:24px}.topbar{align-items:flex-start;flex-direction:column}.topbar-right{width:100%}.topbar-right .select,.topbar-right .ghost,.topbar-right .btn{flex:1}.welcome-view{margin:12px;padding:22px}.editor-view{margin:12px}.profile-card{flex-wrap:wrap}}
:root{--icon-filter:brightness(0) invert(1);--profile-menu-width:min(360px,calc(100vw - 24px))}
*{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
input,textarea,select,.monaco-editor,.monaco-editor *,.inputarea,.view-lines,.mtk1,.mtk2,.mtk3,.mtk4,.mtk5,.mtk6,.mtk7,.mtk8,.mtk9{user-select:text;-webkit-user-select:text}
img,button,.btn,.ghost,.rail-btn,.rail-avatar,.action-card,.project-item,.tree-item,.small-btn,.icon,.card-icon{pointer-events:auto;-webkit-user-drag:none}
.brand-mark{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));overflow:hidden;padding:0}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:none!important;pointer-events:none}
.btn:hover,.ghost:hover,.action-card:hover,.project-item:hover,.tree-item:hover,.small-btn:hover,.rail-btn:hover,.rail-avatar:hover,.tab:hover{transform:none!important;translate:none!important}
.btn:hover{filter:brightness(1.02)}
.action-card:hover{border-color:var(--border-2);background:linear-gradient(180deg,var(--panel-3),rgba(255,255,255,.01))}
.icon,.card-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;background-position:center;background-repeat:no-repeat;background-size:18px 18px;color:transparent!important}
.card-icon{background-size:24px 24px}
.icon:before,.icon:after,.card-icon:before,.card-icon:after,.close-x:before{content:none!important;display:none!important}
.i-menu{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/list.svg')}
.i-plus{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/plus.svg')}
.i-file{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/file.svg')}
.i-folder{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/folder.svg')}
.i-gear{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/gear.svg')}
.i-user{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/user.svg')}
.i-cloud{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/cloud.svg')}
.i-spark{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/lightning.svg')}
.i-question{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/info.svg')}
.icon,.card-icon,.small-btn:before,.close-x{filter:var(--icon-filter)}
.small-btn,.close-x{font-size:0;line-height:0;color:transparent!important;position:relative;overflow:hidden}
.small-btn:before,.close-x:after{content:"";position:absolute;inset:0;background-position:center;background-repeat:no-repeat;background-size:16px 16px;filter:var(--icon-filter)}
.small-btn[data-act=sync]:before{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/arrows-clockwise.svg')}
.small-btn[data-act=delete]:before{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/trash.svg')}
.close-x:after{background-image:url('https://cdn.synthenis.com/img/phosphor/SVG/regular/x.svg')}
.rail-avatar img,.profile-card img,.profile-menu-head img{pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.profile-menu{position:fixed;left:24px;top:24px;width:var(--profile-menu-width);padding:16px;border-radius:24px;background:rgba(12,12,12,.88);border:1px solid var(--border);box-shadow:var(--shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);z-index:65;display:flex;flex-direction:column;gap:14px}
body[data-theme=light] .profile-menu{background:rgba(255,255,255,.88)}
.profile-menu-head,.profile-menu-actions{display:flex;align-items:center}
.profile-menu-head{gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.profile-menu-head img{width:48px;height:48px;border-radius:16px;object-fit:cover}
.profile-menu-meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.profile-menu-meta strong,.profile-menu-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-menu-meta span{font-size:.8rem;color:var(--text-2)}
.profile-menu-group{display:flex;flex-direction:column;gap:8px}
.profile-menu-actions{flex-direction:column;align-items:stretch;gap:8px}
.menu-action{width:100%;justify-content:flex-start;gap:10px;height:44px;padding:0 14px;border-radius:16px;border:1px solid var(--border)}
.menu-action .icon{width:18px;height:18px;flex:0 0 18px}
@media (max-width:720px){.profile-menu{left:12px;right:12px;top:auto;bottom:92px;width:auto}.menu-action{height:46px}}

.sync-actions,.topbar-left,.topbar-right,.crumbs,.modal-head,.modal-foot,.section-actions,.profile-card{gap:12px}
.sync-actions,.section-actions,.modal-foot,.topbar-right{flex-wrap:wrap}
.sync-actions .btn,.topbar-right .btn,.topbar-right .ghost{min-width:148px}
.section-actions .ghost,.sync-actions .btn{flex:1 1 calc(50% - 6px)}
.project-item,.tree-item{padding-block:11px;padding-inline:12px}
.project-item .item-actions,.tree-item .item-actions{gap:8px}
.search-wrap{padding:10px 12px}
.search-wrap input{width:100%}
.profile-card{display:flex}
.profile-meta{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}
.profile-card .ghost{margin-left:auto}
.profile-menu{gap:16px}
.profile-menu-actions{gap:10px}
.select,.field{min-height:46px}
@media (max-width:980px){.topbar-right,.sync-actions,.section-actions{width:100%}.topbar-right .btn,.topbar-right .ghost,.sync-actions .btn,.section-actions .ghost{flex:1 1 100%;min-width:0}}
@media (max-width:720px){.profile-card{align-items:center}.profile-card .ghost{margin-left:0;width:100%}.sync-actions .btn,.section-actions .ghost{flex:1 1 100%}}
