/* Hero tablet screen = the panel itself (Nov 11, 2026). css/panel.css is the panel's own CSS, generated by tools/panel-build.mjs
   and scoped to .pnl; this file only places the 1280 x 780 panel on the 1127 x 687 screen and plays the anomaly moment.
   Animated properties stay transform / opacity (plus the chart line's dash, as before). */
.pnl-fit{position:absolute;inset:0;z-index:1;overflow:hidden;border-radius:inherit;background:#140F15}
.pnl-fit>.pnl,.pnl-fit>.pnl-over{position:absolute;left:0;top:0;transform:scale(.88047);transform-origin:0 0}
.pnl-over{width:1280px;height:780px;pointer-events:none;z-index:2}

/* only the menu (and the demo card's button) is clickable, and only once the tablet is flat */
.pnl *{pointer-events:none}
.device-tilt.interactive-ready .pnl [data-pv],.device-tilt.interactive-ready .pnl .p-nav-grp-h,.device-tilt.interactive-ready .pnl .pnl-demo-btn{pointer-events:auto;cursor:pointer}
.device-tilt.interactive-ready .pnl .p-lnav{pointer-events:auto;overscroll-behavior:contain;scrollbar-width:none}
.pnl .p-lnav::-webkit-scrollbar{display:none}
.pnl .p-lnav::-webkit-scrollbar{display:none}
.pnl [data-pv]:focus-visible,.pnl .p-nav-grp-h:focus-visible{outline:2px solid var(--cream);outline-offset:-2px}

/* views the tablet shows as a still of the panel: the main column under the top bar */
.pnl-still{position:absolute;left:256px;top:62px;z-index:20;width:1024px;height:718px;background:var(--bg);opacity:0;visibility:hidden;
  transition:opacity .24s var(--ease),visibility 0s linear .24s}
.pnl-still.is-on{opacity:1;visibility:visible;transition:opacity .24s var(--ease)}
.pnl-still img{display:block;width:100%;height:100%}

/* ---------- the anomaly moment on the Anomalies view (timing scaled by --gt, set by JS) ----------
   1. the detail card opens (0.5 s x gt) and the CPC line draws to today's red point (0.7 s x gt)
   2. the cat peeks over the card (2.1 s x gt) and asks; 3. the view glides up to the likely cause */
/* the detail card is there from the start (Ceren's audit, Nov 11, 2026): only the line's last stretch, the spike, is held back */
.pnl #p-anDetail .p-ln{stroke-dasharray:var(--len,2000);stroke-dashoffset:0;transition:stroke-dashoffset .9s var(--ease) calc(.5s * var(--gt,1))}
.device:not(.is-alert) .pnl #p-anDetail .p-ln{stroke-dashoffset:calc(var(--len,2000) * .16)}
/* the five numbers: three to a row so none breaks inside (the range takes two places) */
.pnl #p-anDetail .p-detail-nums{grid-template-columns:repeat(3,minmax(0,1fr))}
.pnl #p-anDetail .p-detail-nums .p-dn:nth-child(2){grid-column:span 2}
.pnl #p-anDetail .p-detail-nums .p-dn b{white-space:nowrap;overflow-wrap:normal}
.pnl #p-anDetail :is(.p-hot,.p-halo,.p-end,.p-xh){transform-box:fill-box;transform-origin:50% 50%;transition:transform .3s var(--ease) calc(1.6s * var(--gt,1)),opacity .3s var(--ease) calc(1.6s * var(--gt,1))}
.device:not(.is-alert) .pnl #p-anDetail :is(.p-hot,.p-halo,.p-end){transform:scale(0)}
.device:not(.is-alert) .pnl #p-anDetail .p-xh{opacity:0}
.device.is-alert .pnl #p-anDetail .p-halo{animation:halo 1s var(--ease) calc(1.9s * var(--gt,1)) 2}
.pnl #p-v-gate .p-cause{transition:opacity .4s var(--ease) .35s,transform .6s var(--ease-expo) .35s}
.device:not(.coach-why) .pnl #p-v-gate .p-cause{opacity:0;transform:translateY(12px)}
.pnl #p-v-gate,.pnl-over .cat-wrap{transition:transform 1.1s var(--ease-soft)}
.device.coach-why .pnl #p-v-gate,.device.coach-why .pnl-over .cat-wrap{transform:translateY(var(--why,-240px))}
.device.coach-why .pnl #p-v-gate{animation:none}
.pnl-over .cat-wrap{transition:transform 1.1s var(--ease-soft),opacity .5s var(--ease)}
.device.coach-why .pnl-over .cat-wrap{opacity:0}

/* the cat peeks over the detail card's top edge and asks once (bubble: hero.css) */
.pnl-over .cat-wrap{position:absolute;left:0;top:0;width:100%;height:100%}
.pnl-over .cat-slot{left:auto;right:96px;top:var(--cat-top,111px);width:72px;height:44px}
.pnl-over .cat{width:72px}
.pnl-over .cat-bubble{left:auto;right:58px;top:calc(var(--cat-top,111px) - 40px);font-size:13px;padding:8px 12px}
.pnl-over .cat-bubble::after{right:62px}
/* tip next to the menu once the moment has played */
.pnl-over .coach{left:258px;top:var(--tip-top,184px);font-size:13px}
.device.coach-3 .pnl-over .coach{opacity:1;transform:translate(0,-50%);animation:coach-nudge 1.4s var(--ease-inout-sine) .6s 3}

@media (prefers-reduced-motion: reduce){
  .pnl #p-anDetail,.pnl #p-anDetail *,.pnl #p-v-gate,.pnl #p-v-gate .p-cause,.pnl-over .cat-wrap{transition:none!important;animation:none!important}
}
.device.coach-done .pnl-over .coach{opacity:0;animation:none;transition-duration:.2s}

/* a view the sample panel does not open: a card offering the demo, in the main column's place */
.pnl-demo{position:absolute;left:256px;top:62px;z-index:20;width:1024px;height:718px;display:grid;place-items:center;
  background:radial-gradient(60% 50% at 50% 40%,rgba(86,16,41,.35),rgba(86,16,41,0) 70%),var(--bg)}
.pnl-demo[hidden]{display:none}
.pnl-demo-card{width:520px;padding:40px;border-radius:28px;background:var(--surface);border:1px solid var(--line-2);text-align:center;animation:p-demo-in .35s var(--ease) both}
@keyframes p-demo-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.pnl-demo-k{margin:0;font-size:14px;font-weight:600;color:var(--muted)}
.pnl-demo-h{margin:12px 0 0;font-size:26px;line-height:1.2;font-weight:600;letter-spacing:-.02em;color:var(--text)}
.pnl-demo-p{margin:12px 0 0;font-size:15px;line-height:1.5;color:var(--muted)}
.pnl-demo-btn{display:inline-flex;align-items:center;height:48px;margin-top:26px;padding:0 24px;border-radius:999px;background:var(--red);color:#FBF7F2;font-size:16px;font-weight:600;text-decoration:none}
.pnl-demo-btn:hover{background:var(--red-press)}
.pnl-demo-btn:focus-visible{outline:2px solid #FBF7F2;outline-offset:3px}
@media (prefers-reduced-motion: reduce){ .pnl-demo-card{animation:none} }

/* anomaly table: the campaign on its own line, never broken inside a word (Ceren's audit, Nov 11, 2026) */
.pnl #p-anTable .pnl-cmp{display:block;white-space:nowrap;font-size:10.5px;letter-spacing:-.01em}
