/* Executive Summary — bold presentation slide */

.executive-summary {
  display: none;
  flex-direction: column;
  height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  background: #f7f9fc;
  color: #172b44;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

body.app-view-summary .dashboard {
  display: none !important;
}

body.app-view-summary .executive-summary {
  display: flex;
}

body.app-view-summary .tooltip {
  z-index: 2000;
}

.exec-accent-bar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #2f6bdb 0%, #1e4fa8 100%);
  z-index: 5;
}

.exec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 20px 2px 24px;
  flex-shrink: 0;
  background: #f7f9fc;
}
.exec-header h1 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4f5d73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exec-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.exec-header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.exec-week-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  background: #fff;
}

.exec-header-controls .btn--exec-range {
  height: 28px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
}

.exec-header-project select {
  height: 32px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #172b44;
}

.exec-subtitle {
  margin: 1px 0 0;
  font-size: 0.75rem;
  color: #4f5d73;
}

/* Weekly Board mode — CEO header + control bar */
body.exec-layout-weekly .exec-accent-bar {
  display: none;
}

body.exec-layout-weekly .exec-header {
  align-items: center;
  padding: 12px 24px 4px;
}

body.exec-layout-weekly .exec-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: none;
  letter-spacing: -0.02em;
}

body.exec-layout-weekly .exec-subtitle {
  margin-top: 3px;
  font-size: 0.82rem;
  color: #64748b;
}

body.exec-layout-weekly .exec-header__right {
  display: none;
}

body.exec-layout-weekly .exec-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 4px 24px 10px;
}

body.exec-layout-weekly .exec-toolbar__left {
  justify-self: start;
}

body.exec-layout-weekly .exec-toolbar__right {
  justify-self: end;
  margin-left: 0;
}

body.exec-layout-weekly .exec-toolbar-weeks {
  display: none;
}

body.exec-layout-weekly .exec-filters {
  display: none;
}

body.exec-layout-weekly .exec-week-toggle .btn--week-active {
  background: #e8eef9;
  color: #1e3a8a;
  border-color: transparent;
}

.exec-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 20px 6px 24px;
  flex-shrink: 0;
  background: #f7f9fc;
}

.exec-toolbar__left,
.exec-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.exec-toolbar__right {
  margin-left: auto;
  justify-content: flex-end;
}

.exec-toolbar-weeks {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.exec-toolbar .btn {
  height: 30px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.exec-toolbar .btn--exec-range {
  height: 30px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.exec-toolbar .btn--week-active {
  background: #2f6bdb;
  color: #fff;
  border-color: #2f6bdb;
}

.exec-layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  padding: 2px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  background: #fff;
}

.exec-toolbar .btn--exec-layout {
  height: 26px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  color: #4f5d73;
  background: transparent;
}

.exec-toolbar .btn--exec-layout.is-active {
  background: #2f6bdb;
  color: #fff;
}

.exec-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 4px 20px 6px 24px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-bottom: 1px solid #d8e0ea;
  background: #fff;
}

.exec-filters .toolbar-field {
  min-width: 100px;
}

.exec-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
  margin: 0 12px 8px 24px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.exec-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  --exec-zone-split: 25%;
  background:
    linear-gradient(
      90deg,
      rgba(46, 155, 71, 0.07) 0%,
      rgba(46, 155, 71, 0.07) var(--exec-zone-split),
      transparent var(--exec-zone-split)
    ),
    linear-gradient(
      90deg,
      transparent var(--exec-zone-split),
      rgba(47, 107, 219, 0.07) var(--exec-zone-split),
      rgba(47, 107, 219, 0.07) 100%
    ),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.exec-stage::before {
  content: "";
  position: absolute;
  left: var(--exec-zone-split);
  top: 72px;
  bottom: 88px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #c5d0de 12%, #c5d0de 88%, transparent);
  pointer-events: none;
  z-index: 0;
  transform: translateX(-1px);
}

.exec-title-block {
  position: absolute;
  top: 14px;
  left: 32px;
  right: 32px;
  z-index: 2;
}

.exec-title-block h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #172b44;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.exec-slide-subtitle {
  margin: 6px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4f5d73;
}

.exec-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4f5d73;
  flex-shrink: 0;
}

.exec-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #fff1e6;
  border: 2px solid #e67e22;
}

/* ── Timeline ── */

.exec-timeline-wrap {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 100px;
  height: 5px;
  z-index: 1;
}

.exec-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  background: #4e607a;
  transform: translateY(-50%);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.exec-timeline-zone {
  position: absolute;
  bottom: -38px;
  font-size: 1.1875rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.exec-timeline-zone--delivered {
  left: 0;
  width: 25%;
  color: #2e9b47;
}

.exec-timeline-zone--planned {
  left: 25%;
  width: 75%;
  color: #2f6bdb;
}

.exec-today-marker {
  position: absolute;
  top: -36px;
  transform: translateX(-50%);
  z-index: 3;
}

.exec-today-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 3px;
  height: 34px;
  background: #e53935;
  transform: translateX(-50%);
  border-radius: 2px;
}

.exec-today-marker__label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff0f0;
  border: 1.5px solid #f87171;
  font-size: 0.875rem;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  cursor: default;
}

.exec-today-marker__label[data-date]:hover::after {
  content: attr(data-date);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #172b44;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 12;
}

.exec-cards-layer {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 78px;
  bottom: 108px;
  pointer-events: none;
}

/* ── Milestone cards ── */

.exec-card {
  position: absolute;
  pointer-events: auto;
  width: 232px;
  padding: 16px 18px 15px;
  background: #fff;
  border: 2px solid #c7d8ee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(23, 43, 68, 0.12);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.exec-card:hover {
  box-shadow: 0 6px 20px rgba(23, 43, 68, 0.16);
  transform: translateY(-1px);
}

.exec-card--delivered {
  border-color: #2e9b47;
  border-left: 5px solid #2e9b47;
  background: #e7f6ea;
}

.exec-card--planned {
  border-color: #2f6bdb;
  border-left: 5px solid #2f6bdb;
  background: #eef4ff;
}

.exec-card--delayed,
.exec-card--risk {
  outline: none;
  background: #fff4e8;
  border: 2px solid #e67e22;
  border-left: 5px solid #e67e22;
  color: #7a3e00;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.2);
}

.exec-card--delayed .exec-card__name,
.exec-card--delayed .exec-card__project,
.exec-card--delayed .exec-card__flow,
.exec-card--delayed .exec-card__date,
.exec-card--risk .exec-card__name,
.exec-card--risk .exec-card__project,
.exec-card--risk .exec-card__flow,
.exec-card--risk .exec-card__date {
  color: #7a3e00;
}

.exec-card__date--change {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.exec-card__badge--delayed {
  background: #e67e22;
  color: #ffffff;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.exec-card--hidden-preview {
  opacity: 0.5;
}

.exec-card--group {
  width: 288px;
  padding: 16px 18px 15px;
}

.exec-card__check-row {
  margin-bottom: 6px;
}

.exec-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c8e6c9;
  color: #2e9b47;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.exec-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #172b44;
}

.exec-card__project {
  margin: 6px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2f6bdb;
  line-height: 1.3;
}

.exec-card__flow {
  margin: 5px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4f5d73;
  line-height: 1.35;
}

.exec-card__date {
  margin: 7px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #172b44;
  letter-spacing: 0.02em;
}

.exec-card__date-header {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #172b44;
  border-bottom: 2px solid #b8c5d6;
  letter-spacing: 0.02em;
}

.exec-card__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exec-card__item {
  padding: 10px 4px 10px 2px;
  border-bottom: 1px solid rgba(23, 43, 68, 0.14);
}

.exec-card__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exec-card__item--delayed .exec-card__name {
  color: #c2410c;
}

.exec-card__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 1.35;
}

.exec-card__item-head .exec-card__name {
  font-size: 1.125rem;
}

.exec-card__item-head .exec-card__project {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2f6bdb;
}

.exec-card__item .exec-card__flow {
  display: block;
  margin: 4px 0 0 16px;
  font-size: 0.8125rem;
  color: #4f5d73;
}

.exec-card__bullet {
  flex-shrink: 0;
  width: 14px;
  font-size: 0.875rem;
  color: #2f6bdb;
  font-weight: 700;
}

.exec-card__bullet--delivered {
  color: #2e9b47;
  font-size: 0.75rem;
}

.exec-card__dash {
  color: #b0bac8;
  font-weight: 400;
}

.exec-card__more {
  margin: 8px 0 0;
  padding-top: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2f6bdb;
  border-top: 1.5px dashed #c5d0de;
}

.exec-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.exec-card__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exec-card__badge--delayed {
  background: #e67e22;
  color: #ffffff;
}

.exec-card__badge--hidden {
  background: #e8ecf2;
  color: #4f5d73;
}

/* ── Connectors ── */

.exec-connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.exec-connector-line {
  stroke: #5b8fc7;
  stroke-width: 2.5;
  fill: none;
}

.exec-connector-dot {
  fill: #2f6bdb;
  stroke: #fff;
  stroke-width: 1.5;
}

.exec-connector-date {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  fill: #172b44;
}

.exec-empty {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-size: 1.125rem;
  font-weight: 600;
  color: #4f5d73;
  text-align: center;
}

/* Edit panel */
.exec-edit-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #d8e0ea;
  box-shadow: -4px 0 24px rgba(23, 43, 68, 0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.exec-edit-panel[hidden] {
  display: none !important;
}

.exec-edit-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #d8e0ea;
}

.exec-edit-panel__header h3 {
  margin: 0;
  font-size: 1rem;
}

.exec-edit-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid #d8e0ea;
}

.exec-edit-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
}

.exec-edit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.82rem;
}

.exec-edit-item label {
  flex: 1;
  cursor: pointer;
}

.exec-edit-item__name {
  font-weight: 600;
  color: #172b44;
}

.exec-edit-item__meta {
  margin-top: 2px;
  color: #4f5d73;
  font-size: 0.75rem;
}

/* Print */
@media print {
  body.app-view-summary {
    background: #fff;
  }

  .exec-accent-bar,
  .exec-header,
  .exec-toolbar,
  .exec-filters,
  .exec-edit-panel,
  #btn-exec-summary,
  .dashboard {
    display: none !important;
  }

  body.app-view-summary .executive-summary {
    display: block !important;
    height: auto;
    max-width: none;
    background: #fff;
  }

  .exec-canvas {
    margin: 0;
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .exec-stage {
    min-height: 680px;
  }

  .exec-card {
    box-shadow: 0 2px 8px rgba(23, 43, 68, 0.1);
  }

  .exec-title-block h2 {
    font-size: 2rem;
  }

  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}


/* Mockup timeline (permanent Executive Summary layout) */

.exec-mockup {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 4px 4px;
}

.exec-mockup[hidden] {
  display: none !important;
}

.exec-mockup__board {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(23, 43, 68, 0.06);
  padding: 8px 12px 6px;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
}

.exec-mockup__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}

.exec-mockup__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #172b44;
  letter-spacing: -0.02em;
}

.exec-mockup__subtitle {
  margin: 1px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4f5d73;
}

.exec-mockup__plot {
  position: relative;
  --mockup-lane-label: 0px;
}

.exec-mockup__zones {
  position: absolute;
  top: 0;
  bottom: 58px;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.exec-mockup__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.exec-mockup__zone span {
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.exec-mockup__zone--delivered {
  background: rgba(46, 155, 71, 0.07);
  border-right: 1px dashed rgba(46, 155, 71, 0.25);
}

.exec-mockup__zone--delivered span { color: #2e9b47; }

.exec-mockup__zone--planned {
  background: rgba(47, 107, 219, 0.06);
}

.exec-mockup__zone--planned span {
  color: #2f6bdb;
  text-align: right;
  left: auto;
  right: 28px;
}

.exec-mockup__lanes {
  position: relative;
  z-index: 1;
  padding-top: 10px;
  padding-bottom: 54px;
}

.exec-mockup-lane {
  display: block;
  border-bottom: 1px solid #e6edf5;
  min-height: 0;
}

.exec-mockup-lane:last-child {
  border-bottom: none;
}

.exec-mockup-lane__label {
  display: none !important;
}

.exec-mockup-lane__track {
  position: relative;
  min-height: 0;
  width: 100%;
}

.exec-mockup-pill {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 3px 6px;
  border-radius: 7px;
  border: 1.5px solid #c7d8ee;
  border-left-width: 3px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(23, 43, 68, 0.07);
  font: inherit;
  color: #172b44;
  z-index: 2;
  overflow: hidden;
}

.exec-mockup-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(23, 43, 68, 0.12);
}

.exec-mockup-pill--delivered {
  background: #e7f6ea;
  border-color: #2e9b47;
  border-left-color: #2e9b47;
}

.exec-mockup-pill--planned {
  background: #eef4ff;
  border-color: #2f6bdb;
  border-left-color: #2f6bdb;
}

.exec-mockup-pill--delayed,
.exec-mockup-pill--risk {
  background: #fff4e8;
  border-color: #e67e22;
  border-left-color: #e67e22;
}

.exec-mockup-pill__top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.exec-mockup-pill__check {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c8e6c9;
  color: #2e9b47;
  font-size: 0.55rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exec-mockup-pill__name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  color: #172b44;
  white-space: nowrap;
}

.exec-mockup-pill__date {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: #172b44;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.15;
}

.exec-mockup-pill__date--range {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exec-mockup-pill__meta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.exec-mockup-pill__project {
  margin-top: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f766e;
  line-height: 1.15;
  white-space: nowrap;
  flex: 0 0 auto;
}

.exec-mockup-pill__flow {
  margin-top: 0;
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.15;
  white-space: nowrap;
  flex: 0 0 auto;
}

.exec-mockup-pill__meta {
  display: none;
}

.exec-mockup-pill__foot {
  display: none;
}

.exec-mockup-pill__badge {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 4px;
  border-radius: 999px;
  background: #e67e22;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.exec-mockup__today {
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 0;
  border-left: 2px dotted #e53935;
  z-index: 3;
  pointer-events: none;
  transform: translateX(0);
}

.exec-mockup__today-cap {
  position: absolute;
  left: 0;
  width: 2px;
  background: #e53935;
  border-radius: 2px;
  transform: translateX(-1px);
}

.exec-mockup__today-cap--top {
  top: 0;
  height: 28px;
}

.exec-mockup__today-cap--bottom {
  bottom: 44px;
  height: 16px;
}

.exec-mockup__today-label {
  position: absolute;
  top: auto;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 10px;
  line-height: 1.3;
  border-radius: 6px;
  background: #fff0f0;
  border: 1px solid #f87171;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  z-index: 4;
  box-sizing: border-box;
}

.exec-mockup__axis {
  position: absolute;
  left: 0;
  right: 12px;
  bottom: 2px;
  height: 52px;
  z-index: 2;
}

.exec-mockup__axis-line {
  position: absolute;
  left: 0;
  right: 14px;
  top: 4px;
  height: 3px;
  background: #3d516b;
  border-radius: 2px;
}

.exec-mockup__axis-arrow {
  position: absolute;
  right: 0;
  top: -1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #3d516b;
}

.exec-mockup__ticks {
  position: absolute;
  inset: 0;
}

.exec-mockup__tick {
  position: absolute;
  top: auto;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 800;
  color: #172b44;
  white-space: nowrap;
}

.tooltip.tooltip--exec-mockup {
  background: #ffffff;
  color: #172b44;
  border: 1px solid #d8e0ea;
  box-shadow: 0 8px 24px rgba(23, 43, 68, 0.14);
  border-radius: 10px;
}

.tooltip.tooltip--exec-mockup strong {
  color: #172b44;
}

.tooltip.tooltip--exec-mockup .tooltip-row {
  color: #4f5d73;
}

.tooltip.tooltip--exec-mockup .tooltip-delayed {
  color: #c2410c;
}

.tooltip.tooltip--exec-mockup .tooltip-scope {
  color: #0f766e;
}

/* Status Brief — glanceable CEO board */
.exec-mockup--brief {
  overflow: auto;
  padding: 0 8px 16px 0;
}

.exec-brief {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.exec-brief-pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #d8e0ea;
  background: #fff;
}

.exec-brief-pulse.is-alert {
  border-color: #f0c4a8;
  background: linear-gradient(90deg, #fff4e8 0%, #ffffff 42%);
}

.exec-brief-pulse.is-ok {
  border-color: #b7e0c0;
  background: linear-gradient(90deg, #e7f6ea 0%, #ffffff 42%);
}

.exec-brief-pulse__status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exec-brief-pulse__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.exec-brief-pulse.is-alert .exec-brief-pulse__dot {
  background: #e67e22;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.22);
}

.exec-brief-pulse.is-ok .exec-brief-pulse__dot {
  background: #2e9b47;
  box-shadow: 0 0 0 4px rgba(46, 155, 71, 0.2);
}

.exec-brief-pulse__label {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #172b44;
}

.exec-brief-pulse__meters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exec-brief-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e4ebf3;
}

.exec-brief-meter__n {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #172b44;
}

.exec-brief-meter__l {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7a90;
}

.exec-brief-meter--attention .exec-brief-meter__n { color: #e67e22; }
.exec-brief-meter--now .exec-brief-meter__n { color: #2f6bdb; }
.exec-brief-meter--ahead .exec-brief-meter__n { color: #4f5d73; }
.exec-brief-meter--done .exec-brief-meter__n { color: #2e9b47; }

.exec-brief-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.exec-brief-col {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-radius: 14px;
  border: 1px solid #d8e0ea;
  background: #fff;
  overflow: hidden;
}

.exec-brief-col--attention {
  border-color: #f0c4a8;
  background: #fffaf5;
}

.exec-brief-col--now {
  border-color: #b8ccef;
  background: #f7faff;
}

.exec-brief-col--ahead {
  background: #fbfcfe;
}

.exec-brief-col__head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(23, 43, 68, 0.08);
}

.exec-brief-col__signal {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.exec-brief-col__count {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.exec-brief-col--attention .exec-brief-col__count { color: #e67e22; }
.exec-brief-col--now .exec-brief-col__count { color: #2f6bdb; }
.exec-brief-col--ahead .exec-brief-col__count { color: #4f5d73; }

.exec-brief-col__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f5d73;
}

.exec-brief-col__body {
  flex: 1;
  padding: 10px 12px 12px;
  overflow: auto;
}

.exec-brief-col__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a97ab;
}

.exec-brief-tiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exec-brief-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name date"
    "project team"
    "flow flag";
  gap: 2px 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5d3ea;
  border-left-width: 5px;
  border-radius: 10px;
  background: #eef4ff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.exec-brief-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(23, 43, 68, 0.12);
}

.exec-brief-tile--lg {
  padding: 12px 14px;
  gap: 3px 12px;
}

.exec-brief-tile--attention {
  background: #fff4e8;
  border-color: #e67e22;
  border-left-color: #e67e22;
}

.exec-brief-tile--now {
  background: #eef4ff;
  border-color: #2f6bdb;
  border-left-color: #2f6bdb;
}

.exec-brief-tile--ahead {
  background: #f4f7fb;
  border-color: #9aa8bc;
  border-left-color: #6b7a90;
}

.exec-brief-tile--done {
  background: #e7f6ea;
  border-color: #2e9b47;
  border-left-color: #2e9b47;
}

.exec-brief-tile__name {
  grid-area: name;
  font-size: 0.95rem;
  font-weight: 800;
  color: #172b44;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-brief-tile--lg .exec-brief-tile__name {
  font-size: 1.05rem;
}

.exec-brief-tile__date {
  grid-area: date;
  font-size: 0.82rem;
  font-weight: 800;
  color: #172b44;
  white-space: nowrap;
}

.exec-brief-tile__project,
.exec-brief-tile__team,
.exec-brief-tile__flow {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f5d73;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-brief-tile__project { grid-area: project; }
.exec-brief-tile__team { grid-area: team; justify-self: end; }
.exec-brief-tile__flow { grid-area: flow; }

.exec-brief-tile__flag {
  grid-area: flag;
  justify-self: end;
  align-self: start;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9a3412;
  background: #ffedd5;
}

.exec-brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exec-brief-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #d0d8e4;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.exec-brief-chip:hover {
  border-color: #9eb6e0;
  box-shadow: 0 2px 8px rgba(23, 43, 68, 0.08);
}

.exec-brief-chip--done {
  background: #f4fbf6;
  border-color: #b7e0c0;
}

.exec-brief-chip--risk {
  background: #fff8f3;
  border-color: #f0c4a8;
}

.exec-brief-chip__mark {
  color: #2e9b47;
  font-weight: 800;
  line-height: 1;
}

.exec-brief-chip__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #172b44;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-brief-chip__meta {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7a90;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-brief-done {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #b7e0c0;
  background: #f4fbf6;
}

.exec-brief-done__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2e9b47;
}

.exec-brief-done__check {
  font-size: 1rem;
  font-weight: 800;
}

.exec-brief-done__label strong {
  font-size: 1rem;
  color: #172b44;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1100px) {
  .exec-brief-board {
    grid-template-columns: 1fr;
  }

  .exec-brief-col {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .exec-brief-pulse__label {
    font-size: 1.1rem;
  }

  .exec-brief-meter {
    min-width: 64px;
  }
}

/* ── Weekly Board (CEO view) ── */
.exec-mockup--weekly {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 8px 14px 0;
}

.exec-weekly {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exec-board-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.exec-board-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.exec-board-kpi--delivered {
  background: #f8fdf9;
  border-color: #d8f0de;
}

.exec-board-kpi--upcoming {
  background: #f8fafc;
  border-color: #e4eaf0;
}

.exec-board-kpi--delayed {
  background: #fffbfb;
  border-color: #f3e8e8;
}

.exec-board-kpi__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.exec-board-kpi--delivered .exec-board-kpi__icon {
  color: #166534;
  background: #dcfce7;
}

.exec-board-kpi--upcoming .exec-board-kpi__icon {
  color: #1e40af;
  background: #dbeafe;
}

.exec-board-kpi--delayed .exec-board-kpi__icon {
  color: #b91c1c;
  background: #fee2e2;
}

.exec-board-kpi__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.exec-board-kpi__value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.exec-board-kpi__label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
}

.exec-board-kpi__hint {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: #94a3b8;
}

.exec-board-columns {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.exec-board-columns--w3 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.exec-board-columns--w6 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.exec-board-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fafbfc;
  overflow: hidden;
  box-shadow: none;
}

.exec-board-col--delivered {
  background: #f3faf5;
  border-color: #cfe8d6;
}

.exec-board-col--delivered .exec-board-col__head {
  background: #e8f5ec;
  border-bottom-color: rgba(22, 101, 52, 0.1);
}

.exec-board-col--upcoming {
  background: #fafbfc;
  border-color: #e2e8f0;
}

.exec-board-col--upcoming.exec-board-col--stripe-1 {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.exec-board-col--upcoming.exec-board-col--stripe-2 {
  background: #f5f7fa;
  border-color: #dde3ea;
}

.exec-board-col--current {
  background: #eef4ff;
  border-color: #c5d8f0;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
}

.exec-board-col--current .exec-board-col__head {
  background: #e4edfc;
  border-bottom-color: rgba(30, 64, 175, 0.1);
}

.exec-board-col__head {
  position: relative;
  padding: 14px 44px 12px 14px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.exec-board-col__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.exec-board-col__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exec-board-columns--w6 .exec-board-col__title {
  font-size: 0.84rem;
}

.exec-board-col__today {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1e40af;
  background: #dbeafe;
}

.exec-board-col__count {
  position: absolute;
  top: 12px;
  right: 12px;
  flex-shrink: 0;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  background: rgba(15, 23, 42, 0.07);
}

.exec-board-col--delivered .exec-board-col__count {
  color: #166534;
  background: rgba(22, 101, 52, 0.12);
}

.exec-board-col--current .exec-board-col__count {
  color: #1e40af;
  background: rgba(30, 64, 175, 0.12);
}

.exec-board-col__range {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exec-board-col__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 240px);
  align-content: start;
}

.exec-board-divider {
  flex-shrink: 0;
  padding: 4px 0 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.exec-board-divider + .exec-board-card {
  margin-top: -4px;
}

.exec-board-col__empty {
  padding: 20px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.exec-board-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  flex-shrink: 0;
  padding: 14px 13px 13px;
  border: 1px solid #e8ecf2;
  border-left: 3px solid #60a5fa;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.exec-board-card:hover {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
  border-color: #dce3ec;
}

.exec-board-card--delivered {
  border-color: #e0ebe4;
  border-left-color: #4ade80;
}

.exec-board-card--upcoming {
  border-color: #e8ecf2;
  border-left-color: #60a5fa;
}

.exec-board-card--delayed {
  border-left-color: #f87171;
  border-color: #f0dede;
  background: #fffafa;
}

.exec-board-card--delayed:hover {
  border-color: #e8d0d0;
  background: #fff8f8;
}

.exec-board-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.exec-board-card__project {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1e3a8a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-board-card--delivered .exec-board-card__project {
  color: #166534;
}

.exec-board-card--delayed .exec-board-card__project {
  color: #1e3a8a;
}

.exec-board-columns--w6 .exec-board-card {
  padding: 12px 10px 11px;
  gap: 4px;
}

.exec-board-columns--w6 .exec-board-card__project {
  font-size: 0.88rem;
}

.exec-board-card__date {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  padding-top: 2px;
}

.exec-board-card__name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-board-columns--w6 .exec-board-card__name {
  font-size: 0.78rem;
}

.exec-board-card__bottom {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  min-width: 0;
  margin-top: 2px;
}

.exec-board-card__flow {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  font-size: 0.7rem;
  font-weight: 500;
  color: #8b9bb0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-board-columns--w6 .exec-board-card__flow {
  font-size: 0.66rem;
}

.exec-board-card__chip {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b91c1c;
  background: #fee2e2;
  white-space: nowrap;
}

.executive-summary:fullscreen,
.executive-summary:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #f7f9fc;
  padding: 0;
}

@media (max-width: 1100px) {
  body.exec-layout-weekly .exec-toolbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  body.exec-layout-weekly .exec-toolbar__left,
  body.exec-layout-weekly .exec-toolbar__right {
    justify-self: stretch;
    justify-content: flex-start;
  }

  .exec-board-columns--w3,
  .exec-board-columns--w6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec-board-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .exec-board-columns--w3,
  .exec-board-columns--w6 {
    grid-template-columns: 1fr;
  }

  body.exec-layout-weekly .exec-header {
    flex-direction: column;
    align-items: stretch;
  }
}
