/* DevCraft content visual v1 palette and system font; scoped local interactive demo. */
:root{--brand:#024239;--ink:#203c34;--muted:#526e62;--paper:#f8f7f2;--surface:#fff;--line:#dce3dc;--soft:#eef3ed;--sage:#dce9df;--sand:#eee4cd;--pending:#785515;--pending-fill:#f6e9cd;--error:#914e42;--error-fill:#f8e7df;--font:"Apple SD Gothic Neo","Noto Sans KR",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);letter-spacing:-.025em;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b7a167;outline-offset:4px}button,a,input,select{-webkit-tap-highlight-color:transparent}button{transition:background .15s,border-color .15s}h1,h2,h3,h4,p,dl,dd{margin:0}button{border:0}button[hidden],[hidden]{display:none!important}.demo{max-width:1240px;margin:0 auto;padding:48px 40px 32px}.intro{padding:0 0 32px;max-width:800px}.eyebrow,.step-label{font-size:14px;color:var(--muted);font-weight:600}.intro h1{font-size:46px;line-height:1.2;font-weight:650;letter-spacing:-.055em;margin-top:16px;color:var(--brand)}.intro-copy{max-width:680px;font-size:18px;line-height:1.75;margin-top:20px;color:var(--muted)}.example-note{font-size:13px;line-height:1.6;color:var(--muted);margin-top:14px}.scene-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #bdcfc1;gap:8px;padding:0 0 12px}.scene-nav button{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 14px;text-align:left;background:transparent;color:var(--muted);border-radius:10px;font-size:16px;line-height:1.45}.scene-nav span{font-size:13px;opacity:.8}.scene-nav button[aria-current=step]{background:var(--brand);color:#fff;font-weight:600}.scene-nav button:hover:not([aria-current=step]){background:#e9eee5}.scene-heading{display:flex;justify-content:space-between;gap:32px;align-items:flex-start;padding:32px 0 24px}.scene-heading>div:first-child{max-width:810px}.scene-heading h2{font-size:28px;line-height:1.4;font-weight:650;letter-spacing:-.04em;margin-top:7px}.scene-heading p:not(.step-label){font-size:16px;line-height:1.75;color:var(--muted);max-width:760px;margin-top:12px}.session-control{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.session-control label{font-size:13px;color:var(--muted)}select{background:#fff;border:1px solid #bdcfc1;border-radius:8px;min-height:44px;padding:9px 32px 9px 12px;color:var(--ink);font-size:15px}.workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}.app-stage{padding:18px;background:var(--sage);border-radius:20px;min-width:0}.stage-label{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:14px;line-height:1.45;font-weight:650}.stage-label>span:last-child{color:var(--muted);font-weight:400;font-size:12px}.app-window{background:#fff;border:1px solid #cbd9cf;border-radius:12px;overflow:hidden;min-height:480px}.app-header{display:flex;justify-content:space-between;gap:16px;padding:18px 24px;background:var(--brand);color:#fff;align-items:center}.app-header p{font-size:17px;font-weight:600}.app-header span{font-size:14px;color:#d7e7dd}.app-content{padding:28px 24px}.app-view-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:25px}.section-kicker,.small-label{font-size:13px;line-height:1.5;color:var(--muted)}.app-view-heading h3{font-size:26px;line-height:1.35;margin-top:5px;font-weight:650;letter-spacing:-.035em}.text-button{padding:4px 0;background:none;color:var(--brand);min-height:36px;text-decoration:underline;text-underline-offset:4px;font-size:14px;line-height:1.6;white-space:nowrap}.app-view-heading .text-button{margin-top:23px}.form-description{font-size:16px;color:var(--muted);line-height:1.75}.date-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end;margin-top:25px}.date-fields label{display:flex;min-width:0;flex-direction:column;gap:9px;font-size:14px;font-weight:500}.date-fields input{width:100%;min-width:0;min-height:48px;border:1px solid #a9bdaf;border-radius:7px;padding:9px 10px;background:#fff;color:var(--ink);font-size:15px;line-height:1.5}.date-divider{padding-bottom:13px;color:#819687}.record-preview{border-top:1px solid var(--line);margin:26px 0 24px;padding-top:18px}.record-preview p{font-size:13px;color:var(--muted)}.record-preview>div{display:flex;gap:8px 15px;flex-wrap:wrap;font-size:15px;margin-top:10px;line-height:1.5}.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid transparent;border-radius:8px;font-size:15px;font-weight:550;line-height:1.5;text-decoration:none;gap:8px}.primary{background:var(--brand);border-color:var(--brand);color:#fff}.primary:hover:not(:disabled){background:#0d584b}.secondary{border-color:#a8bdad;color:var(--brand);background:#fff}.secondary:hover:not(:disabled){background:#edf3ec}.full{width:100%}.field-note{font-size:12px;color:var(--muted);line-height:1.65;margin-top:11px}.acceptance{margin-top:22px;background:#edf3ec;padding:16px 18px;border-radius:8px}.acceptance strong{display:block;font-size:17px;font-weight:600;margin-top:4px;line-height:1.55}.acceptance p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:5px}.job-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.job-heading h4{font-size:26px;font-weight:600;line-height:1.4;margin-top:4px;letter-spacing:-.03em}.state-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:6px;font-size:14px;line-height:1.35;white-space:nowrap;font-weight:550;color:var(--muted);background:#eef2ec}.state-badge[data-state=QUEUED]{color:var(--pending);background:var(--pending-fill)}.state-badge[data-state=RUNNING]{color:#215d55;background:#dbede6}.state-badge[data-state=SUCCEEDED]{color:#225839;background:#dfecdf}.state-badge[data-state=FAILED]{color:var(--error);background:var(--error-fill)}.job-period{font-size:17px;margin-top:18px;line-height:1.5}.job-state-description{margin-top:22px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:18px;font-weight:550;line-height:1.6;color:var(--brand)}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.detail-actions .button:first-child{flex:1}.connection{display:flex;gap:10px;align-items:flex-start;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}.connection-dot{display:block;width:7px;height:7px;margin-top:7px;flex-shrink:0;background:#8ca493;border-radius:100%}.connection strong{font-size:14px;line-height:1.6;font-weight:550}.connection p{font-size:12px;line-height:1.65;color:var(--muted);margin-top:3px}.connection[data-kind=error]{padding:15px;background:var(--pending-fill);border-top:0;border-radius:8px}.connection[data-kind=error] .connection-dot{background:var(--pending)}.connection[data-kind=error] strong{color:var(--pending)}.execution-error{background:var(--error-fill);padding:16px;margin-top:18px;border-radius:8px;color:var(--error)}.execution-error .small-label{color:inherit}.execution-error strong{display:block;font-size:17px;font-weight:600;line-height:1.55;margin-top:5px}.execution-error>p:last-child{font-size:14px;line-height:1.7;margin-top:9px}.server-column{display:grid;gap:22px;min-width:0}.server-stage{padding:18px 22px 22px;background:var(--soft);border:1px solid #ccd9cb;border-radius:18px}.server-title{display:flex;align-items:center;justify-content:space-between;gap:18px}.server-title h3{font-size:22px;line-height:1.4;font-weight:600}.server-content>.server-empty{color:var(--muted);font-size:16px;line-height:1.8;padding:22px 0 10px;max-width:380px}.saved-fields{margin-top:16px}.saved-fields>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #d7e1d5;line-height:1.55;font-size:15px}.saved-fields dt{color:var(--muted);font-size:13px}.saved-fields dd{overflow-wrap:anywhere}.attempt-section{margin-top:19px}.attempt-list{list-style:none;padding:0;margin:10px 0 0}.attempt-list li{padding:12px 0;border-bottom:1px solid #d7e1d5}.attempt-line{display:flex;justify-content:space-between;gap:16px;align-items:baseline;font-size:15px;line-height:1.55}.attempt-line strong{font-weight:550}.attempt-list small{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.read-time{font-size:12px;line-height:1.6;color:var(--muted);margin-top:13px}.worker-control{border-top:1px solid #c8d7c5;margin-top:23px;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:16px}.worker-control strong{display:block;font-size:16px;font-weight:550;line-height:1.5;margin-top:4px}.worker-control .button{font-size:14px;padding:8px 12px;min-height:42px}.worker-note{color:var(--muted);font-size:12px;line-height:1.65;margin-top:11px}.result-stage{padding:18px 22px 23px;background:#f1e8d6;border:1px solid #ddd2b9;border-radius:18px}.result-stage .stage-label{margin-bottom:20px}.result-kicker{font-size:13px;line-height:1.5;color:#786345}.result-content h3{font-size:20px;line-height:1.5;font-weight:600;margin-top:6px;overflow-wrap:anywhere}.result-content>p:not(.result-kicker){font-size:14px;line-height:1.75;color:#6d614f;margin-top:12px}.file-fields{margin:16px 0}.file-fields>div{display:flex;justify-content:space-between;gap:20px;padding:6px 0;font-size:14px;line-height:1.5}.file-fields dt{color:#786345}.download-message{padding-top:14px;border-top:1px solid #d6cbb4;font-size:14px!important;color:var(--brand)!important}.download-message[data-kind=error]{color:var(--error)!important}.scene-tools{margin-top:25px;padding:21px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.scene-tool-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.scene-tools>p:last-child{font-size:13px;line-height:1.7;color:var(--muted);margin-top:12px}.demo-settings{margin-top:24px;border:1px solid var(--line);border-radius:10px}.demo-settings summary{padding:17px 20px;font-size:14px;color:var(--muted);cursor:pointer}.settings-content{padding:0 20px 20px;font-size:14px;color:var(--muted);line-height:1.75}.settings-row{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.settings-row .button{font-size:14px;min-width:78px}.settings-foot{font-size:12px;padding-top:16px}.danger-text{color:var(--error)}.demo-footer{display:flex;justify-content:space-between;gap:20px;margin-top:26px;font-size:12px;color:var(--muted);line-height:1.7}.list-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:14px;color:var(--muted);margin-bottom:10px}.job-list{margin-bottom:22px}.job-list-item{width:100%;text-align:left;display:block;border-bottom:1px solid var(--line);padding:16px 0;background:none;color:var(--ink)}.job-list-item>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.job-list-item strong{font-size:19px;font-weight:550}.job-list-item>p{font-size:14px;line-height:1.65;color:var(--muted);margin-top:8px}.job-list-item:hover strong{text-decoration:underline;text-underline-offset:4px}.list-empty{padding:22px 0 30px;font-size:16px;line-height:1.8;color:var(--muted)}.access-denied{padding:16px 0}.access-denied h4{font-size:24px;line-height:1.4;margin-top:7px;font-weight:600}.access-denied>p:not(.small-label){font-size:16px;color:var(--muted);line-height:1.8;margin:15px 0 24px}.server-unavailable{font-size:16px;line-height:1.75;color:var(--muted);padding-top:20px}.service-message{padding:15px 18px;border:1px solid #d9c59b;border-radius:10px;color:var(--pending);background:var(--pending-fill);font-size:14px;line-height:1.7;margin-bottom:24px}
body.embed .intro{display:none}body.embed .demo{padding-top:20px}body.capture .intro,body.capture .scene-nav,body.capture .scene-heading,body.capture .scene-tools,body.capture .demo-settings,body.capture .demo-footer{display:none}body.capture .demo{max-width:1240px;padding-top:28px}body.capture .workspace{margin:0}
@media(max-width:800px){.demo{padding:28px 24px}.intro h1{font-size:39px}.scene-nav{gap:4px}.scene-nav button{flex-direction:column;align-items:flex-start;gap:4px;padding:9px 10px;font-size:14px}.workspace{grid-template-columns:minmax(0,1fr);gap:22px}.server-column{grid-template-columns:1fr 1fr;gap:18px}.server-stage,.result-stage{padding:18px}.scene-heading h2{font-size:25px}.intro-copy{font-size:17px}.scene-heading{gap:24px}.scene-heading>div:first-child{flex:1}.app-window{min-height:0}.server-stage .stage-label{flex-direction:column;align-items:flex-start;gap:4px}.worker-control{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:520px){.demo{padding:28px 16px 24px}.intro{padding-bottom:26px}.intro h1{font-size:34px;line-height:1.25}.intro-copy{font-size:16px;line-height:1.8}.eyebrow{font-size:12px}.example-note{font-size:12px}.scene-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.scene-nav button{padding:10px;font-size:14px;min-height:62px}.scene-nav span{font-size:11px}.scene-heading{flex-direction:column;padding-top:26px;gap:20px}.scene-heading h2{font-size:25px}.scene-heading p:not(.step-label){font-size:15px;line-height:1.8}.step-label{font-size:12px}.session-control{flex-direction:row;align-items:center;justify-content:space-between;width:100%}.session-control label{font-size:13px}.session-control select{min-width:138px;font-size:14px}.workspace{gap:20px}.app-stage{padding:13px;border-radius:16px}.stage-label{font-size:14px;margin-bottom:12px}.stage-label>span:last-child{font-size:11px}.app-header{padding:16px}.app-content{padding:22px 16px}.app-view-heading{gap:12px;margin-bottom:22px}.app-view-heading h3{font-size:24px}.app-view-heading .text-button{font-size:12px}.section-kicker,.small-label{font-size:12px}.form-description{font-size:15px}.date-fields{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:23px}.date-fields input{font-size:16px}.date-divider{display:none}.date-fields label{font-size:14px;gap:6px}.record-preview{margin-top:23px}.record-preview>div{font-size:14px}.field-note{font-size:12px}.server-column{grid-template-columns:minmax(0,1fr);gap:20px}.server-stage,.result-stage{padding:17px 18px 20px}.server-stage .stage-label{flex-direction:row;align-items:center}.server-title h3{font-size:22px}.job-heading h4{font-size:25px}.job-period{font-size:16px}.job-state-description{font-size:18px;line-height:1.65}.detail-actions{flex-direction:column}.detail-actions .button{width:100%}.worker-control{flex-wrap:nowrap;align-items:center;gap:12px}.worker-control strong{font-size:15px}.saved-fields>div{font-size:15px;grid-template-columns:80px minmax(0,1fr)}.saved-fields dt{font-size:13px}.attempt-line{font-size:15px}.result-content h3{font-size:20px}.scene-tool-buttons{display:grid;grid-template-columns:minmax(0,1fr)}.scene-tool-buttons .button{width:100%;font-size:14px}.scene-tools>p:last-child{font-size:13px}.settings-content{padding-left:16px;padding-right:16px}.settings-row{gap:16px}.settings-row p,.settings-row label{font-size:13px}.settings-row .text-button{font-size:13px}.demo-footer{flex-direction:column;gap:5px}.list-toolbar{flex-direction:column;align-items:flex-start;gap:0}.job-list-item strong{font-size:18px}.state-badge{font-size:13px}.job-list-item>p{font-size:14px}.service-message{font-size:14px}.access-denied h4{font-size:23px}body.capture .demo{padding:16px}body.capture .server-column{grid-template-columns:minmax(0,1fr)}}
/* Keep stage labels in the same measured slots, including the intermediate iframe width. */
.scene-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.scene-nav button{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto;align-items:center;align-content:center;gap:8px;height:56px;min-height:56px;padding:10px 12px;border:1px solid #bdcfc1}
.scene-nav button[aria-current=step]{border-color:var(--brand)}
.scene-nav .scene-step-number{font-size:13px;line-height:18px;font-variant-numeric:tabular-nums;opacity:.8}
.scene-nav .scene-step-label{display:block;min-width:0;font-size:inherit;line-height:1.45;opacity:1;word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
.demo-toolbar{display:flex;justify-content:flex-end;min-width:0;padding:14px 0;border-bottom:1px solid var(--line)}
.session-control{display:grid;grid-template-columns:max-content 160px;align-items:center;gap:12px;min-width:0;flex-shrink:1}
.session-control label{display:block;font-size:13px;line-height:20px;margin:0}
.session-control select{display:block;min-width:0;width:100%;height:44px;min-height:44px;padding:10px 36px 10px 12px;line-height:22px}
.scene-heading{display:block;padding:26px 0 24px}
.scene-heading>div:first-child{max-width:850px;min-width:0}
body.capture .demo-toolbar{display:none}
@media(max-width:800px){
  .scene-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .scene-nav button{grid-template-columns:minmax(0,1fr);grid-template-rows:16px 40px;align-items:center;align-content:center;justify-items:start;gap:4px;height:80px;min-height:80px;padding:9px 10px}
  .scene-nav .scene-step-number{line-height:16px}
  .scene-nav .scene-step-label{display:flex;align-items:center;min-height:40px;line-height:20px;align-self:stretch}
  .session-control{grid-template-columns:max-content 148px}
}
@media(max-width:520px){
  .scene-nav{gap:6px}
  .scene-nav .scene-step-number{font-size:11px}
  .demo-toolbar{padding:12px 0}
  .session-control{width:100%;grid-template-columns:minmax(0,1fr) 138px;gap:16px}
  .session-control select{min-width:0;font-size:14px}
  .scene-heading{padding-top:24px}
}
h1,h2,h3,h4{word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
