:root {
  --suite-ink: #14233a;
  --suite-muted: #65758a;
  --suite-blue: #173d70;
  --suite-blue-2: #2d6fb6;
  --suite-cyan: #8ed5e6;
  --suite-green: #0b7659;
  --suite-amber: #b76b12;
  --suite-red: #b83838;
  --suite-line: #d7e1ee;
  --suite-soft: #f3f7fc;
}
.points-suite-shell { max-width: 1480px; }
.suite-topbar {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd8e9;
  background: linear-gradient(125deg, #fff 0%, #f2f7fd 70%, #e9f2fc 100%);
}
.suite-topbar::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -100px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(45, 111, 182, .09);
  border-radius: 50%;
  pointer-events: none;
}
.suite-kicker { color: var(--suite-blue-2); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.suite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.suite-status { min-height: 1.4em; color: var(--suite-muted); font-weight: 700; }
.suite-status.error { color: var(--suite-red); }
.stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-top: 24px;
  padding: 5px;
  border-radius: 18px;
  background: #dbe5f2;
}
.stage-rail span {
  padding: 14px 10px;
  border-radius: 14px;
  color: #647489;
  font-size: .83rem;
  font-weight: 900;
  text-align: center;
}
.stage-rail span.complete { color: #0b674e; background: #e4f6ef; }
.stage-rail span.active { color: #fff; background: var(--suite-blue); box-shadow: 0 9px 22px rgba(23, 61, 112, .24); }
.mode-note { margin: 12px 0 0; color: var(--suite-muted); }
.suite-grid { display: grid; gap: 16px; }
.suite-grid.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-tile { padding: 18px; border: 1px solid var(--suite-line); border-radius: 16px; background: #fff; }
.metric-tile span { display: block; color: var(--suite-muted); font-size: .82rem; font-weight: 800; }
.metric-tile strong { display: block; margin-top: 8px; color: var(--suite-ink); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.metric-tile small { color: var(--suite-muted); }
.suite-panel { border: 1px solid var(--suite-line); background: #fff; }
.suite-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.suite-panel-head h2 { margin: 0; color: var(--suite-ink); }
.suite-panel-head p { margin: 6px 0 0; color: var(--suite-muted); }
.suite-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.suite-field { display: grid; gap: 6px; color: var(--suite-ink); font-weight: 800; }
.suite-field input, .suite-field select, .suite-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c8dc;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  color: var(--suite-ink);
  font: inherit;
}
.suite-field textarea { min-height: 92px; resize: vertical; }
.suite-field small { color: var(--suite-muted); font-weight: 500; line-height: 1.4; }
.suite-table-wrap { overflow-x: auto; border: 1px solid var(--suite-line); border-radius: 14px; }
.suite-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.suite-table th, .suite-table td { padding: 11px 12px; border-bottom: 1px solid #e7edf5; text-align: left; vertical-align: top; }
.suite-table th { position: sticky; top: 0; background: #edf3fa; color: #36506f; font-size: .78rem; letter-spacing: .04em; }
.suite-table tr:last-child td { border-bottom: 0; }
.suite-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #eaf1f9; color: #345270; font-size: .78rem; font-weight: 900; }
.pill.success { background: #e1f5ed; color: #09674d; }
.pill.warning { background: #fff0d9; color: #92530a; }
.pill.danger { background: #fde8e8; color: #a52c2c; }
.suite-button { min-height: 42px; border: 0; border-radius: 10px; padding: 9px 14px; background: var(--suite-blue); color: #fff; font-weight: 900; cursor: pointer; }
.suite-button.secondary { border: 1px solid #b8c7da; background: #fff; color: #294d76; }
.suite-button.danger { background: #a93636; }
.suite-button:disabled { opacity: .48; cursor: not-allowed; }
.suite-empty { padding: 30px 18px; color: var(--suite-muted); text-align: center; }
.suite-callout { padding: 14px 16px; border-left: 4px solid var(--suite-blue-2); background: #edf5ff; color: #274f7d; }
.suite-callout.warning { border-color: var(--suite-amber); background: #fff7ea; color: #7a480c; }
.suite-hidden { display: none !important; }
.work-card-list { display: grid; gap: 12px; }
.work-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px; border: 1px solid var(--suite-line); border-left: 5px solid #9ab1ca; border-radius: 14px; background: #fff; }
.work-card[data-status="in_progress"] { border-left-color: var(--suite-blue-2); }
.work-card[data-status="completed"] { border-left-color: var(--suite-green); }
.work-card[data-status="cancelled"] { opacity: .68; border-left-color: #9b9b9b; }
.work-card h3 { margin: 0; color: var(--suite-ink); }
.work-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 8px; color: var(--suite-muted); font-size: .86rem; }
.work-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.work-actions input { width: 88px; min-height: 40px; }
.event-detail { width: min(760px, calc(100vw - 32px)); max-height: 85vh; border: 0; border-radius: 18px; padding: 0; box-shadow: 0 24px 70px rgba(12, 31, 55, .28); }
.event-detail::backdrop { background: rgba(13, 29, 50, .55); }
.event-detail-body { padding: 22px; }
.json-block { overflow: auto; max-height: 260px; padding: 14px; border-radius: 12px; background: #122034; color: #dfeaf7; font: 12px/1.55 Consolas, monospace; white-space: pre-wrap; }
@media (max-width: 900px) {
  .suite-grid.metrics, .suite-filter-grid { grid-template-columns: 1fr 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .stage-rail, .suite-grid.metrics, .suite-filter-grid { grid-template-columns: 1fr 1fr; }
  .suite-panel-head { display: block; }
  .suite-panel-head .suite-actions { margin-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage-rail span.active { animation: stage-in .35s ease-out; }
  @keyframes stage-in { from { transform: translateY(4px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
}