*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:#fff;color:#14161b;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8b94f0;outline-offset:4px}.work-header{height:88px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f0f1;gap:20px}.work-brand{font-size:25px;font-weight:850;letter-spacing:-1px}.work-brand span{font-size:15px;letter-spacing:0;margin-left:18px}.work-header nav{display:flex;gap:28px;font-size:13px;color:#555}.work-layout{width:min(1160px,calc(100% - 64px));margin:58px auto 100px;display:grid;grid-template-columns:310px minmax(0,1fr);gap:70px;align-items:start}.work-card{border:1px solid #e6e6e9;border-radius:18px;position:sticky;top:28px;overflow:hidden;background:#fff}.work-identity{display:flex;align-items:center;gap:17px;padding:25px}.work-icon{width:55px;height:55px;flex:none;background:#eff0ff;border:1px solid #e2e4fe;border-radius:14px;display:grid;place-items:center;color:#5962c4}.work-icon svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.work-identity h2{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere}.work-card-body{background:#fafafa;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:22px 25px}.work-card-body p{font-size:13px;line-height:1.9;color:#666;margin:0 0 22px;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.work-meta{display:grid;grid-template-columns:66px minmax(0,1fr);gap:13px 10px;font-size:12px;margin:0;line-height:1.7}.work-meta dt{color:#85858b}.work-meta dd{margin:0;overflow-wrap:anywhere}.work-meta a{text-decoration:underline;text-underline-offset:4px}.work-card-actions{padding:18px 24px;display:flex;gap:10px;flex-wrap:wrap}.work-card-actions .work-primary{flex:1}.work-primary,.work-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 23px;border-radius:30px;font-size:14px;font-weight:600;border:1px solid #111;background:#111;color:#fff;text-align:center;white-space:nowrap}.work-primary:hover{background:#333}.work-secondary{background:#fff;color:#26262b;border-color:#e4e4e9}.work-secondary:hover{background:#f5f5f7}.work-icon-button{width:44px;height:44px;border:1px solid #e4e4e9;background:#fff;border-radius:50%;display:grid;place-items:center}.work-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.work-breadcrumb{display:flex;gap:10px;align-items:center;font-size:12px;color:#8a8b92;margin:8px 0 28px;flex-wrap:wrap}.work-breadcrumb span:last-child{color:#333}.work-heading h1{font-size:34px;line-height:1.4;letter-spacing:-1px;margin:0 0 20px;overflow-wrap:anywhere}.work-heading>p{font-size:16px;color:#666;line-height:1.95;white-space:pre-line;overflow-wrap:anywhere;margin:0 0 28px}.work-badge{display:inline-flex;align-items:center;gap:6px;border-radius:5px;background:#f2f2f7;color:#686875;font-size:11px;padding:4px 9px;margin-bottom:12px}.work-badge i{width:5px;height:5px;border-radius:50%;background:#868bdf}.work-banner{border-radius:12px;overflow:hidden;background:#11131b;color:#fff;min-height:65px;padding:15px 20px;display:flex;align-items:center;gap:16px;margin:26px 0 32px;position:relative}.work-banner:after{content:"";width:90px;height:100px;position:absolute;right:125px;top:-20px;opacity:.25;background:repeating-linear-gradient(0deg,transparent 0 9px,#a6a6ff 9px 10px);transform:rotate(-18deg)}.work-banner b{font-size:17px;letter-spacing:-.6px}.work-banner em{color:#969bff;margin-left:5px;font-size:14px}.work-banner span{font-size:12px;color:#c4c4d0}.work-banner a{margin-left:auto;background:#fff;color:#111;border-radius:24px;font-size:11px;padding:9px 14px;position:relative;z-index:1}.work-section{margin:34px 0 0}.work-section h2{font-size:20px;margin:0 0 14px;letter-spacing:-.4px}.work-section>p{font-size:14px;line-height:1.85;color:#74747c}.work-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}.work-section-head h2{margin:0}.work-section-head small{font-size:11px;color:#888}.work-stage{background:#f7f7fa;border:1px solid #ebebf0;border-radius:16px;overflow:hidden;min-width:0}.stage-head{padding:14px 20px;border-bottom:1px solid #e7e7ed;display:flex;justify-content:space-between;font-size:11px;color:#858591;background:#fbfbfd}.stage-head strong{font-weight:500;color:#555563}.stage-body{padding:24px;min-height:200px}.stage-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;gap:10px;color:#8b8b9b;text-align:center;font-size:12px}.stage-empty .work-icon{margin-bottom:6px;width:70px;height:70px;background:white}.stage-empty b{font-size:17px;font-weight:600;color:#535363}.trial-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:20px;border-top:1px solid #e7e7ed;background:#fff}.trial-controls label{font-size:11px;color:#777;display:block;margin-bottom:8px}.trial-select{flex:1;min-width:150px}.trial-select select{width:100%;border:1px solid #e2e2e9;border-radius:8px;padding:11px 34px 11px 12px;background:#fff;color:#333;font-size:13px}.work-status{font-size:12px;color:#72727d;line-height:1.8;margin:12px 0;min-height:20px}.work-status.error{color:#b23a46}.work-status.success{color:#268161}.trial-note{color:#999;font-size:11px;line-height:1.8;margin:8px 0}.work-description{border-top:1px solid #eee;padding-top:26px}.work-description p{font-size:14px;line-height:1.9;color:#73737c;white-space:pre-line}.work-stats{display:flex;gap:30px;margin:8px 0 22px;flex-wrap:wrap}.work-stat{display:grid;gap:5px}.work-stat strong{font-size:27px;font-weight:650;letter-spacing:-.8px}.work-stat small{font-size:11px;color:#888}.work-details{margin-top:20px;border-top:1px solid #ebebf0;padding-top:16px}.work-details summary{font-size:12px;color:#777;cursor:pointer}.work-details pre{font:11px/1.7 ui-monospace,monospace;background:#f5f5f8;border-radius:8px;padding:16px;overflow:auto;max-height:320px;white-space:pre-wrap;overflow-wrap:anywhere}.work-gantt{display:grid;gap:9px}.gantt-row{display:grid;grid-template-columns:35px 1fr;gap:10px;align-items:center;font-size:10px;color:#777}.lane{position:relative;height:24px;background:#eaeaf0;border-radius:4px}.bar{position:absolute;height:20px;top:2px;border-radius:3px;min-width:1px;overflow:hidden;font-size:9px;padding:3px;color:#303247}.work-table{width:100%;border-collapse:collapse;font-size:12px}.work-table th,.work-table td{text-align:left;padding:12px 8px;border-bottom:1px solid #eee}.work-table th{font-weight:500;color:#8a8a92}.robot-scene{width:100%;display:block;max-height:340px}.robot-scene text{font:11px ui-sans-serif,system-ui;fill:#88889a}.robot-playback{display:flex;align-items:center;gap:12px;padding-top:12px}.robot-playback input{flex:1;min-width:40px;accent-color:#8883d9}.robot-playback button{border:1px solid #dedee8;border-radius:20px;background:#fff;padding:6px 14px;font-size:11px}.robot-playback span{font:10px monospace;color:#777}.robot-legend{display:flex;justify-content:center;gap:20px;font-size:10px;color:#858590}.robot-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;background:#8c83dc}.robot-legend span:nth-child(2) i{border:1px dashed #20a78b;background:transparent}.robot-legend span:nth-child(3) i{border-radius:50%;background:#565c77}.action-row{display:grid;grid-template-columns:55px 1fr 70px;gap:12px;font:11px monospace;align-items:center;margin:9px 0}.action-track{height:12px;border-radius:2px;background:linear-gradient(90deg,#e9e9ef 49.7%,#a5a5b7 49.7% 50.3%,#e9e9ef 50.3%);position:relative}.action-track i{position:absolute;height:8px;top:2px;background:#8b85d9;border-radius:2px}.work-preview-note{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f2f1fc;padding:17px 20px;border-radius:12px;margin-bottom:25px;color:#605995;font-size:12px}.work-preview-note>div{display:flex;gap:8px;flex-wrap:wrap}.work-preview-note b{display:block;margin-bottom:6px;font-size:14px}.work-preview-note button{font-size:12px;min-height:38px;padding:8px 16px}.work-feedback{font-size:12px;color:#666;text-align:center;min-height:18px}.work-engagement{grid-column:2;border-top:1px solid #eee;margin-top:25px;padding-top:25px}.work-engagement h2{font-size:20px}.engagement-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px}.engagement-bar button,.work-engagement form button{background:#111;color:#fff;border:0;border-radius:24px;padding:11px 21px}.work-engagement p,.work-engagement label{font-size:13px;color:#888;line-height:1.8}.work-engagement label{display:block;margin:20px 0 8px}.work-engagement textarea,.work-input{width:100%;border:1px solid #e4e4e9;border-radius:10px;padding:14px;resize:vertical;background:#fff;color:#333;font:13px/1.8 inherit}.work-engagement form button{margin-top:12px}.work-comment{padding:20px 0;border-top:1px solid #eee}.work-comment small{margin-left:16px;color:#aaa;font-size:11px}.work-comment strong{font-size:13px}.work-comment button{border:0;background:transparent;color:#999;font-size:11px}.work-engagement #work-comment-list:empty{display:none}.work-loading{height:160px;display:grid;place-items:center;color:#888;font-size:13px}.run-pulse{width:32px;height:32px;border:2px solid #e6e5f1;border-top-color:#8d87da;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.run-pulse{animation:none}}@media(max-width:950px){.work-layout{gap:35px;grid-template-columns:270px minmax(0,1fr);width:calc(100% - 40px)}.work-heading h1{font-size:29px}.work-banner span{display:none}}@media(max-width:700px){.work-header{height:70px;padding:0 20px}.work-brand{font-size:21px}.work-brand span{display:none}.work-header nav{gap:16px;font-size:12px}.work-layout{display:flex;flex-direction:column;width:calc(100% - 36px);margin:28px auto 60px;gap:28px}.work-card{position:static;width:100%}.work-identity{padding:20px}.work-identity h2{font-size:19px}.work-card-body{padding:18px 20px}.work-card-body p{display:none}.work-meta{grid-template-columns:65px 1fr;gap:8px}.work-card-actions{padding:15px 20px}.work-content{width:100%}.work-breadcrumb{margin:0 0 20px}.work-heading h1{font-size:28px}.work-heading>p{font-size:14px}.work-banner{padding:16px;gap:10px}.work-banner b{font-size:14px}.work-banner em{font-size:12px}.work-banner a{font-size:10px;padding:8px 10px}.stage-body{padding:16px}.trial-controls{padding:16px}.trial-controls .work-primary{padding:11px 18px}.work-preview-note{flex-direction:column;align-items:start}.work-engagement{width:100%}.work-stats{gap:20px}.work-stat strong{font-size:24px}}

.work-feedback:empty{display:none}

.robot-custom-stage .trial-controls {
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid #e7e7ed;
}
.robot-custom-stage #run-work { margin-left: auto; }
#robot-placement { display: flex; flex-wrap: wrap; gap: 8px; }
#robot-placement button { gap: 7px; min-height: 38px; padding: 8px 13px; font-size: 12px; }
#robot-placement button[aria-pressed="true"] { border-color: #9c94d9; background: #eeebfc; }
#robot-placement i { width: 11px; height: 11px; border-radius: 3px; }
.robot-start { background: #8d85d5; border: 1px solid #736ac0; }
.robot-target { background: #e5f5ef; border: 1px dashed #36977e; }
.robot-custom-status { padding: 0 20px; margin: 10px 0 0; }
.robot-custom-status:empty { display: none; }
.robot-editor { display: grid; justify-items: center; gap: 16px; }
.robot-board {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border: 1px solid #dbd8eb;
  border-radius: 50%;
  position: relative;
  touch-action: none;
  cursor: crosshair;
  background:
    linear-gradient(90deg, #ece9f5 1px, transparent 1px) center / 24px 24px,
    linear-gradient(#ece9f5 1px, transparent 1px) center / 24px 24px,
    #fcfbff;
}
.robot-board:focus-visible { outline: 3px solid #8b94f0; outline-offset: 5px; }
.robot-marker {
  position: absolute;
  width: clamp(29px, 9%, 38px);
  aspect-ratio: 1;
  border-radius: 6px;
  transform: translate(-50%, -50%);
  cursor: grab;
}
.robot-marker.selected { outline: 2px solid #6f64bd; outline-offset: 3px; }
.robot-editor p { margin: 0; color: #616171; font-size: 12px; line-height: 1.6; text-align: center; }

.workshop-editor { width: 100%; display: grid; gap: 14px; }
.workshop-stage .trial-controls { border-top: 0; border-bottom: 1px solid #e7e7ed; }
.workshop-editor .work-secondary { min-height: 38px; padding: 7px 13px; font-size: 12px; }
.workshop-editor > button { justify-self: start; }
.workshop-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.workshop-editor label { display: grid; gap: 4px; min-width: 0; margin: 0; color: #535361; }
.workshop-editor :is(input, select) { width: 100%; min-width: 0; min-height: 40px; padding: 8px; border: 1px solid #dcdbe3; border-radius: 7px; background: white; color: #252534; }
.workshop-editor fieldset { min-width: 0; margin: 0 0 12px; border: 1px solid #e4e2ec; border-radius: 10px; }
.workshop-editor legend { font-weight: 700; padding: 0 7px; }
.workshop-operation { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 8px; margin-bottom: 10px; }
.workshop-operation b { align-self: center; font-size: 12px; }
.workshop-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .workshop-operation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workshop-operation b { grid-column: 1 / -1; }
  .workshop-operation .remove-operation { grid-column: 1 / -1; justify-self: end; }
}
