/* 样式仅作用于新增擦除工具，原有去水印及其他模式沿用原样式。 */
.wm-tools[hidden], .wm-tools [hidden], .wm-modal[hidden] { display: none !important; }
.wm-tools { clear: both; padding: 8px 0 12px; color: #dae1ee; font-size: 12px; }
html body .records-modal.is-dialogue-view .dialogue-bottom-input.has-wm-tools { grid-template-rows: auto auto auto !important; }
html body .dialogue-bottom-input.has-wm-tools > .wm-tools { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
html body .records-modal.is-dialogue-view .dialogue-bottom-input.has-wm-tools > .dialogue-input-content { grid-row: 2 !important; }
html body .records-modal.is-dialogue-view .dialogue-bottom-input.has-wm-tools > .dialogue-input-tools { grid-row: 3 !important; }
.wm-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-tools button, .wm-dialog button { font: inherit; cursor: pointer; border: 1px solid #465063; border-radius: 7px; padding: 7px 10px; color: #dfe6f3; background: #252c39; }
.wm-choices button[aria-pressed="true"], .wm-dialog [data-wm-done] { color: #fff; border-color: #55cebd; background: #164a48; }
.wm-tools button:focus-visible, .wm-dialog button:focus-visible, .wm-tools select:focus-visible { outline: 2px solid #94b9ff; outline-offset: 2px; }
.wm-hint { margin: 8px 0; color: #a9b5c9; line-height: 1.6; }
.wm-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wm-custom span { color: #a9b5c9; }
.wm-subtitle { display: flex; align-items: center; gap: 10px; }
.wm-subtitle select { color: #dfe6f3; background: #252c39; border: 1px solid #465063; padding: 5px; border-radius: 5px; }
.wm-modal { position: fixed; inset: 0; z-index: 100020; padding: 12px; display: flex; align-items: center; justify-content: center; background: #000b; color: #e2e9f6; font: 13px/1.5 "Microsoft YaHei", sans-serif; }
.wm-dialog { width: min(780px, 100%); max-height: calc(100vh - 24px); overflow: auto; padding: 16px; border: 1px solid #47536a; border-radius: 12px; background: #191f2b; box-sizing: border-box; box-shadow: 0 20px 80px #0008; }
.wm-dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wm-dialog strong { font-size: 16px; }
.wm-dialog header p, .wm-status { margin: 6px 0 10px; color: #aebcd2; }
.wm-dialog [data-wm-close] { font-size: 20px; padding: 0 10px; }
.wm-stage-wrap { width: 100%; background: #080a0f; display: flex; justify-content: center; }
.wm-stage { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.wm-stage video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.wm-overlay { position: absolute; inset: 0; cursor: crosshair; touch-action: none; user-select: none; }
.wm-box { position: absolute; box-sizing: border-box; border: 2px solid #65e0dc; background: #31bec226; color: #fff; text-shadow: 0 1px 3px #000; font-size: 13px; pointer-events: none; }
.wm-seek { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.wm-seek input { flex: 1; min-width: 40px; accent-color: #72a4ff; }
.wm-seek output { width: 62px; text-align: right; }
.wm-box-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.wm-dialog footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wm-dialog footer span { flex: 1; font-size: 11px; color: #aebcd2; }
@media (max-width: 400px) { .wm-dialog { padding: 10px; } .wm-dialog footer span { flex-basis: 100%; order: 3; } }
