.app-shell .summary-shell {
  font-family: "Nunito UUC", "Nunito", "Segoe UI", sans-serif;
}
.summary-shell :is(button, select, input, .pa-dashboard) {
  font-family: inherit;
}
.summary-shell .pulse-overview {
  --pulse-bg: var(--summary-surface);
  --pulse-line: var(--summary-border);
  --pulse-ink: var(--summary-ink);
  --pulse-muted: var(--summary-muted);
  --pulse-accent: #5c4ccc;
  --pulse-accent-soft: #f0edff;
  --pulse-aqua: #14816f;
  --pulse-red: #bb495b;
  --pulse-plot: #f6f7fb;
  --pulse-estimate: #a39af0;
  color: var(--pulse-ink);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .summary-shell .pulse-overview {
  --pulse-accent: #b9acff;
  --pulse-accent-soft: #322952;
  --pulse-aqua: #6cdcca;
  --pulse-red: #ffa3b4;
  --pulse-plot: #202837;
  --pulse-estimate: #a99de5;
}
.pulse-overview .co-column { align-content: start; }
.pulse-overview .co-signals { border-radius: 12px; }
.pulse-overview .co-signal { min-height: 76px; }
.pulse-overview .co-signal:first-child { border-radius: 12px 0 0 12px; }
.pulse-overview .co-signal:last-child { border-radius: 0 12px 12px 0; }

.pulse-card {
  min-width: 0;
  padding: clamp(14px, 1.6vw, 23px);
  border-radius: 17px;
  border: 1px solid var(--pulse-line);
  background: var(--pulse-bg);
  box-shadow: 0 6px 22px #14234d08;
}
.pulse-card-head, .pulse-title, .pulse-link, .pulse-chart-controls, .pulse-legend,
.pulse-week, .pulse-pager, .pulse-selection, .pulse-budget-foot {
  display: flex;
  align-items: center;
}
.pulse-card-head, .pulse-chart-controls, .pulse-week, .pulse-selection {
  justify-content: space-between;
  gap: 8px 14px;
}
.pulse-card-head { margin-bottom: 16px; }
.pulse-title { gap: 9px; }
.pulse-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 10px;
  color: var(--pulse-accent);
  background: var(--pulse-accent-soft);
}
.pulse-title h2 { font-size: 19px; font-weight: 720; line-height: 1.15; margin: 0; }
.pulse-link {
  border: 0;
  padding: 4px 0;
  min-height: 34px;
  background: none;
  color: var(--pulse-accent);
  font-size: 13px;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}
.pulse-link:hover { text-decoration: underline; }
.pulse-link svg { width: 15px; height: 15px; }

.pulse-budget {
  --pulse-muted: #c1cee8;
  --pulse-accent: #c5beff;
  --pulse-accent-soft: #ffffff14;
  --pulse-aqua: #7be4c7;
  --pulse-red: #ffadba;
  --pulse-line: #ffffff24;
  --pulse-plot: #0b17345c;
  color: #f8faff;
  background: radial-gradient(ellipse at 100% 0%, #443777 0%, transparent 68%),
    linear-gradient(140deg, #162b56 0%, #20254c 100%);
  border-color: #ffffff25;
}
.pulse-budget-kpis {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  padding: 6px 0 17px;
}
.pulse-budget-kpis > div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.pulse-budget-kpis span, .pulse-budget-kpis small, .pulse-budget-foot, .pulse-legend, .pulse-week { color: var(--pulse-muted); font-size: 12px; }
.pulse-budget-kpis strong { font-size: clamp(15px,2vw,28px); font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pulse-positive { color: var(--pulse-aqua); }
.pulse-negative { color: var(--pulse-red); }
.pulse-chart-controls { margin-bottom: 10px; flex-wrap: wrap; }
.pulse-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
  background: var(--pulse-plot);
}
.pulse-toggle button {
  min-height: 31px;
  padding: 4px 10px;
  color: var(--pulse-muted);
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.pulse-toggle button[aria-pressed="true"] { color: inherit; background: #ffffff21; }
.pulse-legend { flex-wrap: wrap; gap: 6px 11px; }
.pulse-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pulse-legend i { width: 8px; height: 8px; border-radius: 3px; }
.pulse-base-dot, .pulse-budget-base { background: #a99bff; }
.pulse-spend-dot, .pulse-budget-spend { background: #67dbb9; }
.pulse-budget-chart {
  --plot-height: 126px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 8px;
  padding: 10px 10px 3px;
  border-radius: 12px;
  background: var(--pulse-plot);
}
.pulse-axis {
  color: var(--pulse-muted);
  font-size: 10px;
  height: var(--plot-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}
.pulse-budget-plot {
  display: grid;
  grid-template-columns: repeat(var(--series-count),minmax(0,1fr));
  background: linear-gradient(var(--pulse-line),var(--pulse-line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--pulse-line),var(--pulse-line)) 0 calc(var(--plot-height) / 2) / 100% 1px no-repeat,
    linear-gradient(var(--pulse-line),var(--pulse-line)) 0 var(--plot-height) / 100% 1px no-repeat;
}
.pulse-budget-point {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--plot-height) auto;
  align-items: end;
  padding: 0 2px 3px;
  text-align: center;
  color: var(--pulse-muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.pulse-budget-point:is(:hover,[aria-pressed="true"]) { background: #ffffff0e; color: #fff; }
.pulse-budget-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(3px,.5vw,7px);
  height: 100%;
}
.pulse-budget-bars i {
  height: var(--bar);
  width: clamp(10px,18%,25px);
  border-radius: 5px 5px 1px 1px;
  transform-origin: bottom;
  animation: pulse-bar-in 480ms cubic-bezier(.24,.72,.26,1) both;
}
.pulse-budget-label {
  padding: 6px 2px 2px;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pulse-budget-readout { margin-top: 9px; min-height: 48px; }
.pulse-budget-detail {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: start;
  gap: 5px 12px;
  padding: 8px 10px;
  border: 1px solid var(--pulse-line);
  border-radius: 9px;
  font-size: 12px;
}
.pulse-budget-detail > :is(span,div) { display: grid; min-width: 0; overflow-wrap: anywhere; }
.pulse-budget :is(.pulse-budget-detail,.co-empty) small, .pulse-budget .co-empty { color: var(--pulse-muted); }
.pulse-scope-note { grid-column: 1 / -1; }
.pulse-budget-foot { flex-wrap: wrap; gap: 5px 13px; margin-top: 9px; }
.pulse-budget-foot span + span::before { content: "·"; margin-inline-end: 7px; }

.pulse-delivery-tabs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  margin-bottom: 13px;
}
.pulse-delivery-tabs button {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  min-height: 46px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  background: var(--pulse-plot);
  color: var(--pulse-muted);
  font-size: 11px;
  cursor: pointer;
}
.pulse-delivery-tabs b { color: var(--pulse-ink); font-size: 16px; font-weight: 700; }
.pulse-delivery-tabs button:is(:hover,[aria-pressed="true"]) {
  background: var(--pulse-accent-soft);
  color: var(--pulse-accent);
}
.pulse-delivery-tabs button[aria-pressed="true"] { border-color: var(--pulse-accent); }
.pulse-agenda { padding: 7px 9px 9px; border-radius: 12px; background: var(--pulse-plot); }
.pulse-week { margin: 0 2px 4px; }
.pulse-week-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.pulse-day-button {
  display: grid;
  grid-template-rows: 47px auto auto;
  justify-items: center;
  padding: 5px 0 4px;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--pulse-muted);
  font-size: 11px;
  cursor: pointer;
}
.pulse-day-button b { font-size: 14px; color: var(--pulse-ink); }
.pulse-day-button:is(:hover,[aria-pressed="true"]) { background: var(--pulse-accent-soft); color: var(--pulse-accent); }
.pulse-day-button[aria-pressed="true"] { border-color: var(--pulse-accent); }
.pulse-day-chart { display: flex; width: 100%; height: 100%; align-items: end; justify-content: center; padding-bottom: 4px; }
.pulse-day-stack { width: clamp(11px,38%,22px); height: var(--bar); display: flex; flex-direction: column; border-radius: 4px 4px 1px 1px; overflow: hidden; transform-origin: bottom; animation: pulse-bar-in 420ms ease-out both; }
.pulse-confirmed { background: var(--pulse-accent); }
.pulse-estimated { background: var(--pulse-estimate); }
.pulse-day-zero { width: 9px; height: 2px; border-radius: 2px; background: var(--pulse-line); }
.pulse-delivery-readout, .pulse-stage-readout { margin-top: 9px; min-height: 48px; }
.pulse-selection { color: var(--pulse-muted); font-size: 12px; padding: 0 3px; }
.pulse-pager { justify-content: end; gap: 5px; color: var(--pulse-muted); font-size: 11px; }
.pulse-pager button {
  min-width: 29px;
  min-height: 28px;
  padding: 0 5px;
  border: 1px solid var(--pulse-line);
  border-radius: 6px;
  color: inherit;
  background: none;
  cursor: pointer;
}
.pulse-pager button:disabled { opacity: .45; cursor: default; }
.pulse-record {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,auto);
  align-items: start;
  text-align: left;
  gap: 6px 11px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--pulse-line);
  border-radius: 8px;
  color: var(--pulse-ink);
  background: none;
  font-size: 13px;
  cursor: pointer;
}
.pulse-record:not(:disabled):hover { background: var(--pulse-accent-soft); }
.pulse-record :is(strong,b) { font-weight: 680; }
.pulse-record > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.pulse-record-end { text-align: right; max-width: 145px; }
.pulse-record small { color: var(--pulse-muted); font-size: 11px; }
.pulse-record small.pulse-negative { color: var(--pulse-red); }

.pulse-stage-chart {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 3px;
  padding: 6px;
  border-radius: 10px;
  background: var(--pulse-plot);
}
.pulse-stage-button {
  display: grid;
  grid-template-rows: auto 60px minmax(23px,auto);
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 1px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--pulse-muted);
  background: none;
  cursor: pointer;
}
.pulse-stage-button:is(:hover,[aria-pressed="true"]) { background: var(--pulse-accent-soft); color: var(--pulse-accent); }
.pulse-stage-button[aria-pressed="true"] { border-color: var(--pulse-accent); }
.pulse-stage-button b { color: var(--pulse-ink); font-size: 14px; }
.pulse-stage-track {
  display: flex;
  align-items: end;
  width: clamp(9px,45%,24px);
  border-radius: 5px;
  background: var(--pulse-line);
}
.pulse-stage-track i {
  display: block;
  width: 100%;
  height: var(--bar);
  border-radius: inherit;
  background: var(--pulse-accent);
  transform-origin: bottom;
  animation: pulse-bar-in 430ms ease-out both;
}
.pulse-stage-label { font-size: 10px; line-height: 1.15; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.pulse-advance-body { display: flex; align-items: center; gap: clamp(10px,2vw,23px); }
.pulse-advance-ring {
  --share: 0%;
  display: grid;
  place-items: center;
  position: relative;
  width: 70px;
  height: 70px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--pulse-aqua) var(--share),var(--pulse-plot) 0);
}
.pulse-advance-ring::before { content: ""; position: absolute; inset: 6px; border-radius: inherit; background: var(--pulse-bg); }
.pulse-advance-ring > span { position: relative; display: grid; text-align: center; line-height: 1.1; }
.pulse-advance-ring small { color: var(--pulse-muted); font-size: 10px; }
.pulse-advance-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px 11px; flex: 1; min-width: 0; }
.pulse-advance-values > div { display: grid; align-content: start; min-width: 0; }
.pulse-advance-values span { color: var(--pulse-muted); font-size: 11px; }
.pulse-advance-values strong { font-size: clamp(13px,1.5vw,20px); overflow-wrap: anywhere; }

.pulse-overview .co-grid :is(.pulse-budget,.pulse-delivery,.pulse-pending,.pulse-advance) { min-width: 0; }
.pulse-overview .pulse-reveal { animation: pulse-reveal 230ms ease-out both; }
@keyframes pulse-reveal { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-bar-in { from { transform: scaleY(.06); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
@media (max-width:900px) {
  .pulse-overview .pulse-budget { order: 1; }
  .pulse-overview .pulse-pending { order: 3; }
  .pulse-overview .pulse-advance { order: 4; }
}
@media (max-width:520px) {
  .pulse-card-head { margin-bottom: 11px; }
  .pulse-budget-kpis { gap: 5px; padding-bottom: 12px; }
  .pulse-budget-kpis span,.pulse-budget-kpis small { font-size: 11px; }
  .pulse-budget-detail { gap: 4px 7px; padding: 6px; font-size: 11px; }
  .pulse-budget-chart { --plot-height: 98px; }
  .pulse-advance-ring { width: 58px; height: 58px; }
  .pulse-overview .co-signal:nth-child(2) { border-radius: 0 12px 0 0; }
  .pulse-overview .co-signal:nth-child(3) { border-radius: 0 0 0 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .pulse-overview :is(.pulse-reveal,.pulse-budget-bars i,.pulse-day-stack,.pulse-stage-track i) { animation: none; }
}
.summary-shell .pulse-budget .pulse-legend small { color: var(--pulse-muted); }
.pulse-budget-bars i { width: clamp(13px,20%,38px); }
.pulse-overview .pulse-pager button { font-size: 16px; line-height: 1; }
.pulse-week-legend { padding: 5px 2px 0; font-size: 11px; }
.pulse-stage-short { display: none; }
@media (max-width: 520px) {
  .pulse-stage-full { display: none; }
  .pulse-stage-short { display: inline; }
  .pulse-overview .pulse-pager button { min-width: 35px; min-height: 35px; }
}
