.event-top {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: .4rem;
  background: #fc3b11;
  color: #170b08;
  font-weight: 900;
  line-height: 1;
}
.visual > .event-top { position: absolute; right: 12px; top: 54px; z-index: 2; }
#editor-tools, #editor-dialog {
  background: #fffaf5;
  color: #23182a;
  border: 1px solid #baacc3;
  border-radius: .8rem;
}
#editor-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: .65rem;
}
#editor-status { flex-basis: 100%; margin: 0; font-size: .9rem; }
#editor-dialog { width: min(38rem, 94vw); padding: 1rem; max-height: 88dvh; }
.editor-dialog-head, .editor-actions, .editor-rows li {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.editor-dialog-head, .editor-rows li { justify-content: space-between; }
.editor-dialog-head h2 { margin: 0; }
.editor-rows { padding-inline-start: 1.35rem; }
.editor-rows li { margin-block: .4rem; padding-block: .35rem; border-bottom: 1px solid #ded5e4; }
#editor-tools button, #editor-dialog button, .editor-card-action {
  min-height: 42px;
  padding: .45rem .8rem;
  background: white;
  color: #2b1737;
  border: 1px solid #8c739c;
  border-radius: .55rem;
  text-align: center;
  font-weight: 650;
}
#hero-edit {
  position: absolute;
  z-index: 4;
  inset: 12px 12px auto auto;
  min-height: 44px;
  padding: .45rem .9rem;
  border: 1px solid white;
  border-radius: .55rem;
  color: white;
  background: #4b2265;
  font-weight: 750;
}
.hero-picker, .hero-picker label { display: grid; gap: .4rem; min-width: 0; }
.hero-picker { gap: .8rem; }
.hero-picker :is(input, select) {
  width: 100%;
  min-width: 0;
  padding: .55rem;
  border: 1px solid #9b8aa7;
  border-radius: .4rem;
  background: white;
  color: #23182a;
  font: inherit;
}
#editor-tools [data-editor="publish"], #editor-dialog [type="submit"], #editor-dialog [aria-pressed="true"] {
  color: white;
  background: #4b2265;
}
#editor-dialog button:disabled, #editor-tools button:disabled { opacity: .55; cursor: default; }
.editor-card-action { margin: 0 .7rem .7rem; }
.editor-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.card > .editor-card-tools {
  position: absolute;
  z-index: 3;
  inset: 59px 8px auto 10px;
  pointer-events: none;
}
.editor-card-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: .22rem .42rem;
  border: 1px solid #fff9;
  border-radius: .4rem;
  background: #352043;
  color: white;
  font: 750 .8rem/1 system-ui, sans-serif;
  touch-action: manipulation;
  pointer-events: auto;
}
.editor-card-tools button[aria-pressed="true"] {
  background: #ffcb62;
  color: #23182a;
  border-color: #23182a;
}
.editor-session-open .visual > .event-top { top: auto; bottom: 12px; }
.bill-row > .editor-card-tools {
  grid-column: 1 / -1;
  justify-self: end;
}
.bill-row > .editor-card-tools button { justify-content: center; }
.night-editor-event {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.leisure-editor-event > .editor-card-tools { margin-top: .35rem; }
#detail .editor-card-action { margin: .7rem 0 0; }
#editor-form {
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
}
#editor-form :is(label, fieldset) { min-width: 0; }
#editor-form label:not(.editor-check) { display: grid; gap: .25rem; font-weight: 650; }
#editor-form :is(input:not([type=checkbox]), select, textarea) {
  width: 100%;
  min-width: 0;
  padding: .5rem;
  border: 1px solid #9b8aa7;
  border-radius: .4rem;
  background: white;
  color: #23182a;
  font: inherit;
}
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.editor-session {
  display: grid;
  gap: .4rem;
  align-items: end;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) auto;
  margin-bottom: .6rem;
}
.editor-message:empty { display: none; }
body[data-category="Diversión"][data-manual-recreation] #cards { display: grid; }
@media (max-width: 390px) {
  .editor-grid { grid-template-columns: 1fr; }
  #editor-dialog { padding: .7rem; }
}

.editor-session-open #editor-entry { display: none; }
