.encore-editor {
  width: min(860px, calc(100% - 28px));
  max-width: none;
  max-height: min(88dvh, 830px);
  padding: 0;
  border: 1px solid var(--line, #e5e3d8);
  border-radius: 24px;
  background: var(--paper, #f8f7f3);
  color: var(--ink, #25372b);
  box-shadow: 0 22px 80px #23312733;
}
.encore-editor::backdrop { background: #22302885; }
.ee-form {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 830px);
}
.ee-header, .ee-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--paper, #f8f7f3);
}
.ee-header { border-bottom: 1px solid var(--line, #e5e3d8); }
.ee-footer { border-top: 1px solid var(--line, #e5e3d8); }
.ee-header h2, .ee-roster-heading h3, .ee-header p, .ee-feedback { margin: 0; }
.ee-header h2 { font-size: 1.65rem; }
.ee-header p { margin-top: 3px; color: var(--muted, #5d6b61); }
.ee-close, .ee-remove-photo {
  display: grid;
  place-items: center;
  flex: none;
  height: 38px;
  width: 38px;
  padding: 0;
  border: 1px solid var(--line, #e5e3d8);
  border-radius: 50%;
  background: white;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
}
.ee-remove-photo[hidden], .ee-locked[hidden] { display: none; }
.ee-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 20px 24px; }
.ee-label { display: block; min-width: 0; font-size: .88rem; font-weight: 800; }
.ee-label input {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 4px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line, #e5e3d8);
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
}
.ee-room-field { max-width: 430px; }
.ee-roster-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.ee-roster-heading h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.ee-count { color: var(--muted, #5d6b61); font-size: .9rem; }
.ee-locked { color: var(--muted, #5d6b61); margin: 0 0 10px; }
.ee-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ee-row {
  display: grid;
  grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  align-items: start;
  border: 1px solid var(--line, #e5e3d8);
  border-radius: 13px;
  background: #ffffffa0;
}
.ee-preview { overflow: hidden; border-radius: 8px; }
.ee-preview > .art { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; }
.ee-animal-results { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ee-animal-results button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--olive);
  font-size: 13px;
  font-weight: 800;
}
.ee-animal-results button:hover { background: #edf0e6; }
.ee-animal-results img { width: 28px; height: 28px; object-fit: contain; }
.ee-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 2px; }
.ee-upload {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 32px;
  font-size: .83rem;
  font-weight: 800;
  color: var(--olive, #354638);
  cursor: pointer;
}
.ee-upload input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.ee-upload:focus-within { outline: 2px solid var(--olive, #354638); outline-offset: 2px; }
.ee-upload:hover, .ee-remove:hover:not(:disabled) { text-decoration: underline; }
.ee-remove-photo { height: 28px; width: 28px; font-size: 1.15rem; }
.ee-fields { display: grid; gap: 6px; }
.ee-optional { color: var(--muted, #5d6b61); font-weight: 600; }
.ee-remove { border: 0; background: transparent; color: var(--orange, #ae4b36); width: fit-content; padding: 3px 0; min-height: 30px; font-size: .85rem; font-weight: 750; }
.ee-button { border: 1px solid var(--line, #e5e3d8); border-radius: 10px; background: white; color: inherit; padding: 8px 13px; min-height: 40px; font-size: .92rem; font-weight: 800; white-space: nowrap; }
.ee-button:hover:not(:disabled), .ee-close:hover, .ee-remove-photo:hover { background: var(--lime, #ddedaa); }
.ee-save { color: white; background: var(--olive, #354638); border-color: var(--olive, #354638); }
.ee-save:hover:not(:disabled) { color: var(--olive, #354638); }
.ee-button:disabled, .ee-remove:disabled { opacity: .48; cursor: default; }
.ee-footer-actions { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }
.ee-feedback { color: var(--orange, #ae4b36); font-size: .9rem; }
.ee-feedback:empty { display: none; }
@media (max-width: 700px) {
  .ee-teams { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .encore-editor { width: calc(100% - 14px); max-height: 94dvh; border-radius: 17px; }
  .ee-form { max-height: 94dvh; }
  .ee-header, .ee-footer, .ee-body { padding: 12px 14px; }
  .ee-footer { flex-wrap: wrap; row-gap: 8px; }
  .ee-row { grid-template-columns: 82px minmax(0, 1fr); gap: 9px; }
  .ee-header h2 { font-size: 1.4rem; }
}
