.editor-bulk-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 8px}
.editor-bulk-toolbar .quiet{font-size:11px;padding:8px 10px}
#editorDraftStatus{font-size:10px;line-height:1.6;margin:8px 0 12px}
#editorDraftStatus[data-error=true],#editorConflictStatus{color:#a34848}
.editor-recovery{margin:10px 0 20px}
.draft-import{display:grid;gap:6px;font-size:11px;margin:12px 0}
.draft-import input{font-size:10px;max-width:100%}
.bulk-parameter{font-size:9px;padding:4px 7px;border:1px solid #dce6de;border-radius:6px;background:#f5f8f6;color:#526e5b;flex-shrink:0}
.bulk-parameter:hover{background:#e7f1ea}
.range-heading label{flex:1}
.range-heading{gap:8px}
.parameter-with-bulk{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0}
.parameter-with-bulk>label{flex:1;min-width:0}
.parameter-with-bulk>.check{margin-block:10px}
.base-colors .parameter-with-bulk,.color-stop .parameter-with-bulk{display:grid;gap:4px}
.base-colors .bulk-parameter,.color-stop .bulk-parameter{justify-self:start}
.color-space{margin:0}
.bulk-dialog{width:min(1200px,calc(100vw - 32px));padding:26px;max-height:calc(100dvh - 32px);overscroll-behavior:contain}
.bulk-dialog>.dialog-head{position:sticky;top:-26px;z-index:3;background:#fff;padding-block:12px;margin-bottom:14px}
.bulk-source-label{display:flex;gap:12px;align-items:center;font-size:12px}
.bulk-source-label select{min-width:180px}
.bulk-selection-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 0 4px}
.bulk-selection-tools strong{font-size:12px;font-weight:500;margin-right:8px}
.bulk-selection-tools .quiet{padding:7px 10px;font-size:11px}
.bulk-selection-tools .check{font-size:11px;margin:6px 0}
.bulk-help{font-size:11px;line-height:1.7;color:#748579;margin:8px 0 14px}
.bulk-level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;user-select:none}
.bulk-difficulty-title{display:block;border:0;background:none;margin:0 auto 12px;font-size:11px;font-weight:600;color:#405d49;padding:6px}
.bulk-spheres{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.bulk-level{border-radius:50%;aspect-ratio:1;min-width:0;max-width:38px;width:100%;justify-self:center;border:1px solid #d4dfd7;background:#fafcfb;color:#243d2c;font-size:11px;padding:0;position:relative}
.bulk-level.easy{background:#e4f0fa;color:#265878}.bulk-level.expert{background:#fbe8e8;color:#934141}.bulk-level.master{background:#eee6f5;color:#6e467f}.bulk-level.linegod{background:#def4eb;color:#376a56}
.bulk-level:hover{box-shadow:0 0 0 2px #90b09a}
.bulk-level.selected{background:#325c41;color:#fff;border-color:#21472f;box-shadow:0 0 0 2px #a4c6af}
.bulk-level.invalid{outline:2px solid #b94c4c;outline-offset:2px}
.bulk-settings-heading{margin:25px 0 8px;border-top:1px solid #e5ece7;padding-top:18px;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.bulk-settings-heading h3{font-size:15px;font-weight:500;margin:0}
.bulk-settings-heading .quiet{padding:7px 10px;font-size:11px}
.bulk-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.bulk-field-group{margin:0!important;border:1px solid #e1e9e3;border-radius:10px;padding:12px;background:#fbfdfb}
.bulk-field-group>summary{font-size:12px;font-weight:600;color:#35513f;cursor:pointer}
.bulk-field{display:grid;grid-template-columns:16px minmax(0,1fr) minmax(45px,130px);gap:8px;align-items:center;font-size:11px;margin-top:12px;line-height:1.5}
.bulk-field output{font-size:10px;text-align:right;color:#718578;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bulk-group-check{font-size:10px;margin:14px 0!important;border-bottom:1px solid #e7eee8;padding-bottom:12px}
.bulk-field input:disabled+span{opacity:.45}
.bulk-review{position:sticky;bottom:-26px;background:#fffffff7;border-top:1px solid #dde7e0;padding:12px 0 14px;margin-top:20px;z-index:2;box-shadow:0 -10px 20px #ffffffb0}
#bulkSummary{font-size:12px;margin:0 0 7px;color:#3c5946}
.bulk-errors{color:#a34848;font-size:11px;white-space:pre-line;max-height:100px;overflow:auto;line-height:1.5}
.bulk-errors:empty,#bulkStatus:empty{display:none}
.bulk-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bulk-actions .primary{font-size:12px;padding:10px 16px}
.bulk-review>.subtle{font-size:10px;margin:9px 0 0}
.editor-conflict{padding-block:15px;border-top:1px solid #e3ebe5}
.editor-conflict>label{display:block;font-size:13px;margin-bottom:9px}
.editor-conflict select{width:100%;font-size:11px}
.editor-conflict dl{font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.editor-conflict dd{margin:3px 0 12px;color:#738477}
@media(max-width:720px){.bulk-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.bulk-dialog>.dialog-head{top:-16px}.bulk-level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bulk-fields{grid-template-columns:1fr}.bulk-review{bottom:-16px}.bulk-source-label{align-items:flex-start;flex-direction:column;gap:6px}.bulk-source-label select{width:100%}.bulk-help{font-size:10px}.bulk-spheres{gap:8px}.bulk-selection-tools{gap:4px}}

/* One shared illustration and motion style for both level pickers. */
.level-frame.fire-frame,.level-frame.angel-frame{stroke:none;fill:none;overflow:visible;inset:-11px;width:calc(100% + 22px);height:calc(100% + 22px)}
.level-circle>span{position:relative;z-index:1;text-align:center}
.fire-ring{opacity:.9;animation:fire-breathe 2.1s ease-in-out infinite alternate}
.flame-tongue{transform-origin:60px 93px;animation:flame-dance 1.15s ease-in-out infinite alternate}
.flame-right{animation-delay:-.4s;animation-duration:1.4s;transform-origin:98px 90px}
.flame-crown{animation-delay:-.7s;animation-duration:.95s;transform-origin:60px 35px}
.flame-core{fill:#fff0a1;opacity:.9}
.fire-spark{fill:#ffca6a;animation:ember-rise 2.3s ease-out infinite;transform-box:fill-box;transform-origin:center}
.spark-two{animation-delay:-1.1s;animation-duration:2.7s}
.wing-body{stroke:#799988;stroke-width:.8}
.wing-feather{fill:#fffff4;stroke:#88a596;stroke-width:.7;stroke-linejoin:round}
.wing-shaft{fill:none;stroke:#a3b9aa;stroke-width:.6;stroke-linecap:round}
.wing-tip{fill:#ecf5eb}
.wing-motion{transform-origin:43px 66px;animation:wing-lift 3.2s ease-in-out infinite}
.angel-halo{stroke:#c4a355;stroke-width:1.8;fill:#fff3ae33;animation:halo-light 3.2s ease-in-out infinite}
@keyframes flame-dance{0%{transform:skewX(-3deg) scaleY(.94)}55%{transform:skewX(2deg) scaleY(1.06)}100%{transform:skewX(-1deg) scaleY(.99)}}
@keyframes fire-breathe{from{opacity:.78}to{opacity:1}}
@keyframes ember-rise{0%{opacity:0;transform:translate(0,8px) scale(.7)}20%{opacity:.9}100%{opacity:0;transform:translate(3px,-16px) scale(.25)}}
@keyframes wing-lift{0%,100%{transform:rotate(2deg) scaleY(.98)}50%{transform:rotate(-7deg) scaleY(1.04)}}
@keyframes halo-light{0%,100%{opacity:.6}50%{opacity:1}}
.bulk-workspace{display:grid;grid-template-columns:minmax(500px,1.7fr) minmax(300px,1fr);gap:24px;align-items:start}
.bulk-workspace>section{min-width:0}
.bulk-grid-viewport{overflow:auto;padding:10px 7px;scrollbar-width:thin}
.bulk-level-grid{grid-template-columns:repeat(11,minmax(0,1fr));gap:7px;min-width:500px}
.bulk-cell{min-width:0;aspect-ratio:1;border:1px solid #e6ede7;border-radius:8px;background:#fafcfb;display:flex;align-items:center;justify-content:center;padding:5px}
.bulk-empty{background:transparent;border-style:dashed;opacity:.45}
.bulk-level.level-circle{width:100%;max-width:none;border-radius:50%;isolation:isolate}
.bulk-level.level-circle>span{font-size:clamp(7px,.65vw,10px);line-height:1.2;font-weight:500;overflow-wrap:normal}
.bulk-level.level-circle:not(:disabled):hover{transform:none}
.bulk-level.level-circle.selected{box-shadow:0 0 0 2px #4d8061;border-color:#4b7b5c}
.bulk-level.level-circle.selected:after{content:'✓';position:absolute;right:-5px;top:-5px;background:#315a40;color:#fff;border:1px solid #fff;border-radius:50%;width:14px;height:14px;font-size:9px;line-height:13px;z-index:4}
.bulk-level.level-circle.master{background:#301a48;color:#ffd0a7}.bulk-level.level-circle.linegod{background:#a6dfcc;color:#173d2c;-webkit-text-stroke:0;text-shadow:none}
.bulk-difficulty-tools{display:flex;gap:4px;flex-wrap:wrap;margin:0 7px}
.bulk-difficulty-tools .quiet{font-size:10px;padding:5px 9px}
.bulk-parameter-panel{max-height:min(660px,calc(100dvh - 340px));overflow:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin}
.bulk-parameter-panel .bulk-settings-heading{margin-top:0;border:0;padding-top:4px;gap:10px}
.bulk-parameter-panel .bulk-settings-heading h3{font-size:13px}
.bulk-parameter-panel .bulk-fields{grid-template-columns:1fr}
.bulk-parameter-panel>.subtle{font-size:10px;line-height:1.5}
@media(max-width:900px){.bulk-workspace{grid-template-columns:1fr}.bulk-parameter-panel{max-height:none;overflow:visible;padding-right:0}.bulk-level-grid{min-width:500px}.bulk-level.level-circle>span{font-size:8px}.bulk-parameter-panel .bulk-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.bulk-parameter-panel .bulk-fields{grid-template-columns:1fr}.bulk-dialog .bulk-review{position:static}.bulk-grid-viewport{padding-block:14px}.bulk-help:after{content:' Swipe across the grid on a small screen.'}}
@media(prefers-reduced-motion:reduce){.level-frame *{animation:none!important}}
.bulk-dialog>.dialog-head{align-items:center;padding-block:7px;margin-bottom:8px}
.bulk-dialog>.dialog-head>.bulk-source-label{margin-left:auto;margin-right:18px;font-size:11px}
#bulkSourceNote{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bulk-selection-tools{padding-top:5px}
.bulk-help{margin:4px 0 9px;font-size:10px}
.bulk-level-grid{--bulk-cell:clamp(32px,calc((100dvh - 410px)/12 - 4px),48px);grid-template-columns:repeat(11,var(--bulk-cell));gap:4px;min-width:0;width:max-content;margin-inline:auto}
.bulk-cell{padding:4px}
.bulk-level.level-circle>span{font-size:8px}
@media(max-width:720px){.bulk-dialog>.dialog-head{flex-wrap:wrap}.bulk-dialog>.dialog-head>.bulk-source-label{order:3;flex-basis:100%;margin:0;flex-direction:row;align-items:center;font-size:10px}.bulk-dialog>.dialog-head>.close{margin-left:auto}.bulk-source-label select{width:auto;min-width:0;max-width:210px}.bulk-level-grid{--bulk-cell:42px}.bulk-help{font-size:10px}}
.free-dialog .level-circle>span{display:flex;flex-direction:column;gap:3px;line-height:1.15}
.free-dialog .level-circle>span small{font-size:9px;letter-spacing:.02em;font-weight:500}
.free-dialog .level-circle>span b{font-size:17px;font-weight:600}
.free-dialog .level-circle.linegod{color:#21543d;-webkit-text-stroke:0;text-shadow:none}
.free-dialog .level-circle.master{color:#ffdab4;text-shadow:0 1px 1px #301a48}
@media(max-width:650px){.free-dialog .level-circle>span small{font-size:6px;letter-spacing:0}.free-dialog .level-circle>span b{font-size:13px}.free-dialog .level-circle>span{gap:1px}}

/* Pass and death message authoring. */
.message-section textarea{width:100%;resize:vertical;min-height:85px;border:1px solid #dce4de;border-radius:8px;background:#fbfcfb;padding:10px;font:inherit;font-size:12px;line-height:1.6;color:#263e2f}
.message-card{border:1px solid #dce6df;border-radius:12px;padding:12px;margin:12px 0;background:#fbfdfb}.message-card label{display:grid;gap:6px}.message-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:10px 0}.message-row>label{flex:1;min-width:110px}.message-row input{width:100%}.message-row output{align-self:center}.message-preview{font-size:11px;line-height:1.6;color:#688071;white-space:pre-wrap;overflow-wrap:anywhere}.message-remove{color:#955353}.message-levels{white-space:normal;line-height:1.6;text-align:left;width:100%;margin-top:10px}.death-message-card>summary{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.death-message-card>summary>span{display:block;max-height:4.8em;overflow:hidden}.death-message-card>summary>small{display:block;font-size:10px;color:#6c8373}.death-message-card>label{margin-top:12px}.death-header-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:10px 0}.death-header-fields>label{font-size:12px}.death-header-fields input{width:100%}.message-workbook-tools{border:1px solid #dce6df;border-radius:12px;padding:12px;margin:15px 0;display:grid;gap:9px}.message-workbook-tools>label{display:grid;gap:6px}.message-workbook-tools .draft-import{margin:5px 0}.message-workbook-tools input{width:100%}#allDeathMessages>label{display:grid;gap:6px}#publishDeathMessages{margin-top:14px;width:100%;white-space:normal}#deathMessageStatus,#messageImportStatus{white-space:pre-line}.message-section [data-error=true]{color:#a34848}.message-level-dialog{width:min(1000px,calc(100vw - 32px))}.message-level-dialog>.bulk-grid-viewport{max-height:60vh;overflow:auto;padding:12px}.message-level-dialog .bulk-level-grid{grid-template-columns:repeat(11,minmax(38px,1fr))}.message-level-dialog .bulk-level{max-width:58px;font-size:10px}.message-level-dialog .bulk-level>span{font-size:10px}.message-level-dialog>#applyMessageLevels{margin-top:14px;white-space:normal}
/* Settings made irrelevant by another choice stay visible but grayed out. */
[data-inactive=true]{opacity:.45}
[data-inactive=true] input,[data-inactive=true] select,[data-inactive=true] button{cursor:not-allowed}
/* Guidance prompts: one row per prompt, text editable only while the prompt is on. */
.guide-prompt{display:grid;gap:6px;padding:10px 0;border-top:1px solid var(--edge,#e2e9e4)}.guide-prompts>h4+p+.guide-prompt{border-top:0}.guide-prompt>label.check{display:flex;gap:6px;align-items:center}.guide-prompt>button{justify-self:start}.guide-prompts .guide-prompt textarea{min-height:52px}.guide-prompt textarea:disabled,.guide-prompt select:disabled{opacity:.55;cursor:not-allowed}
/* v4.39 Movement accordion: General, Path drawing, Rotation, Dynamic speed, Point-to-point speeds. */
.editor-movement{margin:10px 0 4px}
.editor-movement>summary{cursor:pointer;font-weight:700;padding:6px 0}
.editor-movement-section{margin:4px 0 4px 2px}
.editor-movement-section>summary{cursor:pointer;font-size:12px;font-weight:600;padding:6px 0}
.editor-movement-body{display:grid;gap:6px;padding:2px 0 8px}
.editor-step-title{margin:6px 0 0;font-size:12px;font-weight:600}
.editor-speed-step{display:grid;gap:4px;padding:4px 0 6px 8px;border-left:2px solid #d98a1c}
.editor-step-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600}
/* v4.40 Advanced Message Triggers editor (Object Tools). */
.editor-trigger-content{display:grid;gap:8px;padding:2px 0 10px}
.trigger-tabs{display:flex;gap:6px}.trigger-tabs .selected{font-weight:700;text-decoration:underline}
.trigger-card{border-left:2px solid #3b95f2;padding-left:8px}
.trigger-card>summary{cursor:pointer;font-size:12px;font-weight:600;padding:6px 0}
.trigger-body,.trigger-conditions{display:grid;gap:6px;padding-bottom:8px}
.trigger-field{display:grid;gap:3px;font-size:12px}.trigger-field textarea{resize:vertical}
.trigger-condition{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.trigger-condition select,.trigger-condition input{max-width:120px}
.trigger-subtitle{margin:4px 0 0;font-size:12px;font-weight:600}.trigger-status{color:#b43b3b;font-size:12px;margin:0}
/* v4.41 Appear and disappear: one collapsed menu with collapsible Appear and Disappear subsections. */
.editor-appearance{margin:10px 0 4px}
.editor-appearance>summary{cursor:pointer;font-weight:700;padding:6px 0}
.editor-appearance-section{margin:4px 0 4px 2px}
.editor-appearance-section>summary{cursor:pointer;font-size:12px;font-weight:600;padding:6px 0}
.editor-appearance-section{display:grid;gap:6px}
.editor-conditions{display:grid;gap:6px;padding:2px 0 8px}
.editor-condition{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding-left:8px;border-left:2px solid #3b95f2}
.editor-condition select,.editor-condition input{max-width:130px}
