/* Showcase panels: real UI, crisp at any size (HTML, not textures), floated in 3D over the live stage.
   Each panel is laid out at a fixed design size inside .scaler and scaled to the stage slot by panels.js. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.panel svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.panel { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s 0.45s; }
.panel.on { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
/* The scaler fits the device (--s) and carries the zoom (--z, --zx, --zy). The zoom isn't clipped to the stage slot:
   the 3D stage zooms with it, and the copy sits on top (.layout clips at the page edge). */
.panel .scaler {
  position: absolute; left: var(--cx, 48%); top: var(--cy, 56%); width: var(--w); height: var(--h);
  transform: translate(calc(-50% + var(--zx, 0px)), calc(-50% + var(--zy, 0px))) scale(calc(var(--s, 0.3) * var(--z, 1))); /* small until panels.js fits it: never widen a phone */
  transform-origin: 50% 50%; -webkit-user-select: none; user-select: none;
}
/* on the device, one finger scrolls the page and two fingers pinch the device; once zoomed, one finger pans it
   (set on every descendant: the screens clip their content, which would otherwise reset touch-action) */
.panel .scaler, .panel .scaler * { touch-action: pan-y; }
.panel.zoomed .scaler, .panel.zoomed .scaler * { touch-action: none; }
.panel.zoomed .scaler { cursor: grab; }
body.zoom-grabbing, body.zoom-grabbing * { cursor: grabbing !important; }
.panel.zoomed .float { opacity: 0 !important; translate: 0 6px; transition-delay: 0s !important; }
.panel .tilt {
  width: 100%; height: 100%; transform-style: preserve-3d;
  transform: perspective(1800px) rotateX(calc(4deg + var(--rx, 0deg))) rotateY(calc(-9deg + var(--ry, 0deg))) translateZ(0) scale(0.82) translateY(60px);
  opacity: 0; transition: transform 0.9s cubic-bezier(0.2, 1.1, 0.25, 1), opacity 0.5s var(--ease);
}
.panel.on .tilt { transform: perspective(1800px) rotateX(calc(4deg + var(--rx, 0deg))) rotateY(calc(-9deg + var(--ry, 0deg))); opacity: 1; }
.panel.on .scaler { pointer-events: auto; }

/* floating feature chips around the device */
.panel .float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 10, 40, 0.72); border: 1px solid rgba(170, 185, 255, 0.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #cfd8ff;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7); opacity: 0; translate: 0 12px; transition: opacity 0.5s var(--ease), translate 0.6s var(--out-back);
  animation: drift 6s ease-in-out infinite;
}
.panel .float svg { width: 15px; height: 15px; color: #8fb0ff; }
.panel .float .ok { width: 7px; height: 7px; border-radius: 50%; background: #3ef0c2; box-shadow: 0 0 10px #3ef0c2; }
.panel.on .float { opacity: 1; translate: 0 0; }
.panel.on .float:nth-of-type(1) { transition-delay: 0.45s; }
.panel.on .float:nth-of-type(2) { transition-delay: 0.6s; animation-delay: -2s; }
.panel.on .float:nth-of-type(3) { transition-delay: 0.75s; animation-delay: -4s; }
@keyframes drift { 50% { transform: translateY(-6px); } }
.compact .float { display: none; }

/* ================================================================ WEB: browser + dashboard (light UI) */
.panel-web .scaler { --w: 1180px; --h: 740px; }
.compact.panel-web .scaler { --w: 780px; --h: 640px; }
.browser {
  width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: #f6f6fb; color: #17143a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 60px 120px -40px rgba(0, 0, 0, 0.8), 0 0 140px -30px rgba(90, 80, 255, 0.55);
  font: 500 14px/1.4 var(--body); display: flex; flex-direction: column;
}
.b-bar { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; background: #e9e8f3; border-bottom: 1px solid #dddbea; flex: none; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.lights i:nth-child(2) { background: #ffbd2e; } .lights i:nth-child(3) { background: #28c941; }
.b-tabs { display: flex; gap: 4px; align-self: flex-end; }
.b-tab { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px 10px 0 0; font: 600 12.5px/1 var(--body); color: #6b6890; }
.b-tab.on { background: #f6f6fb; color: #17143a; }
.b-tab svg { color: #4a5bff; }
.b-url { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 14px; min-width: 340px; border-radius: 9px; background: #fff; color: #6b6890; font: 600 12.5px/1 var(--body); }
.b-url b { color: #17143a; font-weight: 700; }
.compact .b-tabs, .compact .b-url { display: none; }

.wa { flex: 1; display: grid; grid-template-columns: 196px 1fr; min-height: 0; }
.compact .wa { grid-template-columns: 1fr; }
.wa-side { background: #12103a; color: #c8cdf3; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.compact .wa-side { display: none; }
.wa-logo { display: flex; align-items: center; gap: 10px; font: 800 16px/1 var(--display); color: #fff; letter-spacing: -0.02em; padding: 0 6px; }
.hexlogo { width: 22px; height: 20px; background: linear-gradient(135deg, #3b7bff, #8b3df0); clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%); }
.wa-side nav { display: grid; gap: 2px; }
.wa-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font: 600 13px/1 var(--body); color: #a9aed8; }
.wa-side nav a svg { font-size: 17px; }
.wa-side nav a.on { background: rgba(255, 255, 255, 0.09); color: #fff; }
.wa-side nav a.on svg { color: #7aa0ff; }
.wa-side nav em { margin-left: auto; font: 700 11px/1 var(--body); font-style: normal; padding: 4px 7px; border-radius: 99px; background: rgba(122, 160, 255, 0.2); color: #b9cbff; }
.wa-side nav em.new { background: linear-gradient(100deg, #2c62ff, #7a2cf0); color: #fff; }
.wa-plan { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); display: grid; gap: 6px; font-size: 11.5px; }
.wa-plan > b { color: #fff; font: 700 12.5px/1 var(--display); }
.wa-plan > span b { color: #fff; }
.wa-plan > i { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.wa-plan > i > i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #3b7bff, #8b3df0); border-radius: inherit; transition: width 0.6s var(--ease); }

.wa-main { padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wa-top { display: flex; align-items: center; gap: 12px; }
.wa-search { flex: 1; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid #e3e1f0; color: #8a87ad; font-size: 13px; }
.wa-search svg { font-size: 16px; }
.wa-search kbd { margin-left: auto; font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: #f0eff8; color: #6b6890; }
.wa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 99px; background: rgba(44, 98, 255, 0.1); color: #2c4fe0; font: 700 12px/1 var(--body); }
.compact .wa-badge, .compact .wa-search kbd { display: none; }
.wa-new { padding: 11px 14px; border-radius: 11px; background: linear-gradient(100deg, #2c62ff, #6a2cf0); color: #fff; font: 700 13px/1 var(--body); box-shadow: 0 8px 18px -8px rgba(60, 70, 255, 0.8); white-space: nowrap; }
.wa-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid #e3e1f0; color: #4b4874; font-size: 18px; }
.wa-bell i { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px #fff; }
.wa-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #3b7bff, #8b3df0); color: #fff; font: 800 13px/1 var(--display); }
.compact .wa-bell { display: none; }

.wa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.wa-head h3 { margin: 0; font: 800 24px/1.1 var(--display); letter-spacing: -0.03em; }
.wa-head p { margin: 5px 0 0; color: #6b6890; font-size: 13px; }
.livepill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: rgba(20, 184, 138, 0.12); color: #0b9c74; font: 700 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.livepill i { width: 7px; height: 7px; border-radius: 50%; background: #14c38f; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.wa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.compact .wa-kpis { grid-template-columns: repeat(2, 1fr); }
.kpi { position: relative; display: grid; gap: 3px; padding: 13px 14px 12px; border-radius: 14px; background: #fff; border: 1px solid #ebe9f5; box-shadow: 0 6px 18px -12px rgba(40, 30, 120, 0.3); overflow: hidden; }
.kpi > span:first-child { color: #6b6890; font: 600 12px/1.2 var(--body); }
.kpi b { font: 800 23px/1.15 var(--display); letter-spacing: -0.02em; }
.kpi b.tick { animation: tick 0.5s var(--out-back); }
@keyframes tick { 40% { transform: translateY(-2px); color: #2c4fe0; } }
.kpi em { font: 700 11.5px/1.2 var(--body); font-style: normal; color: #8a87ad; }
.kpi em.up { color: #0b9c74; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; width: 70px; height: 24px; }
.kpi .spark path { fill: none; stroke: #4a6bff; stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 140; }
.panel.on .kpi .spark path { animation: draw-k 1.4s 0.4s var(--ease) forwards; }
@keyframes draw-k { to { stroke-dashoffset: 0; } }
.kpi .meter { position: absolute; right: 14px; bottom: 16px; width: 62px; height: 6px; border-radius: 6px; background: #ecebf6; overflow: hidden; }
.kpi .meter i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #14c38f, #3ef0c2); border-radius: inherit; }
.kpi .meter.alt i { background: linear-gradient(90deg, #2c62ff, #8b3df0); }

.wa-grid { flex: 1; display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; min-height: 0; }
.compact .wa-grid { grid-template-columns: 1fr; }
.compact .wa-runs { display: none; }
.wa-card { display: flex; flex-direction: column; min-height: 0; border-radius: 16px; background: #fff; border: 1px solid #ebe9f5; box-shadow: 0 6px 18px -12px rgba(40, 30, 120, 0.3); overflow: hidden; }
.wa-card-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; border-bottom: 1px solid #f0eff8; }
.wa-card-h b { font: 800 14px/1 var(--display); letter-spacing: -0.01em; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f2f1f9; }
.seg i { font: 700 11.5px/1 var(--body); font-style: normal; padding: 6px 9px; border-radius: 7px; color: #6b6890; }
.seg i.on { background: #fff; color: #17143a; box-shadow: 0 2px 6px -2px rgba(40, 30, 120, 0.25); }
.mono-s { font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8a87ad; }

.wa-rows { display: grid; }
.wa-row { position: relative; display: grid; grid-template-columns: 36px 1fr auto 46px 40px; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f3f2f9; transition: background-color 0.5s; }
.wa-row:last-child { border-bottom: 0; }
.wa-row.hit { background: rgba(44, 98, 255, 0.07); transition: background-color 0s; }
.wa-row.hit::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(#2c62ff, #8b3df0); }
.wf-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-size: 17px; }
.g1 { background: linear-gradient(135deg, #2c62ff, #6a2cf0); } .g2 { background: linear-gradient(135deg, #14b88a, #2c62ff); }
.g3 { background: linear-gradient(135deg, #8b3df0, #e0459c); } .g4 { background: linear-gradient(135deg, #ff9f43, #ff4d6d); } .g5 { background: linear-gradient(135deg, #4b5cff, #2fc0ff); }
.wf-name { display: grid; gap: 2px; min-width: 0; }
.wf-name b { font: 700 13.5px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-name small { color: #8a87ad; font: 600 11.5px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-steps { display: flex; align-items: center; gap: 4px; }
.wf-steps i { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f1f0fa; color: #5a57a0; font-size: 14px; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--out-back); }
.wf-steps i + i::before { content: ''; position: absolute; left: -5px; top: 50%; width: 4px; height: 1.5px; background: #d5d3ea; }
.wf-steps i.lit { background: linear-gradient(135deg, #2c62ff, #7a2cf0); color: #fff; transform: scale(1.12); }
.compact .wf-steps { display: none; }
.compact .wa-row { grid-template-columns: 36px 1fr 46px 40px; }
.wf-runs { font: 700 13px/1 var(--mono); color: #4b4874; text-align: right; }
.toggle { position: relative; width: 36px; height: 21px; border-radius: 99px; background: #d9d7ea; cursor: pointer; transition: background-color 0.25s; justify-self: end; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--out-back); }
.toggle.on { background: linear-gradient(90deg, #2c62ff, #6a2cf0); }
.toggle.on::after { transform: translateX(15px); }

.runs { list-style: none; margin: 0; padding: 6px 10px; flex: 1; display: grid; align-content: start; gap: 6px; overflow: hidden; }
.runs li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 11px; background: #f8f7fd; animation: run-in 0.5s var(--out-back); }
@keyframes run-in { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
.runs time { font: 600 11px/1 var(--mono); color: #8a87ad; }
.runs .rn { display: grid; gap: 2px; min-width: 0; }
.runs .rn b { font: 700 12.5px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runs .rn small { font: 600 11px/1.2 var(--body); color: #8a87ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-s { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font: 700 11px/1 var(--body); white-space: nowrap; }
.pill-s.run { background: rgba(44, 98, 255, 0.1); color: #2c4fe0; }
.pill-s.run::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.pill-s.ok { background: rgba(20, 184, 138, 0.12); color: #0b9c74; }
@keyframes spin { to { transform: rotate(360deg); } }
.wa-ai { display: flex; gap: 10px; align-items: flex-start; margin: 4px 10px 10px; padding: 11px 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(44, 98, 255, 0.09), rgba(139, 61, 240, 0.09)); color: #3d3a6a; font-size: 12.5px; line-height: 1.4; }
.wa-ai svg { color: #6a2cf0; font-size: 18px; margin-top: 1px; }
.wa-ai p { margin: 0; }
.wa-ai b { color: #17143a; }

/* floats around the browser */
.fw1 { left: 2%; top: 9%; } .fw2 { right: 22%; bottom: 4%; } .fw3 { left: 6%; bottom: 9%; }

/* ================================================================ APPS: phone (dark UI) + cards */
.panel-apps .scaler { --w: 860px; --h: 820px; }
.compact.panel-apps .scaler { --w: 400px; --h: 800px; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 368px; height: 760px; translate: -50% -50%; padding: 12px; border-radius: 58px;
  background: linear-gradient(145deg, #34305e, #15122e 40%, #2a2650); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 120px -20px rgba(100, 70, 255, 0.55);
}
.ph-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: radial-gradient(120% 60% at 80% 0%, #2a1f78 0%, transparent 60%), linear-gradient(#120c33, #0a0720); color: #eef0ff; font: 500 13px/1.35 var(--body); }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 30px 0 34px; font: 700 14px/1 var(--body); z-index: 3; }
.island { position: absolute; left: 50%; top: 11px; width: 112px; height: 32px; translate: -50% 0; border-radius: 20px; background: #000; }
.ph-icons { display: flex; align-items: center; gap: 6px; }
.ph-icons svg { width: 15px; height: 15px; }
.ph-icons .sig { width: 16px; height: 10px; background: linear-gradient(90deg, #fff 0 18%, transparent 18% 27%, #fff 27% 45%, transparent 45% 55%, #fff 55% 73%, transparent 73% 82%, #fff 82%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ph-icons .bat { width: 24px; height: 11px; border-radius: 3.5px; border: 1.5px solid rgba(255, 255, 255, 0.7); background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box; padding: 1.5px; }
.ph-banner {
  position: absolute; left: 10px; right: 10px; top: 10px; z-index: 4; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center;
  padding: 11px 12px; border-radius: 20px; background: rgba(40, 34, 90, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); translate: 0 -120%; transition: translate 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.ph-banner.on { translate: 0 0; }
.ph-banner .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #2c62ff, #8b3df0); font-size: 18px; color: #fff; }
.ph-banner b { display: block; font: 700 13px/1.25 var(--body); }
.ph-banner small { color: #b9bde6; font-size: 12px; }
.ph-banner time { align-self: start; color: #9ea3d4; font-size: 11px; }
.ph-body { padding: 4px 18px 0; display: grid; gap: 14px; }
.ph-hello { display: flex; align-items: center; justify-content: space-between; }
.ph-hello small { color: #9ea3d4; font-size: 12.5px; }
.ph-hello b { display: block; font: 800 22px/1.15 var(--display); letter-spacing: -0.03em; }
.ph-hello .avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3b7bff, #8b3df0); font: 800 13px/1 var(--display); }
.ph-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, #2c62ff, #5b2be6 60%, #8b3df0); box-shadow: 0 16px 34px -18px rgba(80, 70, 255, 0.9); }
.ph-hero .ring { position: relative; width: 74px; height: 74px; flex: none; display: grid; place-items: center; }
.ph-hero .ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-hero .ring circle { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 6; }
.ph-hero .ring .arc { stroke: #fff; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset 1.4s var(--ease) 0.4s; }
.panel.on .ph-hero .ring .arc { stroke-dashoffset: 40; }
.ph-hero .ring b { font: 800 17px/1 var(--display); }
.ph-hero small { color: rgba(255, 255, 255, 0.78); font-size: 12px; }
.ph-hero b[data-k] { display: block; font: 800 30px/1.05 var(--display); letter-spacing: -0.03em; }
.ph-hero span { color: rgba(255, 255, 255, 0.85); font-size: 12.5px; }
.ph-hero em { display: block; margin-top: 4px; font: 700 11.5px/1 var(--body); font-style: normal; color: #c8ffe9; }
.ph-sec { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ph-sec b { font: 800 14.5px/1 var(--display); letter-spacing: -0.01em; }
.ph-sec em { font: 700 11px/1 var(--body); font-style: normal; padding: 4px 8px; border-radius: 99px; background: rgba(255, 159, 67, 0.2); color: #ffc58a; }
.ph-sec small { font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8f95c8; }
.ph-approve { padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); transition: opacity 0.35s, transform 0.35s var(--ease); }
.ph-approve.swap { opacity: 0; transform: translateX(-14px); }
.ap-item { display: flex; gap: 11px; align-items: center; }
.ap-item b { display: block; font: 700 13.5px/1.25 var(--body); }
.ap-item small { color: #9ea3d4; font-size: 12px; }
.ap-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #ff9f43, #ff4d6d); color: #fff; font-size: 19px; flex: none; }
.ap-ico.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; background: linear-gradient(135deg, #14b88a, #2c62ff); }
.ap-ico.g2 { background: linear-gradient(135deg, #2c62ff, #8b3df0); }
.ap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ap-btns span { position: relative; overflow: hidden; display: grid; place-items: center; height: 38px; border-radius: 12px; font: 700 13px/1 var(--body); cursor: pointer; transition: background-color 0.3s, transform 0.2s; }
.ap-no { background: rgba(255, 255, 255, 0.08); color: #c8cdf3; }
.ap-yes { background: linear-gradient(100deg, #2c62ff, #6a2cf0); color: #fff; }
.ap-yes.pressed { transform: scale(0.95); }
.ap-yes.done { background: #14b88a; }
.ap-yes::after { content: ''; position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transform: scale(0); opacity: 0; }
.ap-yes.pressed::after { animation: ripple 0.6s ease-out; }
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(18); opacity: 0; } }
.ph-feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ph-feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); animation: feed-in 0.55s var(--out-back); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-12px); } }
.ph-feed li .fi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-size: 15px; }
.ph-feed li b { display: block; font: 700 12.5px/1.25 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-feed li small { color: #9ea3d4; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ph-feed li time { color: #7e84b8; font-size: 11px; }
.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 10px 26px; background: rgba(18, 13, 50, 0.94); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ph-tabs span { position: relative; display: grid; justify-items: center; gap: 4px; color: #6d71a6; font: 600 10.5px/1 var(--body); }
.ph-tabs span svg { width: 21px; height: 21px; }
.ph-tabs span.on { color: #8fb0ff; }
.ph-tabs i { position: absolute; top: -4px; left: calc(50% + 6px); padding: 3px 5px; border-radius: 99px; background: #ff4d6d; color: #fff; font: 700 9.5px/1 var(--body); font-style: normal; }
.ph-homebar { position: absolute; left: 50%; bottom: 8px; width: 120px; height: 5px; translate: -50% 0; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }

.pcard {
  position: absolute; width: 250px; padding: 14px 16px; border-radius: 22px; display: grid; gap: 6px;
  background: rgba(22, 17, 56, 0.82); border: 1px solid rgba(170, 185, 255, 0.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); color: #eef0ff; font: 500 12.5px/1.35 var(--body);
  transform: translateZ(60px); opacity: 0; transition: opacity 0.5s var(--ease), translate 0.7s var(--out-back);
}
.pc-h { display: flex; align-items: center; gap: 9px; }
.pc-h b { font: 700 13.5px/1.2 var(--body); }
.pc-h time { margin-left: auto; color: #8f95c8; font-size: 11px; }
.pcard small { color: #aab1e2; }
.pc1 { left: 0; top: 18%; translate: -30px 0; }
.pc2 { right: 0; top: 52%; translate: 30px 0; }
.panel.on .pcard { opacity: 1; translate: 0 0; }
.panel.on .pc1 { transition-delay: 0.5s; } .panel.on .pc2 { transition-delay: 0.7s; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 4px; }
.bars i { flex: 1; border-radius: 3px; background: linear-gradient(#3ef0c2, #14b88a); animation: bar 2.4s ease-in-out infinite; }
.bars i:nth-child(2n) { animation-delay: -0.6s; } .bars i:nth-child(3n) { animation-delay: -1.2s; } .bars i:nth-child(5n) { animation-delay: -1.8s; }
@keyframes bar { 0%, 100% { height: 35%; } 50% { height: 100%; } }
.compact .pcard { display: none; }
.fa1 { left: 3%; top: 5%; } .fa2 { left: 4%; bottom: 14%; } .fa3 { right: 1%; bottom: 8%; }

/* ================================================================ AUTOMATION: labels + buzzwords over the 3D board */
.auto-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; } /* under the copy */
.auto-layer > * { position: absolute; left: 0; top: 0; will-change: transform, opacity; opacity: 0; }
.nlabel {
  display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: center; padding: 5px 9px 5px 5px; border-radius: 11px;
  background: rgba(14, 10, 40, 0.78); border: 1px solid rgba(160, 182, 255, 0.34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9); white-space: nowrap; color: #eef0ff;
}
.nlabel em { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font: 700 10px/1 var(--mono); font-style: normal; color: #fff; background: linear-gradient(135deg, #2c62ff, #7a2cf0); box-shadow: 0 0 0 0 rgba(120, 150, 255, 0.8); transition: box-shadow 0.2s; }
.nlabel b { font: 700 12px/1.15 var(--body); }
.nlabel small { font: 600 8.5px/1.2 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: #9db4ff; }
.nlabel.hot em { box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.35), 0 0 18px rgba(140, 170, 255, 0.9); }
.nlabel::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 1px; height: 7px; background: linear-gradient(rgba(160, 182, 255, 0.6), transparent); }
.buzz { font: 600 12px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; color: #b8c8ff; text-shadow: 0 0 14px rgba(110, 140, 255, 0.85); padding: 6px 10px; }
.buzz::before, .buzz::after { content: ''; position: absolute; width: 7px; height: 7px; border: 0 solid rgba(160, 182, 255, 0.7); }
.buzz::before { left: 0; top: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.buzz::after { right: 0; bottom: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.buzz.grad { background: linear-gradient(90deg, #7aa0ff, #c39bff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 10px rgba(120, 130, 255, 0.7)); }
.buzz.big { font-size: 15px; letter-spacing: 0.3em; }
.auto-title { display: grid; gap: 6px; color: #eef0ff; white-space: nowrap; }
.auto-title .livepill { justify-self: start; background: rgba(62, 240, 194, 0.12); color: #3ef0c2; }
.auto-title .livepill i { background: #3ef0c2; box-shadow: 0 0 10px #3ef0c2; }
.auto-title b { font: 800 19px/1.1 var(--display); letter-spacing: -0.02em; }
.auto-title small { font: 600 11px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9db4ff; }
.auto-stat { display: grid; gap: 2px; padding: 12px 15px; border-radius: 16px; background: rgba(14, 10, 40, 0.8); border: 1px solid rgba(62, 240, 194, 0.35); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.9), 0 0 30px -10px rgba(62, 240, 194, 0.35); white-space: nowrap; }
.auto-stat small { font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8ff3d6; }
.auto-stat b { font: 800 24px/1.1 var(--display); color: #fff; letter-spacing: -0.02em; }
.auto-stat b.tick { animation: tick-d 0.6s var(--out-back); }
@keyframes tick-d { 40% { transform: scale(1.08); color: #3ef0c2; } }
.auto-stat span { font: 600 11.5px/1.2 var(--body); color: #aab1e2; }

/* phones: fewer words, no sub-labels, slimmer title/stat */
.auto-layer.compact .nlabel small, .auto-layer.compact .auto-title small, .auto-layer.compact .auto-stat span { display: none; }
.auto-layer.compact .nlabel { grid-template-columns: auto auto; padding: 4px 8px 4px 4px; }
.auto-layer.compact .nlabel em { grid-row: auto; width: 18px; height: 18px; font-size: 9px; }
.auto-layer.compact .nlabel b { font-size: 11px; }
.auto-layer.compact .nlabel::after { display: none; }
.auto-layer.compact .buzz.opt { display: none; }
.auto-layer.compact .buzz { font-size: 11px; }
.auto-layer.compact .buzz.big { font-size: 14px; letter-spacing: 0.26em; }
.auto-layer.compact .auto-title b { font-size: 14px; }
.auto-layer.compact .auto-stat { padding: 8px 11px; }
.auto-layer.compact .auto-stat b { font-size: 18px; }

/* automation board, zoomed in: the step labels show their detail line even on phones */
.auto-layer.compact.detail .nlabel small { display: block; }
.auto-layer.compact.detail .nlabel em { grid-row: span 2; }

@media (prefers-reduced-motion: reduce) {
  .panel .float, .bars i { animation: none !important; }
}

