/* Scoped production board. No external fonts, icons, or services. */
.production-board,.production-board-form{box-sizing:border-box;min-width:0;font-family:inherit}
.production-board *,.production-board-form *{box-sizing:border-box}
.production-board header{position:static;top:auto;z-index:auto;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.production-board>.pb-heading{border-bottom:0}
.production-board [hidden],.production-board-form [hidden]{display:none!important}
.production-board{width:100%;max-width:100%;grid-column:1/-1;clear:both;margin:48px 0 28px;color:#17191c}
.pb-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px}
.pb-eyebrow{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:700;line-height:1.6;letter-spacing:.15em;color:#6b7077}
.pb-heading h2{margin:8px 0;font-size:clamp(21px,2.6vw,30px);font-weight:650;letter-spacing:-.055em;line-height:1.3}
.pb-heading p{margin:0;font-size:13px;line-height:1.6;color:#73777e}
.pb-toggle{flex-shrink:0;border:1px solid #d9dce0;background:#fff;border-radius:999px;padding:10px 16px;color:#33373d;font:inherit;font-size:12px;cursor:pointer}
.pb-toggle:hover{background:#f2f3f5;border-color:#9fa5af}
.production-board [data-pb-panel]{overflow:hidden;border:1px solid #272c35;border-radius:16px;background:#12151b;color:#e8ecf3}
.pb-toolbar{display:flex;align-items:center;gap:9px;min-height:52px;padding:15px 22px;border-bottom:1px solid #2c3038;background:#171b22;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;letter-spacing:.09em;color:#c0c7d2}
.pb-live-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#d3edac;box-shadow:0 0 0 4px #d3edac0d}
.pb-toolbar-hint{margin-left:auto;font-family:inherit;letter-spacing:0;color:#9ea7b6;font-size:11px}
.pb-viewport{overflow:auto;max-height:780px;max-height:min(80vh,780px);min-height:350px;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#566173 #171b22;background-color:#12151b;background-image:radial-gradient(#3b414c 1px,transparent 1px);background-size:20px 20px;cursor:grab}
.pb-viewport::-webkit-scrollbar{height:9px;width:9px}
.pb-viewport::-webkit-scrollbar-thumb{border:2px solid #171b22;border-radius:9px;background:#566173}
.pb-viewport[data-pb-dragging]{cursor:grabbing;user-select:none}
.pb-flow{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:30px;width:100%;min-width:1288px;align-items:start;padding:48px 34px 56px}
.pb-node{position:relative;min-width:0;background:#1b2029;border:1px solid #39414e;border-radius:12px;box-shadow:0 8px 24px #00000024;cursor:auto}
.pb-node:not(:last-child)::after{position:absolute;content:"";top:43px;left:100%;width:31px;height:1px;background:#727f91;pointer-events:none}
.pb-node:not(:last-child)::before{position:absolute;content:"";top:40px;left:calc(100% + 25px);width:6px;height:6px;border-top:1px solid #9aa7ba;border-right:1px solid #9aa7ba;transform:rotate(45deg);pointer-events:none}
.pb-node-heading{display:flex;align-items:center;gap:10px;min-height:86px;padding:18px 16px;border-bottom:1px solid #333b48}
.pb-step{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border:1px solid #566173;border-radius:8px;color:#c9d6ec;background:#242d3a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}
.pb-kicker{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:8px;letter-spacing:.12em;line-height:1.5;color:#a0afc3}
.pb-node-heading h3{margin:4px 0 0;color:#f0f3fa;font-size:15px;font-weight:600;letter-spacing:-.025em;line-height:1.3}
.pb-node-body{padding:18px 16px;min-height:150px}
.pb-node-body h4{margin:20px 0 7px;font-size:10px;line-height:1.5;letter-spacing:.04em;font-weight:600;color:#a8b5ca}
.pb-node-body>h4:first-child,.pb-prompt h4:first-child{margin-top:0}
.pb-copy{margin:0;font-size:12px;line-height:1.85;color:#e0e4ec;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.pb-prompt+.pb-prompt{padding-top:18px;margin-top:18px;border-top:1px dashed #424d5e}
.pb-prompt-text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}
.pb-copy-button{margin-top:12px;padding:6px 9px;border:1px solid #485365;border-radius:5px;background:transparent;color:#d5dce8;font:inherit;font-size:10px;cursor:pointer}.pb-copy-button:hover{background:#303b4c}
.pb-empty,.pb-locked{margin:0;color:#a4adbc;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.pb-locked{padding:12px;border:1px dashed #485365;border-radius:6px;background:#242b36}
.pb-node-body>.pb-copy+.pb-locked{margin-top:16px}
.pb-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.pb-asset:has(audio),.pb-asset:has(video){grid-column:1/-1}
.pb-asset:empty{display:none}
.pb-media{display:block;width:100%;max-width:100%;max-height:270px;object-fit:contain;background:#101319;border-radius:6px}
.pb-assets img{aspect-ratio:1;object-fit:cover}
.pb-image-link{display:block;border-radius:6px;overflow:hidden}
.pb-image-link:hover{outline:1px solid #b9cbe8}
.pb-audio{display:block;max-width:100%;width:100%;height:36px}
.pb-node-final{border-color:#667952;background:linear-gradient(150deg,#252f25,#1b2225)}
.pb-node-final .pb-step{color:#d3edac;background:#313d29;border-color:#64764e}
.pb-node-final .pb-kicker{color:#c9dfa7}
.pb-node-body h4.pb-final-title{font-size:14px;font-weight:600;margin:16px 0 6px;color:#edf4e4;overflow-wrap:anywhere}
.pb-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:14px 22px;border-top:1px solid #2c3038;background:#171b22;color:#9ea7b6;font-size:10px;line-height:1.6}
.pb-footer>span:first-child{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;letter-spacing:.05em}
.pb-access-note{margin:0;padding:14px 22px;border-bottom:1px solid #393e48;background:#232831;color:#d5dce8;font-size:12px;line-height:1.8}
.pb-access-note a{color:#e0efc9;text-underline-offset:3px;margin-left:8px}
.production-board :focus-visible,.production-board-form :focus-visible{outline:2px solid #6e91c9;outline-offset:4px}
/* Existing upload / edit form integration. */
.production-board-form{margin:28px 0;padding:24px;border:1px solid #dfe2e6;border-radius:12px;background:#fff;color:#22272e;grid-column:1/-1}
.pbf-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pbf-heading h3{margin:5px 0 0;font-size:19px;line-height:1.4;letter-spacing:-.04em}
.production-board-form label.pbf-enable{display:flex;align-items:center;gap:8px;flex-shrink:0;margin:0;font-size:12px;cursor:pointer;color:#343b45}
.production-board-form .pbf-enable input{appearance:auto;accent-color:#202630;position:static;width:16px;height:16px;margin:0;padding:0;flex-shrink:0}
.pbf-intro,.pbf-help{color:#707782;font-size:12px;line-height:1.8;margin:14px 0;overflow-wrap:anywhere}
.pbf-fields>.pbf-help{padding:12px 14px;background:#f5f6f8;border-radius:6px}
.production-board-form fieldset{min-width:0;margin:22px 0 0;padding:18px;border:1px solid #e2e5e9;border-radius:8px}
.production-board-form legend{float:none;width:auto;padding:0 7px;margin:0;font-size:13px;font-weight:650;color:#262e39}
.pbf-stage>legend>span,.pbf-final>span{display:inline-block;margin-right:6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;color:#777f8c}
.production-board-form .pbf-field{display:block;margin:0 0 15px;font-size:12px;font-weight:500;line-height:1.5;color:#404955}
.production-board-form .pbf-field:last-child{margin-bottom:0}
.pbf-field>span{display:block;margin-bottom:7px}
.production-board-form .pbf-field input,.production-board-form .pbf-field textarea{display:block;width:100%;max-width:100%;padding:10px 12px;border:1px solid #d9dde4;border-radius:6px;background:#fff;color:#242b35;font:inherit;font-size:13px;font-weight:400;line-height:1.65;box-shadow:none}
.production-board-form .pbf-field textarea{resize:vertical;min-height:80px}
.pbf-field small{display:block;margin-top:6px;color:#707782;font-size:11px;font-weight:400;line-height:1.7}
.production-board-form fieldset.pbf-prompt{margin:12px 0;padding:14px;background:#f8f9fb}
.production-board-form .pbf-prompt legend{font-size:11px;color:#687180}
.pbf-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pbf-prompt-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.pbf-add,.pbf-remove{padding:8px 12px;border:1px solid #d2d7df;border-radius:6px;background:#fff;font:inherit;font-size:11px;color:#3e4856;cursor:pointer}
.pbf-add:hover,.pbf-remove:hover{background:#edf0f5}
.pbf-add:disabled{opacity:.5;cursor:not-allowed}
.pbf-remove{display:block;margin-left:auto;color:#81524e}
.pbf-count{font-size:11px;color:#707782}
.pbf-final{display:flex;align-items:flex-start;gap:10px;padding:18px;background:#f4f6f2;border:1px solid #e1e7db;border-radius:8px;margin-top:22px;font-size:12px}
.pbf-final p{font-size:12px;line-height:1.7;color:#707782;margin:5px 0 0}
@media(min-width:1700px){.pb-flow{grid-template-columns:repeat(5,minmax(270px,1fr));width:100%}}
@media(max-width:600px){.production-board{margin-top:32px}.pb-heading{align-items:flex-start;gap:12px}.pb-heading h2{font-size:21px}.pb-heading p{font-size:12px}.pb-toggle{padding:9px 12px;font-size:11px}.pb-toolbar{flex-wrap:wrap;padding:14px 16px;gap:8px}.pb-toolbar-hint{width:100%;margin-left:14px;font-size:10px}.pb-flow{width:max-content;min-width:0;grid-template-columns:repeat(5,250px);gap:36px;padding:28px 18px 36px}.pb-node:not(:last-child)::after{width:37px}.pb-node:not(:last-child)::before{left:calc(100% + 31px)}.pb-footer{padding:14px 16px}.production-board-form{padding:18px 14px}.pbf-heading{align-items:flex-start;flex-direction:column;gap:12px}.production-board-form fieldset{padding:14px 10px}.pbf-columns{grid-template-columns:1fr;gap:0}.pb-access-note{padding:14px 16px}}
@media(prefers-reduced-motion:reduce){.production-board *,.production-board-form *{scroll-behavior:auto!important;transition:none!important}}
