:root{color:#e8e8eb;font-synthesis:none;--bg:#111215;--surface:#18191d;--border:#2a2c33;--muted:#9a9da8;--accent:#c6c1fc;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#111215;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px}*{box-sizing:border-box}.wordmark{flex-shrink:0;width:154px;max-width:100%;line-height:0;display:inline-block}.wordmark svg{width:100%;height:auto;display:block}.hero-wordmark{margin-bottom:38px}.hero-wordmark .wordmark{width:clamp(240px,50vw,440px)}.workspace-status{align-items:center;gap:7px;margin-left:auto;display:flex}.workspace-status .save-state{margin-left:0}.workspace-status .icon{font-size:20px}#folder-label{text-overflow:ellipsis;white-space:nowrap;color:#e3dfff;font-size:13px;overflow:hidden}#repo-explorer{border-top:1px solid var(--border);flex-direction:column;min-height:110px;max-height:42%;display:flex}#repo-tree{min-height:0;padding:8px;overflow:auto}#show-repo{border-radius:0;min-height:37px;font-size:13px}#show-repo[aria-expanded=true]{border-top:1px solid var(--border)}.file-row{text-decoration:none;display:flex}.file-row[draggable=true]{cursor:grab}.repo-file{align-items:center;min-width:0;display:flex}.repo-file .file-row{flex:1;min-width:0}.link-file{flex:0 0 27px;width:27px;min-width:27px;font-size:17px}.tree-empty{color:var(--muted);padding:10px;font-size:13px}.folder-picker{border:1px solid var(--border);border-radius:8px;margin:10px 0 20px;overflow:hidden}.folder-location{background:#20232d;align-items:center;gap:9px;padding:8px;display:flex}.folder-location strong{overflow-wrap:anywhere;font-size:14px;font-weight:500}.folder-choices{max-height:190px;padding:6px;overflow:auto}.folder-choices button{background:0 0;border:0;justify-content:flex-start;width:100%;min-height:38px;display:flex}.folder-choices p{padding:10px;font-size:13px}.upload-choices{gap:10px;display:grid}.markdown-preview{color:#e3e4e9;overflow-wrap:anywhere;background:#1b1c22;flex:1;padding:30px;line-height:1.7;overflow:auto}.markdown-preview p,.markdown-preview ul,.markdown-preview ol,.markdown-preview pre,.markdown-preview table,.markdown-preview blockquote{margin:0 0 1em}.markdown-preview h1,.markdown-preview h2,.markdown-preview h3{margin:1em 0 .5em;line-height:1.25}.markdown-preview>:first-child{margin-top:0}.markdown-preview a{color:#c6c1fc}.markdown-preview pre{background:#101116;border-radius:6px;padding:15px;overflow:auto}.markdown-preview code{font-family:ui-monospace,monospace;font-size:.9em}.markdown-preview th,.markdown-preview td{border:1px solid #41434e;padding:6px 10px}.markdown-preview table{border-collapse:collapse;display:block;overflow:auto}.markdown-preview blockquote{color:#bbc0d0;border-left:2px solid #817aab;padding-left:14px}.markdown-image{color:#b9adc9;font-style:italic}body{margin:0}button,input,select{font:inherit}button,.button{border:1px solid var(--border);min-height:34px;color:inherit;cursor:pointer;white-space:nowrap;background:#202127;border-radius:7px;justify-content:center;align-items:center;gap:8px;padding:6px 12px;text-decoration:none;transition:background .12s,border-color .12s;display:inline-flex}button:hover,.button:hover{background:#2b2d34;border-color:#444752}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{color:#211d38;background:#d7d2ff;border-color:#d7d2ff;font-weight:600}.primary:hover{background:#e4e0ff;border-color:#e4e0ff}.quiet{color:#afb2bd;background:0 0;border-color:#0000}.quiet:hover{background:#24262d;border-color:#0000}.icon{background:0 0;border-color:#0000;width:32px;min-width:32px;padding:3px;font-size:21px}.wide{width:100%}a{color:inherit}h1,h2,p{margin:0}h1{letter-spacing:-.8px;font-size:30px;font-weight:550}h2{letter-spacing:-.3px;font-size:19px;font-weight:550}.muted,.hint{color:var(--muted)}.hint{margin:10px 0 20px;font-size:13px;line-height:1.6}.actions{align-items:center;gap:8px;display:flex}.brand{letter-spacing:-.5px;align-items:center;gap:10px;font-size:17px;font-weight:600;text-decoration:none;display:flex}.mark{color:#eee;font-family:Georgia,serif;font-size:26px;line-height:1}.mark span{color:#bdb5fa;margin-left:-5px}.home-header{border-bottom:1px solid #ffffff07;justify-content:space-between;align-items:center;height:80px;padding:0 42px;display:flex}.account{color:var(--muted);align-items:center;gap:18px;font-size:13px;display:flex}.home{max-width:1000px;margin:78px auto;padding:0 32px}.page-heading{justify-content:space-between;align-items:center;gap:25px;margin-bottom:30px;display:flex}.project-list{border-top:1px solid var(--border);flex-direction:column;display:flex}.project-card{text-align:left;border:0;border-bottom:1px solid var(--border);background:0 0;border-radius:0;justify-content:flex-start;gap:18px;min-height:78px;padding:18px 12px}.project-card strong{white-space:normal;overflow-wrap:anywhere;font-size:16px;font-weight:500;display:block}.project-card small{color:var(--muted);margin-top:7px;font-size:12px;display:block}.project-info{min-width:0}.project-updated{text-align:right;color:var(--muted);white-space:normal;max-width:220px;margin-left:auto;font-size:12px}.project-card .arrow{margin-left:0}.arrow{color:#7f8291;margin-left:auto}.empty-projects{flex-direction:column;grid-column:1/-1;align-items:center;gap:22px;padding:90px 20px;display:flex}.empty-symbol{color:#777389;font-size:40px;font-weight:200}.empty-projects h2{color:#b8bac2;font-weight:400}.landing{flex-direction:column;min-height:100dvh;padding:36px 42px;display:flex}.landing-main{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:24px 0 clamp(80px,20vh,180px);display:flex}.landing h1{letter-spacing:-1.6px;text-wrap:balance;max-width:1000px;font-size:40px;line-height:1.15}.landing p{text-wrap:balance;color:#a9acb6;max-width:560px;margin:16px 0 35px;font-size:17px;line-height:1.6}.connect-button{min-height:46px;padding:13px 23px}.landing .signin-note{margin:18px 0 0;font-size:14px}.landing footer{color:#7f828d;text-align:center;font-size:12px}.loading-screen{height:100dvh;color:var(--muted);justify-content:center;align-items:center;gap:14px;display:flex}.session-error{text-align:center;padding:24px}.session-error p{margin-bottom:16px}.spinner{border:2px solid #3b3b46;border-top-color:#c5bef0;border-radius:50%;flex:none;width:18px;height:18px;animation:1s linear infinite spin}button[aria-busy=true]:disabled{opacity:1}button .spinner{border-color:currentColor #0000 currentColor currentColor;width:15px;height:15px}@keyframes spin{to{transform:rotate(360deg)}}.workspace-header{border-bottom:1px solid var(--border);background:#17181c;align-items:center;gap:13px;height:62px;padding:0 18px;display:flex}.project-title{align-items:baseline;gap:10px;min-width:0;display:flex}.project-title strong{text-overflow:ellipsis;white-space:nowrap;max-width:240px;font-weight:550;overflow:hidden}.project-title>span{color:var(--muted);font-size:12px}.save-state{color:#9095a2;white-space:nowrap;margin-left:auto;font-size:12px}.save-state.changed{color:#ccbda2}.workspace-header .actions{margin-left:10px}kbd{opacity:.65;margin-left:6px;font-family:inherit;font-size:10px}.workspace{grid-template-columns:205px minmax(0,1fr) minmax(0,1fr);height:calc(100dvh - 62px);display:grid;overflow:hidden}.file-pane{border-right:1px solid var(--border);background:#15161a;flex-direction:column;min-height:0;display:flex}.pane-bar{border-bottom:1px solid var(--border);color:#b8bbc6;justify-content:space-between;align-items:center;gap:10px;min-height:43px;padding:0 14px;font-size:12px;display:flex}.file-pane .pane-bar{padding-right:6px}.pane-bar .icon{width:27px;min-width:27px;height:28px;min-height:28px;font-size:19px}.pane-bar .actions{gap:0}#filename{text-overflow:ellipsis;min-width:0;color:inherit;padding:2px 5px;display:block;overflow:hidden}#filename:disabled{opacity:1}.file-action-list{gap:10px;display:grid}.file-action-list button{justify-content:flex-start}.dialog-actions{justify-content:flex-end;gap:10px;display:flex}button.danger{color:#f2a8b5;border-color:#72434e}.inline-error{color:#f2a8b5;line-height:1.5}#extension-hint{text-align:center;max-width:340px;color:var(--muted);margin:auto;padding:28px;line-height:1.6}#file-tree{flex:1;padding:12px 7px;overflow:auto}.file-row{text-align:left;width:100%;padding:7px 8px 7px calc(8px + min(var(--depth), 3) * 10px);color:#a8acb9;background:0 0;border:0;border-radius:5px;justify-content:flex-start;gap:8px;min-height:32px;font-size:12px;overflow:hidden}.file-row>span:nth-child(2){text-overflow:ellipsis;overflow:hidden}.file-row:hover{background:#22242c}.file-row.selected{color:#e0dbff;background:#2a2839}.file-type{color:#838398;min-width:12px;font-size:11px}.main-dot{color:#c1b4f5;margin-left:auto}.folder-label{color:#818695;overflow-wrap:anywhere;padding:13px 8px 5px;font-size:11px}.file-bottom{border-top:1px solid var(--border);gap:2px;padding:8px;display:grid}.file-bottom>button,.file-bottom>.button{color:#969baa;background:0 0;border:0;justify-content:flex-start;min-height:30px;padding-left:10px;font-size:12px}.file-bottom>button:hover,.file-bottom>.button:hover{color:#ddd;background:#24262d}.source-pane{border-right:1px solid var(--border);background:#1b1c22;flex-direction:column;min-width:0;min-height:0;display:flex}.source-pane>.pane-bar{background:#1a1b20}#filename{text-overflow:ellipsis;white-space:nowrap;color:#cbd0dc;overflow:hidden}#tags[aria-pressed=true]{color:#d2c6ff;background:#353045}#editor{flex:1;min-height:0;overflow:hidden}.cm-editor{height:100%;font-size:13px;background:#1b1c22!important}.cm-scroller{line-height:1.7;overflow:auto;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace!important}.cm-gutters{color:#5d6272!important;background:#1b1c22!important;border-right:0!important}.cm-content{padding:16px 0}.cm-line{padding-left:15px!important;padding-right:22px!important}.cm-activeLine,.cm-activeLineGutter{background:#ffffff03!important}.cm-editor.cm-focused{outline:none}.agent-passage{background:#aa8fff1f;border-bottom:1px solid #aa8fff33}.pane-footer{border-top:1px solid var(--border);color:#9398a7;justify-content:space-between;align-items:center;gap:10px;min-height:37px;padding:4px 12px;font-size:11px;display:flex}.pane-footer button{min-height:26px;padding:2px 7px;font-size:11px}.pdf-pane{background:#202127;flex-direction:column;min-width:0;min-height:0;display:flex}.pdf-pane>.pane-bar{background:#1a1b20}#freshness{margin-left:8px;font-size:10px}.current{color:#9ebaab}.pagination{align-items:center;gap:5px;font-size:11px;display:flex}.pagination button{min-height:26px;padding:2px 5px}.pagination #download{color:#c6b9f5;min-height:30px;padding:4px 8px;font-size:12px}.pagination input{text-align:center;color:#d3d5de;-moz-appearance:textfield;background:#22242b;border:1px solid #333641;border-radius:4px;width:37px;padding:3px;font-size:11px}.pagination input::-webkit-inner-spin-button{display:none}#pdf-region{flex:1;min-height:0;position:relative}#pdf-scroll{overscroll-behavior:contain;position:absolute;inset:0;overflow:auto}#pdf-pages{padding:16px 0}#pdf-pages .page{box-shadow:0 8px 35px #0003}#pdf-empty{color:#898c98;flex-direction:column;justify-content:center;align-items:center;gap:20px;height:100%;font-size:14px;display:flex}.paper-glyph{color:#757381;font:52px Georgia,serif}#pdf-empty .primary{font-size:12px}#file-preview{text-align:center;flex:1;min-height:0;padding:30px;overflow:auto}#file-preview img{object-fit:contain;max-width:100%;max-height:100%}#file-preview p{margin:20px}.build-state{color:#d8d1ed;text-align:left;background:#292738;border-bottom:1px solid #444055;padding:14px 18px;font-size:13px}.build-state progress{accent-color:#c6b9f5;width:100%;height:4px;margin-top:12px;display:block}.build-state.failed{color:#f3c6cb;background:#39282c;border-color:#69424c}#build-error{white-space:pre-wrap;overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:10px 0;font:12px/1.6 SFMono-Regular,Consolas,monospace;display:-webkit-box;overflow:hidden}#build-fix{border:1px solid #444055;border-radius:6px;margin:10px 0;overflow:hidden}#build-fix .prompt-terminal-bar{padding:6px 8px}#build-fix summary{cursor:pointer;padding:7px 10px;font-size:12px}#build-fix textarea{height:140px;font-size:12px}#error-log{background:#483039;border-color:#724951;font-size:12px}.mobile-tabs{display:none}input,select{color:#e8e8ed;background:#17181d;border:1px solid #41434e;border-radius:6px;min-width:0;padding:11px 12px}option{color:#eee;background:#1d1e24}.field{color:#afb3c0;gap:9px;margin:20px 0;font-size:13px;display:grid}.field input,.field select{width:100%;font-size:14px}.field input::placeholder{color:#6d7281}#settings-form select,#connect-form select{border:2px solid #606473;min-height:44px}dialog{color:#e4e5eb;background:#1b1c21;border:1px solid #3a3c46;border-radius:12px;width:min(480px,100vw - 32px);max-height:85dvh;padding:26px;overflow:auto;box-shadow:0 24px 100px #0008}dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#07080bb0}.prompts-dialog{width:min(720px,100vw - 24px);padding:22px}.prompts-dialog .dialog-title{margin-bottom:8px}.prompt-tasks{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:4px 16px;margin-bottom:16px;display:flex}.prompt-tasks button{border-width:0 0 2px;border-radius:0;min-height:42px;padding:8px 0;font-size:14px}.prompt-tasks button[aria-pressed=true]{color:#e7e1ff;border-bottom-color:var(--accent)}.prompt-text{resize:none;color:#bfc1cb;background:0 0;border:0;width:100%;height:clamp(150px,35dvh,300px);padding:0 6px 0 0;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;display:block}.prompt-text:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.prompt-footer{justify-content:space-between;align-items:center;gap:16px;margin:14px 0;display:flex}.prompt-destination{color:#a8acb8;font-size:13px;line-height:1.5}.prompt-copy{flex-shrink:0;min-height:42px}.prompts-dialog .prompt-copy-status{padding:10px 0 0;font-size:13px}@media (width<=520px){.prompt-tasks{gap:0;display:grid}.prompt-tasks button{justify-content:flex-start}.prompt-footer{gap:10px}}.prompt-terminal{color:#eef0f5;background:#151a25}.prompt-terminal-bar{color:#c9cedb;border-bottom:1px solid #353b4c;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px 6px 15px;font-size:13px;display:flex}.prompt-terminal-bar button{color:#fff;background:#2a3042;border-color:#4a5166;min-height:44px}.prompt-terminal textarea{resize:vertical;width:100%;height:min(290px,35dvh);min-height:140px;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;background:0 0;border:0;border-radius:0;padding:15px;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;display:block}.prompt-terminal textarea:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.prompt-copy-status{color:#d0c8ff;padding:0 15px 12px;font-size:14px;line-height:1.5}.prompt-copy-status:empty{display:none}.prompt-draft{color:#e3c995;margin-bottom:15px;line-height:1.5}.dialog-title{justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;display:flex}.dialog-title .icon{color:#9a9ca7}.error{color:#f2a9b4;margin-top:15px;font-size:13px;line-height:1.5}.error:empty{display:none}.repo-list{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:min(350px,50dvh);margin-bottom:16px;overflow:auto}.connected-projects{border-top:1px solid var(--border);margin-top:12px}.connected-projects summary{cursor:pointer;color:var(--muted);padding:14px 5px;font-size:13px}.connected-projects summary span{margin-left:6px}.repo-row{background:0 0;border:0;border-bottom:1px solid #2e3038;border-radius:0;justify-content:space-between;width:100%;padding:15px 5px;font-size:13px}.repo-row span:first-child{text-overflow:ellipsis;overflow:hidden}.build-log{white-space:pre-wrap;overflow-wrap:anywhere;color:#c4c8d4;max-height:55dvh;font:11px/1.6 SFMono-Regular,Consolas,monospace;overflow:auto}.conflicts{max-height:45dvh;overflow:auto}#toast{color:#ecebf7;z-index:100;background:#30313b;border:1px solid #515361;border-radius:9px;max-width:min(600px,90vw);padding:13px 18px;font-size:13px;line-height:1.5;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0006}[hidden]{display:none!important}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#55586688;border-radius:9px}::-webkit-scrollbar-track{background:0 0}@media (width<=1100px){.workspace{grid-template-columns:170px minmax(0,1fr) minmax(0,1fr)}.project-title>span{display:none}.workspace-header{gap:7px;padding:0 10px}.workspace-header .actions{gap:5px}.save-state{font-size:10px}.workspace-header kbd{display:none}}@media (width<=760px){.home-header{height:65px;padding:0 20px}.home{margin:42px auto;padding:0 20px}.page-heading{flex-direction:column;align-items:flex-start;gap:20px}.page-heading .actions{width:100%}.page-heading .actions>button{flex:1}.project-list{grid-template-columns:1fr}.account{gap:6px}.account>span{text-overflow:ellipsis;max-width:115px;overflow:hidden}.landing{padding:25px}.landing h1{letter-spacing:-1px;font-size:30px}.workspace-header{grid-template-rows:30px 44px;grid-template-columns:28px minmax(0,1fr) 32px;gap:5px 10px;height:100px;padding:8px 10px;display:grid}.project-title strong{max-width:100%;font-size:14px}.save-state{display:none}.workspace-header .actions{grid-column:1/-1;justify-content:flex-end;margin-left:0}.workspace-header .actions button{min-height:40px;padding:6px 10px;font-size:14px}#refresh{display:none}.workspace-header .icon{width:25px;min-width:25px}.mobile-tabs{border-bottom:1px solid var(--border);background:#18191f;gap:6px;height:40px;padding:4px 8px;display:flex}.mobile-tabs button{color:#999eb0;background:0 0;border:0;flex:1;min-height:30px;font-size:12px}.mobile-tabs button[aria-pressed=true]{color:#dad2fc;background:#2c293c}.workspace{height:calc(100dvh - 140px);display:block;position:relative}.file-pane{z-index:8;width:240px;height:100%;display:none;position:absolute;box-shadow:15px 0 40px #0005}.show-files .file-pane{display:flex}.source-pane,.pdf-pane{border:0;height:100%}.pdf-pane,.show-pdf .source-pane{display:none}.show-pdf .pdf-pane{display:flex}.cm-editor{font-size:12px}.pane-bar{min-height:40px}.project-card{min-height:95px}dialog{padding:22px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation:none}}:is(#file-tree,#repo-tree) summary{color:#aaaebb;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:5px;padding:8px 6px;font-size:12px}:is(#file-tree,#repo-tree) summary:hover{background:#24252c}:is(#file-tree,#repo-tree) summary::marker{color:#797d8c}#mobile-refresh{display:none}@media (width<=760px){#mobile-refresh{display:inline-flex}}.project-rename{margin-top:12px}.prompt-preview summary{color:var(--muted);cursor:pointer;padding:8px 0;font-size:13px}.prompt-preview[open] summary{margin-bottom:10px}.synctex-glow{pointer-events:none;z-index:10;background:#9c7eff24;border-radius:4px;position:absolute;box-shadow:0 0 15px 5px #9470ff55}.cm-lineNumbers .cm-gutterElement{cursor:pointer}.setup-steps{padding-left:22px}.setup-steps li{margin:18px 0;padding-left:4px}
