.ev-editor { min-width: 0; color: #192e42; }
.ev-reader .ev-block { cursor: default; }
.ev-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.ev-toolbar label { display: grid; gap: .3rem; min-width: 12rem; flex: 1 1 16rem; max-width: 28rem; }
.ev-toolbar button, .ev-days button, .ev-list button, .ev-dialog button { min-height: 44px; }
.ev-actions { padding: 1rem; border: 1px solid #d1dde7; background: #f3f7fa; border-radius: 12px; }
.ev-actions [data-ev-save]:not(:disabled), .ev-actions [data-ev-publish], .ev-dialog button[type="submit"] { color: #fff; background: #294c73; border-color: #294c73; }
.ev-help { color: #526779; font-size: .9rem; line-height: 1.5; margin: .8rem 0; }
.ev-save-status { margin-left: auto; font-size: .9rem; }
.ev-error { color: #a02727; white-space: pre-wrap; }
.ev-error:empty { display: none; }
.ev-days { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.ev-days button[aria-pressed="true"] { color: #fff; background: #294c73; border-color: #294c73; }
.ev-scroll { overflow: auto; max-width: 100%; max-height: 65vh; border: 1px solid #bccbd7; border-radius: 12px; background: #fff; scrollbar-gutter: stable; }
.ev-timeline { padding-right: 28px; }
.ev-timeaxis { height: 36px; position: sticky; top: 0; background: #f3f7fa; z-index: 5; }
.ev-timeaxis span { position: absolute; top: 8px; font-size: 12px; }
.ev-zone { display: flex; align-items: flex-end; margin-bottom: 20px; }
.ev-seats { position: sticky; left: 0; z-index: 4; width: 112px; flex: 0 0 112px; background: #f3f7fa; border-right: 1px solid #bbcbd7; }
.ev-seats strong { display: block; padding: 8px; overflow-wrap: anywhere; font-size: .8rem; }
.ev-seats > span { display: block; height: 36px; line-height: 36px; padding-left: 12px; border-top: 1px solid #dce5ed; box-sizing: border-box; font-size: 12px; }
.ev-grid { flex-shrink: 0; position: relative; background-image: repeating-linear-gradient(to right, #d4dee8 0 1px, transparent 1px 84px), repeating-linear-gradient(to right, #edf1f5 0 1px, transparent 1px 21px), repeating-linear-gradient(to bottom, #dce5ed 0 1px, transparent 1px 36px); }
.ev-grid .ev-block { position: absolute; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; gap: 2px; align-items: start; justify-content: center; margin: 0; padding: 3px 10px; border: 2px solid #526b82; border-left: 8px solid var(--ev-group); border-radius: 7px; background: #edf3f8; color: #142f48; font-size: 12px; text-align: left; cursor: grab; min-height: 0; min-width: 0; box-shadow: none; }
.ev-block strong, .ev-block > span:not(.ev-handle) { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.ev-block:focus-visible { outline: 3px solid #c68b00; outline-offset: 1px; z-index: 3; }
.ev-handle { position: absolute; z-index: 2; }
.ev-start { left: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.ev-end { right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; border-right: 3px solid #698096; }
.ev-bottom { bottom: 0; left: 15%; right: 15%; height: 7px; cursor: ns-resize; border-bottom: 3px solid #698096; }
.ev-ghost { position: absolute; box-sizing: border-box; border: 2px dashed #294c73; background: #cce2f2e8; color: #15314d; z-index: 6; pointer-events: none; font-size: 12px; padding: 4px; overflow: hidden; }
.ev-list { margin-top: 1rem; padding: 1rem; border: 1px solid #d1dde7; border-radius: 12px; background: #fff; }
.ev-list summary { cursor: pointer; font-weight: 700; }
.ev-list-row { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid #e4ebf1; }
.ev-list-row > div { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.ev-list-row input, .ev-repeat input { width: 20px; height: 20px; flex-shrink: 0; }
.ev-list-row small { display: block; color: #526779; }
.ev-list > button { margin-top: .7rem; }
.ev-dialog { width: min(680px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid #c6d3de; border-radius: 16px; padding: 1.25rem; box-shadow: 0 20px 80px #1235; color: #192e42; background: #fff; box-sizing: border-box; }
.ev-dialog::backdrop { background: #152c45a8; }
.ev-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.ev-dialog-heading h3 { margin: 0; }
.ev-dialog fieldset { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.ev-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ev-form-grid label { display: grid; gap: .4rem; min-width: 0; }
.ev-form-grid input, .ev-form-grid select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; }
.ev-dialog .ev-repeat { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding: .8rem 0; }
.ev-repeat label { display: flex; gap: .4rem; align-items: center; min-height: 44px; }
@media (max-width: 600px) {
  .ev-form-grid { grid-template-columns: 1fr; }
  .ev-toolbar label { max-width: 100%; min-width: 0; }
  .ev-save-status { margin-left: 0; flex-basis: 100%; }
  .ev-actions { padding: .7rem; }
  .ev-days button { flex: 1 0 27%; }
  .ev-list { padding: .65rem; }
  .ev-list-row { align-items: flex-start; font-size: .9rem; }
  .ev-list-row button { flex-shrink: 0; }
}
