{{!-- Camera Layout Auto-Apply Panel - per-scene configuration --}}
<div class="directors-board__preset-panel-header">
  <h3 class="directors-board__preset-panel-title">{{localize "scrying-pool.scenePresetPanel.title"}}</h3>
</div>

{{#if hasScene}}
  <div class="directors-board__preset-panel-body">
    <div class="directors-board__preset-panel-row">
      <label class="directors-board__preset-panel-label">
        <input type="checkbox" 
               class="directors-board__preset-panel-toggle"
               data-action="toggle-auto-apply"
               {{#if enabled}}checked{{/if}}
               role="switch"
               aria-label="{{localize 'scrying-pool.scenePresetPanel.enableAutoApply'}}">
        {{localize "scrying-pool.scenePresetPanel.enableAutoApply"}}
      </label>
    </div>
    
    <div class="directors-board__preset-panel-row">
      <label class="directors-board__preset-panel-label">
        {{localize "scrying-pool.scenePresetPanel.preset"}}
        <select class="directors-board__preset-panel-select"
                data-action="select-preset"
                {{#unless hasPresets}}disabled{{/unless}}
                aria-label="{{localize 'scrying-pool.scenePresetPanel.selectPreset'}}">
          <option value="" {{#unless presetName}}selected{{/unless}}>
            {{localize "scrying-pool.scenePresetPanel.selectPreset"}}
          </option>
          {{#each presets}}
            <option value="{{this.name}}" {{#if (eq this.name ../presetName)}}selected{{/if}}>
              {{this.name}}
            </option>
          {{/each}}
        </select>
      </label>
    </div>
    
    <div class="directors-board__preset-panel-row">
      <label class="directors-board__preset-panel-label">
        {{localize "scrying-pool.scenePresetPanel.preDelay"}}
        <span class="directors-board__preset-panel-delay-value">{{preDelay}}ms</span>
        <input type="range" 
               class="directors-board__preset-panel-slider"
               data-action="change-delay"
               min="0" 
               max="5000" 
               value="{{preDelay}}"
               step="100"
               aria-label="{{localize 'scrying-pool.scenePresetPanel.preDelay'}}"
               aria-valuemin="0"
               aria-valuemax="5000"
               aria-valuenow="{{preDelay}}">
      </label>
    </div>
    
    <div class="directors-board__preset-panel-row directors-board__preset-panel-row--hint">
      <span>{{localize "scrying-pool.scenePresetPanel.globalSettingsHint"}}</span>
    </div>
  </div>
{{else}}
  <p class="directors-board__preset-panel-message">{{localize "scrying-pool.scenePresetPanel.noScene"}}</p>
{{/if}}
