.cap-shell,.cap-shell *,.cap-drawer,.cap-drawer *,.cap-report-dialog,.cap-report-dialog *{box-sizing:border-box}
.cap-shell{position:absolute;z-index:48;inset:calc(3.5rem + env(safe-area-inset-top,0px)) 0 0;display:flex;flex-direction:column;min-height:0;min-width:0;color:#363932;background:#faf9f5;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.cap-shell button,.cap-drawer button,.cap-report-dialog button{font-family:inherit;cursor:pointer}.cap-shell button:disabled,.cap-drawer button:disabled,.cap-report-dialog button:disabled{cursor:default}.cap-shell button:focus-visible,.cap-drawer button:focus-visible,.cap-report-dialog button:focus-visible{outline:3px solid #d9a18b;outline-offset:2px}
.cap-previewbar{flex:none;background:#fbf6ee;border-bottom:1px solid #eee5da}.cap-previewbar-inner{height:43px;max-width:1120px;margin:auto;padding:0 25px;display:flex;align-items:center;justify-content:space-between;gap:15px}.cap-preview-label{display:flex;align-items:center;gap:9px;font-size:11px;color:#8c8274;min-width:0}.cap-demo-badge{padding:4px 8px;border:1px solid #ead7c3;border-radius:6px;background:#f5e9da;color:#98684c;font-size:10px;font-weight:700;white-space:nowrap}.cap-exit{flex:none;border:1px solid #e6d7c9;border-radius:7px;background:#fffefa;color:#a9563b;font-size:11px;font-weight:700;padding:6px 10px}
.cap-scenario-wrap{flex:none;border-bottom:1px solid #eee9df;background:#fffefa}.cap-scenarios{max-width:1120px;margin:auto;padding:7px 25px;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:thin}.cap-scenario-caption{color:#aaa399;font-size:10px;margin-right:6px;white-space:nowrap}.cap-scenario{padding:6px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:#898980;font-size:11px;white-space:nowrap}.cap-scenario[aria-pressed=true]{background:#fbf1eb;border-color:#ecd1c3;color:#a9543a;font-weight:700}
.cap-layout{display:flex;flex:1;min-height:0;max-width:1180px;width:100%;margin:0 auto;gap:28px;padding:24px 25px 25px}.cap-main-scroll{flex:1;min-width:0;overflow:auto;overscroll-behavior:contain}.cap-main{max-width:750px;margin:0 auto;padding:0 1px 28px}.cap-user{display:flex;align-items:flex-end;flex-direction:column;margin:4px 0 26px}.cap-overline{font-size:9px;letter-spacing:.08em;color:#a8a69b;font-weight:700;margin:0 3px 7px}.cap-user-bubble{max-width:82%;padding:11px 15px;background:#f0eee8;border:1px solid #e8e5dc;border-radius:14px 14px 3px 14px;color:#50554d;font-size:12px;line-height:1.7}.cap-assistant-label{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#4a5048;font-size:12px;font-weight:700}.cap-avatar{width:25px;height:25px;display:grid;place-items:center;border:1px solid #e9ddd2;border-radius:8px;background:#fffdfa;color:#bf6446;font-family:Georgia,serif;font-size:14px;font-weight:bold}.cap-label-note{color:#aaa9a0;font-size:10px;font-weight:400}
.cap-card{overflow:hidden;border:1px solid #e8e3da;border-radius:15px;background:#fffefa;box-shadow:0 4px 18px rgba(56,47,37,.035)}.cap-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:21px 22px 16px}.cap-card-kicker,.cap-report-kicker{font-size:9px;font-weight:750;letter-spacing:.11em;color:#b1a99c}.cap-card-head h1{margin:6px 0 0;color:#303832;font-size:17px;line-height:1.35;font-weight:750}.cap-badge{padding:5px 8px;border-radius:999px;background:#fbefe8;color:#ac5a3e;font-size:10px;font-weight:700;white-space:nowrap}.cap-badge.completed{background:#edf5ef;color:#4b7960}.cap-badge.interrupted,.cap-badge.partial{background:#f9efe8;color:#aa6842}
.cap-current{display:flex;align-items:flex-start;gap:11px;margin:0 22px;padding:14px 15px;border:1px solid #f0e0d5;border-radius:11px;background:linear-gradient(115deg,#fcf3ed,#fffaf6)}.cap-current.completed{background:#f5faf5;border-color:#e2eee3}.cap-current-mark{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:9px;background:#fae8dc;color:#b35c3c;font-size:15px;font-weight:700}.cap-current.completed .cap-current-mark{background:#e6f1e8;color:#4b7960}.cap-current-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.cap-current-label{color:#a6988a;font-size:10px}.cap-current-copy strong{color:#483d33;font-size:13px;line-height:1.4}.cap-current-copy>span:last-child{color:#998b7d;font-size:11px;line-height:1.55}.cap-spinner{display:inline-block;width:12px;height:12px;border:1.6px solid #e7c8b8;border-top-color:#bf6647;border-radius:50%;animation:cap-spin .9s linear infinite}@keyframes cap-spin{to{transform:rotate(360deg)}}
.cap-meta{display:flex;align-items:center;gap:16px;padding:12px 23px 16px;color:#96958c;font-size:10px}.cap-meta-icon{color:#be8b73;font-size:13px}.cap-meta-hint{margin-left:auto;color:#bbb6ac}.cap-recovery,.cap-warning{margin:0 22px 15px;padding:12px 14px;border:1px solid #f0dfcf;border-radius:9px;background:#fff9f1;color:#967556;font-size:11px;line-height:1.6}.cap-recovery>div{display:flex;gap:8px;margin-top:9px}.cap-primary,.cap-secondary{padding:7px 10px;border-radius:7px;font-size:11px;font-weight:700}.cap-primary{border:1px solid #ba6243;background:#c86b49;color:white}.cap-secondary{border:1px solid #e7ded2;background:#fffefa;color:#8b6b58}.cap-warning span{display:block;margin-top:3px;color:#aa9885}
.cap-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 22px 9px;border-top:1px solid #f0ede6}.cap-list-head h2{margin:0;color:#444c44;font-size:12px;font-weight:750}.cap-list-head p{margin:4px 0 0;color:#aaa99f;font-size:10px}.cap-link,.cap-stage-expand{border:0;background:transparent;padding:5px 0;color:#b45e40;font-size:10px;font-weight:700;white-space:nowrap}.cap-stage-list{margin:0;padding:0 22px 10px;list-style:none}.cap-stage{display:flex;gap:11px;position:relative;padding:10px 0}.cap-stage:not(:last-child)::before{content:"";position:absolute;left:7px;top:24px;bottom:-10px;width:1px;background:#e9e6dd}.cap-stage-mark{z-index:1;display:grid;place-items:center;flex:none;width:15px;height:15px;margin-top:2px;border:1px solid #e6e4dd;border-radius:50%;background:#fffefa;color:#9d9d93;font-size:9px;font-weight:bold}.cap-stage.done .cap-stage-mark,.cap-stage.reused .cap-stage-mark{border-color:#e1eee3;background:#edf5ef;color:#5a8368}.cap-stage.running .cap-stage-mark{border-color:#f4e5db;background:#fff8f2}.cap-stage.stopped .cap-stage-mark,.cap-stage.warning .cap-stage-mark{border-color:#f2ded1;background:#fdf2e9;color:#b57049}.cap-stage-body{flex:1;min-width:0}.cap-stage-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.cap-stage-line strong{color:#565c54;font-size:12px;font-weight:700;line-height:1.5}.cap-stage.pending .cap-stage-line strong,.cap-stage.pending .cap-stage-note{color:#b0b0a7}.cap-stage-status{flex:none;color:#8f9187;font-size:11px}.cap-stage-status.running{color:#bd6848}.cap-stage-status.done,.cap-stage-status.reused{color:#699078}.cap-stage-status.stopped,.cap-stage-status.warning{color:#b6784e}.cap-stage-note{margin-top:3px;color:#94968a;font-size:11px;line-height:1.5}.cap-stage-expand{margin-top:1px;font-size:11px}.cap-summary{margin:4px 0 2px;padding:10px 12px;border:1px solid #eee8df;border-radius:8px;background:#faf9f5;color:#7a7e73;font-size:10px;line-height:1.7;overflow-wrap:anywhere}.cap-summary>span{color:#a08c7b;font-weight:700}.cap-summary p{margin:5px 0}.cap-summary small{color:#adaca2;font-size:10px}.cap-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 22px;border-top:1px solid #f0ede6;color:#aaa99f;font-size:10px}.cap-mobile-report-link{display:none;border:0;background:transparent;color:#af5c3e;font-weight:700;font-size:10px}.cap-disclaimer{margin:13px 3px;color:#b2afa5;font-size:10px;line-height:1.6}
.cap-report-panel{width:305px;flex:none;display:none;flex-direction:column;align-self:flex-start;max-height:100%;overflow:hidden;border:1px solid #e8e2d9;border-radius:15px;background:#fffefa;box-shadow:0 4px 18px rgba(56,47,37,.025)}.cap-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:19px 17px 14px}.cap-report-heading h2,.cap-drawer-header h2{margin:5px 0 3px;color:#3d413a;font-size:16px;font-weight:750}.cap-report-heading p,.cap-drawer-header p{margin:0;color:#a5a49a;font-size:10px}.cap-report-count{padding:4px 7px;border-radius:7px;background:#f4f0e8;color:#968374;font-size:10px}.cap-report-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:0 17px 12px}.cap-report-tabs button{border:1px solid transparent;border-radius:999px;padding:5px 8px;background:#f6f4ef;color:#96968c;font-size:10px;white-space:nowrap}.cap-report-tabs button[aria-pressed=true]{background:#bf6849;color:#fff}.cap-report-list{min-height:0;overflow:auto;padding:0 10px 8px;overscroll-behavior:contain}.cap-report-row{display:flex;align-items:center;gap:9px;width:100%;min-height:53px;margin:1px 0;padding:7px 8px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left}.cap-report-row.ready:hover{border-color:#ead7cb;background:#fffaf5}.cap-report-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:8px;background:#fbefe8;color:#bc684a;font-size:11px;font-weight:750}.cap-report-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.cap-report-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555b53;font-size:11.5px}.cap-report-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#99998f;font-size:10px}.cap-report-state{flex:none;color:#b56243;font-size:10px;font-weight:700;white-space:nowrap}.cap-report-row.pending .cap-report-icon{background:#f5f3ee;color:#c4c0b8}.cap-report-row.pending .cap-report-copy strong,.cap-report-row.pending .cap-report-state{color:#bbb9b1}.cap-report-row.warning .cap-report-state{color:#b57850}.cap-report-foot{flex:none;border-top:1px solid #f0ede6;padding:10px 17px;color:#b5b1a7;font-size:9px}.cap-report-fab{position:fixed;z-index:92;right:18px;bottom:calc(125px + env(safe-area-inset-bottom));display:grid;place-items:center;width:49px;height:49px;padding:0;border:0;border-radius:50%;background:#c96442;color:#fff;box-shadow:0 5px 18px rgba(145,76,48,.28);font-size:22px;cursor:pointer}.cap-report-fab i{position:absolute;right:-2px;top:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:2px solid #faf9f5;border-radius:50%;background:#fff;color:#be6546;font-size:9px;font-style:normal;font-weight:700}.cap-report-fab:focus-visible{outline:3px solid #d9a18b;outline-offset:2px}.cap-mobile-report-link{display:block}
.cap-compose{flex:none;width:100%;max-width:1180px;margin:0 auto;padding:0 25px 13px}.cap-compose-inner{max-width:750px;margin:auto;padding:9px 13px;border:1px solid #e8e1d6;border-radius:14px;background:#fffefa;box-shadow:0 5px 18px rgba(56,47,37,.04)}.cap-compose-tag{display:inline-block;padding:4px 7px;border-radius:7px;background:#f6f1e9;color:#a76148;font-size:10px;font-weight:700}.cap-compose-line{display:flex;align-items:center;gap:10px;margin-top:7px;color:#b2b1a7;font-size:12px}.cap-compose-clip{font-size:17px;color:#aaa79e}.cap-compose-send{display:grid;place-items:center;width:26px;height:26px;margin-left:auto;border-radius:50%;background:#f0ebe4;color:#c2bdb4;font-size:16px}.cap-compose-note{max-width:750px;margin:5px auto 0;text-align:center;color:#b8b4aa;font-size:9px}
.cap-overlay{position:fixed;z-index:90;inset:0;background:rgba(32,29,26,.35)}.cap-drawer{position:fixed;z-index:91;transform-origin:bottom right;animation:cap-report-open .22s cubic-bezier(.2,.75,.25,1) both;left:0;right:0;bottom:0;display:flex;flex-direction:column;max-height:82dvh;height:min(620px,82dvh);border-radius:18px 18px 0 0;background:#fffefa;box-shadow:0 -12px 36px rgba(35,31,26,.15)}@keyframes cap-report-open{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.cap-grip{flex:none;width:36px;height:4px;margin:9px auto 0;border-radius:10px;background:#dedbd2}.cap-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:15px 18px}.cap-close{display:grid;place-items:center;width:32px;height:32px;flex:none;border:0;border-radius:8px;background:#f5f2ec;color:#8d8b81;font-size:20px}.cap-report-overlay{z-index:92}.cap-report-dialog{position:fixed;z-index:93;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;width:min(700px,calc(100vw - 36px));max-height:min(680px,calc(100dvh - 40px));overflow:hidden;border:1px solid #e8e1d7;border-radius:15px;background:#fffefa;box-shadow:0 18px 60px rgba(35,31,26,.2);color:#3d413a;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.cap-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #f0ede6}.cap-dialog-head span{color:#b0a397;font-size:10px}.cap-dialog-head h2{margin:5px 0 0;font-size:16px}.cap-dialog-switch{display:flex;gap:6px;flex:none;overflow-x:auto;padding:12px 18px;border-bottom:1px solid #f0ede6}.cap-dialog-switch button{flex:none;padding:7px 9px;border:1px solid #ede7dd;border-radius:7px;background:#fffefa;color:#8c8d83;font-size:10px}.cap-dialog-switch button[aria-pressed=true]{border-color:#e5c4b3;background:#fbefe8;color:#a9543a;font-weight:700}.cap-dialog-switch button:disabled{opacity:.4}.cap-dialog-content{overflow:auto;padding:24px 22px 30px}.cap-dialog-badge{display:inline-block;padding:4px 7px;border-radius:5px;background:#f7ede4;color:#aa7055;font-size:10px}.cap-dialog-content h3{margin:14px 0 7px;font-size:19px}.cap-dialog-content p{margin:0;color:#a09f95;font-size:11px}.cap-dialog-placeholder{margin:22px 0;padding:18px;border:1px solid #eee9df;border-radius:10px;background:#faf9f5;color:#8c8f84;font-size:11px;line-height:1.8}
@media(min-width:768px){.cap-drawer{left:auto;right:18px;bottom:calc(185px + env(safe-area-inset-bottom));width:min(310px,calc(100vw - 36px));height:auto;max-height:calc(100dvh - 260px);border:1px solid #e8e2d9;border-radius:18px}.cap-grip{display:none}}
@media(max-width:1100px){.cap-layout{gap:0}.cap-main{max-width:730px}}
@media(max-width:640px){.cap-compose{padding:0 13px max(8px,env(safe-area-inset-bottom))}.cap-compose-inner{padding:7px 11px}.cap-compose-note{display:none}.cap-shell{inset:calc(3.5rem + env(safe-area-inset-top,0px)) 0 0}.cap-previewbar-inner{height:40px;padding:0 14px}.cap-preview-label{gap:6px;font-size:10px}.cap-scenarios{padding:6px 13px;gap:2px}.cap-scenario-caption{display:none}.cap-scenario{padding:6px 8px;font-size:10px}.cap-layout{padding:18px 13px 10px}.cap-user{margin:0 0 20px}.cap-user-bubble{max-width:91%;font-size:11px}.cap-card-head{padding:18px 15px 14px}.cap-card-head h1{font-size:16px}.cap-current{margin:0 15px;padding:12px}.cap-meta{padding:11px 16px 14px;gap:9px;flex-wrap:wrap}.cap-meta-hint{display:none}.cap-recovery,.cap-warning{margin:0 15px 12px}.cap-list-head{padding:15px 15px 8px}.cap-stage-list{padding:0 15px 8px}.cap-stage-line{padding-right:48px}.cap-card-foot{padding:11px 65px 11px 15px}.cap-disclaimer{padding-right:55px}.cap-report-fab{right:15px;bottom:calc(103px + env(safe-area-inset-bottom))}.cap-report-dialog{width:calc(100vw - 22px);max-height:calc(100dvh - 24px)}.cap-dialog-content{padding:20px 17px}}
@media(prefers-reduced-motion:reduce){.cap-spinner,.cap-drawer{animation:none}}
