/* PlanSlayer event cards + floating lists — Hunt/Reg merge kit
   Source of truth: Desktop/PlanSlayer (pin APP_VERSION there; last: 1.3.69 list #104).
   List rows/Got it! match Plan compact chrome so sites can merge later. */

/* Plan-style raised 3D controls inside float + day list */
#ps-list-float .btn,
#ps-list-float button.btn,
#ps-list-float .btn-got,
#ps-list-float .btn-icon,
#ps-list-float .list-col-add-btn,
#calendar-events-list .ps-event-card,
#calendar-events-list .ec-edit-btn,
#calendar-events-list .ec-list-btn {
  appearance: none;
  border: 1px solid #1a2014;
  background: linear-gradient(180deg, #323c28 0%, #262e1e 40%, #1a2014 100%);
  color: var(--ink, #f0f4ee);
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 2px 0 #0a0c09,
    0 4px 10px rgba(0,0,0,0.35);
  transition: filter 0.12s ease, border-color 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
#ps-list-float .btn:hover,
#ps-list-float .btn-got:hover,
#calendar-events-list .ec-list-btn:hover,
#calendar-events-list .ec-edit-btn:hover {
  border-color: rgba(229,154,24,0.55);
  filter: brightness(1.08);
}
#ps-list-float .btn:active,
#ps-list-float .btn-got:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 1px 0 #0a0c09,
    0 2px 4px rgba(0,0,0,0.3);
}
#ps-list-float .list-col-add-btn,
#ps-list-float .btn-primary {
  background: linear-gradient(180deg, #5a8a3a 0%, #486a2f 45%, #2f4a1c 100%) !important;
  border-color: #1e3014 !important;
  color: #fff !important;
}

/* —— Event cards (calendar day list) —— */
#calendar-events-list .ps-event-card-wrap {
  margin: 0 0 8px;
}
#calendar-events-list .ps-event-card {
  position: relative;
  width: 100%;
  text-align: left;
  cursor: pointer;
  /* #141: Plan-style 3D green cards (no dates on face — calendar has them) */
  background: linear-gradient(180deg, #3d5a2a 0%, #2f4a1c 42%, #1e3014 100%);
  border: 1px solid #152010;
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--accent, #e59a18);
  color: var(--ink, #f0f4ee);
  font-family: inherit;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 2px 0 #0a0c09,
    0 4px 10px rgba(0,0,0,0.35);
}
#calendar-events-list .ps-event-card.is-active {
  outline: 2px solid rgba(229,154,24,0.85);
  border-color: rgba(229,154,24,0.75);
  filter: brightness(1.12);
  background: linear-gradient(180deg, #4a6d32 0%, #3a5a24 42%, #2a4018 100%);
  box-shadow:
    0 0 0 1px rgba(229,154,24,0.4),
    0 2px 0 #0a0c09,
    0 6px 14px rgba(0,0,0,0.4);
}
#calendar-events-list .ps-event-card .ec-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#calendar-events-list .ps-event-card .ec-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 55%;
  font-size: 14px;
  font-weight: 800;
}
#calendar-events-list .ps-event-card .ec-countdown {
  flex: 0 0 auto;
  white-space: nowrap;
}
#calendar-events-list .ps-event-card .ec-countdown .cd {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #e59a18);
}
#calendar-events-list .ps-event-card .cd-tminus {
  font-weight: 700;
  opacity: 0.9;
  margin-right: 2px;
}
#calendar-events-list .ps-event-card .cd-now {
  color: #86efac;
}
#calendar-events-list .ps-event-card .cd-live.is-urgent {
  color: #fca5a5;
}
#calendar-events-list .ps-event-card .ec-meta {
  font-size: 11px;
  color: var(--muted, #8a9488);
  margin-top: 4px;
  font-weight: 600;
}
#calendar-events-list .ps-event-card .ec-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
#calendar-events-list .ps-event-card .ec-edit-btn,
#calendar-events-list .ps-event-card .ec-list-btn {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
#calendar-events-list .ps-event-card .ec-list-btn {
  background: linear-gradient(180deg, #e59a18 0%, #c47e10 55%, #a3680c 100%) !important;
  border-color: #b87a12 !important;
  color: #111 !important;
  letter-spacing: 0.02em;
}
#calendar-events-list .ps-event-card .ec-edit-btn:hover,
#calendar-events-list .ps-event-card .ec-list-btn:hover {
  border-color: var(--accent, #e59a18);
  color: var(--accent, #e59a18);
  filter: brightness(1.06);
}
#calendar-events-list .ps-event-detail {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #2a3224);
}
#calendar-events-list .ps-event-card.is-active .ps-event-detail {
  display: block;
}
#calendar-events-list .ps-event-detail .ps-tminus-block {
  margin-bottom: 8px;
}
#calendar-events-list .ps-event-detail .ps-tminus-block .cd {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent, #e59a18);
}
#calendar-events-list .ps-event-detail .ps-list-btn {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid rgba(229,154,24,0.55);
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 50%, #1a1810 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
#calendar-events-list .ps-event-detail .ps-list-btn:hover {
  filter: brightness(1.08);
}
#calendar-events-list .ps-event-detail .ps-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
#calendar-events-list .ps-event-detail .ps-action-row button {
  background: none;
  border: 1px solid var(--border, #2a3224);
  border-radius: 6px;
  color: var(--accent, #e59a18);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  font-family: inherit;
}
#calendar-events-list .ps-event-detail .ps-action-row button.ps-danger {
  color: #fca5a5;
}
#calendar-events-list .ps-loc-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted, #8a9488);
  margin: 0 0 8px;
  line-height: 1.3;
}
#calendar-events-list .ps-hidden-label {
  margin: 8px 0 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted, #8a9488);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Hidden events: thin name-only chip (not a full card) */
#calendar-events-list .ps-hidden-chip {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 3px;
  padding: 3px 8px;
  min-height: 0;
  line-height: 1.25;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #8a9488);
  background: rgba(0,0,0,0.2);
  border: 1px dashed var(--border, #2a3224);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#calendar-events-list .ps-hidden-chip:hover {
  color: var(--accent, #e59a18);
  border-color: rgba(229,154,24,0.45);
}

/* —— Floating Plan lists window (does not cover whole map) —— */
#ps-list-float {
  display: none;
  position: fixed;
  z-index: 28000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1280px, 96vw);
  height: min(900px, 94vh);
  background: #0e120c;
  border: 1px solid var(--border, #2a3224);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(229,154,24,0.2);
  flex-direction: column;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink, #f0f4ee);
}
#ps-list-float.is-open {
  display: flex !important;
}
#ps-list-float-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 27990;
  background: rgba(0,0,0,0.35);
}
#ps-list-float-backdrop.is-open {
  display: block !important;
}
#ps-list-float .ps-float-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a2018 0%, #12160f 100%);
  border-bottom: 1px solid var(--border, #2a3224);
  cursor: grab;
  user-select: none;
}
#ps-list-float .ps-float-head:active { cursor: grabbing; }
#ps-list-float .ps-float-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent, #e59a18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ps-list-float .ps-float-sub {
  font-size: 11px;
  color: var(--muted, #8a9488);
  font-weight: 600;
}
#ps-list-float .ps-float-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
#ps-list-float .ps-float-share,
#ps-list-float .ps-float-sync,
#ps-list-float .ps-float-close {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(229, 154, 24, 0.5);
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 100%);
  color: var(--accent, #e59a18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
#ps-list-float .ps-float-close {
  border-color: var(--border, #2a3224);
  background: #1a2018;
  color: #f0f4ee;
  min-width: 36px;
}
#ps-list-float .ps-float-share:hover,
#ps-list-float .ps-float-sync:hover,
#ps-list-float .ps-float-close:hover {
  filter: brightness(1.08);
  border-color: var(--accent, #e59a18);
  color: var(--accent, #e59a18);
}
/* No multi-list rail — event List opens that pack only */
#ps-list-float .ps-float-nav {
  display: none !important;
}
#ps-list-float .ps-list-members-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  align-items: center;
}
.ps-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #2a3224);
  background: #1a2018;
  color: #f0f4ee;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.ps-member-chip:hover {
  border-color: var(--accent, #e59a18);
}
.ps-member-chip-lg {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.ps-member-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.ps-list-set-members {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow: auto;
}
.ps-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0;
  cursor: pointer;
}
.ps-modal .btn-accent {
  border-color: rgba(229,154,24,0.45);
  color: var(--accent, #e59a18);
}
/* Close button styles live with .ps-float-head-actions above (Share | Sync | Close) */
/* Column head actions (⚙ share −) — Plan parity */
#ps-list-float .list-col-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  min-height: 36px;
}
#ps-list-float .list-col-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  font-size: 13px;
}
#ps-list-float .list-col-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
#ps-list-float .list-col-head-actions .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #f0f4ee;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
}
#ps-list-float .list-col-head-actions .btn-icon:hover {
  border-color: var(--accent, #e59a18);
  color: var(--accent, #e59a18);
}
#ps-list-float .list-col.is-minimized {
  flex: 0 0 auto;
  min-width: 36px;
  max-width: 40px;
}
#ps-list-float .list-col-mini-label {
  width: 100%;
  min-height: 120px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: 1px solid var(--border, #2a3224);
  border-radius: 8px;
  background: linear-gradient(180deg, #2a3224 0%, #1a2018 100%);
  color: var(--accent, #e59a18);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 4px;
}
/* Section options modal */
.ps-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30050;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ps-modal-overlay.is-open { display: flex !important; }
.ps-modal {
  width: min(380px, 100%);
  background: var(--panel, #161a12);
  border: 1px solid var(--border, #2a3224);
  border-radius: 12px;
  padding: 16px;
  color: #f0f4ee;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.ps-modal h3 { margin: 0 0 12px; font-size: 15px; color: #fff; }
.ps-modal .field { margin-bottom: 10px; }
.ps-modal .field label { display: block; font-size: 11px; font-weight: 700; color: var(--muted, #8a9488); margin-bottom: 4px; }
.ps-modal .field input[type="text"],
.ps-modal .field input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #2a3224);
  background: #0a0c09;
  color: #f0f4ee;
  font-family: inherit;
}
.ps-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ps-modal .btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #2a3224);
  background: #1a2018;
  color: #f0f4ee;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.ps-modal .btn.btn-primary {
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 100%);
  border-color: rgba(229,154,24,0.55);
  color: #fff;
}
.ps-modal .btn.is-active {
  border-color: var(--accent, #e59a18);
  color: var(--accent, #e59a18);
}
.ps-col-opt-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.ps-swatch.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent, #e59a18);
}
#ps-list-float .ps-float-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
#ps-list-float .ps-float-nav {
  flex: 0 0 220px;
  width: 220px;
  border-right: 1px solid var(--border, #2a3224);
  overflow: auto;
  padding: 10px 8px;
  background: #0a0c09;
  scrollbar-width: thin;
  scrollbar-color: #2a3224 #0a0c09;
}
#ps-list-float .ps-float-nav::-webkit-scrollbar { width: 8px; }
#ps-list-float .ps-float-nav::-webkit-scrollbar-thumb { background: #2a3224; border-radius: 4px; }
#ps-list-float .ps-float-nav::-webkit-scrollbar-button { display: none; height: 0; }
#ps-list-float .ps-nav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #8a9488);
  margin: 10px 6px 6px;
}
#ps-list-float .ps-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #f0f4ee;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 4px;
}
#ps-list-float .ps-nav-item:hover {
  background: rgba(229,154,24,0.1);
  border-color: rgba(229,154,24,0.25);
}
#ps-list-float .ps-nav-item.is-active {
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 100%);
  border-color: rgba(229,154,24,0.5);
  color: #fff;
}
#ps-list-float .ps-float-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
}
#ps-list-float .ps-float-main-title {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
}
#ps-list-float .ps-float-main-cd {
  flex: 0 0 auto;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #e59a18);
}
#ps-list-float .ps-float-triad-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* List triad inside float */
#ps-list-float .list-triad {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
/* #122 / #120: Plan-style section tabs (always available; primary on mobile) */
#ps-list-float .ps-col-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 8px 4px;
  flex: 0 0 auto;
}
#ps-list-float .ps-col-tab {
  appearance: none;
  border: 1px solid var(--border, #2a3224);
  background: #1a2018;
  color: var(--muted, #8a9488);
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
#ps-list-float .ps-col-tab.is-active {
  color: #111;
  border-color: var(--accent, #e59a18);
  background: linear-gradient(180deg, #f0c060 0%, #e59a18 55%, #b87a12 100%);
}
#ps-list-float .list-ocr-cam {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #2a3224);
  border-radius: 8px;
  background: #1a2018;
  color: var(--accent, #e59a18);
  cursor: pointer;
  font-size: 14px;
  padding: 0 6px;
}
#ps-list-float .list-ocr-cam:hover {
  border-color: var(--accent, #e59a18);
}
@media (max-width: 900px) {
  /* #122 / #126: full-screen Plan-style mobile list sheet */
  #ps-list-float {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    position: fixed !important;
  }
  #ps-list-float .ps-float-head {
    padding: 12px 12px calc(10px + env(safe-area-inset-top, 0px));
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  #ps-list-float .ps-float-title {
    font-size: 17px;
  }
  #ps-list-float .ps-float-main {
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  /* Plan #104 compact rows — same as PlanSlayer mobile */
  #ps-list-float .list-item {
    margin-bottom: 4px !important;
    min-height: 0 !important;
    border-radius: 8px !important;
  }
  #ps-list-float .list-item .li-row {
    min-height: 0 !important;
    align-items: center !important;
    gap: 4px !important;
  }
  #ps-list-float .list-item .li-face {
    padding: 4px 8px 4px 10px !important;
    min-height: 0 !important;
  }
  #ps-list-float .list-item .li-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }
  #ps-list-float .list-item .li-actions {
    padding: 2px 4px 2px 0 !important;
    gap: 3px !important;
    flex-direction: row !important;
    border-left: 0 !important;
  }
  #ps-list-float .list-item .li-actions .btn,
  #ps-list-float .list-item .li-actions .btn-got {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    min-width: 0 !important;
  }
  #ps-list-float .ps-float-body {
    flex-direction: column;
  }
  #ps-list-float .ps-float-nav {
    display: none !important;
  }
  /* Plan mobile: section tabs as pills under title */
  #ps-list-float .ps-col-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 10px;
    padding: 6px 2px 10px;
    border-bottom: 1px solid var(--border, #2a3224);
    -webkit-overflow-scrolling: touch;
    background: transparent;
  }
  #ps-list-float .ps-col-tab {
    flex: 0 0 auto;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    white-space: nowrap;
  }
  #ps-list-float .ps-float-main-title { display: none; }
  #ps-list-float .ps-float-sub { display: none; }
  #ps-list-float .ps-float-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
  #ps-list-float .ps-float-triad-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #ps-list-float .list-triad {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
  }
  /* Plan mobile: only active section visible */
  #ps-list-float .list-triad .list-col:not(.is-active-col) {
    display: none !important;
  }
  #ps-list-float .list-triad .list-col.is-active-col {
    flex: 1 1 auto !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 260px;
  }
  #ps-list-float .list-col-add {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}
@media (min-width: 901px) {
  /* Desktop float: show all columns side-by-side like Plan right panel */
  #ps-list-float .ps-col-tabs { display: none; }
  #ps-list-float .list-triad .list-col { display: flex; }
}
#ps-list-float .list-col {
  background: var(--col-bg, #0a0c09);
  border: 1px solid var(--border, #2a3224);
  border-radius: 10px;
  min-height: 0;
  height: 100%;
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#ps-list-float .list-col-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 100%);
  border-bottom: 1px solid rgba(229,154,24,0.4);
  flex: 0 0 auto;
}
#ps-list-float .list-col-title {
  flex: 1;
  border: 0;
  background: transparent;
  color: #e59a18;
  font-weight: 900;
  font-size: 15px;
  text-align: left;
  font-family: inherit;
}
#ps-list-float .list-col-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #2a3224 #0a0c09;
}
#ps-list-float .list-col-body::-webkit-scrollbar { width: 8px; }
#ps-list-float .list-col-body::-webkit-scrollbar-thumb { background: #2a3224; border-radius: 4px; }
#ps-list-float .list-col-body::-webkit-scrollbar-button { display: none; height: 0; }
#ps-list-float .list-col-add {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--border, #2a3224);
  background: rgba(0,0,0,0.25);
}
#ps-list-float .list-col-add-input {
  flex: 1;
  min-width: 0;
  padding: 8px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #2a3224);
  background: #0c0f0a;
  color: #f0f4ee;
  font-family: inherit;
}
#ps-list-float .list-col-add-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid rgba(229,154,24,0.5);
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
/* —— List rows: PlanSlayer #104 compact (same size/shape as Plan) —— */
#ps-list-float .list-col-body .list-item,
#ps-list-float .list-item {
  border: 1px solid #1a2014 !important;
  border-radius: 8px !important;
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 2px 0 #0a0c09,
    0 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  user-select: none;
  color: #f0f4ee !important;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  min-height: 0 !important;
}
#ps-list-float .list-item.is-claimed {
  box-shadow:
    0 0 14px rgba(255, 210, 100, 0.28),
    0 0 0 1px rgba(255, 220, 140, 0.35),
    inset 0 0 22px rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 214, 120, 0.5) !important;
  filter: brightness(1.1) saturate(1.12);
}
#ps-list-float .list-item.is-full,
#ps-list-float .list-item.is-full.is-claimed {
  box-shadow:
    0 0 18px rgba(74, 222, 128, 0.42),
    0 0 0 1px rgba(110, 231, 150, 0.55),
    inset 0 0 28px rgba(74, 222, 128, 0.14) !important;
  border-color: rgba(74, 222, 128, 0.65) !important;
  filter: brightness(1.16) saturate(1.18);
}
#ps-list-float .list-item.is-complete .li-title { color: #4ade80 !important; font-weight: 800; }
#ps-list-float .list-item.is-expanded {
  outline: 1px solid rgba(229,154,24,0.45);
}
#ps-list-float .list-item:hover { filter: brightness(1.04); border-color: rgba(229,154,24,0.4) !important; }
#ps-list-float .list-item.is-claimed:hover {
  filter: brightness(1.14) saturate(1.15);
  border-color: rgba(255, 214, 120, 0.55) !important;
}
#ps-list-float .list-item.is-full:hover,
#ps-list-float .list-item.is-full.is-claimed:hover {
  filter: brightness(1.2) saturate(1.2);
  border-color: rgba(74, 222, 128, 0.7) !important;
}
#ps-list-float .list-item .li-row {
  display: flex;
  align-items: center !important;
  gap: 4px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}
#ps-list-float .list-item .li-face,
#ps-list-float .list-item button.li-face,
#ps-list-float .list-item button.li-main {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 4px 8px 4px 10px !important;
  min-height: 0 !important;
  height: auto !important;
  cursor: pointer;
  font: inherit;
  font-family: inherit;
  font-weight: 700;
}
#ps-list-float .list-item .li-title {
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 800;
}
#ps-list-float .list-item .li-qty {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 4px;
}
#ps-list-float .list-item .li-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 3px !important;
  padding: 2px 4px 2px 0 !important;
  margin-left: auto;
  border-left: 0 !important;
  position: relative;
  z-index: 2;
}
/* Got it! / Drop — Plan #104 compact pill (not smashed tall bars) */
#ps-list-float .list-item .li-actions .btn,
#ps-list-float .list-item .li-actions .btn-got {
  appearance: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  height: 26px !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800;
  border-radius: 7px;
  color: #bbf7d0;
  background: linear-gradient(180deg, #2a4a1c 0%, #1a2a14 50%, #121c0e 100%);
  border: 1px solid #1e3014;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 2px 0 #0a0c09,
    0 3px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
}
#ps-list-float .list-item .li-actions .btn-got.is-on {
  color: #fff;
  background: linear-gradient(180deg, #5a8a3a 0%, #3f6b2a 50%, #2f4a1c 100%);
}
#ps-list-float .list-item .li-actions .btn-got.btn-drop,
#ps-list-float .list-item .li-actions .btn-drop {
  color: #fecaca !important;
  background: linear-gradient(180deg, #7a3030 0%, #5a2020 50%, #3a1414 100%) !important;
  border-color: #6b2424 !important;
}
#ps-list-float .list-item .li-actions .btn-got.btn-drop.is-on {
  color: #fff !important;
  background: linear-gradient(180deg, #b04040 0%, #8a3030 50%, #5c2020 100%) !important;
}
#ps-list-float .list-item .li-actions .btn-got:hover {
  border-color: rgba(229,154,24,0.55);
  filter: brightness(1.08);
}
#ps-list-float .li-detail {
  display: none;
  padding: 10px 12px 12px;
  border-top: 1px solid #1f2618;
  background: #0e120c;
}
#ps-list-float .list-item.is-expanded .li-detail {
  display: block !important;
}
#ps-list-float .li-detail .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
#ps-list-float .li-detail label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted, #8a9488);
  margin-bottom: 3px;
}
#ps-list-float .li-detail input,
#ps-list-float .li-detail select,
#ps-list-float .li-detail textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border, #2a3224);
  background: #0c0f0a;
  color: #f0f4ee;
  font-family: inherit;
  font-size: 12px;
}
#ps-list-float .li-detail textarea { min-height: 48px; resize: vertical; }
#ps-list-float .li-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
#ps-list-float .li-detail-actions button {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid var(--border, #2a3224);
  background: #1a2018;
  color: #f0f4ee;
  cursor: pointer;
  font-family: inherit;
}
#ps-list-float .li-detail-actions .btn-primary {
  background: linear-gradient(180deg, #3a3420 0%, #2a2418 100%);
  border-color: rgba(229,154,24,0.5);
  color: #fff;
}
#ps-list-float .li-detail-actions .btn-item-del {
  color: #fca5a5;
  border-color: #5a2020;
}
#ps-list-float .li-claimers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
}
#ps-list-float .empty {
  color: var(--muted, #8a9488);
  font-size: 12px;
  padding: 8px;
}
#ps-list-float .ps-float-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted, #8a9488);
  font-size: 13px;
}
