/* Shared panel tokens, no third-party UI dependency. */
.xbo-dialog,
#xbo-scheduler {
  color: var(--xb-text, #172b45);
  font: 13px/1.6 var(--xb-font, Poppins, Arial, sans-serif);
}
.xbo-dialog {
  padding: 12px;
  overflow: auto;
}
.xbo-button {
  border: 1px solid var(--xb-line, #aebfd2);
  color: var(--xb-text, #172b45);
  background: var(--xb-surface, #f8fafc);
  border-radius: 8px;
  padding: 8px 12px;
  font: 600 12px/1.5 var(--xb-font, Poppins, sans-serif);
  cursor: pointer;
}
.xbo-button:hover {
  background: var(--xb-hover, #e1ecf5);
}
.xbo-button:focus-visible,
.xbo-field input:focus-visible,
.xbo-field select:focus-visible,
#xbo-label-filter:focus-visible {
  outline: 2px solid var(--xb-blue, #0288d1);
  outline-offset: 2px;
}
.xbo-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.xbo-primary {
  background: var(--xb-blue, #0288d1);
  color: var(--xb-on-accent, #fff);
  border-color: var(--xb-blue, #0288d1);
}
.xbo-primary:hover {
  filter: brightness(0.94);
  background: var(--xb-blue, #0288d1);
}
.xbo-muted {
  color: var(--xb-muted, #52647a);
  font-size: 12px;
}
.xbo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  font-weight: 600;
}
.xbo-field input,
.xbo-field select,
.xbo-schedule-search,
#xbo-label-filter {
  border: 1px solid var(--xb-line, #aebfd2);
  background: var(--xb-soft, #edf2f7);
  color: var(--xb-text, #172b45);
  font: inherit;
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.xbo-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.xbo-label-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--xb-line);
}
.xbo-label-row > .xbo-label {
  margin-right: auto;
  max-width: 55%;
}
.xbo-label-preview {
  padding: 20px 0;
}
.xbo-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 10px/1.6 var(--xb-font, Poppins, sans-serif);
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--label-bg);
  color: var(--label-fg);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xbo-label::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.xbo-color-blue {
  --label-bg: #e1effe;
  --label-fg: #17509a;
}
.xbo-color-teal {
  --label-bg: #d7f3eb;
  --label-fg: #116357;
}
.xbo-color-violet {
  --label-bg: #eee5ff;
  --label-fg: #6840a5;
}
.xbo-color-rose {
  --label-bg: #fce4ec;
  --label-fg: #a52652;
}
.xbo-color-amber {
  --label-bg: #fff0cd;
  --label-fg: #805300;
}
.xbo-color-slate,
.xbo-pinned {
  --label-bg: #e6ebf1;
  --label-fg: #42566e;
}
.dark-mode .xbo-color-blue {
  --label-bg: #1c385c;
  --label-fg: #a8d0ff;
}
.dark-mode .xbo-color-teal {
  --label-bg: #153f3b;
  --label-fg: #81dcc9;
}
.dark-mode .xbo-color-violet {
  --label-bg: #35254c;
  --label-fg: #d3b6ff;
}
.dark-mode .xbo-color-rose {
  --label-bg: #4b2337;
  --label-fg: #ffb8d0;
}
.dark-mode .xbo-color-amber {
  --label-bg: #443718;
  --label-fg: #f6d27a;
}
.dark-mode .xbo-color-slate,
.dark-mode .xbo-pinned {
  --label-bg: #283649;
  --label-fg: #c0d0e3;
}
.xbo-organize {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--xb-surface);
  border-bottom: 1px solid var(--xb-line);
  flex-shrink: 0;
}
.xbo-selection {
  color: var(--xb-muted);
  font-size: 11px;
  margin-right: auto;
}
#xbo-label-filter {
  font-size: 11px;
  max-width: 160px;
  padding: 7px;
}
.xbo-manage {
  border-color: transparent;
  font-size: 11px;
}
.xbo-filter {
  padding: 7px 16px;
  background: var(--xb-selected);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.xbo-filter[hidden],
.xbo-pins[hidden] {
  display: none !important;
}
.xbo-row-labels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  clear: both;
}
.xbo-pins {
  padding: 12px 16px;
  background: var(--xb-soft);
  border-bottom: 1px solid var(--xb-line);
}
.xbo-pin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 8px;
  margin-bottom: 8px;
}
.xbo-pin-heading .xbo-button {
  border: 0;
  background: transparent;
  padding: 3px;
  font-size: 11px;
  color: var(--xb-blue);
}
.xbo-pin-cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.xbo-pin-card {
  text-align: left;
  flex: 0 0 185px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--xb-blue);
}
.xbo-pin-card strong,
.xbo-pin-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 11px;
}
.xbo-pin-card span {
  color: var(--xb-muted);
  font-weight: 400;
}
#taskmenu a.xbo-scheduled-link::before {
  font-family: 'Icons';
  content: '\f017';
}
#taskmenu a.xbo-scheduled-link[hidden] {
  display: none !important;
}
#xbo-scheduler {
  padding: 28px;
  overflow: auto;
  height: 100%;
}
.xbo-scheduled-page {
  min-width: 0 !important;
  background: var(--xb-bg) !important;
  flex: 1 !important;
}
.xbo-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.xbo-page-heading h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
}
.xbo-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--xb-blue);
}
.xbo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 22px;
}
.xbo-stats > div {
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  gap: 2px;
  border: 1px solid var(--xb-line);
  border-top: 3px solid var(--xb-blue);
  border-radius: 12px;
  background: var(--xb-surface);
}
.xbo-stats strong {
  font-size: 26px;
  line-height: 1.5;
}
.xbo-stats span {
  color: var(--xb-muted);
  font-size: 12px;
}
.xbo-schedule-surface {
  border: 1px solid var(--xb-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--xb-surface);
}
.xbo-tabs {
  display: flex;
  padding: 10px 20px 0;
  border-bottom: 1px solid var(--xb-line);
  gap: 20px;
}
.xbo-tabs .xbo-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 4px;
}
.xbo-tabs .xbo-button[aria-pressed='true'] {
  color: var(--xb-blue);
  border-bottom: 3px solid var(--xb-blue);
}
.xbo-schedule-search {
  margin: 18px 20px;
  width: calc(100% - 40px);
}
.xbo-schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  border-top: 1px solid var(--xb-line);
  min-height: 370px;
}
.xbo-schedule-detail {
  border-left: 1px solid var(--xb-line);
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.xbo-schedule-detail h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 15px 0;
  line-height: 1.5;
}
.xbo-schedule-detail h3 {
  font-size: 12px;
  font-weight: 700;
}
.xbo-schedule-detail > .xbo-button {
  margin: 0 8px 10px 0;
}
.xbo-schedule-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--xb-line);
  border-radius: 0;
  width: 100%;
  padding: 18px;
  text-align: left;
}
.xbo-schedule-row[aria-pressed='true'] {
  background: var(--xb-selected);
  box-shadow: inset 3px 0 var(--xb-blue);
}
.xbo-row-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  font-size: 22px;
  color: var(--xb-blue);
  background: var(--xb-soft);
  border-radius: 10px;
}
.xbo-row-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.xbo-row-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xbo-row-copy > span {
  font-size: 10px;
  color: var(--xb-muted);
  font-weight: 400;
}
.xbo-status {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--xb-soft);
  color: var(--xb-muted);
  white-space: nowrap;
}
.xbo-state-queued {
  color: var(--xb-blue);
  background: var(--xb-selected);
}
.xbo-state-failed,
.xbo-state-uncertain,
.xbo-state-staged {
  background: #fff0cd;
  color: #805300;
}
.xbo-recipients {
  font-size: 11px;
}
.xbo-message-preview {
  white-space: pre-wrap;
  font-size: 12px;
  padding: 15px;
  background: var(--xb-soft);
  border-radius: 8px;
  max-height: 240px;
  overflow: auto;
}
.xbo-schedule-note {
  padding: 14px 20px;
  font-size: 10px;
  color: var(--xb-muted);
  border-top: 1px solid var(--xb-line);
  margin: 0;
}
.xbo-alert {
  background: var(--xb-soft);
  border-left: 3px solid #e29933;
  padding: 12px;
}
.xbo-danger {
  color: #bc4350;
}
.dark-mode .xbo-danger {
  color: #ffb3bf;
}
.xbo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 55px 28px;
  color: var(--xb-muted);
  min-height: 330px;
}
.xbo-empty h2 {
  font-size: 17px;
  color: var(--xb-text);
  margin: 15px 0 8px;
}
.xbo-empty p {
  max-width: 330px;
  font-size: 12px;
}
.xbo-empty-icon {
  font-size: 34px;
  color: var(--xb-blue);
  background: var(--xb-soft);
  border-radius: 18px;
  width: 72px;
  height: 72px;
  line-height: 72px;
}
.xbo-detail-back {
  display: none;
}
.xbo-mobile-select {
  display: none;
}
@media (min-width: 1025px) {
  body.action-plugin-xbrook-scheduled #layout-content > .header {
    display: none;
  }
}
@media (max-width: 800px) {
  #xbo-scheduler {
    padding: 16px;
  }
  .xbo-page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .xbo-page-heading h1 {
    font-size: 24px;
  }
  .xbo-stats {
    gap: 8px;
  }
  .xbo-stats > div {
    padding: 12px;
  }
  .xbo-stats strong {
    font-size: 22px;
  }
  .xbo-stats span {
    font-size: 10px;
  }
  .xbo-schedule-grid {
    display: block;
  }
  .xbo-schedule-detail {
    border-left: 0;
    border-top: 1px solid var(--xb-line);
  }
  .xbo-schedule-grid:has(.xbo-schedule-row[aria-pressed='true']) .xbo-schedule-list {
    display: none;
  }
  .xbo-schedule-grid:not(:has(.xbo-schedule-row[aria-pressed='true'])) .xbo-schedule-detail {
    display: none;
  }
  .xbo-detail-back {
    display: block;
  }
  .xbo-organize {
    padding: 8px;
    gap: 5px;
  }
  .xbo-selection {
    display: none;
  }
  .xbo-organize .xbo-button {
    padding: 7px 10px;
  }
  .xbo-manage {
    margin-left: auto;
  }
  .xbo-schedule-row {
    gap: 8px;
    padding: 14px 10px;
  }
  .xbo-row-icon {
    display: none;
  }
  .xbo-row-copy strong {
    font-size: 11px;
  }
  .xbo-row-copy > span {
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  .xbo-mobile-select {
    display: block;
  }
  .xbo-organize {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
  }
  .xbo-manage {
    grid-column: 1/-1;
  }
  .xbo-organize .xbo-button,
  #xbo-label-filter {
    min-height: 40px;
  }
  #xbo-label-filter {
    max-width: 135px;
    flex: 1;
  }
  .xbo-manage {
    width: 100%;
    min-height: 32px !important;
    padding: 2px !important;
  }
  .xbo-row-labels {
    margin-left: 0;
  }
  .xbo-dialog .xbo-button,
  .xbo-schedule-detail .xbo-button {
    min-height: 44px;
  }
  body.action-plugin-xbrook-scheduled #layout-content {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  .xbo-label-row {
    flex-wrap: wrap;
  }
}
