/* Page layout, narration bar, pane windows, highlights, and the wrap-up card. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1d2330; background: #e4e7ec;
}
button { font: inherit; color: inherit; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
.scroll { overflow: auto; overscroll-behavior: contain; }

.page { height: 100vh; min-height: 620px; display: grid; grid-template-rows: auto auto 1fr auto; }

/* Narration bar */
.topbar { display: flex; gap: 24px; align-items: center; padding: 12px 20px; background: #1b2130; color: #f3f5f9; }
.narr { flex: 1; min-width: 0; }
.narr-label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #f7c948; }
.narr-label span { color: #a6afc0; font-weight: 500; }
.narr h1 { margin: 2px 0 2px; font-size: 18px; letter-spacing: -.01em; }
.narr p { margin: 0; color: #d5dae4; max-width: 980px; font-size: 14px; }
.narr-look { display: none; }
.controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.dots { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #4a5368; cursor: pointer; }
.dot.done { background: #8d97ab; }
.dot.on { background: #f7c948; transform: scale(1.25); }
.dot-gap { width: 8px; }
.ctl-buttons { display: flex; gap: 8px; }
.btn { padding: 7px 16px; border-radius: 8px; border: 1px solid #4a5368; background: transparent; color: #f3f5f9;
  font-weight: 600; cursor: pointer; }
.btn:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.btn.primary { background: #f7c948; border-color: #f7c948; color: #1b2130; }
.btn.primary:hover:not(:disabled) { background: #ffd866; }
.btn.ghost { border-color: transparent; color: #a6afc0; }
.btn:disabled { opacity: .4; cursor: default; }
.ptabs { display: none; }

/* Stage: Tempo Sync on the left, the three apps on the right */
.stage { position: relative; display: grid; grid-template-columns: minmax(430px, 39%) 1fr; gap: 12px;
  padding: 12px 16px; min-height: 0; }
.apps { display: grid; grid-template-columns: 44fr 56fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; min-width: 0; }
.pane-mms { grid-column: 1 / -1; }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(20,30,50,.08), 0 6px 18px rgba(20,30,50,.08);
  outline: 2px solid transparent; transition: outline-color .3s; container-type: inline-size; }
.pane.pane-hl { outline-color: #f2b705; }
.chrome { flex: none; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  background: #f1f2f5; border-bottom: 1px solid #dcdfe5; font-size: 12px; color: #6b7385; }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d3d6dd; }
.chrome b { margin-left: 6px; color: #2a3140; }
.chrome span::before { content: "·"; margin-right: 6px; }
.pane-body { flex: 1; min-height: 0; display: flex; }
.pane-body > * { flex: 1; min-width: 0; }

/* Highlights: amber means "look here", green means "this just changed" */
.hl { background-color: #fff4cc !important; box-shadow: inset 0 0 0 2px #f2b705 !important; border-radius: 4px; }
.hl-new { background-color: #e2f6e8 !important; box-shadow: inset 0 0 0 2px #2f9e57 !important; border-radius: 4px; }
.pulse.hl { animation: pulse-amber 1.4s ease-out 2; }
.pulse.hl-new { animation: pulse-green 1.4s ease-out 2; }
@keyframes pulse-amber { 0% { outline: 0 solid rgba(242,183,5,.6); } 100% { outline: 8px solid rgba(242,183,5,0); } }
@keyframes pulse-green { 0% { outline: 0 solid rgba(47,158,87,.6); } 100% { outline: 8px solid rgba(47,158,87,0); } }
@media (prefers-reduced-motion: reduce) { .pulse.hl, .pulse.hl-new { animation: none; } }

/* Wrap-up card */
.wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(27,33,48,.45); z-index: 5; padding: 16px; }
.wrap[hidden] { display: none; }
.wrap-card { background: #fff; border-radius: 14px; padding: 26px 30px; max-width: 560px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.wrap-card h2 { margin: 0 0 6px; font-size: 22px; }
.wrap-card p { margin: 0 0 12px; color: #4a5368; }
.wrap-card ul { margin: 0 0 18px; padding-left: 20px; }
.wrap-card li { margin: 6px 0; }
.wrap-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wrap-card .btn { color: #1b2130; border-color: #c9ced8; }
.wrap-card .btn:hover { background: #f1f2f5; }

.foot { padding: 0 16px 10px; font-size: 12px; color: #6b7385; text-align: center; }
