.wb-panel { margin: 16px 0; padding: 18px; border: 1px solid var(--line, #444); border-radius: 12px; }
.wb-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.wb-field input:not([type=file]), .wb-field textarea, .wb-field select { padding: 10px; border-radius: 7px; border: 1px solid var(--line, #555); background: var(--bg, #191919); color: inherit; font: inherit; }
.wb-task { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; color: inherit; }
.wb-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#s-body:has(.wb-panel) a { color: var(--accent, #bca5ff); }
.wb-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wb-videos video { width: 100%; max-height: 50vh; background: #000; }
@media (max-width: 700px) { .wb-videos { grid-template-columns: 1fr; } .wb-task { flex-direction: column; } }
.wb-preview-image { width: 96px; max-height: 128px; object-fit: contain; }
.wb-preview-progress:not([hidden]) { padding: 12px; border-left: 3px solid var(--accent, #bca5ff); background: rgba(160, 130, 240, .08); }
.wb-preview-job { border-top: 1px solid var(--line, #444); padding: 14px 0; }
.wb-preview-job video { display: block; width: 100%; max-width: 640px; max-height: 50vh; margin: 12px 0; background: #000; }
.wb-preview .wb-prompt-view { margin: 12px 0; padding: 14px; border: 1px solid var(--line, #444); border-radius: 10px; background: rgba(160, 130, 240, .04); }
.wb-preview .wb-prompt-view summary { cursor: pointer; color: var(--accent, #bca5ff); }
.wb-preview .wb-prompt-view textarea { width: 100%; box-sizing: border-box; }
.wb-remake .wb-remake-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.wb-remake video { display: block; width: 100%; height: auto; max-height: 440px; background: #000; border-radius: 10px; }
.wb-remake .wb-remake-frame { width: auto; height: auto; max-width: 100%; max-height: 55vh; border: 1px solid var(--accent, #bca5ff); border-radius: 8px; touch-action: none; cursor: crosshair; }
.wb-remake .wb-remake-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 14px 0; }
.wb-remake .wb-remake-card { min-width: 0; padding: 14px; border: 1px solid var(--line, #444); border-radius: 12px; background: rgba(160, 130, 240, .04); }
.wb-remake .wb-remake-card h4 { margin-top: 0; }
.wb-remake .wb-remake-card input, .wb-remake .wb-remake-card textarea, .wb-remake .wb-remake-card select { min-width: 0; width: 100%; box-sizing: border-box; }
.wb-remake .wb-remake-target { width: 100%; max-width: 300px; max-height: 220px; object-fit: contain; border-radius: 8px; background: #15151b; }
.wb-remake .wb-remake-confirm { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; margin: 12px 0; line-height: 1.6; }
.wb-remake .wb-remake-confirm input { flex: 0 0 auto; margin-top: 5px; }
.wb-remake .wb-remake-marks { font-size: .85rem; overflow-wrap: anywhere; }
.wb-remake .wb-remake-candidates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wb-remake .wb-remake-candidates p { flex-basis: 100%; }
.wb-remake progress { width: 100%; accent-color: var(--accent, #bca5ff); margin: 12px 0; }
@media (max-width: 760px) { .wb-remake .wb-remake-layout { grid-template-columns: 1fr; } }
