:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#28352d;background:#f4f5f1;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #d6ddd3;background:#fff;border-radius:7px;padding:7px 12px;color:#344a3d}button:hover{background:#edf2e9}button:disabled{opacity:.5;cursor:default}.primary{background:#345943;color:#fff;border-color:#345943}.primary:hover{background:#244633}.danger{color:#9a3535}header{height:62px;display:flex;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid #d9e1d4;background:#fff}.brand{font-family:Georgia,serif;font-size:25px;letter-spacing:-.7px;color:#294d36}.subtle{color:#718075;font-size:12px}.grow{flex:1}.status{font-size:12px;color:#68786a}.login{max-width:420px;margin:12vh auto;padding:34px;background:#fff;border:1px solid #dfe5d9;border-radius:14px}.login h1{font-weight:500;margin-top:0;font-family:Georgia,serif}.login p{line-height:1.6;color:#718075}label{display:block;margin:16px 0 6px}input,select{width:100%;border:1px solid #d2dbc9;border-radius:6px;padding:10px;background:#fff}.error{padding:10px;background:#fff0e9;border:1px solid #e9cbbd;border-radius:6px;color:#8b422e;white-space:pre-wrap}.projects{max-width:960px;margin:44px auto;padding:0 24px}.projects h1{font-size:24px;font-weight:500}.project-card{display:flex;align-items:center;gap:15px;padding:20px;background:#fff;border:1px solid #dbe3d4;border-radius:9px;margin:12px 0}.project-card strong{font-weight:500;font-size:17px}.workbench{display:grid;grid-template-columns:220px minmax(340px,1fr) minmax(300px,36%);height:calc(100vh - 62px);min-height:400px}.sidebar{background:#eef1e9;border-right:1px solid #d8e0d2;padding:20px 12px;overflow:auto}.sidebar h2{font-size:15px;margin:0 8px 20px;font-weight:500}.file{display:block;border:0;background:transparent;text-align:left;width:100%;margin-bottom:4px;padding:9px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file.active{background:#dfe8d8}.editor-pane{display:flex;flex-direction:column;min-width:0;background:#fff}.toolbar{padding:11px 14px;display:flex;gap:8px;align-items:center;border-bottom:1px solid #e3e8dd;min-height:49px}.source{flex:1;resize:none;border:0;outline:none;padding:24px;font-family:"SFMono-Regular",Consolas,monospace;font-size:13px;line-height:1.75;color:#31483a;tab-size:2}.source:read-only{background:#fafbf8}.right-pane{display:flex;flex-direction:column;border-left:1px solid #d9e1d4;background:#fafbf8;overflow:hidden}.tabs{display:flex;gap:5px;padding:10px;border-bottom:1px solid #e1e7da}.tabs button{border:0;background:transparent}.tabs button.active{background:#e1e9da}.panel{padding:18px;overflow:auto;flex:1}.panel h3{font-weight:500}.row{display:flex;gap:8px;align-items:center;margin:10px 0}.stack{display:flex;flex-direction:column;gap:8px}iframe.pdf{width:100%;height:calc(100vh - 200px);border:0;background:#e7e9e2}.thread,.version,.member{border:1px solid #dbe3d2;border-radius:8px;background:#fff;padding:12px;margin:10px 0}.thread p{white-space:pre-wrap;line-height:1.6;margin:8px 0}.quote{font-family:monospace;font-size:12px;background:#eef2e9;padding:8px;white-space:pre-wrap}.comment-input{width:100%;min-height:80px;border:1px solid #d2dbc9;border-radius:6px;padding:10px;resize:vertical}.notice{padding:12px;background:#edf2e7;line-height:1.6;border-radius:6px;margin:10px 0}.conflict{border-top:1px solid #e3c7af;background:#fff5e8;padding:14px;max-height:45%;overflow:auto}.conflict textarea{width:100%;height:150px;font-family:monospace}.pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:monospace;line-height:1.6}.share-link{overflow-wrap:anywhere}.full{width:100%}.spacer{height:12px}@media(max-width:1000px){.workbench{grid-template-columns:170px 1fr}.right-pane{grid-column:1/3;border-left:0;border-top:1px solid #d9e1d4;max-height:500px}.workbench{height:auto}.editor-pane{height:70vh}.sidebar{height:70vh}}@media(max-width:600px){header{padding:0 12px;gap:10px}.workbench{grid-template-columns:120px 1fr}.source{padding:12px}.toolbar{flex-wrap:wrap}.login{margin:8vh 16px}.subtle{font-size:11px}}
input[type=checkbox]{width:auto;margin:0 8px}.notice{white-space:pre-wrap}.conflict:empty{display:none}.source:focus-visible{box-shadow:inset 0 0 0 2px #a9bda5}.panel button{margin:3px 4px 3px 0}button.brand{border:0;background:transparent}
.file-row{display:flex;align-items:center;gap:2px;min-width:0}.file-row .file{flex:1;min-width:0}.folder-toggle{border:0;background:transparent;padding:6px 3px;width:22px}.panel[aria-label="文件管理"]{overflow-wrap:anywhere}[aria-label="文件管理"] .quote{overflow-wrap:anywhere}[aria-label="文件管理"] h4{margin:22px 0 8px}[aria-label="文件管理"] input[type=file]{font-size:12px}.tabs{flex-wrap:wrap}
[aria-label="旧 OT 项目历史"]{overflow-wrap:anywhere}[aria-label="旧 OT 项目历史"] .quote{overflow-wrap:anywhere}[aria-label="旧 OT 项目历史"] h4{margin:22px 0 8px}[aria-label="旧 OT 项目历史"] details .version{font-size:12px}
.projects>.row{flex-wrap:wrap}.projects>.row>input{flex:1;min-width:180px;width:auto}.projects button{flex-shrink:0;white-space:nowrap}.project-card{flex-wrap:wrap}.project-card>.grow{min-width:160px;overflow-wrap:anywhere}.project-card>.row{flex:1 1 360px;min-width:0;flex-wrap:wrap}.project-card>.notice{flex-basis:100%;width:100%;min-width:0;overflow-wrap:anywhere}
.local-compile{border:1px solid #dbe3d2;border-radius:10px;padding:14px;background:#fff;margin-bottom:20px}.local-compile h3{margin-top:0}.local-compile progress{width:100%;height:8px;accent-color:#345943}.local-pdf-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.local-pdf-controls input{width:70px}.local-pdf-controls select{width:90px}.local-pdf-page{overflow:auto;background:#e7e9e2;border-radius:6px;max-height:65vh}.local-pdf-page canvas{display:block;margin:auto;max-width:none}.local-compile button{transition:background .16s ease,transform .12s ease}.local-compile button:active{transform:scale(.97)}@media(prefers-reduced-motion:reduce){.local-compile button{transition:none}}
.local-pdf-sheet{position:relative;margin:auto}.local-pdf-sheet canvas{margin:0}.local-pdf-position{position:absolute;border:2px solid #54816b;background:#6fa78730;pointer-events:none;box-shadow:0 0 0 2px #ffffff80}.local-pdf-position[hidden]{display:none}
.local-workspace{min-height:100vh}.local-workspace-header{height:auto;min-height:74px;flex-wrap:wrap;gap:10px;padding:14px 20px}.local-workspace-header h1{font-family:Georgia,serif;font-size:21px;font-weight:500;margin:0}.local-workspace-header>p{margin:0;max-width:440px}.local-workspace-header select{width:auto;min-width:170px;max-width:260px}.local-workspace-error{color:#8b422e;white-space:pre-wrap}.local-workspace-error:empty{display:none}.local-workspace-settings{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #d9e1d4;background:#fafbf8}.local-workspace-settings label{display:flex;align-items:center;gap:8px;margin:0}.local-workspace-settings select{width:190px}.local-workspace-settings input{width:175px}.local-workspace-grid{display:grid;grid-template-columns:210px minmax(340px,1fr) minmax(340px,40%);min-height:calc(100vh - 150px)}.local-workspace-files{background:#eef1e9;border-right:1px solid #d8e0d2;padding:14px;overflow:auto}.local-workspace-files h2,.local-workspace-editor h2{font-size:15px;font-weight:500}.local-workspace-files>button{display:block;width:100%;margin:6px 0;text-align:left;overflow-wrap:anywhere}.local-workspace-files input[type=file]{font-size:12px;padding:7px;width:100%}.local-workspace-editor{display:flex;flex-direction:column;min-width:0;background:#fff;padding:16px}.local-workspace-editor textarea{flex:1;min-height:55vh;width:100%;resize:vertical;border:0;outline:none;font:13px/1.75 "SFMono-Regular",Consolas,monospace;tab-size:2;color:#31483a}.local-workspace-editor textarea:focus-visible{box-shadow:inset 0 0 0 2px #a9bda5}.local-workspace-editor>button{align-self:flex-start;margin-top:8px}.local-workspace-output{border-left:1px solid #d9e1d4;padding:18px;min-width:0;overflow:auto;background:#fafbf8}.local-workspace-retained-pdf{margin-top:18px}@media(max-width:1000px){.local-workspace-grid{grid-template-columns:170px minmax(300px,1fr)}.local-workspace-output{grid-column:1/3;border-left:0;border-top:1px solid #d9e1d4}.local-workspace-editor textarea{min-height:55vh}}@media(max-width:600px){.local-workspace-header{padding:12px}.local-workspace-settings{padding:12px}.local-workspace-grid{grid-template-columns:120px minmax(0,1fr)}.local-workspace-files{padding:9px}.local-workspace-editor{padding:12px}.local-workspace-settings label{flex-wrap:wrap}.local-workspace-settings input,.local-workspace-settings select{width:160px}}

.legal-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-block:16px}.legal-links span{font-size:12px;color:var(--muted,#737373)}.legal-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:24px;border:1px solid var(--line,#ddd);border-radius:16px;color:var(--ink,#242424);background:var(--surface,#fff);overflow:auto}.legal-dialog::backdrop{background:#0006}.legal-dialog header{position:sticky;top:-24px;background:inherit;padding-block:8px}.legal-dialog p{line-height:1.8;overflow-wrap:anywhere}.account-deletion label{display:block;margin-block:12px}.account-deletion input{display:block;width:100%;box-sizing:border-box;min-height:44px}

.legal-dialog h2,.legal-dialog h3{color:var(--ink);line-height:1.45}.legal-dialog header{justify-content:space-between}.legal-dialog button{min-height:44px}.legal-dialog h3{margin-top:28px}

.legal-page{max-width:48rem;margin:0 auto;padding:32px 24px 64px;line-height:1.85;overflow-wrap:anywhere}.legal-page h1,.legal-page h2{color:var(--ink)}.legal-page h2{font-size:1.15rem;margin-top:32px}.legal-page header{border-bottom:1px solid var(--line);padding-bottom:24px}.legal-page nav a{display:inline-block;padding-block:8px}
