/* Retail Priorities Dashboard — aligns with Demand & Spend / Data Integrity density */
:root {
  --rpd-teal: #0f766e;
  --rpd-teal-soft: #ecfdf5;
  --rpd-border: #e2e8f0;
  --rpd-text: #1e293b;
  --rpd-muted: #64748b;
  --rpd-on-track: #15803d;
  --rpd-at-risk: #ca8a04;
  --rpd-blocked: #dc2626;
  --rpd-completed: #0369a1;
  --rpd-not-focus: #94a3b8;
  --rpd-leave: rgba(251, 191, 36, 0.35);
  --rpd-leave-line: rgba(217, 119, 6, 0.45);
  /* Gantt bar identity — muted slate / blue / teal / olive / amber / plum */
  --rpd-bar-base: #64748b;
  --rpd-bar-fill: rgba(100, 116, 139, 0.14);
  --rpd-bar-edge: rgba(100, 116, 139, 0.42);
}

/* Person palette slots (deterministic order); bars use fill + edge, not workflow colour */
.rpd-bar-slot--0 {
  --rpd-bar-base: #334155;
  --rpd-bar-fill: rgba(51, 65, 85, 0.2);
  --rpd-bar-edge: rgba(51, 65, 85, 0.56);
}
.rpd-bar-slot--1 {
  --rpd-bar-base: #1d4ed8;
  --rpd-bar-fill: rgba(29, 78, 216, 0.17);
  --rpd-bar-edge: rgba(29, 78, 216, 0.5);
}
.rpd-bar-slot--2 {
  --rpd-bar-base: #0f766e;
  --rpd-bar-fill: rgba(15, 118, 110, 0.17);
  --rpd-bar-edge: rgba(15, 118, 110, 0.5);
}
.rpd-bar-slot--3 {
  --rpd-bar-base: #4d7c0f;
  --rpd-bar-fill: rgba(77, 124, 15, 0.17);
  --rpd-bar-edge: rgba(77, 124, 15, 0.5);
}
.rpd-bar-slot--4 {
  --rpd-bar-base: #b45309;
  --rpd-bar-fill: rgba(180, 83, 9, 0.17);
  --rpd-bar-edge: rgba(180, 83, 9, 0.5);
}
.rpd-bar-slot--5 {
  --rpd-bar-base: #7e22ce;
  --rpd-bar-fill: rgba(126, 34, 206, 0.16);
  --rpd-bar-edge: rgba(126, 34, 206, 0.5);
}

.rpd-onboarding {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  font-size: 12px;
  line-height: 1.45;
  color: #78350f;
}
.rpd-onboarding.visible {
  display: block;
}
.rpd-onboarding strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #92400e;
}
.rpd-onboarding p {
  margin: 0;
}

.rpd-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: var(--rpd-text);
  background: #f1f5f9;
  min-height: 100vh;
}

/* Fiscal timeline card — mirrors Data Integrity Tool rhythm */
.rpd-fiscal-card {
  background: #fff;
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rpd-fiscal-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.rpd-fiscal-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rpd-muted);
}
.rpd-fiscal-note {
  font-size: 11px;
  color: var(--rpd-muted);
}
.rpd-timeline-range-display {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 0 0 6px;
}
.rpd-timeline-slider-wrap {
  padding: 4px 0 2px;
  margin: 8px 0 6px;
}
.rpd-timeline-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.rpd-timeline-preset-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
}
.rpd-timeline-preset-btn:hover {
  border-color: var(--rpd-teal);
  color: var(--rpd-teal);
}
.rpd-timeline-preset-btn.active {
  background: var(--rpd-teal-soft);
  border-color: #99f6e4;
  color: #0f766e;
}
.rpd-timeline-layers-scroll {
  overflow-x: auto;
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
}
.rpd-timeline-layers-inner {
  min-width: 100%;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rpd-timeline-layer {
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Segmented fiscal strip — aligned with Data Integrity Tool */
.rpd-tl-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}
.rpd-tl-segment:last-child {
  border-right: none;
}
.rpd-tl-week {
  min-height: 16px;
}
.rpd-tl-week .rpd-tl-segment {
  background: #e8f4f0;
  color: #134e4a;
}
.rpd-tl-week .rpd-tl-segment.rpd-tl-in-range {
  background: #0f766e;
  color: #fff;
}
.rpd-tl-period {
  min-height: 18px;
}
.rpd-tl-period .rpd-tl-segment {
  background: #d4e8e0;
  color: #0f766e;
  font-size: 9px;
}
.rpd-tl-period .rpd-tl-segment.rpd-tl-in-range {
  background: #115e59;
  color: #fff;
}
.rpd-tl-quarter {
  min-height: 19px;
}
.rpd-tl-quarter .rpd-tl-segment {
  background: #b8d9cb;
  color: #134e4a;
  font-size: 10px;
}
.rpd-tl-quarter .rpd-tl-segment.rpd-tl-in-range {
  background: #115e59;
  color: #fff;
}

#rpd-timeline-slider {
  height: 8px;
  margin: 6px 0 4px;
  border: none;
  background: #e2e8f0;
  border-radius: 4px;
}
#rpd-timeline-slider .noUi-connect {
  background: #0f766e;
  border-radius: 4px;
}
#rpd-timeline-slider .noUi-handle {
  height: 20px;
  width: 20px;
  top: -7px;
  right: -10px;
  border-radius: 50%;
  background: #0f766e;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  cursor: grab;
}
#rpd-timeline-slider .noUi-handle:before,
#rpd-timeline-slider .noUi-handle:after {
  display: none;
}
#rpd-timeline-slider .noUi-pips {
  display: none;
}

/* Range summary (replaces fixed this-week / period / quarter cards) */
.rpd-summary-range-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.rpd-summary-section {
  background: #fff;
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  height: 460px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rpd-summary-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
}
.rpd-summary-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rpd-summary-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rpd-summary-nav-btn {
  width: 26px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.rpd-summary-nav-btn:hover {
  border-color: var(--rpd-teal);
  color: var(--rpd-teal);
}
.rpd-summary-anchor-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.02em;
}
.rpd-summary-slice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rpd-summary-slice {
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}
.rpd-summary-slice > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  list-style: none;
}
.rpd-summary-slice > summary::-webkit-details-marker {
  display: none;
}
.rpd-summary-slice > summary::before {
  content: "▸";
  font-size: 10px;
  color: var(--rpd-muted);
  width: 14px;
  display: inline-block;
}
.rpd-summary-slice[open] > summary::before {
  content: "▾";
}
.rpd-summary-slice-label {
  font-weight: 700;
}
.rpd-summary-slice-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--rpd-muted);
  flex: 1;
  min-width: 120px;
}
.rpd-summary-slice-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--rpd-muted);
  background: #eef2f6;
  padding: 2px 8px;
  border-radius: 999px;
}
.rpd-summary-slice-body {
  padding: 0 10px 10px 32px;
  border-top: 1px dashed #e8ecf1;
  background: #fff;
}
.rpd-summary-single-wrap .rpd-summary-slice-caption {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.rpd-summary-slice-caption--muted {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}
.rpd-summary-empty {
  margin: 6px 0;
  font-size: 11px;
  color: var(--rpd-muted);
}
.rpd-summary-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.rpd-summary-person-block + .rpd-summary-person-block {
  margin-top: 10px;
}
.rpd-summary-person-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}
.rpd-summary-person-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rpd-summary-person-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed #eef2f6;
}
.rpd-summary-person-list li:last-child {
  border-bottom: none;
}
.rpd-summary-line-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.rpd-summary-line-row .rpd-summary-line-btn {
  flex: 1;
  min-width: 0;
}
.rpd-marker-highlight-inner {
  border-radius: 2px 5px 3px 4px;
  transform: skewX(-0.8deg);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.rpd-highlight-picker {
  position: relative;
  flex-shrink: 0;
  padding-top: 4px;
}
.rpd-highlight-picker-toggle {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  opacity: 0.65;
}
.rpd-highlight-picker-toggle:hover {
  background: #f1f5f9;
  color: #475569;
  opacity: 1;
}
.rpd-highlight-swatch {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.rpd-highlight-icon {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.rpd-highlight-picker-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 50;
  min-width: 7rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.rpd-highlight-picker-menu[hidden] {
  display: none !important;
}
.rpd-highlight-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.rpd-highlight-swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.rpd-highlight-swatch-btn:hover {
  border-color: #cbd5e1;
}
.rpd-highlight-clear {
  width: 100%;
  text-align: left;
  padding: 4px 6px;
  font-size: 11px;
  color: #64748b;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.rpd-highlight-clear:hover {
  background: #f8fafc;
}
.rpd-summary-line-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 6px 4px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  color: #1e293b;
  border-radius: 4px;
}
.rpd-summary-line-btn:hover {
  background: rgba(241, 245, 249, 0.85);
}
.rpd-summary-line-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.35;
}
.rpd-summary-item-time {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
}
.rpd-summary-line-chips {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.rpd-summary-line-chips .rpd-badge-person {
  font-size: 10px;
  padding: 2px 6px;
}
@media (max-width: 1180px) {
  .rpd-summary-range-stack {
    grid-template-columns: 1fr;
  }
}

/* Priority strip (legacy layout — kept for reference if needed) */
.rpd-priority-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
  .rpd-priority-row {
    grid-template-columns: 1fr;
  }
}
.rpd-priority-card {
  background: #fff;
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rpd-priority-card h3 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rpd-muted);
}
.rpd-priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rpd-priority-list li {
  font-size: 12px;
  line-height: 1.35;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.rpd-priority-list li:last-child {
  border-bottom: none;
}
.rpd-priority-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

/* Execution grid */
.rpd-grid-wrap {
  overflow: auto;
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  background: #fff;
  max-height: calc(100vh - 280px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rpd-grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 12px;
}
.rpd-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--rpd-border);
  padding: 8px 6px;
  text-align: center;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  white-space: nowrap;
}
.rpd-grid thead th.rpd-corner {
  left: 0;
  z-index: 4;
  text-align: left;
  min-width: 116px;
  max-width: 148px;
}
.rpd-grid tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  border-right: 1px solid var(--rpd-border);
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  vertical-align: top;
  min-width: 116px;
  max-width: 148px;
  width: 1%;
}
.rpd-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rpd-row-label strong {
  font-size: 12px;
  color: #0f172a;
}
.rpd-row-label span {
  font-size: 10px;
  color: var(--rpd-muted);
  font-weight: 500;
}
.rpd-grid tbody td {
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f8fafc;
  padding: 4px;
  vertical-align: top;
  min-width: 92px;
  max-width: 140px;
  background: #fff;
  overflow: visible;
  position: relative;
}
.rpd-cell-inner {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* Leave: one consistent amber identity (no person slots); matches Gantt bar chrome */
.rpd-gantt-bar.rpd-gantt-bar--leave {
  --rpd-bar-base: #d97706;
  --rpd-bar-fill: rgba(251, 191, 36, 0.38);
  --rpd-bar-edge: rgba(180, 83, 9, 0.72);
  cursor: default;
  border-left-width: 4px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(146, 64, 14, 0.14);
}
.rpd-gantt-bar.rpd-gantt-bar--leave:hover {
  filter: brightness(1.02);
}

.rpd-chip {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.rpd-chip:hover {
  filter: brightness(0.97);
  border-color: #cbd5e1;
}
.rpd-chip small {
  display: block;
  font-weight: 500;
  color: var(--rpd-muted);
  margin-top: 1px;
}

/* Legend */
.rpd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 11px;
  color: var(--rpd-muted);
  margin: 8px 0 0;
}
.rpd-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rpd-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* Admin table */
.rpd-admin-wrap {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rpd-admin-head {
  padding: 10px 14px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 100%);
  border-bottom: 1px solid #a7f3d0;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rpd-table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rpd-admin-table-wrap {
  overflow: auto;
  max-height: 360px;
}
.rpd-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.rpd-admin-table th,
.rpd-admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.rpd-admin-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rpd-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.rpd-admin-table tbody tr:hover {
  background: #fafafa;
}

/* Buttons / fields — workbench-like */
.rpd-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
}
.rpd-btn:hover {
  border-color: var(--rpd-teal);
  color: var(--rpd-teal);
}
.rpd-btn-primary {
  background: var(--rpd-teal);
  border-color: #0d9488;
  color: #fff;
}
.rpd-btn-primary:hover {
  background: #0d9488;
  color: #fff;
}
.rpd-btn-danger-solid {
  background: #b91c1c;
  border-color: #991b1b;
  color: #fff;
}
.rpd-btn-danger-solid:hover {
  background: #991b1b;
  color: #fff;
}
.rpd-confirm-lede {
  margin: 0 0 12px;
  line-height: 1.45;
  color: #475569;
  font-size: 13px;
}
.rpd-confirm-target {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}
.rpd-registry-table-scroll .rpd-admin-table tbody tr[data-open-drawer-item]:hover {
  background: rgba(241, 245, 249, 0.92);
}
.rpd-btn-ghost {
  background: transparent;
}
.rpd-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rpd-field label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rpd-muted);
}
.rpd-field input,
.rpd-field select,
.rpd-field textarea {
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
}
.rpd-field textarea {
  min-height: 72px;
  resize: vertical;
}
.rpd-controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}

/* Drawer */
.rpd-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.rpd-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.rpd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(620px, 100vw);
  height: 100%;
  background: #fff;
  z-index: 5001;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}
.rpd-drawer-overlay.open .rpd-drawer {
  transform: translateX(0);
}
.rpd-drawer-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rpd-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.rpd-drawer-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.rpd-drawer-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}
.rpd-drawer-section {
  margin-bottom: 16px;
}
.rpd-drawer-section h4 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rpd-muted);
}
.rpd-kv {
  font-size: 12px;
  line-height: 1.45;
}
.rpd-drawer-grid {
  grid-template-columns: 1fr 1fr;
}
.rpd-drawer-desc {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}
.rpd-drawer-checklist-wrap label {
  margin-bottom: 6px;
}
.rpd-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.rpd-checklist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rpd-checklist-row .d-item-check-done {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.rpd-checklist-row .d-item-check-text {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
}
.rpd-checklist-row .d-item-check-del {
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 8px;
}
.rpd-drawer-field-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: start;
}
.rpd-drawer-field-row .rpd-field {
  margin-bottom: 0;
}
.d-item-field-site-row .d-item-field-site {
  grid-column: 1 / -1;
}
.rpd-kv div {
  margin-bottom: 6px;
}
.rpd-drawer-muted {
  color: #94a3b8;
  font-size: 12px;
}
.rpd-notes-thread {
  border-top: 1px dashed var(--rpd-border);
  margin-top: 12px;
  padding-top: 12px;
}
.rpd-note-item {
  font-size: 12px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #f1f5f9;
}
.rpd-note-meta {
  font-size: 10px;
  color: var(--rpd-muted);
  margin-bottom: 4px;
}

/* Modal */
.rpd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rpd-modal-overlay.rpd-confirm-overlay {
  z-index: 6100;
}
.rpd-modal-overlay.open {
  display: flex;
}
.rpd-modal {
  background: #fff;
  border-radius: 12px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.rpd-modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rpd-border);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rpd-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
}
.rpd-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--rpd-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.rpd-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
@media (max-width: 520px) {
  .rpd-modal-grid {
    grid-template-columns: 1fr;
  }
}

.rpd-empty {
  font-size: 12px;
  color: var(--rpd-muted);
  padding: 12px;
  text-align: center;
}
.rpd-flash {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 8000;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: none;
}
.rpd-flash.show {
  display: block;
}
.rpd-flash.ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.rpd-flash.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.rpd-details-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  user-select: none;
}
.rpd-details-panel > summary::-webkit-details-marker {
  display: none;
}
.rpd-details-panel[open] > summary {
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}
.rpd-details-panel .rpd-details-body {
  border: 1px solid #a7f3d0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 12px 14px;
  background: #fff;
}

/* ---------- Refinement: badges, summary, grid bands, registry ---------- */
.rpd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rpd-priority-fiscal {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f766e;
}
.rpd-priority-fiscal-strong {
  font-weight: 800;
}

.rpd-priority-item {
  padding: 0;
  border-bottom: 1px dashed #e2e8f0;
}
.rpd-priority-item:last-child {
  border-bottom: none;
}
.rpd-priority-item-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 2px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font: inherit;
  color: inherit;
}
.rpd-priority-item-btn:hover {
  background: #f8fafc;
}
.rpd-priority-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}
.rpd-priority-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.rpd-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
  max-width: 100%;
}
.rpd-badge-person {
  background: var(--rpd-bar-fill);
  border-color: var(--rpd-bar-edge);
  color: color-mix(in srgb, var(--rpd-bar-base) 72%, #0f172a);
  text-transform: none;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0;
}
.rpd-badge-pri--critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.rpd-badge-pri--high {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.rpd-badge-pri--medium {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}
.rpd-badge-pri--low {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}
.rpd-badge-wf--planned {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
.rpd-badge-wf--in_progress {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.rpd-badge-wf--blocked {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.rpd-badge-wf--done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.rpd-badge-wf--paused {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}
.rpd-badge-type--project {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.rpd-badge-type--recurring {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0e7490;
}
.rpd-badge-dept {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
  text-transform: none;
  font-weight: 600;
  font-size: 9px;
}

.rpd-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.rpd-chip-title {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}
.rpd-chip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}
.rpd-chip small {
  display: none;
}
.rpd-cell-empty {
  font-size: 10px;
  color: #cbd5e1;
}

.rpd-grid-th-title {
  font-weight: 700;
  font-size: 10px;
}
.rpd-grid-th-sub {
  font-weight: 500;
  color: #94a3b8;
  font-size: 9px;
  margin-top: 2px;
}
.rpd-grid-th--band-odd {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
}
.rpd-grid-th--band-even {
  background: linear-gradient(180deg, #fafafa 0%, #f1f5f9 100%) !important;
}
.rpd-grid-th--period-start {
  box-shadow: inset 3px 0 0 #0f766e;
}
.rpd-grid-th--week-start {
  box-shadow: inset 1px 0 0 rgba(148, 163, 184, 0.65);
}
.rpd-grid-td--period-start {
  box-shadow: inset 2px 0 0 rgba(15, 118, 110, 0.45);
}
.rpd-grid-td--week-start {
  box-shadow: inset 1px 0 0 rgba(226, 232, 240, 0.98);
}
.rpd-grid-td--band-odd {
  background: #fafbfc !important;
}
.rpd-grid-td--band-even {
  background: #fff !important;
}

.rpd-person-row-head,
.rpd-project-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.rpd-person-role {
  font-size: 10px;
  color: var(--rpd-muted);
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 40px;
}
.rpd-row-collapse {
  border: none;
  background: #f1f5f9;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  color: #475569;
  flex-shrink: 0;
}
.rpd-row-collapse:hover {
  background: #e2e8f0;
}
.rpd-grid-row-label--collapsed {
  vertical-align: middle;
}
.rpd-grid-collapsed-span {
  font-size: 11px;
  color: var(--rpd-muted);
  vertical-align: middle;
  padding: 10px 12px !important;
}

.rpd-project-row-title {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}
.rpd-project-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.rpd-registry-launchers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.rpd-registry-card {
  text-align: left;
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: inherit;
  color: inherit;
}
.rpd-registry-card:hover {
  border-color: #99f6e4;
  background: #fafefd;
}
.rpd-registry-card--primary {
  border-color: #5eead4;
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%);
}
.rpd-registry-card-kicker {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rpd-muted);
}
.rpd-registry-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.rpd-registry-card-desc {
  font-size: 11px;
  color: var(--rpd-muted);
  line-height: 1.35;
}

.rpd-registry-overlay {
  z-index: 5900;
}
.rpd-registry-overlay--compact .rpd-modal--registry {
  width: min(980px, 96vw);
}
.rpd-registry-overlay--leave-wide .rpd-modal--registry {
  width: min(1320px, 98vw);
}
.rpd-registry-overlay.open {
  display: flex;
}
.rpd-modal--registry {
  width: min(1520px, 98vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rpd-registry-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rpd-border);
  background: linear-gradient(180deg, #fafefd 0%, #fff 100%);
}
.rpd-registry-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.rpd-registry-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--rpd-muted);
  line-height: 1.45;
  max-width: 52em;
}
.rpd-registry-body {
  padding: 14px 18px 18px;
  overflow: auto;
  flex: 1;
}
.rpd-registry-toolbar {
  margin-bottom: 12px;
}
.rpd-registry-toolbar--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rpd-registry-search input {
  min-width: min(280px, 85vw);
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
}
.rpd-registry-table-scroll {
  overflow: auto;
  max-height: calc(92vh - 220px);
  border: 1px solid var(--rpd-border);
  border-radius: 10px;
  background: #fafafa;
}
.rpd-registry-table-scroll .rpd-admin-table {
  background: #fff;
}
.rpd-registry-actions-cell {
  vertical-align: middle;
  width: 1%;
  padding-left: 12px;
}
.rpd-registry-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-left: auto;
}
.rpd-registry-actions-cell .rpd-registry-actions .rpd-btn {
  flex-shrink: 0;
}
.rpd-admin-table thead th:last-child {
  text-align: right;
}
.rpd-registry-leave-dates {
  white-space: nowrap;
}
.rpd-reg-col-title {
  min-width: 420px;
}
.rpd-reg-col-owner {
  min-width: 200px;
}
.rpd-reg-col-date {
  min-width: 220px;
}
.rpd-reg-col-dept,
.rpd-reg-col-type,
.rpd-reg-col-pri,
.rpd-reg-col-wf {
  white-space: nowrap;
}
.rpd-registry-type-filter {
  min-width: 170px;
}
.rpd-row-archived {
  opacity: 0.62;
}

@media (max-width: 720px) {
  .rpd-registry-toolbar--split {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Planning refinement: timeline rows, calm summary, Gantt, sections */
.rpd-timeline-range-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rpd-timeline-range-row .rpd-timeline-range-display {
  margin: 0;
  flex: 1;
  text-align: center;
  min-width: min(320px, 100%);
}
.rpd-btn-timeline-nav {
  padding: 6px 12px !important;
  font-size: 14px !important;
  line-height: 1;
  flex-shrink: 0;
}
.rpd-timeline-preset-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rpd-muted);
  margin-right: 4px;
  width: 100%;
}
.rpd-timeline-presets--quarters .rpd-timeline-preset-label,
.rpd-timeline-presets--periods .rpd-timeline-preset-label {
  width: auto;
  margin-right: 8px;
}
.rpd-timeline-presets--periods {
  align-items: center;
  max-height: none;
}
.rpd-timeline-presets--periods .rpd-p-mini {
  padding: 3px 6px;
  font-size: 10px;
}
.rpd-timeline-presets + .rpd-timeline-presets {
  margin-top: 4px;
}
.rpd-timeline-presets--all {
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  margin-bottom: 8px;
  gap: 4px;
  padding-bottom: 2px;
}
.rpd-timeline-presets--all .rpd-timeline-preset-btn {
  flex-shrink: 0;
}
.rpd-timeline-presets--all .rpd-p-mini {
  padding: 3px 5px;
  font-size: 10px;
}
.rpd-timeline-preset-gap {
  flex: 0 0 10px;
}
.rpd-timeline-preset-label--inline {
  width: auto;
  margin-right: 4px;
  flex-shrink: 0;
}

.rpd-helper-line {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.45;
}
.rpd-section-heading {
  margin: 20px 0 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.rpd-section-heading:first-of-type {
  margin-top: 0;
}
.rpd-section-heading--admin {
  margin-top: 28px;
}
.rpd-section-lead {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  max-width: 720px;
}

.rpd-priority-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.rpd-priority-item-owner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rpd-summary-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  background: #cbd5e1;
}
.rpd-summary-dot.rpd-st-on_track {
  background: #15803d;
}
.rpd-summary-dot.rpd-st-at_risk {
  background: #ca8a04;
}
.rpd-summary-dot.rpd-st-blocked {
  background: #dc2626;
}
.rpd-summary-dot.rpd-st-completed {
  background: #0369a1;
}
.rpd-summary-dot.rpd-st-not_in_focus {
  background: #94a3b8;
}
.rpd-summary-dot.rpd-st-none {
  background: #cbd5e1;
}

.rpd-cell-inner--stack {
  position: relative;
  min-height: 26px;
}
.rpd-gantt-bar {
  position: absolute;
  top: 2px;
  height: 22px;
  min-height: 22px;
  line-height: 22px;
  padding: 0 8px 0 5px;
  margin: 0;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--rpd-bar-fill);
  border: 1px solid var(--rpd-bar-edge);
  border-left: 3px solid var(--rpd-bar-base);
  color: #1e293b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.rpd-gantt-bar:hover {
  filter: brightness(0.98);
}
.rpd-gantt-bar::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -1px;
  bottom: -1px;
  width: 6px;
  background: linear-gradient(90deg, var(--rpd-bar-base), transparent);
  opacity: 0.14;
  pointer-events: none;
  border-radius: 0 4px 4px 0;
}
.rpd-bar-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  direction: ltr;
  unicode-bidi: plaintext;
}
.rpd-chip--minimal {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.25;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid var(--rpd-border);
  background: #f8fafc;
  overflow: hidden;
}
.rpd-chip.rpd-chip--minimal[class*="rpd-bar-slot--"] {
  background: var(--rpd-bar-fill);
  border-color: var(--rpd-bar-edge);
  border-left-width: 3px;
  border-left-color: var(--rpd-bar-base);
}
.rpd-chip--cadence {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1.2;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  border: 1px dashed var(--rpd-bar-edge);
  border-left: 3px solid var(--rpd-bar-base);
  background: color-mix(in srgb, var(--rpd-bar-fill) 80%, #fff);
  overflow: hidden;
}
.rpd-chip-cadence-markers {
  width: 16px;
  height: 8px;
  border-radius: 99px;
  background: repeating-linear-gradient(
    90deg,
    var(--rpd-bar-base),
    var(--rpd-bar-base) 3px,
    transparent 3px,
    transparent 5px
  );
  opacity: 0.7;
}
.rpd-chip-cadence-count {
  font-size: 10px;
  font-weight: 700;
  color: color-mix(in srgb, var(--rpd-bar-base) 72%, #0f172a);
}
.rpd-chip.rpd-chip--minimal[class*="rpd-bar-slot--"]:hover {
  border-color: var(--rpd-bar-edge);
  filter: brightness(0.98);
}
.rpd-chip-min-label {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  direction: ltr;
  unicode-bidi: plaintext;
}
.rpd-chip--meeting {
  border-style: solid;
  border-left-width: 4px;
  background: color-mix(in srgb, var(--rpd-bar-fill) 72%, #fff);
}
.rpd-grid-row-label--meetings {
  background: #f8fafc !important;
}

.rpd-planning-tooltip {
  position: fixed;
  z-index: 90;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.28);
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 80ms ease, transform 80ms ease;
}
.rpd-planning-tooltip.open {
  opacity: 1;
  transform: translateY(0);
}
.rpd-tooltip-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}
.rpd-tooltip-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
}
.rpd-tooltip-grid span {
  color: #94a3b8;
}
.rpd-tooltip-grid strong {
  color: #e2e8f0;
  font-weight: 600;
}

.rpd-project-row-head--minimal {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.rpd-registry-toolbar-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.rpd-registry-timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.rpd-registry-timeline-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.rpd-btn-danger-ghost {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
.rpd-btn-danger-ghost:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
  color: #991b1b !important;
}

.rpd-top-planning-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--rpd-border);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.rpd-toggle-top-planning-btn {
  font-weight: 600 !important;
  flex-shrink: 0;
}
.rpd-export-hint-inline {
  font-size: 11px;
  color: var(--rpd-muted);
  line-height: 1.45;
  max-width: 640px;
}
.rpd-toolbar-hint {
  font-size: 11px;
  color: #64748b;
}

.rpd-field-hint {
  font-weight: 500;
  color: #94a3b8;
  font-size: 10px;
}
.rpd-date-compact {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.rpd-note-item-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.rpd-note-item-main {
  flex: 1;
  min-width: 0;
}
.rpd-note-body {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
  color: #334155;
}
.rpd-note-delete {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.rpd-note-delete:hover {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}
