.ve-editor {
  max-width: 880px;
  margin: 0 auto;
  color: #1d1d1f;
}
.ve-editor * {
  box-sizing: border-box;
}
.ve-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.ve-heading h2 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: -0.8px;
}
.ve-kicker {
  font-size: 12px;
  color: #7d7d82;
}
.ve-pill {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  padding: 5px 9px;
  background: #f1f1f3;
  color: #666;
  border-radius: 7px;
}
.ve-section {
  background: #fff;
  border: 1px solid #e7e7eb;
  border-radius: 20px;
  padding: 24px;
  margin: 18px 0;
}
.ve-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 0 0 22px;
}
.ve-section h3 > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 12px;
}
.ve-editor label {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  font-size: 13px;
  color: #555;
}
.ve-editor .input,
.ve-editor .select,
.ve-editor .textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dedee3;
  border-radius: 11px;
  background: #fafafa;
  padding: 12px;
  font: inherit;
  color: #222;
}
.ve-editor .textarea {
  min-height: 110px;
  resize: vertical;
}
.ve-editor .input:focus,
.ve-editor .textarea:focus,
.ve-editor .select:focus {
  outline: 2px solid #1d1d1f;
  outline-offset: 2px;
}
.ve-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ve-tabs {
  display: flex;
  gap: 4px;
  background: #f2f2f4;
  border-radius: 11px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  margin: 20px 0;
  flex-wrap: wrap;
}
.ve-editor .btn {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 0;
  background: #f1f1f3;
  color: #333;
  font: inherit;
  font-size: 13px;
}
.ve-editor .btn.primary {
  background: #171717;
  color: white;
}
.ve-tabs .btn {
  background: transparent;
  color: #777;
}
.ve-tabs .btn.active {
  background: white;
  color: #171717;
  box-shadow: 0 1px 5px #00000009;
}
.ve-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.ve-calendar-head .btn {
  font-size: 24px;
  padding: 5px 18px;
}
.ve-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.ve-day-label {
  text-align: center;
  color: #999;
  font-size: 12px;
  padding: 10px 0;
}
.ve-calendar button {
  aspect-ratio: 1.2;
  max-height: 56px;
  min-height: 38px;
  cursor: pointer;
  background: #f8f8f9;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #333;
  font: inherit;
}
.ve-calendar button.selected,
.ve-weekdays .btn.selected {
  background: #171717;
  color: #fff;
}
.ve-calendar button:disabled {
  color: #c4c4c8;
  background: #fdfdfd;
  cursor: default;
}
.ve-selected {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
  min-height: 24px;
}
.ve-selected small {
  color: #999;
}
.ve-selected .btn {
  font-size: 11px;
  min-height: 31px;
  padding: 5px 9px;
}
.ve-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.ve-weekdays .btn {
  padding: 9px 3px;
}
.ve-label {
  font-size: 13px;
  color: #777;
}
.ve-shortcuts {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.ve-shortcuts .btn {
  font-size: 11px;
  background: transparent;
  min-height: 35px;
}
.ve-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ve-time-grid label {
  min-width: 0;
}
.ve-slot {
  background: #fafafa;
  border: 1px solid #ededf0;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
}
.ve-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ve-slot-top .btn {
  background: transparent;
  font-size: 12px;
}
.ve-slot .input {
  background: #fff;
}
.ve-slot .input:disabled {
  background: #eee;
  color: #888;
}
.ve-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #ededf0;
}
.ve-rule strong {
  font-size: 14px;
}
.ve-rule small {
  display: block;
  color: #888;
  margin-top: 7px;
  font-size: 12px;
}
.ve-rule .btn {
  font-size: 12px;
  padding: 8px 10px;
  background: transparent;
}
.ve-note {
  font-size: 12px;
  color: #777;
  line-height: 1.8;
  padding: 12px 0;
}
.ve-editor label.ve-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}
.ve-switch input {
  width: 22px;
  height: 22px;
  accent-color: #171717;
  flex-shrink: 0;
}
.ve-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  bottom: 0;
  border-top: 1px solid #e7e7eb;
  background: #fffffff2;
  backdrop-filter: blur(15px);
  padding: 16px 0;
  margin-top: 20px;
  z-index: 2;
}
.ve-footer .btn {
  padding: 13px 28px;
  min-height: 48px;
}
.ve-summary {
  font-size: 12px;
  color: #888;
}
.ve-error {
  background: #f5f5f5;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
}
.ve-readonly {
  padding: 12px;
  background: #f5f5f7;
  border-radius: 10px;
}
.ve-editor [hidden] {
  display: none !important;
}
.ve-editor .rich-image-picker {
  padding: 0;
}
.ve-editor button:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}
.ve-editor .btn:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 600px) {
  .ve-section {
    padding: 18px;
    border-radius: 17px;
  }
  .ve-heading h2 {
    font-size: 24px;
  }
  .ve-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ve-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ve-time-grid label:last-child:nth-child(3) {
    grid-column: 1/-1;
  }
  .ve-calendar {
    gap: 4px;
  }
  .ve-calendar button {
    border-radius: 8px;
    min-height: 35px;
  }
  .ve-rule {
    align-items: flex-start;
  }
  .ve-rule > div:last-child {
    display: flex;
    flex-shrink: 0;
  }
  .ve-weekdays {
    gap: 4px;
  }
  .ve-weekdays .btn {
    font-size: 12px;
  }
  .ve-footer .btn {
    padding: 12px 18px;
  }
  .ve-footer {
    padding-bottom: 18px;
  }
  .ve-summary {
    max-width: 160px;
    line-height: 1.7;
  }
}
