.prompt-document{min-width:0;border:1px solid var(--line,#d8ddd8);border-radius:12px;background:var(--paper,var(--bg,#fff));overflow:hidden;margin:28px 0}
.prompt-document-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line,#d8ddd8)}
.prompt-document-header h2{margin:0;font-size:20px;line-height:1.4}.prompt-document-header p{margin:8px 0 0;font-size:14px;color:var(--muted,#626d67)}
.prompt-document button,.prompt-step-editor button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.prompt-scroll{max-height:min(600px,72vh);overflow-y:auto;overflow-x:hidden;padding:24px;overscroll-behavior-y:auto;scrollbar-gutter:stable;touch-action:pan-y;overflow-wrap:anywhere;line-height:1.8}
.prompt-scroll:focus-visible{outline:3px solid var(--accent,#337b61);outline-offset:-4px}
.prompt-step+ .prompt-step{margin-top:28px;padding-top:24px;border-top:1px solid var(--line,#d8ddd8)}
.prompt-step>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.prompt-step>header h3{margin:0;font-size:19px;line-height:1.5}
.prompt-step-number{font-variant-numeric:tabular-nums;color:var(--muted,#626d67);margin-right:6px}.prompt-step-purpose{margin:10px 0;color:var(--muted,#626d67)}.prompt-step-dependencies{font-size:14px;margin:12px 0;padding-left:12px;border-left:2px solid var(--line,#d8ddd8)}
.prompt-markdown{min-width:0;overflow-wrap:anywhere}.prompt-markdown>*:first-child{margin-top:0}.prompt-markdown h3{font-size:20px;margin:24px 0 12px}.prompt-markdown h4{font-size:18px;margin:20px 0 10px}.prompt-markdown h5,.prompt-markdown h6{font-size:16px;margin:16px 0 8px}.prompt-markdown p{margin:12px 0;white-space:pre-wrap}.prompt-markdown ul,.prompt-markdown ol{padding-left:24px;margin:12px 0}.prompt-markdown li{margin:6px 0}.prompt-markdown blockquote{margin:12px 0;padding-left:14px;border-left:3px solid var(--line,#d8ddd8)}
.prompt-body .prompt-markdown pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow-x:hidden;max-width:100%;padding:16px;line-height:1.7}.prompt-markdown code{white-space:pre-wrap;overflow-wrap:anywhere}.prompt-step-editor{min-width:0;margin:16px 0}.prompt-edit-step{min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line,#d8ddd8);border-radius:8px}.prompt-edit-step>legend{font-weight:650;padding:0 8px}.prompt-step-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-bottom:12px}.prompt-dependency-options{min-width:0;border:0;padding:0}.prompt-dependency-options .checkline{overflow-wrap:anywhere}.prompt-edit-step textarea{min-height:180px;resize:vertical;width:100%;box-sizing:border-box}.prompt-step-editor .field{min-width:0}.prompt-step-editor input{max-width:100%;box-sizing:border-box}
@media(max-width:600px){.prompt-document-header{padding:16px;flex-direction:column;gap:12px}.prompt-document-header h2{font-size:18px}.prompt-scroll{padding:16px;max-height:min(480px,68svh)}.prompt-step>header{align-items:flex-start;flex-wrap:wrap}.prompt-step>header h3{font-size:18px}.prompt-edit-step{padding:12px}.prompt-step-controls{justify-content:flex-start}.prompt-document button{max-width:100%}}
