:root{color:#1c1917;background:#faf9f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{color:#fff;cursor:pointer;background:#33509e;border:0;border-radius:7px;min-height:36px;padding:8px 14px;font-size:13px;font-weight:700}button:disabled{cursor:not-allowed;background:#c9c4ba}button.secondary{color:#1c1917;background:#fff;border:1px solid #e7e3dd}button.mini{min-height:28px;padding:5px 8px;font-size:11px}button.loading-button{position:relative}button.loading-button:after{content:"";vertical-align:-2px;border:2px solid #ffffff8c;border-top-color:#fff;border-radius:50%;width:12px;height:12px;margin-left:8px;animation:.75s linear infinite spin;display:inline-block}input,select{color:#1c1917;background:#fbfaf8;border:1px solid #e7e3dd;border-radius:7px;outline:none;width:100%;min-height:36px;padding:8px 10px}h1,h2,p{margin:0}h1{font-size:18px;font-weight:800}h2{margin-bottom:14px;font-size:14px;font-weight:800}p{color:#8a8478;font-size:13px}label{color:#8a8478;gap:6px;font-size:12px;font-weight:600;display:grid}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{flex-direction:column;height:100vh;display:flex;overflow:hidden}.topbar{background:#fff;border-bottom:1px solid #e7e3dd;flex:none;justify-content:space-between;align-items:center;padding:18px 28px;display:flex}.topbar p{margin-top:3px}.segmented{border:1px solid #e7e3dd;border-radius:8px;display:flex;overflow:hidden}.segmented button{color:#78716c;background:#fff;border-radius:0;min-height:32px;padding:6px 14px}.segmented button+button{border-left:1px solid #e7e3dd}.segmented button.active{color:#fff;background:#1c1917}.auth-strip,.message{background:#fff;border-bottom:1px solid #e7e3dd;flex:none;align-items:center;gap:12px;padding:10px 28px;display:flex}.auth-strip label{min-width:260px}.message{color:#b64b3c;font-size:13px;font-weight:700}.workspace{flex:auto;gap:20px;min-height:0;padding:24px 28px;display:flex;overflow:auto}.sidebar{flex-direction:column;flex:0 0 340px;gap:18px;min-height:0;display:flex}.main-column{flex-direction:column;flex:auto;gap:14px;min-width:0;display:flex}.panel,.doc-list,.preview-panel,.detail-panel{background:#fff;border:1px solid #e7e3dd;border-radius:12px}.panel{padding:20px}.field-stack{gap:12px;display:grid}.option-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 82px;gap:8px;display:grid}.actions{gap:8px;margin-top:16px;display:flex}.actions.two>*{flex:1 1 0}.saved{color:#4d7a54;margin-top:10px;font-size:12px;font-weight:700}.status-row{border-radius:9px;align-items:flex-start;gap:10px;margin-top:10px;padding:11px;display:flex}.status-row.idle,.status-row.checking{background:#f5f4f1}.status-row.ok{background:#eef4ec}.status-row.error{background:#fbeeeb}.status-icon{color:#fff;border-radius:50%;flex:0 0 20px;justify-content:center;align-items:center;height:20px;font-size:12px;font-weight:800;display:flex}.status-row.idle .status-icon,.status-row.checking .status-icon{background:#a8a29e}.status-row.ok .status-icon{background:#4d7a54}.status-row.error .status-icon{background:#b64b3c}.status-row small{color:#78716c;overflow-wrap:anywhere;font-size:12px;line-height:1.4;display:block}.jobs-panel{flex-direction:column;flex:220px;min-height:160px;display:flex;overflow:hidden}.empty-small{color:#a8a29e;text-align:center;padding:12px 0;font-size:13px}.job-list{overscroll-behavior:contain;gap:10px;min-height:0;padding-right:3px;display:grid;overflow-y:auto}.job-card{cursor:pointer;border-bottom:1px solid #f0ede7;gap:7px;padding:10px 0;display:grid}.job-head,.job-meta,.detail-head,.preview-head{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.job-name{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;overflow:hidden}.badge{color:#78716c;border-radius:999px;flex:none;padding:3px 8px;font-size:11px;font-weight:800}.badge.ok{color:#4d7a54;background:#eef4ec}.badge.error{color:#b64b3c;background:#fbeeeb}.badge.running{color:#33509e;background:#eaeffb}.badge.pending,.badge.muted{color:#78716c;background:#f0ede7}.progress{background:#f0ede7;border-radius:4px;height:6px;overflow:hidden}.progress span{background:#33509e;height:100%;display:block}.job-meta{color:#a8a29e;font-size:11px}.job-actions{flex-wrap:wrap;gap:6px;display:flex}.toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:10px;display:flex}.toolbar h2{margin:0 4px 0 0}.toolbar input{background:#fff;flex:180px;min-width:160px}.selection-count{color:#8a8478;white-space:nowrap;font-size:12px}.content-grid{flex:auto;gap:14px;min-height:0;display:flex}.doc-list{flex:0 0 360px;min-height:320px;padding:6px;overflow:auto}.doc-row{cursor:pointer;border-radius:8px;align-items:center;gap:9px;min-height:38px;padding-top:8px;padding-bottom:8px;padding-right:10px;display:flex}.doc-row.selected{background:#f3f1eb}.doc-row input{flex:0 0 15px;width:15px;min-height:15px}.doc-title{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.doc-kind{color:#8a8478;background:#f0ede7;border-radius:999px;flex:none;padding:2px 7px;font-size:10px;font-weight:800}.preview-panel{flex:auto;min-width:0;min-height:320px;overflow:auto}.preview-body{padding:24px 28px}.warning-box{color:#8a5c1a;background:#fbf3e3;border:1px solid #edd9ae;border-radius:9px;gap:5px;margin:0 0 16px;padding:10px 14px;font-size:12px;display:grid}.markdown-preview{color:#292524;white-space:pre-wrap;word-break:break-word;background:0 0;border:0;max-height:none;margin:0;padding:0;font:14px/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:visible}.preview-meta{color:#a8a29e;gap:12px;margin-top:18px;font-size:12px;display:flex}.empty-state{color:#a8a29e;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;height:100%;min-height:300px;padding:40px 24px;display:flex}.empty-state span{background:#f0ede7;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;display:flex}.empty-state strong{color:#57534e;font-size:13px}.empty-state p{max-width:260px}.skeleton{gap:12px;padding:16px;display:grid}.skeleton span{background:#f0ede7;border-radius:5px;height:14px}.detail-panel{flex:none;padding:18px 20px;overflow:hidden}.detail-head h2{margin-bottom:0}.item-list{border:1px solid #f0ede7;border-radius:8px;margin-top:14px;overflow:hidden}.item-row{border-bottom:1px solid #f0ede7;grid-template-columns:minmax(0,1.4fr) auto minmax(70px,.5fr) minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:8px;min-height:38px;padding:8px 10px;display:grid}.item-row:last-child{border-bottom:0}.item-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.item-title{font-weight:700}.item-row .warning-text{color:#8a5c1a;white-space:normal;word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:36px;line-height:1.45;display:-webkit-box;overflow:hidden}.item-row .warning-text:hover,.item-row .warning-text:focus{z-index:2;-webkit-line-clamp:unset;background:#fff8e8;border:1px solid #edd9ae;border-radius:6px;outline:none;max-height:160px;margin:-4px -6px;padding:4px 6px;position:relative;overflow:auto}@media (width<=1180px){.content-grid{flex-direction:column}.doc-list{flex:none;max-height:360px}}@media (width<=760px){.app-shell{height:auto;min-height:100vh;overflow:visible}.topbar{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}.workspace{flex-direction:column;padding:16px;overflow:visible}.sidebar{flex-basis:auto;width:100%}.jobs-panel{flex:none}.job-list{max-height:360px}.option-grid,.item-row{grid-template-columns:minmax(0,1fr)}.toolbar{align-items:stretch}.toolbar button,.toolbar input{flex:100%}.auth-strip{flex-direction:column;align-items:stretch;padding:12px 16px}.auth-strip label{min-width:0}}
