.repair-open{padding:8px 14px;border:1px solid #9eb9ad;border-radius:10px;background:#f0f8f3;color:#17634d;font:inherit;cursor:pointer}.repair-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;background:#183d3266}.repair-dialog{width:min(860px,100%);max-height:92vh;overflow:auto;background:#fff;color:#263e35;padding:24px;border-radius:18px;box-shadow:0 16px 60px #122d3340;text-align:left}.repair-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.repair-heading h2{margin:0;font-size:24px}.repair-heading button{background:none;border:0;font-size:30px;cursor:pointer}.repair-hint,.repair-footer span{font-size:14px;color:#6b8177;line-height:1.65}.repair-policy{padding:12px;background:#edf5ef;border-radius:10px;font-size:14px}.repair-messages{min-height:80px;max-height:50vh;overflow:auto;margin:16px 0}.repair-turn{margin:14px 0}.repair-user{margin-left:12%;background:#e6f2ec;padding:12px 16px;border-radius:12px}.repair-user p,.repair-assistant p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:6px 0}.repair-assistant{padding:12px 16px;background:#f8faf8;border-radius:12px;margin:8px 10% 0 0}.repair-empty{color:#7c8c83}.repair-proposal{margin:12px 0;padding:12px;border:1px solid #dfbe82;border-radius:8px}.repair-proposal strong{overflow-wrap:anywhere}.repair-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;padding:10px;background:#edf1ed}.repair-dialog textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #b8cbc1;border-radius:10px;padding:12px;font:inherit;resize:vertical;min-height:90px}.repair-dialog button:disabled{opacity:.5;cursor:default}.repair-footer,.repair-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px}.repair-footer button,.repair-actions button{border:1px solid #24765c;background:#24765c;color:#fff;border-radius:9px;padding:10px 14px;font:inherit;cursor:pointer}.repair-actions button+button{background:#fff;color:#8e493d;border-color:#d5aba3}.repair-error{color:#af473f;background:#fff2ee;padding:10px;border-radius:8px}@media(max-width:600px){.repair-overlay{padding:8px}.repair-dialog{padding:16px;max-height:96vh}.repair-footer,.repair-actions{align-items:stretch;flex-direction:column}.repair-user{margin-left:5%}.repair-assistant{margin-right:0}}.proxy-control{display:inline-flex;min-width:0}.proxy-trigger{font:inherit;font-size:12px;font-weight:600;border:1px solid #dbe4ee;border-radius:8px;background:#fff;color:#334155;padding:8px 10px;cursor:pointer;white-space:nowrap}.proxy-trigger:hover{border-color:#60a5fa;color:#1d4ed8}.proxy-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #dbe4ee;border-radius:18px;padding:26px;color:#18283e;background:#fff;box-shadow:0 24px 80px #0f172a33;font:14px/1.55 Inter,system-ui,-apple-system,sans-serif;text-align:left}.proxy-dialog::backdrop{background:#0f172a66;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.proxy-dialog *{box-sizing:border-box}.proxy-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.proxy-heading span{color:#64748b;font-size:12px}.proxy-heading h2{font-size:22px;line-height:1.3;margin:3px 0 0;color:#0f172a}.proxy-dialog button{font:inherit;cursor:pointer;border:1px solid #cbd5e1;border-radius:8px;padding:9px 14px;background:#fff;color:#334155}.proxy-dialog button:disabled,.proxy-dialog input:disabled,.proxy-dialog select:disabled{opacity:.55;cursor:not-allowed}.proxy-dialog button:focus-visible,.proxy-dialog input:focus-visible,.proxy-dialog select:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.proxy-dialog .proxy-close{font-size:24px;line-height:1;padding:6px 10px;border-color:transparent}.proxy-description{margin:0 0 18px;color:#64748b}.proxy-current{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center;border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;padding:14px 16px;margin-bottom:20px}.proxy-current>span{font-size:12px;color:#64748b}.proxy-current strong{grid-column:1;font-size:14px;overflow-wrap:anywhere;color:#1e40af}.proxy-current button{grid-row:1/3;grid-column:2;font-size:12px;padding:6px 10px}.proxy-picker{display:grid;gap:8px}.proxy-picker label{font-weight:600;display:flex;justify-content:space-between;gap:12px}.proxy-picker label span{font-size:12px;font-weight:400;color:#64748b}.proxy-picker input,.proxy-picker select{font:inherit;display:block;width:100%;min-width:0;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px;color:#1e293b}.proxy-picker select{font-size:13px}.proxy-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.proxy-dialog .proxy-primary{background:#2563eb;border-color:#2563eb;color:#fff}.proxy-hint,.proxy-dialog small{font-size:12px;color:#64748b}.proxy-hint{margin:10px 0 0}.proxy-progress,.proxy-message,.proxy-error{padding:12px 14px;border-radius:9px;overflow-wrap:anywhere;font-size:13px}.proxy-progress{background:#eff6ff;color:#1d4ed8;display:flex;align-items:center;gap:9px}.proxy-progress span{width:13px;height:13px;flex-shrink:0;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:proxy-spin .8s linear infinite}.proxy-message{background:#f1f5f9;color:#334155}.proxy-error{background:#fff1f2;color:#be123c}.proxy-results{margin-top:18px;padding-top:16px;border-top:1px solid #e2e8f0}.proxy-result-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.proxy-result-heading time{font-size:12px;color:#64748b}.proxy-results>p{font-size:12px;overflow-wrap:anywhere;margin:5px 0 10px;color:#64748b}.proxy-result{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #f1f5f9}.proxy-result strong{font-size:13px}.proxy-ok{color:#15803d}.proxy-failed{color:#b91c1c}.proxy-results small{display:block;margin-top:12px}.sidebar-foot>.proxy-control{display:flex;margin-bottom:10px}.sidebar-foot .proxy-trigger{width:100%;text-align:center}@keyframes proxy-spin{to{transform:rotate(360deg)}}@media(max-width:600px){.proxy-dialog{padding:20px 16px}.proxy-heading h2{font-size:20px}.proxy-trigger{font-size:11px;padding:7px 8px}.proxy-actions button{flex:1}.proxy-result{align-items:flex-start}.proxy-result strong{text-align:right}.user-menu,.md-header-right{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.proxy-progress span{animation:none}}.wechat-video-control{display:inline-flex;align-items:center}.wechat-video-trigger{border:1px solid #cadacf!important;border-radius:7px;background:#fff!important;color:#245b3d!important;padding:8px 12px;white-space:nowrap;font:inherit;font-size:12px;cursor:pointer}.wechat-video-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:24px;border:1px solid #dbe4dd;border-radius:14px;background:#fff;color:#254035;box-shadow:0 20px 80px #132c3340;font:14px/1.7 system-ui,sans-serif;text-align:left;white-space:normal}.wechat-video-dialog::backdrop{background:#172c2b70}.wechat-video-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.wechat-video-heading h2{font-size:20px;margin:0}.wechat-video-heading button{font-size:25px;border:0;background:transparent;color:inherit;cursor:pointer}.wechat-video-dialog p{font-size:13px;line-height:1.8;color:#64776c;margin:16px 0}.wechat-video-status{padding:12px;background:#edf5ef;border-radius:8px}.wechat-video-dialog .wechat-video-error{color:#a53535}.wechat-video-qr{display:block;max-width:100%;max-height:320px;width:auto;margin:16px auto;object-fit:contain}.wechat-video-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.wechat-video-actions button{padding:9px 13px;border-radius:7px;background:#245b3d!important;color:#fff!important;border:1px solid #245b3d!important;cursor:pointer;font-size:13px}.wechat-video-actions button:disabled{opacity:.45;cursor:not-allowed}.wechat-video-dialog small{font-size:12px;color:#64776c}.wechat-video-dialog button:focus-visible,.wechat-video-trigger:focus-visible{outline:3px solid #91bea1;outline-offset:3px}.youtube-dialog{width:min(540px,calc(100vw - 32px))}.youtube-dialog-live{width:min(1160px,calc(100vw - 24px))}.youtube-warning{border-color:#dba7a1!important;color:#ac4038!important;background:#fff3f1!important}.youtube-input-bar,.youtube-key-bar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.youtube-input-bar input{flex:1;min-width:180px;padding:10px;border:1px solid #cadacf;border-radius:6px;font:inherit}.youtube-input-bar button,.youtube-key-bar button{padding:8px 12px;border:1px solid #cadacf;border-radius:6px;background:#f3f7f4;color:#254035;cursor:pointer;font:inherit}.youtube-browser button:disabled{opacity:.45;cursor:not-allowed}.youtube-screen{border:1px solid #cadacf;border-radius:8px;overflow:hidden;background:#f6f8f7;min-height:150px}.youtube-screen img{width:100%;height:auto;display:block;cursor:pointer}.youtube-screen[aria-busy=true]{opacity:.7;pointer-events:none}.youtube-dialog .youtube-browser-hint{margin:12px 0 6px}.user-menu .youtube-browser input{max-width:none}.user-menu .youtube-screen img{width:100%;height:auto;max-width:100%;border-radius:0;object-fit:initial}.youtube-import{margin:18px 0;padding:16px;background:#f6f9f7;border:1px solid #dbe4dd;border-radius:10px}.youtube-import h3{margin:0;font-size:16px}.youtube-import p{margin:10px 0}.youtube-import summary{cursor:pointer;font-weight:600}.youtube-import ol{padding-left:22px}.youtube-import li{margin:8px 0}.youtube-import a{color:#176c55;text-decoration:underline}.youtube-file-label{display:block;margin-top:16px;font-size:13px}.youtube-file-label input{display:block;max-width:100%;margin-top:8px;font:inherit}.youtube-import .wechat-video-actions{margin:14px 0}.sm-upload{box-sizing:border-box;width:100%;min-width:0;margin:12px 0;padding:12px 14px;border:1px solid #d7e4dd;border-radius:10px;background:#f4f8f5;color:#284b3d;font-size:13px}.sm-upload .sm-upload-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px}.sm-upload .sm-upload-file{overflow-wrap:anywhere;margin:5px 0}.sm-upload progress{display:block;width:100%;height:8px;margin:10px 0;accent-color:#278561}.sm-upload small{display:block;line-height:1.6;color:#65766c}:root{font-family:Inter,Noto Sans SC,PingFang SC,system-ui,sans-serif;color:#191919;background:#f7faf8;font-synthesis:none;--ink: #191919;--muted: #5b6a64;--line: #d2ded8;--paper: #ffffff;--blue: #176a54;--blue-dark: #105844;--green: #176a54;--amber: #b46d22;--red: #b84b47;--shadow: 0 18px 50px rgba(40, 59, 53, .08)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f7faf8}button,textarea,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}.app-shell{min-height:100vh;display:grid;grid-template:68px 1fr / 254px minmax(0,1fr)}.topbar{grid-column:1 / -1;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:28px;height:68px;padding:0 22px;border-bottom:1px solid rgba(40,59,53,.14);background:#ffffffeb;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:11px;border:0;background:none;cursor:pointer;padding:0;text-align:left;text-decoration:none;color:inherit}.brand-mark{width:34px;height:34px;padding:6px;border:1px solid #d2ded8;border-radius:9px;display:grid;place-items:center;background:#fff;box-shadow:4px 4px #88c6b3}.brand-mark img{width:100%;height:100%;display:block}.brand-mark.large{width:52px;height:52px;margin:0 auto 26px;padding:9px;border-radius:12px;box-shadow:6px 6px #88c6b3}.brand b{display:block;font-size:14px;line-height:1.05}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:10px;letter-spacing:.05em}.runtime-badges{display:flex;align-items:center;gap:8px;margin-left:auto}.runtime{border:1px solid var(--line);border-radius:100px;background:var(--paper);padding:6px 10px;color:var(--muted);font-size:11px}.runtime i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#aaa}.runtime.ok i{background:var(--green);box-shadow:0 0 0 3px #2c80611f}.runtime.warn i{background:var(--amber)}.user-menu{display:flex;align-items:center;gap:9px;padding-left:16px;border-left:1px solid var(--line);font-size:12px}.user-menu>img,.user-menu>span{width:28px;height:28px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#e7efea;color:var(--blue-dark);font-weight:700}.text-button{border:0;background:none;padding:4px;color:var(--blue);cursor:pointer;font-size:12px}.text-button:hover{color:var(--blue-dark);text-decoration:underline}.sidebar{position:sticky;top:68px;height:calc(100vh - 68px);overflow:hidden;border-right:1px solid rgba(40,59,53,.12);background:#f1f5f2;display:flex;flex-direction:column}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 18px 13px;color:#555b52;font-size:12px;font-weight:700;letter-spacing:.04em}.sidebar-heading b{border-radius:100px;padding:2px 7px;background:#d8d7d0;font-family:DM Mono,monospace;font-size:10px}.project-list{padding:0 9px 20px;overflow:auto}.project-item{width:100%;display:flex;align-items:flex-start;gap:10px;border:1px solid transparent;border-radius:10px;padding:11px 10px;background:transparent;cursor:pointer;text-align:left}.project-item:hover{background:#ffffff73}.project-item.active{border-color:#ccdad3;background:var(--paper);box-shadow:0 4px 14px #283b350d}.project-item-copy{min-width:0}.project-item-copy b{display:-webkit-box;overflow:hidden;font-size:12px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-item-copy small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.status-dot{flex:0 0 auto;width:7px;height:7px;margin-top:5px;border-radius:50%;background:#999}.status-dot.status-generating,.status-dot.status-refining,.status-dot.status-previewing,.status-dot.status-publishing,.status-dot.status-queued{background:var(--blue);box-shadow:0 0 0 3px #176a5421}.status-dot.status-published,.status-dot.status-preview_ready{background:var(--green)}.status-dot.status-failed,.status-dot.status-publish_unknown{background:var(--red)}.status-dot.status-needs_confirmation{background:var(--amber)}.empty-list{padding:20px 10px;color:var(--muted);font-size:12px;text-align:center}.workspace{min-width:0;padding:26px 30px 60px;overflow:hidden}.composer-card{max-width:1500px;margin:0 auto 20px;padding:20px 22px;border:1px solid var(--line);border-radius:15px;background:var(--paper);box-shadow:0 8px 30px #2d302a0b}.composer-card>div:first-child{display:flex;align-items:baseline;gap:13px}.composer-card h2{margin:0;font-size:17px}.eyebrow{margin:0;color:var(--blue);font-family:DM Mono,monospace;font-size:10px;font-weight:500;letter-spacing:.14em}.composer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:14px}.composer-row textarea{min-height:57px;resize:vertical;border:1px solid #c7c8bf;border-radius:10px;outline:0;padding:10px 12px;background:#fff;line-height:1.55}.composer-row textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #176a541f}.hint{margin:8px 0 0;color:var(--muted);font-size:10px}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:38px;border:1px solid transparent;border-radius:9px;padding:8px 14px;cursor:pointer;font-weight:650;font-size:12px;transition:transform .12s,background .12s,border-color .12s}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{opacity:.42;cursor:not-allowed}.button.primary{background:var(--blue);color:#fff;box-shadow:0 5px 14px #176a5433}.button.primary:hover:not(:disabled){background:var(--blue-dark)}.button.secondary{border-color:#b7cfc5;background:#f1f5f2;color:var(--blue-dark)}.button.ghost{border-color:var(--line);background:var(--paper);color:#484d46}.button.warning-button{border-color:#d8a361;background:#fff2df;color:#84470d}.button.danger-button{border-color:#d6aaa7;background:transparent;color:#9a3f39}.button.danger-button:hover{background:#fff0ee}.button.danger-solid{border-color:#a7463f;background:#a7463f;color:#fff}.button.danger-solid:hover{border-color:#913a34;background:#913a34}.button.small{min-height:30px;padding:5px 10px}.generate-button{min-width:150px}.alert{max-width:1500px;margin:0 auto 16px;border:1px solid;border-radius:10px;padding:11px 13px;font-size:12px;line-height:1.55}.alert.error{border-color:#e1b5b2;background:#fff0ef;color:#8b3430}.alert.warning{border-color:#e3c397;background:#fff5e6;color:#794711}.alert.dismissible{display:flex;justify-content:space-between}.alert.dismissible button{border:0;background:none;color:inherit;cursor:pointer;font-size:20px;line-height:1}.empty-workspace{max-width:780px;min-height:480px;margin:45px auto 0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.paper-stack{position:relative;width:116px;height:116px;margin-bottom:26px}.paper-stack i{position:absolute;inset:14px 18px;border:1px solid #bfc0b9;border-radius:4px;background:var(--paper);box-shadow:0 12px 26px #34363114}.paper-stack i:nth-child(1){transform:rotate(-10deg) translate(-9px,3px)}.paper-stack i:nth-child(2){transform:rotate(8deg) translate(9px)}.paper-stack i:nth-child(3){background:linear-gradient(#176a54 0 5px,var(--paper) 5px)}.empty-workspace h1{margin:12px 0;font-family:Georgia,"Noto Serif SC",serif;font-size:32px;font-weight:500}.empty-workspace>p:not(.eyebrow){max-width:640px;margin:0;color:var(--muted);line-height:1.85;font-size:14px}.flow-line{display:flex;align-items:center;gap:11px;margin-top:30px;padding:10px 15px;border:1px solid var(--line);border-radius:100px;background:#fbfaf6a6;color:#5e635c;font-size:11px}.flow-line b{color:#a6a9a1}.project-workspace{max-width:1500px;margin:0 auto}.project-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding:17px 4px 20px}.project-heading-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.project-heading h1{max-width:970px;margin:10px 0 7px;font-family:Georgia,"Noto Serif SC",serif;font-size:clamp(24px,2.4vw,38px);font-weight:500;line-height:1.25}.project-title-input{display:block;width:min(970px,76vw);min-height:76px;margin:10px 0 7px;overflow:hidden;resize:none;border:1px solid transparent;border-radius:9px;outline:0;padding:2px 7px;background:transparent;color:var(--ink);font-family:Georgia,"Noto Serif SC",serif;font-size:clamp(24px,2.4vw,38px);font-weight:500;line-height:1.25}.project-title-input:not(:disabled):hover{border-color:#d2d4cc;background:#fff6}.project-title-input:not(:disabled):focus{border-color:#88c6b3;background:var(--paper);box-shadow:0 0 0 3px #176a541a}.project-title-input:disabled{opacity:1;-webkit-text-fill-color:var(--ink)}.heading-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;color:var(--muted);font-family:DM Mono,monospace;font-size:10px}.source-link{display:inline-block;max-width:900px;overflow:hidden;color:#6c7168;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:100px;padding:4px 8px;background:#e2e3dd;color:#4f544d;font-family:inherit;font-size:10px;font-weight:650}.status-pill i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-pill.status-published,.status-pill.status-preview_ready{background:#e1f0e9;color:#286d53}.status-pill.status-generating,.status-pill.status-refining,.status-pill.status-previewing,.status-pill.status-publishing,.status-pill.status-queued{background:#e7efea;color:var(--blue)}.status-pill.status-failed,.status-pill.status-publish_unknown{background:#fae5e4;color:#9e3e39}.status-pill.status-needs_confirmation{background:#f9ead4;color:#8b541b}.match-card,.stage-card{border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:24px;box-shadow:var(--shadow)}.match-card h2,.stage-card h3{margin:8px 0}.match-card>div:first-child>p:last-child,.stage-card p{margin:0;color:var(--muted);font-size:12px}.match-list{display:grid;gap:8px;margin-top:20px}.match-list button{position:relative;display:grid;gap:5px;width:100%;border:1px solid var(--line);border-radius:10px;padding:14px 105px 14px 14px;background:#fff;cursor:pointer;text-align:left}.match-list button:hover{border-color:#88b9a9;box-shadow:0 5px 18px #176a5414}.match-list b{line-height:1.4}.match-list small{color:var(--muted)}.match-source{color:var(--blue);font-family:DM Mono,monospace;font-size:9px;letter-spacing:.08em}.match-score{position:absolute;top:50%;right:14px;transform:translateY(-50%);border-radius:100px;padding:5px 8px;background:#edf1fa;color:var(--blue-dark);font-family:DM Mono,monospace;font-size:9px}.job-card{margin-bottom:18px;border:1px solid #ccdad3;border-radius:12px;padding:15px 17px;background:#f7faf8}.job-card.job-failed,.job-card.job-cancelled{border-color:#dfbebc;background:#fff3f2}.job-card.job-succeeded{border-color:#bfd7cb;background:#f0f8f4}.job-header{display:flex;justify-content:space-between;align-items:center;gap:20px}.job-header h3{margin:4px 0 0;font-size:13px}.job-kicker{color:var(--blue);font-family:DM Mono,monospace;font-size:9px;letter-spacing:.1em}.job-actions{display:flex;align-items:center;gap:8px}.progress-track{height:4px;overflow:hidden;margin-top:13px;border-radius:4px;background:#d2ded8}.progress-track span{display:block;height:100%;border-radius:inherit;background:var(--blue);transition:width .3s ease}.job-error{margin-top:10px;color:var(--red);font-size:11px}.job-log{max-height:170px;overflow:auto;margin-top:12px;border-top:1px solid rgba(23,106,84,.12);padding-top:8px;font-family:DM Mono,monospace;font-size:9px}.job-log>div{display:grid;grid-template-columns:66px minmax(0,1fr);gap:8px;padding:3px 0}.job-log time{color:#8d94a2}.job-log span{color:#535b6b}.spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(23,106,84,.2);border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.refinement-card,.refinement-result{margin-bottom:16px;border:1px solid #bfd5cc;border-radius:14px;padding:18px;background:linear-gradient(145deg,#f8fcfa,#eef6f2);box-shadow:0 8px 28px #176a540f}.refinement-heading,.refinement-result-heading,.refinement-result-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.refinement-heading h3,.refinement-result h3{margin:6px 0 5px;font-size:15px}.refinement-heading p:last-child{max-width:860px;margin:0;color:var(--muted);font-size:11px;line-height:1.6}.research-mode,.research-used,.research-local{flex:0 0 auto;border-radius:100px;padding:5px 9px;font-family:DM Mono,monospace;font-size:9px}.research-mode,.research-used{background:#d8eee4;color:#176a54}.research-local{background:#e5e9e7;color:#56615d}.refinement-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:14px}.refinement-compose textarea{width:100%;min-height:92px;resize:vertical;border:1px solid #b9cec5;border-radius:10px;outline:0;padding:11px 12px;background:#ffffffe6;color:var(--ink);font-size:12px;line-height:1.65}.refinement-compose textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #176a541c}.refinement-actions{min-width:174px;display:flex;flex-direction:column;justify-content:flex-end;gap:9px}.refinement-actions small,.refinement-result-actions small{color:var(--muted);font-size:9px;line-height:1.45}.refinement-result{border-color:#cfd8d4;background:#fff}.refinement-result blockquote{margin:13px 0 12px;border-left:3px solid #88c6b3;padding:8px 11px;background:#f4f8f6;color:#4f5c57;font-size:11px;line-height:1.6}.refinement-result ul{margin:0;padding-left:20px;color:#35433e;font-size:11px;line-height:1.75}.refinement-sources{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:13px;border-top:1px solid #e0e7e3;padding-top:11px;font-size:10px}.refinement-sources b{margin-right:3px;color:#5f6b66}.refinement-sources a{max-width:320px;overflow:hidden;border:1px solid #c8dad2;border-radius:100px;padding:4px 8px;color:var(--blue);text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.refinement-sources a:hover{border-color:#88b9a9;background:#f3f8f5}.refinement-result-actions{align-items:center;margin-top:14px}.editor-toolbar{position:sticky;top:68px;z-index:12;display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:57px;margin:0 -10px;padding:9px 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f7faf8f0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.validation-state,.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.validation,.lock-state{border-radius:100px;padding:5px 8px;font-size:10px;font-weight:650}.validation.strict{background:#daeee4;color:#23694e}.validation.changed{background:#e5ebee;color:#405760}.lock-state{background:#e3e4df;color:#565b54}.lock-state.locked{background:#f7e5d1;color:#81501e}.split-workbench{display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(360px,.95fr);min-height:600px;margin-top:16px;border:1px solid #cfd0c8;border-radius:13px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}.editor-pane,.preview-pane{min-width:0;display:flex;flex-direction:column}.editor-pane{border-right:1px solid #d8d9d2}.pane-label{height:36px;display:flex;justify-content:space-between;align-items:center;flex:0 0 auto;border-bottom:1px solid #dedfd8;padding:0 12px;background:#f4f4f0;color:#747970;font-family:DM Mono,monospace;font-size:9px;letter-spacing:.08em}.pane-label small{color:#999d96;font-family:inherit}.editor-pane .cm-editor{font-family:DM Mono,Noto Sans SC,monospace;font-size:12px}.editor-pane .cm-scroller{line-height:1.65}.editor-pane .cm-editor.cm-focused{outline:none}.editor-loading{min-height:520px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:11px}.preview-pane{background:#deded8}.preview-pane iframe{flex:1;width:100%;min-height:600px;border:0;background:#fff}.preview-empty{flex:1;min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#686d65;text-align:center}.preview-empty h3{margin:18px 0 5px;font-size:14px}.preview-empty p{margin:0;font-size:11px}.phone-outline{width:86px;height:145px;display:grid;place-items:center;border:2px solid #a9aaa4;border-radius:17px}.phone-outline span{width:30px;height:3px;align-self:start;margin-top:8px;border-radius:3px;background:#b9bab5}.reconcile-card{display:grid;grid-template-columns:minmax(270px,1fr) minmax(300px,1fr);gap:12px 18px;margin-bottom:18px;border:1px solid #dfaaa6;border-radius:12px;padding:18px;background:#fff1ef}.reconcile-card h3{margin:6px 0}.reconcile-card p:last-child{margin:0;color:#79524f;font-size:11px;line-height:1.55}.reconcile-card textarea,.reconcile-card input{width:100%;border:1px solid #d8aaa6;border-radius:8px;outline:0;padding:9px 10px;background:snow;font-size:11px}.reconcile-card input{grid-column:2}.reconcile-actions{grid-column:2;display:flex;justify-content:flex-end;gap:8px}.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#1b1d1a7a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal{width:min(480px,100%);border:1px solid #d2d2ca;border-radius:16px;padding:25px;background:var(--paper);box-shadow:0 30px 90px #12141147}.modal h2{margin:10px 0;font-size:20px}.modal>p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.6}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,#e7efea 0,transparent 32%),radial-gradient(circle at 85% 85%,#f1f5f2 0,transparent 28%),#f7faf8}.login-card{width:min(440px,100%);border:1px solid #d2d2c9;border-radius:20px;padding:40px;background:#fbfaf6eb;box-shadow:0 30px 90px #2b2e271f;text-align:center}.login-card h1{margin:10px 0 8px;font-family:Georgia,serif;font-size:34px;font-weight:500}.login-copy{margin:0 auto 24px;color:var(--muted);font-size:13px;line-height:1.7}.login-button{width:100%;text-decoration:none}.microcopy{margin:17px 0 0;color:#878b84;font-size:9px}.setup-note{display:grid;gap:5px;border:1px solid #dfc49d;border-radius:10px;padding:12px;background:#fff5e7;color:#80501d;font-size:11px}.centered-message{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.centered-message h1{margin:16px 0 5px;font-size:20px}.centered-message p{margin:0;color:var(--muted)}.centered-message .button{margin-top:18px}@media(max-width:1100px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.workspace{padding-inline:20px}.runtime-badges{display:none}.split-workbench{grid-template-columns:1fr}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}.reconcile-card{grid-template-columns:1fr}.reconcile-card input,.reconcile-actions{grid-column:1}.refinement-compose{grid-template-columns:1fr}.refinement-actions{min-width:0;align-items:flex-end}}@media(max-width:760px){.app-shell{display:block}.topbar{position:sticky;padding:0 14px}.sidebar{position:static;width:100%;height:auto;max-height:190px;border-right:0;border-bottom:1px solid var(--line)}.project-list{display:flex;gap:5px;overflow-x:auto}.project-item{flex:0 0 210px}.workspace{padding:16px 12px 50px}.composer-row{grid-template-columns:1fr}.project-heading{display:block}.project-heading-actions{margin-top:12px}.project-title-input{width:100%}.editor-toolbar{position:static;align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions .button{flex:1}.refinement-heading,.refinement-result-heading,.refinement-result-actions{align-items:stretch;flex-direction:column}.refinement-actions{align-items:stretch}.split-workbench{grid-template-columns:minmax(0,1fr)}.user-menu b{display:none}.match-list button{padding-right:14px}.match-score{position:static;transform:none;justify-self:start}}.input-tabs{display:flex;gap:8px;margin:18px 0 14px}.caption-upload{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}.caption-upload label{display:grid;gap:8px;font-size:13px;color:#476453}.caption-upload input{min-width:0;width:100%;padding:12px;border:1px solid #d5e2da;border-radius:10px;background:#fff;font:inherit}@media(max-width:720px){.caption-upload{grid-template-columns:1fr}}
