.executive-entry {
  --executive-accent: #d9f2a7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex: none;
  min-height: 40px;
  padding: .48rem .78rem;
  border: 1px solid var(--executive-accent);
  border-radius: 8px;
  background: var(--executive-accent);
  color: #13231e;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}
.executive-entry:hover { background: #ecffd2; }
.executive-entry::after { content: ''; width: .38rem; height: .38rem; border-radius: 50%; background: #315e3d; }
.executive-entry:not([data-seen])::after { animation: executive-beacon 2s ease-out infinite; }
.executive-entry[data-seen]::after { opacity: .35; }
@keyframes executive-beacon { 0% { box-shadow: 0 0 0 0 #315e3d70; } 75%, 100% { box-shadow: 0 0 0 6px #315e3d00; } }

html:has(.executive-tour[open]) { overflow: hidden; }
.executive-tour {
  --executive-ink: #eaf1ec;
  --executive-muted: #bdd0d1;
  --executive-accent: #d9f2a7;
  --executive-line: #53727770;
  position: fixed;
  inset: 0;
  width: min(1060px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #527371;
  border-radius: 18px;
  background: #0b1d24;
  color: var(--executive-ink);
  box-shadow: 0 28px 100px #020b11ba;
  color-scheme: dark;
}
.executive-tour::backdrop { background: #051018bd; backdrop-filter: blur(5px); }
.executive-tour [hidden] { display: none !important; }
.executive-tour, .executive-tour * { box-sizing: border-box; }
.executive-tour button, .executive-tour a { touch-action: manipulation; }
.executive-entry:focus-visible, .executive-tour :focus-visible { outline: 2px solid #87d8e9; outline-offset: 3px; }
.executive-header { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--executive-line); }
.executive-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.executive-brand > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--executive-accent);
  color: #13231e;
  font-size: 1rem;
}
.executive-brand strong, .executive-brand small { display: block; line-height: 1.35; }
.executive-brand strong { font-size: .79rem; letter-spacing: .15em; }
.executive-brand small, .executive-tag { color: var(--executive-muted); font: 650 .62rem/1.35 ui-monospace, monospace; letter-spacing: .09em; }
.executive-tag { padding: .36rem .5rem; border: 1px solid var(--executive-line); border-radius: 5px; white-space: nowrap; }
.executive-tour .executive-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--executive-line);
  border-radius: 8px;
  background: #172d33;
  color: var(--executive-ink);
  font: 500 1.5rem/1 system-ui, sans-serif;
}

.executive-stage { min-width: 0; background: radial-gradient(ellipse at 78% 0%, #1b3c40, #0d2028 72%); }
.executive-scene { position: relative; height: clamp(300px, 49dvh, 480px); isolation: isolate; }
.executive-scene-viewport { position: absolute; inset: 0; overflow: hidden; }
.executive-scene-viewport canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.executive-scene-heading, .executive-scene-stats { position: absolute; z-index: 1; pointer-events: none; }
.executive-scene-heading {
  top: 13px;
  left: 16px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--executive-line);
  border-radius: 7px;
  background: #0c2129e8;
}
.executive-scene-heading > span, .executive-board-head > span {
  color: var(--executive-accent);
  font: 700 .65rem/1.4 ui-monospace, monospace;
  letter-spacing: .09em;
}
.executive-scene-heading small { color: var(--executive-muted); font-size: .69rem; }
.executive-scene-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; inset: auto 16px 29px; }
.executive-scene-stats > div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--executive-line);
  border-radius: 8px;
  background: #0a2028e8;
}
.executive-scene-stats strong { color: var(--executive-accent); font-size: 1.07rem; }
.executive-scene-stats span { color: var(--executive-muted); font-size: .72rem; }

.executive-board { min-height: 290px; padding: 20px clamp(14px, 4vw, 40px) 35px; }
.executive-board-head { margin-bottom: 14px; }
.executive-board-head h3 { margin: 4px 0 0; font-size: clamp(1.2rem, 3.1vw, 1.8rem); line-height: 1.12; letter-spacing: -.025em; }
.executive-tiles { display: grid; gap: 8px; }
.executive-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.executive-rollover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.executive-tiles article { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 12px; border: 1px solid var(--executive-line); border-radius: 8px; background: #152e36b3; }
.executive-tiles article > span { color: var(--executive-muted); font: 650 .65rem/1.3 ui-monospace, monospace; text-transform: uppercase; }
.executive-tiles strong { color: var(--executive-accent); font-size: clamp(1.25rem, 3.3vw, 2.1rem); font-variant-numeric: tabular-nums; line-height: 1; }
.executive-tiles small, .executive-board-note, .executive-proof small { color: var(--executive-muted); font-size: .73rem; line-height: 1.4; }
.executive-board-note { margin: 8px 0 0; }
.executive-board-note b { color: var(--executive-accent); }
.executive-shifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.executive-shifts span { display: grid; place-items: center; padding: .48rem .18rem; border-top: 2px solid #8cc0aa; background: #1a343b; font: 650 .69rem/1.3 ui-monospace, monospace; text-align: center; }
.executive-comparison { width: 100%; border-collapse: collapse; color: var(--executive-ink); font-size: .83rem; }
.executive-comparison :is(th, td) { padding: .47rem .55rem; border-bottom: 1px solid var(--executive-line); font-size: .85rem; text-align: right; }
.executive-comparison th:first-child { text-align: left; }
.executive-comparison thead th { color: var(--executive-muted); font-size: .69rem; white-space: normal; }
.executive-comparison tbody td:last-child { color: var(--executive-accent); font-weight: 750; }
.executive-proof { margin: 10px 0 0; font-size: .75rem; font-weight: 750; color: #f1c892; overflow-wrap: anywhere; }
.executive-proof[data-verified="true"] { color: var(--executive-accent); }
.executive-proof code { font-size: .72rem; }
.executive-proof small { display: block; margin-top: 3px; font-weight: 500; }
.executive-pending { min-height: 228px; display: grid; align-content: center; gap: 8px; text-align: center; }
.executive-pending span { color: var(--executive-muted); font-size: .82rem; }

.executive-hud {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 32px));
  margin: -17px auto 14px;
  padding: 14px 18px;
  border: 1px solid #648689;
  border-radius: 12px;
  background: linear-gradient(118deg, #1b363fee, #10262feb);
  backdrop-filter: blur(12px);
  box-shadow: 0 9px 22px #020c144f;
}
.executive-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--executive-accent); font: 700 .72rem/1.4 ui-monospace, monospace; }
.executive-hud progress { display: block; width: 100%; height: 4px; margin: 6px 0 10px; border: 0; border-radius: 4px; background: #365158; color: var(--executive-accent); accent-color: var(--executive-accent); }
.executive-hud progress::-webkit-progress-bar { border-radius: 4px; background: #365158; }
.executive-hud progress::-webkit-progress-value { border-radius: 4px; background: var(--executive-accent); }
.executive-hud progress::-moz-progress-bar { border-radius: 4px; background: var(--executive-accent); }
.executive-narration h2 { margin: 0; font-size: clamp(1.2rem, 2.8vw, 1.65rem); line-height: 1.14; letter-spacing: -.024em; }
.executive-narration p { margin: 7px 0 10px; color: var(--executive-muted); font-size: .89rem; line-height: 1.45; }
.executive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.executive-actions button, .executive-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #789093;
  border-radius: 7px;
  background: #142c35;
  color: var(--executive-ink);
  font: 700 .78rem/1.3 system-ui, sans-serif;
  text-decoration: none;
}
.executive-actions [data-tour="skip"] { margin-left: auto; background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .25em; }
.executive-actions :is([data-tour="next"], [data-tour="explore"]) { background: var(--executive-accent); border-color: var(--executive-accent); color: #13231e; }
.executive-actions :is(button, a):hover, .executive-tour .executive-close:hover { filter: brightness(1.14); }
.executive-finish a { color: var(--executive-accent); }

.mast-actions:has(.executive-entry), .day-mast nav:has(.executive-entry) { flex-wrap: wrap; }
@media (max-width: 1300px) { .identity:has(.executive-entry) .private { display: none; } }
@media (max-width: 640px) {
  .executive-tour { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 13px; }
  .executive-header { padding: 7px 10px; gap: 8px; }
  .executive-brand > b { width: 32px; height: 32px; }
  .executive-brand small, .executive-tag { font-size: .54rem; }
  .executive-scene { height: clamp(230px, 36dvh, 340px); }
  .executive-scene-heading { top: 8px; left: 8px; }
  .executive-scene-stats { gap: 4px; inset: auto 8px 23px; }
  .executive-scene-stats > div { padding: 6px; }
  .executive-scene-stats strong { font-size: .84rem; }
  .executive-scene-stats span { font-size: .62rem; }
  .executive-board { padding-block: 12px 24px; min-height: 235px; }
  .executive-board-head { margin-bottom: 9px; }
  .executive-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .executive-tiles article { gap: 5px; padding: 8px; }
  .executive-shifts span { font-size: .61rem; }
  .executive-comparison { font-size: .73rem; }
  .executive-comparison :is(th, td) { padding: .4rem .25rem; font-size: .72rem; }
  .executive-hud { width: calc(100% - 14px); margin: -12px auto 7px; padding: 10px; }
  .executive-narration p { font-size: .8rem; }
  .executive-actions { gap: 4px; }
  .executive-actions :is(button, a) { font-size: .71rem; padding-inline: 8px; }
  .executive-finish > * { flex: 1 1 auto; }
  .mast-actions:has(.executive-entry), .day-mast nav:has(.executive-entry) { gap: 6px 10px; }
  .executive-entry { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .executive-entry::after { animation: none !important; } }
@media print { .executive-entry, .executive-tour { display: none !important; } }
