.billing-page{width:min(100%,1000px);margin:0 auto;padding:clamp(16px,3vw,40px)}.billing-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.billing-balances{display:grid;grid-template-columns:1fr;grid-gap:18px;gap:18px}.billing-balances dt{opacity:.7;font-size:.85rem}.billing-balances dd{margin:4px 0 0;font-size:1.15rem;font-weight:600;overflow-wrap:anywhere}.billing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px}.billing-plan{display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);padding:16px;border-radius:16px}.billing-plan strong{font-size:1.8rem}.billing-history{list-style:none;padding:0}.billing-history li{padding:12px 0;border-bottom:1px solid var(--line)}.billing-history small{display:block;opacity:.7;overflow-wrap:anywhere}.billing .muted{font-size:.875rem}@media (max-width:600px){.billing-plans{grid-template-columns:1fr}}.billing-current-plan{display:flex;align-items:center;gap:8px}.billing-plan-menu{position:relative}.billing-period{display:flex;flex-wrap:wrap;gap:12px}.billing-period label{display:grid;grid-gap:6px;gap:6px}.billing-chart{overflow-x:auto}.billing-columns{display:flex;height:210px;gap:3px;min-width:280px;padding:0 12px}.billing-column{flex:1 1;min-width:0;display:flex;flex-direction:column}.billing-column-stack{height:180px;display:flex;flex-direction:column-reverse;justify-content:flex-start;border-bottom:1px solid var(--line)}.billing-column-stack span{display:block;flex-shrink:0}.billing-column small{height:24px;padding-top:6px;font-size:10px;white-space:nowrap;text-align:center}.billing-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px}.billing-legend span{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}.billing-legend i{width:10px;height:10px;border-radius:2px;flex-shrink:0}.billing-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:32px;gap:32px}.billing-topup input[type=number]{-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.billing-topup input::-webkit-inner-spin-button,.billing-topup input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.billing-section{border-top:1px solid var(--line);padding-top:20px}.billing-history-dialog{width:min(560px,calc(100vw - 32px));max-height:75vh;overflow-y:auto;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 10px 35px #0002}.billing-history-dialog::-webkit-backdrop{background:#0005}.billing-history-dialog::backdrop{background:#0005}.billing-tooltip{position:fixed;z-index:20;width:280px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:16px;border:1px solid #e3e3e3;border-radius:8px;background:white;color:#222;box-shadow:0 10px 35px #0002;pointer-events:none;font-size:14px}.billing-tooltip>div{display:flex;align-items:center;gap:8px;margin-top:12px}.billing-tooltip>div strong{margin-left:auto}.billing-tooltip i{width:10px;height:10px;border-radius:2px;flex-shrink:0}@media (max-width:600px){.billing-overview{grid-template-columns:1fr;gap:20px}}.billing{grid-template-columns:minmax(0,1fr)}.billing-overview>*,.billing>*{min-width:0}.billing-history li{overflow-wrap:anywhere}.workspace-app .settings-content .billing{padding:0}.home-page{overflow:auto;padding:32px 36px 48px;flex:1 1}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.home-heading h1{margin:4px 0 8px}.home-heading p{color:var(--muted);margin:0}.home-create{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:10px;background:var(--primary-bg);color:var(--primary-fg);text-decoration:none}.home-create:hover{background:var(--primary-hover-bg);color:var(--primary-fg)}.home-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-gap:22px;gap:22px;align-items:start;max-width:1480px;margin:auto}.home-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px;min-width:0}.home-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.home-card h2{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:550;margin:0}.home-card header>a{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--accent);text-decoration:none}.home-card svg{flex-shrink:0}.home-empty,.home-note{color:var(--muted);font-size:13px;line-height:1.6}.home-empty{padding:28px 0}.home-projects-empty{flex:1 1;min-height:185px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.home-list{list-style:none;padding:0;margin:16px 0 0}.home-list li+li{border-top:1px solid var(--line)}.home-list li>a,.home-row{display:flex;align-items:center;gap:12px;padding:13px 0;color:var(--text);text-decoration:none}.home-list li>a:hover{background:var(--soft);border-radius:8px}.home-row-icon{padding:10px;border-radius:10px;background:var(--soft);color:var(--accent);display:flex}.home-row-text{min-width:0;flex:1 1;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.home-row-text strong{font-size:13px;font-weight:500}.home-badge,.home-row-text time{font-size:11px;color:var(--muted)}.home-badge{background:var(--soft);border-radius:20px;padding:4px 9px;white-space:nowrap}.home-status-success{background:#249b7519;color:#217858}.home-status-failed{background:#da52451a;color:#b54135}[data-theme=dark] .home-status-success{color:#83d7b5}[data-theme=dark] .home-status-failed{color:#ffaaa0}.home-billing{grid-column:1/-1}.home-billing dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:24px;gap:24px;margin:24px 0}.home-billing dt{color:var(--muted);font-size:12px}.home-billing dd{margin:8px 0 0;font-size:20px}@media (max-width:900px){.home-page{padding:24px 18px}.home-heading{align-items:flex-start;flex-direction:column}.home-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:520px){.home-card{padding:16px}.home-billing dl{grid-template-columns:1fr;gap:16px}}.home-chats .home-list,.home-projects .home-list{max-height:390px;overflow-y:auto}.home-projects{display:flex;flex-direction:column;align-self:stretch}.projects-page{padding:36px;max-width:1200px;width:100%;margin:0 auto;overflow:auto}.projects-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:30px}.projects-heading h1{display:flex;gap:14px;align-items:center;overflow-wrap:anywhere}.project-hint,.projects-heading p{color:var(--muted);line-height:1.6}.project-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));grid-gap:18px;gap:18px}.project-card,.project-section{border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--panel);margin:16px 0}.project-card{text-decoration:none;color:inherit;overflow-wrap:anywhere}.project-card:hover{border-color:var(--accent)}.project-card p{color:var(--muted)}.project-dialog{width:min(620px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:28px;border-radius:20px;border:1px solid var(--line);background:var(--panel);color:var(--text)}.project-dialog::-webkit-backdrop{background:#0007}.project-dialog::backdrop{background:#0007}.project-dialog fieldset{border:0;padding:0;display:grid;grid-gap:18px;gap:18px;min-width:0}.project-dialog label,.project-folder-picker label{display:grid;grid-gap:8px;gap:8px}.project-dialog input,.project-dialog textarea{width:100%;box-sizing:border-box}.project-icon-picker summary{display:flex;align-items:center;gap:10px;cursor:pointer}.project-icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));grid-gap:6px;gap:6px;max-height:240px;overflow:auto;padding:10px 0}.project-icons button{display:grid;place-items:center;padding:10px;min-width:42px;min-height:42px}.project-icons button[aria-pressed=true]{outline:2px solid var(--accent);background:var(--nav);color:var(--text)}.project-folder-picker{border:1px solid var(--line);border-radius:12px;padding:16px;overflow-wrap:anywhere}.project-folder-list{display:grid;max-height:220px;overflow:auto;margin:12px 0}.project-folder-list button{display:flex;align-items:center;gap:10px;text-align:left}.project-chat-list{list-style:none;padding:0}.project-chat-list a{display:block;padding:12px 0}.project-uploads li{margin:8px 0;overflow-wrap:anywhere}.project-root-prompt{border:1px solid var(--line);border-radius:12px;padding:16px}.project-chat-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 24px}.project-chat-context details{max-width:520px}.project-chat-context a{display:inline-flex;align-items:center;gap:8px}@media (max-width:600px){.projects-page{padding:20px}.projects-heading{align-items:flex-start;flex-direction:column}.project-dialog,.project-section{padding:18px}}.files-main{display:flex;flex-direction:column;flex:1 1;min-height:0;overflow:hidden;padding:18px 24px 16px;gap:10px}.files-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.files-heading h1{margin:0;font-size:27px}.files-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.files-selection,.files-toolbar,.files-view{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.files-main button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;font-size:12px;border:1px solid var(--line);border-radius:7px;white-space:nowrap;cursor:pointer}.files-main button:not(.primary):hover:not(:disabled){background:var(--soft);border-color:var(--accent)}.files-main button:disabled{opacity:.42;cursor:default}.files-view{gap:3px;background:var(--nav);border-radius:9px;padding:3px}.files-view button{border-color:transparent;background:none}.files-view button[aria-pressed=true]{background:var(--panel);box-shadow:0 1px 4px #0000000b;color:var(--accent)}.files-toolbar-spacer{flex:1 1}.files-demo{margin:0;padding:8px 12px;background:var(--soft);border-radius:7px}.files-demo,.files-selection{font-size:12px;color:var(--muted)}.files-selection{min-height:35px}.files-selection>span{margin-right:10px}.files-selection button{border:0;background:none;min-height:30px;padding:5px 9px}.files-layout{display:grid;grid-template-columns:var(--file-left) 6px minmax(0,1fr);min-height:0;flex:1 1;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.files-layout.files-closed{grid-template-columns:minmax(0,1fr)}.files-pane-wrap{min-height:0;min-width:0;grid-row:1}.files-pane-0{grid-column:1}.files-pane-1{grid-column:3}.file-resizer{grid-column:2;grid-row:1;background:var(--bg);border-left:1px solid var(--line);border-right:1px solid var(--line);cursor:col-resize;touch-action:none}.file-resizer:focus,.file-resizer:hover{background:var(--soft);outline:1px solid var(--accent);outline-offset:-1px}.file-pane{display:flex;flex-direction:column;height:100%;min-height:0;position:relative}.file-pathbar{display:flex;align-items:center;gap:4px;padding:8px 12px;border-bottom:1px solid var(--line);min-height:46px;min-width:0}.file-pathbar button{padding:5px;min-height:28px;background:none;border:0}.file-breadcrumb{display:flex;align-items:center;gap:2px;overflow:auto;flex:1 1;white-space:nowrap}.file-breadcrumb>span{display:flex;align-items:center;color:var(--muted)}.file-breadcrumb button{max-width:160px;overflow:hidden;text-overflow:ellipsis;display:block}.file-breadcrumb>span:last-child button{font-weight:600;color:var(--text)}.file-filter{padding:7px 12px}.file-filter input{min-height:32px;width:100%;padding:6px 10px;font-size:12px;background:var(--bg);border:1px solid var(--line);border-radius:6px;color:var(--text)}.file-columns,.file-row{display:grid;grid-template-columns:minmax(140px,1fr) 68px 78px 32px;align-items:center;grid-gap:6px;gap:6px}.file-columns{height:34px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);background:var(--bg)}.file-columns>span:first-child{padding-left:12px;display:flex;align-items:center;gap:34px}.file-list{flex:1 1;min-height:0;overflow:auto;outline-offset:-2px}.file-row{height:35px;min-height:35px;box-sizing:border-box;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;cursor:default;outline-offset:-2px}.file-row:hover{background:var(--bg)}.file-row.selected{background:var(--soft)}.is-active .file-row.selected{box-shadow:inset 2px 0 var(--accent)}.file-name{display:flex;align-items:center;gap:7px;min-width:0;padding-right:2px}.file-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chevron{width:16px;flex-shrink:0}.files-main button.file-chevron{padding:0;min-height:24px;border:0;background:none}.file-icon{display:inline-flex;flex-shrink:0;color:var(--muted)}.file-icon-folder{color:#b49252}.file-icon-code,.file-icon-markdown,.file-icon-program{color:#8a79b8}.file-icon-document{color:#5d88b2}.file-icon-sheet{color:#5d957c}.file-icon-slides{color:#c08b60}.file-icon-image{color:#af7e9a}.file-icon-archive{color:#998872}.file-date,.file-size{font-size:11px;color:var(--muted)}.files-main button.file-more{min-height:26px;border:0;padding:4px;background:none;margin-right:4px}.file-pane-footer{border-top:1px solid var(--line);padding:7px 12px;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}.file-pane-footer span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:45px 20px;color:var(--muted);text-align:center;font-size:12px;flex:1 1}.file-empty strong{font-weight:500;color:var(--text)}.file-context{position:absolute;right:12px;top:115px;z-index:5;display:flex;flex-direction:column;min-width:180px;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 10px 35px #0002}.file-context button{border:0;justify-content:flex-start}.file-preview{grid-column:3;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}.file-preview-heading{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:8px 16px;border-bottom:1px solid var(--line);font-size:12px}.file-preview-heading>span{display:flex;align-items:center;gap:8px}.file-preview-heading button{min-height:28px;border:0;background:none;padding:4px}.file-preview-title{display:flex;align-items:center;gap:9px;padding:18px 18px 12px}.file-preview-title strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview-title small{font-size:11px;margin-left:auto;white-space:nowrap;color:var(--muted)}.file-preview-tools{display:flex;gap:6px;padding:0 16px 12px;flex-wrap:wrap}.file-editor,.file-text{flex:1 1;min-height:100px;overflow:auto;font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;padding:18px;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--panel);color:var(--text);-moz-tab-size:2;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere}.file-editor{resize:none;width:100%;outline-offset:-2px}.file-image{flex:1 1;min-height:0;overflow:auto;padding:20px;background:var(--panel)}.file-image img{display:block;height:auto;margin:auto;object-fit:contain}.file-zoom{display:flex;align-items:center;gap:8px;padding:4px 16px 12px;font-size:11px}.file-zoom input{width:100px;min-height:16px;accent-color:var(--accent)}.files-feedback{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--soft);border-radius:7px;padding:8px 12px;font-size:12px}.files-feedback ul{flex-basis:100%;margin:0;max-height:100px;overflow:auto;padding-left:18px}.files-feedback progress{width:100px;height:6px;accent-color:var(--accent)}.files-feedback>button:last-child{margin-left:auto}.file-error{padding:7px 12px;color:#b45454;background:color-mix(in srgb,#bb4444 7%,var(--panel));font-size:12px;margin:0;line-height:1.5}.file-error button{margin:8px}.file-dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:24px;width:min(460px,calc(100vw - 32px));box-shadow:0 20px 70px #0003}.file-dialog::-webkit-backdrop{background:#17172355}.file-dialog::backdrop{background:#17172355}.file-dialog h2{font-size:17px;font-weight:550;line-height:1.5;margin:0 0 18px}.file-dialog input{width:100%;margin-bottom:18px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:10px}.file-dialog .row{justify-content:flex-end;gap:8px;margin-top:14px}.file-picker-list{max-height:260px;overflow:auto;display:flex;flex-direction:column;margin-top:8px}.file-picker-list button{justify-content:flex-start;border:0}.file-folder-picker .file-pathbar strong{overflow-wrap:anywhere;font-size:12px}.file-folder-picker p{font-size:12px;color:var(--muted)}@media (max-width:1100px){.files-main{padding:18px 16px 12px}.file-columns,.file-row{grid-template-columns:minmax(110px,1fr) 56px 28px}.file-columns>span:nth-child(3),.file-date{display:none}.files-view button{font-size:11px}.file-name{gap:4px}.file-pane-footer span:last-child{display:none}}@media (max-width:760px){.files-main{overflow:auto;padding:16px 10px;min-height:0}.files-heading{align-items:flex-start;flex-direction:column;gap:12px}.files-heading h1{font-size:24px}.files-heading p{display:none}.files-toolbar{gap:5px}.files-toolbar button{font-size:11px;padding:7px}.files-layout{flex:none;min-height:400px;grid-template-columns:minmax(0,1fr)!important;overflow:visible;border-radius:8px}.files-pane-wrap{height:400px}.file-preview,.files-pane-1{grid-column:1;grid-row:2;border-top:1px solid var(--line);height:420px}.file-resizer{display:none}.files-selection{gap:3px}.files-selection button{font-size:11px;padding:5px}.files-selection>span{flex-basis:100%}.files-demo{font-size:11px}.file-columns,.file-row{grid-template-columns:minmax(120px,1fr) 60px 28px}.file-preview{overflow:hidden}.files-feedback{font-size:11px}}.file-zoom{flex-direction:row;font-weight:400}.files-main>:not(.files-layout){flex-shrink:0}@media (max-width:760px){.files-layout:not(.files-closed){grid-template-rows:400px 420px}.files-layout.files-closed{grid-template-rows:400px}.files-selection{min-height:0}}.files-upload{position:relative}.files-upload summary{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:8px;cursor:pointer;list-style:none;font-size:13px}.files-upload summary::-webkit-details-marker{display:none}.files-upload summary[aria-disabled=true]{opacity:.5;cursor:default}.files-upload-options{position:absolute;top:calc(100% + 6px);left:0;z-index:20;min-width:200px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0002}.files-upload-options button{width:100%;justify-content:flex-start}.markdown-editor{display:flex;flex-direction:column;flex:1 1;min-height:0}.markdown-editor-surface{flex:1 1;min-height:100px;overflow:hidden;border-top:1px solid var(--line)}.markdown-editor .cm-editor{height:100%;background:var(--panel);color:var(--text)}.markdown-editor .cm-scroller{overflow:auto}.markdown-editor .cm-content{padding:18px;caret-color:var(--text)}.markdown-editor .cm-line{padding:0}.markdown-editor.is-live .cm-scroller{font-family:inherit;font-size:14px;line-height:1.8}.markdown-editor .cm-cursor{border-left-color:var(--text)}.markdown-editor button[aria-pressed=true]{background:var(--panel);border-color:var(--muted)}.markdown-hint{padding:8px 16px;color:var(--muted);font-size:11px}.md-heading,.md-strong{font-weight:650}.md-h1{font-size:1.8em}.md-h2{font-size:1.5em}.md-h3{font-size:1.25em}.md-em{font-style:italic}.md-strike{text-decoration:line-through}.md-code{font-family:ui-monospace,monospace;background:var(--line);border-radius:3px}.md-link{text-decoration:underline}.md-quote{color:var(--muted)}.markdown-editor.is-live .md-heading,.markdown-editor.is-live .md-heading span{text-decoration:none}.schedules-page{padding:22px 28px;width:100%;max-width:1180px;margin:0 auto}.schedule-actions,.schedule-card-heading,.schedule-toolbar,.schedules-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.schedule-card dt,.schedule-hint,.schedule-toolbar,.schedules-heading p{color:var(--muted)}.schedules-heading button{display:flex;align-items:center;gap:8px;flex-shrink:0}.schedule-hint{font-size:12px;line-height:1.6}.schedule-toolbar{margin:16px 0 12px}.schedule-list{display:grid;grid-gap:12px;gap:12px}.schedule-card{padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:16px;min-width:0;overflow-wrap:anywhere}.schedule-card h2{font-size:18px;margin:0}.schedule-badge{border-radius:20px;background:var(--nav);padding:5px 10px;font-size:12px;white-space:nowrap}.schedule-badge.active{background:var(--soft);color:var(--accent)}.schedule-prompt{white-space:pre-wrap;max-height:130px;overflow:auto}.schedule-card dl{display:flex;gap:20px;flex-wrap:wrap;font-size:13px}.schedule-card dd{margin:5px 0 0}.schedule-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:12px}.schedule-actions .schedule-delete{margin-left:auto}.schedule-empty{text-align:center;padding:64px 24px;color:var(--muted)}.schedule-dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;padding:28px}.schedule-dialog::-webkit-backdrop{background:#0006}.schedule-dialog::backdrop{background:#0006}.schedule-dialog fieldset{border:0;padding:0;margin:0;display:grid;grid-gap:16px;gap:16px;min-width:0}.schedule-dialog label{display:grid;grid-gap:8px;gap:8px}.schedule-dialog textarea{width:100%;resize:vertical;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:12px;font:inherit}.schedule-dialog summary{cursor:pointer;padding:8px 0}.schedule-dialog .schedule-checkbox{flex-direction:row;display:flex;align-items:center;margin:12px 0}.schedule-checkbox input{width:auto;min-height:auto}.schedule-review{background:var(--soft);padding:16px;border-radius:12px;overflow-wrap:anywhere}.schedule-dialog button:focus-visible,.schedule-dialog summary:focus-visible,.schedules-page button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media (max-width:650px){.schedules-page{padding:20px 16px}.schedules-heading{align-items:flex-start;flex-direction:column}.schedule-card{padding:18px}.schedule-card-heading{align-items:flex-start}.schedule-dialog{padding:20px}}