.matching-scene{position:relative;isolation:isolate;min-height:620px;padding:28px 0 36px;overflow:hidden;color:#182134}
.matching-intro{position:relative;z-index:2;max-width:640px;margin-bottom:60px}.matching-intro h1{font-size:clamp(28px,3vw,42px);line-height:1.3;letter-spacing:-.035em;margin:14px 0}.matching-intro p{max-width:490px;font-size:15px;line-height:1.8;color:#596477}
.matching-art{position:absolute;inset:100px 21% 15px;z-index:-1;display:grid;place-items:center;pointer-events:none}.matching-art img{width:min(100%,480px);height:auto;opacity:.65;filter:drop-shadow(0 18px 30px #3c60bc20);animation:scene-hover 6s ease-in-out infinite}
.matching-columns{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(200px,1fr) minmax(300px,1.1fr);align-items:end;gap:28px}.scene-metrics{grid-column:1}.matching-action{grid-column:3;backdrop-filter:blur(12px);background:linear-gradient(100deg,#eff1f520,#eff1f5b3);padding:20px 0 20px 24px;border-left:1px solid #c5cfdf}
.scene-section-title{display:flex;flex-direction:column;gap:7px;font-size:14px}.scene-section-title small{font-size:11px;color:#667080}.scene-metric{padding:18px 0 12px;border-bottom:1px solid #bac7df80}.scene-metric>span{font-size:13px;color:#58667c}.scene-metric strong{font-size:36px;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums}.scene-metric small{font-size:12px;margin-left:8px}.scene-bars{display:flex;gap:4px;height:26px;align-items:end;margin-top:6px}.scene-bars i{width:5px;height:var(--bar);background:#4467e24d;border-radius:2px;animation:scene-bar 3.6s ease-in-out var(--delay) infinite}.scene-metrics .text-btn{font-size:12px;margin-top:12px;padding-left:0}
.matching-action h2{font-size:23px;line-height:1.45;margin:18px 0}.matching-account{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0;padding:16px 0;border-block:1px solid #bac7df80}.matching-account dt{font-size:12px;color:#596477}.matching-account dd{margin:6px 0 0;font-size:21px;font-weight:550;font-variant-numeric:tabular-nums}.matching-action p{font-size:13px;line-height:1.8;color:#596477}.matching-action .primary{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:24px;min-height:48px}.matching-action>small{display:block;text-align:center;margin-top:12px;color:#667080;font-size:11px}
.matching-knowledge{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:32px 0;border-top:1px solid #c4ccda}.matching-knowledge>div+div{border-left:1px solid #c4ccda;padding-left:28px}.matching-knowledge span{font-size:11px;color:#596c9a}.matching-knowledge h3{font-size:17px;margin:12px 0}.matching-knowledge p{font-size:14px;line-height:1.8;color:#596477}
#task-scene-form{display:grid;gap:18px}.scene-editor-row{display:grid;grid-template-columns:1.4fr 1fr .7fr 1fr;gap:12px;border:1px solid #ccd3df;padding:16px;min-width:0}.scene-editor-row label{min-width:0}.scene-editor-row input{width:100%}
@keyframes scene-hover{50%{transform:translateY(-10px)}}@keyframes scene-bar{50%{transform:scaleY(.45);opacity:.5}}
.scene-paused *{animation-play-state:paused!important}
@media(max-width:1100px){.matching-columns{grid-template-columns:1fr 1.25fr;gap:100px}.matching-action{grid-column:2}.matching-art{inset:120px 16% 80px;opacity:.45}.matching-intro{margin-bottom:35px}}
@media(max-width:700px){.matching-scene{padding-top:12px;min-height:0}.matching-intro{margin-bottom:24px}.matching-intro h1{font-size:28px;max-width:330px}.matching-art{inset:140px -80px auto 30%;height:300px;opacity:.3}.matching-columns{display:flex;flex-direction:column-reverse;gap:32px;align-items:stretch}.matching-action{padding:16px 0;border-left:0;background:transparent;backdrop-filter:none}.matching-action h2{font-size:21px;max-width:75%}.matching-account{margin:18px 0}.scene-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.scene-section-title{grid-column:1/-1;flex-direction:row;justify-content:space-between;flex-wrap:wrap}.scene-metric strong{font-size:25px}.scene-metric small{display:block;margin:0}.scene-bars{gap:2px;overflow:hidden}.scene-bars i{min-width:3px}.scene-metrics .text-btn{grid-column:1/-1;justify-self:start;margin-top:0}.matching-knowledge{grid-template-columns:1fr;gap:20px}.matching-knowledge>div+div{border-left:0;padding-left:0;padding-top:20px;border-top:1px solid #d1d7e2}.scene-editor-row{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.matching-scene *{animation:none!important}}

/* NODE AI companion: idle, opening the notebook. */
.task-companion {
  display: block;
  aspect-ratio: 1;
  position: relative;
  pointer-events: none;
  user-select: none;
}
.companion-figure, .companion-network {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.companion-figure {
  background: url('/assets/node-companion.webp') 0 0 / 300% 200% no-repeat;
}
.companion-network { overflow: visible; fill: none; stroke: #7696d9; stroke-width: .23; }
.companion-network circle { fill: #c4e0ff; stroke: #5b80ce; stroke-width: .36; }
.companion-network .companion-trace {
  stroke: #396afb; stroke-width: .65; stroke-linecap: round; stroke-dasharray: 2 100;
}
.matching-art .task-node-diagram { width: min(100%, 430px); }
.companion-work {
  float: right;
  width: 112px;
  height: 78px;
  margin: 0 0 4px 8px;
  overflow: hidden;
}
.companion-work .companion-figure {
  inset: -3px auto auto -27%; width: 150%; height: auto; aspect-ratio: 1;
}
.attempt-summary { clear: both; }
.companion-work .companion-figure { background-position: 50% 100%; }
.ai-stage .task-companion { width: 100%; }
@keyframes companion-unfold {
  0% { background-position: 0 0; }
  17% { background-position: 50% 0; }
  40% { background-position: 100% 0; }
  64% { background-position: 0 100%; }
  100% { background-position: 50% 100%; }
}
@keyframes companion-type {
  0%, 100% { background-position: 50% 100%; }
  50% { background-position: 100% 100%; }
}
@keyframes companion-relay { from { stroke-dashoffset: 4; } to { stroke-dashoffset: -98; } }
@media (prefers-reduced-motion: no-preference) {
  .companion-network .companion-trace { animation: companion-relay 4s ease-in-out infinite; }
  .companion-work .companion-figure {
    animation: companion-unfold 1.4s step-end, companion-type 1.2s step-end 1.4s infinite;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .matching-art .task-node-diagram { width: min(100%, 320px); }
}
@media (max-width: 700px) {
  .matching-scene .matching-art {
    inset: 0 0 auto auto; width: clamp(98px, 29vw, 148px); height: auto;
    aspect-ratio: 1; opacity: 1;
  }
  .matching-intro { min-height: 96px; padding-right: clamp(100px,29vw,150px); margin-bottom: 8px; }
  .matching-intro h1 { font-size: clamp(21px,5.4vw,26px); }
  .matching-intro p { font-size: 13px; line-height: 1.5; }
  .matching-columns { gap: 16px; }
  .companion-work { width: 86px; height: 60px; margin-left: 5px; }
}


/* A quiet field across the viewport, with signal paths confined to the gutters. */
.user-shell .main:has(.task-backdrop) { isolation: isolate; }
.task-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: radial-gradient(circle, #657ba536 .75px, transparent 1px);
  background-size: 22px 22px;
  background-position: 8px 6px;
}
.task-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #678ad4 1px, transparent 1.4px);
  background-size: 132px 154px;
  background-position: 41px 50px;
  opacity: .22;
}
.task-backdrop svg { position: absolute; inset: 0 auto 0 0; height: 100%; width: clamp(14px,2.7vw,46px); }
.task-backdrop svg:last-child { inset: 0 0 0 auto; transform: scale(-1,-1); }
.task-backdrop path { fill: none; stroke: #8aa5d57a; stroke-width: .9; vector-effect: non-scaling-stroke; }
.task-backdrop rect { fill: #9cb8e6; }
.task-backdrop .edge-signal { stroke: #5b82c3; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .8 99.2; }
.sample-frame { fill: none; stroke: #5279c7; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .task-backdrop::before { animation: sample-dots 9s ease-in-out infinite alternate; }
  .edge-signal { animation: edge-travel 12s linear infinite; }
  .task-backdrop svg:last-child .edge-signal { animation-delay: -5s; }
  .sample-frame { animation: sample-focus 6s ease-in-out infinite; }
  .task-backdrop:has(+ .scene-paused)::before,
  .task-backdrop:has(+ .scene-paused) .edge-signal { animation-play-state: paused; }
}
@keyframes edge-travel { to { stroke-dashoffset: -100; } }
@keyframes sample-dots { to { opacity: .48; } }
@keyframes sample-focus {
  0%, 100% { transform: scale(1.09); opacity: .5; }
  40%, 72% { transform: scale(.94); opacity: .95; }
}

.task-node-diagram { display: block; height: auto; }
.node-route { stroke: #8faee7; stroke-width: 1; }
.node-pulse { stroke: #568be8; stroke-width: 2.8; stroke-dasharray: 3 97; stroke-linecap: round; }
.ai-stage .task-node-diagram { position: relative; width: min(74%, 245px); z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .node-pulse { animation: node-route-travel 5s linear var(--phase) infinite; }
}
@keyframes node-route-travel { to { stroke-dashoffset: -100; } }

.matching-work{display:grid;gap:8px;margin:16px 0 0;padding-top:14px;border-top:1px solid #cbd4e1}
.matching-work header,.matching-work>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.matching-work h3{margin:0;font-size:15px}.matching-work time,.matching-work small{font-size:12px;color:#58657b}
.matching-work>div{font-size:13px;font-variant-numeric:tabular-nums}.matching-work progress{display:block;width:100%;height:6px;accent-color:#3047df}
@media(max-width:700px){.matching-work{margin-top:12px;padding-top:12px}.matching-work+.primary{margin-top:16px}}

.task-reset-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  padding: 13px 16px;
  border: 1px solid #d6dff7;
  border-radius: 8px;
  background: #f1f5ff;
  color: #24365d;
  text-align: left;
}
.task-reset-notice .reset-check {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #dfe8ff;
  color: #2849bf;
}
.task-reset-notice strong { font-size: 15px; line-height: 24px; }
.task-reset-notice p { margin: 3px 0 0; color: #4f6080; font-size: 13px; line-height: 1.5; }
