#slot-popup {
  position: fixed; z-index: 25; margin: 0; padding: 0;
  width: min(20.5rem, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  overflow: auto; overscroll-behavior: contain;
  color: var(--text); background: #fff; border: 1px solid #b8cfc2; border-radius: 13px;
  box-shadow: 0 7px 25px #244b3d29, 0 2px 5px #244b3d12;
  text-align: left; font-size: 1rem; line-height: 1.45;
}
#slot-popup:focus { outline: none; }
.slot-popup-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 6px; padding: 9px 7px 9px 15px; background: #edf5ef;
}
#slot-popup[data-kind="plan"] .slot-popup-head { background: #faf1e3; }
.slot-popup-heading { flex: 1; min-width: 0; align-self: center; padding-block: 2px; }
.slot-popup-heading h2 { font-size: 1rem; overflow-wrap: anywhere; }
.slot-popup-heading p { margin-top: 1px; color: #486258; font-size: .9rem; font-variant-numeric: tabular-nums; }
.slot-popup-close {
  flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: #415e50; font: 1.45rem/1 system-ui,sans-serif;
}
.slot-popup-close:hover { background: #00000009; }
.slot-popup-content { padding: 13px 15px 15px; }
.slot-popup-content h3 { font-size: .9rem; color: var(--ink); font-weight: 720; margin-bottom: 7px; }
.slot-popup-members { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.slot-popup-members li {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%;
  padding: 3px 8px 3px 3px; border: 1px solid #e0e8e0; border-radius: 18px;
  color: #2e463b; font-size: .9rem; line-height: 1.25;
}
.slot-popup-members .avatar { flex: 0 0 23px; width: 23px; height: 23px; font-size: .72rem; }
.slot-popup-members .slot-popup-name { overflow-wrap: anywhere; }
.slot-popup-empty { color: var(--muted); font-size: .9rem; }
.slot-popup-plans { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; }
.slot-popup-plan { padding-left: 10px; border-left: 3px solid #d8aa69; }
.slot-popup-plan + .slot-popup-plan { margin-top: 12px; }
.slot-popup-plan strong { color: var(--ink); overflow-wrap: anywhere; }
.slot-popup-plan p { color: #5b6d61; font-size: .86rem; font-variant-numeric: tabular-nums; }
.slot-popup-plan .slot-popup-members { margin-top: 6px; }
.slot-popup-action, .slot-popup-row-edit {
  display: block; padding: 7px 10px;
  min-height: 42px; border: 1px solid #adcbb9; border-radius: 8px;
  background: #f1f7f1; color: #245c46; font-size: .9rem; font-weight: 700;
}
.slot-popup-actions, .slot-popup-row-actions { display: flex; align-items: stretch; gap: 8px; }
.slot-popup-actions { margin: 0 15px 13px; }
.slot-popup-row-actions { margin-top: 8px; }
.slot-popup-action, .slot-popup-row-edit { flex: 1; min-width: 0; }
.slot-popup-delete {
  flex: 0 0 44px; min-height: 44px; margin-left: auto; padding: 0;
  border: 1px solid #ddc5bf; border-radius: 8px; background: #fff8f6;
  font: 1.45rem/1 system-ui, sans-serif; color: #98453c;
}
.slot-popup-delete:hover { background: #fbece8; border-color: #ca9287; }
.slot-popup-action:hover, .slot-popup-row-edit:hover { background: #e2eee4; }
