.event-editor { max-width: 900px; padding-block: 38px 64px; }
.event-editor-intro { max-width: 680px; margin-bottom: 26px; }
.event-editor-intro h1 { margin: 9px 0 14px; font-size: clamp(2.3rem, 6vw, 3.2rem); line-height: 1.12; }
.event-editor-intro > p:last-child { color: var(--muted); }
.event-access, .event-form-card, .event-existing { border: 1px solid var(--line); background: var(--white); border-radius: 20px; }
.event-access { padding: 24px; margin-bottom: 20px; border-top: 3px solid var(--red); }
.event-access h2 { margin-bottom: 8px; font-size: 1.5rem; }
.event-access > p { color: var(--muted); font-size: .9375rem; }
.event-access-controls { display: flex; align-items: end; gap: 12px; margin-top: 17px; }
.event-access-controls .event-field { flex: 1; }
.event-access-ready { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 2px 14px; font-size: .875rem; color: var(--muted); }
.event-text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--red-dark); font-size: .875rem; font-weight: 650; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.event-form-card { padding: 30px; }
.event-form-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.event-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 22px; align-items: start; }
.event-field { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.event-field-wide { grid-column: 1 / -1; }
.event-field > label { font-size: 1rem; font-weight: 650; line-height: 1.4; }
.event-field > input, .event-field > select { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 12px 13px; border: 1px solid #aeb8c4; border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; }
.event-field > input::placeholder { color: #6c7682; opacity: 1; }
.event-field > select { appearance: none; padding-right: 39px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%23535d69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; }
.event-field > input:focus-visible, .event-field > select:focus-visible, .event-check input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.event-field > input:disabled, .event-field > select:disabled { background-color: var(--surface); color: var(--muted); }
.event-field .event-check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.event-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red-dark); }
.event-field-hint { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.event-access > .event-field-hint:not(:empty) { margin-top: 10px; }
.event-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.event-form-actions .button { cursor: pointer; }
.event-editor button:disabled { cursor: default; opacity: .6; transform: none; }
.event-save-feedback { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.event-save-feedback[data-kind='error'] { border-color: var(--red-line); background: var(--red-soft); color: var(--red-dark); }
.event-save-feedback[data-kind='success'] { border-color: #a8c8b4; background: #edf6f0; color: #20533a; }
.event-saved-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--red-dark); font-weight: 650; text-underline-offset: 4px; }
.event-existing { margin-top: 28px; overflow: hidden; }
.event-existing > summary { padding: 20px 24px; font-weight: 650; cursor: pointer; }
.event-existing > summary span { margin-left: 8px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.event-existing[open] > summary { border-bottom: 1px solid var(--line); }
.event-existing-inner { padding: 6px 24px 24px; }
.event-existing-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block: 8px 12px; }
.event-existing-heading p, .event-list-status { color: var(--muted); font-size: .9375rem; }
.event-existing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event-existing-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.event-existing-list strong { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.event-existing-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.event-existing-list .button { flex-shrink: 0; min-height: 44px; padding: 9px 13px; font-size: .875rem; cursor: pointer; }
.event-existing-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 8px; }
.event-existing-list .event-delete-button { border-color: var(--red-line); color: var(--red-dark); }
.event-existing-list .event-delete-button:hover { border-color: var(--red-dark); background: var(--red-soft); }
.event-existing-cancelled { display: inline-block; margin-top: 6px; color: var(--red-dark); font-size: .875rem; font-weight: 650; }
.event-editor-back { margin-top: 26px; }
.event-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.event-delete-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px #10203133; }
.event-delete-dialog::backdrop { background: #10182280; backdrop-filter: blur(2px); }
.event-delete-content { padding: 28px; }
.event-delete-content > .eyebrow { color: var(--red-dark); }
.event-delete-content h2 { margin: 9px 0 20px; font-size: 2rem; line-height: 1.15; }
.event-delete-title { font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.event-delete-meta { margin-top: 7px; color: var(--muted); font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.event-delete-warning { margin-top: 20px; font-size: .9375rem; line-height: 1.6; }
.event-delete-status { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.event-delete-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.event-delete-actions .button { min-height: 48px; cursor: pointer; }
.event-delete-dialog button:disabled { cursor: default; opacity: .6; transform: none; }
@media (max-width: 600px) {
  .event-editor { padding-block: 25px 44px; }
  .event-editor-intro { margin-bottom: 22px; }
  .event-form-card { padding: 22px 18px; border-radius: 16px; }
  .event-form-grid { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .event-access { padding: 20px 18px; border-radius: 16px; }
  .event-access-controls { align-items: stretch; flex-direction: column; }
  .event-access-controls .button { align-self: start; }
  .event-form-actions { flex-direction: column; }
  .event-form-actions .button { width: 100%; }
  .event-existing > summary { padding: 18px; }
  .event-existing-inner { padding: 6px 18px 18px; }
  .event-existing-heading { align-items: start; flex-direction: column; gap: 0; }
  .event-existing-list li { align-items: start; flex-direction: column; gap: 10px; }
  .event-existing-actions { width: 100%; }
  .event-existing-actions .button { flex: 1; }
  .event-delete-content { padding: 24px 20px; }
  .event-delete-actions { flex-direction: column; }
  .event-delete-actions .button { width: 100%; }
}
