/* =========================================================
 * HS Reservation Editor
 * 역할: KBoard 예약 작성/수정 화면 전용
 * 문서 페이지 전용 스타일은 reservation-document.css / document-calendar.css로 분리
 * =======================================================*/

.hsr-editor .hsr-picker,
.hsr-editor .hsr-items,
.hsr-editor .hsr-items__inner {
  width: 100%;
  margin-top: 0;
}

.hsr-editor .hsr-input,
.hsr-editor .hsr-select,
.hsr-editor .hsr-textarea,
.hsr-editor .hsr-chip,
.hsr-editor .hsr-hot-item,
.hsr-editor .hsr-result-item,
.hsr-editor .hsr-recent-item,
.hsr-editor .hsr-ghost-btn,
.hsr-editor .hsr-icon-btn,
.hsr-editor .hsr-primary-btn {
  font: inherit;
  box-sizing: border-box;
}

.hsr-editor .hsr-input,
.hsr-editor .hsr-select,
.hsr-editor .hsr-textarea {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.hsr-editor .hsr-textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.hsr-editor .hsr-input:focus,
.hsr-editor .hsr-select:focus,
.hsr-editor .hsr-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hsr-editor .hsr-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsr-editor .hsr-field--full {
  grid-column: 1 / -1;
}

.hsr-editor .hsr-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.hsr-editor .hsr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* =========================
 * Buttons / chips
 * =======================*/

.hsr-editor .hsr-primary-btn,
.hsr-editor .hsr-ghost-btn,
.hsr-editor .hsr-icon-btn {
  appearance: none;
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1;
}

.hsr-editor .hsr-primary-btn {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  padding: 10px 12px;
}

.hsr-editor .hsr-primary-btn--full {
  width: 100%;
  justify-content: center;
}

.hsr-editor .hsr-ghost-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 10px 12px;
}

.hsr-editor .hsr-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hsr-editor .hsr-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hsr-editor .hsr-icon-btn--danger { color: #dc2626; }
.hsr-editor .hsr-icon-btn--restore { color: #2563eb; }
.hsr-editor .hsr-icon-btn--edit { color: #64748b; }

.hsr-editor .hsr-icon-btn--danger:hover,
.hsr-editor .hsr-icon-btn--restore:hover,
.hsr-editor .hsr-icon-btn--edit:hover {
  border-radius: 999px;
}

.hsr-editor .hsr-icon-btn--danger:hover { background: rgba(220, 38, 38, 0.08); }
.hsr-editor .hsr-icon-btn--restore:hover { background: rgba(37, 99, 235, 0.08); }
.hsr-editor .hsr-icon-btn--edit:hover { background: #f1f5f9; color: #334155; }

.hsr-editor .hsr-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hsr-editor .hsr-chip {
  appearance: none;
  margin: 0;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
}

.hsr-editor .hsr-chip.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.hsr-editor .hsr-card-actions,
.hsr-editor .hsr-card-actions--end,
.hsr-editor .hsr-item-card__actions,
.hsr-editor .hsr-submission-item__actions,
.hsr-editor .hsr-schedule-row__actions,
.hsr-editor .hsr-submission-group__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.hsr-editor .hsr-card-actions {
  margin-top: 12px;
}

/* =========================
 * Common cards
 * =======================*/

.hsr-editor .hsr-items__header {
  margin-bottom: 12px;
}

.hsr-editor .hsr-items__title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.hsr-editor .hsr-items__desc {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.hsr-editor .hsr-items__list,
.hsr-editor .hsr-program-list,
.hsr-editor .hsr-picker-list,
.hsr-editor .hsr-program-search-list,
.hsr-editor .hsr-manual-add-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsr-editor .hsr-empty-text,
.hsr-editor .hsr-empty-box {
  width: 100%;
  padding: 18px 14px;
  font-size: 14px;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.hsr-editor .hsr-empty-box__title,
.hsr-editor .hsr-target-add-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.hsr-editor .hsr-empty-box__desc,
.hsr-editor .hsr-target-add-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  word-break: keep-all;
}

.hsr-editor .hsr-target-card,
.hsr-editor .hsr-program-card,
.hsr-editor .hsr-submission-group,
.hsr-editor .hsr-submission-item {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.hsr-editor .hsr-target-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.hsr-editor .hsr-target-card.is-completed,
.hsr-editor .hsr-program-card.is-completed,
.hsr-editor .hsr-submission-item.is-completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.hsr-editor .hsr-target-card.is-incomplete,
.hsr-editor .hsr-submission-item.is-pending {
  background: #fff7ed;
  border-color: #fdba74;
}

.hsr-editor .hsr-submission-item.is-excluded,
.hsr-editor .hsr-submission-entity.is-excluded {
  opacity: 0.68;
}

.hsr-editor .hsr-target-card__head,
.hsr-editor .hsr-program-card__head,
.hsr-editor .hsr-submission-item__head {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hsr-editor .hsr-target-card__main,
.hsr-editor .hsr-program-card__main,
.hsr-editor .hsr-submission-item__linked,
.hsr-editor .hsr-submission-item__linked-text {
  min-width: 0;
}

.hsr-editor .hsr-target-card__main,
.hsr-editor .hsr-program-card__text,
.hsr-editor .hsr-submission-item__linked-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsr-editor .hsr-target-card__title-row,
.hsr-editor .hsr-program-card__title-row,
.hsr-editor .hsr-submission-item__title-row,
.hsr-editor .hsr-submission-entity__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hsr-editor .hsr-target-card__title,
.hsr-editor .hsr-program-card__title,
.hsr-editor .hsr-submission-item__title,
.hsr-editor .hsr-submission-entity__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hsr-editor .hsr-target-card__summary,
.hsr-editor .hsr-program-card__summary,
.hsr-editor .hsr-submission-item__meta,
.hsr-editor .hsr-submission-entity__meta {
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
  word-break: keep-all;
}

.hsr-editor .hsr-target-card__meta-index,
.hsr-submission-item__target-index {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.hsr-editor .hsr-target-card__badge,
.hsr-editor .hsr-program-card__badge,
.hsr-editor .hsr-manual-add-item__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hsr-editor .hsr-target-card__badge.is-incomplete,
.hsr-editor .hsr-program-card__badge.is-pending {
  background: #ffedd5;
  color: #c2410c;
}

.hsr-editor .hsr-program-card__badge.is-excluded,
.hsr-editor .hsr-manual-add-item__badge {
  background: #e5e7eb;
  color: #475569;
}

.hsr-editor .hsr-target-card__body,
.hsr-editor .hsr-target-editor,
.hsr-editor .hsr-program-editor {
  border-top: 1px solid #f1f5f9;
  padding: 14px;
  background: #fcfcfd;
}

.hsr-editor .hsr-target-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.hsr-editor .hsr-target-add-card,
.hsr-editor .hsr-target-add-cta,
.hsr-editor .hsr-empty-box--action,
.hsr-editor .hsr-empty-box--program-action {
  width: 100%;
  appearance: none;
  margin: 0;
  padding: 18px 16px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.hsr-editor .hsr-target-add-card--primary,
.hsr-editor .hsr-empty-box--program-action {
  border: 1px dashed #93c5fd;
  background: #eff6ff;
}

.hsr-editor .hsr-target-add-card--secondary {
  border: 1px dashed #bfdbfe;
  background: #f8fbff;
}

.hsr-editor .hsr-target-add-card:hover,
.hsr-editor .hsr-empty-box--action:hover,
.hsr-editor .hsr-empty-box--program-action:hover {
  border-color: #60a5fa;
  background: #f1f5f9;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.hsr-editor .hsr-target-list-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hsr-editor .hsr-target-add-card--secondary {
  position: relative;
  padding: 18px 52px 18px 18px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.hsr-editor .hsr-target-add-card--secondary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.hsr-editor .hsr-target-add-card--secondary:hover {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.hsr-editor .hsr-target-total-box,
.hsr-editor .hsr-program-total-box {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.hsr-editor .hsr-submission-total-box__row {
  justify-content: space-between;
}

.hsr-editor .hsr-submission-total-box__value,
.hsr-editor .hsr-target-total-box__value,
.hsr-editor .hsr-program-total-box__value {
  margin-left: auto;
  text-align: right;
}

.hsr-editor .hsr-submission-total-box__row:last-of-type {
  margin: 4px -18px -16px;
  padding: 14px 18px;
  border-radius: 0 0 16px 16px;
  background: #111827;
}

.hsr-editor .hsr-submission-total-box__row:last-of-type .hsr-submission-total-box__label {
  color: #d1d5db;
}

.hsr-editor .hsr-submission-total-box__row:last-of-type .hsr-submission-total-box__value {
  color: #fff;
}

/* =========================
 * Program search / wishlist
 * =======================*/

.hsr-editor .hsr-picker__input-wrap,
.hsr-editor .hsr-program-search-shell,
.hsr-editor .hsr-program-search-box {
  position: relative;
  overflow: visible;
}

.hsr-editor .hsr-program-search-shell {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.hsr-editor .hsr-program-search-box {
  z-index: 20;
}

.hsr-editor .hsr-program-search-dropdown,
.hsr-editor .hsr-picker__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 999;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.hsr-editor .hsr-program-search-section + .hsr-program-search-section,
.hsr-editor .hsr-picker__section + .hsr-picker__section {
  border-top: 1px solid #f1f5f9;
}

.hsr-editor .hsr-program-search-section__title,
.hsr-editor .hsr-program-wishlist__title,
.hsr-editor .hsr-picker__section-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.hsr-editor .hsr-program-search-help {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.hsr-editor .hsr-program-recommend-tabs,
.hsr-editor .hsr-submission-view-switch,
.hsr-editor .hsr-submission-view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hsr-editor .hsr-program-search-item,
.hsr-editor .hsr-picker-list-item,
.hsr-editor .hsr-hot-item,
.hsr-editor .hsr-result-item,
.hsr-editor .hsr-recent-item {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.hsr-editor .hsr-program-search-item:hover,
.hsr-editor .hsr-picker-list-item:hover {
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hsr-editor .hsr-program-search-item__thumb,
.hsr-editor .hsr-picker-list-item__thumb,
.hsr-editor .hsr-hot-item img,
.hsr-editor .hsr-result-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  align-self: center;
}

.hsr-editor .hsr-program-search-item__body,
.hsr-editor .hsr-picker-list-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hsr-editor .hsr-program-search-item__title,
.hsr-editor .hsr-picker-list-item__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  word-break: keep-all;
}

.hsr-editor .hsr-program-search-item__text-btn,
.hsr-editor .hsr-program-card__link,
.hsr-editor .hsr-wishlist-card__link,
.hsr-editor .hsr-submission-entity__link,
.hsr-editor .hsr-submission-item__link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

.hsr-editor .hsr-program-wishlist {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.hsr-editor .hsr-wishlist-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.hsr-editor .hsr-wishlist-track.is-dragging {
  cursor: grabbing;
}

.hsr-editor .hsr-wishlist-card {
  flex: 0 0 116px;
  width: 116px;
  min-height: 116px;
  margin: 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.hsr-editor .hsr-wishlist-card__thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #f8fafc;
}

.hsr-editor .hsr-wishlist-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hsr-editor .hsr-wishlist-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: #111827;
  word-break: keep-all;
}

.hsr-editor .hsr-wishlist-card__actions {
  display: flex;
  align-items: center;
  margin-top: auto;
}

/* =========================
 * Program card
 * =======================*/

.hsr-editor .hsr-program-card__main,
.hsr-editor .hsr-submission-entity,
.hsr-editor .hsr-submission-item__linked {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsr-editor .hsr-program-card__main {
  flex: 1;
}

.hsr-editor .hsr-program-card__thumb,
.hsr-editor .hsr-submission-entity__thumb,
.hsr-editor .hsr-submission-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 56px;
}

/* =========================
 * Submission groups
 * =======================*/

.hsr-editor .hsr-editor-group + .hsr-editor-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.hsr-editor .hsr-submission-group__header-card {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.hsr-editor .hsr-submission-group__header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.hsr-editor .hsr-submission-group__toggle svg {
  transition: transform .2s ease;
}

.hsr-editor .hsr-submission-group__header-main.is-collapsed .hsr-submission-group__toggle svg {
  transform: rotate(-90deg);
}

.hsr-editor .hsr-submission-group__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 2000px;
  padding: 12px;
  background: #f8fafc;
  overflow: hidden;
  opacity: 1;
  transition: max-height .22s ease, opacity .22s ease;
}

.hsr-editor .hsr-submission-group__body.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.hsr-editor .hsr-submission-group__add {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  background: #fcfcfd;
}

.hsr-editor .hsr-manual-add-toggle {
  width: 100%;
  justify-content: center;
}

.hsr-editor .hsr-manual-add-item {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.hsr-editor .hsr-manual-add-item:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.hsr-editor .hsr-manual-add-item.is-excluded-candidate {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hsr-editor .hsr-manual-add-item__row,
.hsr-editor .hsr-manual-add-item__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsr-editor .hsr-manual-add-item__title-row {
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hsr-editor .hsr-manual-add-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 44px;
}

.hsr-editor .hsr-manual-add-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsr-editor .hsr-manual-add-item__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  word-break: keep-all;
}

.hsr-editor .hsr-manual-add-item__meta {
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

.hsr-editor .hsr-submission-item {
  padding: 14px;
  border-color: #dbe5df;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hsr-editor .hsr-submission-item__head {
  padding: 0;
}

.hsr-editor .hsr-submission-item__body {
  display: block;
  margin-top: 10px;
}

.hsr-editor .hsr-submission-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hsr-editor .hsr-submission-item__summary {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  white-space: normal;
}

.hsr-editor .hsr-submission-item__body:empty {
  display: none;
}

.hsr-editor .hsr-submission-total-box,
.hsr-editor .hsr-target-total-box,
.hsr-editor .hsr-program-total-box {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hsr-editor .hsr-submission-total-box__row,
.hsr-editor .hsr-target-total-box,
.hsr-editor .hsr-program-total-box {
  align-items: center;
  justify-content: space-between;
}

.hsr-editor .hsr-submission-total-box__row {
  display: flex;
  gap: 12px;
}

.hsr-editor .hsr-submission-total-box__label,
.hsr-editor .hsr-target-total-box__label,
.hsr-editor .hsr-program-total-box__label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.hsr-editor .hsr-submission-total-box__value,
.hsr-editor .hsr-target-total-box__value,
.hsr-editor .hsr-program-total-box__value {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.hsr-editor .hsr-progress-number.is-done { color: #15803d; }
.hsr-editor .hsr-progress-number.is-pending { color: #dc2626; }

.hsr-editor .hsr-submission-total-box__help {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

/* =========================
 * Schedule editor
 * =======================*/

.hsr-editor .hsr-submission-editor {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e7c9a5;
  border-radius: 18px;
  background: #fcfcfd;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hsr-editor .hsr-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #ebe5de;
  border-radius: 14px;
  background: #ffffff;
}

.hsr-editor .hsr-schedule-row__text {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  word-break: keep-all;
}

.hsr-editor .hsr-schedule-row__actions .hsr-ghost-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.hsr-editor .hsr-inline-schedule-form {
  margin: 8px 0 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}

.hsr-editor .hsr-inline-schedule-form .hsr-grid {
  margin-bottom: 14px;
}

.hsr-editor .hsr-submission-editor > .hsr-field {
  margin-top: 14px;
}

.hsr-editor .hsr-submission-editor > .hsr-field .hsr-textarea {
  min-height: 110px;
}

.hsr-editor .hsr-submission-editor > .hsr-card-actions {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

.hsr-editor .hsr-submission-editor > .hsr-ghost-btn {
  width: 100%;
  min-height: 44px;
  border-color: #dbeafe;
  background: #f8fbff;
  color: #1d4ed8;
  text-align: center;
}

.hsr-editor .hsr-class-field,
.hsr-editor .hsr-personnel-field {
  transition: max-height .22s ease, opacity .22s ease, transform .22s ease;
}

.hsr-editor .hsr-class-field {
  overflow: hidden;
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.hsr-editor .hsr-class-field.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  margin: 0;
  gap: 0;
}

.hsr-editor .hsr-personnel-field.is-expanded {
  grid-column: 1 / -1;
}

/* =========================
 * Price / quote
 * =======================*/

.hsr-editor .hsr-price-strip {
  margin: 10px -14px -14px;
  padding: 0;
}

.hsr-editor .hsr-price-strip__top,
.hsr-editor .hsr-price-strip__badge,
.hsr-editor .hsr-price-strip__edit {
  display: none !important;
}

.hsr-editor .hsr-price-strip__note {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.hsr-editor .hsr-price-strip__row {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 0 0 16px 16px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hsr-editor .hsr-price-strip__side {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hsr-editor .hsr-price-strip__side span {
  font-size: 12px;
  font-weight: 800;
  color: #d1d5db;
  line-height: 1;
}

.hsr-editor .hsr-price-strip__side strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.hsr-editor .hsr-price-strip__side.is-total strong {
  font-size: 18px;
}

.hsr-editor .hsr-price-strip.is-editable .hsr-price-strip__row {
  cursor: pointer;
}

.hsr-editor .hsr-price-strip.is-editable .hsr-price-strip__row:hover {
  background: #020617;
}

.hsr-editor .hsr-price-strip.is-undecided .hsr-price-strip__row {
  background: #111827;
}

.hsr-editor .hsr-price-strip.is-undecided .hsr-price-strip__side span {
  color: #d1d5db;
}

.hsr-editor .hsr-price-strip.is-undecided .hsr-price-strip__side strong {
  color: #fff;
}

.hsr-editor .hsr-quote-editor {
  margin: 10px 0 0;
  padding: 14px;
  border: 0;
  border-top: 1px solid #dbe5df;
  border-radius: 0;
  background: #ffffff;
}

.hsr-editor .hsr-quote-editor__personnel {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.hsr-editor .hsr-quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
  padding: 0;
  border-top: 0;
}

/* =========================
 * Responsive
 * =======================*/

@media (max-width: 550px) {
  .hsr-editor .hsr-grid,
  .hsr-editor .hsr-quote-grid {
    grid-template-columns: 1fr;
  }

  .hsr-editor .hsr-chip-list {
    gap: 4px;
  }

  .hsr-editor .hsr-target-card__head,
  .hsr-editor .hsr-program-card__head,
  .hsr-editor .hsr-submission-item__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 8px;
  }

  .hsr-editor .hsr-target-card__title-row,
  .hsr-editor .hsr-program-card__title-row,
  .hsr-editor .hsr-submission-item__title-row {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .hsr-editor .hsr-submission-item__title-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hsr-editor .hsr-item-card__actions {
    width: auto;
    justify-self: end;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .hsr-editor .hsr-submission-item__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
  }

  .hsr-editor .hsr-submission-item__actions {
    width: auto;
    margin-top: 0;
    justify-self: end;
    align-self: end;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .hsr-editor .hsr-schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .hsr-editor .hsr-schedule-row__actions {
    width: auto;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .hsr-editor .hsr-program-search-item,
  .hsr-editor .hsr-picker-list-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .hsr-editor .hsr-submission-group__body {
    padding: 10px;
  }

  .hsr-editor .hsr-price-strip__row {
    min-height: 46px;
    padding: 0 12px;
  }

  .hsr-editor .hsr-price-strip__side {
    min-height: 46px;
  }

  .hsr-editor .hsr-price-strip__side strong {
    font-size: 14px;
  }

  .hsr-editor .hsr-price-strip__side.is-total strong {
    font-size: 16px;
  }
}
