.event-settings .panel-editor [hidden] { display: none; }
.panel-editor .panel-text-fields {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.panel-editor .panel-text-fields .ed-field { min-width: 0; }
.panel-editor .panel-roster {
  display: grid;
  border-top: 1px solid var(--ed-line);
  padding-top: 13px;
  gap: 8px;
}
.panel-editor .panel-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-editor .panel-roster-header h3 { margin: 0; color: var(--ed-ink); font-size: 14px; font-weight: 600; }
.panel-editor .panel-roster-header button { min-height: 34px; }
.panel-editor .panel-roster-rows { display: grid; gap: 7px; }
.panel-editor .panel-roster-rows:empty { display: none; }
.panel-editor .panel-entry { min-width: 0; border: 1px solid var(--ed-line); border-radius: 8px; background: var(--ed-field); }
.panel-editor .panel-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ed-ink);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.panel-editor .panel-entry summary::-webkit-details-marker { display: none; }
.panel-editor .panel-entry summary svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.panel-editor .panel-entry[open] summary { border-radius: 7px 7px 0 0; border-bottom: 1px solid var(--ed-line); background: #f0f2eb; }
.panel-editor .panel-entry[open] summary svg { transform: rotate(180deg); }
.panel-editor .panel-entry-body { display: grid; gap: 12px; padding: 12px; }
.panel-editor .panel-entry-body > .panel-remove { justify-self: start; margin-inline-start: -8px; min-height: 32px; }
.panel-editor [data-kind="sponsor"] .panel-text-fields { grid-template-columns: 1fr; }
.panel-editor .panel-image-section, .panel-editor .panel-upload-controls {
  display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px;
}
.panel-editor .panel-sample {
  display: grid; place-items: center; width: 60px; height: 60px; overflow: hidden;
  border: 1px solid var(--ed-line); border-radius: 6px; background: #f0f2eb;
}
.panel-editor [data-kind="sponsor"] .panel-sample { width: 106px; padding: 4px; }
.panel-editor .panel-sample img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; }
.panel-editor .panel-upload-label { display: grid; gap: 4px; color: var(--ed-text); font-size: 13px; font-weight: 550; }
.panel-editor .panel-upload-picker {
  position: relative; display: grid; place-items: center; align-self: start; min-height: 38px; padding: 7px 11px;
  overflow: hidden; border: 1px solid var(--ed-line); border-radius: 6px; background: var(--ed-field); color: var(--ed-ink);
}
.panel-editor .panel-upload-picker:hover { background: #edf0e8; }
.panel-editor .panel-upload-picker:focus-within { outline: 2px solid var(--ed-green); outline-offset: 3px; }
.panel-editor .panel-upload-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.panel-editor .panel-image-status { margin: 0; color: var(--ed-text); font-size: 12px; line-height: 1.5; }
.panel-editor .panel-image-status:empty { display: none; }
@container (max-width: 440px) {
  .panel-editor .panel-text-fields { grid-template-columns: 1fr; }
  .panel-editor .panel-roster-header button, .panel-editor .panel-upload-picker { min-height: 44px; }
}
